diff --git a/CHANGELOG.md b/CHANGELOG.md index ceeef9739..5b3692380 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ - **Feature:** - Improved nil-safety - subscription products contain the plan id +- `mongodbflex`: [1.0.0](services/mongodbflex/CHANGELOG.md#v100-2025-05-02) + - **Breaking Change:** Introduce typed enum constants for status attributes ## Release (2025-04-30) - `core`: [v0.17.1](core/CHANGELOG.md#v0171-2025-04-09) diff --git a/services/mongodbflex/CHANGELOG.md b/services/mongodbflex/CHANGELOG.md index 8ae7f5704..50adafe99 100644 --- a/services/mongodbflex/CHANGELOG.md +++ b/services/mongodbflex/CHANGELOG.md @@ -1,3 +1,6 @@ +## v1.0.0 (2025-05-02) +- **Breaking Change:** Introduce typed enum constants for status attributes + ## v0.18.2 (2025-04-29) - **Bugfix:** Correctly handle empty payload in body diff --git a/services/mongodbflex/model_instance.go b/services/mongodbflex/model_instance.go index 781d608d2..d0fde3510 100644 --- a/services/mongodbflex/model_instance.go +++ b/services/mongodbflex/model_instance.go @@ -164,8 +164,10 @@ func setInstanceGetReplicasAttributeType(arg *InstanceGetReplicasAttributeType, types and functions for status */ -// isNotNullableString +// isEnumRef type InstanceGetStatusAttributeType = *string +type InstanceGetStatusArgType = string +type InstanceGetStatusRetType = string func getInstanceGetStatusAttributeTypeOk(arg InstanceGetStatusAttributeType) (ret InstanceGetStatusRetType, ok bool) { if arg == nil { @@ -178,9 +180,6 @@ func setInstanceGetStatusAttributeType(arg *InstanceGetStatusAttributeType, val *arg = &val } -type InstanceGetStatusArgType = string -type InstanceGetStatusRetType = string - /* types and functions for storage */ @@ -231,9 +230,10 @@ type Instance struct { Name InstanceGetNameAttributeType `json:"name,omitempty"` Options InstanceGetOptionsAttributeType `json:"options,omitempty"` Replicas InstanceGetReplicasAttributeType `json:"replicas,omitempty"` - Status InstanceGetStatusAttributeType `json:"status,omitempty"` - Storage InstanceGetStorageAttributeType `json:"storage,omitempty"` - Version InstanceGetVersionAttributeType `json:"version,omitempty"` + // The current status of the instance. + Status InstanceGetStatusAttributeType `json:"status,omitempty"` + Storage InstanceGetStorageAttributeType `json:"storage,omitempty"` + Version InstanceGetVersionAttributeType `json:"version,omitempty"` } // NewInstance instantiates a new Instance object diff --git a/services/mongodbflex/model_instance_list_instance.go b/services/mongodbflex/model_instance_list_instance.go index 79ac137ab..ad9d78eae 100644 --- a/services/mongodbflex/model_instance_list_instance.go +++ b/services/mongodbflex/model_instance_list_instance.go @@ -63,8 +63,10 @@ type InstanceListInstanceGetNameRetType = string types and functions for status */ -// isNotNullableString +// isEnumRef type InstanceListInstanceGetStatusAttributeType = *string +type InstanceListInstanceGetStatusArgType = string +type InstanceListInstanceGetStatusRetType = string func getInstanceListInstanceGetStatusAttributeTypeOk(arg InstanceListInstanceGetStatusAttributeType) (ret InstanceListInstanceGetStatusRetType, ok bool) { if arg == nil { @@ -77,13 +79,11 @@ func setInstanceListInstanceGetStatusAttributeType(arg *InstanceListInstanceGetS *arg = &val } -type InstanceListInstanceGetStatusArgType = string -type InstanceListInstanceGetStatusRetType = string - // InstanceListInstance struct for InstanceListInstance type InstanceListInstance struct { - Id InstanceListInstanceGetIdAttributeType `json:"id,omitempty"` - Name InstanceListInstanceGetNameAttributeType `json:"name,omitempty"` + Id InstanceListInstanceGetIdAttributeType `json:"id,omitempty"` + Name InstanceListInstanceGetNameAttributeType `json:"name,omitempty"` + // The current status of the instance. Status InstanceListInstanceGetStatusAttributeType `json:"status,omitempty"` }