Skip to content

Commit 1228f85

Browse files
committed
review feedback - adjust examples
1 parent b6e083c commit 1228f85

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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)

0 commit comments

Comments
 (0)