diff --git a/services/serverbackup/model_backup.go b/services/serverbackup/model_backup.go index ee125d41a..624cc9320 100644 --- a/services/serverbackup/model_backup.go +++ b/services/serverbackup/model_backup.go @@ -60,7 +60,7 @@ func NewBackupWithDefaults() *Backup { // GetCreatedAt returns the CreatedAt field value func (o *Backup) GetCreatedAt() *string { - if o == nil { + if o == nil || IsNil(o.CreatedAt) { var ret *string return ret } @@ -84,7 +84,7 @@ func (o *Backup) SetCreatedAt(v *string) { // GetExpireAt returns the ExpireAt field value func (o *Backup) GetExpireAt() *string { - if o == nil { + if o == nil || IsNil(o.ExpireAt) { var ret *string return ret } @@ -108,7 +108,7 @@ func (o *Backup) SetExpireAt(v *string) { // GetId returns the Id field value func (o *Backup) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -150,7 +150,7 @@ func (o *Backup) GetLastRestoredAtOk() (*string, bool) { // HasLastRestoredAt returns a boolean if a field has been set. func (o *Backup) HasLastRestoredAt() bool { - if o != nil && !IsNil(o.LastRestoredAt) { + if o != nil && !IsNil(o.LastRestoredAt) && !IsNil(o.LastRestoredAt) { return true } @@ -164,7 +164,7 @@ func (o *Backup) SetLastRestoredAt(v *string) { // GetName returns the Name field value func (o *Backup) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -206,7 +206,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 } @@ -220,7 +220,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 } @@ -262,7 +262,7 @@ func (o *Backup) GetVolumeBackupsOk() (*[]BackupVolumeBackupsInner, bool) { // HasVolumeBackups returns a boolean if a field has been set. func (o *Backup) HasVolumeBackups() bool { - if o != nil && !IsNil(o.VolumeBackups) { + if o != nil && !IsNil(o.VolumeBackups) && !IsNil(o.VolumeBackups) { return true } diff --git a/services/serverbackup/model_backup_job.go b/services/serverbackup/model_backup_job.go index e23e4ae1c..280d4e623 100644 --- a/services/serverbackup/model_backup_job.go +++ b/services/serverbackup/model_backup_job.go @@ -45,7 +45,7 @@ func NewBackupJobWithDefaults() *BackupJob { // GetId returns the Id field value func (o *BackupJob) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } diff --git a/services/serverbackup/model_backup_policy.go b/services/serverbackup/model_backup_policy.go index 3b02ecc45..51f2b659d 100644 --- a/services/serverbackup/model_backup_policy.go +++ b/services/serverbackup/model_backup_policy.go @@ -65,7 +65,7 @@ func (o *BackupPolicy) GetBackupPropertiesOk() (*BackupPolicyBackupProperties, b // HasBackupProperties returns a boolean if a field has been set. func (o *BackupPolicy) HasBackupProperties() bool { - if o != nil && !IsNil(o.BackupProperties) { + if o != nil && !IsNil(o.BackupProperties) && !IsNil(o.BackupProperties) { return true } @@ -97,7 +97,7 @@ func (o *BackupPolicy) GetDefaultOk() (*bool, bool) { // HasDefault returns a boolean if a field has been set. func (o *BackupPolicy) HasDefault() bool { - if o != nil && !IsNil(o.Default) { + if o != nil && !IsNil(o.Default) && !IsNil(o.Default) { return true } @@ -129,7 +129,7 @@ func (o *BackupPolicy) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *BackupPolicy) HasDescription() bool { - if o != nil && !IsNil(o.Description) { + if o != nil && !IsNil(o.Description) && !IsNil(o.Description) { return true } @@ -161,7 +161,7 @@ func (o *BackupPolicy) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *BackupPolicy) HasEnabled() bool { - if o != nil && !IsNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) && !IsNil(o.Enabled) { return true } @@ -193,7 +193,7 @@ func (o *BackupPolicy) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *BackupPolicy) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -225,7 +225,7 @@ func (o *BackupPolicy) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *BackupPolicy) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -257,7 +257,7 @@ func (o *BackupPolicy) GetRruleOk() (*string, bool) { // HasRrule returns a boolean if a field has been set. func (o *BackupPolicy) HasRrule() bool { - if o != nil && !IsNil(o.Rrule) { + if o != nil && !IsNil(o.Rrule) && !IsNil(o.Rrule) { return true } diff --git a/services/serverbackup/model_backup_policy_backup_properties.go b/services/serverbackup/model_backup_policy_backup_properties.go index 74cdddddd..12755db4e 100644 --- a/services/serverbackup/model_backup_policy_backup_properties.go +++ b/services/serverbackup/model_backup_policy_backup_properties.go @@ -60,7 +60,7 @@ func (o *BackupPolicyBackupProperties) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *BackupPolicyBackupProperties) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -92,7 +92,7 @@ func (o *BackupPolicyBackupProperties) GetRetentionPeriodOk() (*int64, bool) { // HasRetentionPeriod returns a boolean if a field has been set. func (o *BackupPolicyBackupProperties) HasRetentionPeriod() bool { - if o != nil && !IsNil(o.RetentionPeriod) { + if o != nil && !IsNil(o.RetentionPeriod) && !IsNil(o.RetentionPeriod) { return true } diff --git a/services/serverbackup/model_backup_properties.go b/services/serverbackup/model_backup_properties.go index 4a50b90f1..5fee639fa 100644 --- a/services/serverbackup/model_backup_properties.go +++ b/services/serverbackup/model_backup_properties.go @@ -51,7 +51,7 @@ func NewBackupPropertiesWithDefaults() *BackupProperties { // GetName returns the Name field value func (o *BackupProperties) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -75,7 +75,7 @@ func (o *BackupProperties) SetName(v *string) { // GetRetentionPeriod returns the RetentionPeriod field value func (o *BackupProperties) GetRetentionPeriod() *int64 { - if o == nil { + if o == nil || IsNil(o.RetentionPeriod) { var ret *int64 return ret } @@ -117,7 +117,7 @@ func (o *BackupProperties) GetVolumeIdsOk() (*[]string, bool) { // HasVolumeIds returns a boolean if a field has been set. func (o *BackupProperties) HasVolumeIds() bool { - if o != nil && !IsNil(o.VolumeIds) { + if o != nil && !IsNil(o.VolumeIds) && !IsNil(o.VolumeIds) { return true } diff --git a/services/serverbackup/model_backup_schedule.go b/services/serverbackup/model_backup_schedule.go index f4e9c11a8..5d9610a77 100644 --- a/services/serverbackup/model_backup_schedule.go +++ b/services/serverbackup/model_backup_schedule.go @@ -73,7 +73,7 @@ func (o *BackupSchedule) GetBackupPropertiesOk() (*BackupProperties, bool) { // HasBackupProperties returns a boolean if a field has been set. func (o *BackupSchedule) HasBackupProperties() bool { - if o != nil && !IsNil(o.BackupProperties) { + if o != nil && !IsNil(o.BackupProperties) && !IsNil(o.BackupProperties) { return true } @@ -87,7 +87,7 @@ func (o *BackupSchedule) SetBackupProperties(v *BackupProperties) { // GetEnabled returns the Enabled field value func (o *BackupSchedule) GetEnabled() *bool { - if o == nil { + if o == nil || IsNil(o.Enabled) { var ret *bool return ret } @@ -111,7 +111,7 @@ func (o *BackupSchedule) SetEnabled(v *bool) { // GetId returns the Id field value func (o *BackupSchedule) GetId() *int64 { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *int64 return ret } @@ -135,7 +135,7 @@ func (o *BackupSchedule) SetId(v *int64) { // GetName returns the Name field value func (o *BackupSchedule) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -159,7 +159,7 @@ func (o *BackupSchedule) SetName(v *string) { // GetRrule returns the Rrule field value func (o *BackupSchedule) GetRrule() *string { - if o == nil { + if o == nil || IsNil(o.Rrule) { var ret *string return ret } diff --git a/services/serverbackup/model_backup_volume_backups_inner.go b/services/serverbackup/model_backup_volume_backups_inner.go index 234dd6dab..92b7f909c 100644 --- a/services/serverbackup/model_backup_volume_backups_inner.go +++ b/services/serverbackup/model_backup_volume_backups_inner.go @@ -64,7 +64,7 @@ func (o *BackupVolumeBackupsInner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *BackupVolumeBackupsInner) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -96,7 +96,7 @@ func (o *BackupVolumeBackupsInner) GetLastRestoredAtOk() (*string, bool) { // HasLastRestoredAt returns a boolean if a field has been set. func (o *BackupVolumeBackupsInner) HasLastRestoredAt() bool { - if o != nil && !IsNil(o.LastRestoredAt) { + if o != nil && !IsNil(o.LastRestoredAt) && !IsNil(o.LastRestoredAt) { return true } @@ -128,7 +128,7 @@ func (o *BackupVolumeBackupsInner) GetLastRestoredVolumeIdOk() (*string, bool) { // HasLastRestoredVolumeId returns a boolean if a field has been set. func (o *BackupVolumeBackupsInner) HasLastRestoredVolumeId() bool { - if o != nil && !IsNil(o.LastRestoredVolumeId) { + if o != nil && !IsNil(o.LastRestoredVolumeId) && !IsNil(o.LastRestoredVolumeId) { return true } @@ -160,7 +160,7 @@ func (o *BackupVolumeBackupsInner) GetSizeOk() (*int64, bool) { // HasSize returns a boolean if a field has been set. func (o *BackupVolumeBackupsInner) HasSize() bool { - if o != nil && !IsNil(o.Size) { + if o != nil && !IsNil(o.Size) && !IsNil(o.Size) { return true } @@ -192,7 +192,7 @@ func (o *BackupVolumeBackupsInner) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *BackupVolumeBackupsInner) HasStatus() bool { - if o != nil && !IsNil(o.Status) { + if o != nil && !IsNil(o.Status) && !IsNil(o.Status) { return true } @@ -224,7 +224,7 @@ func (o *BackupVolumeBackupsInner) GetVolumeIdOk() (*string, bool) { // HasVolumeId returns a boolean if a field has been set. func (o *BackupVolumeBackupsInner) HasVolumeId() bool { - if o != nil && !IsNil(o.VolumeId) { + if o != nil && !IsNil(o.VolumeId) && !IsNil(o.VolumeId) { return true } diff --git a/services/serverbackup/model_create_backup_payload.go b/services/serverbackup/model_create_backup_payload.go index 52fa38617..eb93c139e 100644 --- a/services/serverbackup/model_create_backup_payload.go +++ b/services/serverbackup/model_create_backup_payload.go @@ -51,7 +51,7 @@ func NewCreateBackupPayloadWithDefaults() *CreateBackupPayload { // GetName returns the Name field value func (o *CreateBackupPayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -75,7 +75,7 @@ func (o *CreateBackupPayload) SetName(v *string) { // GetRetentionPeriod returns the RetentionPeriod field value func (o *CreateBackupPayload) GetRetentionPeriod() *int64 { - if o == nil { + if o == nil || IsNil(o.RetentionPeriod) { var ret *int64 return ret } @@ -117,7 +117,7 @@ func (o *CreateBackupPayload) GetVolumeIdsOk() (*[]string, bool) { // HasVolumeIds returns a boolean if a field has been set. func (o *CreateBackupPayload) HasVolumeIds() bool { - if o != nil && !IsNil(o.VolumeIds) { + if o != nil && !IsNil(o.VolumeIds) && !IsNil(o.VolumeIds) { return true } diff --git a/services/serverbackup/model_create_backup_schedule_payload.go b/services/serverbackup/model_create_backup_schedule_payload.go index b3ba8c140..cb437b386 100644 --- a/services/serverbackup/model_create_backup_schedule_payload.go +++ b/services/serverbackup/model_create_backup_schedule_payload.go @@ -71,7 +71,7 @@ func (o *CreateBackupSchedulePayload) GetBackupPropertiesOk() (*BackupProperties // HasBackupProperties returns a boolean if a field has been set. func (o *CreateBackupSchedulePayload) HasBackupProperties() bool { - if o != nil && !IsNil(o.BackupProperties) { + if o != nil && !IsNil(o.BackupProperties) && !IsNil(o.BackupProperties) { return true } @@ -85,7 +85,7 @@ func (o *CreateBackupSchedulePayload) SetBackupProperties(v *BackupProperties) { // GetEnabled returns the Enabled field value func (o *CreateBackupSchedulePayload) GetEnabled() *bool { - if o == nil { + if o == nil || IsNil(o.Enabled) { var ret *bool return ret } @@ -109,7 +109,7 @@ func (o *CreateBackupSchedulePayload) SetEnabled(v *bool) { // GetName returns the Name field value func (o *CreateBackupSchedulePayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -133,7 +133,7 @@ func (o *CreateBackupSchedulePayload) SetName(v *string) { // GetRrule returns the Rrule field value func (o *CreateBackupSchedulePayload) GetRrule() *string { - if o == nil { + if o == nil || IsNil(o.Rrule) { var ret *string return ret } diff --git a/services/serverbackup/model_enable_service_payload.go b/services/serverbackup/model_enable_service_payload.go index 37440cf7f..d636ada22 100644 --- a/services/serverbackup/model_enable_service_payload.go +++ b/services/serverbackup/model_enable_service_payload.go @@ -59,7 +59,7 @@ func (o *EnableServicePayload) GetBackupPolicyIdOk() (*string, bool) { // HasBackupPolicyId returns a boolean if a field has been set. func (o *EnableServicePayload) HasBackupPolicyId() bool { - if o != nil && !IsNil(o.BackupPolicyId) { + if o != nil && !IsNil(o.BackupPolicyId) && !IsNil(o.BackupPolicyId) { return true } diff --git a/services/serverbackup/model_enable_service_resource_payload.go b/services/serverbackup/model_enable_service_resource_payload.go index c37a546fa..735a55de4 100644 --- a/services/serverbackup/model_enable_service_resource_payload.go +++ b/services/serverbackup/model_enable_service_resource_payload.go @@ -59,7 +59,7 @@ func (o *EnableServiceResourcePayload) GetBackupPolicyIdOk() (*string, bool) { // HasBackupPolicyId returns a boolean if a field has been set. func (o *EnableServiceResourcePayload) HasBackupPolicyId() bool { - if o != nil && !IsNil(o.BackupPolicyId) { + if o != nil && !IsNil(o.BackupPolicyId) && !IsNil(o.BackupPolicyId) { return true } diff --git a/services/serverbackup/model_get_backup_policies_response.go b/services/serverbackup/model_get_backup_policies_response.go index d10d7bc8e..2e932e1ef 100644 --- a/services/serverbackup/model_get_backup_policies_response.go +++ b/services/serverbackup/model_get_backup_policies_response.go @@ -59,7 +59,7 @@ func (o *GetBackupPoliciesResponse) GetItemsOk() (*[]BackupPolicy, bool) { // HasItems returns a boolean if a field has been set. func (o *GetBackupPoliciesResponse) HasItems() bool { - if o != nil && !IsNil(o.Items) { + if o != nil && !IsNil(o.Items) && !IsNil(o.Items) { return true } diff --git a/services/serverbackup/model_get_backup_schedules_response.go b/services/serverbackup/model_get_backup_schedules_response.go index 54529d2be..567b9d549 100644 --- a/services/serverbackup/model_get_backup_schedules_response.go +++ b/services/serverbackup/model_get_backup_schedules_response.go @@ -59,7 +59,7 @@ func (o *GetBackupSchedulesResponse) GetItemsOk() (*[]BackupSchedule, bool) { // HasItems returns a boolean if a field has been set. func (o *GetBackupSchedulesResponse) HasItems() bool { - if o != nil && !IsNil(o.Items) { + if o != nil && !IsNil(o.Items) && !IsNil(o.Items) { return true } diff --git a/services/serverbackup/model_get_backups_list_response.go b/services/serverbackup/model_get_backups_list_response.go index acfc31a89..2ea9066c6 100644 --- a/services/serverbackup/model_get_backups_list_response.go +++ b/services/serverbackup/model_get_backups_list_response.go @@ -59,7 +59,7 @@ func (o *GetBackupsListResponse) GetItemsOk() (*[]Backup, bool) { // HasItems returns a boolean if a field has been set. func (o *GetBackupsListResponse) HasItems() bool { - if o != nil && !IsNil(o.Items) { + if o != nil && !IsNil(o.Items) && !IsNil(o.Items) { return true } diff --git a/services/serverbackup/model_restore_backup_payload.go b/services/serverbackup/model_restore_backup_payload.go index 9a1acda49..39f77a32d 100644 --- a/services/serverbackup/model_restore_backup_payload.go +++ b/services/serverbackup/model_restore_backup_payload.go @@ -46,7 +46,7 @@ func NewRestoreBackupPayloadWithDefaults() *RestoreBackupPayload { // GetStartServerAfterRestore returns the StartServerAfterRestore field value func (o *RestoreBackupPayload) GetStartServerAfterRestore() *bool { - if o == nil { + if o == nil || IsNil(o.StartServerAfterRestore) { var ret *bool return ret } @@ -88,7 +88,7 @@ func (o *RestoreBackupPayload) GetVolumeIdsOk() (*[]string, bool) { // HasVolumeIds returns a boolean if a field has been set. func (o *RestoreBackupPayload) HasVolumeIds() bool { - if o != nil && !IsNil(o.VolumeIds) { + if o != nil && !IsNil(o.VolumeIds) && !IsNil(o.VolumeIds) { return true } diff --git a/services/serverbackup/model_restore_volume_backup_payload.go b/services/serverbackup/model_restore_volume_backup_payload.go index 7b1f47a62..fbeb055a9 100644 --- a/services/serverbackup/model_restore_volume_backup_payload.go +++ b/services/serverbackup/model_restore_volume_backup_payload.go @@ -45,7 +45,7 @@ func NewRestoreVolumeBackupPayloadWithDefaults() *RestoreVolumeBackupPayload { // GetRestoreVolumeId returns the RestoreVolumeId field value func (o *RestoreVolumeBackupPayload) GetRestoreVolumeId() *string { - if o == nil { + if o == nil || IsNil(o.RestoreVolumeId) { var ret *string return ret } diff --git a/services/serverbackup/model_update_backup_schedule_payload.go b/services/serverbackup/model_update_backup_schedule_payload.go index 751d20334..c64e7c859 100644 --- a/services/serverbackup/model_update_backup_schedule_payload.go +++ b/services/serverbackup/model_update_backup_schedule_payload.go @@ -71,7 +71,7 @@ func (o *UpdateBackupSchedulePayload) GetBackupPropertiesOk() (*BackupProperties // HasBackupProperties returns a boolean if a field has been set. func (o *UpdateBackupSchedulePayload) HasBackupProperties() bool { - if o != nil && !IsNil(o.BackupProperties) { + if o != nil && !IsNil(o.BackupProperties) && !IsNil(o.BackupProperties) { return true } @@ -85,7 +85,7 @@ func (o *UpdateBackupSchedulePayload) SetBackupProperties(v *BackupProperties) { // GetEnabled returns the Enabled field value func (o *UpdateBackupSchedulePayload) GetEnabled() *bool { - if o == nil { + if o == nil || IsNil(o.Enabled) { var ret *bool return ret } @@ -109,7 +109,7 @@ func (o *UpdateBackupSchedulePayload) SetEnabled(v *bool) { // GetName returns the Name field value func (o *UpdateBackupSchedulePayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -133,7 +133,7 @@ func (o *UpdateBackupSchedulePayload) SetName(v *string) { // GetRrule returns the Rrule field value func (o *UpdateBackupSchedulePayload) GetRrule() *string { - if o == nil { + if o == nil || IsNil(o.Rrule) { var ret *string return ret }