From fc945a90ceecf962408d94e3b49f8159d0305d23 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 21 May 2026 06:58:39 +0000 Subject: [PATCH] Generate vpn --- services/vpn/oas_commit | 2 +- services/vpn/v1alpha1api/model_vpn_tunnels.go | 40 ++++++++++++++++++- services/vpn/v1api/model_vpn_tunnels.go | 40 ++++++++++++++++++- services/vpn/v1beta1api/model_vpn_tunnels.go | 40 ++++++++++++++++++- 4 files changed, 118 insertions(+), 4 deletions(-) diff --git a/services/vpn/oas_commit b/services/vpn/oas_commit index f48bcc7c0..0e998ced2 100644 --- a/services/vpn/oas_commit +++ b/services/vpn/oas_commit @@ -1 +1 @@ -8b46fbdf489c4455ccb1e0a9615ba7270ae260e8 +6156a6ae82d7f9f27c3782d6d5122b1602697e1d diff --git a/services/vpn/v1alpha1api/model_vpn_tunnels.go b/services/vpn/v1alpha1api/model_vpn_tunnels.go index 6e3d9b20f..a572d61f2 100644 --- a/services/vpn/v1alpha1api/model_vpn_tunnels.go +++ b/services/vpn/v1alpha1api/model_vpn_tunnels.go @@ -21,7 +21,9 @@ var _ MappedNullable = &VPNTunnels{} type VPNTunnels struct { BgpStatus NullableBGPStatus `json:"bgpStatus,omitempty"` InstanceState *GatewayStatus `json:"instanceState,omitempty"` - Name *string `json:"name,omitempty"` + // The IPv4 address of the endpoint in the SNA. + InternalNextHopIP *string `json:"internalNextHopIP,omitempty"` + Name *string `json:"name,omitempty"` // The public IPv4 address of this endpoint. PublicIP *string `json:"publicIP,omitempty"` AdditionalProperties map[string]interface{} @@ -121,6 +123,38 @@ func (o *VPNTunnels) SetInstanceState(v GatewayStatus) { o.InstanceState = &v } +// GetInternalNextHopIP returns the InternalNextHopIP field value if set, zero value otherwise. +func (o *VPNTunnels) GetInternalNextHopIP() string { + if o == nil || IsNil(o.InternalNextHopIP) { + var ret string + return ret + } + return *o.InternalNextHopIP +} + +// GetInternalNextHopIPOk returns a tuple with the InternalNextHopIP field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VPNTunnels) GetInternalNextHopIPOk() (*string, bool) { + if o == nil || IsNil(o.InternalNextHopIP) { + return nil, false + } + return o.InternalNextHopIP, true +} + +// HasInternalNextHopIP returns a boolean if a field has been set. +func (o *VPNTunnels) HasInternalNextHopIP() bool { + if o != nil && !IsNil(o.InternalNextHopIP) { + return true + } + + return false +} + +// SetInternalNextHopIP gets a reference to the given string and assigns it to the InternalNextHopIP field. +func (o *VPNTunnels) SetInternalNextHopIP(v string) { + o.InternalNextHopIP = &v +} + // GetName returns the Name field value if set, zero value otherwise. func (o *VPNTunnels) GetName() string { if o == nil || IsNil(o.Name) { @@ -201,6 +235,9 @@ func (o VPNTunnels) ToMap() (map[string]interface{}, error) { if !IsNil(o.InstanceState) { toSerialize["instanceState"] = o.InstanceState } + if !IsNil(o.InternalNextHopIP) { + toSerialize["internalNextHopIP"] = o.InternalNextHopIP + } if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -231,6 +268,7 @@ func (o *VPNTunnels) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "bgpStatus") delete(additionalProperties, "instanceState") + delete(additionalProperties, "internalNextHopIP") delete(additionalProperties, "name") delete(additionalProperties, "publicIP") o.AdditionalProperties = additionalProperties diff --git a/services/vpn/v1api/model_vpn_tunnels.go b/services/vpn/v1api/model_vpn_tunnels.go index e2225a69d..f3ba3dab6 100644 --- a/services/vpn/v1api/model_vpn_tunnels.go +++ b/services/vpn/v1api/model_vpn_tunnels.go @@ -21,7 +21,9 @@ var _ MappedNullable = &VPNTunnels{} type VPNTunnels struct { BgpStatus NullableBGPStatus `json:"bgpStatus,omitempty"` InstanceState *GatewayStatus `json:"instanceState,omitempty"` - Name *string `json:"name,omitempty"` + // The IPv4 address of the endpoint in the SNA. + InternalNextHopIP *string `json:"internalNextHopIP,omitempty"` + Name *string `json:"name,omitempty"` // The public IPv4 address of this endpoint. PublicIP *string `json:"publicIP,omitempty"` AdditionalProperties map[string]interface{} @@ -121,6 +123,38 @@ func (o *VPNTunnels) SetInstanceState(v GatewayStatus) { o.InstanceState = &v } +// GetInternalNextHopIP returns the InternalNextHopIP field value if set, zero value otherwise. +func (o *VPNTunnels) GetInternalNextHopIP() string { + if o == nil || IsNil(o.InternalNextHopIP) { + var ret string + return ret + } + return *o.InternalNextHopIP +} + +// GetInternalNextHopIPOk returns a tuple with the InternalNextHopIP field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VPNTunnels) GetInternalNextHopIPOk() (*string, bool) { + if o == nil || IsNil(o.InternalNextHopIP) { + return nil, false + } + return o.InternalNextHopIP, true +} + +// HasInternalNextHopIP returns a boolean if a field has been set. +func (o *VPNTunnels) HasInternalNextHopIP() bool { + if o != nil && !IsNil(o.InternalNextHopIP) { + return true + } + + return false +} + +// SetInternalNextHopIP gets a reference to the given string and assigns it to the InternalNextHopIP field. +func (o *VPNTunnels) SetInternalNextHopIP(v string) { + o.InternalNextHopIP = &v +} + // GetName returns the Name field value if set, zero value otherwise. func (o *VPNTunnels) GetName() string { if o == nil || IsNil(o.Name) { @@ -201,6 +235,9 @@ func (o VPNTunnels) ToMap() (map[string]interface{}, error) { if !IsNil(o.InstanceState) { toSerialize["instanceState"] = o.InstanceState } + if !IsNil(o.InternalNextHopIP) { + toSerialize["internalNextHopIP"] = o.InternalNextHopIP + } if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -231,6 +268,7 @@ func (o *VPNTunnels) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "bgpStatus") delete(additionalProperties, "instanceState") + delete(additionalProperties, "internalNextHopIP") delete(additionalProperties, "name") delete(additionalProperties, "publicIP") o.AdditionalProperties = additionalProperties diff --git a/services/vpn/v1beta1api/model_vpn_tunnels.go b/services/vpn/v1beta1api/model_vpn_tunnels.go index 53f99ea01..ee485d48a 100644 --- a/services/vpn/v1beta1api/model_vpn_tunnels.go +++ b/services/vpn/v1beta1api/model_vpn_tunnels.go @@ -21,7 +21,9 @@ var _ MappedNullable = &VPNTunnels{} type VPNTunnels struct { BgpStatus NullableBGPStatus `json:"bgpStatus,omitempty"` InstanceState *GatewayStatus `json:"instanceState,omitempty"` - Name *string `json:"name,omitempty"` + // The IPv4 address of the endpoint in the SNA. + InternalNextHopIP *string `json:"internalNextHopIP,omitempty"` + Name *string `json:"name,omitempty"` // The public IPv4 address of this endpoint. PublicIP *string `json:"publicIP,omitempty"` AdditionalProperties map[string]interface{} @@ -121,6 +123,38 @@ func (o *VPNTunnels) SetInstanceState(v GatewayStatus) { o.InstanceState = &v } +// GetInternalNextHopIP returns the InternalNextHopIP field value if set, zero value otherwise. +func (o *VPNTunnels) GetInternalNextHopIP() string { + if o == nil || IsNil(o.InternalNextHopIP) { + var ret string + return ret + } + return *o.InternalNextHopIP +} + +// GetInternalNextHopIPOk returns a tuple with the InternalNextHopIP field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VPNTunnels) GetInternalNextHopIPOk() (*string, bool) { + if o == nil || IsNil(o.InternalNextHopIP) { + return nil, false + } + return o.InternalNextHopIP, true +} + +// HasInternalNextHopIP returns a boolean if a field has been set. +func (o *VPNTunnels) HasInternalNextHopIP() bool { + if o != nil && !IsNil(o.InternalNextHopIP) { + return true + } + + return false +} + +// SetInternalNextHopIP gets a reference to the given string and assigns it to the InternalNextHopIP field. +func (o *VPNTunnels) SetInternalNextHopIP(v string) { + o.InternalNextHopIP = &v +} + // GetName returns the Name field value if set, zero value otherwise. func (o *VPNTunnels) GetName() string { if o == nil || IsNil(o.Name) { @@ -201,6 +235,9 @@ func (o VPNTunnels) ToMap() (map[string]interface{}, error) { if !IsNil(o.InstanceState) { toSerialize["instanceState"] = o.InstanceState } + if !IsNil(o.InternalNextHopIP) { + toSerialize["internalNextHopIP"] = o.InternalNextHopIP + } if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -231,6 +268,7 @@ func (o *VPNTunnels) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "bgpStatus") delete(additionalProperties, "instanceState") + delete(additionalProperties, "internalNextHopIP") delete(additionalProperties, "name") delete(additionalProperties, "publicIP") o.AdditionalProperties = additionalProperties