From d39f13f704abfad8a46a51d75b6311748579b2a0 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Wed, 5 Feb 2025 09:07:24 +0000 Subject: [PATCH 1/2] Generate serverupdate --- .../serverupdate/model_backup_properties.go | 177 ---------------- .../model_create_update_payload.go | 38 +--- .../model_create_update_schedule_payload.go | 37 ---- .../serverupdate/model_update_schedule.go | 68 +++--- .../model_update_schedule_all_of.go | 111 ++++++++++ .../model_update_schedule_create_request.go | 195 ++++++++++++++++++ .../model_update_update_schedule_payload.go | 37 ---- 7 files changed, 337 insertions(+), 326 deletions(-) delete mode 100644 services/serverupdate/model_backup_properties.go create mode 100644 services/serverupdate/model_update_schedule_all_of.go create mode 100644 services/serverupdate/model_update_schedule_create_request.go diff --git a/services/serverupdate/model_backup_properties.go b/services/serverupdate/model_backup_properties.go deleted file mode 100644 index b690bfbe5..000000000 --- a/services/serverupdate/model_backup_properties.go +++ /dev/null @@ -1,177 +0,0 @@ -/* -STACKIT Server Update Management API - -API endpoints for Server Update Operations on STACKIT Servers. - -API version: 1.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package serverupdate - -import ( - "encoding/json" -) - -// checks if the BackupProperties type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &BackupProperties{} - -// BackupProperties struct for BackupProperties -type BackupProperties struct { - // Max 255 characters - // REQUIRED - Name *string `json:"name"` - // Values are set in days (1-36500) - // Can be cast to int32 without loss of precision. - // REQUIRED - RetentionPeriod *int64 `json:"retentionPeriod"` - VolumeIds *[]string `json:"volumeIds,omitempty"` -} - -type _BackupProperties BackupProperties - -// NewBackupProperties instantiates a new BackupProperties object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewBackupProperties(name *string, retentionPeriod *int64) *BackupProperties { - this := BackupProperties{} - this.Name = name - this.RetentionPeriod = retentionPeriod - return &this -} - -// NewBackupPropertiesWithDefaults instantiates a new BackupProperties object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewBackupPropertiesWithDefaults() *BackupProperties { - this := BackupProperties{} - return &this -} - -// GetName returns the Name field value -func (o *BackupProperties) GetName() *string { - if o == nil || IsNil(o.Name) { - var ret *string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *BackupProperties) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Name, true -} - -// SetName sets field value -func (o *BackupProperties) SetName(v *string) { - o.Name = v -} - -// GetRetentionPeriod returns the RetentionPeriod field value -func (o *BackupProperties) GetRetentionPeriod() *int64 { - if o == nil || IsNil(o.RetentionPeriod) { - var ret *int64 - return ret - } - - return o.RetentionPeriod -} - -// GetRetentionPeriodOk returns a tuple with the RetentionPeriod field value -// and a boolean to check if the value has been set. -func (o *BackupProperties) GetRetentionPeriodOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.RetentionPeriod, true -} - -// SetRetentionPeriod sets field value -func (o *BackupProperties) SetRetentionPeriod(v *int64) { - o.RetentionPeriod = v -} - -// GetVolumeIds returns the VolumeIds field value if set, zero value otherwise. -func (o *BackupProperties) GetVolumeIds() *[]string { - if o == nil || IsNil(o.VolumeIds) { - var ret *[]string - return ret - } - return o.VolumeIds -} - -// GetVolumeIdsOk returns a tuple with the VolumeIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BackupProperties) GetVolumeIdsOk() (*[]string, bool) { - if o == nil || IsNil(o.VolumeIds) { - return nil, false - } - return o.VolumeIds, true -} - -// HasVolumeIds returns a boolean if a field has been set. -func (o *BackupProperties) HasVolumeIds() bool { - if o != nil && !IsNil(o.VolumeIds) { - return true - } - - return false -} - -// SetVolumeIds gets a reference to the given []string and assigns it to the VolumeIds field. -func (o *BackupProperties) SetVolumeIds(v *[]string) { - o.VolumeIds = v -} - -func (o BackupProperties) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["name"] = o.Name - toSerialize["retentionPeriod"] = o.RetentionPeriod - if !IsNil(o.VolumeIds) { - toSerialize["volumeIds"] = o.VolumeIds - } - return toSerialize, nil -} - -type NullableBackupProperties struct { - value *BackupProperties - isSet bool -} - -func (v NullableBackupProperties) Get() *BackupProperties { - return v.value -} - -func (v *NullableBackupProperties) Set(val *BackupProperties) { - v.value = val - v.isSet = true -} - -func (v NullableBackupProperties) IsSet() bool { - return v.isSet -} - -func (v *NullableBackupProperties) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBackupProperties(val *BackupProperties) *NullableBackupProperties { - return &NullableBackupProperties{value: val, isSet: true} -} - -func (v NullableBackupProperties) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBackupProperties) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/serverupdate/model_create_update_payload.go b/services/serverupdate/model_create_update_payload.go index 9a919eec7..52e2ed62c 100644 --- a/services/serverupdate/model_create_update_payload.go +++ b/services/serverupdate/model_create_update_payload.go @@ -19,8 +19,7 @@ var _ MappedNullable = &CreateUpdatePayload{} // CreateUpdatePayload struct for CreateUpdatePayload type CreateUpdatePayload struct { - BackupBeforeUpdate *bool `json:"backupBeforeUpdate,omitempty"` - BackupProperties *BackupProperties `json:"backupProperties,omitempty"` + BackupBeforeUpdate *bool `json:"backupBeforeUpdate,omitempty"` // Can be cast to int32 without loss of precision. // REQUIRED MaintenanceWindow *int64 `json:"maintenanceWindow"` @@ -78,38 +77,6 @@ func (o *CreateUpdatePayload) SetBackupBeforeUpdate(v *bool) { o.BackupBeforeUpdate = v } -// GetBackupProperties returns the BackupProperties field value if set, zero value otherwise. -func (o *CreateUpdatePayload) GetBackupProperties() *BackupProperties { - if o == nil || IsNil(o.BackupProperties) { - var ret *BackupProperties - return ret - } - return o.BackupProperties -} - -// GetBackupPropertiesOk returns a tuple with the BackupProperties field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateUpdatePayload) GetBackupPropertiesOk() (*BackupProperties, bool) { - if o == nil || IsNil(o.BackupProperties) { - return nil, false - } - return o.BackupProperties, true -} - -// HasBackupProperties returns a boolean if a field has been set. -func (o *CreateUpdatePayload) HasBackupProperties() bool { - if o != nil && !IsNil(o.BackupProperties) { - return true - } - - return false -} - -// SetBackupProperties gets a reference to the given BackupProperties and assigns it to the BackupProperties field. -func (o *CreateUpdatePayload) SetBackupProperties(v *BackupProperties) { - o.BackupProperties = v -} - // GetMaintenanceWindow returns the MaintenanceWindow field value func (o *CreateUpdatePayload) GetMaintenanceWindow() *int64 { if o == nil || IsNil(o.MaintenanceWindow) { @@ -139,9 +106,6 @@ func (o CreateUpdatePayload) ToMap() (map[string]interface{}, error) { if !IsNil(o.BackupBeforeUpdate) { toSerialize["backupBeforeUpdate"] = o.BackupBeforeUpdate } - if !IsNil(o.BackupProperties) { - toSerialize["backupProperties"] = o.BackupProperties - } toSerialize["maintenanceWindow"] = o.MaintenanceWindow return toSerialize, nil } diff --git a/services/serverupdate/model_create_update_schedule_payload.go b/services/serverupdate/model_create_update_schedule_payload.go index cdea3b566..5f07ff31a 100644 --- a/services/serverupdate/model_create_update_schedule_payload.go +++ b/services/serverupdate/model_create_update_schedule_payload.go @@ -22,8 +22,6 @@ type CreateUpdateSchedulePayload struct { // REQUIRED Enabled *bool `json:"enabled"` // Can be cast to int32 without loss of precision. - Id *int64 `json:"id,omitempty"` - // Can be cast to int32 without loss of precision. // REQUIRED MaintenanceWindow *int64 `json:"maintenanceWindow"` // REQUIRED @@ -79,38 +77,6 @@ func (o *CreateUpdateSchedulePayload) SetEnabled(v *bool) { o.Enabled = v } -// GetId returns the Id field value if set, zero value otherwise. -func (o *CreateUpdateSchedulePayload) GetId() *int64 { - if o == nil || IsNil(o.Id) { - var ret *int64 - return ret - } - return o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateUpdateSchedulePayload) GetIdOk() (*int64, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *CreateUpdateSchedulePayload) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given int64 and assigns it to the Id field. -func (o *CreateUpdateSchedulePayload) SetId(v *int64) { - o.Id = v -} - // GetMaintenanceWindow returns the MaintenanceWindow field value func (o *CreateUpdateSchedulePayload) GetMaintenanceWindow() *int64 { if o == nil || IsNil(o.MaintenanceWindow) { @@ -186,9 +152,6 @@ func (o *CreateUpdateSchedulePayload) SetRrule(v *string) { func (o CreateUpdateSchedulePayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["enabled"] = o.Enabled - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } toSerialize["maintenanceWindow"] = o.MaintenanceWindow toSerialize["name"] = o.Name toSerialize["rrule"] = o.Rrule diff --git a/services/serverupdate/model_update_schedule.go b/services/serverupdate/model_update_schedule.go index ec9670f93..4c4069d06 100644 --- a/services/serverupdate/model_update_schedule.go +++ b/services/serverupdate/model_update_schedule.go @@ -22,14 +22,15 @@ type UpdateSchedule struct { // REQUIRED Enabled *bool `json:"enabled"` // Can be cast to int32 without loss of precision. - Id *int64 `json:"id,omitempty"` - // Can be cast to int32 without loss of precision. // REQUIRED MaintenanceWindow *int64 `json:"maintenanceWindow"` // REQUIRED Name *string `json:"name"` // REQUIRED Rrule *string `json:"rrule"` + // Can be cast to int32 without loss of precision. + // REQUIRED + Id *int64 `json:"id"` } type _UpdateSchedule UpdateSchedule @@ -38,12 +39,13 @@ type _UpdateSchedule UpdateSchedule // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateSchedule(enabled *bool, maintenanceWindow *int64, name *string, rrule *string) *UpdateSchedule { +func NewUpdateSchedule(enabled *bool, maintenanceWindow *int64, name *string, rrule *string, id *int64) *UpdateSchedule { this := UpdateSchedule{} this.Enabled = enabled this.MaintenanceWindow = maintenanceWindow this.Name = name this.Rrule = rrule + this.Id = id return &this } @@ -79,38 +81,6 @@ func (o *UpdateSchedule) SetEnabled(v *bool) { o.Enabled = v } -// GetId returns the Id field value if set, zero value otherwise. -func (o *UpdateSchedule) GetId() *int64 { - if o == nil || IsNil(o.Id) { - var ret *int64 - return ret - } - return o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UpdateSchedule) GetIdOk() (*int64, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *UpdateSchedule) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given int64 and assigns it to the Id field. -func (o *UpdateSchedule) SetId(v *int64) { - o.Id = v -} - // GetMaintenanceWindow returns the MaintenanceWindow field value func (o *UpdateSchedule) GetMaintenanceWindow() *int64 { if o == nil || IsNil(o.MaintenanceWindow) { @@ -183,15 +153,37 @@ func (o *UpdateSchedule) SetRrule(v *string) { o.Rrule = v } +// GetId returns the Id field value +func (o *UpdateSchedule) GetId() *int64 { + if o == nil || IsNil(o.Id) { + var ret *int64 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *UpdateSchedule) GetIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.Id, true +} + +// SetId sets field value +func (o *UpdateSchedule) SetId(v *int64) { + o.Id = v +} + func (o UpdateSchedule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["enabled"] = o.Enabled - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } toSerialize["maintenanceWindow"] = o.MaintenanceWindow toSerialize["name"] = o.Name toSerialize["rrule"] = o.Rrule + toSerialize["id"] = o.Id return toSerialize, nil } diff --git a/services/serverupdate/model_update_schedule_all_of.go b/services/serverupdate/model_update_schedule_all_of.go new file mode 100644 index 000000000..eaf70e146 --- /dev/null +++ b/services/serverupdate/model_update_schedule_all_of.go @@ -0,0 +1,111 @@ +/* +STACKIT Server Update Management API + +API endpoints for Server Update Operations on STACKIT Servers. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serverupdate + +import ( + "encoding/json" +) + +// checks if the UpdateScheduleAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateScheduleAllOf{} + +// UpdateScheduleAllOf struct for UpdateScheduleAllOf +type UpdateScheduleAllOf struct { + // Can be cast to int32 without loss of precision. + // REQUIRED + Id *int64 `json:"id"` +} + +type _UpdateScheduleAllOf UpdateScheduleAllOf + +// NewUpdateScheduleAllOf instantiates a new UpdateScheduleAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateScheduleAllOf(id *int64) *UpdateScheduleAllOf { + this := UpdateScheduleAllOf{} + this.Id = id + return &this +} + +// NewUpdateScheduleAllOfWithDefaults instantiates a new UpdateScheduleAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateScheduleAllOfWithDefaults() *UpdateScheduleAllOf { + this := UpdateScheduleAllOf{} + return &this +} + +// GetId returns the Id field value +func (o *UpdateScheduleAllOf) GetId() *int64 { + if o == nil || IsNil(o.Id) { + var ret *int64 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *UpdateScheduleAllOf) GetIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.Id, true +} + +// SetId sets field value +func (o *UpdateScheduleAllOf) SetId(v *int64) { + o.Id = v +} + +func (o UpdateScheduleAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + return toSerialize, nil +} + +type NullableUpdateScheduleAllOf struct { + value *UpdateScheduleAllOf + isSet bool +} + +func (v NullableUpdateScheduleAllOf) Get() *UpdateScheduleAllOf { + return v.value +} + +func (v *NullableUpdateScheduleAllOf) Set(val *UpdateScheduleAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateScheduleAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateScheduleAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateScheduleAllOf(val *UpdateScheduleAllOf) *NullableUpdateScheduleAllOf { + return &NullableUpdateScheduleAllOf{value: val, isSet: true} +} + +func (v NullableUpdateScheduleAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateScheduleAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/serverupdate/model_update_schedule_create_request.go b/services/serverupdate/model_update_schedule_create_request.go new file mode 100644 index 000000000..211102427 --- /dev/null +++ b/services/serverupdate/model_update_schedule_create_request.go @@ -0,0 +1,195 @@ +/* +STACKIT Server Update Management API + +API endpoints for Server Update Operations on STACKIT Servers. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serverupdate + +import ( + "encoding/json" +) + +// checks if the UpdateScheduleCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateScheduleCreateRequest{} + +// UpdateScheduleCreateRequest struct for UpdateScheduleCreateRequest +type UpdateScheduleCreateRequest struct { + // REQUIRED + Enabled *bool `json:"enabled"` + // Can be cast to int32 without loss of precision. + // REQUIRED + MaintenanceWindow *int64 `json:"maintenanceWindow"` + // REQUIRED + Name *string `json:"name"` + // REQUIRED + Rrule *string `json:"rrule"` +} + +type _UpdateScheduleCreateRequest UpdateScheduleCreateRequest + +// NewUpdateScheduleCreateRequest instantiates a new UpdateScheduleCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateScheduleCreateRequest(enabled *bool, maintenanceWindow *int64, name *string, rrule *string) *UpdateScheduleCreateRequest { + this := UpdateScheduleCreateRequest{} + this.Enabled = enabled + this.MaintenanceWindow = maintenanceWindow + this.Name = name + this.Rrule = rrule + return &this +} + +// NewUpdateScheduleCreateRequestWithDefaults instantiates a new UpdateScheduleCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateScheduleCreateRequestWithDefaults() *UpdateScheduleCreateRequest { + this := UpdateScheduleCreateRequest{} + return &this +} + +// GetEnabled returns the Enabled field value +func (o *UpdateScheduleCreateRequest) GetEnabled() *bool { + if o == nil || IsNil(o.Enabled) { + var ret *bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *UpdateScheduleCreateRequest) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Enabled, true +} + +// SetEnabled sets field value +func (o *UpdateScheduleCreateRequest) SetEnabled(v *bool) { + o.Enabled = v +} + +// GetMaintenanceWindow returns the MaintenanceWindow field value +func (o *UpdateScheduleCreateRequest) GetMaintenanceWindow() *int64 { + if o == nil || IsNil(o.MaintenanceWindow) { + var ret *int64 + return ret + } + + return o.MaintenanceWindow +} + +// GetMaintenanceWindowOk returns a tuple with the MaintenanceWindow field value +// and a boolean to check if the value has been set. +func (o *UpdateScheduleCreateRequest) GetMaintenanceWindowOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.MaintenanceWindow, true +} + +// SetMaintenanceWindow sets field value +func (o *UpdateScheduleCreateRequest) SetMaintenanceWindow(v *int64) { + o.MaintenanceWindow = v +} + +// GetName returns the Name field value +func (o *UpdateScheduleCreateRequest) GetName() *string { + if o == nil || IsNil(o.Name) { + var ret *string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateScheduleCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name, true +} + +// SetName sets field value +func (o *UpdateScheduleCreateRequest) SetName(v *string) { + o.Name = v +} + +// GetRrule returns the Rrule field value +func (o *UpdateScheduleCreateRequest) GetRrule() *string { + if o == nil || IsNil(o.Rrule) { + var ret *string + return ret + } + + return o.Rrule +} + +// GetRruleOk returns a tuple with the Rrule field value +// and a boolean to check if the value has been set. +func (o *UpdateScheduleCreateRequest) GetRruleOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Rrule, true +} + +// SetRrule sets field value +func (o *UpdateScheduleCreateRequest) SetRrule(v *string) { + o.Rrule = v +} + +func (o UpdateScheduleCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["enabled"] = o.Enabled + toSerialize["maintenanceWindow"] = o.MaintenanceWindow + toSerialize["name"] = o.Name + toSerialize["rrule"] = o.Rrule + return toSerialize, nil +} + +type NullableUpdateScheduleCreateRequest struct { + value *UpdateScheduleCreateRequest + isSet bool +} + +func (v NullableUpdateScheduleCreateRequest) Get() *UpdateScheduleCreateRequest { + return v.value +} + +func (v *NullableUpdateScheduleCreateRequest) Set(val *UpdateScheduleCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateScheduleCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateScheduleCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateScheduleCreateRequest(val *UpdateScheduleCreateRequest) *NullableUpdateScheduleCreateRequest { + return &NullableUpdateScheduleCreateRequest{value: val, isSet: true} +} + +func (v NullableUpdateScheduleCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateScheduleCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/serverupdate/model_update_update_schedule_payload.go b/services/serverupdate/model_update_update_schedule_payload.go index 75d67b1bd..b928d8f82 100644 --- a/services/serverupdate/model_update_update_schedule_payload.go +++ b/services/serverupdate/model_update_update_schedule_payload.go @@ -22,8 +22,6 @@ type UpdateUpdateSchedulePayload struct { // REQUIRED Enabled *bool `json:"enabled"` // Can be cast to int32 without loss of precision. - Id *int64 `json:"id,omitempty"` - // Can be cast to int32 without loss of precision. // REQUIRED MaintenanceWindow *int64 `json:"maintenanceWindow"` // REQUIRED @@ -79,38 +77,6 @@ func (o *UpdateUpdateSchedulePayload) SetEnabled(v *bool) { o.Enabled = v } -// GetId returns the Id field value if set, zero value otherwise. -func (o *UpdateUpdateSchedulePayload) GetId() *int64 { - if o == nil || IsNil(o.Id) { - var ret *int64 - return ret - } - return o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UpdateUpdateSchedulePayload) GetIdOk() (*int64, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *UpdateUpdateSchedulePayload) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given int64 and assigns it to the Id field. -func (o *UpdateUpdateSchedulePayload) SetId(v *int64) { - o.Id = v -} - // GetMaintenanceWindow returns the MaintenanceWindow field value func (o *UpdateUpdateSchedulePayload) GetMaintenanceWindow() *int64 { if o == nil || IsNil(o.MaintenanceWindow) { @@ -186,9 +152,6 @@ func (o *UpdateUpdateSchedulePayload) SetRrule(v *string) { func (o UpdateUpdateSchedulePayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["enabled"] = o.Enabled - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } toSerialize["maintenanceWindow"] = o.MaintenanceWindow toSerialize["name"] = o.Name toSerialize["rrule"] = o.Rrule From 0e26095c38f7f287e47a8159bb66bd688cc2eda4 Mon Sep 17 00:00:00 2001 From: Marcel Jacek Date: Wed, 5 Feb 2025 11:57:30 +0100 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 3 +++ services/serverupdate/CHANGELOG.md | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d03b6d35d..504b1df62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ - **Bugfix**: Set type from interface to int64 of `HealthyThreshold`, `UnhealthyThreshold`, `MaxLoadBalancers`, `Port`, `MaxConnections`, `Code` and `TargetPort` - `resourcemanager`: [v0.12.0](services/resourcemanager/CHANGELOG.md#v0120-2025-01-31) - **Breaking Change**: Remove the methods `BffGetContainersOfAFolder` and `BffGetContainersOfAnOrganization` +- `serverupdate`: [v0.4.0](services/serverupdate/CHANGELOG.md#v040-2025-02-05) + - **Breaking Change**: Remove field `BackupProperties` from `CreateUpdatePayload` model + - **Fix**: Remove field `Id` from `CreateUpdateSchedulePayload` model - `objectstorage`: [v1.0.0](services/objectstorage/CHANGELOG.md#v100-2025-02-05) - **Breaking Change:** The region is no longer specified within the client configuration. Instead, the region must be passed as a parameter to any region-specific request. diff --git a/services/serverupdate/CHANGELOG.md b/services/serverupdate/CHANGELOG.md index fb757cb29..240d67163 100644 --- a/services/serverupdate/CHANGELOG.md +++ b/services/serverupdate/CHANGELOG.md @@ -1,3 +1,8 @@ +## v0.4.0 (2025-02-05) + +- **Breaking Change**: Remove field `BackupProperties` from `CreateUpdatePayload` model +- **Fix**: Remove field `Id` from `CreateUpdateSchedulePayload` model + ## v0.3.0 (2025-01-14) - **Feature:** Add new method: `GetServiceResource`