From cd9d22a5910d7fc0bd8c25aefe72b3b88c5ba089 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Mon, 16 Dec 2024 14:59:54 +0000 Subject: [PATCH 1/3] Generate mongodbflex --- .../mongodbflex/model_clone_instance_payload.go | 2 +- .../mongodbflex/model_create_instance_payload.go | 16 ++++++++-------- .../mongodbflex/model_create_user_payload.go | 4 ++-- .../model_restore_instance_payload.go | 4 ++-- .../mongodbflex/model_update_instance_payload.go | 16 ++++++++-------- .../mongodbflex/model_update_user_payload.go | 4 ++-- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/services/mongodbflex/model_clone_instance_payload.go b/services/mongodbflex/model_clone_instance_payload.go index 4f6784f9..baf51cb8 100644 --- a/services/mongodbflex/model_clone_instance_payload.go +++ b/services/mongodbflex/model_clone_instance_payload.go @@ -46,7 +46,7 @@ func NewCloneInstancePayloadWithDefaults() *CloneInstancePayload { // GetInstanceId returns the InstanceId field value func (o *CloneInstancePayload) GetInstanceId() *string { - if o == nil { + if o == nil || IsNil(o.InstanceId) { var ret *string return ret } diff --git a/services/mongodbflex/model_create_instance_payload.go b/services/mongodbflex/model_create_instance_payload.go index 552cc007..82547ea0 100644 --- a/services/mongodbflex/model_create_instance_payload.go +++ b/services/mongodbflex/model_create_instance_payload.go @@ -68,7 +68,7 @@ func NewCreateInstancePayloadWithDefaults() *CreateInstancePayload { // GetAcl returns the Acl field value func (o *CreateInstancePayload) GetAcl() *ACL { - if o == nil { + if o == nil || IsNil(o.Acl) { var ret *ACL return ret } @@ -92,7 +92,7 @@ func (o *CreateInstancePayload) SetAcl(v *ACL) { // GetBackupSchedule returns the BackupSchedule field value func (o *CreateInstancePayload) GetBackupSchedule() *string { - if o == nil { + if o == nil || IsNil(o.BackupSchedule) { var ret *string return ret } @@ -116,7 +116,7 @@ func (o *CreateInstancePayload) SetBackupSchedule(v *string) { // GetFlavorId returns the FlavorId field value func (o *CreateInstancePayload) GetFlavorId() *string { - if o == nil { + if o == nil || IsNil(o.FlavorId) { var ret *string return ret } @@ -172,7 +172,7 @@ func (o *CreateInstancePayload) SetLabels(v *map[string]string) { // GetName returns the Name field value func (o *CreateInstancePayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -196,7 +196,7 @@ func (o *CreateInstancePayload) SetName(v *string) { // GetOptions returns the Options field value func (o *CreateInstancePayload) GetOptions() *map[string]string { - if o == nil { + if o == nil || IsNil(o.Options) { var ret *map[string]string return ret } @@ -220,7 +220,7 @@ func (o *CreateInstancePayload) SetOptions(v *map[string]string) { // GetReplicas returns the Replicas field value func (o *CreateInstancePayload) GetReplicas() *int64 { - if o == nil { + if o == nil || IsNil(o.Replicas) { var ret *int64 return ret } @@ -244,7 +244,7 @@ func (o *CreateInstancePayload) SetReplicas(v *int64) { // GetStorage returns the Storage field value func (o *CreateInstancePayload) GetStorage() *Storage { - if o == nil { + if o == nil || IsNil(o.Storage) { var ret *Storage return ret } @@ -268,7 +268,7 @@ func (o *CreateInstancePayload) SetStorage(v *Storage) { // GetVersion returns the Version field value func (o *CreateInstancePayload) GetVersion() *string { - if o == nil { + if o == nil || IsNil(o.Version) { var ret *string return ret } diff --git a/services/mongodbflex/model_create_user_payload.go b/services/mongodbflex/model_create_user_payload.go index 6a69edd1..68ba310d 100644 --- a/services/mongodbflex/model_create_user_payload.go +++ b/services/mongodbflex/model_create_user_payload.go @@ -49,7 +49,7 @@ func NewCreateUserPayloadWithDefaults() *CreateUserPayload { // GetDatabase returns the Database field value func (o *CreateUserPayload) GetDatabase() *string { - if o == nil { + if o == nil || IsNil(o.Database) { var ret *string return ret } @@ -73,7 +73,7 @@ func (o *CreateUserPayload) SetDatabase(v *string) { // GetRoles returns the Roles field value func (o *CreateUserPayload) GetRoles() *[]string { - if o == nil { + if o == nil || IsNil(o.Roles) { var ret *[]string return ret } diff --git a/services/mongodbflex/model_restore_instance_payload.go b/services/mongodbflex/model_restore_instance_payload.go index 89310cb1..a5f5f196 100644 --- a/services/mongodbflex/model_restore_instance_payload.go +++ b/services/mongodbflex/model_restore_instance_payload.go @@ -48,7 +48,7 @@ func NewRestoreInstancePayloadWithDefaults() *RestoreInstancePayload { // GetBackupId returns the BackupId field value func (o *RestoreInstancePayload) GetBackupId() *string { - if o == nil { + if o == nil || IsNil(o.BackupId) { var ret *string return ret } @@ -72,7 +72,7 @@ func (o *RestoreInstancePayload) SetBackupId(v *string) { // GetInstanceId returns the InstanceId field value func (o *RestoreInstancePayload) GetInstanceId() *string { - if o == nil { + if o == nil || IsNil(o.InstanceId) { var ret *string return ret } diff --git a/services/mongodbflex/model_update_instance_payload.go b/services/mongodbflex/model_update_instance_payload.go index ee611886..24fb780d 100644 --- a/services/mongodbflex/model_update_instance_payload.go +++ b/services/mongodbflex/model_update_instance_payload.go @@ -68,7 +68,7 @@ func NewUpdateInstancePayloadWithDefaults() *UpdateInstancePayload { // GetAcl returns the Acl field value func (o *UpdateInstancePayload) GetAcl() *ACL { - if o == nil { + if o == nil || IsNil(o.Acl) { var ret *ACL return ret } @@ -92,7 +92,7 @@ func (o *UpdateInstancePayload) SetAcl(v *ACL) { // GetBackupSchedule returns the BackupSchedule field value func (o *UpdateInstancePayload) GetBackupSchedule() *string { - if o == nil { + if o == nil || IsNil(o.BackupSchedule) { var ret *string return ret } @@ -116,7 +116,7 @@ func (o *UpdateInstancePayload) SetBackupSchedule(v *string) { // GetFlavorId returns the FlavorId field value func (o *UpdateInstancePayload) GetFlavorId() *string { - if o == nil { + if o == nil || IsNil(o.FlavorId) { var ret *string return ret } @@ -172,7 +172,7 @@ func (o *UpdateInstancePayload) SetLabels(v *map[string]string) { // GetName returns the Name field value func (o *UpdateInstancePayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -196,7 +196,7 @@ func (o *UpdateInstancePayload) SetName(v *string) { // GetOptions returns the Options field value func (o *UpdateInstancePayload) GetOptions() *map[string]string { - if o == nil { + if o == nil || IsNil(o.Options) { var ret *map[string]string return ret } @@ -220,7 +220,7 @@ func (o *UpdateInstancePayload) SetOptions(v *map[string]string) { // GetReplicas returns the Replicas field value func (o *UpdateInstancePayload) GetReplicas() *int64 { - if o == nil { + if o == nil || IsNil(o.Replicas) { var ret *int64 return ret } @@ -244,7 +244,7 @@ func (o *UpdateInstancePayload) SetReplicas(v *int64) { // GetStorage returns the Storage field value func (o *UpdateInstancePayload) GetStorage() *Storage { - if o == nil { + if o == nil || IsNil(o.Storage) { var ret *Storage return ret } @@ -268,7 +268,7 @@ func (o *UpdateInstancePayload) SetStorage(v *Storage) { // GetVersion returns the Version field value func (o *UpdateInstancePayload) GetVersion() *string { - if o == nil { + if o == nil || IsNil(o.Version) { var ret *string return ret } diff --git a/services/mongodbflex/model_update_user_payload.go b/services/mongodbflex/model_update_user_payload.go index 9f984f81..1f5ba0e3 100644 --- a/services/mongodbflex/model_update_user_payload.go +++ b/services/mongodbflex/model_update_user_payload.go @@ -48,7 +48,7 @@ func NewUpdateUserPayloadWithDefaults() *UpdateUserPayload { // GetDatabase returns the Database field value func (o *UpdateUserPayload) GetDatabase() *string { - if o == nil { + if o == nil || IsNil(o.Database) { var ret *string return ret } @@ -72,7 +72,7 @@ func (o *UpdateUserPayload) SetDatabase(v *string) { // GetRoles returns the Roles field value func (o *UpdateUserPayload) GetRoles() *[]string { - if o == nil { + if o == nil || IsNil(o.Roles) { var ret *[]string return ret } From 44438078cc17c9a0c03c866beb9b9e3a8d2db019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Schmitz?= Date: Fri, 13 Dec 2024 15:34:56 +0100 Subject: [PATCH 2/3] chore: update changelog --- services/mongodbflex/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/mongodbflex/CHANGELOG.md b/services/mongodbflex/CHANGELOG.md index 224bb2f3..63e4b1f5 100644 --- a/services/mongodbflex/CHANGELOG.md +++ b/services/mongodbflex/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.16.1 (2024-12-16) + +- **Bugfix:** Correctly handle nullable attributes in model types + ## v0.16.0 (2024-10-14) - **Feature:** Add support for nullable models From a066ec86e6c6ec4b1df9867c733b5c0fb328e617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Schmitz?= Date: Tue, 17 Dec 2024 12:22:18 +0100 Subject: [PATCH 3/3] Update CHANGELOG.md --- services/mongodbflex/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/mongodbflex/CHANGELOG.md b/services/mongodbflex/CHANGELOG.md index 63e4b1f5..74d29002 100644 --- a/services/mongodbflex/CHANGELOG.md +++ b/services/mongodbflex/CHANGELOG.md @@ -1,4 +1,4 @@ -## v0.16.1 (2024-12-16) +## v0.16.1 (2024-12-17) - **Bugfix:** Correctly handle nullable attributes in model types