From 02238d07a9895dcb870b74b8f012ec45fe2e847a Mon Sep 17 00:00:00 2001 From: Charles Treatman Date: Thu, 25 Jan 2024 14:08:31 -0600 Subject: [PATCH] regenerate port from patched spec --- services/metalv1/docs/Port.md | 8 ++++---- services/metalv1/model_port.go | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/services/metalv1/docs/Port.md b/services/metalv1/docs/Port.md index fcffb922..a8ace450 100644 --- a/services/metalv1/docs/Port.md +++ b/services/metalv1/docs/Port.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **Type** | Pointer to [**PortType**](PortType.md) | | [optional] **NetworkType** | Pointer to [**PortNetworkType**](PortNetworkType.md) | | [optional] **NativeVirtualNetwork** | Pointer to [**VirtualNetwork**](VirtualNetwork.md) | | [optional] -**VirtualNetworks** | Pointer to [**[]Href**](Href.md) | | [optional] +**VirtualNetworks** | Pointer to [**[]VirtualNetwork**](VirtualNetwork.md) | | [optional] ## Methods @@ -261,20 +261,20 @@ HasNativeVirtualNetwork returns a boolean if a field has been set. ### GetVirtualNetworks -`func (o *Port) GetVirtualNetworks() []Href` +`func (o *Port) GetVirtualNetworks() []VirtualNetwork` GetVirtualNetworks returns the VirtualNetworks field if non-nil, zero value otherwise. ### GetVirtualNetworksOk -`func (o *Port) GetVirtualNetworksOk() (*[]Href, bool)` +`func (o *Port) GetVirtualNetworksOk() (*[]VirtualNetwork, bool)` GetVirtualNetworksOk returns a tuple with the VirtualNetworks field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualNetworks -`func (o *Port) SetVirtualNetworks(v []Href)` +`func (o *Port) SetVirtualNetworks(v []VirtualNetwork)` SetVirtualNetworks sets VirtualNetworks field to given value. diff --git a/services/metalv1/model_port.go b/services/metalv1/model_port.go index 17b235cf..9af9575b 100644 --- a/services/metalv1/model_port.go +++ b/services/metalv1/model_port.go @@ -30,7 +30,7 @@ type Port struct { Type *PortType `json:"type,omitempty"` NetworkType *PortNetworkType `json:"network_type,omitempty"` NativeVirtualNetwork *VirtualNetwork `json:"native_virtual_network,omitempty"` - VirtualNetworks []Href `json:"virtual_networks,omitempty"` + VirtualNetworks []VirtualNetwork `json:"virtual_networks,omitempty"` AdditionalProperties map[string]interface{} } @@ -342,9 +342,9 @@ func (o *Port) SetNativeVirtualNetwork(v VirtualNetwork) { } // GetVirtualNetworks returns the VirtualNetworks field value if set, zero value otherwise. -func (o *Port) GetVirtualNetworks() []Href { +func (o *Port) GetVirtualNetworks() []VirtualNetwork { if o == nil || IsNil(o.VirtualNetworks) { - var ret []Href + var ret []VirtualNetwork return ret } return o.VirtualNetworks @@ -352,7 +352,7 @@ func (o *Port) GetVirtualNetworks() []Href { // GetVirtualNetworksOk returns a tuple with the VirtualNetworks field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Port) GetVirtualNetworksOk() ([]Href, bool) { +func (o *Port) GetVirtualNetworksOk() ([]VirtualNetwork, bool) { if o == nil || IsNil(o.VirtualNetworks) { return nil, false } @@ -368,8 +368,8 @@ func (o *Port) HasVirtualNetworks() bool { return false } -// SetVirtualNetworks gets a reference to the given []Href and assigns it to the VirtualNetworks field. -func (o *Port) SetVirtualNetworks(v []Href) { +// SetVirtualNetworks gets a reference to the given []VirtualNetwork and assigns it to the VirtualNetworks field. +func (o *Port) SetVirtualNetworks(v []VirtualNetwork) { o.VirtualNetworks = v }