From f907467a4413df52134ea326d2bf5aa0b2ec25b9 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 12 Dec 2024 17:18:32 +0000 Subject: [PATCH] Generate sqlserverflex --- .../sqlserverflex/model_create_database_payload.go | 4 ++-- .../sqlserverflex/model_create_instance_payload.go | 4 ++-- services/sqlserverflex/model_create_user_payload.go | 4 ++-- ..._documentation_create_database_request_options.go | 2 +- .../model_trigger_database_restore_payload.go | 4 ++-- .../sqlserverflex/model_update_instance_payload.go | 12 ++++++------ 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/services/sqlserverflex/model_create_database_payload.go b/services/sqlserverflex/model_create_database_payload.go index 6c3ba8df1..8df357eb6 100644 --- a/services/sqlserverflex/model_create_database_payload.go +++ b/services/sqlserverflex/model_create_database_payload.go @@ -48,7 +48,7 @@ func NewCreateDatabasePayloadWithDefaults() *CreateDatabasePayload { // GetName returns the Name field value func (o *CreateDatabasePayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -72,7 +72,7 @@ func (o *CreateDatabasePayload) SetName(v *string) { // GetOptions returns the Options field value func (o *CreateDatabasePayload) GetOptions() *DatabaseDocumentationCreateDatabaseRequestOptions { - if o == nil { + if o == nil || IsNil(o.Options) { var ret *DatabaseDocumentationCreateDatabaseRequestOptions return ret } diff --git a/services/sqlserverflex/model_create_instance_payload.go b/services/sqlserverflex/model_create_instance_payload.go index db9502da4..70d7d94db 100644 --- a/services/sqlserverflex/model_create_instance_payload.go +++ b/services/sqlserverflex/model_create_instance_payload.go @@ -126,7 +126,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 } @@ -182,7 +182,7 @@ func (o *CreateInstancePayload) SetLabels(v *map[string]interface{}) { // 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 } diff --git a/services/sqlserverflex/model_create_user_payload.go b/services/sqlserverflex/model_create_user_payload.go index 3b35e00f7..5d946f823 100644 --- a/services/sqlserverflex/model_create_user_payload.go +++ b/services/sqlserverflex/model_create_user_payload.go @@ -81,7 +81,7 @@ func (o *CreateUserPayload) SetDefaultDatabase(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 } @@ -105,7 +105,7 @@ func (o *CreateUserPayload) SetRoles(v *[]string) { // GetUsername returns the Username field value func (o *CreateUserPayload) GetUsername() *string { - if o == nil { + if o == nil || IsNil(o.Username) { var ret *string return ret } diff --git a/services/sqlserverflex/model_database_documentation_create_database_request_options.go b/services/sqlserverflex/model_database_documentation_create_database_request_options.go index d2eceb9d7..1c38f76f8 100644 --- a/services/sqlserverflex/model_database_documentation_create_database_request_options.go +++ b/services/sqlserverflex/model_database_documentation_create_database_request_options.go @@ -114,7 +114,7 @@ func (o *DatabaseDocumentationCreateDatabaseRequestOptions) SetCompatibilityLeve // GetOwner returns the Owner field value func (o *DatabaseDocumentationCreateDatabaseRequestOptions) GetOwner() *string { - if o == nil { + if o == nil || IsNil(o.Owner) { var ret *string return ret } diff --git a/services/sqlserverflex/model_trigger_database_restore_payload.go b/services/sqlserverflex/model_trigger_database_restore_payload.go index d26710b0c..6b5d0b08e 100644 --- a/services/sqlserverflex/model_trigger_database_restore_payload.go +++ b/services/sqlserverflex/model_trigger_database_restore_payload.go @@ -50,7 +50,7 @@ func NewTriggerDatabaseRestorePayloadWithDefaults() *TriggerDatabaseRestorePaylo // GetName returns the Name field value func (o *TriggerDatabaseRestorePayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -74,7 +74,7 @@ func (o *TriggerDatabaseRestorePayload) SetName(v *string) { // GetRestoreDateTime returns the RestoreDateTime field value func (o *TriggerDatabaseRestorePayload) GetRestoreDateTime() *string { - if o == nil { + if o == nil || IsNil(o.RestoreDateTime) { var ret *string return ret } diff --git a/services/sqlserverflex/model_update_instance_payload.go b/services/sqlserverflex/model_update_instance_payload.go index 50731c576..03599b56b 100644 --- a/services/sqlserverflex/model_update_instance_payload.go +++ b/services/sqlserverflex/model_update_instance_payload.go @@ -66,7 +66,7 @@ func NewUpdateInstancePayloadWithDefaults() *UpdateInstancePayload { // GetAcl returns the Acl field value func (o *UpdateInstancePayload) GetAcl() *CreateInstancePayloadAcl { - if o == nil { + if o == nil || IsNil(o.Acl) { var ret *CreateInstancePayloadAcl return ret } @@ -90,7 +90,7 @@ func (o *UpdateInstancePayload) SetAcl(v *CreateInstancePayloadAcl) { // 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 } @@ -114,7 +114,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 } @@ -138,7 +138,7 @@ func (o *UpdateInstancePayload) SetFlavorId(v *string) { // GetLabels returns the Labels field value func (o *UpdateInstancePayload) GetLabels() *map[string]interface{} { - if o == nil { + if o == nil || IsNil(o.Labels) { var ret *map[string]interface{} return ret } @@ -162,7 +162,7 @@ func (o *UpdateInstancePayload) SetLabels(v *map[string]interface{}) { // 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 } @@ -186,7 +186,7 @@ func (o *UpdateInstancePayload) SetName(v *string) { // 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 }