diff --git a/services/sqlserverflex/oas_commit b/services/sqlserverflex/oas_commit index f4e71ced1..69bfa80b3 100644 --- a/services/sqlserverflex/oas_commit +++ b/services/sqlserverflex/oas_commit @@ -1 +1 @@ -beeb2da62f7e0fe249320b50f07e328653c67055 +864bdad12a54f612df8fcdb6e41dd2933e94c3af diff --git a/services/sqlserverflex/v1api/client.go b/services/sqlserverflex/v1api/client.go index f96509338..d600679dd 100644 --- a/services/sqlserverflex/v1api/client.go +++ b/services/sqlserverflex/v1api/client.go @@ -462,6 +462,15 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err *s = string(b) return nil } + if r, ok := v.(*io.Reader); ok { + *r = bytes.NewReader(b) + return nil + } + // Must stay before the JSON branch: json.Unmarshal would base64-decode into *[]byte. + if p, ok := v.(*[]byte); ok { + *p = b + return nil + } if f, ok := v.(*os.File); ok { f, err = os.CreateTemp("", "HttpClientFile") if err != nil { diff --git a/services/sqlserverflex/v2api/client.go b/services/sqlserverflex/v2api/client.go index 33eedb4e5..e27a1a9f0 100644 --- a/services/sqlserverflex/v2api/client.go +++ b/services/sqlserverflex/v2api/client.go @@ -462,6 +462,15 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err *s = string(b) return nil } + if r, ok := v.(*io.Reader); ok { + *r = bytes.NewReader(b) + return nil + } + // Must stay before the JSON branch: json.Unmarshal would base64-decode into *[]byte. + if p, ok := v.(*[]byte); ok { + *p = b + return nil + } if f, ok := v.(*os.File); ok { f, err = os.CreateTemp("", "HttpClientFile") if err != nil { diff --git a/services/sqlserverflex/v3alpha1api/client.go b/services/sqlserverflex/v3alpha1api/client.go index 8f0b8bf77..1cbd1f4d9 100644 --- a/services/sqlserverflex/v3alpha1api/client.go +++ b/services/sqlserverflex/v3alpha1api/client.go @@ -462,6 +462,15 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err *s = string(b) return nil } + if r, ok := v.(*io.Reader); ok { + *r = bytes.NewReader(b) + return nil + } + // Must stay before the JSON branch: json.Unmarshal would base64-decode into *[]byte. + if p, ok := v.(*[]byte); ok { + *p = b + return nil + } if f, ok := v.(*os.File); ok { f, err = os.CreateTemp("", "HttpClientFile") if err != nil { diff --git a/services/sqlserverflex/v3api/client.go b/services/sqlserverflex/v3api/client.go index c557b6d2d..f543a80a3 100644 --- a/services/sqlserverflex/v3api/client.go +++ b/services/sqlserverflex/v3api/client.go @@ -462,6 +462,15 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err *s = string(b) return nil } + if r, ok := v.(*io.Reader); ok { + *r = bytes.NewReader(b) + return nil + } + // Must stay before the JSON branch: json.Unmarshal would base64-decode into *[]byte. + if p, ok := v.(*[]byte); ok { + *p = b + return nil + } if f, ok := v.(*os.File); ok { f, err = os.CreateTemp("", "HttpClientFile") if err != nil { diff --git a/services/sqlserverflex/v3api/model_create_instance_payload.go b/services/sqlserverflex/v3api/model_create_instance_payload.go index 35a034d08..50992658c 100644 --- a/services/sqlserverflex/v3api/model_create_instance_payload.go +++ b/services/sqlserverflex/v3api/model_create_instance_payload.go @@ -27,7 +27,7 @@ type CreateInstancePayload struct { // 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"` + Labels *map[string]*string `json:"labels,omitempty"` // The name of the instance. Name string `json:"name"` Network CreateInstancePayloadNetwork `json:"network"` @@ -145,9 +145,9 @@ func (o *CreateInstancePayload) SetFlavorId(v string) { } // GetLabels returns the Labels field value if set, zero value otherwise. -func (o *CreateInstancePayload) GetLabels() map[string]string { +func (o *CreateInstancePayload) GetLabels() map[string]*string { if o == nil || IsNil(o.Labels) { - var ret map[string]string + var ret map[string]*string return ret } return *o.Labels @@ -155,7 +155,7 @@ func (o *CreateInstancePayload) GetLabels() map[string]string { // 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 *CreateInstancePayload) GetLabelsOk() (*map[string]string, bool) { +func (o *CreateInstancePayload) GetLabelsOk() (*map[string]*string, bool) { if o == nil || IsNil(o.Labels) { return nil, false } @@ -171,8 +171,8 @@ func (o *CreateInstancePayload) HasLabels() bool { return false } -// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. -func (o *CreateInstancePayload) SetLabels(v map[string]string) { +// SetLabels gets a reference to the given map[string]*string and assigns it to the Labels field. +func (o *CreateInstancePayload) SetLabels(v map[string]*string) { o.Labels = &v } diff --git a/services/sqlserverflex/v3api/model_get_instance_response.go b/services/sqlserverflex/v3api/model_get_instance_response.go index b90b9840e..00b3f3e57 100644 --- a/services/sqlserverflex/v3api/model_get_instance_response.go +++ b/services/sqlserverflex/v3api/model_get_instance_response.go @@ -32,7 +32,7 @@ type GetInstanceResponse struct { // 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"` + Labels *map[string]*string `json:"labels,omitempty"` // The name of the instance. Name string `json:"name"` Network InstanceNetwork `json:"network"` @@ -229,9 +229,9 @@ func (o *GetInstanceResponse) SetIsDeletable(v bool) { } // GetLabels returns the Labels field value if set, zero value otherwise. -func (o *GetInstanceResponse) GetLabels() map[string]string { +func (o *GetInstanceResponse) GetLabels() map[string]*string { if o == nil || IsNil(o.Labels) { - var ret map[string]string + var ret map[string]*string return ret } return *o.Labels @@ -239,7 +239,7 @@ func (o *GetInstanceResponse) GetLabels() map[string]string { // 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) { +func (o *GetInstanceResponse) GetLabelsOk() (*map[string]*string, bool) { if o == nil || IsNil(o.Labels) { return nil, false } @@ -255,8 +255,8 @@ func (o *GetInstanceResponse) HasLabels() bool { 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) { +// 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 } diff --git a/services/sqlserverflex/v3api/model_partial_update_instance_payload.go b/services/sqlserverflex/v3api/model_partial_update_instance_payload.go index ed66ff7dd..2c449fa82 100644 --- a/services/sqlserverflex/v3api/model_partial_update_instance_payload.go +++ b/services/sqlserverflex/v3api/model_partial_update_instance_payload.go @@ -25,7 +25,7 @@ type PartialUpdateInstancePayload struct { // 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"` + Labels *map[string]*string `json:"labels,omitempty"` // The name of the instance. Name *string `json:"name,omitempty"` Network *PartialUpdateInstancePayloadNetwork `json:"network,omitempty"` @@ -119,9 +119,9 @@ func (o *PartialUpdateInstancePayload) SetFlavorId(v string) { } // GetLabels returns the Labels field value if set, zero value otherwise. -func (o *PartialUpdateInstancePayload) GetLabels() map[string]string { +func (o *PartialUpdateInstancePayload) GetLabels() map[string]*string { if o == nil || IsNil(o.Labels) { - var ret map[string]string + var ret map[string]*string return ret } return *o.Labels @@ -129,7 +129,7 @@ func (o *PartialUpdateInstancePayload) GetLabels() map[string]string { // 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 *PartialUpdateInstancePayload) GetLabelsOk() (*map[string]string, bool) { +func (o *PartialUpdateInstancePayload) GetLabelsOk() (*map[string]*string, bool) { if o == nil || IsNil(o.Labels) { return nil, false } @@ -145,8 +145,8 @@ func (o *PartialUpdateInstancePayload) HasLabels() bool { return false } -// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. -func (o *PartialUpdateInstancePayload) SetLabels(v map[string]string) { +// SetLabels gets a reference to the given map[string]*string and assigns it to the Labels field. +func (o *PartialUpdateInstancePayload) SetLabels(v map[string]*string) { o.Labels = &v } diff --git a/services/sqlserverflex/v3api/model_update_instance_payload.go b/services/sqlserverflex/v3api/model_update_instance_payload.go index d36bc8e39..7da32ebce 100644 --- a/services/sqlserverflex/v3api/model_update_instance_payload.go +++ b/services/sqlserverflex/v3api/model_update_instance_payload.go @@ -26,7 +26,7 @@ type UpdateInstancePayload struct { // 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"` + Labels *map[string]*string `json:"labels,omitempty"` // The name of the instance. Name string `json:"name"` Network UpdateInstancePayloadNetwork `json:"network"` @@ -112,9 +112,9 @@ func (o *UpdateInstancePayload) SetFlavorId(v string) { } // GetLabels returns the Labels field value if set, zero value otherwise. -func (o *UpdateInstancePayload) GetLabels() map[string]string { +func (o *UpdateInstancePayload) GetLabels() map[string]*string { if o == nil || IsNil(o.Labels) { - var ret map[string]string + var ret map[string]*string return ret } return *o.Labels @@ -122,7 +122,7 @@ func (o *UpdateInstancePayload) GetLabels() map[string]string { // 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 *UpdateInstancePayload) GetLabelsOk() (*map[string]string, bool) { +func (o *UpdateInstancePayload) GetLabelsOk() (*map[string]*string, bool) { if o == nil || IsNil(o.Labels) { return nil, false } @@ -138,8 +138,8 @@ func (o *UpdateInstancePayload) HasLabels() bool { return false } -// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. -func (o *UpdateInstancePayload) SetLabels(v map[string]string) { +// SetLabels gets a reference to the given map[string]*string and assigns it to the Labels field. +func (o *UpdateInstancePayload) SetLabels(v map[string]*string) { o.Labels = &v } diff --git a/services/sqlserverflex/v3beta1api/client.go b/services/sqlserverflex/v3beta1api/client.go index 5aafee248..d042d1f5c 100644 --- a/services/sqlserverflex/v3beta1api/client.go +++ b/services/sqlserverflex/v3beta1api/client.go @@ -462,6 +462,15 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err *s = string(b) return nil } + if r, ok := v.(*io.Reader); ok { + *r = bytes.NewReader(b) + return nil + } + // Must stay before the JSON branch: json.Unmarshal would base64-decode into *[]byte. + if p, ok := v.(*[]byte); ok { + *p = b + return nil + } if f, ok := v.(*os.File); ok { f, err = os.CreateTemp("", "HttpClientFile") if err != nil { diff --git a/services/sqlserverflex/v3beta1api/model_create_instance_request_payload.go b/services/sqlserverflex/v3beta1api/model_create_instance_request_payload.go index 3f2750cd1..ea6a6b4fa 100644 --- a/services/sqlserverflex/v3beta1api/model_create_instance_request_payload.go +++ b/services/sqlserverflex/v3beta1api/model_create_instance_request_payload.go @@ -27,7 +27,7 @@ type CreateInstanceRequestPayload struct { // 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"` + Labels *map[string]*string `json:"labels,omitempty"` // The name of the instance. Name string `json:"name"` Network CreateInstanceRequestPayloadNetwork `json:"network"` @@ -145,9 +145,9 @@ func (o *CreateInstanceRequestPayload) SetFlavorId(v string) { } // GetLabels returns the Labels field value if set, zero value otherwise. -func (o *CreateInstanceRequestPayload) GetLabels() map[string]string { +func (o *CreateInstanceRequestPayload) GetLabels() map[string]*string { if o == nil || IsNil(o.Labels) { - var ret map[string]string + var ret map[string]*string return ret } return *o.Labels @@ -155,7 +155,7 @@ func (o *CreateInstanceRequestPayload) GetLabels() map[string]string { // 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) { +func (o *CreateInstanceRequestPayload) GetLabelsOk() (*map[string]*string, bool) { if o == nil || IsNil(o.Labels) { return nil, false } @@ -171,8 +171,8 @@ func (o *CreateInstanceRequestPayload) HasLabels() bool { 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) { +// 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 } diff --git a/services/sqlserverflex/v3beta1api/model_get_instance_response.go b/services/sqlserverflex/v3beta1api/model_get_instance_response.go index 5d2355081..9d6c46d0e 100644 --- a/services/sqlserverflex/v3beta1api/model_get_instance_response.go +++ b/services/sqlserverflex/v3beta1api/model_get_instance_response.go @@ -32,7 +32,7 @@ type GetInstanceResponse struct { // 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"` + Labels *map[string]*string `json:"labels,omitempty"` // The name of the instance. Name string `json:"name"` Network InstanceNetwork `json:"network"` @@ -229,9 +229,9 @@ func (o *GetInstanceResponse) SetIsDeletable(v bool) { } // GetLabels returns the Labels field value if set, zero value otherwise. -func (o *GetInstanceResponse) GetLabels() map[string]string { +func (o *GetInstanceResponse) GetLabels() map[string]*string { if o == nil || IsNil(o.Labels) { - var ret map[string]string + var ret map[string]*string return ret } return *o.Labels @@ -239,7 +239,7 @@ func (o *GetInstanceResponse) GetLabels() map[string]string { // 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) { +func (o *GetInstanceResponse) GetLabelsOk() (*map[string]*string, bool) { if o == nil || IsNil(o.Labels) { return nil, false } @@ -255,8 +255,8 @@ func (o *GetInstanceResponse) HasLabels() bool { 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) { +// 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 } 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 e89dd93bf..9b84bdb07 100644 --- a/services/sqlserverflex/v3beta1api/model_update_instance_partially_request_payload.go +++ b/services/sqlserverflex/v3beta1api/model_update_instance_partially_request_payload.go @@ -25,7 +25,7 @@ type UpdateInstancePartiallyRequestPayload struct { // 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"` + Labels *map[string]*string `json:"labels,omitempty"` // The name of the instance. Name *string `json:"name,omitempty"` Network *UpdateInstancePartiallyRequestPayloadNetwork `json:"network,omitempty"` @@ -120,9 +120,9 @@ func (o *UpdateInstancePartiallyRequestPayload) SetFlavorId(v string) { } // GetLabels returns the Labels field value if set, zero value otherwise. -func (o *UpdateInstancePartiallyRequestPayload) GetLabels() map[string]string { +func (o *UpdateInstancePartiallyRequestPayload) GetLabels() map[string]*string { if o == nil || IsNil(o.Labels) { - var ret map[string]string + var ret map[string]*string return ret } return *o.Labels @@ -130,7 +130,7 @@ func (o *UpdateInstancePartiallyRequestPayload) GetLabels() map[string]string { // 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) { +func (o *UpdateInstancePartiallyRequestPayload) GetLabelsOk() (*map[string]*string, bool) { if o == nil || IsNil(o.Labels) { return nil, false } @@ -146,8 +146,8 @@ func (o *UpdateInstancePartiallyRequestPayload) HasLabels() bool { 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) { +// 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 } diff --git a/services/sqlserverflex/v3beta1api/model_update_instance_request_payload.go b/services/sqlserverflex/v3beta1api/model_update_instance_request_payload.go index 9a50fb81e..ceee9aaca 100644 --- a/services/sqlserverflex/v3beta1api/model_update_instance_request_payload.go +++ b/services/sqlserverflex/v3beta1api/model_update_instance_request_payload.go @@ -26,7 +26,7 @@ type UpdateInstanceRequestPayload struct { // 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"` + Labels *map[string]*string `json:"labels,omitempty"` // The name of the instance. Name string `json:"name"` Network UpdateInstanceRequestPayloadNetwork `json:"network"` @@ -114,9 +114,9 @@ func (o *UpdateInstanceRequestPayload) SetFlavorId(v string) { } // GetLabels returns the Labels field value if set, zero value otherwise. -func (o *UpdateInstanceRequestPayload) GetLabels() map[string]string { +func (o *UpdateInstanceRequestPayload) GetLabels() map[string]*string { if o == nil || IsNil(o.Labels) { - var ret map[string]string + var ret map[string]*string return ret } return *o.Labels @@ -124,7 +124,7 @@ func (o *UpdateInstanceRequestPayload) GetLabels() map[string]string { // 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) { +func (o *UpdateInstanceRequestPayload) GetLabelsOk() (*map[string]*string, bool) { if o == nil || IsNil(o.Labels) { return nil, false } @@ -140,8 +140,8 @@ func (o *UpdateInstanceRequestPayload) HasLabels() bool { 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) { +// 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 } diff --git a/services/sqlserverflex/v3beta2api/client.go b/services/sqlserverflex/v3beta2api/client.go index bf5167619..9f47dcb81 100644 --- a/services/sqlserverflex/v3beta2api/client.go +++ b/services/sqlserverflex/v3beta2api/client.go @@ -462,6 +462,15 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err *s = string(b) return nil } + if r, ok := v.(*io.Reader); ok { + *r = bytes.NewReader(b) + return nil + } + // Must stay before the JSON branch: json.Unmarshal would base64-decode into *[]byte. + if p, ok := v.(*[]byte); ok { + *p = b + return nil + } if f, ok := v.(*os.File); ok { f, err = os.CreateTemp("", "HttpClientFile") if err != nil { diff --git a/services/sqlserverflex/v3beta2api/model_create_instance_payload.go b/services/sqlserverflex/v3beta2api/model_create_instance_payload.go index 8ca148775..a153c5d67 100644 --- a/services/sqlserverflex/v3beta2api/model_create_instance_payload.go +++ b/services/sqlserverflex/v3beta2api/model_create_instance_payload.go @@ -27,7 +27,7 @@ type CreateInstancePayload struct { // 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"` + Labels *map[string]*string `json:"labels,omitempty"` // The name of the instance. Name string `json:"name"` Network CreateInstancePayloadNetwork `json:"network"` @@ -145,9 +145,9 @@ func (o *CreateInstancePayload) SetFlavorId(v string) { } // GetLabels returns the Labels field value if set, zero value otherwise. -func (o *CreateInstancePayload) GetLabels() map[string]string { +func (o *CreateInstancePayload) GetLabels() map[string]*string { if o == nil || IsNil(o.Labels) { - var ret map[string]string + var ret map[string]*string return ret } return *o.Labels @@ -155,7 +155,7 @@ func (o *CreateInstancePayload) GetLabels() map[string]string { // 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 *CreateInstancePayload) GetLabelsOk() (*map[string]string, bool) { +func (o *CreateInstancePayload) GetLabelsOk() (*map[string]*string, bool) { if o == nil || IsNil(o.Labels) { return nil, false } @@ -171,8 +171,8 @@ func (o *CreateInstancePayload) HasLabels() bool { return false } -// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. -func (o *CreateInstancePayload) SetLabels(v map[string]string) { +// SetLabels gets a reference to the given map[string]*string and assigns it to the Labels field. +func (o *CreateInstancePayload) SetLabels(v map[string]*string) { o.Labels = &v } diff --git a/services/sqlserverflex/v3beta2api/model_get_instance_response.go b/services/sqlserverflex/v3beta2api/model_get_instance_response.go index 714b14595..cfc6a706d 100644 --- a/services/sqlserverflex/v3beta2api/model_get_instance_response.go +++ b/services/sqlserverflex/v3beta2api/model_get_instance_response.go @@ -32,7 +32,7 @@ type GetInstanceResponse struct { // 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"` + Labels *map[string]*string `json:"labels,omitempty"` // The name of the instance. Name string `json:"name"` Network InstanceNetwork `json:"network"` @@ -229,9 +229,9 @@ func (o *GetInstanceResponse) SetIsDeletable(v bool) { } // GetLabels returns the Labels field value if set, zero value otherwise. -func (o *GetInstanceResponse) GetLabels() map[string]string { +func (o *GetInstanceResponse) GetLabels() map[string]*string { if o == nil || IsNil(o.Labels) { - var ret map[string]string + var ret map[string]*string return ret } return *o.Labels @@ -239,7 +239,7 @@ func (o *GetInstanceResponse) GetLabels() map[string]string { // 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) { +func (o *GetInstanceResponse) GetLabelsOk() (*map[string]*string, bool) { if o == nil || IsNil(o.Labels) { return nil, false } @@ -255,8 +255,8 @@ func (o *GetInstanceResponse) HasLabels() bool { 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) { +// 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 } diff --git a/services/sqlserverflex/v3beta2api/model_partial_update_instance_payload.go b/services/sqlserverflex/v3beta2api/model_partial_update_instance_payload.go index 84061219c..927c6f467 100644 --- a/services/sqlserverflex/v3beta2api/model_partial_update_instance_payload.go +++ b/services/sqlserverflex/v3beta2api/model_partial_update_instance_payload.go @@ -25,7 +25,7 @@ type PartialUpdateInstancePayload struct { // 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"` + Labels *map[string]*string `json:"labels,omitempty"` // The name of the instance. Name *string `json:"name,omitempty"` Network *PartialUpdateInstancePayloadNetwork `json:"network,omitempty"` @@ -119,9 +119,9 @@ func (o *PartialUpdateInstancePayload) SetFlavorId(v string) { } // GetLabels returns the Labels field value if set, zero value otherwise. -func (o *PartialUpdateInstancePayload) GetLabels() map[string]string { +func (o *PartialUpdateInstancePayload) GetLabels() map[string]*string { if o == nil || IsNil(o.Labels) { - var ret map[string]string + var ret map[string]*string return ret } return *o.Labels @@ -129,7 +129,7 @@ func (o *PartialUpdateInstancePayload) GetLabels() map[string]string { // 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 *PartialUpdateInstancePayload) GetLabelsOk() (*map[string]string, bool) { +func (o *PartialUpdateInstancePayload) GetLabelsOk() (*map[string]*string, bool) { if o == nil || IsNil(o.Labels) { return nil, false } @@ -145,8 +145,8 @@ func (o *PartialUpdateInstancePayload) HasLabels() bool { return false } -// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. -func (o *PartialUpdateInstancePayload) SetLabels(v map[string]string) { +// SetLabels gets a reference to the given map[string]*string and assigns it to the Labels field. +func (o *PartialUpdateInstancePayload) SetLabels(v map[string]*string) { o.Labels = &v } diff --git a/services/sqlserverflex/v3beta2api/model_update_instance_payload.go b/services/sqlserverflex/v3beta2api/model_update_instance_payload.go index e4d1dd40c..f1f4b694e 100644 --- a/services/sqlserverflex/v3beta2api/model_update_instance_payload.go +++ b/services/sqlserverflex/v3beta2api/model_update_instance_payload.go @@ -26,7 +26,7 @@ type UpdateInstancePayload struct { // 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"` + Labels *map[string]*string `json:"labels,omitempty"` // The name of the instance. Name string `json:"name"` Network UpdateInstancePayloadNetwork `json:"network"` @@ -112,9 +112,9 @@ func (o *UpdateInstancePayload) SetFlavorId(v string) { } // GetLabels returns the Labels field value if set, zero value otherwise. -func (o *UpdateInstancePayload) GetLabels() map[string]string { +func (o *UpdateInstancePayload) GetLabels() map[string]*string { if o == nil || IsNil(o.Labels) { - var ret map[string]string + var ret map[string]*string return ret } return *o.Labels @@ -122,7 +122,7 @@ func (o *UpdateInstancePayload) GetLabels() map[string]string { // 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 *UpdateInstancePayload) GetLabelsOk() (*map[string]string, bool) { +func (o *UpdateInstancePayload) GetLabelsOk() (*map[string]*string, bool) { if o == nil || IsNil(o.Labels) { return nil, false } @@ -138,8 +138,8 @@ func (o *UpdateInstancePayload) HasLabels() bool { return false } -// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. -func (o *UpdateInstancePayload) SetLabels(v map[string]string) { +// SetLabels gets a reference to the given map[string]*string and assigns it to the Labels field. +func (o *UpdateInstancePayload) SetLabels(v map[string]*string) { o.Labels = &v }