Skip to content

Commit fbdc6a8

Browse files
Marcel JacekMarcel Jacek
authored andcommitted
remove config.WithRegion in logs API client
1 parent c45bd79 commit fbdc6a8

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

examples/logs/logs.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"log"
66

7-
"github.com/stackitcloud/stackit-sdk-go/core/config"
87
"github.com/stackitcloud/stackit-sdk-go/core/utils"
98
"github.com/stackitcloud/stackit-sdk-go/services/logs"
109
)
@@ -15,9 +14,7 @@ func main() {
1514
projectId := "PROJECT_ID" // the uuid of your STACKIT project
1615
regionId := "eu01"
1716

18-
client, err := logs.NewAPIClient(
19-
config.WithRegion(regionId),
20-
)
17+
client, err := logs.NewAPIClient()
2118
if err != nil {
2219
log.Fatalf("[Logs API] Creating API client: %v\n", err)
2320
}

0 commit comments

Comments
 (0)