Skip to content

Commit 62aff84

Browse files
authored
Merge branch 'main' into setup-codeowners
2 parents c6e3f8a + 77a0460 commit 62aff84

File tree

211 files changed

+33915
-7608
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+33915
-7608
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## Release (2025-XX-YY)
2+
- `alb`: [v0.1.0](services/alb/CHANGELOG.md#v010-2025-xx-yy)
3+
- **New:** API for application load balancer
4+
- `cdn`: [0.1.0](services/cdn/CHANGELOG.md#v010-2025-xx-yy)
5+
- **New:** Introduce new API for content delivery
6+
- `serverupdate`: [1.0.0](services/serverupdate/CHANGELOG.md#v100-2025-xx-yy)
7+
- **Breaking Change:** The region is no longer specified within the client configuration. Instead, the region must be passed as a parameter to any region-specific request.
8+
- `serverbackup`: [1.0.0](services/serverbackup/CHANGELOG.md#v100-2025-xx-yy)
9+
- **Breaking Change:** The region is no longer specified within the client configuration. Instead, the region must be passed as a parameter to any region-specific request.
10+
- `runcommand`: [1.0.0](services/runcommand/CHANGELOG.md#v100-2025-xx-yy)
11+
- **Breaking Change:** The region is no longer specified within the client configuration. Instead, the region must be passed as a parameter to any region-specific request.
12+
13+
114
## Release (2025-03-14)
215
- `certificates`: [v1.0.0](services/certificates/CHANGELOG.md#v100-2025-03-14)
316
- **Breaking Change:** The region is no longer specified within the client configuration. Instead, the region must be passed as a parameter to any region-specific request.

examples/loadbalancer/loadbalancer.go

Lines changed: 6 additions & 6 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/loadbalancer"
1110
)
@@ -14,17 +13,18 @@ func main() {
1413
// Specify the project ID
1514
projectId := "PROJECT_ID"
1615

16+
// Specify the region
17+
region := "REGION"
18+
1719
// Create a new API client, that uses default authentication and configuration
18-
loadbalancerClient, err := loadbalancer.NewAPIClient(
19-
config.WithRegion("eu01"),
20-
)
20+
loadbalancerClient, err := loadbalancer.NewAPIClient()
2121
if err != nil {
2222
fmt.Fprintf(os.Stderr, "Creating API client: %v\n", err)
2323
os.Exit(1)
2424
}
2525

2626
// List the load balancer instances for your project
27-
listInstancesResp, err := loadbalancerClient.ListLoadBalancers(context.Background(), projectId).Execute()
27+
listInstancesResp, err := loadbalancerClient.ListLoadBalancers(context.Background(), projectId, region).Execute()
2828
if err != nil {
2929
fmt.Fprintf(os.Stderr, "Error when calling `ListLoadBalancers`: %v\n", err)
3030
os.Exit(1)
@@ -69,7 +69,7 @@ func main() {
6969
},
7070
},
7171
}
72-
createLoadBalancerRes, err := loadbalancerClient.CreateLoadBalancer(context.Background(), projectId).CreateLoadBalancerPayload(createLoadBalancerPayload).XRequestID("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").Execute()
72+
createLoadBalancerRes, err := loadbalancerClient.CreateLoadBalancer(context.Background(), projectId, region).CreateLoadBalancerPayload(createLoadBalancerPayload).XRequestID("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").Execute()
7373
if err != nil {
7474
fmt.Fprintf(os.Stderr, "Error when calling `CreateLoadBalancer`: %v\n", err)
7575
os.Exit(1)

examples/postgresflex/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/stackitcloud/stackit-sdk-go/examples/postgresflex
22

33
go 1.21
44

5-
require github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.0.0
5+
require github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.0.1
66

77
require (
88
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect

examples/postgresflex/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
66
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
77
github.com/stackitcloud/stackit-sdk-go/core v0.16.0 h1:9caGZwGLZDyBBe6ojk9VR4B2m3/0H5It6znBz76sH1w=
88
github.com/stackitcloud/stackit-sdk-go/core v0.16.0/go.mod h1:LRheSoXTFRHWAyA8Q9skWtWBp3ZZ+bFAKiKuf4lTDkE=
9-
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.0.0 h1:AOEFdbwFPxGpan2DnvVwrm3BMEUOlclH+X8U5hnm39w=
10-
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.0.0/go.mod h1:7TqfCUZRW7sjv8qOrLV5IvS6jqvY9Uxka165zdjYwD4=
9+
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.0.1 h1:vUi9//CyfS6UMv0hftYMamimjJLco5lxT/KW9y4QPqM=
10+
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.0.1/go.mod h1:7TqfCUZRW7sjv8qOrLV5IvS6jqvY9Uxka165zdjYwD4=

examples/runtime/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.21
44

55
require (
66
github.com/stackitcloud/stackit-sdk-go/core v0.16.0
7-
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.0.0
7+
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.0.1
88
)
99

1010
require (

examples/runtime/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
66
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
77
github.com/stackitcloud/stackit-sdk-go/core v0.16.0 h1:9caGZwGLZDyBBe6ojk9VR4B2m3/0H5It6znBz76sH1w=
88
github.com/stackitcloud/stackit-sdk-go/core v0.16.0/go.mod h1:LRheSoXTFRHWAyA8Q9skWtWBp3ZZ+bFAKiKuf4lTDkE=
9-
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.0.0 h1:AOEFdbwFPxGpan2DnvVwrm3BMEUOlclH+X8U5hnm39w=
10-
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.0.0/go.mod h1:7TqfCUZRW7sjv8qOrLV5IvS6jqvY9Uxka165zdjYwD4=
9+
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.0.1 h1:vUi9//CyfS6UMv0hftYMamimjJLco5lxT/KW9y4QPqM=
10+
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.0.1/go.mod h1:7TqfCUZRW7sjv8qOrLV5IvS6jqvY9Uxka165zdjYwD4=

go.work

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ use (
3030
./examples/sqlserverflex
3131
./examples/waiter
3232
./scripts
33+
./services/alb
3334
./services/archiving
3435
./services/authorization
36+
./services/cdn
3537
./services/certificates
3638
./services/dns
3739
./services/iaas
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6.6.0

services/alb/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## v0.1.0 (2025-XX-YY)
2+
- **New:** API for application load balancer

0 commit comments

Comments
 (0)