Skip to content

Commit 7d01972

Browse files
authored
Merge branch 'main' into feat/STACKITSDK-375-intake-refactor-wait-handler
2 parents e471910 + f568a63 commit 7d01972

42 files changed

Lines changed: 795 additions & 750 deletions

Some content is hidden

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

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@
9999
- [v0.20.2](services/dns/CHANGELOG.md#v0202)
100100
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
101101
- `dremio`
102+
- [v0.2.0](services/dremio/CHANGELOG.md#v020)
103+
- **Breaking change**: move waiters from `v1alphaapi/wait/wait` to `v1alphaapi/wait`
102104
- [v0.1.0](services/dremio/CHANGELOG.md#v010)
103105
- Manage your STACKIT Dremio resources: `DremioInstance`, `DremioUser`
104106
- Waiters for async operations: `CreateDremioInstanceWaitHandler`, `UpdateDremioInstanceWaitHandler`, `DeleteDremioInstanceWaitHandler`, `CreateDremioUserWaitHandler`, `UpdateDremioUserWaitHandler`, `DeleteDremioUserWaitHandler`
@@ -145,6 +147,11 @@
145147
- **Feature:** Added `_UNKNOWN_DEFAULT_OPEN_API` fallback value to all enums to handle unknown API values gracefully.
146148
- [v1.11.1](services/iaas/CHANGELOG.md#v1111)
147149
- **Dependencies:** Bump STACKIT SDK resourcemanager module from `v0.22.2` to `v0.23.0`
150+
- [v1.12.0](services/iaas/CHANGELOG.md#v1120)
151+
- Removal of deprecated WaitHandler: `CreateNetworkAreaWaitHandler`, `UpdateNetworkAreaWaitHandler` and `DeleteNetworkAreaWaitHandler`
152+
- `v2api`
153+
- **Improvement**: Use new `WaiterHandler` struct in the IaaS WaitHandler
154+
- **Deprecation:** WaitHandler `AddVolumeToServerWaitHandler` and `RemoveVolumeFromServerWaitHandler` are deprecated and will be removed after November 2026. Please use instead `ProjectRequestWaitHandler`.
148155
- `intake`:
149156
- [v0.7.3](services/intake/CHANGELOG.md#v073)
150157
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -278,6 +285,8 @@
278285
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
279286
- [v0.27.2](services/opensearch/CHANGELOG.md#v0272)
280287
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
288+
- [v0.28.0](services/opensearch/CHANGELOG.md#v0280)
289+
- **Improvement:** Use new WaiterHelper for opensearch waiters
281290
- `postgresflex`:
282291
- [v1.6.3](services/postgresflex/CHANGELOG.md#v163)
283292
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -298,6 +307,8 @@
298307
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0`
299308
- [v0.29.2](services/rabbitmq/CHANGELOG.md#v0292)
300309
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
310+
- [v0.30.0](services/rabbitmq/CHANGELOG.md#v0300)
311+
- `v1api`: **Improvement**: Use new `WaiterHandler` struct in the RabbitMQ WaitHandler
301312
- `redis`:
302313
- [v0.27.3](services/redis/CHANGELOG.md#v0273)
303314
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -400,6 +411,8 @@
400411
- **Dependencies:** Bump STACKIT SDK core module to `v0.26.0`
401412
- [v1.5.3](services/serviceenablement/CHANGELOG.md#v153)
402413
- `v2api`: Removal of duplicated return statements in `DefaultAPIService` implementations
414+
- [v1.6.0](services/serviceenablement/CHANGELOG.md#v160)
415+
- **Improvement:** Use new WaiterHelper for serviceenablement waiters
403416
- `sfs`:
404417
- [v0.6.3](services/sfs/CHANGELOG.md#v063)
405418
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -421,6 +434,8 @@
421434
- **Feature:** new model `SnapshotPolicySnapshotPolicySchedule`
422435
- [v0.10.0](services/sfs/CHANGELOG.md#v0100)
423436
- **Breaking change:** Change type from `*string` to `NullableString` of field `SnapshotPolicyId` in model `UpdateResourcePoolPayload`
437+
- [v0.10.1](services/sfs/CHANGELOG.md#v0101)
438+
- **Docs:** Extend docs of `SnaplockRetentionHours`, `Count`, `RetentionCount`
424439
- `ske`:
425440
- [v1.11.2](services/ske/CHANGELOG.md#v1112)
426441
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -452,6 +467,8 @@
452467
- **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0`
453468
- [v1.10.0](services/sqlserverflex/CHANGELOG.md#v1100)
454469
- **Feature:** Added `_UNKNOWN_DEFAULT_OPEN_API` fallback value to all enums to handle unknown API values gracefully.
470+
- [v1.11.0](services/sqlserverflex/CHANGELOG.md#v1110)
471+
- `v3beta1api`: **Feature:** Added `labels` to `CreateInstanceRequestPayload`, `GetInstanceReponse`, `UpdateInstancePartiallyRequestPayload`, `UpdateInstanceRequestPayload`
455472
- `stackitmarketplace`:
456473
- [v1.17.5](services/stackitmarketplace/CHANGELOG.md#v1175)
457474
- **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1`
@@ -496,6 +513,11 @@
496513
- **Breaking change:** Switch from regional to global API server URL. `config.WithRegion(...)` should not be used during client initialization anymore.
497514
- `v1beta1api`: Align package to latest API specification
498515
- `v1alpha1api`: Align package to latest API specification
516+
- [v0.10.0](services/vpn/CHANGELOG.md#v0100)
517+
- `v1api`:
518+
- **Feature:** Add `InternalNextHopIP` field to `VPNTunnels` model
519+
- `v1beta1api`: Align package to latest API specification
520+
- `v1alpha1api`: Align package to latest API specification
499521

500522
## Release (2026-04-07)
501523
- `alb`: [v0.13.1](services/alb/CHANGELOG.md#v0131)

examples/dremio/dremio.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import (
77

88
"github.com/stackitcloud/stackit-sdk-go/core/config"
99
"github.com/stackitcloud/stackit-sdk-go/core/utils"
10-
"github.com/stackitcloud/stackit-sdk-go/services/dremio/v1alphaapi/wait/wait"
11-
1210
dremio "github.com/stackitcloud/stackit-sdk-go/services/dremio/v1alphaapi"
11+
"github.com/stackitcloud/stackit-sdk-go/services/dremio/v1alphaapi/wait"
1312
)
1413

1514
func main() {

examples/iaas/attach_volume/attach_volume.go

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ package main
33
import (
44
"context"
55
"fmt"
6+
"net/http"
67
"os"
8+
"time"
79

10+
"github.com/stackitcloud/stackit-sdk-go/core/runtime"
811
iaas "github.com/stackitcloud/stackit-sdk-go/services/iaas/v2api"
912
"github.com/stackitcloud/stackit-sdk-go/services/iaas/v2api/wait"
1013
)
@@ -23,32 +26,35 @@ func main() {
2326
os.Exit(1)
2427
}
2528

29+
var httpResp *http.Response
30+
ctx := runtime.WithCaptureHTTPResponse(context.Background(), &httpResp)
31+
2632
payload := iaas.AddVolumeToServerPayload{}
27-
_, err = iaasClient.DefaultAPI.AddVolumeToServer(context.Background(), projectId, region, serverId, volumeId).AddVolumeToServerPayload(payload).Execute()
33+
_, err = iaasClient.DefaultAPI.AddVolumeToServer(ctx, projectId, region, serverId, volumeId).AddVolumeToServerPayload(payload).Execute()
2834
if err != nil {
2935
fmt.Fprintf(os.Stderr, "[iaas API] Error when calling `AddVolumeToServer`: %v\n", err)
30-
} else {
31-
fmt.Printf("[iaas API] Triggered attachment of volume with ID %q.\n", volumeId)
36+
os.Exit(1)
3237
}
38+
fmt.Printf("[iaas API] Triggered attachment of volume with ID %q.\n", volumeId)
3339

40+
xRequestId := httpResp.Header.Get(wait.XRequestIDHeader)
3441
// Wait for attachment of the volume
35-
_, err = wait.AddVolumeToServerWaitHandler(context.Background(), iaasClient.DefaultAPI, projectId, region, serverId, volumeId).WaitWithContext(context.Background())
42+
_, err = wait.ProjectRequestWaitHandler(ctx, iaasClient.DefaultAPI, projectId, region, xRequestId).SetSleepBeforeWait(500 * time.Millisecond).WaitWithContext(ctx)
3643
if err != nil {
3744
fmt.Fprintf(os.Stderr, "[iaas API] Error when waiting for attachment: %v\n", err)
3845
os.Exit(1)
3946
}
4047

41-
fmt.Printf("[iaas API] Volume %q has been successfully attached to the server %s.\n", volumeId, serverId)
42-
43-
err = iaasClient.DefaultAPI.RemoveVolumeFromServer(context.Background(), projectId, region, serverId, volumeId).Execute()
48+
err = iaasClient.DefaultAPI.RemoveVolumeFromServer(ctx, projectId, region, serverId, volumeId).Execute()
4449
if err != nil {
4550
fmt.Fprintf(os.Stderr, "[iaas API] Error when calling `RemoveVolumeFromServer`: %v\n", err)
46-
} else {
47-
fmt.Printf("[iaas API] Triggered removal of attachment of volume with ID %q.\n", volumeId)
51+
os.Exit(1)
4852
}
53+
fmt.Printf("[iaas API] Triggered removal of attachment of volume with ID %q.\n", volumeId)
4954

50-
// Wait for dettachment of the volume
51-
_, err = wait.RemoveVolumeFromServerWaitHandler(context.Background(), iaasClient.DefaultAPI, projectId, region, serverId, volumeId).WaitWithContext(context.Background())
55+
xRequestId = httpResp.Header.Get(wait.XRequestIDHeader)
56+
// Wait for detachment of the volume
57+
_, err = wait.ProjectRequestWaitHandler(ctx, iaasClient.DefaultAPI, projectId, region, xRequestId).SetSleepBeforeWait(500 * time.Millisecond).WaitWithContext(ctx)
5258
if err != nil {
5359
fmt.Fprintf(os.Stderr, "[iaas API] Error when waiting for removal of attachment of volume: %v\n", err)
5460
os.Exit(1)

services/dremio/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v0.2.0
2+
- **Breaking change**: move waiters from `v1alphaapi/wait/wait` to `v1alphaapi/wait`
3+
14
## v0.1.0
25

36
- Manage your STACKIT Dremio resources: `DremioInstance`, `DremioUser`

services/dremio/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
File renamed without changes.
File renamed without changes.

services/iaas/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v1.12.0
2+
- Removal of deprecated WaitHandler: `CreateNetworkAreaWaitHandler`, `UpdateNetworkAreaWaitHandler` and `DeleteNetworkAreaWaitHandler`
3+
- `v2api`
4+
- **Improvement**: Use new `WaiterHandler` struct in the IaaS WaitHandler
5+
- **Deprecation:** WaitHandler `AddVolumeToServerWaitHandler` and `RemoveVolumeFromServerWaitHandler` are deprecated and will be removed after November 2026. Please use instead `ProjectRequestWaitHandler`.
6+
17
## v1.11.1
28
- **Dependencies:** Bump STACKIT SDK resourcemanager module from `v0.22.2` to `v0.23.0`
39

services/iaas/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.11.1
1+
v1.12.0

0 commit comments

Comments
 (0)