From ace1aee7ab9e2a5e4dbd9a27ee8cbbb880c73dfb Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Tue, 19 May 2026 07:16:33 +0000 Subject: [PATCH 1/4] Generate vpn --- services/vpn/oas_commit | 2 +- services/vpn/v1alpha1api/configuration.go | 7 ++----- services/vpn/v1api/configuration.go | 7 ++----- services/vpn/v1beta1api/configuration.go | 7 ++----- 4 files changed, 7 insertions(+), 16 deletions(-) diff --git a/services/vpn/oas_commit b/services/vpn/oas_commit index 72dcff29c..f48bcc7c0 100644 --- a/services/vpn/oas_commit +++ b/services/vpn/oas_commit @@ -1 +1 @@ -0867dbbb09a8032415dc6debe18bc392bd58ba42 +8b46fbdf489c4455ccb1e0a9615ba7270ae260e8 diff --git a/services/vpn/v1alpha1api/configuration.go b/services/vpn/v1alpha1api/configuration.go index d633ca395..c7ab31822 100644 --- a/services/vpn/v1alpha1api/configuration.go +++ b/services/vpn/v1alpha1api/configuration.go @@ -21,15 +21,12 @@ func NewConfiguration() *config.Configuration { Debug: false, Servers: config.ServerConfigurations{ { - URL: "https://vpn.api.{region}stackit.cloud", + URL: "https://vpn.api.stackit.cloud", Description: "No description provided", Variables: map[string]config.ServerVariable{ "region": { Description: "No description provided", - DefaultValue: "eu01.", - EnumValues: []string{ - "eu01.", - }, + DefaultValue: "global", }, }, }, diff --git a/services/vpn/v1api/configuration.go b/services/vpn/v1api/configuration.go index 3542308e4..7d953f9fd 100644 --- a/services/vpn/v1api/configuration.go +++ b/services/vpn/v1api/configuration.go @@ -21,15 +21,12 @@ func NewConfiguration() *config.Configuration { Debug: false, Servers: config.ServerConfigurations{ { - URL: "https://vpn.api.{region}stackit.cloud", + URL: "https://vpn.api.stackit.cloud", Description: "No description provided", Variables: map[string]config.ServerVariable{ "region": { Description: "No description provided", - DefaultValue: "eu01.", - EnumValues: []string{ - "eu01.", - }, + DefaultValue: "global", }, }, }, diff --git a/services/vpn/v1beta1api/configuration.go b/services/vpn/v1beta1api/configuration.go index 3a207642f..12acf135e 100644 --- a/services/vpn/v1beta1api/configuration.go +++ b/services/vpn/v1beta1api/configuration.go @@ -21,15 +21,12 @@ func NewConfiguration() *config.Configuration { Debug: false, Servers: config.ServerConfigurations{ { - URL: "https://vpn.api.{region}stackit.cloud", + URL: "https://vpn.api.stackit.cloud", Description: "No description provided", Variables: map[string]config.ServerVariable{ "region": { Description: "No description provided", - DefaultValue: "eu01.", - EnumValues: []string{ - "eu01.", - }, + DefaultValue: "global", }, }, }, From 5fe44079deb857629607b11a75ad5afc4fab4c31 Mon Sep 17 00:00:00 2001 From: "Inter, Sven" Date: Tue, 19 May 2026 09:57:19 +0200 Subject: [PATCH 2/4] chore(vpn): set VPN to v0.9.0 and add changelog --- CHANGELOG.md | 5 +++++ examples/vpn/vpn.go | 5 +---- services/vpn/CHANGELOG.md | 6 ++++++ services/vpn/VERSION | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27ef62a2c..c3b279d69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -481,6 +481,11 @@ - [v0.8.0](services/vpn/CHANGELOG.md#v080) - `v1api`: - **Feature:** Add new wait handlers for gateway creation (`CreateGatewayWaitHandler`), update (`UpdateGatewayWaitHandler`), and deletion (`DeleteGatewayWaitHandler`) + - [v0.9.0](services/vpn/CHANGELOG.md#v090) + - `v1api`: + - **Breaking change:** The VPN API endpoint is now global. The base URL no longer contains a region segment (`https://vpn.api.stackit.cloud` instead of `https://vpn.api.{region}stackit.cloud`). Remove `config.WithRegion(region)` from your client initialization: `vpnClient, err := vpn.NewAPIClient()`. + - `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/examples/vpn/vpn.go b/examples/vpn/vpn.go index 14c295baf..80144185a 100644 --- a/examples/vpn/vpn.go +++ b/examples/vpn/vpn.go @@ -5,7 +5,6 @@ import ( "fmt" "os" - "github.com/stackitcloud/stackit-sdk-go/core/config" vpn "github.com/stackitcloud/stackit-sdk-go/services/vpn/v1api" ) @@ -23,9 +22,7 @@ func main() { psk := "Super.$ecret_Shared3Key12345" // Create a new API client, that uses default authentication and configuration - vpnClient, err := vpn.NewAPIClient( - config.WithRegion(region), - ) + vpnClient, err := vpn.NewAPIClient() if err != nil { fmt.Fprintf(os.Stderr, "Creating API client: %v\n", err) os.Exit(1) diff --git a/services/vpn/CHANGELOG.md b/services/vpn/CHANGELOG.md index e35c178a7..973554eb7 100644 --- a/services/vpn/CHANGELOG.md +++ b/services/vpn/CHANGELOG.md @@ -1,3 +1,9 @@ +## v0.9.0 +- `v1api`: + - **Breaking change:** The VPN API endpoint is now global. The base URL no longer contains a region segment (`https://vpn.api.stackit.cloud` instead of `https://vpn.api.{region}stackit.cloud`). Remove `config.WithRegion(region)` from your client initialization: `vpnClient, err := vpn.NewAPIClient()`. +- `v1beta1api`: Align package to latest API specification +- `v1alpha1api`: Align package to latest API specification + ## v0.8.0 - `v1api`: - **Feature:** Add new wait handlers for gateway creation (`CreateGatewayWaitHandler`), update (`UpdateGatewayWaitHandler`), and deletion (`DeleteGatewayWaitHandler`) diff --git a/services/vpn/VERSION b/services/vpn/VERSION index 4ea5cafac..7965b36d6 100644 --- a/services/vpn/VERSION +++ b/services/vpn/VERSION @@ -1 +1 @@ -v0.8.0 \ No newline at end of file +v0.9.0 \ No newline at end of file From efb1eed11fe06bd76be0f3067932a645fbe9e3a9 Mon Sep 17 00:00:00 2001 From: "Inter, Sven" Date: Tue, 19 May 2026 10:27:48 +0200 Subject: [PATCH 3/4] fix(vpn): update breaking change description for global API server URL --- CHANGELOG.md | 2 +- services/vpn/CHANGELOG.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3b279d69..215cc0f5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -483,7 +483,7 @@ - **Feature:** Add new wait handlers for gateway creation (`CreateGatewayWaitHandler`), update (`UpdateGatewayWaitHandler`), and deletion (`DeleteGatewayWaitHandler`) - [v0.9.0](services/vpn/CHANGELOG.md#v090) - `v1api`: - - **Breaking change:** The VPN API endpoint is now global. The base URL no longer contains a region segment (`https://vpn.api.stackit.cloud` instead of `https://vpn.api.{region}stackit.cloud`). Remove `config.WithRegion(region)` from your client initialization: `vpnClient, err := vpn.NewAPIClient()`. + - **Breaking change:** Switch from regional to global API server URL. `config.WithRegion(...)` should not be used during client initialization anymore. - `v1beta1api`: Align package to latest API specification - `v1alpha1api`: Align package to latest API specification diff --git a/services/vpn/CHANGELOG.md b/services/vpn/CHANGELOG.md index 973554eb7..142b9e29b 100644 --- a/services/vpn/CHANGELOG.md +++ b/services/vpn/CHANGELOG.md @@ -1,6 +1,6 @@ ## v0.9.0 - `v1api`: - - **Breaking change:** The VPN API endpoint is now global. The base URL no longer contains a region segment (`https://vpn.api.stackit.cloud` instead of `https://vpn.api.{region}stackit.cloud`). Remove `config.WithRegion(region)` from your client initialization: `vpnClient, err := vpn.NewAPIClient()`. + - **Breaking change:** Switch from regional to global API server URL. `config.WithRegion(...)` should not be used during client initialization anymore. - `v1beta1api`: Align package to latest API specification - `v1alpha1api`: Align package to latest API specification From f84ef24ac7488e8f3774d147b1fc798e32d4836a Mon Sep 17 00:00:00 2001 From: "Inter, Sven" Date: Tue, 19 May 2026 11:19:01 +0200 Subject: [PATCH 4/4] fix(vpn): sync & tidy --- examples/vpn/go.mod | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/vpn/go.mod b/examples/vpn/go.mod index 4ca5551ad..be4a1fc7c 100644 --- a/examples/vpn/go.mod +++ b/examples/vpn/go.mod @@ -5,12 +5,10 @@ go 1.25 // This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. replace github.com/stackitcloud/stackit-sdk-go/services/vpn => ../../services/vpn -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.26.0 - github.com/stackitcloud/stackit-sdk-go/services/vpn v0.8.0 -) +require github.com/stackitcloud/stackit-sdk-go/services/vpn v0.8.0 require ( github.com/golang-jwt/jwt/v5 v5.3.1 // indirect github.com/google/uuid v1.6.0 // indirect + github.com/stackitcloud/stackit-sdk-go/core v0.26.0 // indirect )