Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
## Release (2025-XX-XX)
- `ske`: [v1.1.0](services/ske/CHANGELOG.md#v110)
- **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.
- `mongodbflex`: [v1.5.0](services/mongodbflex/CHANGELOG.md#v150)
- **Breaking Change:** Renamed `GetInstanceResponse` to `InstanceResponse`. This affects the return type of the `GetInstance` method.
- `mongodbflex`: [v1.4.0](services/mongodbflex/CHANGELOG.md#v140)
- **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.


## Release (2025-07-07)

- `ske`: [v1.0.0](services/ske/CHANGELOG.md#v100)
Expand Down
3 changes: 3 additions & 0 deletions services/mongodbflex/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v1.5.0
- **Breaking Change:** Renamed `GetInstanceResponse` to `InstanceResponse`. This affects the return type of the `GetInstance` method.

## v1.4.0
- **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.

Expand Down
2 changes: 1 addition & 1 deletion services/mongodbflex/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.4.0
v1.5.0
12 changes: 6 additions & 6 deletions services/mongodbflex/api_default.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/mongodbflex/api_default_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

127 changes: 0 additions & 127 deletions services/mongodbflex/model_get_instance_response.go

This file was deleted.

127 changes: 127 additions & 0 deletions services/mongodbflex/model_instance_response.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions services/mongodbflex/wait/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ const (

// Interface needed for tests
type APIClientInstanceInterface interface {
GetInstanceExecute(ctx context.Context, projectId, instanceId, region string) (*mongodbflex.GetInstanceResponse, error)
GetInstanceExecute(ctx context.Context, projectId, instanceId, region string) (*mongodbflex.InstanceResponse, error)
ListRestoreJobsExecute(ctx context.Context, projectId, instanceId, region string) (*mongodbflex.ListRestoreJobsResponse, error)
}

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

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

Expand Down Expand Up @@ -115,8 +115,8 @@ func RestoreInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterfac
}

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

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

Expand Down
Loading
Loading