From d6f746f10ebd068d35b225821b024dd6484c230f Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 12 Dec 2024 17:18:07 +0000 Subject: [PATCH] Generate serverupdate --- services/serverupdate/model_backup_properties.go | 4 ++-- services/serverupdate/model_create_update_payload.go | 2 +- .../serverupdate/model_create_update_schedule_payload.go | 8 ++++---- services/serverupdate/model_update.go | 6 +++--- services/serverupdate/model_update_schedule.go | 8 ++++---- .../serverupdate/model_update_update_schedule_payload.go | 8 ++++---- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/services/serverupdate/model_backup_properties.go b/services/serverupdate/model_backup_properties.go index 474bea1e5..b690bfbe5 100644 --- a/services/serverupdate/model_backup_properties.go +++ b/services/serverupdate/model_backup_properties.go @@ -52,7 +52,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 } @@ -76,7 +76,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/serverupdate/model_create_update_payload.go b/services/serverupdate/model_create_update_payload.go index ebd2615b5..9a919eec7 100644 --- a/services/serverupdate/model_create_update_payload.go +++ b/services/serverupdate/model_create_update_payload.go @@ -112,7 +112,7 @@ func (o *CreateUpdatePayload) SetBackupProperties(v *BackupProperties) { // GetMaintenanceWindow returns the MaintenanceWindow field value func (o *CreateUpdatePayload) GetMaintenanceWindow() *int64 { - if o == nil { + if o == nil || IsNil(o.MaintenanceWindow) { var ret *int64 return ret } diff --git a/services/serverupdate/model_create_update_schedule_payload.go b/services/serverupdate/model_create_update_schedule_payload.go index ddf8afec8..cdea3b566 100644 --- a/services/serverupdate/model_create_update_schedule_payload.go +++ b/services/serverupdate/model_create_update_schedule_payload.go @@ -57,7 +57,7 @@ func NewCreateUpdateSchedulePayloadWithDefaults() *CreateUpdateSchedulePayload { // GetEnabled returns the Enabled field value func (o *CreateUpdateSchedulePayload) GetEnabled() *bool { - if o == nil { + if o == nil || IsNil(o.Enabled) { var ret *bool return ret } @@ -113,7 +113,7 @@ func (o *CreateUpdateSchedulePayload) SetId(v *int64) { // GetMaintenanceWindow returns the MaintenanceWindow field value func (o *CreateUpdateSchedulePayload) GetMaintenanceWindow() *int64 { - if o == nil { + if o == nil || IsNil(o.MaintenanceWindow) { var ret *int64 return ret } @@ -137,7 +137,7 @@ func (o *CreateUpdateSchedulePayload) SetMaintenanceWindow(v *int64) { // GetName returns the Name field value func (o *CreateUpdateSchedulePayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -161,7 +161,7 @@ func (o *CreateUpdateSchedulePayload) SetName(v *string) { // GetRrule returns the Rrule field value func (o *CreateUpdateSchedulePayload) GetRrule() *string { - if o == nil { + if o == nil || IsNil(o.Rrule) { var ret *string return ret } diff --git a/services/serverupdate/model_update.go b/services/serverupdate/model_update.go index 6905dbdc2..d0fa99d45 100644 --- a/services/serverupdate/model_update.go +++ b/services/serverupdate/model_update.go @@ -154,7 +154,7 @@ func (o *Update) SetFailedUpdates(v *int64) { // GetId returns the Id field value func (o *Update) GetId() *int64 { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *int64 return ret } @@ -210,7 +210,7 @@ func (o *Update) SetInstalledUpdates(v *int64) { // GetStartDate returns the StartDate field value func (o *Update) GetStartDate() *string { - if o == nil { + if o == nil || IsNil(o.StartDate) { var ret *string return ret } @@ -234,7 +234,7 @@ func (o *Update) SetStartDate(v *string) { // GetStatus returns the Status field value func (o *Update) GetStatus() *string { - if o == nil { + if o == nil || IsNil(o.Status) { var ret *string return ret } diff --git a/services/serverupdate/model_update_schedule.go b/services/serverupdate/model_update_schedule.go index e279dfcb6..ec9670f93 100644 --- a/services/serverupdate/model_update_schedule.go +++ b/services/serverupdate/model_update_schedule.go @@ -57,7 +57,7 @@ func NewUpdateScheduleWithDefaults() *UpdateSchedule { // GetEnabled returns the Enabled field value func (o *UpdateSchedule) GetEnabled() *bool { - if o == nil { + if o == nil || IsNil(o.Enabled) { var ret *bool return ret } @@ -113,7 +113,7 @@ func (o *UpdateSchedule) SetId(v *int64) { // GetMaintenanceWindow returns the MaintenanceWindow field value func (o *UpdateSchedule) GetMaintenanceWindow() *int64 { - if o == nil { + if o == nil || IsNil(o.MaintenanceWindow) { var ret *int64 return ret } @@ -137,7 +137,7 @@ func (o *UpdateSchedule) SetMaintenanceWindow(v *int64) { // GetName returns the Name field value func (o *UpdateSchedule) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -161,7 +161,7 @@ func (o *UpdateSchedule) SetName(v *string) { // GetRrule returns the Rrule field value func (o *UpdateSchedule) GetRrule() *string { - if o == nil { + if o == nil || IsNil(o.Rrule) { var ret *string return ret } diff --git a/services/serverupdate/model_update_update_schedule_payload.go b/services/serverupdate/model_update_update_schedule_payload.go index 0d823cdc7..75d67b1bd 100644 --- a/services/serverupdate/model_update_update_schedule_payload.go +++ b/services/serverupdate/model_update_update_schedule_payload.go @@ -57,7 +57,7 @@ func NewUpdateUpdateSchedulePayloadWithDefaults() *UpdateUpdateSchedulePayload { // GetEnabled returns the Enabled field value func (o *UpdateUpdateSchedulePayload) GetEnabled() *bool { - if o == nil { + if o == nil || IsNil(o.Enabled) { var ret *bool return ret } @@ -113,7 +113,7 @@ func (o *UpdateUpdateSchedulePayload) SetId(v *int64) { // GetMaintenanceWindow returns the MaintenanceWindow field value func (o *UpdateUpdateSchedulePayload) GetMaintenanceWindow() *int64 { - if o == nil { + if o == nil || IsNil(o.MaintenanceWindow) { var ret *int64 return ret } @@ -137,7 +137,7 @@ func (o *UpdateUpdateSchedulePayload) SetMaintenanceWindow(v *int64) { // GetName returns the Name field value func (o *UpdateUpdateSchedulePayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -161,7 +161,7 @@ func (o *UpdateUpdateSchedulePayload) SetName(v *string) { // GetRrule returns the Rrule field value func (o *UpdateUpdateSchedulePayload) GetRrule() *string { - if o == nil { + if o == nil || IsNil(o.Rrule) { var ret *string return ret }