Skip to content

Commit 22cda6f

Browse files
Generator: Update SDK /services/ske (#3115)
Co-authored-by: Benjosh95 <benjamin.fuertsch@inovex.de>
1 parent 544a688 commit 22cda6f

14 files changed

+166
-350
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
## Release (2025-XX-XX)
2+
- `ske`: [v1.1.0](services/ske/CHANGELOG.md#v110)
3+
- **Breaking Change:** `ClusterError.Code` field is now a string type instead of an enum. The field no longer validates against predefined enum values and accepts any string value.
4+
- `mongodbflex`: [v1.5.0](services/mongodbflex/CHANGELOG.md#v150)
5+
- **Breaking Change:** Renamed `GetInstanceResponse` to `InstanceResponse`. This affects the return type of the `GetInstance` method.
26
- `mongodbflex`: [v1.4.0](services/mongodbflex/CHANGELOG.md#v140)
37
- **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.
48

9+
510
## Release (2025-07-07)
611

712
- `ske`: [v1.0.0](services/ske/CHANGELOG.md#v100)

services/mongodbflex/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v1.5.0
2+
- **Breaking Change:** Renamed `GetInstanceResponse` to `InstanceResponse`. This affects the return type of the `GetInstance` method.
3+
14
## v1.4.0
25
- **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.
36

services/mongodbflex/VERSION

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

services/mongodbflex/api_default.go

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

services/mongodbflex/api_default_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/mongodbflex/model_get_instance_response.go

Lines changed: 0 additions & 127 deletions
This file was deleted.

services/mongodbflex/model_instance_response.go

Lines changed: 127 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

services/mongodbflex/wait/wait.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ const (
3131

3232
// Interface needed for tests
3333
type APIClientInstanceInterface interface {
34-
GetInstanceExecute(ctx context.Context, projectId, instanceId, region string) (*mongodbflex.GetInstanceResponse, error)
34+
GetInstanceExecute(ctx context.Context, projectId, instanceId, region string) (*mongodbflex.InstanceResponse, error)
3535
ListRestoreJobsExecute(ctx context.Context, projectId, instanceId, region string) (*mongodbflex.ListRestoreJobsResponse, error)
3636
}
3737

3838
// CreateInstanceWaitHandler will wait for instance creation
39-
func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[mongodbflex.GetInstanceResponse] {
40-
handler := wait.New(func() (waitFinished bool, response *mongodbflex.GetInstanceResponse, err error) {
39+
func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[mongodbflex.InstanceResponse] {
40+
handler := wait.New(func() (waitFinished bool, response *mongodbflex.InstanceResponse, err error) {
4141
s, err := a.GetInstanceExecute(ctx, projectId, instanceId, region)
4242
if err != nil {
4343
return false, nil, err
@@ -66,7 +66,7 @@ func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface
6666
}
6767

6868
// CloneInstanceWaitHandler will wait for instance clone to be created
69-
func CloneInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[mongodbflex.GetInstanceResponse] {
69+
func CloneInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[mongodbflex.InstanceResponse] {
7070
return CreateInstanceWaitHandler(ctx, a, projectId, instanceId, region)
7171
}
7272

@@ -115,8 +115,8 @@ func RestoreInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterfac
115115
}
116116

117117
// UpdateInstanceWaitHandler will wait for instance update
118-
func UpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[mongodbflex.GetInstanceResponse] {
119-
handler := wait.New(func() (waitFinished bool, response *mongodbflex.GetInstanceResponse, err error) {
118+
func UpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[mongodbflex.InstanceResponse] {
119+
handler := wait.New(func() (waitFinished bool, response *mongodbflex.InstanceResponse, err error) {
120120
s, err := a.GetInstanceExecute(ctx, projectId, instanceId, region)
121121
if err != nil {
122122
return false, nil, err
@@ -144,7 +144,7 @@ func UpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface
144144
}
145145

146146
// PartialUpdateInstanceWaitHandler will wait for instance update
147-
func PartialUpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[mongodbflex.GetInstanceResponse] {
147+
func PartialUpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[mongodbflex.InstanceResponse] {
148148
return UpdateInstanceWaitHandler(ctx, a, projectId, instanceId, region)
149149
}
150150

0 commit comments

Comments
 (0)