diff --git a/api/openapi.yaml b/api/openapi.yaml index 5a6c3ddf8..e527ae8ac 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -134000,7 +134000,6 @@ components: - display - family - id - - nat_outside - url IPAddressRequest: type: object diff --git a/model_interface_type_label.go b/model_interface_type_label.go index a91c049d0..f903ddd33 100644 --- a/model_interface_type_label.go +++ b/model_interface_type_label.go @@ -23,6 +23,7 @@ const ( INTERFACETYPELABEL_VIRTUAL InterfaceTypeLabel = "Virtual" INTERFACETYPELABEL_BRIDGE InterfaceTypeLabel = "Bridge" INTERFACETYPELABEL_LINK_AGGREGATION_GROUP__LAG InterfaceTypeLabel = "Link Aggregation Group (LAG)" + INTERFACETYPELABEL__100_BASE_FX__10_100_ME InterfaceTypeLabel = "100BASE-FX (10/100ME)" INTERFACETYPELABEL__100_BASE_FX__10_100_ME_FIBER InterfaceTypeLabel = "100BASE-FX (10/100ME FIBER)" INTERFACETYPELABEL__100_BASE_LFX__10_100_ME_FIBER InterfaceTypeLabel = "100BASE-LFX (10/100ME FIBER)" INTERFACETYPELABEL__100_BASE_TX__10_100_ME InterfaceTypeLabel = "100BASE-TX (10/100ME)" @@ -158,6 +159,7 @@ var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{ "Virtual", "Bridge", "Link Aggregation Group (LAG)", + "100BASE-FX (10/100ME)", "100BASE-FX (10/100ME FIBER)", "100BASE-LFX (10/100ME FIBER)", "100BASE-TX (10/100ME)", diff --git a/model_ip_address.go b/model_ip_address.go index 78e39c8a4..f7fb86e00 100644 --- a/model_ip_address.go +++ b/model_ip_address.go @@ -35,7 +35,7 @@ type IPAddress struct { AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` AssignedObject interface{} `json:"assigned_object,omitempty"` NatInside NullableNestedIPAddress `json:"nat_inside,omitempty"` - NatOutside []NestedIPAddress `json:"nat_outside"` + NatOutside []NestedIPAddress `json:"nat_outside,omitempty"` // Hostname or FQDN (not case-sensitive) DnsName *string `json:"dns_name,omitempty" validate:"regexp=^([0-9A-Za-z_-]+|\\\\*)(\\\\.[0-9A-Za-z_-]+)*\\\\.?$"` Description *string `json:"description,omitempty"` @@ -53,14 +53,13 @@ type _IPAddress IPAddress // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string, natOutside []NestedIPAddress) *IPAddress { +func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string) *IPAddress { this := IPAddress{} this.Id = id this.Url = url this.Display = display this.Family = family this.Address = address - this.NatOutside = natOutside return &this } @@ -536,9 +535,9 @@ func (o *IPAddress) UnsetNatInside() { o.NatInside.Unset() } -// GetNatOutside returns the NatOutside field value +// GetNatOutside returns the NatOutside field value if set, zero value otherwise. func (o *IPAddress) GetNatOutside() []NestedIPAddress { - if o == nil { + if o == nil || IsNil(o.NatOutside) { var ret []NestedIPAddress return ret } @@ -546,16 +545,24 @@ func (o *IPAddress) GetNatOutside() []NestedIPAddress { return o.NatOutside } -// GetNatOutsideOk returns a tuple with the NatOutside field value +// GetNatOutsideOk returns a tuple with the NatOutside field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IPAddress) GetNatOutsideOk() ([]NestedIPAddress, bool) { - if o == nil { + if o == nil || IsNil(o.NatOutside) { return nil, false } return o.NatOutside, true } -// SetNatOutside sets field value +// HasNatOutside returns a boolean if a field has been set. +func (o *IPAddress) HasNatOutside() bool { + if o != nil && !IsNil(o.NatOutside) { + return true + } + return false +} + +// SetNatOutside gets a reference to the given []NestedIPAddress and assigns it to the NatOutside field. func (o *IPAddress) SetNatOutside(v []NestedIPAddress) { o.NatOutside = v } @@ -848,7 +855,9 @@ func (o IPAddress) ToMap() (map[string]interface{}, error) { if o.NatInside.IsSet() { toSerialize["nat_inside"] = o.NatInside.Get() } - toSerialize["nat_outside"] = o.NatOutside + if !IsNil(o.NatOutside) { + toSerialize["nat_outside"] = o.NatOutside + } if !IsNil(o.DnsName) { toSerialize["dns_name"] = o.DnsName } @@ -888,7 +897,6 @@ func (o *IPAddress) UnmarshalJSON(data []byte) (err error) { "display", "family", "address", - "nat_outside", } // defaultValueFuncMap captures the default values for required properties.