/
model.go
24 lines (21 loc) · 938 Bytes
/
model.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package bigsegments
// bigSegmentPatchChangesMutations lists users that should be added or removed
// to either the included or excluded set of a big segment.
type bigSegmentPatchChangesMutations struct {
Add []string `json:"add"`
Remove []string `json:"remove"`
}
// bigSegmentPatchChanges represents changes to the included and excluded sets
// of a segment.
type bigSegmentPatchChanges struct {
Included bigSegmentPatchChangesMutations `json:"included"`
Excluded bigSegmentPatchChangesMutations `json:"excluded"`
}
// bigSegmentPatch represents a patch of of a big segment in an environment.
type bigSegmentPatch struct {
EnvironmentID string `json:"environmentId"`
SegmentID string `json:"segmentId"`
Version string `json:"version"`
PreviousVersion string `json:"previousVersion"`
Changes bigSegmentPatchChanges `json:"changes"`
}