diff --git a/services/serverbackup/model_backup.go b/services/serverbackup/model_backup.go index ee125d41a..ab93f1ed7 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 } @@ -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 } @@ -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 } 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_properties.go b/services/serverbackup/model_backup_properties.go index 4a50b90f1..3c00ca06c 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 } diff --git a/services/serverbackup/model_backup_schedule.go b/services/serverbackup/model_backup_schedule.go index f4e9c11a8..438d2acf1 100644 --- a/services/serverbackup/model_backup_schedule.go +++ b/services/serverbackup/model_backup_schedule.go @@ -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_create_backup_payload.go b/services/serverbackup/model_create_backup_payload.go index 52fa38617..ee7651ae1 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 } diff --git a/services/serverbackup/model_create_backup_schedule_payload.go b/services/serverbackup/model_create_backup_schedule_payload.go index b3ba8c140..0dbc39429 100644 --- a/services/serverbackup/model_create_backup_schedule_payload.go +++ b/services/serverbackup/model_create_backup_schedule_payload.go @@ -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_restore_backup_payload.go b/services/serverbackup/model_restore_backup_payload.go index 9a1acda49..f9514cfb5 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 } 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..de0e8c840 100644 --- a/services/serverbackup/model_update_backup_schedule_payload.go +++ b/services/serverbackup/model_update_backup_schedule_payload.go @@ -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 }