From 2f881e9fb5c9a9c71bde9fa6aae810ae404605a4 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 28 May 2026 12:57:46 +0000 Subject: [PATCH] Generate vpn --- services/vpn/oas_commit | 2 +- .../model_gateway_status_response.go | 40 ++++++++++++++++++- .../v1api/model_gateway_status_response.go | 40 ++++++++++++++++++- .../model_gateway_status_response.go | 40 ++++++++++++++++++- 4 files changed, 118 insertions(+), 4 deletions(-) diff --git a/services/vpn/oas_commit b/services/vpn/oas_commit index 197963130..9fb946c55 100644 --- a/services/vpn/oas_commit +++ b/services/vpn/oas_commit @@ -1 +1 @@ -aaefb53b64a370c3789a354b30afa63de4180751 +a06cb6347c39c30aa1f6e1a1e0a25805978b4fb0 diff --git a/services/vpn/v1alpha1api/model_gateway_status_response.go b/services/vpn/v1alpha1api/model_gateway_status_response.go index 4515853a9..df5222012 100644 --- a/services/vpn/v1alpha1api/model_gateway_status_response.go +++ b/services/vpn/v1alpha1api/model_gateway_status_response.go @@ -21,7 +21,9 @@ var _ MappedNullable = &GatewayStatusResponse{} type GatewayStatusResponse struct { Connections []ConnectionStatusResponse `json:"connections,omitempty"` // Name of the Gateway instance. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + // A descriptive message provided when the gateway is in an error state. + ErrorMessage *string `json:"errorMessage,omitempty"` GatewayStatus *GatewayStatus `json:"gatewayStatus,omitempty"` // UUID of the Gateway instance. Id *string `json:"id,omitempty"` @@ -112,6 +114,38 @@ func (o *GatewayStatusResponse) SetDisplayName(v string) { o.DisplayName = &v } +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *GatewayStatusResponse) GetErrorMessage() string { + if o == nil || IsNil(o.ErrorMessage) { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GatewayStatusResponse) GetErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.ErrorMessage) { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *GatewayStatusResponse) HasErrorMessage() bool { + if o != nil && !IsNil(o.ErrorMessage) { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *GatewayStatusResponse) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + // GetGatewayStatus returns the GatewayStatus field value if set, zero value otherwise. func (o *GatewayStatusResponse) GetGatewayStatus() GatewayStatus { if o == nil || IsNil(o.GatewayStatus) { @@ -224,6 +258,9 @@ func (o GatewayStatusResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } + if !IsNil(o.ErrorMessage) { + toSerialize["errorMessage"] = o.ErrorMessage + } if !IsNil(o.GatewayStatus) { toSerialize["gatewayStatus"] = o.GatewayStatus } @@ -257,6 +294,7 @@ func (o *GatewayStatusResponse) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "connections") delete(additionalProperties, "displayName") + delete(additionalProperties, "errorMessage") delete(additionalProperties, "gatewayStatus") delete(additionalProperties, "id") delete(additionalProperties, "tunnels") diff --git a/services/vpn/v1api/model_gateway_status_response.go b/services/vpn/v1api/model_gateway_status_response.go index 177fec5c9..c726a09ce 100644 --- a/services/vpn/v1api/model_gateway_status_response.go +++ b/services/vpn/v1api/model_gateway_status_response.go @@ -21,7 +21,9 @@ var _ MappedNullable = &GatewayStatusResponse{} type GatewayStatusResponse struct { Connections []ConnectionStatusResponse `json:"connections,omitempty"` // Name of the Gateway instance. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + // A descriptive message provided when the gateway is in an error state. + ErrorMessage *string `json:"errorMessage,omitempty"` GatewayStatus *GatewayStatus `json:"gatewayStatus,omitempty"` // UUID of the Gateway instance. Id *string `json:"id,omitempty"` @@ -112,6 +114,38 @@ func (o *GatewayStatusResponse) SetDisplayName(v string) { o.DisplayName = &v } +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *GatewayStatusResponse) GetErrorMessage() string { + if o == nil || IsNil(o.ErrorMessage) { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GatewayStatusResponse) GetErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.ErrorMessage) { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *GatewayStatusResponse) HasErrorMessage() bool { + if o != nil && !IsNil(o.ErrorMessage) { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *GatewayStatusResponse) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + // GetGatewayStatus returns the GatewayStatus field value if set, zero value otherwise. func (o *GatewayStatusResponse) GetGatewayStatus() GatewayStatus { if o == nil || IsNil(o.GatewayStatus) { @@ -224,6 +258,9 @@ func (o GatewayStatusResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } + if !IsNil(o.ErrorMessage) { + toSerialize["errorMessage"] = o.ErrorMessage + } if !IsNil(o.GatewayStatus) { toSerialize["gatewayStatus"] = o.GatewayStatus } @@ -257,6 +294,7 @@ func (o *GatewayStatusResponse) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "connections") delete(additionalProperties, "displayName") + delete(additionalProperties, "errorMessage") delete(additionalProperties, "gatewayStatus") delete(additionalProperties, "id") delete(additionalProperties, "tunnels") diff --git a/services/vpn/v1beta1api/model_gateway_status_response.go b/services/vpn/v1beta1api/model_gateway_status_response.go index 6b02298f1..a888e6001 100644 --- a/services/vpn/v1beta1api/model_gateway_status_response.go +++ b/services/vpn/v1beta1api/model_gateway_status_response.go @@ -21,7 +21,9 @@ var _ MappedNullable = &GatewayStatusResponse{} type GatewayStatusResponse struct { Connections []ConnectionStatusResponse `json:"connections,omitempty"` // Name of the Gateway instance. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + // A descriptive message provided when the gateway is in an error state. + ErrorMessage *string `json:"errorMessage,omitempty"` GatewayStatus *GatewayStatus `json:"gatewayStatus,omitempty"` // UUID of the Gateway instance. Id *string `json:"id,omitempty"` @@ -112,6 +114,38 @@ func (o *GatewayStatusResponse) SetDisplayName(v string) { o.DisplayName = &v } +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *GatewayStatusResponse) GetErrorMessage() string { + if o == nil || IsNil(o.ErrorMessage) { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GatewayStatusResponse) GetErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.ErrorMessage) { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *GatewayStatusResponse) HasErrorMessage() bool { + if o != nil && !IsNil(o.ErrorMessage) { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *GatewayStatusResponse) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + // GetGatewayStatus returns the GatewayStatus field value if set, zero value otherwise. func (o *GatewayStatusResponse) GetGatewayStatus() GatewayStatus { if o == nil || IsNil(o.GatewayStatus) { @@ -224,6 +258,9 @@ func (o GatewayStatusResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } + if !IsNil(o.ErrorMessage) { + toSerialize["errorMessage"] = o.ErrorMessage + } if !IsNil(o.GatewayStatus) { toSerialize["gatewayStatus"] = o.GatewayStatus } @@ -257,6 +294,7 @@ func (o *GatewayStatusResponse) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "connections") delete(additionalProperties, "displayName") + delete(additionalProperties, "errorMessage") delete(additionalProperties, "gatewayStatus") delete(additionalProperties, "id") delete(additionalProperties, "tunnels")