Remove disabled property and sync up field ordering and numbering (#259)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-08-12 13:00:49 -04:00
1 parent 012967e91b
commit c195c4bc9b
44 files changed
+742 -1056

No files matched your search

-1
View File
@@ -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"`
-1
View File
@@ -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)
}
-12
View File
@@ -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