diff --git a/services/logme/CHANGELOG.md b/services/logme/CHANGELOG.md index 27d2a38d..bae71735 100644 --- a/services/logme/CHANGELOG.md +++ b/services/logme/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.20.1 (2024-12-17) + +- **Bugfix:** Correctly handle nullable attributes in model types + ## v0.20.0 (2024-10-14) - **Feature:** Add support for nullable models diff --git a/services/logme/model_backup.go b/services/logme/model_backup.go index 9f2ad196..27049ff3 100644 --- a/services/logme/model_backup.go +++ b/services/logme/model_backup.go @@ -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 } @@ -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 } diff --git a/services/logme/model_create_backup_response_item.go b/services/logme/model_create_backup_response_item.go index 6d0e24c2..fc22b579 100644 --- a/services/logme/model_create_backup_response_item.go +++ b/services/logme/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/logme/model_create_instance_payload.go b/services/logme/model_create_instance_payload.go index 9b279658..9e9f8d70 100644 --- a/services/logme/model_create_instance_payload.go +++ b/services/logme/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 } @@ -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/logme/model_create_instance_response.go b/services/logme/model_create_instance_response.go index 55bfc14c..59112532 100644 --- a/services/logme/model_create_instance_response.go +++ b/services/logme/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/logme/model_credentials.go b/services/logme/model_credentials.go index 139e73c0..0361dd5b 100644 --- a/services/logme/model_credentials.go +++ b/services/logme/model_credentials.go @@ -54,7 +54,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 } @@ -78,7 +78,7 @@ func (o *Credentials) SetHost(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 } @@ -198,7 +198,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/logme/model_credentials_list_item.go b/services/logme/model_credentials_list_item.go index 6bb42545..f00b286b 100644 --- a/services/logme/model_credentials_list_item.go +++ b/services/logme/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/logme/model_credentials_response.go b/services/logme/model_credentials_response.go index b4de4850..8856498b 100644 --- a/services/logme/model_credentials_response.go +++ b/services/logme/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 } @@ -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/logme/model_error.go b/services/logme/model_error.go index 1d309b26..328b3ce3 100644 --- a/services/logme/model_error.go +++ b/services/logme/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/logme/model_get_metrics_response.go b/services/logme/model_get_metrics_response.go index 8e5148a3..0bfe43d2 100644 --- a/services/logme/model_get_metrics_response.go +++ b/services/logme/model_get_metrics_response.go @@ -140,7 +140,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 } @@ -228,7 +228,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 } @@ -252,7 +252,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 } @@ -276,7 +276,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 } @@ -300,7 +300,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 } @@ -324,7 +324,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 } @@ -348,7 +348,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 } @@ -372,7 +372,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 } @@ -396,7 +396,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 } @@ -420,7 +420,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 } @@ -444,7 +444,7 @@ func (o *GetMetricsResponse) SetMemoryUsed(v *int64) { // GetOpensearchDashboardURL returns the OpensearchDashboardURL field value func (o *GetMetricsResponse) GetOpensearchDashboardURL() *string { - if o == nil { + if o == nil || IsNil(o.OpensearchDashboardURL) { var ret *string return ret } @@ -468,7 +468,7 @@ func (o *GetMetricsResponse) SetOpensearchDashboardURL(v *string) { // 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 } @@ -492,7 +492,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 } @@ -516,7 +516,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 } @@ -540,7 +540,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 } @@ -564,7 +564,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 } @@ -588,7 +588,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 } @@ -612,7 +612,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 } @@ -636,7 +636,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 } @@ -660,7 +660,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 } @@ -684,7 +684,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/logme/model_instance.go b/services/logme/model_instance.go index 4b466a8d..563a3832 100644 --- a/services/logme/model_instance.go +++ b/services/logme/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 } @@ -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 } diff --git a/services/logme/model_instance_last_operation.go b/services/logme/model_instance_last_operation.go index 66b5407b..0c3c35bc 100644 --- a/services/logme/model_instance_last_operation.go +++ b/services/logme/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/logme/model_instance_schema.go b/services/logme/model_instance_schema.go index 4b3aa4b2..86604a88 100644 --- a/services/logme/model_instance_schema.go +++ b/services/logme/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/logme/model_list_backups_response.go b/services/logme/model_list_backups_response.go index b3d2fb24..81a616b4 100644 --- a/services/logme/model_list_backups_response.go +++ b/services/logme/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/logme/model_list_credentials_response.go b/services/logme/model_list_credentials_response.go index dd89a9fa..0cf45479 100644 --- a/services/logme/model_list_credentials_response.go +++ b/services/logme/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/logme/model_list_instances_response.go b/services/logme/model_list_instances_response.go index 9d1bc144..c66ae67c 100644 --- a/services/logme/model_list_instances_response.go +++ b/services/logme/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/logme/model_list_offerings_response.go b/services/logme/model_list_offerings_response.go index d381c930..f2245c7e 100644 --- a/services/logme/model_list_offerings_response.go +++ b/services/logme/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/logme/model_list_restores_response.go b/services/logme/model_list_restores_response.go index 955b5677..61f15a40 100644 --- a/services/logme/model_list_restores_response.go +++ b/services/logme/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/logme/model_offering.go b/services/logme/model_offering.go index 7f44121a..92459d00 100644 --- a/services/logme/model_offering.go +++ b/services/logme/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 } @@ -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 } @@ -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/logme/model_plan.go b/services/logme/model_plan.go index 08d48fa4..b8410087 100644 --- a/services/logme/model_plan.go +++ b/services/logme/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/logme/model_raw_credentials.go b/services/logme/model_raw_credentials.go index 15506349..47d1a606 100644 --- a/services/logme/model_raw_credentials.go +++ b/services/logme/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/logme/model_restore.go b/services/logme/model_restore.go index b7bb1f91..154a8ce5 100644 --- a/services/logme/model_restore.go +++ b/services/logme/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 } diff --git a/services/logme/model_schema.go b/services/logme/model_schema.go index 723bb376..bbd2efc7 100644 --- a/services/logme/model_schema.go +++ b/services/logme/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/logme/model_trigger_restore_response.go b/services/logme/model_trigger_restore_response.go index 7eabe9eb..79992e24 100644 --- a/services/logme/model_trigger_restore_response.go +++ b/services/logme/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/logme/model_update_backups_config_response.go b/services/logme/model_update_backups_config_response.go index 06829226..b1abfb1e 100644 --- a/services/logme/model_update_backups_config_response.go +++ b/services/logme/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 }