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 -2
View File
@@ -17,13 +17,12 @@ import (
type Host struct {
Id string `json:"id,omitempty"`
Scope *scopes.ScopeInfo `json:"scope,omitempty"`
Type string `json:"type,omitempty"`
Name string `json:"name,omitempty"`
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"`
Type string `json:"type,omitempty"`
Address string `json:"address,omitempty"`
}
+1 -2
View File
@@ -17,13 +17,12 @@ import (
type HostCatalog struct {
Id string `json:"id,omitempty"`
Scope *scopes.ScopeInfo `json:"scope,omitempty"`
Type string `json:"type,omitempty"`
Name string `json:"name,omitempty"`
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"`
Type string `json:"type,omitempty"`
Attributes map[string]interface{} `json:"attributes,omitempty"`
}
+1 -2
View File
@@ -17,13 +17,12 @@ import (
type HostSet struct {
Id string `json:"id,omitempty"`
Scope *scopes.ScopeInfo `json:"scope,omitempty"`
Type string `json:"type,omitempty"`
Name string `json:"name,omitempty"`
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"`
Type string `json:"type,omitempty"`
Size uint32 `json:"size,omitempty"`
Hosts []*Host `json:"hosts,omitempty"`
}
-12
View File
@@ -89,18 +89,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