diff --git a/services/sqlserverflex/oas_commit b/services/sqlserverflex/oas_commit index f1b28e123..0e998ced2 100644 --- a/services/sqlserverflex/oas_commit +++ b/services/sqlserverflex/oas_commit @@ -1 +1 @@ -6ff0f0f17b8a56b5140a11d892b8578c02bccad1 +6156a6ae82d7f9f27c3782d6d5122b1602697e1d diff --git a/services/sqlserverflex/v3beta1api/model_create_instance_request_payload.go b/services/sqlserverflex/v3beta1api/model_create_instance_request_payload.go index 1d51e11c6..3d54ca75b 100644 --- a/services/sqlserverflex/v3beta1api/model_create_instance_request_payload.go +++ b/services/sqlserverflex/v3beta1api/model_create_instance_request_payload.go @@ -26,6 +26,8 @@ type CreateInstanceRequestPayload struct { Encryption *InstanceEncryption `json:"encryption,omitempty"` // The id of the instance flavor. FlavorId string `json:"flavorId"` + // A dictionary of user-defined key-value pairs used to categorize or organize the resource. **Rules for Keys:** * Must be between 1 and 63 characters long. * Must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). * May contain dashes (`-`), underscores (`_`), and dots (`.`). * **Regex:** `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$` * **Restriction:** The prefix `stackit-` is strictly reserved and cannot be used. **Rules for Values:** * Must be between 0 (empty string) and 63 characters long. * If not empty, must begin and end with an alphanumeric character. * May contain dashes (`-`), underscores (`_`), and dots (`.`). * **Regex:** `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$` + Labels *map[string]string `json:"labels,omitempty"` // The name of the instance. Name string `json:"name"` Network CreateInstanceRequestPayloadNetwork `json:"network"` @@ -142,6 +144,38 @@ func (o *CreateInstanceRequestPayload) SetFlavorId(v string) { o.FlavorId = v } +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *CreateInstanceRequestPayload) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateInstanceRequestPayload) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *CreateInstanceRequestPayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *CreateInstanceRequestPayload) SetLabels(v map[string]string) { + o.Labels = &v +} + // GetName returns the Name field value func (o *CreateInstanceRequestPayload) GetName() string { if o == nil { @@ -277,6 +311,9 @@ func (o CreateInstanceRequestPayload) ToMap() (map[string]interface{}, error) { toSerialize["encryption"] = o.Encryption } toSerialize["flavorId"] = o.FlavorId + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } toSerialize["name"] = o.Name toSerialize["network"] = o.Network toSerialize["retentionDays"] = o.RetentionDays @@ -334,6 +371,7 @@ func (o *CreateInstanceRequestPayload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "backupSchedule") delete(additionalProperties, "encryption") delete(additionalProperties, "flavorId") + delete(additionalProperties, "labels") delete(additionalProperties, "name") delete(additionalProperties, "network") delete(additionalProperties, "retentionDays") diff --git a/services/sqlserverflex/v3beta1api/model_get_instance_response.go b/services/sqlserverflex/v3beta1api/model_get_instance_response.go index f1eb41f48..4e7c820e4 100644 --- a/services/sqlserverflex/v3beta1api/model_get_instance_response.go +++ b/services/sqlserverflex/v3beta1api/model_get_instance_response.go @@ -31,6 +31,8 @@ type GetInstanceResponse struct { Id string `json:"id"` // Whether the instance can be deleted or not. IsDeletable bool `json:"isDeletable"` + // A dictionary of user-defined key-value pairs used to categorize or organize the resource. **Rules for Keys:** * Must be between 1 and 63 characters long. * Must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). * May contain dashes (`-`), underscores (`_`), and dots (`.`). * **Regex:** `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$` * **Restriction:** The prefix `stackit-` is strictly reserved and cannot be used. **Rules for Values:** * Must be between 0 (empty string) and 63 characters long. * If not empty, must begin and end with an alphanumeric character. * May contain dashes (`-`), underscores (`_`), and dots (`.`). * **Regex:** `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$` + Labels *map[string]string `json:"labels,omitempty"` // The name of the instance. Name string `json:"name"` Network InstanceNetwork `json:"network"` @@ -226,6 +228,38 @@ func (o *GetInstanceResponse) SetIsDeletable(v bool) { o.IsDeletable = v } +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *GetInstanceResponse) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetInstanceResponse) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *GetInstanceResponse) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *GetInstanceResponse) SetLabels(v map[string]string) { + o.Labels = &v +} + // GetName returns the Name field value func (o *GetInstanceResponse) GetName() string { if o == nil { @@ -412,6 +446,9 @@ func (o GetInstanceResponse) ToMap() (map[string]interface{}, error) { toSerialize["flavorId"] = o.FlavorId toSerialize["id"] = o.Id toSerialize["isDeletable"] = o.IsDeletable + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } toSerialize["name"] = o.Name toSerialize["network"] = o.Network toSerialize["replicas"] = o.Replicas @@ -479,6 +516,7 @@ func (o *GetInstanceResponse) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "flavorId") delete(additionalProperties, "id") delete(additionalProperties, "isDeletable") + delete(additionalProperties, "labels") delete(additionalProperties, "name") delete(additionalProperties, "network") delete(additionalProperties, "replicas") diff --git a/services/sqlserverflex/v3beta1api/model_update_instance_partially_request_payload.go b/services/sqlserverflex/v3beta1api/model_update_instance_partially_request_payload.go index 86ebc3b5f..becb67106 100644 --- a/services/sqlserverflex/v3beta1api/model_update_instance_partially_request_payload.go +++ b/services/sqlserverflex/v3beta1api/model_update_instance_partially_request_payload.go @@ -24,6 +24,8 @@ type UpdateInstancePartiallyRequestPayload struct { BackupSchedule *string `json:"backupSchedule,omitempty"` // The id of the instance flavor. FlavorId *string `json:"flavorId,omitempty"` + // A dictionary of user-defined key-value pairs used to categorize or organize the resource. **Rules for Keys:** * Must be between 1 and 63 characters long. * Must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). * May contain dashes (`-`), underscores (`_`), and dots (`.`). * **Regex:** `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$` * **Restriction:** The prefix `stackit-` is strictly reserved and cannot be used. **Rules for Values:** * Must be between 0 (empty string) and 63 characters long. * If not empty, must begin and end with an alphanumeric character. * May contain dashes (`-`), underscores (`_`), and dots (`.`). * **Regex:** `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$` + Labels *map[string]string `json:"labels,omitempty"` // The name of the instance. Name *string `json:"name,omitempty"` Network *UpdateInstancePartiallyRequestPayloadNetwork `json:"network,omitempty"` @@ -117,6 +119,38 @@ func (o *UpdateInstancePartiallyRequestPayload) SetFlavorId(v string) { o.FlavorId = &v } +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *UpdateInstancePartiallyRequestPayload) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateInstancePartiallyRequestPayload) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *UpdateInstancePartiallyRequestPayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *UpdateInstancePartiallyRequestPayload) SetLabels(v map[string]string) { + o.Labels = &v +} + // GetName returns the Name field value if set, zero value otherwise. func (o *UpdateInstancePartiallyRequestPayload) GetName() string { if o == nil || IsNil(o.Name) { @@ -325,6 +359,9 @@ func (o UpdateInstancePartiallyRequestPayload) ToMap() (map[string]interface{}, if !IsNil(o.FlavorId) { toSerialize["flavorId"] = o.FlavorId } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -367,6 +404,7 @@ func (o *UpdateInstancePartiallyRequestPayload) UnmarshalJSON(data []byte) (err if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "backupSchedule") delete(additionalProperties, "flavorId") + delete(additionalProperties, "labels") delete(additionalProperties, "name") delete(additionalProperties, "network") delete(additionalProperties, "replicas") diff --git a/services/sqlserverflex/v3beta1api/model_update_instance_request_payload.go b/services/sqlserverflex/v3beta1api/model_update_instance_request_payload.go index 81ba238a1..c64b7f9bc 100644 --- a/services/sqlserverflex/v3beta1api/model_update_instance_request_payload.go +++ b/services/sqlserverflex/v3beta1api/model_update_instance_request_payload.go @@ -25,6 +25,8 @@ type UpdateInstanceRequestPayload struct { BackupSchedule string `json:"backupSchedule"` // The id of the instance flavor. FlavorId string `json:"flavorId"` + // A dictionary of user-defined key-value pairs used to categorize or organize the resource. **Rules for Keys:** * Must be between 1 and 63 characters long. * Must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). * May contain dashes (`-`), underscores (`_`), and dots (`.`). * **Regex:** `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$` * **Restriction:** The prefix `stackit-` is strictly reserved and cannot be used. **Rules for Values:** * Must be between 0 (empty string) and 63 characters long. * If not empty, must begin and end with an alphanumeric character. * May contain dashes (`-`), underscores (`_`), and dots (`.`). * **Regex:** `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$` + Labels *map[string]string `json:"labels,omitempty"` // The name of the instance. Name string `json:"name"` Network UpdateInstanceRequestPayloadNetwork `json:"network"` @@ -111,6 +113,38 @@ func (o *UpdateInstanceRequestPayload) SetFlavorId(v string) { o.FlavorId = v } +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *UpdateInstanceRequestPayload) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateInstanceRequestPayload) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *UpdateInstanceRequestPayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *UpdateInstanceRequestPayload) SetLabels(v map[string]string) { + o.Labels = &v +} + // GetName returns the Name field value func (o *UpdateInstanceRequestPayload) GetName() string { if o == nil { @@ -267,6 +301,9 @@ func (o UpdateInstanceRequestPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["backupSchedule"] = o.BackupSchedule toSerialize["flavorId"] = o.FlavorId + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } toSerialize["name"] = o.Name toSerialize["network"] = o.Network toSerialize["replicas"] = o.Replicas @@ -325,6 +362,7 @@ func (o *UpdateInstanceRequestPayload) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "backupSchedule") delete(additionalProperties, "flavorId") + delete(additionalProperties, "labels") delete(additionalProperties, "name") delete(additionalProperties, "network") delete(additionalProperties, "replicas")