From e8a41bd40981479d1134e5a84d1f34905bc93bb9 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Wed, 11 Dec 2024 15:01:58 +0000 Subject: [PATCH] Generate serverupdate --- services/serverupdate/model_backup_properties.go | 6 +++--- .../serverupdate/model_create_update_payload.go | 6 +++--- .../model_create_update_schedule_payload.go | 10 +++++----- .../serverupdate/model_enable_service_payload.go | 2 +- .../model_enable_service_resource_payload.go | 2 +- .../model_get_update_policies_response.go | 2 +- .../model_get_update_schedules_response.go | 2 +- .../model_get_updates_list_response.go | 2 +- services/serverupdate/model_update.go | 14 +++++++------- services/serverupdate/model_update_policy.go | 14 +++++++------- services/serverupdate/model_update_schedule.go | 10 +++++----- .../model_update_update_schedule_payload.go | 10 +++++----- 12 files changed, 40 insertions(+), 40 deletions(-) diff --git a/services/serverupdate/model_backup_properties.go b/services/serverupdate/model_backup_properties.go index 474bea1e5..5ba524149 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 } @@ -118,7 +118,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/serverupdate/model_create_update_payload.go b/services/serverupdate/model_create_update_payload.go index ebd2615b5..db902d701 100644 --- a/services/serverupdate/model_create_update_payload.go +++ b/services/serverupdate/model_create_update_payload.go @@ -66,7 +66,7 @@ func (o *CreateUpdatePayload) GetBackupBeforeUpdateOk() (*bool, bool) { // HasBackupBeforeUpdate returns a boolean if a field has been set. func (o *CreateUpdatePayload) HasBackupBeforeUpdate() bool { - if o != nil && !IsNil(o.BackupBeforeUpdate) { + if o != nil && !IsNil(o.BackupBeforeUpdate) && !IsNil(o.BackupBeforeUpdate) { return true } @@ -98,7 +98,7 @@ func (o *CreateUpdatePayload) GetBackupPropertiesOk() (*BackupProperties, bool) // HasBackupProperties returns a boolean if a field has been set. func (o *CreateUpdatePayload) HasBackupProperties() bool { - if o != nil && !IsNil(o.BackupProperties) { + if o != nil && !IsNil(o.BackupProperties) && !IsNil(o.BackupProperties) { return true } @@ -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..560221fac 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 } @@ -99,7 +99,7 @@ func (o *CreateUpdateSchedulePayload) GetIdOk() (*int64, bool) { // HasId returns a boolean if a field has been set. func (o *CreateUpdateSchedulePayload) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -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_enable_service_payload.go b/services/serverupdate/model_enable_service_payload.go index 147b4d390..a28d9c85e 100644 --- a/services/serverupdate/model_enable_service_payload.go +++ b/services/serverupdate/model_enable_service_payload.go @@ -59,7 +59,7 @@ func (o *EnableServicePayload) GetUpdatePolicyIdOk() (*string, bool) { // HasUpdatePolicyId returns a boolean if a field has been set. func (o *EnableServicePayload) HasUpdatePolicyId() bool { - if o != nil && !IsNil(o.UpdatePolicyId) { + if o != nil && !IsNil(o.UpdatePolicyId) && !IsNil(o.UpdatePolicyId) { return true } diff --git a/services/serverupdate/model_enable_service_resource_payload.go b/services/serverupdate/model_enable_service_resource_payload.go index 59b1268d1..e61e4d39a 100644 --- a/services/serverupdate/model_enable_service_resource_payload.go +++ b/services/serverupdate/model_enable_service_resource_payload.go @@ -59,7 +59,7 @@ func (o *EnableServiceResourcePayload) GetUpdatePolicyIdOk() (*string, bool) { // HasUpdatePolicyId returns a boolean if a field has been set. func (o *EnableServiceResourcePayload) HasUpdatePolicyId() bool { - if o != nil && !IsNil(o.UpdatePolicyId) { + if o != nil && !IsNil(o.UpdatePolicyId) && !IsNil(o.UpdatePolicyId) { return true } diff --git a/services/serverupdate/model_get_update_policies_response.go b/services/serverupdate/model_get_update_policies_response.go index 4e33eb703..f71b96f54 100644 --- a/services/serverupdate/model_get_update_policies_response.go +++ b/services/serverupdate/model_get_update_policies_response.go @@ -59,7 +59,7 @@ func (o *GetUpdatePoliciesResponse) GetItemsOk() (*[]UpdatePolicy, bool) { // HasItems returns a boolean if a field has been set. func (o *GetUpdatePoliciesResponse) HasItems() bool { - if o != nil && !IsNil(o.Items) { + if o != nil && !IsNil(o.Items) && !IsNil(o.Items) { return true } diff --git a/services/serverupdate/model_get_update_schedules_response.go b/services/serverupdate/model_get_update_schedules_response.go index 15be219f8..cc402a096 100644 --- a/services/serverupdate/model_get_update_schedules_response.go +++ b/services/serverupdate/model_get_update_schedules_response.go @@ -59,7 +59,7 @@ func (o *GetUpdateSchedulesResponse) GetItemsOk() (*[]UpdateSchedule, bool) { // HasItems returns a boolean if a field has been set. func (o *GetUpdateSchedulesResponse) HasItems() bool { - if o != nil && !IsNil(o.Items) { + if o != nil && !IsNil(o.Items) && !IsNil(o.Items) { return true } diff --git a/services/serverupdate/model_get_updates_list_response.go b/services/serverupdate/model_get_updates_list_response.go index 344dda62e..abfd0da36 100644 --- a/services/serverupdate/model_get_updates_list_response.go +++ b/services/serverupdate/model_get_updates_list_response.go @@ -59,7 +59,7 @@ func (o *GetUpdatesListResponse) GetItemsOk() (*[]Update, bool) { // HasItems returns a boolean if a field has been set. func (o *GetUpdatesListResponse) HasItems() bool { - if o != nil && !IsNil(o.Items) { + if o != nil && !IsNil(o.Items) && !IsNil(o.Items) { return true } diff --git a/services/serverupdate/model_update.go b/services/serverupdate/model_update.go index 6905dbdc2..c55ee4445 100644 --- a/services/serverupdate/model_update.go +++ b/services/serverupdate/model_update.go @@ -76,7 +76,7 @@ func (o *Update) GetEndDateOk() (*string, bool) { // HasEndDate returns a boolean if a field has been set. func (o *Update) HasEndDate() bool { - if o != nil && !IsNil(o.EndDate) { + if o != nil && !IsNil(o.EndDate) && !IsNil(o.EndDate) { return true } @@ -108,7 +108,7 @@ func (o *Update) GetFailReasonOk() (*string, bool) { // HasFailReason returns a boolean if a field has been set. func (o *Update) HasFailReason() bool { - if o != nil && !IsNil(o.FailReason) { + if o != nil && !IsNil(o.FailReason) && !IsNil(o.FailReason) { return true } @@ -140,7 +140,7 @@ func (o *Update) GetFailedUpdatesOk() (*int64, bool) { // HasFailedUpdates returns a boolean if a field has been set. func (o *Update) HasFailedUpdates() bool { - if o != nil && !IsNil(o.FailedUpdates) { + if o != nil && !IsNil(o.FailedUpdates) && !IsNil(o.FailedUpdates) { return true } @@ -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 } @@ -196,7 +196,7 @@ func (o *Update) GetInstalledUpdatesOk() (*int64, bool) { // HasInstalledUpdates returns a boolean if a field has been set. func (o *Update) HasInstalledUpdates() bool { - if o != nil && !IsNil(o.InstalledUpdates) { + if o != nil && !IsNil(o.InstalledUpdates) && !IsNil(o.InstalledUpdates) { return true } @@ -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_policy.go b/services/serverupdate/model_update_policy.go index 58cfd6ef6..3cd8a3273 100644 --- a/services/serverupdate/model_update_policy.go +++ b/services/serverupdate/model_update_policy.go @@ -65,7 +65,7 @@ func (o *UpdatePolicy) GetDefaultOk() (*bool, bool) { // HasDefault returns a boolean if a field has been set. func (o *UpdatePolicy) HasDefault() bool { - if o != nil && !IsNil(o.Default) { + if o != nil && !IsNil(o.Default) && !IsNil(o.Default) { return true } @@ -97,7 +97,7 @@ func (o *UpdatePolicy) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *UpdatePolicy) HasDescription() bool { - if o != nil && !IsNil(o.Description) { + if o != nil && !IsNil(o.Description) && !IsNil(o.Description) { return true } @@ -129,7 +129,7 @@ func (o *UpdatePolicy) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *UpdatePolicy) HasEnabled() bool { - if o != nil && !IsNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) && !IsNil(o.Enabled) { return true } @@ -161,7 +161,7 @@ func (o *UpdatePolicy) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *UpdatePolicy) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -193,7 +193,7 @@ func (o *UpdatePolicy) GetMaintenanceWindowOk() (*int64, bool) { // HasMaintenanceWindow returns a boolean if a field has been set. func (o *UpdatePolicy) HasMaintenanceWindow() bool { - if o != nil && !IsNil(o.MaintenanceWindow) { + if o != nil && !IsNil(o.MaintenanceWindow) && !IsNil(o.MaintenanceWindow) { return true } @@ -225,7 +225,7 @@ func (o *UpdatePolicy) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *UpdatePolicy) 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 *UpdatePolicy) GetRruleOk() (*string, bool) { // HasRrule returns a boolean if a field has been set. func (o *UpdatePolicy) HasRrule() bool { - if o != nil && !IsNil(o.Rrule) { + if o != nil && !IsNil(o.Rrule) && !IsNil(o.Rrule) { return true } diff --git a/services/serverupdate/model_update_schedule.go b/services/serverupdate/model_update_schedule.go index e279dfcb6..bb2907a2e 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 } @@ -99,7 +99,7 @@ func (o *UpdateSchedule) GetIdOk() (*int64, bool) { // HasId returns a boolean if a field has been set. func (o *UpdateSchedule) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -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..198e4da65 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 } @@ -99,7 +99,7 @@ func (o *UpdateUpdateSchedulePayload) GetIdOk() (*int64, bool) { // HasId returns a boolean if a field has been set. func (o *UpdateUpdateSchedulePayload) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -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 }