From 8d98d0509a22a7d2d6640b9f59fa0e18a1b4ce83 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 12 Dec 2024 17:16:39 +0000 Subject: [PATCH] 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 4f6784f96..baf51cb88 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 552cc0073..82547ea06 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 6a69edd15..68ba310de 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 89310cb13..a5f5f196d 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 ee6118869..24fb780d3 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 9f984f812..1f5ba0e3d 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 }