Skip to content

Commit 5baf31f

Browse files
Generator: Update SDK /services/sfs (#4127)
* Generate sfs * add changelog and bump version * review feedback - adjust examples --------- Co-authored-by: Marcel Jacek <Marcel.Jacek@stackit.cloud>
1 parent 3d69803 commit 5baf31f

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
## Release (2025-XX-YY)
2-
- `sfs`: [v0.1.0](services/sfs/CHANGELOG.md#v010)
3-
- **New**: STACKIT File Storage (SFS) service
2+
- `sfs`:
3+
- [v0.2.0](services/sfs/CHANGELOG.md)
4+
- **Breaking change:** Remove region configuration in `APIClient`
5+
- [v0.1.0](services/sfs/CHANGELOG.md#v010)
6+
- **New**: STACKIT File Storage (SFS) service
47
- `scf`:
58
- [v0.4.0](services/scf/CHANGELOG.md#v040)
69
- **Feature:** Add new model structs `SpaceWithIsolationSegment` and `SpaceWithIsolationSegmentAllOf`

examples/sfs/resourcepool/resourcepool.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"fmt"
66
"os"
77

8-
"github.com/stackitcloud/stackit-sdk-go/core/config"
98
"github.com/stackitcloud/stackit-sdk-go/core/utils"
109
"github.com/stackitcloud/stackit-sdk-go/services/sfs"
1110
"github.com/stackitcloud/stackit-sdk-go/services/sfs/wait"
@@ -17,7 +16,7 @@ func main() {
1716
region := "eu01"
1817

1918
// Create a new API client, that uses default authentication and configuration
20-
sfsClient, err := sfs.NewAPIClient(config.WithRegion(region))
19+
sfsClient, err := sfs.NewAPIClient()
2120
if err != nil {
2221
fmt.Fprintf(os.Stderr, "[sfs API] Creating API client: %v\n", err)
2322
os.Exit(1)

examples/sfs/share/share.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"fmt"
66
"os"
77

8-
"github.com/stackitcloud/stackit-sdk-go/core/config"
98
"github.com/stackitcloud/stackit-sdk-go/core/utils"
109
"github.com/stackitcloud/stackit-sdk-go/services/sfs"
1110
"github.com/stackitcloud/stackit-sdk-go/services/sfs/wait"
@@ -17,7 +16,7 @@ func main() {
1716
region := "eu01"
1817

1918
// Create a new API client, that uses default authentication and configuration
20-
sfsClient, err := sfs.NewAPIClient(config.WithRegion(region))
19+
sfsClient, err := sfs.NewAPIClient()
2120
if err != nil {
2221
fmt.Fprintf(os.Stderr, "[sfs API] Creating API client: %v\n", err)
2322
os.Exit(1)

services/sfs/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
## v0.2.0
2+
- **Breaking change:** Remove region configuration in `APIClient`
3+
14
## v0.1.0
25
- **New**: STACKIT File Storage (SFS) service

services/sfs/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.1.0
1+
v0.2.0

services/sfs/configuration.go

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)