From 8661f5cac131cb46dc1c70de15c034ce6577e1fe Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 18 Dec 2025 17:08:28 +0000 Subject: [PATCH 1/3] Generate sfs --- services/sfs/configuration.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/services/sfs/configuration.go b/services/sfs/configuration.go index eb65cb89d..4e9c7595c 100644 --- a/services/sfs/configuration.go +++ b/services/sfs/configuration.go @@ -22,15 +22,12 @@ func NewConfiguration() *config.Configuration { Debug: false, Servers: config.ServerConfigurations{ { - URL: "https://sfs.api.{region}stackit.cloud", + URL: "https://sfs.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 7aa66f188c19d088312aa28626590a6712cdf07a Mon Sep 17 00:00:00 2001 From: Marcel Jacek Date: Thu, 18 Dec 2025 18:21:34 +0100 Subject: [PATCH 2/3] add changelog and bump version --- CHANGELOG.md | 7 +++++-- services/sfs/CHANGELOG.md | 3 +++ services/sfs/VERSION | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ce3b101e..cdd23f8ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ ## Release (2025-XX-YY) -- `sfs`: [v0.1.0](services/sfs/CHANGELOG.md#v010) - - **New**: STACKIT File Storage (SFS) service +- `sfs`: + - [v0.2.0](services/sfs/CHANGELOG.md) + - **Breaking change:** Remove region configuration in `APIClient` + - [v0.1.0](services/sfs/CHANGELOG.md#v010) + - **New**: STACKIT File Storage (SFS) service - `scf`: - [v0.4.0](services/scf/CHANGELOG.md#v040) - **Feature:** Add new model structs `SpaceWithIsolationSegment` and `SpaceWithIsolationSegmentAllOf` diff --git a/services/sfs/CHANGELOG.md b/services/sfs/CHANGELOG.md index c6ee36255..686179bbc 100644 --- a/services/sfs/CHANGELOG.md +++ b/services/sfs/CHANGELOG.md @@ -1,2 +1,5 @@ +## v0.2.0 +- **Breaking change:** Remove region configuration in `APIClient` + ## v0.1.0 - **New**: STACKIT File Storage (SFS) service diff --git a/services/sfs/VERSION b/services/sfs/VERSION index 9ff151c5b..81fd7ba08 100644 --- a/services/sfs/VERSION +++ b/services/sfs/VERSION @@ -1 +1 @@ -v0.1.0 \ No newline at end of file +v0.2.0 \ No newline at end of file From 8f5963364ba9d0c011b0ce94842325dfd763f661 Mon Sep 17 00:00:00 2001 From: Marcel Jacek Date: Fri, 19 Dec 2025 09:10:42 +0100 Subject: [PATCH 3/3] review feedback - adjust examples --- examples/sfs/resourcepool/resourcepool.go | 3 +-- examples/sfs/share/share.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/sfs/resourcepool/resourcepool.go b/examples/sfs/resourcepool/resourcepool.go index a0a4235de..b6a6ac2d4 100644 --- a/examples/sfs/resourcepool/resourcepool.go +++ b/examples/sfs/resourcepool/resourcepool.go @@ -5,7 +5,6 @@ import ( "fmt" "os" - "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/utils" "github.com/stackitcloud/stackit-sdk-go/services/sfs" "github.com/stackitcloud/stackit-sdk-go/services/sfs/wait" @@ -17,7 +16,7 @@ func main() { region := "eu01" // Create a new API client, that uses default authentication and configuration - sfsClient, err := sfs.NewAPIClient(config.WithRegion(region)) + sfsClient, err := sfs.NewAPIClient() if err != nil { fmt.Fprintf(os.Stderr, "[sfs API] Creating API client: %v\n", err) os.Exit(1) diff --git a/examples/sfs/share/share.go b/examples/sfs/share/share.go index 0ca1d7849..a3373b30b 100644 --- a/examples/sfs/share/share.go +++ b/examples/sfs/share/share.go @@ -5,7 +5,6 @@ import ( "fmt" "os" - "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/utils" "github.com/stackitcloud/stackit-sdk-go/services/sfs" "github.com/stackitcloud/stackit-sdk-go/services/sfs/wait" @@ -17,7 +16,7 @@ func main() { region := "eu01" // Create a new API client, that uses default authentication and configuration - sfsClient, err := sfs.NewAPIClient(config.WithRegion(region)) + sfsClient, err := sfs.NewAPIClient() if err != nil { fmt.Fprintf(os.Stderr, "[sfs API] Creating API client: %v\n", err) os.Exit(1)