diff --git a/netbox/models/device.go b/netbox/models/device.go index e81b44aa..4219506a 100644 --- a/netbox/models/device.go +++ b/netbox/models/device.go @@ -81,7 +81,7 @@ type Device struct { LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` // Local context data - LocalContextData *string `json:"local_context_data,omitempty"` + LocalContextData interface{} `json:"local_context_data,omitempty"` // location Location *NestedLocation `json:"location,omitempty"` diff --git a/netbox/models/device_with_config_context.go b/netbox/models/device_with_config_context.go index daebde72..4016f59e 100644 --- a/netbox/models/device_with_config_context.go +++ b/netbox/models/device_with_config_context.go @@ -50,7 +50,7 @@ type DeviceWithConfigContext struct { // Config context // Read Only: true - ConfigContext map[string]*string `json:"config_context,omitempty"` + ConfigContext interface{} `json:"config_context,omitempty"` // Created // Read Only: true @@ -85,7 +85,7 @@ type DeviceWithConfigContext struct { LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` // Local context data - LocalContextData *string `json:"local_context_data,omitempty"` + LocalContextData interface{} `json:"local_context_data,omitempty"` // location Location *NestedLocation `json:"location,omitempty"` @@ -707,10 +707,6 @@ func (m *DeviceWithConfigContext) ContextValidate(ctx context.Context, formats s res = append(res, err) } - if err := m.contextValidateConfigContext(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateCreated(ctx, formats); err != nil { res = append(res, err) } @@ -813,11 +809,6 @@ func (m *DeviceWithConfigContext) contextValidateCluster(ctx context.Context, fo return nil } -func (m *DeviceWithConfigContext) contextValidateConfigContext(ctx context.Context, formats strfmt.Registry) error { - - return nil -} - func (m *DeviceWithConfigContext) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { diff --git a/netbox/models/virtual_machine_with_config_context.go b/netbox/models/virtual_machine_with_config_context.go index 27efeeaf..4a9d94f7 100644 --- a/netbox/models/virtual_machine_with_config_context.go +++ b/netbox/models/virtual_machine_with_config_context.go @@ -45,7 +45,7 @@ type VirtualMachineWithConfigContext struct { // Config context // Read Only: true - ConfigContext map[string]*string `json:"config_context,omitempty"` + ConfigContext interface{} `json:"config_context,omitempty"` // Created // Read Only: true @@ -74,7 +74,7 @@ type VirtualMachineWithConfigContext struct { LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` // Local context data - LocalContextData *string `json:"local_context_data,omitempty"` + LocalContextData interface{} `json:"local_context_data,omitempty"` // Memory (MB) // Maximum: 2.147483647e+09 @@ -505,10 +505,6 @@ func (m *VirtualMachineWithConfigContext) ContextValidate(ctx context.Context, f res = append(res, err) } - if err := m.contextValidateConfigContext(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateCreated(ctx, formats); err != nil { res = append(res, err) } @@ -587,11 +583,6 @@ func (m *VirtualMachineWithConfigContext) contextValidateCluster(ctx context.Con return nil } -func (m *VirtualMachineWithConfigContext) contextValidateConfigContext(ctx context.Context, formats strfmt.Registry) error { - - return nil -} - func (m *VirtualMachineWithConfigContext) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { diff --git a/netbox/models/writable_device_with_config_context.go b/netbox/models/writable_device_with_config_context.go index 79a5fa08..e00ef914 100644 --- a/netbox/models/writable_device_with_config_context.go +++ b/netbox/models/writable_device_with_config_context.go @@ -50,7 +50,7 @@ type WritableDeviceWithConfigContext struct { // Config context // Read Only: true - ConfigContext map[string]*string `json:"config_context,omitempty"` + ConfigContext interface{} `json:"config_context,omitempty"` // Created // Read Only: true @@ -86,7 +86,7 @@ type WritableDeviceWithConfigContext struct { LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` // Local context data - LocalContextData *string `json:"local_context_data,omitempty"` + LocalContextData interface{} `json:"local_context_data,omitempty"` // Location Location *int64 `json:"location,omitempty"` @@ -527,10 +527,6 @@ func (m *WritableDeviceWithConfigContext) validateVcPriority(formats strfmt.Regi func (m *WritableDeviceWithConfigContext) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error - if err := m.contextValidateConfigContext(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateCreated(ctx, formats); err != nil { res = append(res, err) } @@ -569,11 +565,6 @@ func (m *WritableDeviceWithConfigContext) ContextValidate(ctx context.Context, f return nil } -func (m *WritableDeviceWithConfigContext) contextValidateConfigContext(ctx context.Context, formats strfmt.Registry) error { - - return nil -} - func (m *WritableDeviceWithConfigContext) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { diff --git a/netbox/models/writable_virtual_machine_with_config_context.go b/netbox/models/writable_virtual_machine_with_config_context.go index f5c6e1be..71f70b37 100644 --- a/netbox/models/writable_virtual_machine_with_config_context.go +++ b/netbox/models/writable_virtual_machine_with_config_context.go @@ -45,7 +45,7 @@ type WritableVirtualMachineWithConfigContext struct { // Config context // Read Only: true - ConfigContext map[string]*string `json:"config_context,omitempty"` + ConfigContext interface{} `json:"config_context,omitempty"` // Created // Read Only: true @@ -74,7 +74,7 @@ type WritableVirtualMachineWithConfigContext struct { LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` // Local context data - LocalContextData *string `json:"local_context_data,omitempty"` + LocalContextData interface{} `json:"local_context_data,omitempty"` // Memory (MB) // Maximum: 2.147483647e+09 @@ -367,10 +367,6 @@ func (m *WritableVirtualMachineWithConfigContext) validateVcpus(formats strfmt.R func (m *WritableVirtualMachineWithConfigContext) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error - if err := m.contextValidateConfigContext(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateCreated(ctx, formats); err != nil { res = append(res, err) } @@ -409,11 +405,6 @@ func (m *WritableVirtualMachineWithConfigContext) ContextValidate(ctx context.Co return nil } -func (m *WritableVirtualMachineWithConfigContext) contextValidateConfigContext(ctx context.Context, formats strfmt.Registry) error { - - return nil -} - func (m *WritableVirtualMachineWithConfigContext) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { diff --git a/netbox/swagger-v3.0.11.json b/netbox/swagger-v3.0.11.json index 9bc129a7..1d1eb450 100644 --- a/netbox/swagger-v3.0.11.json +++ b/netbox/swagger-v3.0.11.json @@ -1900,7 +1900,7 @@ }, "local_context_data" : { "title" : "Local context data", - "type" : "string", + "type" : "object", "x-nullable" : true }, "location" : { "$ref" : "#/definitions/NestedLocation" }, @@ -2352,10 +2352,6 @@ "type" : "string" }, "config_context" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, "readOnly" : true, "title" : "Config context", "type" : "object" @@ -2415,7 +2411,7 @@ }, "local_context_data" : { "title" : "Local context data", - "type" : "string", + "type" : "object", "x-nullable" : true }, "location" : { "$ref" : "#/definitions/NestedLocation" }, @@ -9756,10 +9752,6 @@ "type" : "string" }, "config_context" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, "readOnly" : true, "title" : "Config context", "type" : "object" @@ -9800,7 +9792,7 @@ }, "local_context_data" : { "title" : "Local context data", - "type" : "string", + "type" : "object", "x-nullable" : true }, "memory" : { @@ -11847,10 +11839,6 @@ "type" : "string" }, "config_context" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, "readOnly" : true, "title" : "Config context", "type" : "object" @@ -11900,7 +11888,7 @@ }, "local_context_data" : { "title" : "Local context data", - "type" : "string", + "type" : "object", "x-nullable" : true }, "location" : { @@ -15904,10 +15892,6 @@ "type" : "string" }, "config_context" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, "readOnly" : true, "title" : "Config context", "type" : "object" @@ -15948,7 +15932,7 @@ }, "local_context_data" : { "title" : "Local context data", - "type" : "string", + "type" : "object", "x-nullable" : true }, "memory" : {