From 09a25b350f7aa8dbb06676d8744ca8267bd26c55 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Wed, 11 Dec 2024 14:59:55 +0000 Subject: [PATCH] Generate mariadb --- services/mariadb/model_backup.go | 12 ++--- .../model_create_backup_response_item.go | 4 +- .../mariadb/model_create_instance_payload.go | 6 +-- .../mariadb/model_create_instance_response.go | 2 +- services/mariadb/model_credentials.go | 14 +++--- .../mariadb/model_credentials_list_item.go | 2 +- .../mariadb/model_credentials_response.go | 6 +-- services/mariadb/model_error.go | 4 +- .../mariadb/model_get_metrics_response.go | 46 +++++++++---------- services/mariadb/model_instance.go | 28 +++++------ .../mariadb/model_instance_last_operation.go | 6 +-- services/mariadb/model_instance_parameters.go | 16 +++---- services/mariadb/model_instance_schema.go | 4 +- .../mariadb/model_list_backups_response.go | 2 +- .../model_list_credentials_response.go | 2 +- .../mariadb/model_list_instances_response.go | 2 +- .../mariadb/model_list_offerings_response.go | 2 +- .../mariadb/model_list_restores_response.go | 2 +- services/mariadb/model_offering.go | 20 ++++---- .../model_partial_update_instance_payload.go | 6 +-- services/mariadb/model_plan.go | 10 ++-- services/mariadb/model_raw_credentials.go | 2 +- services/mariadb/model_restore.go | 10 ++-- services/mariadb/model_schema.go | 2 +- .../mariadb/model_trigger_restore_response.go | 2 +- .../model_update_backups_config_payload.go | 2 +- .../model_update_backups_config_response.go | 2 +- 27 files changed, 108 insertions(+), 108 deletions(-) diff --git a/services/mariadb/model_backup.go b/services/mariadb/model_backup.go index 61d6e4cbc..b3b6e1597 100644 --- a/services/mariadb/model_backup.go +++ b/services/mariadb/model_backup.go @@ -72,7 +72,7 @@ func (o *Backup) GetDownloadableOk() (*bool, bool) { // HasDownloadable returns a boolean if a field has been set. func (o *Backup) HasDownloadable() bool { - if o != nil && !IsNil(o.Downloadable) { + if o != nil && !IsNil(o.Downloadable) && !IsNil(o.Downloadable) { return true } @@ -86,7 +86,7 @@ func (o *Backup) SetDownloadable(v *bool) { // GetFinishedAt returns the FinishedAt field value func (o *Backup) GetFinishedAt() *string { - if o == nil { + if o == nil || IsNil(o.FinishedAt) { var ret *string return ret } @@ -110,7 +110,7 @@ func (o *Backup) SetFinishedAt(v *string) { // GetId returns the Id field value func (o *Backup) GetId() *int64 { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *int64 return ret } @@ -152,7 +152,7 @@ func (o *Backup) GetSizeOk() (*int64, bool) { // HasSize returns a boolean if a field has been set. func (o *Backup) HasSize() bool { - if o != nil && !IsNil(o.Size) { + if o != nil && !IsNil(o.Size) && !IsNil(o.Size) { return true } @@ -166,7 +166,7 @@ func (o *Backup) SetSize(v *int64) { // GetStatus returns the Status field value func (o *Backup) GetStatus() *string { - if o == nil { + if o == nil || IsNil(o.Status) { var ret *string return ret } @@ -208,7 +208,7 @@ func (o *Backup) GetTriggeredAtOk() (*string, bool) { // HasTriggeredAt returns a boolean if a field has been set. func (o *Backup) HasTriggeredAt() bool { - if o != nil && !IsNil(o.TriggeredAt) { + if o != nil && !IsNil(o.TriggeredAt) && !IsNil(o.TriggeredAt) { return true } diff --git a/services/mariadb/model_create_backup_response_item.go b/services/mariadb/model_create_backup_response_item.go index 211784f1e..27d4b4cd9 100644 --- a/services/mariadb/model_create_backup_response_item.go +++ b/services/mariadb/model_create_backup_response_item.go @@ -48,7 +48,7 @@ func NewCreateBackupResponseItemWithDefaults() *CreateBackupResponseItem { // GetId returns the Id field value func (o *CreateBackupResponseItem) GetId() *int64 { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *int64 return ret } @@ -72,7 +72,7 @@ func (o *CreateBackupResponseItem) SetId(v *int64) { // GetMessage returns the Message field value func (o *CreateBackupResponseItem) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/mariadb/model_create_instance_payload.go b/services/mariadb/model_create_instance_payload.go index f9b3a8300..2137b4d5b 100644 --- a/services/mariadb/model_create_instance_payload.go +++ b/services/mariadb/model_create_instance_payload.go @@ -49,7 +49,7 @@ func NewCreateInstancePayloadWithDefaults() *CreateInstancePayload { // GetInstanceName returns the InstanceName field value func (o *CreateInstancePayload) GetInstanceName() *string { - if o == nil { + if o == nil || IsNil(o.InstanceName) { var ret *string return ret } @@ -91,7 +91,7 @@ func (o *CreateInstancePayload) GetParametersOk() (*InstanceParameters, bool) { // HasParameters returns a boolean if a field has been set. func (o *CreateInstancePayload) HasParameters() bool { - if o != nil && !IsNil(o.Parameters) { + if o != nil && !IsNil(o.Parameters) && !IsNil(o.Parameters) { return true } @@ -105,7 +105,7 @@ func (o *CreateInstancePayload) SetParameters(v *InstanceParameters) { // GetPlanId returns the PlanId field value func (o *CreateInstancePayload) GetPlanId() *string { - if o == nil { + if o == nil || IsNil(o.PlanId) { var ret *string return ret } diff --git a/services/mariadb/model_create_instance_response.go b/services/mariadb/model_create_instance_response.go index 7e37185cf..0df2aaf8d 100644 --- a/services/mariadb/model_create_instance_response.go +++ b/services/mariadb/model_create_instance_response.go @@ -45,7 +45,7 @@ func NewCreateInstanceResponseWithDefaults() *CreateInstanceResponse { // GetInstanceId returns the InstanceId field value func (o *CreateInstanceResponse) GetInstanceId() *string { - if o == nil { + if o == nil || IsNil(o.InstanceId) { var ret *string return ret } diff --git a/services/mariadb/model_credentials.go b/services/mariadb/model_credentials.go index 930277bf0..7d691d79e 100644 --- a/services/mariadb/model_credentials.go +++ b/services/mariadb/model_credentials.go @@ -55,7 +55,7 @@ func NewCredentialsWithDefaults() *Credentials { // GetHost returns the Host field value func (o *Credentials) GetHost() *string { - if o == nil { + if o == nil || IsNil(o.Host) { var ret *string return ret } @@ -97,7 +97,7 @@ func (o *Credentials) GetHostsOk() (*[]string, bool) { // HasHosts returns a boolean if a field has been set. func (o *Credentials) HasHosts() bool { - if o != nil && !IsNil(o.Hosts) { + if o != nil && !IsNil(o.Hosts) && !IsNil(o.Hosts) { return true } @@ -129,7 +129,7 @@ func (o *Credentials) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *Credentials) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -143,7 +143,7 @@ func (o *Credentials) SetName(v *string) { // GetPassword returns the Password field value func (o *Credentials) GetPassword() *string { - if o == nil { + if o == nil || IsNil(o.Password) { var ret *string return ret } @@ -185,7 +185,7 @@ func (o *Credentials) GetPortOk() (*int64, bool) { // HasPort returns a boolean if a field has been set. func (o *Credentials) HasPort() bool { - if o != nil && !IsNil(o.Port) { + if o != nil && !IsNil(o.Port) && !IsNil(o.Port) { return true } @@ -217,7 +217,7 @@ func (o *Credentials) GetUriOk() (*string, bool) { // HasUri returns a boolean if a field has been set. func (o *Credentials) HasUri() bool { - if o != nil && !IsNil(o.Uri) { + if o != nil && !IsNil(o.Uri) && !IsNil(o.Uri) { return true } @@ -231,7 +231,7 @@ func (o *Credentials) SetUri(v *string) { // GetUsername returns the Username field value func (o *Credentials) GetUsername() *string { - if o == nil { + if o == nil || IsNil(o.Username) { var ret *string return ret } diff --git a/services/mariadb/model_credentials_list_item.go b/services/mariadb/model_credentials_list_item.go index 891e71c21..7aab69363 100644 --- a/services/mariadb/model_credentials_list_item.go +++ b/services/mariadb/model_credentials_list_item.go @@ -45,7 +45,7 @@ func NewCredentialsListItemWithDefaults() *CredentialsListItem { // GetId returns the Id field value func (o *CredentialsListItem) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } diff --git a/services/mariadb/model_credentials_response.go b/services/mariadb/model_credentials_response.go index bc89d0272..f8806526d 100644 --- a/services/mariadb/model_credentials_response.go +++ b/services/mariadb/model_credentials_response.go @@ -49,7 +49,7 @@ func NewCredentialsResponseWithDefaults() *CredentialsResponse { // GetId returns the Id field value func (o *CredentialsResponse) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -91,7 +91,7 @@ func (o *CredentialsResponse) GetRawOk() (*RawCredentials, bool) { // HasRaw returns a boolean if a field has been set. func (o *CredentialsResponse) HasRaw() bool { - if o != nil && !IsNil(o.Raw) { + if o != nil && !IsNil(o.Raw) && !IsNil(o.Raw) { return true } @@ -105,7 +105,7 @@ func (o *CredentialsResponse) SetRaw(v *RawCredentials) { // GetUri returns the Uri field value func (o *CredentialsResponse) GetUri() *string { - if o == nil { + if o == nil || IsNil(o.Uri) { var ret *string return ret } diff --git a/services/mariadb/model_error.go b/services/mariadb/model_error.go index 4774ab044..f6d5506df 100644 --- a/services/mariadb/model_error.go +++ b/services/mariadb/model_error.go @@ -48,7 +48,7 @@ func NewErrorWithDefaults() *Error { // GetDescription returns the Description field value func (o *Error) GetDescription() *string { - if o == nil { + if o == nil || IsNil(o.Description) { var ret *string return ret } @@ -72,7 +72,7 @@ func (o *Error) SetDescription(v *string) { // GetError returns the Error field value func (o *Error) GetError() *string { - if o == nil { + if o == nil || IsNil(o.Error) { var ret *string return ret } diff --git a/services/mariadb/model_get_metrics_response.go b/services/mariadb/model_get_metrics_response.go index 5cd374d91..3fc0b80d6 100644 --- a/services/mariadb/model_get_metrics_response.go +++ b/services/mariadb/model_get_metrics_response.go @@ -123,7 +123,7 @@ func (o *GetMetricsResponse) GetCpuIdleTimeOk() (*int64, bool) { // HasCpuIdleTime returns a boolean if a field has been set. func (o *GetMetricsResponse) HasCpuIdleTime() bool { - if o != nil && !IsNil(o.CpuIdleTime) { + if o != nil && !IsNil(o.CpuIdleTime) && !IsNil(o.CpuIdleTime) { return true } @@ -137,7 +137,7 @@ func (o *GetMetricsResponse) SetCpuIdleTime(v *int64) { // GetCpuLoadPercent returns the CpuLoadPercent field value func (o *GetMetricsResponse) GetCpuLoadPercent() *float64 { - if o == nil { + if o == nil || IsNil(o.CpuLoadPercent) { var ret *float64 return ret } @@ -179,7 +179,7 @@ func (o *GetMetricsResponse) GetCpuSystemTimeOk() (*int64, bool) { // HasCpuSystemTime returns a boolean if a field has been set. func (o *GetMetricsResponse) HasCpuSystemTime() bool { - if o != nil && !IsNil(o.CpuSystemTime) { + if o != nil && !IsNil(o.CpuSystemTime) && !IsNil(o.CpuSystemTime) { return true } @@ -211,7 +211,7 @@ func (o *GetMetricsResponse) GetCpuUserTimeOk() (*int64, bool) { // HasCpuUserTime returns a boolean if a field has been set. func (o *GetMetricsResponse) HasCpuUserTime() bool { - if o != nil && !IsNil(o.CpuUserTime) { + if o != nil && !IsNil(o.CpuUserTime) && !IsNil(o.CpuUserTime) { return true } @@ -225,7 +225,7 @@ func (o *GetMetricsResponse) SetCpuUserTime(v *int64) { // GetDiskEphemeralTotal returns the DiskEphemeralTotal field value func (o *GetMetricsResponse) GetDiskEphemeralTotal() *int64 { - if o == nil { + if o == nil || IsNil(o.DiskEphemeralTotal) { var ret *int64 return ret } @@ -249,7 +249,7 @@ func (o *GetMetricsResponse) SetDiskEphemeralTotal(v *int64) { // GetDiskEphemeralUsed returns the DiskEphemeralUsed field value func (o *GetMetricsResponse) GetDiskEphemeralUsed() *int64 { - if o == nil { + if o == nil || IsNil(o.DiskEphemeralUsed) { var ret *int64 return ret } @@ -273,7 +273,7 @@ func (o *GetMetricsResponse) SetDiskEphemeralUsed(v *int64) { // GetDiskPersistentTotal returns the DiskPersistentTotal field value func (o *GetMetricsResponse) GetDiskPersistentTotal() *int64 { - if o == nil { + if o == nil || IsNil(o.DiskPersistentTotal) { var ret *int64 return ret } @@ -297,7 +297,7 @@ func (o *GetMetricsResponse) SetDiskPersistentTotal(v *int64) { // GetDiskPersistentUsed returns the DiskPersistentUsed field value func (o *GetMetricsResponse) GetDiskPersistentUsed() *int64 { - if o == nil { + if o == nil || IsNil(o.DiskPersistentUsed) { var ret *int64 return ret } @@ -321,7 +321,7 @@ func (o *GetMetricsResponse) SetDiskPersistentUsed(v *int64) { // GetLoad1 returns the Load1 field value func (o *GetMetricsResponse) GetLoad1() *float64 { - if o == nil { + if o == nil || IsNil(o.Load1) { var ret *float64 return ret } @@ -345,7 +345,7 @@ func (o *GetMetricsResponse) SetLoad1(v *float64) { // GetLoad15 returns the Load15 field value func (o *GetMetricsResponse) GetLoad15() *float64 { - if o == nil { + if o == nil || IsNil(o.Load15) { var ret *float64 return ret } @@ -369,7 +369,7 @@ func (o *GetMetricsResponse) SetLoad15(v *float64) { // GetLoad5 returns the Load5 field value func (o *GetMetricsResponse) GetLoad5() *float64 { - if o == nil { + if o == nil || IsNil(o.Load5) { var ret *float64 return ret } @@ -393,7 +393,7 @@ func (o *GetMetricsResponse) SetLoad5(v *float64) { // GetMemoryTotal returns the MemoryTotal field value func (o *GetMetricsResponse) GetMemoryTotal() *int64 { - if o == nil { + if o == nil || IsNil(o.MemoryTotal) { var ret *int64 return ret } @@ -417,7 +417,7 @@ func (o *GetMetricsResponse) SetMemoryTotal(v *int64) { // GetMemoryUsed returns the MemoryUsed field value func (o *GetMetricsResponse) GetMemoryUsed() *int64 { - if o == nil { + if o == nil || IsNil(o.MemoryUsed) { var ret *int64 return ret } @@ -441,7 +441,7 @@ func (o *GetMetricsResponse) SetMemoryUsed(v *int64) { // GetParachuteDiskEphemeralActivated returns the ParachuteDiskEphemeralActivated field value func (o *GetMetricsResponse) GetParachuteDiskEphemeralActivated() *bool { - if o == nil { + if o == nil || IsNil(o.ParachuteDiskEphemeralActivated) { var ret *bool return ret } @@ -465,7 +465,7 @@ func (o *GetMetricsResponse) SetParachuteDiskEphemeralActivated(v *bool) { // GetParachuteDiskEphemeralTotal returns the ParachuteDiskEphemeralTotal field value func (o *GetMetricsResponse) GetParachuteDiskEphemeralTotal() *int64 { - if o == nil { + if o == nil || IsNil(o.ParachuteDiskEphemeralTotal) { var ret *int64 return ret } @@ -489,7 +489,7 @@ func (o *GetMetricsResponse) SetParachuteDiskEphemeralTotal(v *int64) { // GetParachuteDiskEphemeralUsed returns the ParachuteDiskEphemeralUsed field value func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsed() *int64 { - if o == nil { + if o == nil || IsNil(o.ParachuteDiskEphemeralUsed) { var ret *int64 return ret } @@ -513,7 +513,7 @@ func (o *GetMetricsResponse) SetParachuteDiskEphemeralUsed(v *int64) { // GetParachuteDiskEphemeralUsedPercent returns the ParachuteDiskEphemeralUsedPercent field value func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedPercent() *int64 { - if o == nil { + if o == nil || IsNil(o.ParachuteDiskEphemeralUsedPercent) { var ret *int64 return ret } @@ -537,7 +537,7 @@ func (o *GetMetricsResponse) SetParachuteDiskEphemeralUsedPercent(v *int64) { // GetParachuteDiskEphemeralUsedThreshold returns the ParachuteDiskEphemeralUsedThreshold field value func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedThreshold() *int64 { - if o == nil { + if o == nil || IsNil(o.ParachuteDiskEphemeralUsedThreshold) { var ret *int64 return ret } @@ -561,7 +561,7 @@ func (o *GetMetricsResponse) SetParachuteDiskEphemeralUsedThreshold(v *int64) { // GetParachuteDiskPersistentActivated returns the ParachuteDiskPersistentActivated field value func (o *GetMetricsResponse) GetParachuteDiskPersistentActivated() *bool { - if o == nil { + if o == nil || IsNil(o.ParachuteDiskPersistentActivated) { var ret *bool return ret } @@ -585,7 +585,7 @@ func (o *GetMetricsResponse) SetParachuteDiskPersistentActivated(v *bool) { // GetParachuteDiskPersistentTotal returns the ParachuteDiskPersistentTotal field value func (o *GetMetricsResponse) GetParachuteDiskPersistentTotal() *int64 { - if o == nil { + if o == nil || IsNil(o.ParachuteDiskPersistentTotal) { var ret *int64 return ret } @@ -609,7 +609,7 @@ func (o *GetMetricsResponse) SetParachuteDiskPersistentTotal(v *int64) { // GetParachuteDiskPersistentUsed returns the ParachuteDiskPersistentUsed field value func (o *GetMetricsResponse) GetParachuteDiskPersistentUsed() *int64 { - if o == nil { + if o == nil || IsNil(o.ParachuteDiskPersistentUsed) { var ret *int64 return ret } @@ -633,7 +633,7 @@ func (o *GetMetricsResponse) SetParachuteDiskPersistentUsed(v *int64) { // GetParachuteDiskPersistentUsedPercent returns the ParachuteDiskPersistentUsedPercent field value func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedPercent() *int64 { - if o == nil { + if o == nil || IsNil(o.ParachuteDiskPersistentUsedPercent) { var ret *int64 return ret } @@ -657,7 +657,7 @@ func (o *GetMetricsResponse) SetParachuteDiskPersistentUsedPercent(v *int64) { // GetParachuteDiskPersistentUsedThreshold returns the ParachuteDiskPersistentUsedThreshold field value func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedThreshold() *int64 { - if o == nil { + if o == nil || IsNil(o.ParachuteDiskPersistentUsedThreshold) { var ret *int64 return ret } diff --git a/services/mariadb/model_instance.go b/services/mariadb/model_instance.go index 8fe308635..033b3a3fc 100644 --- a/services/mariadb/model_instance.go +++ b/services/mariadb/model_instance.go @@ -81,7 +81,7 @@ func NewInstanceWithDefaults() *Instance { // GetCfGuid returns the CfGuid field value func (o *Instance) GetCfGuid() *string { - if o == nil { + if o == nil || IsNil(o.CfGuid) { var ret *string return ret } @@ -105,7 +105,7 @@ func (o *Instance) SetCfGuid(v *string) { // GetCfOrganizationGuid returns the CfOrganizationGuid field value func (o *Instance) GetCfOrganizationGuid() *string { - if o == nil { + if o == nil || IsNil(o.CfOrganizationGuid) { var ret *string return ret } @@ -129,7 +129,7 @@ func (o *Instance) SetCfOrganizationGuid(v *string) { // GetCfSpaceGuid returns the CfSpaceGuid field value func (o *Instance) GetCfSpaceGuid() *string { - if o == nil { + if o == nil || IsNil(o.CfSpaceGuid) { var ret *string return ret } @@ -153,7 +153,7 @@ func (o *Instance) SetCfSpaceGuid(v *string) { // GetDashboardUrl returns the DashboardUrl field value func (o *Instance) GetDashboardUrl() *string { - if o == nil { + if o == nil || IsNil(o.DashboardUrl) { var ret *string return ret } @@ -177,7 +177,7 @@ func (o *Instance) SetDashboardUrl(v *string) { // GetImageUrl returns the ImageUrl field value func (o *Instance) GetImageUrl() *string { - if o == nil { + if o == nil || IsNil(o.ImageUrl) { var ret *string return ret } @@ -219,7 +219,7 @@ func (o *Instance) GetInstanceIdOk() (*string, bool) { // HasInstanceId returns a boolean if a field has been set. func (o *Instance) HasInstanceId() bool { - if o != nil && !IsNil(o.InstanceId) { + if o != nil && !IsNil(o.InstanceId) && !IsNil(o.InstanceId) { return true } @@ -233,7 +233,7 @@ func (o *Instance) SetInstanceId(v *string) { // GetLastOperation returns the LastOperation field value func (o *Instance) GetLastOperation() *InstanceLastOperation { - if o == nil { + if o == nil || IsNil(o.LastOperation) { var ret *InstanceLastOperation return ret } @@ -257,7 +257,7 @@ func (o *Instance) SetLastOperation(v *InstanceLastOperation) { // GetName returns the Name field value func (o *Instance) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -282,7 +282,7 @@ func (o *Instance) SetName(v *string) { // GetOfferingName returns the OfferingName field value // Deprecated func (o *Instance) GetOfferingName() *string { - if o == nil { + if o == nil || IsNil(o.OfferingName) { var ret *string return ret } @@ -308,7 +308,7 @@ func (o *Instance) SetOfferingName(v *string) { // GetOfferingVersion returns the OfferingVersion field value func (o *Instance) GetOfferingVersion() *string { - if o == nil { + if o == nil || IsNil(o.OfferingVersion) { var ret *string return ret } @@ -332,7 +332,7 @@ func (o *Instance) SetOfferingVersion(v *string) { // GetParameters returns the Parameters field value func (o *Instance) GetParameters() *map[string]interface{} { - if o == nil { + if o == nil || IsNil(o.Parameters) { var ret *map[string]interface{} return ret } @@ -356,7 +356,7 @@ func (o *Instance) SetParameters(v *map[string]interface{}) { // GetPlanId returns the PlanId field value func (o *Instance) GetPlanId() *string { - if o == nil { + if o == nil || IsNil(o.PlanId) { var ret *string return ret } @@ -380,7 +380,7 @@ func (o *Instance) SetPlanId(v *string) { // GetPlanName returns the PlanName field value func (o *Instance) GetPlanName() *string { - if o == nil { + if o == nil || IsNil(o.PlanName) { var ret *string return ret } @@ -422,7 +422,7 @@ func (o *Instance) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *Instance) HasStatus() bool { - if o != nil && !IsNil(o.Status) { + if o != nil && !IsNil(o.Status) && !IsNil(o.Status) { return true } diff --git a/services/mariadb/model_instance_last_operation.go b/services/mariadb/model_instance_last_operation.go index 4ee40f7bf..f9274a20b 100644 --- a/services/mariadb/model_instance_last_operation.go +++ b/services/mariadb/model_instance_last_operation.go @@ -51,7 +51,7 @@ func NewInstanceLastOperationWithDefaults() *InstanceLastOperation { // GetDescription returns the Description field value func (o *InstanceLastOperation) GetDescription() *string { - if o == nil { + if o == nil || IsNil(o.Description) { var ret *string return ret } @@ -75,7 +75,7 @@ func (o *InstanceLastOperation) SetDescription(v *string) { // GetState returns the State field value func (o *InstanceLastOperation) GetState() *string { - if o == nil { + if o == nil || IsNil(o.State) { var ret *string return ret } @@ -99,7 +99,7 @@ func (o *InstanceLastOperation) SetState(v *string) { // GetType returns the Type field value func (o *InstanceLastOperation) GetType() *string { - if o == nil { + if o == nil || IsNil(o.Type) { var ret *string return ret } diff --git a/services/mariadb/model_instance_parameters.go b/services/mariadb/model_instance_parameters.go index 2e9edbd27..6f7c35310 100644 --- a/services/mariadb/model_instance_parameters.go +++ b/services/mariadb/model_instance_parameters.go @@ -83,7 +83,7 @@ func (o *InstanceParameters) GetEnableMonitoringOk() (*bool, bool) { // HasEnableMonitoring returns a boolean if a field has been set. func (o *InstanceParameters) HasEnableMonitoring() bool { - if o != nil && !IsNil(o.EnableMonitoring) { + if o != nil && !IsNil(o.EnableMonitoring) && !IsNil(o.EnableMonitoring) { return true } @@ -115,7 +115,7 @@ func (o *InstanceParameters) GetGraphiteOk() (*string, bool) { // HasGraphite returns a boolean if a field has been set. func (o *InstanceParameters) HasGraphite() bool { - if o != nil && !IsNil(o.Graphite) { + if o != nil && !IsNil(o.Graphite) && !IsNil(o.Graphite) { return true } @@ -147,7 +147,7 @@ func (o *InstanceParameters) GetMaxDiskThresholdOk() (*int64, bool) { // HasMaxDiskThreshold returns a boolean if a field has been set. func (o *InstanceParameters) HasMaxDiskThreshold() bool { - if o != nil && !IsNil(o.MaxDiskThreshold) { + if o != nil && !IsNil(o.MaxDiskThreshold) && !IsNil(o.MaxDiskThreshold) { return true } @@ -179,7 +179,7 @@ func (o *InstanceParameters) GetMetricsFrequencyOk() (*int64, bool) { // HasMetricsFrequency returns a boolean if a field has been set. func (o *InstanceParameters) HasMetricsFrequency() bool { - if o != nil && !IsNil(o.MetricsFrequency) { + if o != nil && !IsNil(o.MetricsFrequency) && !IsNil(o.MetricsFrequency) { return true } @@ -211,7 +211,7 @@ func (o *InstanceParameters) GetMetricsPrefixOk() (*string, bool) { // HasMetricsPrefix returns a boolean if a field has been set. func (o *InstanceParameters) HasMetricsPrefix() bool { - if o != nil && !IsNil(o.MetricsPrefix) { + if o != nil && !IsNil(o.MetricsPrefix) && !IsNil(o.MetricsPrefix) { return true } @@ -243,7 +243,7 @@ func (o *InstanceParameters) GetMonitoringInstanceIdOk() (*string, bool) { // HasMonitoringInstanceId returns a boolean if a field has been set. func (o *InstanceParameters) HasMonitoringInstanceId() bool { - if o != nil && !IsNil(o.MonitoringInstanceId) { + if o != nil && !IsNil(o.MonitoringInstanceId) && !IsNil(o.MonitoringInstanceId) { return true } @@ -275,7 +275,7 @@ func (o *InstanceParameters) GetSgwAclOk() (*string, bool) { // HasSgwAcl returns a boolean if a field has been set. func (o *InstanceParameters) HasSgwAcl() bool { - if o != nil && !IsNil(o.SgwAcl) { + if o != nil && !IsNil(o.SgwAcl) && !IsNil(o.SgwAcl) { return true } @@ -307,7 +307,7 @@ func (o *InstanceParameters) GetSyslogOk() (*[]string, bool) { // HasSyslog returns a boolean if a field has been set. func (o *InstanceParameters) HasSyslog() bool { - if o != nil && !IsNil(o.Syslog) { + if o != nil && !IsNil(o.Syslog) && !IsNil(o.Syslog) { return true } diff --git a/services/mariadb/model_instance_schema.go b/services/mariadb/model_instance_schema.go index 12fc71300..1cca4797c 100644 --- a/services/mariadb/model_instance_schema.go +++ b/services/mariadb/model_instance_schema.go @@ -48,7 +48,7 @@ func NewInstanceSchemaWithDefaults() *InstanceSchema { // GetCreate returns the Create field value func (o *InstanceSchema) GetCreate() *Schema { - if o == nil { + if o == nil || IsNil(o.Create) { var ret *Schema return ret } @@ -72,7 +72,7 @@ func (o *InstanceSchema) SetCreate(v *Schema) { // GetUpdate returns the Update field value func (o *InstanceSchema) GetUpdate() *Schema { - if o == nil { + if o == nil || IsNil(o.Update) { var ret *Schema return ret } diff --git a/services/mariadb/model_list_backups_response.go b/services/mariadb/model_list_backups_response.go index 52c268782..49d6148ea 100644 --- a/services/mariadb/model_list_backups_response.go +++ b/services/mariadb/model_list_backups_response.go @@ -45,7 +45,7 @@ func NewListBackupsResponseWithDefaults() *ListBackupsResponse { // GetInstanceBackups returns the InstanceBackups field value func (o *ListBackupsResponse) GetInstanceBackups() *[]Backup { - if o == nil { + if o == nil || IsNil(o.InstanceBackups) { var ret *[]Backup return ret } diff --git a/services/mariadb/model_list_credentials_response.go b/services/mariadb/model_list_credentials_response.go index 5342e8f2c..e27ad3b18 100644 --- a/services/mariadb/model_list_credentials_response.go +++ b/services/mariadb/model_list_credentials_response.go @@ -45,7 +45,7 @@ func NewListCredentialsResponseWithDefaults() *ListCredentialsResponse { // GetCredentialsList returns the CredentialsList field value func (o *ListCredentialsResponse) GetCredentialsList() *[]CredentialsListItem { - if o == nil { + if o == nil || IsNil(o.CredentialsList) { var ret *[]CredentialsListItem return ret } diff --git a/services/mariadb/model_list_instances_response.go b/services/mariadb/model_list_instances_response.go index 571aa724f..c0a09db8e 100644 --- a/services/mariadb/model_list_instances_response.go +++ b/services/mariadb/model_list_instances_response.go @@ -45,7 +45,7 @@ func NewListInstancesResponseWithDefaults() *ListInstancesResponse { // GetInstances returns the Instances field value func (o *ListInstancesResponse) GetInstances() *[]Instance { - if o == nil { + if o == nil || IsNil(o.Instances) { var ret *[]Instance return ret } diff --git a/services/mariadb/model_list_offerings_response.go b/services/mariadb/model_list_offerings_response.go index b3714d271..0b8ba65a1 100644 --- a/services/mariadb/model_list_offerings_response.go +++ b/services/mariadb/model_list_offerings_response.go @@ -45,7 +45,7 @@ func NewListOfferingsResponseWithDefaults() *ListOfferingsResponse { // GetOfferings returns the Offerings field value func (o *ListOfferingsResponse) GetOfferings() *[]Offering { - if o == nil { + if o == nil || IsNil(o.Offerings) { var ret *[]Offering return ret } diff --git a/services/mariadb/model_list_restores_response.go b/services/mariadb/model_list_restores_response.go index 5962fbb53..1fc5bf0dc 100644 --- a/services/mariadb/model_list_restores_response.go +++ b/services/mariadb/model_list_restores_response.go @@ -45,7 +45,7 @@ func NewListRestoresResponseWithDefaults() *ListRestoresResponse { // GetInstanceRestores returns the InstanceRestores field value func (o *ListRestoresResponse) GetInstanceRestores() *[]Restore { - if o == nil { + if o == nil || IsNil(o.InstanceRestores) { var ret *[]Restore return ret } diff --git a/services/mariadb/model_offering.go b/services/mariadb/model_offering.go index 6077fffba..3d4c099d5 100644 --- a/services/mariadb/model_offering.go +++ b/services/mariadb/model_offering.go @@ -68,7 +68,7 @@ func NewOfferingWithDefaults() *Offering { // GetDescription returns the Description field value func (o *Offering) GetDescription() *string { - if o == nil { + if o == nil || IsNil(o.Description) { var ret *string return ret } @@ -92,7 +92,7 @@ func (o *Offering) SetDescription(v *string) { // GetDocumentationUrl returns the DocumentationUrl field value func (o *Offering) GetDocumentationUrl() *string { - if o == nil { + if o == nil || IsNil(o.DocumentationUrl) { var ret *string return ret } @@ -116,7 +116,7 @@ func (o *Offering) SetDocumentationUrl(v *string) { // GetImageUrl returns the ImageUrl field value func (o *Offering) GetImageUrl() *string { - if o == nil { + if o == nil || IsNil(o.ImageUrl) { var ret *string return ret } @@ -140,7 +140,7 @@ func (o *Offering) SetImageUrl(v *string) { // GetLatest returns the Latest field value func (o *Offering) GetLatest() *bool { - if o == nil { + if o == nil || IsNil(o.Latest) { var ret *bool return ret } @@ -182,7 +182,7 @@ func (o *Offering) GetLifecycleOk() (*string, bool) { // HasLifecycle returns a boolean if a field has been set. func (o *Offering) HasLifecycle() bool { - if o != nil && !IsNil(o.Lifecycle) { + if o != nil && !IsNil(o.Lifecycle) && !IsNil(o.Lifecycle) { return true } @@ -196,7 +196,7 @@ func (o *Offering) SetLifecycle(v *string) { // GetName returns the Name field value func (o *Offering) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -220,7 +220,7 @@ func (o *Offering) SetName(v *string) { // GetPlans returns the Plans field value func (o *Offering) GetPlans() *[]Plan { - if o == nil { + if o == nil || IsNil(o.Plans) { var ret *[]Plan return ret } @@ -244,7 +244,7 @@ func (o *Offering) SetPlans(v *[]Plan) { // GetQuotaCount returns the QuotaCount field value func (o *Offering) GetQuotaCount() *int64 { - if o == nil { + if o == nil || IsNil(o.QuotaCount) { var ret *int64 return ret } @@ -286,7 +286,7 @@ func (o *Offering) GetSchemaOk() (*InstanceSchema, bool) { // HasSchema returns a boolean if a field has been set. func (o *Offering) HasSchema() bool { - if o != nil && !IsNil(o.Schema) { + if o != nil && !IsNil(o.Schema) && !IsNil(o.Schema) { return true } @@ -300,7 +300,7 @@ func (o *Offering) SetSchema(v *InstanceSchema) { // GetVersion returns the Version field value func (o *Offering) GetVersion() *string { - if o == nil { + if o == nil || IsNil(o.Version) { var ret *string return ret } diff --git a/services/mariadb/model_partial_update_instance_payload.go b/services/mariadb/model_partial_update_instance_payload.go index d9bb537d1..0b2163332 100644 --- a/services/mariadb/model_partial_update_instance_payload.go +++ b/services/mariadb/model_partial_update_instance_payload.go @@ -61,7 +61,7 @@ func (o *PartialUpdateInstancePayload) GetInstanceNameOk() (*string, bool) { // HasInstanceName returns a boolean if a field has been set. func (o *PartialUpdateInstancePayload) HasInstanceName() bool { - if o != nil && !IsNil(o.InstanceName) { + if o != nil && !IsNil(o.InstanceName) && !IsNil(o.InstanceName) { return true } @@ -93,7 +93,7 @@ func (o *PartialUpdateInstancePayload) GetParametersOk() (*InstanceParameters, b // HasParameters returns a boolean if a field has been set. func (o *PartialUpdateInstancePayload) HasParameters() bool { - if o != nil && !IsNil(o.Parameters) { + if o != nil && !IsNil(o.Parameters) && !IsNil(o.Parameters) { return true } @@ -125,7 +125,7 @@ func (o *PartialUpdateInstancePayload) GetPlanIdOk() (*string, bool) { // HasPlanId returns a boolean if a field has been set. func (o *PartialUpdateInstancePayload) HasPlanId() bool { - if o != nil && !IsNil(o.PlanId) { + if o != nil && !IsNil(o.PlanId) && !IsNil(o.PlanId) { return true } diff --git a/services/mariadb/model_plan.go b/services/mariadb/model_plan.go index 40962074d..6ec555531 100644 --- a/services/mariadb/model_plan.go +++ b/services/mariadb/model_plan.go @@ -57,7 +57,7 @@ func NewPlanWithDefaults() *Plan { // GetDescription returns the Description field value func (o *Plan) GetDescription() *string { - if o == nil { + if o == nil || IsNil(o.Description) { var ret *string return ret } @@ -81,7 +81,7 @@ func (o *Plan) SetDescription(v *string) { // GetFree returns the Free field value func (o *Plan) GetFree() *bool { - if o == nil { + if o == nil || IsNil(o.Free) { var ret *bool return ret } @@ -105,7 +105,7 @@ func (o *Plan) SetFree(v *bool) { // GetId returns the Id field value func (o *Plan) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -129,7 +129,7 @@ func (o *Plan) SetId(v *string) { // GetName returns the Name field value func (o *Plan) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -153,7 +153,7 @@ func (o *Plan) SetName(v *string) { // GetSkuName returns the SkuName field value func (o *Plan) GetSkuName() *string { - if o == nil { + if o == nil || IsNil(o.SkuName) { var ret *string return ret } diff --git a/services/mariadb/model_raw_credentials.go b/services/mariadb/model_raw_credentials.go index 3e69462b7..4d9a4451b 100644 --- a/services/mariadb/model_raw_credentials.go +++ b/services/mariadb/model_raw_credentials.go @@ -45,7 +45,7 @@ func NewRawCredentialsWithDefaults() *RawCredentials { // GetCredentials returns the Credentials field value func (o *RawCredentials) GetCredentials() *Credentials { - if o == nil { + if o == nil || IsNil(o.Credentials) { var ret *Credentials return ret } diff --git a/services/mariadb/model_restore.go b/services/mariadb/model_restore.go index a75d7973b..dee193122 100644 --- a/services/mariadb/model_restore.go +++ b/services/mariadb/model_restore.go @@ -55,7 +55,7 @@ func NewRestoreWithDefaults() *Restore { // GetBackupId returns the BackupId field value func (o *Restore) GetBackupId() *int64 { - if o == nil { + if o == nil || IsNil(o.BackupId) { var ret *int64 return ret } @@ -79,7 +79,7 @@ func (o *Restore) SetBackupId(v *int64) { // GetFinishedAt returns the FinishedAt field value func (o *Restore) GetFinishedAt() *string { - if o == nil { + if o == nil || IsNil(o.FinishedAt) { var ret *string return ret } @@ -103,7 +103,7 @@ func (o *Restore) SetFinishedAt(v *string) { // GetId returns the Id field value func (o *Restore) GetId() *int64 { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *int64 return ret } @@ -127,7 +127,7 @@ func (o *Restore) SetId(v *int64) { // GetStatus returns the Status field value func (o *Restore) GetStatus() *string { - if o == nil { + if o == nil || IsNil(o.Status) { var ret *string return ret } @@ -169,7 +169,7 @@ func (o *Restore) GetTriggeredAtOk() (*string, bool) { // HasTriggeredAt returns a boolean if a field has been set. func (o *Restore) HasTriggeredAt() bool { - if o != nil && !IsNil(o.TriggeredAt) { + if o != nil && !IsNil(o.TriggeredAt) && !IsNil(o.TriggeredAt) { return true } diff --git a/services/mariadb/model_schema.go b/services/mariadb/model_schema.go index dd5afe945..fb4e29413 100644 --- a/services/mariadb/model_schema.go +++ b/services/mariadb/model_schema.go @@ -45,7 +45,7 @@ func NewSchemaWithDefaults() *Schema { // GetParameters returns the Parameters field value func (o *Schema) GetParameters() *map[string]interface{} { - if o == nil { + if o == nil || IsNil(o.Parameters) { var ret *map[string]interface{} return ret } diff --git a/services/mariadb/model_trigger_restore_response.go b/services/mariadb/model_trigger_restore_response.go index 656359dea..fc1232481 100644 --- a/services/mariadb/model_trigger_restore_response.go +++ b/services/mariadb/model_trigger_restore_response.go @@ -45,7 +45,7 @@ func NewTriggerRestoreResponseWithDefaults() *TriggerRestoreResponse { // GetId returns the Id field value func (o *TriggerRestoreResponse) GetId() *int64 { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *int64 return ret } diff --git a/services/mariadb/model_update_backups_config_payload.go b/services/mariadb/model_update_backups_config_payload.go index 9110b5367..2b1f1b082 100644 --- a/services/mariadb/model_update_backups_config_payload.go +++ b/services/mariadb/model_update_backups_config_payload.go @@ -59,7 +59,7 @@ func (o *UpdateBackupsConfigPayload) GetEncryptionKeyOk() (*string, bool) { // HasEncryptionKey returns a boolean if a field has been set. func (o *UpdateBackupsConfigPayload) HasEncryptionKey() bool { - if o != nil && !IsNil(o.EncryptionKey) { + if o != nil && !IsNil(o.EncryptionKey) && !IsNil(o.EncryptionKey) { return true } diff --git a/services/mariadb/model_update_backups_config_response.go b/services/mariadb/model_update_backups_config_response.go index a520addca..c69f1ee6a 100644 --- a/services/mariadb/model_update_backups_config_response.go +++ b/services/mariadb/model_update_backups_config_response.go @@ -45,7 +45,7 @@ func NewUpdateBackupsConfigResponseWithDefaults() *UpdateBackupsConfigResponse { // GetMessage returns the Message field value func (o *UpdateBackupsConfigResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret }