diff --git a/services/resourcemanager/oas_commit b/services/resourcemanager/oas_commit index b687a3969..69bfa80b3 100644 --- a/services/resourcemanager/oas_commit +++ b/services/resourcemanager/oas_commit @@ -1 +1 @@ -f22dd14374388602d895c8892b3e5b110dc16582 +864bdad12a54f612df8fcdb6e41dd2933e94c3af diff --git a/services/resourcemanager/v0api/client.go b/services/resourcemanager/v0api/client.go index 4f7efbca5..1f296a651 100644 --- a/services/resourcemanager/v0api/client.go +++ b/services/resourcemanager/v0api/client.go @@ -461,6 +461,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/resourcemanager/v0api/model_create_folder_payload.go b/services/resourcemanager/v0api/model_create_folder_payload.go index 55944352f..8292bf3d9 100644 --- a/services/resourcemanager/v0api/model_create_folder_payload.go +++ b/services/resourcemanager/v0api/model_create_folder_payload.go @@ -22,12 +22,12 @@ var _ MappedNullable = &CreateFolderPayload{} type CreateFolderPayload struct { // Identifier of the parent resource container - containerId as well as UUID identifier is supported. ContainerParentId string `json:"containerParentId"` - // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.* + // Key-value string pairs attached to a resource container during creation. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * Either a `\"scope\": \"PUBLIC\"` label or a valid `networkArea` label must be provided for project creation. * To create a project within a STACKIT Network Area, you must set the label `\"networkArea\": \"\"`. > **Important:** The `networkArea` label is immutable and **cannot be changed** after project creation. Labels *map[string]string `json:"labels,omitempty"` // The initial members assigned to the project. At least one subject needs to be a user, and not a client or service account. Members []Member `json:"members,omitempty"` // The name of the folder matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`. - Name string `json:"name" validate:"regexp=^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$"` + Name string `json:"name" validate:"regexp=^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0\\,39}$"` AdditionalProperties map[string]interface{} } diff --git a/services/resourcemanager/v0api/model_create_project_payload.go b/services/resourcemanager/v0api/model_create_project_payload.go index 66a6cde0e..6f1142ddb 100644 --- a/services/resourcemanager/v0api/model_create_project_payload.go +++ b/services/resourcemanager/v0api/model_create_project_payload.go @@ -27,7 +27,7 @@ type CreateProjectPayload struct { // The initial members assigned to the project. At least one subject needs to be a user, and not a client or service account. Members []Member `json:"members"` // Project name matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`. - Name string `json:"name" validate:"regexp=^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$"` + Name string `json:"name" validate:"regexp=^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0\\,39}$"` AdditionalProperties map[string]interface{} } diff --git a/services/resourcemanager/v0api/model_folder_response.go b/services/resourcemanager/v0api/model_folder_response.go index 32617884c..4a01ac3bd 100644 --- a/services/resourcemanager/v0api/model_folder_response.go +++ b/services/resourcemanager/v0api/model_folder_response.go @@ -27,7 +27,7 @@ type FolderResponse struct { CreationTime time.Time `json:"creationTime"` // Globally unique folder identifier. FolderId string `json:"folderId"` - // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.* + // Key-value string pairs attached to a resource container during creation. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * Either a `\"scope\": \"PUBLIC\"` label or a valid `networkArea` label must be provided for project creation. * To create a project within a STACKIT Network Area, you must set the label `\"networkArea\": \"\"`. > **Important:** The `networkArea` label is immutable and **cannot be changed** after project creation. Labels *map[string]string `json:"labels,omitempty"` // Folder name. Name string `json:"name"` diff --git a/services/resourcemanager/v0api/model_get_folder_details_response.go b/services/resourcemanager/v0api/model_get_folder_details_response.go index a7ddcfa0f..bcb195829 100644 --- a/services/resourcemanager/v0api/model_get_folder_details_response.go +++ b/services/resourcemanager/v0api/model_get_folder_details_response.go @@ -27,7 +27,7 @@ type GetFolderDetailsResponse struct { CreationTime time.Time `json:"creationTime"` // Globally unique folder identifier. FolderId string `json:"folderId"` - // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.* + // Key-value string pairs attached to a resource container during creation. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * Either a `\"scope\": \"PUBLIC\"` label or a valid `networkArea` label must be provided for project creation. * To create a project within a STACKIT Network Area, you must set the label `\"networkArea\": \"\"`. > **Important:** The `networkArea` label is immutable and **cannot be changed** after project creation. Labels *map[string]string `json:"labels,omitempty"` // Folder name. Name string `json:"name"` diff --git a/services/resourcemanager/v0api/model_get_project_response.go b/services/resourcemanager/v0api/model_get_project_response.go index fc124c0d9..3beb1d9d9 100644 --- a/services/resourcemanager/v0api/model_get_project_response.go +++ b/services/resourcemanager/v0api/model_get_project_response.go @@ -25,7 +25,7 @@ type GetProjectResponse struct { ContainerId string `json:"containerId"` // Timestamp at which the project was created. CreationTime time.Time `json:"creationTime"` - // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.* + // Key-value string pairs attached to a resource container during creation. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * Either a `\"scope\": \"PUBLIC\"` label or a valid `networkArea` label must be provided for project creation. * To create a project within a STACKIT Network Area, you must set the label `\"networkArea\": \"\"`. > **Important:** The `networkArea` label is immutable and **cannot be changed** after project creation. Labels *map[string]string `json:"labels,omitempty"` LifecycleState LifecycleState `json:"lifecycleState"` // Project name. diff --git a/services/resourcemanager/v0api/model_list_folders_response_items_inner.go b/services/resourcemanager/v0api/model_list_folders_response_items_inner.go index 1bf49bdaa..1dc2b9947 100644 --- a/services/resourcemanager/v0api/model_list_folders_response_items_inner.go +++ b/services/resourcemanager/v0api/model_list_folders_response_items_inner.go @@ -27,7 +27,7 @@ type ListFoldersResponseItemsInner struct { CreationTime time.Time `json:"creationTime"` // Globally unique folder identifier. FolderId string `json:"folderId"` - // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.* + // Key-value string pairs attached to a resource container during creation. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * Either a `\"scope\": \"PUBLIC\"` label or a valid `networkArea` label must be provided for project creation. * To create a project within a STACKIT Network Area, you must set the label `\"networkArea\": \"\"`. > **Important:** The `networkArea` label is immutable and **cannot be changed** after project creation. Labels *map[string]string `json:"labels,omitempty"` // Name of the folder. Name string `json:"name"` diff --git a/services/resourcemanager/v0api/model_list_organizations_response_items_inner.go b/services/resourcemanager/v0api/model_list_organizations_response_items_inner.go index 8cb268f4d..9bec53485 100644 --- a/services/resourcemanager/v0api/model_list_organizations_response_items_inner.go +++ b/services/resourcemanager/v0api/model_list_organizations_response_items_inner.go @@ -25,7 +25,7 @@ type ListOrganizationsResponseItemsInner struct { ContainerId string `json:"containerId"` // Timestamp at which the organization was created. CreationTime time.Time `json:"creationTime"` - // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.* + // Key-value string pairs attached to a resource container during creation. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * Either a `\"scope\": \"PUBLIC\"` label or a valid `networkArea` label must be provided for project creation. * To create a project within a STACKIT Network Area, you must set the label `\"networkArea\": \"\"`. > **Important:** The `networkArea` label is immutable and **cannot be changed** after project creation. Labels *map[string]string `json:"labels,omitempty"` LifecycleState LifecycleState `json:"lifecycleState"` // Name of the organization. diff --git a/services/resourcemanager/v0api/model_organization_response.go b/services/resourcemanager/v0api/model_organization_response.go index 0a74aee46..288264929 100644 --- a/services/resourcemanager/v0api/model_organization_response.go +++ b/services/resourcemanager/v0api/model_organization_response.go @@ -25,7 +25,7 @@ type OrganizationResponse struct { ContainerId string `json:"containerId"` // Timestamp at which the organization was created. CreationTime time.Time `json:"creationTime"` - // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.* + // Key-value string pairs attached to a resource container during creation. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * Either a `\"scope\": \"PUBLIC\"` label or a valid `networkArea` label must be provided for project creation. * To create a project within a STACKIT Network Area, you must set the label `\"networkArea\": \"\"`. > **Important:** The `networkArea` label is immutable and **cannot be changed** after project creation. Labels *map[string]string `json:"labels,omitempty"` LifecycleState LifecycleState `json:"lifecycleState"` // Organization name. diff --git a/services/resourcemanager/v0api/model_partial_update_folder_payload.go b/services/resourcemanager/v0api/model_partial_update_folder_payload.go index 9c4c64bfa..ea9f683d7 100644 --- a/services/resourcemanager/v0api/model_partial_update_folder_payload.go +++ b/services/resourcemanager/v0api/model_partial_update_folder_payload.go @@ -21,10 +21,10 @@ var _ MappedNullable = &PartialUpdateFolderPayload{} type PartialUpdateFolderPayload struct { // New parent identifier for the resource container - containerId as well as UUID identifier is supported. ContainerParentId *string `json:"containerParentId,omitempty"` - // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.* + // Key-value string pairs attached to a resource container during creation. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * Either a `\"scope\": \"PUBLIC\"` label or a valid `networkArea` label must be provided for project creation. * To create a project within a STACKIT Network Area, you must set the label `\"networkArea\": \"\"`. > **Important:** The `networkArea` label is immutable and **cannot be changed** after project creation. Labels *map[string]string `json:"labels,omitempty"` // New name for the resource container matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`. - Name *string `json:"name,omitempty" validate:"regexp=^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$"` + Name *string `json:"name,omitempty" validate:"regexp=^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0\\,39}$"` AdditionalProperties map[string]interface{} } diff --git a/services/resourcemanager/v0api/model_partial_update_organization_payload.go b/services/resourcemanager/v0api/model_partial_update_organization_payload.go index b7b21ff73..649b8a071 100644 --- a/services/resourcemanager/v0api/model_partial_update_organization_payload.go +++ b/services/resourcemanager/v0api/model_partial_update_organization_payload.go @@ -19,10 +19,10 @@ var _ MappedNullable = &PartialUpdateOrganizationPayload{} // PartialUpdateOrganizationPayload struct for PartialUpdateOrganizationPayload type PartialUpdateOrganizationPayload struct { - // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.* + // Key-value string pairs attached to a resource container during creation. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * Either a `\"scope\": \"PUBLIC\"` label or a valid `networkArea` label must be provided for project creation. * To create a project within a STACKIT Network Area, you must set the label `\"networkArea\": \"\"`. > **Important:** The `networkArea` label is immutable and **cannot be changed** after project creation. Labels *map[string]string `json:"labels,omitempty"` // The new name of the organization matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`. - Name *string `json:"name,omitempty" validate:"regexp=^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$"` + Name *string `json:"name,omitempty" validate:"regexp=^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0\\,39}$"` AdditionalProperties map[string]interface{} } diff --git a/services/resourcemanager/v0api/model_partial_update_project_payload.go b/services/resourcemanager/v0api/model_partial_update_project_payload.go index d3b60d0ab..ee4319427 100644 --- a/services/resourcemanager/v0api/model_partial_update_project_payload.go +++ b/services/resourcemanager/v0api/model_partial_update_project_payload.go @@ -21,10 +21,10 @@ var _ MappedNullable = &PartialUpdateProjectPayload{} type PartialUpdateProjectPayload struct { // New parent identifier for the resource container - containerId as well as UUID identifier is supported. ContainerParentId *string `json:"containerParentId,omitempty"` - // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.* + // Key-value string pairs attached to a resource container during creation. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * Either a `\"scope\": \"PUBLIC\"` label or a valid `networkArea` label must be provided for project creation. * To create a project within a STACKIT Network Area, you must set the label `\"networkArea\": \"\"`. > **Important:** The `networkArea` label is immutable and **cannot be changed** after project creation. Labels *map[string]string `json:"labels,omitempty"` // New name for the resource container matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`. - Name *string `json:"name,omitempty" validate:"regexp=^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$"` + Name *string `json:"name,omitempty" validate:"regexp=^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0\\,39}$"` AdditionalProperties map[string]interface{} } diff --git a/services/resourcemanager/v0api/model_project.go b/services/resourcemanager/v0api/model_project.go index 6fe520604..fbae1fa22 100644 --- a/services/resourcemanager/v0api/model_project.go +++ b/services/resourcemanager/v0api/model_project.go @@ -25,7 +25,7 @@ type Project struct { ContainerId string `json:"containerId"` // Timestamp at which the project was created. CreationTime time.Time `json:"creationTime"` - // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.* + // Key-value string pairs attached to a resource container during creation. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * Either a `\"scope\": \"PUBLIC\"` label or a valid `networkArea` label must be provided for project creation. * To create a project within a STACKIT Network Area, you must set the label `\"networkArea\": \"\"`. > **Important:** The `networkArea` label is immutable and **cannot be changed** after project creation. Labels *map[string]string `json:"labels,omitempty"` LifecycleState LifecycleState `json:"lifecycleState"` // Project name.