From c561bb9e0192fab2f68234dd4fc28bb29cc7d560 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Mon, 1 Jun 2026 12:38:46 +0000 Subject: [PATCH 1/2] Generate vpn --- services/vpn/oas_commit | 2 +- .../model_gateway_status_response.go | 40 ++++++++++++++++++- .../vpn/v1alpha1api/model_routing_type.go | 2 +- .../v1api/model_gateway_status_response.go | 40 ++++++++++++++++++- services/vpn/v1api/model_routing_type.go | 2 +- .../model_gateway_status_response.go | 40 ++++++++++++++++++- services/vpn/v1beta1api/model_routing_type.go | 2 +- 7 files changed, 121 insertions(+), 7 deletions(-) diff --git a/services/vpn/oas_commit b/services/vpn/oas_commit index 197963130..ffaaf3db1 100644 --- a/services/vpn/oas_commit +++ b/services/vpn/oas_commit @@ -1 +1 @@ -aaefb53b64a370c3789a354b30afa63de4180751 +18e00f0b26b2cd1f3403bbf0c2e64e7fe333b4d1 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/v1alpha1api/model_routing_type.go b/services/vpn/v1alpha1api/model_routing_type.go index bad95fd38..f4521e13c 100644 --- a/services/vpn/v1alpha1api/model_routing_type.go +++ b/services/vpn/v1alpha1api/model_routing_type.go @@ -15,7 +15,7 @@ import ( "fmt" ) -// RoutingType the model 'RoutingType' +// RoutingType Once the gateway is created, it is not possible to change this attribute. type RoutingType string // List of RoutingType 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/v1api/model_routing_type.go b/services/vpn/v1api/model_routing_type.go index 60f3f973a..d1d05fa7b 100644 --- a/services/vpn/v1api/model_routing_type.go +++ b/services/vpn/v1api/model_routing_type.go @@ -15,7 +15,7 @@ import ( "fmt" ) -// RoutingType the model 'RoutingType' +// RoutingType Once the gateway is created, it is not possible to change this attribute. type RoutingType string // List of RoutingType 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") diff --git a/services/vpn/v1beta1api/model_routing_type.go b/services/vpn/v1beta1api/model_routing_type.go index 3b9b2af2e..00c1c0068 100644 --- a/services/vpn/v1beta1api/model_routing_type.go +++ b/services/vpn/v1beta1api/model_routing_type.go @@ -15,7 +15,7 @@ import ( "fmt" ) -// RoutingType the model 'RoutingType' +// RoutingType Once the gateway is created, it is not possible to change this attribute. type RoutingType string // List of RoutingType From ccb351244c2d8b5b8899a742df88b9ebf0a99f8e Mon Sep 17 00:00:00 2001 From: Manuel Vaas Date: Tue, 2 Jun 2026 09:49:09 +0200 Subject: [PATCH 2/2] add changelog --- CHANGELOG.md | 6 ++++++ services/vpn/CHANGELOG.md | 7 +++++++ services/vpn/VERSION | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c980a1260..146ee94df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -610,6 +610,12 @@ - **Breaking change:** `LocalAsn` is now marked as required (aligned with api) and no longer a pointer - `v1beta1api`: Align package to latest API specification - `v1alpha1api`: Align package to latest API specification + - [v0.14.0](services/vpn/CHANGELOG.md#v0140) + - `v1api`: + - **Feature:** Add `ErrorMessage` field to `GatewayStatusResponse` + - **Improvement:** Add description that `RoutingType` can only be set at the creation + - `v1beta1api`: Align package to latest API specification + - `v1alpha1api`: Align package to latest API specification ## Release (2026-04-07) - `alb`: [v0.13.1](services/alb/CHANGELOG.md#v0131) diff --git a/services/vpn/CHANGELOG.md b/services/vpn/CHANGELOG.md index 9a64f8003..a641bccb0 100644 --- a/services/vpn/CHANGELOG.md +++ b/services/vpn/CHANGELOG.md @@ -1,3 +1,10 @@ +## v0.14.0 + - `v1api`: + - **Feature:** Add `ErrorMessage` field to `GatewayStatusResponse` + - **Improvement:** Add description that `RoutingType` can only be set at the creation + - `v1beta1api`: Align package to latest API specification + - `v1alpha1api`: Align package to latest API specification + ## v0.13.0 - `v1api`: - **Breaking change:** `LocalAsn` is now marked as required (aligned with api) and no longer a pointer diff --git a/services/vpn/VERSION b/services/vpn/VERSION index 6345c2168..4a29f93bb 100644 --- a/services/vpn/VERSION +++ b/services/vpn/VERSION @@ -1 +1 @@ -v0.13.0 +v0.14.0