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 }