diff --git a/netbox/models/circuit_termination.go b/netbox/models/circuit_termination.go index c25ce8fba4..9f6e63335c 100644 --- a/netbox/models/circuit_termination.go +++ b/netbox/models/circuit_termination.go @@ -77,12 +77,6 @@ type CircuitTermination struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -500,10 +494,6 @@ func (m *CircuitTermination) ContextValidate(ctx context.Context, formats strfmt res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -616,15 +606,6 @@ func (m *CircuitTermination) contextValidateLastUpdated(ctx context.Context, for return nil } -func (m *CircuitTermination) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *CircuitTermination) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/console_port.go b/netbox/models/console_port.go index 4cbabfcdd2..98a0affc1b 100644 --- a/netbox/models/console_port.go +++ b/netbox/models/console_port.go @@ -48,12 +48,6 @@ type ConsolePort struct { // Min Length: 1 CableEnd string `json:"cable_end,omitempty"` - // - // Return the appropriate serializer for the type of connected object. - // - // Read Only: true - ConnectedEndpoints []*string `json:"connected_endpoints"` - // Connected endpoints reachable // Read Only: true ConnectedEndpointsReachable *bool `json:"connected_endpoints_reachable,omitempty"` @@ -97,12 +91,6 @@ type ConsolePort struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -425,10 +413,6 @@ func (m *ConsolePort) ContextValidate(ctx context.Context, formats strfmt.Regist res = append(res, err) } - if err := m.contextValidateConnectedEndpoints(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateConnectedEndpointsReachable(ctx, formats); err != nil { res = append(res, err) } @@ -457,10 +441,6 @@ func (m *ConsolePort) ContextValidate(ctx context.Context, formats strfmt.Regist res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -525,15 +505,6 @@ func (m *ConsolePort) contextValidateCableEnd(ctx context.Context, formats strfm return nil } -func (m *ConsolePort) contextValidateConnectedEndpoints(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "connected_endpoints", "body", []*string(m.ConnectedEndpoints)); err != nil { - return err - } - - return nil -} - func (m *ConsolePort) contextValidateConnectedEndpointsReachable(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "connected_endpoints_reachable", "body", m.ConnectedEndpointsReachable); err != nil { @@ -604,15 +575,6 @@ func (m *ConsolePort) contextValidateLastUpdated(ctx context.Context, formats st return nil } -func (m *ConsolePort) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *ConsolePort) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/console_server_port.go b/netbox/models/console_server_port.go index 28d0ad818a..f67d0f5903 100644 --- a/netbox/models/console_server_port.go +++ b/netbox/models/console_server_port.go @@ -48,12 +48,6 @@ type ConsoleServerPort struct { // Min Length: 1 CableEnd string `json:"cable_end,omitempty"` - // - // Return the appropriate serializer for the type of connected object. - // - // Read Only: true - ConnectedEndpoints []*string `json:"connected_endpoints"` - // Connected endpoints reachable // Read Only: true ConnectedEndpointsReachable *bool `json:"connected_endpoints_reachable,omitempty"` @@ -97,12 +91,6 @@ type ConsoleServerPort struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -425,10 +413,6 @@ func (m *ConsoleServerPort) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } - if err := m.contextValidateConnectedEndpoints(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateConnectedEndpointsReachable(ctx, formats); err != nil { res = append(res, err) } @@ -457,10 +441,6 @@ func (m *ConsoleServerPort) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -525,15 +505,6 @@ func (m *ConsoleServerPort) contextValidateCableEnd(ctx context.Context, formats return nil } -func (m *ConsoleServerPort) contextValidateConnectedEndpoints(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "connected_endpoints", "body", []*string(m.ConnectedEndpoints)); err != nil { - return err - } - - return nil -} - func (m *ConsoleServerPort) contextValidateConnectedEndpointsReachable(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "connected_endpoints_reachable", "body", m.ConnectedEndpointsReachable); err != nil { @@ -604,15 +575,6 @@ func (m *ConsoleServerPort) contextValidateLastUpdated(ctx context.Context, form return nil } -func (m *ConsoleServerPort) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *ConsoleServerPort) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/front_port.go b/netbox/models/front_port.go index a8e399ec9b..0bcfc0f5ed 100644 --- a/netbox/models/front_port.go +++ b/netbox/models/front_port.go @@ -88,12 +88,6 @@ type FrontPort struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -485,10 +479,6 @@ func (m *FrontPort) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -605,15 +595,6 @@ func (m *FrontPort) contextValidateLastUpdated(ctx context.Context, formats strf return nil } -func (m *FrontPort) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *FrontPort) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/interface.go b/netbox/models/interface.go index 5041975862..9c149c7d2b 100644 --- a/netbox/models/interface.go +++ b/netbox/models/interface.go @@ -51,12 +51,6 @@ type Interface struct { // Min Length: 1 CableEnd string `json:"cable_end,omitempty"` - // - // Return the appropriate serializer for the type of connected object. - // - // Read Only: true - ConnectedEndpoints []*string `json:"connected_endpoints"` - // Connected endpoints reachable // Read Only: true ConnectedEndpointsReachable *bool `json:"connected_endpoints_reachable,omitempty"` @@ -120,12 +114,6 @@ type Interface struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -962,10 +950,6 @@ func (m *Interface) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } - if err := m.contextValidateConnectedEndpoints(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateConnectedEndpointsReachable(ctx, formats); err != nil { res = append(res, err) } @@ -1014,10 +998,6 @@ func (m *Interface) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -1142,15 +1122,6 @@ func (m *Interface) contextValidateCableEnd(ctx context.Context, formats strfmt. return nil } -func (m *Interface) contextValidateConnectedEndpoints(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "connected_endpoints", "body", []*string(m.ConnectedEndpoints)); err != nil { - return err - } - - return nil -} - func (m *Interface) contextValidateConnectedEndpointsReachable(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "connected_endpoints_reachable", "body", m.ConnectedEndpointsReachable); err != nil { @@ -1287,15 +1258,6 @@ func (m *Interface) contextValidateLastUpdated(ctx context.Context, formats strf return nil } -func (m *Interface) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *Interface) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/power_feed.go b/netbox/models/power_feed.go index a7440d9220..609a65ea82 100644 --- a/netbox/models/power_feed.go +++ b/netbox/models/power_feed.go @@ -56,12 +56,6 @@ type PowerFeed struct { // Comments Comments string `json:"comments,omitempty"` - // - // Return the appropriate serializer for the type of connected object. - // - // Read Only: true - ConnectedEndpoints []*string `json:"connected_endpoints"` - // Connected endpoints reachable // Read Only: true ConnectedEndpointsReachable *bool `json:"connected_endpoints_reachable,omitempty"` @@ -95,12 +89,6 @@ type PowerFeed struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -535,10 +523,6 @@ func (m *PowerFeed) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } - if err := m.contextValidateConnectedEndpoints(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateConnectedEndpointsReachable(ctx, formats); err != nil { res = append(res, err) } @@ -563,10 +547,6 @@ func (m *PowerFeed) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -643,15 +623,6 @@ func (m *PowerFeed) contextValidateCableEnd(ctx context.Context, formats strfmt. return nil } -func (m *PowerFeed) contextValidateConnectedEndpoints(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "connected_endpoints", "body", []*string(m.ConnectedEndpoints)); err != nil { - return err - } - - return nil -} - func (m *PowerFeed) contextValidateConnectedEndpointsReachable(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "connected_endpoints_reachable", "body", m.ConnectedEndpointsReachable); err != nil { @@ -706,15 +677,6 @@ func (m *PowerFeed) contextValidateLastUpdated(ctx context.Context, formats strf return nil } -func (m *PowerFeed) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *PowerFeed) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/power_outlet.go b/netbox/models/power_outlet.go index b6c56e9d34..cd4b5ef155 100644 --- a/netbox/models/power_outlet.go +++ b/netbox/models/power_outlet.go @@ -48,12 +48,6 @@ type PowerOutlet struct { // Min Length: 1 CableEnd string `json:"cable_end,omitempty"` - // - // Return the appropriate serializer for the type of connected object. - // - // Read Only: true - ConnectedEndpoints []*string `json:"connected_endpoints"` - // Connected endpoints reachable // Read Only: true ConnectedEndpointsReachable *bool `json:"connected_endpoints_reachable,omitempty"` @@ -100,12 +94,6 @@ type PowerOutlet struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -451,10 +439,6 @@ func (m *PowerOutlet) ContextValidate(ctx context.Context, formats strfmt.Regist res = append(res, err) } - if err := m.contextValidateConnectedEndpoints(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateConnectedEndpointsReachable(ctx, formats); err != nil { res = append(res, err) } @@ -487,10 +471,6 @@ func (m *PowerOutlet) ContextValidate(ctx context.Context, formats strfmt.Regist res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -555,15 +535,6 @@ func (m *PowerOutlet) contextValidateCableEnd(ctx context.Context, formats strfm return nil } -func (m *PowerOutlet) contextValidateConnectedEndpoints(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "connected_endpoints", "body", []*string(m.ConnectedEndpoints)); err != nil { - return err - } - - return nil -} - func (m *PowerOutlet) contextValidateConnectedEndpointsReachable(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "connected_endpoints_reachable", "body", m.ConnectedEndpointsReachable); err != nil { @@ -650,15 +621,6 @@ func (m *PowerOutlet) contextValidateLastUpdated(ctx context.Context, formats st return nil } -func (m *PowerOutlet) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *PowerOutlet) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/power_port.go b/netbox/models/power_port.go index 8effbbb074..991cbb0ca8 100644 --- a/netbox/models/power_port.go +++ b/netbox/models/power_port.go @@ -55,12 +55,6 @@ type PowerPort struct { // Min Length: 1 CableEnd string `json:"cable_end,omitempty"` - // - // Return the appropriate serializer for the type of connected object. - // - // Read Only: true - ConnectedEndpoints []*string `json:"connected_endpoints"` - // Connected endpoints reachable // Read Only: true ConnectedEndpointsReachable *bool `json:"connected_endpoints_reachable,omitempty"` @@ -104,12 +98,6 @@ type PowerPort struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -453,10 +441,6 @@ func (m *PowerPort) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } - if err := m.contextValidateConnectedEndpoints(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateConnectedEndpointsReachable(ctx, formats); err != nil { res = append(res, err) } @@ -485,10 +469,6 @@ func (m *PowerPort) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -549,15 +529,6 @@ func (m *PowerPort) contextValidateCableEnd(ctx context.Context, formats strfmt. return nil } -func (m *PowerPort) contextValidateConnectedEndpoints(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "connected_endpoints", "body", []*string(m.ConnectedEndpoints)); err != nil { - return err - } - - return nil -} - func (m *PowerPort) contextValidateConnectedEndpointsReachable(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "connected_endpoints_reachable", "body", m.ConnectedEndpointsReachable); err != nil { @@ -628,15 +599,6 @@ func (m *PowerPort) contextValidateLastUpdated(ctx context.Context, formats strf return nil } -func (m *PowerPort) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *PowerPort) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/rear_port.go b/netbox/models/rear_port.go index ac01e9e561..03bb2d2445 100644 --- a/netbox/models/rear_port.go +++ b/netbox/models/rear_port.go @@ -88,12 +88,6 @@ type RearPort struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -457,10 +451,6 @@ func (m *RearPort) ContextValidate(ctx context.Context, formats strfmt.Registry) res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -573,15 +563,6 @@ func (m *RearPort) contextValidateLastUpdated(ctx context.Context, formats strfm return nil } -func (m *RearPort) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *RearPort) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/writable_circuit_termination.go b/netbox/models/writable_circuit_termination.go index 70ccaa96f6..02528d4d26 100644 --- a/netbox/models/writable_circuit_termination.go +++ b/netbox/models/writable_circuit_termination.go @@ -77,12 +77,6 @@ type WritableCircuitTermination struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -439,10 +433,6 @@ func (m *WritableCircuitTermination) ContextValidate(ctx context.Context, format res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -531,15 +521,6 @@ func (m *WritableCircuitTermination) contextValidateLastUpdated(ctx context.Cont return nil } -func (m *WritableCircuitTermination) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *WritableCircuitTermination) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/writable_console_port.go b/netbox/models/writable_console_port.go index c8fca89cc5..9c550589cd 100644 --- a/netbox/models/writable_console_port.go +++ b/netbox/models/writable_console_port.go @@ -48,12 +48,6 @@ type WritableConsolePort struct { // Min Length: 1 CableEnd string `json:"cable_end,omitempty"` - // - // Return the appropriate serializer for the type of connected object. - // - // Read Only: true - ConnectedEndpoints []*string `json:"connected_endpoints"` - // Connected endpoints reachable // Read Only: true ConnectedEndpointsReachable *bool `json:"connected_endpoints_reachable,omitempty"` @@ -97,12 +91,6 @@ type WritableConsolePort struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -473,10 +461,6 @@ func (m *WritableConsolePort) ContextValidate(ctx context.Context, formats strfm res = append(res, err) } - if err := m.contextValidateConnectedEndpoints(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateConnectedEndpointsReachable(ctx, formats); err != nil { res = append(res, err) } @@ -501,10 +485,6 @@ func (m *WritableConsolePort) ContextValidate(ctx context.Context, formats strfm res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -557,15 +537,6 @@ func (m *WritableConsolePort) contextValidateCableEnd(ctx context.Context, forma return nil } -func (m *WritableConsolePort) contextValidateConnectedEndpoints(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "connected_endpoints", "body", []*string(m.ConnectedEndpoints)); err != nil { - return err - } - - return nil -} - func (m *WritableConsolePort) contextValidateConnectedEndpointsReachable(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "connected_endpoints_reachable", "body", m.ConnectedEndpointsReachable); err != nil { @@ -620,15 +591,6 @@ func (m *WritableConsolePort) contextValidateLastUpdated(ctx context.Context, fo return nil } -func (m *WritableConsolePort) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *WritableConsolePort) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/writable_console_server_port.go b/netbox/models/writable_console_server_port.go index f63cc587da..f7db723590 100644 --- a/netbox/models/writable_console_server_port.go +++ b/netbox/models/writable_console_server_port.go @@ -48,12 +48,6 @@ type WritableConsoleServerPort struct { // Min Length: 1 CableEnd string `json:"cable_end,omitempty"` - // - // Return the appropriate serializer for the type of connected object. - // - // Read Only: true - ConnectedEndpoints []*string `json:"connected_endpoints"` - // Connected endpoints reachable // Read Only: true ConnectedEndpointsReachable *bool `json:"connected_endpoints_reachable,omitempty"` @@ -97,12 +91,6 @@ type WritableConsoleServerPort struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -473,10 +461,6 @@ func (m *WritableConsoleServerPort) ContextValidate(ctx context.Context, formats res = append(res, err) } - if err := m.contextValidateConnectedEndpoints(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateConnectedEndpointsReachable(ctx, formats); err != nil { res = append(res, err) } @@ -501,10 +485,6 @@ func (m *WritableConsoleServerPort) ContextValidate(ctx context.Context, formats res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -557,15 +537,6 @@ func (m *WritableConsoleServerPort) contextValidateCableEnd(ctx context.Context, return nil } -func (m *WritableConsoleServerPort) contextValidateConnectedEndpoints(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "connected_endpoints", "body", []*string(m.ConnectedEndpoints)); err != nil { - return err - } - - return nil -} - func (m *WritableConsoleServerPort) contextValidateConnectedEndpointsReachable(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "connected_endpoints_reachable", "body", m.ConnectedEndpointsReachable); err != nil { @@ -620,15 +591,6 @@ func (m *WritableConsoleServerPort) contextValidateLastUpdated(ctx context.Conte return nil } -func (m *WritableConsoleServerPort) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *WritableConsoleServerPort) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/writable_front_port.go b/netbox/models/writable_front_port.go index a9e589c8ef..7cf962c159 100644 --- a/netbox/models/writable_front_port.go +++ b/netbox/models/writable_front_port.go @@ -88,12 +88,6 @@ type WritableFrontPort struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -583,10 +577,6 @@ func (m *WritableFrontPort) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -675,15 +665,6 @@ func (m *WritableFrontPort) contextValidateLastUpdated(ctx context.Context, form return nil } -func (m *WritableFrontPort) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *WritableFrontPort) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/writable_interface.go b/netbox/models/writable_interface.go index 635d9346af..79050f6836 100644 --- a/netbox/models/writable_interface.go +++ b/netbox/models/writable_interface.go @@ -51,12 +51,6 @@ type WritableInterface struct { // Min Length: 1 CableEnd string `json:"cable_end,omitempty"` - // - // Return the appropriate serializer for the type of connected object. - // - // Read Only: true - ConnectedEndpoints []*string `json:"connected_endpoints"` - // Connected endpoints reachable // Read Only: true ConnectedEndpointsReachable *bool `json:"connected_endpoints_reachable,omitempty"` @@ -122,12 +116,6 @@ type WritableInterface struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -1801,10 +1789,6 @@ func (m *WritableInterface) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } - if err := m.contextValidateConnectedEndpoints(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateConnectedEndpointsReachable(ctx, formats); err != nil { res = append(res, err) } @@ -1841,10 +1825,6 @@ func (m *WritableInterface) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -1897,15 +1877,6 @@ func (m *WritableInterface) contextValidateCableEnd(ctx context.Context, formats return nil } -func (m *WritableInterface) contextValidateConnectedEndpoints(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "connected_endpoints", "body", []*string(m.ConnectedEndpoints)); err != nil { - return err - } - - return nil -} - func (m *WritableInterface) contextValidateConnectedEndpointsReachable(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "connected_endpoints_reachable", "body", m.ConnectedEndpointsReachable); err != nil { @@ -1987,15 +1958,6 @@ func (m *WritableInterface) contextValidateLastUpdated(ctx context.Context, form return nil } -func (m *WritableInterface) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *WritableInterface) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/writable_power_feed.go b/netbox/models/writable_power_feed.go index dc7c998ea4..c783b9b84d 100644 --- a/netbox/models/writable_power_feed.go +++ b/netbox/models/writable_power_feed.go @@ -56,12 +56,6 @@ type WritablePowerFeed struct { // Comments Comments string `json:"comments,omitempty"` - // - // Return the appropriate serializer for the type of connected object. - // - // Read Only: true - ConnectedEndpoints []*string `json:"connected_endpoints"` - // Connected endpoints reachable // Read Only: true ConnectedEndpointsReachable *bool `json:"connected_endpoints_reachable,omitempty"` @@ -95,12 +89,6 @@ type WritablePowerFeed struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -603,10 +591,6 @@ func (m *WritablePowerFeed) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } - if err := m.contextValidateConnectedEndpoints(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateConnectedEndpointsReachable(ctx, formats); err != nil { res = append(res, err) } @@ -631,10 +615,6 @@ func (m *WritablePowerFeed) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -687,15 +667,6 @@ func (m *WritablePowerFeed) contextValidateCableEnd(ctx context.Context, formats return nil } -func (m *WritablePowerFeed) contextValidateConnectedEndpoints(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "connected_endpoints", "body", []*string(m.ConnectedEndpoints)); err != nil { - return err - } - - return nil -} - func (m *WritablePowerFeed) contextValidateConnectedEndpointsReachable(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "connected_endpoints_reachable", "body", m.ConnectedEndpointsReachable); err != nil { @@ -750,15 +721,6 @@ func (m *WritablePowerFeed) contextValidateLastUpdated(ctx context.Context, form return nil } -func (m *WritablePowerFeed) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *WritablePowerFeed) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/writable_power_outlet.go b/netbox/models/writable_power_outlet.go index 14781d54b1..57b97a4a3e 100644 --- a/netbox/models/writable_power_outlet.go +++ b/netbox/models/writable_power_outlet.go @@ -48,12 +48,6 @@ type WritablePowerOutlet struct { // Min Length: 1 CableEnd string `json:"cable_end,omitempty"` - // - // Return the appropriate serializer for the type of connected object. - // - // Read Only: true - ConnectedEndpoints []*string `json:"connected_endpoints"` - // Connected endpoints reachable // Read Only: true ConnectedEndpointsReachable *bool `json:"connected_endpoints_reachable,omitempty"` @@ -103,12 +97,6 @@ type WritablePowerOutlet struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -713,10 +701,6 @@ func (m *WritablePowerOutlet) ContextValidate(ctx context.Context, formats strfm res = append(res, err) } - if err := m.contextValidateConnectedEndpoints(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateConnectedEndpointsReachable(ctx, formats); err != nil { res = append(res, err) } @@ -741,10 +725,6 @@ func (m *WritablePowerOutlet) ContextValidate(ctx context.Context, formats strfm res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -797,15 +777,6 @@ func (m *WritablePowerOutlet) contextValidateCableEnd(ctx context.Context, forma return nil } -func (m *WritablePowerOutlet) contextValidateConnectedEndpoints(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "connected_endpoints", "body", []*string(m.ConnectedEndpoints)); err != nil { - return err - } - - return nil -} - func (m *WritablePowerOutlet) contextValidateConnectedEndpointsReachable(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "connected_endpoints_reachable", "body", m.ConnectedEndpointsReachable); err != nil { @@ -860,15 +831,6 @@ func (m *WritablePowerOutlet) contextValidateLastUpdated(ctx context.Context, fo return nil } -func (m *WritablePowerOutlet) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *WritablePowerOutlet) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/writable_power_port.go b/netbox/models/writable_power_port.go index 8c8cbe4993..56eae477b3 100644 --- a/netbox/models/writable_power_port.go +++ b/netbox/models/writable_power_port.go @@ -55,12 +55,6 @@ type WritablePowerPort struct { // Min Length: 1 CableEnd string `json:"cable_end,omitempty"` - // - // Return the appropriate serializer for the type of connected object. - // - // Read Only: true - ConnectedEndpoints []*string `json:"connected_endpoints"` - // Connected endpoints reachable // Read Only: true ConnectedEndpointsReachable *bool `json:"connected_endpoints_reachable,omitempty"` @@ -104,12 +98,6 @@ type WritablePowerPort struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -730,10 +718,6 @@ func (m *WritablePowerPort) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } - if err := m.contextValidateConnectedEndpoints(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateConnectedEndpointsReachable(ctx, formats); err != nil { res = append(res, err) } @@ -758,10 +742,6 @@ func (m *WritablePowerPort) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -814,15 +794,6 @@ func (m *WritablePowerPort) contextValidateCableEnd(ctx context.Context, formats return nil } -func (m *WritablePowerPort) contextValidateConnectedEndpoints(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "connected_endpoints", "body", []*string(m.ConnectedEndpoints)); err != nil { - return err - } - - return nil -} - func (m *WritablePowerPort) contextValidateConnectedEndpointsReachable(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "connected_endpoints_reachable", "body", m.ConnectedEndpointsReachable); err != nil { @@ -877,15 +848,6 @@ func (m *WritablePowerPort) contextValidateLastUpdated(ctx context.Context, form return nil } -func (m *WritablePowerPort) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *WritablePowerPort) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil { diff --git a/netbox/models/writable_rear_port.go b/netbox/models/writable_rear_port.go index 9079a0103c..8655de1420 100644 --- a/netbox/models/writable_rear_port.go +++ b/netbox/models/writable_rear_port.go @@ -88,12 +88,6 @@ type WritableRearPort struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` - // - // Return the appropriate serializer for the link termination model. - // - // Read Only: true - LinkPeers []*string `json:"link_peers"` - // Link peers type // Read Only: true LinkPeersType string `json:"link_peers_type,omitempty"` @@ -566,10 +560,6 @@ func (m *WritableRearPort) ContextValidate(ctx context.Context, formats strfmt.R res = append(res, err) } - if err := m.contextValidateLinkPeers(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateLinkPeersType(ctx, formats); err != nil { res = append(res, err) } @@ -658,15 +648,6 @@ func (m *WritableRearPort) contextValidateLastUpdated(ctx context.Context, forma return nil } -func (m *WritableRearPort) contextValidateLinkPeers(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "link_peers", "body", []*string(m.LinkPeers)); err != nil { - return err - } - - return nil -} - func (m *WritableRearPort) contextValidateLinkPeersType(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "link_peers_type", "body", string(m.LinkPeersType)); err != nil {