Remove disabled property and sync up field ordering and numbering (#259)
This commit is contained in:
1 parent
012967e91b
commit
c195c4bc9b
44 files changed
+742
-1056
No files matched your search
@@ -21,7 +21,6 @@ type Group struct {
|
||||
Description string `json:"description,omitempty"`
|
||||
CreatedTime time.Time `json:"created_time,omitempty"`
|
||||
UpdatedTime time.Time `json:"updated_time,omitempty"`
|
||||
Disabled bool `json:"disabled,omitempty"`
|
||||
Version uint32 `json:"version,omitempty"`
|
||||
MemberIds []string `json:"member_ids,omitempty"`
|
||||
Members []*Member `json:"members,omitempty"`
|
||||
|
||||
@@ -84,7 +84,6 @@ func comparableSlice(in []*groups.Group) []groups.Group {
|
||||
Description: i.Description,
|
||||
CreatedTime: i.CreatedTime,
|
||||
UpdatedTime: i.UpdatedTime,
|
||||
Disabled: i.Disabled,
|
||||
}
|
||||
filtered = append(filtered, p)
|
||||
}
|
||||
|
||||
@@ -65,18 +65,6 @@ func DefaultDescription() Option {
|
||||
}
|
||||
}
|
||||
|
||||
func WithDisabled(inDisabled bool) Option {
|
||||
return func(o *options) {
|
||||
o.valueMap["disabled"] = inDisabled
|
||||
}
|
||||
}
|
||||
|
||||
func DefaultDisabled() Option {
|
||||
return func(o *options) {
|
||||
o.valueMap["disabled"] = nil
|
||||
}
|
||||
}
|
||||
|
||||
func WithName(inName string) Option {
|
||||
return func(o *options) {
|
||||
o.valueMap["name"] = inName
|
||||
|
||||
Reference in new issue
Block a user