diff --git a/CHANGELOG.md b/CHANGELOG.md
index aeecaccb5e..571a09c418 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -203,6 +203,8 @@
- `v2api`:
- **Breaking Change:** Removed `rabbitmq_tracing` enum value from `InstanceParametersPluginsInner`
- `resourcemanager`:
+ - [v0.27.0](services/resourcemanager/CHANGELOG.md#v0270)
+ - **Breaking change:** Removal of deprecated compatibility layer previously found in the root of the SDK module
- [v0.26.1](services/resourcemanager/CHANGELOG.md#v0261)
- **Dependencies:** Bump STACKIT SDK core module from `v0.27.0` to `v0.27.1`
- `v0api`:
diff --git a/services/resourcemanager/.openapi-generator/VERSION b/services/resourcemanager/.openapi-generator/VERSION
deleted file mode 100644
index cd802a1ec4..0000000000
--- a/services/resourcemanager/.openapi-generator/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-6.6.0
\ No newline at end of file
diff --git a/services/resourcemanager/CHANGELOG.md b/services/resourcemanager/CHANGELOG.md
index 3aaa3298cc..a3ac0ff870 100644
--- a/services/resourcemanager/CHANGELOG.md
+++ b/services/resourcemanager/CHANGELOG.md
@@ -1,3 +1,6 @@
+## v0.27.0
+- **Breaking change:** Removal of deprecated compatibility layer previously found in the root of the SDK module
+
## v0.26.1
- **Dependencies:** Bump STACKIT SDK core module from `v0.27.0` to `v0.27.1`
- `v0api`:
diff --git a/services/resourcemanager/VERSION b/services/resourcemanager/VERSION
index 332a47bc87..0a8bf80d69 100644
--- a/services/resourcemanager/VERSION
+++ b/services/resourcemanager/VERSION
@@ -1 +1 @@
-v0.26.1
+v0.27.0
diff --git a/services/resourcemanager/api_default.go b/services/resourcemanager/api_default.go
deleted file mode 100644
index eef2a3c795..0000000000
--- a/services/resourcemanager/api_default.go
+++ /dev/null
@@ -1,3175 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "bytes"
- "context"
- "fmt"
- "io"
- "net/http"
- "net/url"
- "reflect"
- "strings"
- "time"
-
- "github.com/stackitcloud/stackit-sdk-go/core/config"
- "github.com/stackitcloud/stackit-sdk-go/core/oapierror"
-)
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type DefaultApi interface {
- /*
- CreateFolder Create Folder
- Creates a new folder within a parent organization or folder.
-
- Authorization & Permissions:
- - Evaluated on Target Parent Container: resource-manager.folder.create (required permission on the target parent organization or folder to create a folder).
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCreateFolderRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- CreateFolder(ctx context.Context) ApiCreateFolderRequest
- /*
- CreateFolderExecute executes the request
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return FolderResponse
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- CreateFolderExecute(ctx context.Context) (*FolderResponse, error)
- /*
- CreateProject Create Project
- Creates a new project within a parent container.
- - Creation request returns synchronously, while underlying resource provisioning runs asynchronously.
- - Initial lifecycle state is CREATING until provisioning completes.
-
- Authorization & Permissions:
- - Evaluated on Target Parent Container: resource-manager.project.create (required permission on the target parent organization or folder to create a project).
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCreateProjectRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- CreateProject(ctx context.Context) ApiCreateProjectRequest
- /*
- CreateProjectExecute executes the request
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return Project
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- CreateProjectExecute(ctx context.Context) (*Project, error)
- /*
- DeleteFolder Delete Folder
- Delete a folder and its metadata.
- - Folder must not contain active child containers unless force deletion is enabled without attached projects.
-
- Authorization & Permissions:
- - Evaluated on Target Folder: resource-manager.folder.delete (required permission on the target folder to delete it).
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param containerId Folder identifier - containerId as well as UUID identifier is supported.
- @return ApiDeleteFolderRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- DeleteFolder(ctx context.Context, containerId string) ApiDeleteFolderRequest
- /*
- DeleteFolderExecute executes the request
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- DeleteFolderExecute(ctx context.Context, containerId string) error
- /*
- DeleteFolderLabels Delete Folder Labels
- Deletes folder labels by specified keys, or removes all labels if no key is provided.
-
- Authorization & Permissions:
- - Evaluated on Target Folder: resource-manager.folder.edit (required permission on the target folder to delete its labels).
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param containerId Folder identifier - containerId as well as UUID identifier is supported.
- @return ApiDeleteFolderLabelsRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- DeleteFolderLabels(ctx context.Context, containerId string) ApiDeleteFolderLabelsRequest
- /*
- DeleteFolderLabelsExecute executes the request
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- DeleteFolderLabelsExecute(ctx context.Context, containerId string) error
- /*
- DeleteOrganizationLabels Delete Organization Labels
- Deletes organization labels by specified keys, or removes all labels if no key is provided.
-
- Authorization & Permissions:
- - Evaluated on Target Organization: resource-manager.organization.edit (required permission on the organization to delete labels).
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param containerId Organization identifier - containerId as well as UUID identifier is supported.
- @return ApiDeleteOrganizationLabelsRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- DeleteOrganizationLabels(ctx context.Context, containerId string) ApiDeleteOrganizationLabelsRequest
- /*
- DeleteOrganizationLabelsExecute executes the request
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- DeleteOrganizationLabelsExecute(ctx context.Context, containerId string) error
- /*
- DeleteProject Delete Project
- Triggers the deletion of a project.
- - Request returns synchronously, while deletion process runs asynchronously.
- - Initial lifecycle state is DELETING until workflow completes.
-
- Authorization & Permissions:
- - Evaluated on Target Project: resource-manager.project.delete (required permission on the project to delete it).
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Project identifier - containerId as well as UUID identifier is supported.
- @return ApiDeleteProjectRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- DeleteProject(ctx context.Context, id string) ApiDeleteProjectRequest
- /*
- DeleteProjectExecute executes the request
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- DeleteProjectExecute(ctx context.Context, id string) error
- /*
- DeleteProjectLabels Delete Project Labels
- Deletes project labels by specified keys, or removes all labels if no key is provided.
-
- Authorization & Permissions:
- - Evaluated on Target Project: resource-manager.project.edit (required permission on the project to delete its labels).
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param containerId Project identifier - containerId as well as UUID identifier is supported.
- @return ApiDeleteProjectLabelsRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- DeleteProjectLabels(ctx context.Context, containerId string) ApiDeleteProjectLabelsRequest
- /*
- DeleteProjectLabelsExecute executes the request
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- DeleteProjectLabelsExecute(ctx context.Context, containerId string) error
- /*
- GetFolderDetails Get Folder Details
- Returns metadata for a specific folder.
-
- Authorization & Permissions:
- - Evaluated on Target Folder: resource-manager.folder.get (required primary permission to retrieve folder details).
- - Evaluated on Parent Containers: resource-manager.organization.get and resource-manager.folder.get implicitly to resolve parent hierarchy details.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param containerId Folder identifier - containerId as well as UUID identifier is supported.
- @return ApiGetFolderDetailsRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- GetFolderDetails(ctx context.Context, containerId string) ApiGetFolderDetailsRequest
- /*
- GetFolderDetailsExecute executes the request
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param containerId Folder identifier - containerId as well as UUID identifier is supported.
- @return GetFolderDetailsResponse
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- GetFolderDetailsExecute(ctx context.Context, containerId string) (*GetFolderDetailsResponse, error)
- /*
- GetOrganization Get Organization Details
- Returns metadata for a specific organization.
-
- Authorization & Permissions:
- - Evaluated on Target Organization: resource-manager.organization.get (required permission on the organization to view its details).
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Organization identifier - containerId as well as UUID identifier is supported.
- @return ApiGetOrganizationRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- GetOrganization(ctx context.Context, id string) ApiGetOrganizationRequest
- /*
- GetOrganizationExecute executes the request
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Organization identifier - containerId as well as UUID identifier is supported.
- @return OrganizationResponse
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- GetOrganizationExecute(ctx context.Context, id string) (*OrganizationResponse, error)
- /*
- GetProject Get Project Details
- Returns the project and its metadata.
-
- Authorization & Permissions:
- - Evaluated on Target Project: resource-manager.project.get (required primary permission to view project details).
- - Evaluated on Parent Containers: resource-manager.organization.get and resource-manager.folder.get on parent organizations/folders implicitly to resolve and include parent metadata in the response hierarchy.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Project identifier - containerId as well as UUID identifier is supported.
- @return ApiGetProjectRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- GetProject(ctx context.Context, id string) ApiGetProjectRequest
- /*
- GetProjectExecute executes the request
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Project identifier - containerId as well as UUID identifier is supported.
- @return GetProjectResponse
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- GetProjectExecute(ctx context.Context, id string) (*GetProjectResponse, error)
- /*
- ListFolders Get All Folders
- Returns all folders and their metadata that:
- - Are children of the specific containerParentId
- - Match the given containerIds
- - User is member of
-
- Filter:
- - Either containerParentId OR containerIds OR member must be passed
- - If containerId and containerParentId are given, both are used for filtering - containers must point to the same parent
- - If member and containerParentId are given, both are used for filtering
- - If member is given, containers must not point to the same container parent
-
- Authorization & Permissions:
- - When filtering by member: resource-manager.folder.direct.get is evaluated on target folders for the member; if caller differs from target member, system-level resource-manager.folder.get is required.
- - When filtering by containerParentId: resource-manager.folder.list is evaluated on the parent container.
- - When filtering by containerIds: resource-manager.folder.get is evaluated on the parent container of requested folders.
-
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiListFoldersRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- ListFolders(ctx context.Context) ApiListFoldersRequest
- /*
- ListFoldersExecute executes the request
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ListFoldersResponse
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- ListFoldersExecute(ctx context.Context) (*ListFoldersResponse, error)
- /*
- ListOrganizations Get all organizations of member
- Returns all organizations and their metadata accessible to the caller.
- - Filterable by containerIds or member.
-
- Authorization & Permissions:
- - Evaluated on Target Organizations: resource-manager.organization.list and/or (depending if containerIDs was used in the request) resource-manager.organization.get to filter and list accessible organizations.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiListOrganizationsRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- ListOrganizations(ctx context.Context) ApiListOrganizationsRequest
- /*
- ListOrganizationsExecute executes the request
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ListOrganizationsResponse
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- ListOrganizationsExecute(ctx context.Context) (*ListOrganizationsResponse, error)
- /*
- ListProjects Get All Projects of a member.
- Returns all projects and their metadata that:
- - Are children of the specific containerParentId
- - Match the given containerIds
- - User is member of
-
- Filter:
- - Either containerParentId OR containerIds OR member must be passed
- - If containerId and containerParentId are given, both are used for filtering - containers must point to the same parent
- - If member and containerParentId are given, both are used for filtering
- - If member is given, containers must not point to the same container parent
-
- Authorization & Permissions:
- - Evaluated on Target Projects: resource-manager.project.get, resource-manager.project.list, or resource-manager.project.direct.get to filter and return accessible projects.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiListProjectsRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- ListProjects(ctx context.Context) ApiListProjectsRequest
- /*
- ListProjectsExecute executes the request
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ListProjectsResponse
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- ListProjectsExecute(ctx context.Context) (*ListProjectsResponse, error)
- /*
- PartialUpdateFolder Update Folder
- Update the folder and its metadata (name, labels, parent container).
-
- Authorization & Permissions:
- - Evaluated on Target Folder: resource-manager.folder.edit (required permission on the target folder to modify its details, labels, or parent).
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param containerId Folder identifier - containerId as well as UUID identifier is supported.
- @return ApiPartialUpdateFolderRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- PartialUpdateFolder(ctx context.Context, containerId string) ApiPartialUpdateFolderRequest
- /*
- PartialUpdateFolderExecute executes the request
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param containerId Folder identifier - containerId as well as UUID identifier is supported.
- @return FolderResponse
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- PartialUpdateFolderExecute(ctx context.Context, containerId string) (*FolderResponse, error)
- /*
- PartialUpdateOrganization Update Organization
- Updates organization metadata (name, labels).
-
- Authorization & Permissions:
- - Evaluated on Target Organization: resource-manager.organization.edit (required permission on the organization to update metadata and labels).
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Organization identifier - containerId as well as UUID identifier is supported.
- @return ApiPartialUpdateOrganizationRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- PartialUpdateOrganization(ctx context.Context, id string) ApiPartialUpdateOrganizationRequest
- /*
- PartialUpdateOrganizationExecute executes the request
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Organization identifier - containerId as well as UUID identifier is supported.
- @return OrganizationResponse
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- PartialUpdateOrganizationExecute(ctx context.Context, id string) (*OrganizationResponse, error)
- /*
- PartialUpdateProject Update Project
- Updates project metadata (name, labels, or parent hierarchy).
-
- Authorization & Permissions:
- - Evaluated on Target Project: resource-manager.project.edit (required permission on the project to modify its details, labels, or parent).
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Project identifier - containerId as well as UUID identifier is supported.
- @return ApiPartialUpdateProjectRequest
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- PartialUpdateProject(ctx context.Context, id string) ApiPartialUpdateProjectRequest
- /*
- PartialUpdateProjectExecute executes the request
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Project identifier - containerId as well as UUID identifier is supported.
- @return Project
-
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- */
- PartialUpdateProjectExecute(ctx context.Context, id string) (*Project, error)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiCreateFolderRequest interface {
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- CreateFolderPayload(createFolderPayload CreateFolderPayload) ApiCreateFolderRequest
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() (*FolderResponse, error)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiCreateProjectRequest interface {
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- CreateProjectPayload(createProjectPayload CreateProjectPayload) ApiCreateProjectRequest
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() (*Project, error)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiDeleteFolderRequest interface {
- // If true, all nested, empty folders are deleted recursively - if no project is attached!
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Force(force bool) ApiDeleteFolderRequest
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() error
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiDeleteFolderLabelsRequest interface {
- // Label name.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Keys(keys []string) ApiDeleteFolderLabelsRequest
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() error
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiDeleteOrganizationLabelsRequest interface {
- // Label name.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Keys(keys []string) ApiDeleteOrganizationLabelsRequest
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() error
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiDeleteProjectRequest interface {
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() error
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiDeleteProjectLabelsRequest interface {
- // Label name.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Keys(keys []string) ApiDeleteProjectLabelsRequest
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() error
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiGetFolderDetailsRequest interface {
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- IncludeParents(includeParents bool) ApiGetFolderDetailsRequest
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() (*GetFolderDetailsResponse, error)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiGetOrganizationRequest interface {
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() (*OrganizationResponse, error)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiGetProjectRequest interface {
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- IncludeParents(includeParents bool) ApiGetProjectRequest
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() (*GetProjectResponse, error)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiListFoldersRequest interface {
- // Identifier of the parent resource container - containerId as well as UUID identifier is supported.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- ContainerParentId(containerParentId string) ApiListFoldersRequest
- // List of container identifiers - containerId as well as UUID identifier is supported.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- ContainerIds(containerIds []string) ApiListFoldersRequest
- // E-Mail address of the user for whom the visible resource containers should be filtered.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Member(member string) ApiListFoldersRequest
- // The maximum number of projects to return in the response. If not present, an appropriate default will be used. If maximum is exceeded, maximum is used.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Limit(limit float32) ApiListFoldersRequest
- // The offset of the first item in the collection to return.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Offset(offset float32) ApiListFoldersRequest
- // A timestamp to specify the beginning of the creationTime from which entries should be returned. If not given, defaults to the beginning of time.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- CreationTimeStart(creationTimeStart time.Time) ApiListFoldersRequest
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() (*ListFoldersResponse, error)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiListOrganizationsRequest interface {
- // Organization identifiers - containerId as well as UUID identifier is supported. A combination of both is not allowed.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- ContainerIds(containerIds []string) ApiListOrganizationsRequest
- // E-Mail address of the user for whom the visible resource containers should be filtered.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Member(member string) ApiListOrganizationsRequest
- // The maximum number of projects to return in the response. If not present, an appropriate default will be used. If maximum is exceeded, maximum is used.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Limit(limit float32) ApiListOrganizationsRequest
- // The offset of the first item in the collection to return.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Offset(offset float32) ApiListOrganizationsRequest
- // A timestamp to specify the beginning of the creationTime from which entries should be returned. If not given, defaults to the beginning of time.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- CreationTimeStart(creationTimeStart time.Time) ApiListOrganizationsRequest
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() (*ListOrganizationsResponse, error)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiListProjectsRequest interface {
- // Identifier of the parent resource container - containerId as well as UUID identifier is supported.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- ContainerParentId(containerParentId string) ApiListProjectsRequest
- // List of container identifiers - containerId as well as UUID identifier is supported.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- ContainerIds(containerIds []string) ApiListProjectsRequest
- // E-Mail address of the user for whom the visible resource containers should be filtered.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Member(member string) ApiListProjectsRequest
- // The offset of the first item in the collection to return.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Offset(offset float32) ApiListProjectsRequest
- // The maximum number of projects to return in the response. If not present, an appropriate default will be used. If maximum is exceeded, maximum is used.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Limit(limit float32) ApiListProjectsRequest
- // A timestamp to specify the beginning of the creationTime from which entries should be returned. If not given, defaults to the beginning of time.
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- CreationTimeStart(creationTimeStart time.Time) ApiListProjectsRequest
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() (*ListProjectsResponse, error)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiPartialUpdateFolderRequest interface {
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- PartialUpdateFolderPayload(partialUpdateFolderPayload PartialUpdateFolderPayload) ApiPartialUpdateFolderRequest
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() (*FolderResponse, error)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiPartialUpdateOrganizationRequest interface {
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- PartialUpdateOrganizationPayload(partialUpdateOrganizationPayload PartialUpdateOrganizationPayload) ApiPartialUpdateOrganizationRequest
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() (*OrganizationResponse, error)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ApiPartialUpdateProjectRequest interface {
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- PartialUpdateProjectPayload(partialUpdateProjectPayload PartialUpdateProjectPayload) ApiPartialUpdateProjectRequest
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- Execute() (*Project, error)
-}
-
-// DefaultApiService DefaultApi service
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type DefaultApiService service
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateFolderRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- createFolderPayload *CreateFolderPayload
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r CreateFolderRequest) CreateFolderPayload(createFolderPayload CreateFolderPayload) ApiCreateFolderRequest {
- r.createFolderPayload = &createFolderPayload
- return r
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r CreateFolderRequest) Execute() (*FolderResponse, error) {
- var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FolderResponse
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateFolder")
- if err != nil {
- return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/folders"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{"application/json"}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- // body params
- localVarPostBody = r.createFolderPayload
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 400 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return localVarReturnValue, newErr
- }
- if localVarHTTPResponse.StatusCode == 403 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return localVarReturnValue, newErr
- }
- if localVarHTTPResponse.StatusCode == 409 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return localVarReturnValue, newErr
- }
-
- err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: err.Error(),
- }
- return localVarReturnValue, newErr
- }
-
- return localVarReturnValue, nil
-}
-
-/*
-CreateFolder: Create Folder
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCreateFolderRequest
-*/
-func (a *APIClient) CreateFolder(ctx context.Context) ApiCreateFolderRequest {
- return CreateFolderRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) CreateFolderExecute(ctx context.Context) (*FolderResponse, error) {
- r := CreateFolderRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- }
- return r.Execute()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateProjectRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- createProjectPayload *CreateProjectPayload
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r CreateProjectRequest) CreateProjectPayload(createProjectPayload CreateProjectPayload) ApiCreateProjectRequest {
- r.createProjectPayload = &createProjectPayload
- return r
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r CreateProjectRequest) Execute() (*Project, error) {
- var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Project
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateProject")
- if err != nil {
- return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/projects"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{"application/json"}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- // body params
- localVarPostBody = r.createProjectPayload
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 400 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return localVarReturnValue, newErr
- }
- if localVarHTTPResponse.StatusCode == 403 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return localVarReturnValue, newErr
- }
- if localVarHTTPResponse.StatusCode == 409 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return localVarReturnValue, newErr
- }
-
- err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: err.Error(),
- }
- return localVarReturnValue, newErr
- }
-
- return localVarReturnValue, nil
-}
-
-/*
-CreateProject: Create Project
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCreateProjectRequest
-*/
-func (a *APIClient) CreateProject(ctx context.Context) ApiCreateProjectRequest {
- return CreateProjectRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) CreateProjectExecute(ctx context.Context) (*Project, error) {
- r := CreateProjectRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- }
- return r.Execute()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type DeleteFolderRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- containerId string
- force *bool
-}
-
-// If true, all nested, empty folders are deleted recursively - if no project is attached!
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r DeleteFolderRequest) Force(force bool) ApiDeleteFolderRequest {
- r.force = &force
- return r
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r DeleteFolderRequest) Execute() error {
- var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteFolder")
- if err != nil {
- return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/folders/{containerId}"
- localVarPath = strings.Replace(localVarPath, "{"+"containerId"+"}", url.PathEscape(ParameterValueToString(r.containerId, "containerId")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- if r.force != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "force", r.force, "")
- }
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 404 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return newErr
- }
- if localVarHTTPResponse.StatusCode == 409 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return newErr
- }
-
- return nil
-}
-
-/*
-DeleteFolder: Delete Folder
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param containerId Folder identifier - containerId as well as UUID identifier is supported.
- @return ApiDeleteFolderRequest
-*/
-func (a *APIClient) DeleteFolder(ctx context.Context, containerId string) ApiDeleteFolderRequest {
- return DeleteFolderRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- containerId: containerId,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) DeleteFolderExecute(ctx context.Context, containerId string) error {
- r := DeleteFolderRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- containerId: containerId,
- }
- return r.Execute()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type DeleteFolderLabelsRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- containerId string
- keys *[]string
-}
-
-// Label name.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r DeleteFolderLabelsRequest) Keys(keys []string) ApiDeleteFolderLabelsRequest {
- r.keys = &keys
- return r
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r DeleteFolderLabelsRequest) Execute() error {
- var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteFolderLabels")
- if err != nil {
- return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/folders/{containerId}/labels"
- localVarPath = strings.Replace(localVarPath, "{"+"containerId"+"}", url.PathEscape(ParameterValueToString(r.containerId, "containerId")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- if r.keys != nil {
- t := *r.keys
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "keys", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "keys", t, "multi")
- }
- }
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 409 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return newErr
- }
-
- return nil
-}
-
-/*
-DeleteFolderLabels: Delete Folder Labels
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param containerId Folder identifier - containerId as well as UUID identifier is supported.
- @return ApiDeleteFolderLabelsRequest
-*/
-func (a *APIClient) DeleteFolderLabels(ctx context.Context, containerId string) ApiDeleteFolderLabelsRequest {
- return DeleteFolderLabelsRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- containerId: containerId,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) DeleteFolderLabelsExecute(ctx context.Context, containerId string) error {
- r := DeleteFolderLabelsRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- containerId: containerId,
- }
- return r.Execute()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type DeleteOrganizationLabelsRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- containerId string
- keys *[]string
-}
-
-// Label name.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r DeleteOrganizationLabelsRequest) Keys(keys []string) ApiDeleteOrganizationLabelsRequest {
- r.keys = &keys
- return r
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r DeleteOrganizationLabelsRequest) Execute() error {
- var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteOrganizationLabels")
- if err != nil {
- return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/organizations/{containerId}/labels"
- localVarPath = strings.Replace(localVarPath, "{"+"containerId"+"}", url.PathEscape(ParameterValueToString(r.containerId, "containerId")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- if r.keys != nil {
- t := *r.keys
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "keys", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "keys", t, "multi")
- }
- }
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 409 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return newErr
- }
-
- return nil
-}
-
-/*
-DeleteOrganizationLabels: Delete Organization Labels
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param containerId Organization identifier - containerId as well as UUID identifier is supported.
- @return ApiDeleteOrganizationLabelsRequest
-*/
-func (a *APIClient) DeleteOrganizationLabels(ctx context.Context, containerId string) ApiDeleteOrganizationLabelsRequest {
- return DeleteOrganizationLabelsRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- containerId: containerId,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) DeleteOrganizationLabelsExecute(ctx context.Context, containerId string) error {
- r := DeleteOrganizationLabelsRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- containerId: containerId,
- }
- return r.Execute()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type DeleteProjectRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- id string
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r DeleteProjectRequest) Execute() error {
- var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteProject")
- if err != nil {
- return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/projects/{id}"
- localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(ParameterValueToString(r.id, "id")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 409 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return newErr
- }
-
- return nil
-}
-
-/*
-DeleteProject: Delete Project
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Project identifier - containerId as well as UUID identifier is supported.
- @return ApiDeleteProjectRequest
-*/
-func (a *APIClient) DeleteProject(ctx context.Context, id string) ApiDeleteProjectRequest {
- return DeleteProjectRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- id: id,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) DeleteProjectExecute(ctx context.Context, id string) error {
- r := DeleteProjectRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- id: id,
- }
- return r.Execute()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type DeleteProjectLabelsRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- containerId string
- keys *[]string
-}
-
-// Label name.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r DeleteProjectLabelsRequest) Keys(keys []string) ApiDeleteProjectLabelsRequest {
- r.keys = &keys
- return r
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r DeleteProjectLabelsRequest) Execute() error {
- var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteProjectLabels")
- if err != nil {
- return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/projects/{containerId}/labels"
- localVarPath = strings.Replace(localVarPath, "{"+"containerId"+"}", url.PathEscape(ParameterValueToString(r.containerId, "containerId")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- if r.keys != nil {
- t := *r.keys
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "keys", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "keys", t, "multi")
- }
- }
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 409 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return newErr
- }
-
- return nil
-}
-
-/*
-DeleteProjectLabels: Delete Project Labels
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param containerId Project identifier - containerId as well as UUID identifier is supported.
- @return ApiDeleteProjectLabelsRequest
-*/
-func (a *APIClient) DeleteProjectLabels(ctx context.Context, containerId string) ApiDeleteProjectLabelsRequest {
- return DeleteProjectLabelsRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- containerId: containerId,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) DeleteProjectLabelsExecute(ctx context.Context, containerId string) error {
- r := DeleteProjectLabelsRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- containerId: containerId,
- }
- return r.Execute()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- containerId string
- includeParents *bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r GetFolderDetailsRequest) IncludeParents(includeParents bool) ApiGetFolderDetailsRequest {
- r.includeParents = &includeParents
- return r
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r GetFolderDetailsRequest) Execute() (*GetFolderDetailsResponse, error) {
- var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *GetFolderDetailsResponse
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetFolderDetails")
- if err != nil {
- return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/folders/{containerId}"
- localVarPath = strings.Replace(localVarPath, "{"+"containerId"+"}", url.PathEscape(ParameterValueToString(r.containerId, "containerId")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- if r.includeParents != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "includeParents", r.includeParents, "")
- }
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 403 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return localVarReturnValue, newErr
- }
- if localVarHTTPResponse.StatusCode == 404 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return localVarReturnValue, newErr
- }
-
- err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: err.Error(),
- }
- return localVarReturnValue, newErr
- }
-
- return localVarReturnValue, nil
-}
-
-/*
-GetFolderDetails: Get Folder Details
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param containerId Folder identifier - containerId as well as UUID identifier is supported.
- @return ApiGetFolderDetailsRequest
-*/
-func (a *APIClient) GetFolderDetails(ctx context.Context, containerId string) ApiGetFolderDetailsRequest {
- return GetFolderDetailsRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- containerId: containerId,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) GetFolderDetailsExecute(ctx context.Context, containerId string) (*GetFolderDetailsResponse, error) {
- r := GetFolderDetailsRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- containerId: containerId,
- }
- return r.Execute()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetOrganizationRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- id string
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r GetOrganizationRequest) Execute() (*OrganizationResponse, error) {
- var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *OrganizationResponse
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetOrganization")
- if err != nil {
- return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/organizations/{id}"
- localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(ParameterValueToString(r.id, "id")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 404 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return localVarReturnValue, newErr
- }
-
- err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: err.Error(),
- }
- return localVarReturnValue, newErr
- }
-
- return localVarReturnValue, nil
-}
-
-/*
-GetOrganization: Get Organization Details
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Organization identifier - containerId as well as UUID identifier is supported.
- @return ApiGetOrganizationRequest
-*/
-func (a *APIClient) GetOrganization(ctx context.Context, id string) ApiGetOrganizationRequest {
- return GetOrganizationRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- id: id,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) GetOrganizationExecute(ctx context.Context, id string) (*OrganizationResponse, error) {
- r := GetOrganizationRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- id: id,
- }
- return r.Execute()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- id string
- includeParents *bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r GetProjectRequest) IncludeParents(includeParents bool) ApiGetProjectRequest {
- r.includeParents = &includeParents
- return r
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r GetProjectRequest) Execute() (*GetProjectResponse, error) {
- var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *GetProjectResponse
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetProject")
- if err != nil {
- return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/projects/{id}"
- localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(ParameterValueToString(r.id, "id")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- if r.includeParents != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "includeParents", r.includeParents, "")
- }
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 403 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return localVarReturnValue, newErr
- }
- if localVarHTTPResponse.StatusCode == 404 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return localVarReturnValue, newErr
- }
-
- err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: err.Error(),
- }
- return localVarReturnValue, newErr
- }
-
- return localVarReturnValue, nil
-}
-
-/*
-GetProject: Get Project Details
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Project identifier - containerId as well as UUID identifier is supported.
- @return ApiGetProjectRequest
-*/
-func (a *APIClient) GetProject(ctx context.Context, id string) ApiGetProjectRequest {
- return GetProjectRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- id: id,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) GetProjectExecute(ctx context.Context, id string) (*GetProjectResponse, error) {
- r := GetProjectRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- id: id,
- }
- return r.Execute()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- containerParentId *string
- containerIds *[]string
- member *string
- limit *float32
- offset *float32
- creationTimeStart *time.Time
-}
-
-// Identifier of the parent resource container - containerId as well as UUID identifier is supported.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListFoldersRequest) ContainerParentId(containerParentId string) ApiListFoldersRequest {
- r.containerParentId = &containerParentId
- return r
-}
-
-// List of container identifiers - containerId as well as UUID identifier is supported.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListFoldersRequest) ContainerIds(containerIds []string) ApiListFoldersRequest {
- r.containerIds = &containerIds
- return r
-}
-
-// E-Mail address of the user for whom the visible resource containers should be filtered.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListFoldersRequest) Member(member string) ApiListFoldersRequest {
- r.member = &member
- return r
-}
-
-// The maximum number of projects to return in the response. If not present, an appropriate default will be used. If maximum is exceeded, maximum is used.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListFoldersRequest) Limit(limit float32) ApiListFoldersRequest {
- r.limit = &limit
- return r
-}
-
-// The offset of the first item in the collection to return.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListFoldersRequest) Offset(offset float32) ApiListFoldersRequest {
- r.offset = &offset
- return r
-}
-
-// A timestamp to specify the beginning of the creationTime from which entries should be returned. If not given, defaults to the beginning of time.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListFoldersRequest) CreationTimeStart(creationTimeStart time.Time) ApiListFoldersRequest {
- r.creationTimeStart = &creationTimeStart
- return r
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListFoldersRequest) Execute() (*ListFoldersResponse, error) {
- var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ListFoldersResponse
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListFolders")
- if err != nil {
- return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/folders"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- if r.containerParentId != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "containerParentId", r.containerParentId, "")
- }
- if r.containerIds != nil {
- t := *r.containerIds
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "containerIds", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "containerIds", t, "multi")
- }
- }
- if r.member != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "member", r.member, "")
- }
- if r.limit != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
- }
- if r.offset != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
- }
- if r.creationTimeStart != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "creation-time-start", r.creationTimeStart, "")
- }
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 400 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return localVarReturnValue, newErr
- }
- if localVarHTTPResponse.StatusCode == 403 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return localVarReturnValue, newErr
- }
- if localVarHTTPResponse.StatusCode == 409 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return localVarReturnValue, newErr
- }
-
- err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: err.Error(),
- }
- return localVarReturnValue, newErr
- }
-
- return localVarReturnValue, nil
-}
-
-/*
-ListFolders: Get All Folders
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiListFoldersRequest
-*/
-func (a *APIClient) ListFolders(ctx context.Context) ApiListFoldersRequest {
- return ListFoldersRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) ListFoldersExecute(ctx context.Context) (*ListFoldersResponse, error) {
- r := ListFoldersRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- }
- return r.Execute()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- containerIds *[]string
- member *string
- limit *float32
- offset *float32
- creationTimeStart *time.Time
-}
-
-// Organization identifiers - containerId as well as UUID identifier is supported. A combination of both is not allowed.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListOrganizationsRequest) ContainerIds(containerIds []string) ApiListOrganizationsRequest {
- r.containerIds = &containerIds
- return r
-}
-
-// E-Mail address of the user for whom the visible resource containers should be filtered.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListOrganizationsRequest) Member(member string) ApiListOrganizationsRequest {
- r.member = &member
- return r
-}
-
-// The maximum number of projects to return in the response. If not present, an appropriate default will be used. If maximum is exceeded, maximum is used.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListOrganizationsRequest) Limit(limit float32) ApiListOrganizationsRequest {
- r.limit = &limit
- return r
-}
-
-// The offset of the first item in the collection to return.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListOrganizationsRequest) Offset(offset float32) ApiListOrganizationsRequest {
- r.offset = &offset
- return r
-}
-
-// A timestamp to specify the beginning of the creationTime from which entries should be returned. If not given, defaults to the beginning of time.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListOrganizationsRequest) CreationTimeStart(creationTimeStart time.Time) ApiListOrganizationsRequest {
- r.creationTimeStart = &creationTimeStart
- return r
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListOrganizationsRequest) Execute() (*ListOrganizationsResponse, error) {
- var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ListOrganizationsResponse
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListOrganizations")
- if err != nil {
- return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/organizations"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- if r.containerIds != nil {
- t := *r.containerIds
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "containerIds", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "containerIds", t, "multi")
- }
- }
- if r.member != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "member", r.member, "")
- }
- if r.limit != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
- }
- if r.offset != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
- }
- if r.creationTimeStart != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "creation-time-start", r.creationTimeStart, "")
- }
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 400 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return localVarReturnValue, newErr
- }
- if localVarHTTPResponse.StatusCode == 403 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return localVarReturnValue, newErr
- }
-
- err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: err.Error(),
- }
- return localVarReturnValue, newErr
- }
-
- return localVarReturnValue, nil
-}
-
-/*
-ListOrganizations: Get all organizations of member
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiListOrganizationsRequest
-*/
-func (a *APIClient) ListOrganizations(ctx context.Context) ApiListOrganizationsRequest {
- return ListOrganizationsRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) ListOrganizationsExecute(ctx context.Context) (*ListOrganizationsResponse, error) {
- r := ListOrganizationsRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- }
- return r.Execute()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListProjectsRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- containerParentId *string
- containerIds *[]string
- member *string
- offset *float32
- limit *float32
- creationTimeStart *time.Time
-}
-
-// Identifier of the parent resource container - containerId as well as UUID identifier is supported.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListProjectsRequest) ContainerParentId(containerParentId string) ApiListProjectsRequest {
- r.containerParentId = &containerParentId
- return r
-}
-
-// List of container identifiers - containerId as well as UUID identifier is supported.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListProjectsRequest) ContainerIds(containerIds []string) ApiListProjectsRequest {
- r.containerIds = &containerIds
- return r
-}
-
-// E-Mail address of the user for whom the visible resource containers should be filtered.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListProjectsRequest) Member(member string) ApiListProjectsRequest {
- r.member = &member
- return r
-}
-
-// The offset of the first item in the collection to return.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListProjectsRequest) Offset(offset float32) ApiListProjectsRequest {
- r.offset = &offset
- return r
-}
-
-// The maximum number of projects to return in the response. If not present, an appropriate default will be used. If maximum is exceeded, maximum is used.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListProjectsRequest) Limit(limit float32) ApiListProjectsRequest {
- r.limit = &limit
- return r
-}
-
-// A timestamp to specify the beginning of the creationTime from which entries should be returned. If not given, defaults to the beginning of time.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListProjectsRequest) CreationTimeStart(creationTimeStart time.Time) ApiListProjectsRequest {
- r.creationTimeStart = &creationTimeStart
- return r
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r ListProjectsRequest) Execute() (*ListProjectsResponse, error) {
- var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ListProjectsResponse
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListProjects")
- if err != nil {
- return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/projects"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- if r.containerParentId != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "containerParentId", r.containerParentId, "")
- }
- if r.containerIds != nil {
- t := *r.containerIds
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "containerIds", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "containerIds", t, "multi")
- }
- }
- if r.member != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "member", r.member, "")
- }
- if r.offset != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
- }
- if r.limit != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
- }
- if r.creationTimeStart != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "creation-time-start", r.creationTimeStart, "")
- }
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 400 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return localVarReturnValue, newErr
- }
- if localVarHTTPResponse.StatusCode == 403 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return localVarReturnValue, newErr
- }
-
- err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: err.Error(),
- }
- return localVarReturnValue, newErr
- }
-
- return localVarReturnValue, nil
-}
-
-/*
-ListProjects: Get All Projects of a member.
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiListProjectsRequest
-*/
-func (a *APIClient) ListProjects(ctx context.Context) ApiListProjectsRequest {
- return ListProjectsRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) ListProjectsExecute(ctx context.Context) (*ListProjectsResponse, error) {
- r := ListProjectsRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- }
- return r.Execute()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateFolderRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- containerId string
- partialUpdateFolderPayload *PartialUpdateFolderPayload
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r PartialUpdateFolderRequest) PartialUpdateFolderPayload(partialUpdateFolderPayload PartialUpdateFolderPayload) ApiPartialUpdateFolderRequest {
- r.partialUpdateFolderPayload = &partialUpdateFolderPayload
- return r
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r PartialUpdateFolderRequest) Execute() (*FolderResponse, error) {
- var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FolderResponse
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.PartialUpdateFolder")
- if err != nil {
- return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/folders/{containerId}"
- localVarPath = strings.Replace(localVarPath, "{"+"containerId"+"}", url.PathEscape(ParameterValueToString(r.containerId, "containerId")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{"application/json"}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- // body params
- localVarPostBody = r.partialUpdateFolderPayload
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 403 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return localVarReturnValue, newErr
- }
- if localVarHTTPResponse.StatusCode == 404 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return localVarReturnValue, newErr
- }
- if localVarHTTPResponse.StatusCode == 409 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return localVarReturnValue, newErr
- }
-
- err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: err.Error(),
- }
- return localVarReturnValue, newErr
- }
-
- return localVarReturnValue, nil
-}
-
-/*
-PartialUpdateFolder: Update Folder
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param containerId Folder identifier - containerId as well as UUID identifier is supported.
- @return ApiPartialUpdateFolderRequest
-*/
-func (a *APIClient) PartialUpdateFolder(ctx context.Context, containerId string) ApiPartialUpdateFolderRequest {
- return PartialUpdateFolderRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- containerId: containerId,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) PartialUpdateFolderExecute(ctx context.Context, containerId string) (*FolderResponse, error) {
- r := PartialUpdateFolderRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- containerId: containerId,
- }
- return r.Execute()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateOrganizationRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- id string
- partialUpdateOrganizationPayload *PartialUpdateOrganizationPayload
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r PartialUpdateOrganizationRequest) PartialUpdateOrganizationPayload(partialUpdateOrganizationPayload PartialUpdateOrganizationPayload) ApiPartialUpdateOrganizationRequest {
- r.partialUpdateOrganizationPayload = &partialUpdateOrganizationPayload
- return r
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r PartialUpdateOrganizationRequest) Execute() (*OrganizationResponse, error) {
- var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *OrganizationResponse
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.PartialUpdateOrganization")
- if err != nil {
- return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/organizations/{id}"
- localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(ParameterValueToString(r.id, "id")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{"application/json"}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- // body params
- localVarPostBody = r.partialUpdateOrganizationPayload
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 404 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return localVarReturnValue, newErr
- }
- if localVarHTTPResponse.StatusCode == 409 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return localVarReturnValue, newErr
- }
-
- err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: err.Error(),
- }
- return localVarReturnValue, newErr
- }
-
- return localVarReturnValue, nil
-}
-
-/*
-PartialUpdateOrganization: Update Organization
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Organization identifier - containerId as well as UUID identifier is supported.
- @return ApiPartialUpdateOrganizationRequest
-*/
-func (a *APIClient) PartialUpdateOrganization(ctx context.Context, id string) ApiPartialUpdateOrganizationRequest {
- return PartialUpdateOrganizationRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- id: id,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) PartialUpdateOrganizationExecute(ctx context.Context, id string) (*OrganizationResponse, error) {
- r := PartialUpdateOrganizationRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- id: id,
- }
- return r.Execute()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateProjectRequest struct {
- ctx context.Context
- apiService *DefaultApiService
- id string
- partialUpdateProjectPayload *PartialUpdateProjectPayload
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r PartialUpdateProjectRequest) PartialUpdateProjectPayload(partialUpdateProjectPayload PartialUpdateProjectPayload) ApiPartialUpdateProjectRequest {
- r.partialUpdateProjectPayload = &partialUpdateProjectPayload
- return r
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (r PartialUpdateProjectRequest) Execute() (*Project, error) {
- var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Project
- )
- a := r.apiService
- client, ok := a.client.(*APIClient)
- if !ok {
- return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient")
- }
- localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.PartialUpdateProject")
- if err != nil {
- return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
- }
-
- localVarPath := localBasePath + "/v2/projects/{id}"
- localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(ParameterValueToString(r.id, "id")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{"application/json"}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- // body params
- localVarPostBody = r.partialUpdateProjectPayload
- req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, err
- }
-
- contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
- if ok {
- *contextHTTPRequest = req
- }
-
- localVarHTTPResponse, err := client.callAPI(req)
- contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
- if ok {
- *contextHTTPResponse = localVarHTTPResponse
- }
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 403 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return localVarReturnValue, newErr
- }
- if localVarHTTPResponse.StatusCode == 404 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- return localVarReturnValue, newErr
- }
- if localVarHTTPResponse.StatusCode == 409 {
- var v ErrorResponse
- err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.ErrorMessage = err.Error()
- return localVarReturnValue, newErr
- }
- newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.Model = v
- }
- return localVarReturnValue, newErr
- }
-
- err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &oapierror.GenericOpenAPIError{
- StatusCode: localVarHTTPResponse.StatusCode,
- Body: localVarBody,
- ErrorMessage: err.Error(),
- }
- return localVarReturnValue, newErr
- }
-
- return localVarReturnValue, nil
-}
-
-/*
-PartialUpdateProject: Update Project
-
-Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Project identifier - containerId as well as UUID identifier is supported.
- @return ApiPartialUpdateProjectRequest
-*/
-func (a *APIClient) PartialUpdateProject(ctx context.Context, id string) ApiPartialUpdateProjectRequest {
- return PartialUpdateProjectRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- id: id,
- }
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (a *APIClient) PartialUpdateProjectExecute(ctx context.Context, id string) (*Project, error) {
- r := PartialUpdateProjectRequest{
- apiService: a.defaultApi,
- ctx: ctx,
- id: id,
- }
- return r.Execute()
-}
diff --git a/services/resourcemanager/client.go b/services/resourcemanager/client.go
deleted file mode 100644
index 2f8b807eca..0000000000
--- a/services/resourcemanager/client.go
+++ /dev/null
@@ -1,635 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "bytes"
- "context"
- "encoding/json"
- "encoding/xml"
- "fmt"
- "io"
- "log"
- "mime/multipart"
- "net/http"
- "net/http/httputil"
- "net/url"
- "os"
- "path/filepath"
- "reflect"
- "regexp"
- "strconv"
- "strings"
- "time"
- "unicode/utf8"
-
- "github.com/stackitcloud/stackit-sdk-go/core/auth"
- "github.com/stackitcloud/stackit-sdk-go/core/config"
-)
-
-var (
- jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`)
- xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`)
- queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`)
- queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]")
-)
-
-// APIClient manages communication with the STACKIT Resource Manager API API v2.0
-// In most cases there should be only one, shared, APIClient.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type APIClient struct {
- cfg *config.Configuration
- common service // Reuse a single struct instead of allocating one for each service on the heap.
- defaultApi *DefaultApiService
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type service struct {
- client DefaultApi
-}
-
-// NewAPIClient creates a new API client.
-// Optionally receives configuration options
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) {
- cfg := NewConfiguration()
-
- for _, option := range opts {
- err := option(cfg)
- if err != nil {
- return nil, fmt.Errorf("configuring the client: %w", err)
- }
- }
-
- err := config.ConfigureRegion(cfg)
- if err != nil {
- return nil, fmt.Errorf("configuring region: %w", err)
- }
-
- if cfg.HTTPClient == nil {
- cfg.HTTPClient = &http.Client{}
- }
-
- authRoundTripper, err := auth.SetupAuth(cfg)
- if err != nil {
- return nil, fmt.Errorf("setting up authentication: %w", err)
- }
-
- roundTripper := authRoundTripper
- if cfg.Middleware != nil {
- roundTripper = config.ChainMiddleware(roundTripper, cfg.Middleware...)
- }
-
- cfg.HTTPClient.Transport = roundTripper
-
- c := &APIClient{}
- c.cfg = cfg
- c.common.client = c
- c.defaultApi = (*DefaultApiService)(&c.common)
-
- return c, nil
-}
-
-func atoi(in string) (int, error) {
- return strconv.Atoi(in)
-}
-
-// selectHeaderContentType select a content type from the available list.
-func selectHeaderContentType(contentTypes []string) string {
- if len(contentTypes) == 0 {
- return ""
- }
- if contains(contentTypes, "application/json") {
- return "application/json"
- }
- return contentTypes[0] // use the first content type specified in 'consumes'
-}
-
-// selectHeaderAccept join all accept types and return
-func selectHeaderAccept(accepts []string) string {
- if len(accepts) == 0 {
- return ""
- }
-
- if contains(accepts, "application/json") {
- return "application/json"
- }
-
- return strings.Join(accepts, ",")
-}
-
-// contains is a case insensitive match, finding needle in a haystack
-func contains(haystack []string, needle string) bool {
- for _, a := range haystack {
- if strings.EqualFold(a, needle) {
- return true
- }
- }
- return false
-}
-
-// Verify optional parameters are of the correct type.
-func typeCheckParameter(obj interface{}, expected string, name string) error {
- // Make sure there is an object.
- if obj == nil {
- return nil
- }
-
- // Check the type is as expected.
- if reflect.TypeOf(obj).String() != expected {
- return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String())
- }
- return nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func ParameterValueToString(obj interface{}, key string) string {
- if reflect.TypeOf(obj).Kind() != reflect.Ptr {
- return fmt.Sprintf("%v", obj)
- }
- var param, ok = obj.(MappedNullable)
- if !ok {
- return ""
- }
- dataMap, err := param.ToMap()
- if err != nil {
- return ""
- }
- return fmt.Sprintf("%v", dataMap[key])
-}
-
-// parameterAddToHeaderOrQuery adds the provided object to the request header or url query
-// supporting deep object syntax
-func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) {
- var v = reflect.ValueOf(obj)
- var value = ""
- if v == reflect.ValueOf(nil) {
- value = "null"
- } else {
- switch v.Kind() {
- case reflect.Invalid:
- value = "invalid"
-
- case reflect.Struct:
- if t, ok := obj.(MappedNullable); ok {
- dataMap, err := t.ToMap()
- if err != nil {
- return
- }
- parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType)
- return
- }
- if t, ok := obj.(time.Time); ok {
- parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType)
- return
- }
- value = v.Type().String() + " value"
- case reflect.Slice:
- var indValue = reflect.ValueOf(obj)
- if indValue == reflect.ValueOf(nil) {
- return
- }
- var lenIndValue = indValue.Len()
- for i := 0; i < lenIndValue; i++ {
- var arrayValue = indValue.Index(i)
- parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, arrayValue.Interface(), collectionType)
- }
- return
-
- case reflect.Map:
- var indValue = reflect.ValueOf(obj)
- if indValue == reflect.ValueOf(nil) {
- return
- }
- iter := indValue.MapRange()
- for iter.Next() {
- k, v := iter.Key(), iter.Value()
- parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), collectionType)
- }
- return
-
- case reflect.Interface:
- fallthrough
- case reflect.Ptr:
- parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), collectionType)
- return
-
- case reflect.Int, reflect.Int8, reflect.Int16,
- reflect.Int32, reflect.Int64:
- value = strconv.FormatInt(v.Int(), 10)
- case reflect.Uint, reflect.Uint8, reflect.Uint16,
- reflect.Uint32, reflect.Uint64, reflect.Uintptr:
- value = strconv.FormatUint(v.Uint(), 10)
- case reflect.Float32, reflect.Float64:
- value = strconv.FormatFloat(v.Float(), 'g', -1, 32)
- case reflect.Bool:
- value = strconv.FormatBool(v.Bool())
- case reflect.String:
- value = v.String()
- default:
- value = v.Type().String() + " value"
- }
- }
-
- switch valuesMap := headerOrQueryParams.(type) {
- case url.Values:
- if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" {
- valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value)
- } else {
- valuesMap.Add(keyPrefix, value)
- }
- break
- case map[string]string:
- valuesMap[keyPrefix] = value
- break
- }
-}
-
-// helper for converting interface{} parameters to json strings
-func parameterToJson(obj interface{}) (string, error) {
- jsonBuf, err := json.Marshal(obj)
- if err != nil {
- return "", err
- }
- return string(jsonBuf), err
-}
-
-// callAPI do the request.
-func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) {
- if c.cfg.Debug {
- dump, err := httputil.DumpRequestOut(request, true)
- if err != nil {
- return nil, err
- }
- log.Printf("\n%s\n", string(dump))
- }
-
- resp, err := c.cfg.HTTPClient.Do(request)
- if err != nil {
- return resp, err
- }
-
- if c.cfg.Debug {
- dump, err := httputil.DumpResponse(resp, true)
- if err != nil {
- return resp, err
- }
- log.Printf("\n%s\n", string(dump))
- }
- return resp, err
-}
-
-// Allow modification of underlying config for alternate implementations and testing
-// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (c *APIClient) GetConfig() *config.Configuration {
- return c.cfg
-}
-
-type formFile struct {
- fileBytes []byte
- fileName string
- formFileName string
-}
-
-// prepareRequest build the request
-func (c *APIClient) prepareRequest(
- ctx context.Context,
- path string, method string,
- postBody interface{},
- headerParams map[string]string,
- queryParams url.Values,
- formParams url.Values,
- formFiles []formFile) (localVarRequest *http.Request, err error) {
-
- var body *bytes.Buffer
-
- // Detect postBody type and post.
- if !IsNil(postBody) {
- contentType := headerParams["Content-Type"]
- if contentType == "" {
- contentType = detectContentType(postBody)
- headerParams["Content-Type"] = contentType
- }
-
- body, err = setBody(postBody, contentType)
- if err != nil {
- return nil, err
- }
- }
-
- // add form parameters and file if available.
- if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) {
- if body != nil {
- return nil, fmt.Errorf("cannot specify postBody and multipart form at the same time.")
- }
- body = &bytes.Buffer{}
- w := multipart.NewWriter(body)
-
- for k, v := range formParams {
- for _, iv := range v {
- if strings.HasPrefix(k, "@") { // file
- err = addFile(w, k[1:], iv)
- if err != nil {
- return nil, err
- }
- } else { // form value
- w.WriteField(k, iv)
- }
- }
- }
- for _, formFile := range formFiles {
- if len(formFile.fileBytes) > 0 && formFile.fileName != "" {
- w.Boundary()
- part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName))
- if err != nil {
- return nil, err
- }
- _, err = part.Write(formFile.fileBytes)
- if err != nil {
- return nil, err
- }
- }
- }
-
- // Set the Boundary in the Content-Type
- headerParams["Content-Type"] = w.FormDataContentType()
-
- // Set Content-Length
- headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len())
- w.Close()
- }
-
- if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 {
- if body != nil {
- return nil, fmt.Errorf("cannot specify postBody and x-www-form-urlencoded form at the same time.")
- }
- body = &bytes.Buffer{}
- body.WriteString(formParams.Encode())
- // Set Content-Length
- headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len())
- }
-
- // Setup path and query parameters
- url, err := url.Parse(path)
- if err != nil {
- return nil, err
- }
-
- // Override request host, if applicable
- if c.cfg.Host != "" {
- url.Host = c.cfg.Host
- }
-
- // Override request scheme, if applicable
- if c.cfg.Scheme != "" {
- url.Scheme = c.cfg.Scheme
- }
-
- // Adding Query Param
- query := url.Query()
- for k, v := range queryParams {
- for _, iv := range v {
- query.Add(k, iv)
- }
- }
-
- // Encode the parameters.
- url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string {
- pieces := strings.Split(s, "=")
- pieces[0] = queryDescape.Replace(pieces[0])
- return strings.Join(pieces, "=")
- })
-
- // Generate a new request
- if body != nil {
- localVarRequest, err = http.NewRequest(method, url.String(), body)
- } else {
- localVarRequest, err = http.NewRequest(method, url.String(), nil)
- }
- if err != nil {
- return nil, err
- }
-
- // add header parameters, if any
- if len(headerParams) > 0 {
- headers := http.Header{}
- for h, v := range headerParams {
- headers[h] = []string{v}
- }
- localVarRequest.Header = headers
- }
-
- // Add the user agent to the request.
- localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent)
-
- if ctx != nil {
- // add context to the request
- localVarRequest = localVarRequest.WithContext(ctx)
-
- // Walk through any authentication.
-
- }
-
- for header, value := range c.cfg.DefaultHeader {
- localVarRequest.Header.Add(header, value)
- }
- return localVarRequest, nil
-}
-
-func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) {
- if len(b) == 0 {
- return nil
- }
- if s, ok := v.(*string); ok {
- *s = string(b)
- return nil
- }
- if f, ok := v.(*os.File); ok {
- f, err = os.CreateTemp("", "HttpClientFile")
- if err != nil {
- return
- }
- _, err = f.Write(b)
- if err != nil {
- return
- }
- _, err = f.Seek(0, io.SeekStart)
- return
- }
- if f, ok := v.(**os.File); ok {
- *f, err = os.CreateTemp("", "HttpClientFile")
- if err != nil {
- return
- }
- _, err = (*f).Write(b)
- if err != nil {
- return
- }
- _, err = (*f).Seek(0, io.SeekStart)
- return
- }
- if xmlCheck.MatchString(contentType) {
- if err = xml.Unmarshal(b, v); err != nil {
- return err
- }
- return nil
- }
- if jsonCheck.MatchString(contentType) {
- if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas
- if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined
- if err = unmarshalObj.UnmarshalJSON(b); err != nil {
- return err
- }
- } else {
- return fmt.Errorf("unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined")
- }
- } else if err = json.Unmarshal(b, v); err != nil { // simple model
- return err
- }
- return nil
- }
- return fmt.Errorf("undefined response type")
-}
-
-// Add a file to the multipart request
-func addFile(w *multipart.Writer, fieldName, path string) error {
- file, err := os.Open(filepath.Clean(path))
- if err != nil {
- return err
- }
- defer file.Close()
-
- part, err := w.CreateFormFile(fieldName, filepath.Base(path))
- if err != nil {
- return err
- }
- _, err = io.Copy(part, file)
-
- return err
-}
-
-// A wrapper for strict JSON decoding
-func newStrictDecoder(data []byte) *json.Decoder {
- dec := json.NewDecoder(bytes.NewBuffer(data))
- dec.DisallowUnknownFields()
- return dec
-}
-
-// Set request body from an interface{}
-func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) {
- if bodyBuf == nil {
- bodyBuf = &bytes.Buffer{}
- }
-
- if reader, ok := body.(io.Reader); ok {
- _, err = bodyBuf.ReadFrom(reader)
- } else if fp, ok := body.(*os.File); ok {
- _, err = bodyBuf.ReadFrom(fp)
- } else if b, ok := body.([]byte); ok {
- _, err = bodyBuf.Write(b)
- } else if s, ok := body.(string); ok {
- _, err = bodyBuf.WriteString(s)
- } else if s, ok := body.(*string); ok {
- _, err = bodyBuf.WriteString(*s)
- } else if jsonCheck.MatchString(contentType) {
- err = json.NewEncoder(bodyBuf).Encode(body)
- } else if xmlCheck.MatchString(contentType) {
- err = xml.NewEncoder(bodyBuf).Encode(body)
- }
-
- if err != nil {
- return nil, err
- }
-
- if bodyBuf.Len() == 0 {
- err = fmt.Errorf("invalid body type %s", contentType)
- return nil, err
- }
- return bodyBuf, nil
-}
-
-// detectContentType method is used to figure out `Request.Body` content type for request header
-func detectContentType(body interface{}) string {
- contentType := "text/plain; charset=utf-8"
- kind := reflect.TypeOf(body).Kind()
-
- switch kind {
- case reflect.Struct, reflect.Map, reflect.Ptr:
- contentType = "application/json; charset=utf-8"
- case reflect.String:
- contentType = "text/plain; charset=utf-8"
- default:
- if b, ok := body.([]byte); ok {
- contentType = http.DetectContentType(b)
- } else if kind == reflect.Slice {
- contentType = "application/json; charset=utf-8"
- }
- }
-
- return contentType
-}
-
-// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go
-type cacheControl map[string]string
-
-func parseCacheControl(headers http.Header) cacheControl {
- cc := cacheControl{}
- ccHeader := headers.Get("Cache-Control")
- for _, part := range strings.Split(ccHeader, ",") {
- part = strings.Trim(part, " ")
- if part == "" {
- continue
- }
- if strings.ContainsRune(part, '=') {
- keyval := strings.Split(part, "=")
- cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",")
- } else {
- cc[part] = ""
- }
- }
- return cc
-}
-
-// CacheExpires helper function to determine remaining time before repeating a request.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func CacheExpires(r *http.Response) time.Time {
- // Figure out when the cache expires.
- var expires time.Time
- now, err := time.Parse(time.RFC1123, r.Header.Get("date"))
- if err != nil {
- return time.Now()
- }
- respCacheControl := parseCacheControl(r.Header)
-
- if maxAge, ok := respCacheControl["max-age"]; ok {
- lifetime, err := time.ParseDuration(maxAge + "s")
- if err != nil {
- expires = now
- } else {
- expires = now.Add(lifetime)
- }
- } else {
- expiresHeader := r.Header.Get("Expires")
- if expiresHeader != "" {
- expires, err = time.Parse(time.RFC1123, expiresHeader)
- if err != nil {
- expires = now
- }
- }
- }
- return expires
-}
-
-func strlen(s string) int {
- return utf8.RuneCountInString(s)
-}
diff --git a/services/resourcemanager/configuration.go b/services/resourcemanager/configuration.go
deleted file mode 100644
index 4e250a0b7f..0000000000
--- a/services/resourcemanager/configuration.go
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "github.com/stackitcloud/stackit-sdk-go/core/config"
-)
-
-// NewConfiguration returns a new Configuration object
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewConfiguration() *config.Configuration {
- cfg := &config.Configuration{
- DefaultHeader: make(map[string]string),
- UserAgent: "stackit-sdk-go/resourcemanager",
- Debug: false,
- Servers: config.ServerConfigurations{
- {
- URL: "https://resource-manager.api.stackit.cloud",
- Description: "No description provided",
- Variables: map[string]config.ServerVariable{
- "region": {
- Description: "No description provided",
- DefaultValue: "global",
- },
- },
- },
- },
- OperationServers: map[string]config.ServerConfigurations{},
- }
- return cfg
-}
diff --git a/services/resourcemanager/model_create_folder_payload.go b/services/resourcemanager/model_create_folder_payload.go
deleted file mode 100644
index cbc8887af6..0000000000
--- a/services/resourcemanager/model_create_folder_payload.go
+++ /dev/null
@@ -1,322 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
-)
-
-// checks if the CreateFolderPayload type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &CreateFolderPayload{}
-
-/*
- types and functions for containerParentId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateFolderPayloadGetContainerParentIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getCreateFolderPayloadGetContainerParentIdAttributeTypeOk(arg CreateFolderPayloadGetContainerParentIdAttributeType) (ret CreateFolderPayloadGetContainerParentIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setCreateFolderPayloadGetContainerParentIdAttributeType(arg *CreateFolderPayloadGetContainerParentIdAttributeType, val CreateFolderPayloadGetContainerParentIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateFolderPayloadGetContainerParentIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateFolderPayloadGetContainerParentIdRetType = string
-
-/*
- types and functions for labels
-*/
-
-// isContainer
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateFolderPayloadGetLabelsAttributeType = *map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateFolderPayloadGetLabelsArgType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateFolderPayloadGetLabelsRetType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getCreateFolderPayloadGetLabelsAttributeTypeOk(arg CreateFolderPayloadGetLabelsAttributeType) (ret CreateFolderPayloadGetLabelsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setCreateFolderPayloadGetLabelsAttributeType(arg *CreateFolderPayloadGetLabelsAttributeType, val CreateFolderPayloadGetLabelsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for members
-*/
-
-// isArray
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateFolderPayloadGetMembersAttributeType = *[]Member
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateFolderPayloadGetMembersArgType = []Member
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateFolderPayloadGetMembersRetType = []Member
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getCreateFolderPayloadGetMembersAttributeTypeOk(arg CreateFolderPayloadGetMembersAttributeType) (ret CreateFolderPayloadGetMembersRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setCreateFolderPayloadGetMembersAttributeType(arg *CreateFolderPayloadGetMembersAttributeType, val CreateFolderPayloadGetMembersRetType) {
- *arg = &val
-}
-
-/*
- types and functions for name
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateFolderPayloadGetNameAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getCreateFolderPayloadGetNameAttributeTypeOk(arg CreateFolderPayloadGetNameAttributeType) (ret CreateFolderPayloadGetNameRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setCreateFolderPayloadGetNameAttributeType(arg *CreateFolderPayloadGetNameAttributeType, val CreateFolderPayloadGetNameRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateFolderPayloadGetNameArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateFolderPayloadGetNameRetType = string
-
-// CreateFolderPayload struct for CreateFolderPayload
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateFolderPayload struct {
- // Identifier of the parent resource container - containerId as well as UUID identifier is supported.
- // REQUIRED
- ContainerParentId CreateFolderPayloadGetContainerParentIdAttributeType `json:"containerParentId" required:"true"`
- // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must be between 1 and 63 characters long (excluding an optional domain prefix). Must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May be empty (\"\"). If non-empty, must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). > Note: Additional naming restrictions may apply depending on your specific organization.*
- Labels CreateFolderPayloadGetLabelsAttributeType `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 CreateFolderPayloadGetMembersAttributeType `json:"members,omitempty"`
- // The name of the folder matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`.
- // REQUIRED
- Name CreateFolderPayloadGetNameAttributeType `json:"name" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _CreateFolderPayload CreateFolderPayload
-
-// NewCreateFolderPayload instantiates a new CreateFolderPayload 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewCreateFolderPayload(containerParentId CreateFolderPayloadGetContainerParentIdArgType, name CreateFolderPayloadGetNameArgType) *CreateFolderPayload {
- this := CreateFolderPayload{}
- setCreateFolderPayloadGetContainerParentIdAttributeType(&this.ContainerParentId, containerParentId)
- setCreateFolderPayloadGetNameAttributeType(&this.Name, name)
- return &this
-}
-
-// NewCreateFolderPayloadWithDefaults instantiates a new CreateFolderPayload 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewCreateFolderPayloadWithDefaults() *CreateFolderPayload {
- this := CreateFolderPayload{}
- return &this
-}
-
-// GetContainerParentId returns the ContainerParentId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateFolderPayload) GetContainerParentId() (ret CreateFolderPayloadGetContainerParentIdRetType) {
- ret, _ = o.GetContainerParentIdOk()
- return ret
-}
-
-// GetContainerParentIdOk returns a tuple with the ContainerParentId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateFolderPayload) GetContainerParentIdOk() (ret CreateFolderPayloadGetContainerParentIdRetType, ok bool) {
- return getCreateFolderPayloadGetContainerParentIdAttributeTypeOk(o.ContainerParentId)
-}
-
-// SetContainerParentId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateFolderPayload) SetContainerParentId(v CreateFolderPayloadGetContainerParentIdRetType) {
- setCreateFolderPayloadGetContainerParentIdAttributeType(&o.ContainerParentId, v)
-}
-
-// GetLabels returns the Labels field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateFolderPayload) GetLabels() (res CreateFolderPayloadGetLabelsRetType) {
- res, _ = o.GetLabelsOk()
- return
-}
-
-// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateFolderPayload) GetLabelsOk() (ret CreateFolderPayloadGetLabelsRetType, ok bool) {
- return getCreateFolderPayloadGetLabelsAttributeTypeOk(o.Labels)
-}
-
-// HasLabels returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateFolderPayload) HasLabels() bool {
- _, ok := o.GetLabelsOk()
- return ok
-}
-
-// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateFolderPayload) SetLabels(v CreateFolderPayloadGetLabelsRetType) {
- setCreateFolderPayloadGetLabelsAttributeType(&o.Labels, v)
-}
-
-// GetMembers returns the Members field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateFolderPayload) GetMembers() (res CreateFolderPayloadGetMembersRetType) {
- res, _ = o.GetMembersOk()
- return
-}
-
-// GetMembersOk returns a tuple with the Members field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateFolderPayload) GetMembersOk() (ret CreateFolderPayloadGetMembersRetType, ok bool) {
- return getCreateFolderPayloadGetMembersAttributeTypeOk(o.Members)
-}
-
-// HasMembers returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateFolderPayload) HasMembers() bool {
- _, ok := o.GetMembersOk()
- return ok
-}
-
-// SetMembers gets a reference to the given []Member and assigns it to the Members field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateFolderPayload) SetMembers(v CreateFolderPayloadGetMembersRetType) {
- setCreateFolderPayloadGetMembersAttributeType(&o.Members, v)
-}
-
-// GetName returns the Name field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateFolderPayload) GetName() (ret CreateFolderPayloadGetNameRetType) {
- ret, _ = o.GetNameOk()
- return ret
-}
-
-// GetNameOk returns a tuple with the Name field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateFolderPayload) GetNameOk() (ret CreateFolderPayloadGetNameRetType, ok bool) {
- return getCreateFolderPayloadGetNameAttributeTypeOk(o.Name)
-}
-
-// SetName sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateFolderPayload) SetName(v CreateFolderPayloadGetNameRetType) {
- setCreateFolderPayloadGetNameAttributeType(&o.Name, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o CreateFolderPayload) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getCreateFolderPayloadGetContainerParentIdAttributeTypeOk(o.ContainerParentId); ok {
- toSerialize["ContainerParentId"] = val
- }
- if val, ok := getCreateFolderPayloadGetLabelsAttributeTypeOk(o.Labels); ok {
- toSerialize["Labels"] = val
- }
- if val, ok := getCreateFolderPayloadGetMembersAttributeTypeOk(o.Members); ok {
- toSerialize["Members"] = val
- }
- if val, ok := getCreateFolderPayloadGetNameAttributeTypeOk(o.Name); ok {
- toSerialize["Name"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableCreateFolderPayload struct {
- value *CreateFolderPayload
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableCreateFolderPayload) Get() *CreateFolderPayload {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableCreateFolderPayload) Set(val *CreateFolderPayload) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableCreateFolderPayload) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableCreateFolderPayload) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableCreateFolderPayload(val *CreateFolderPayload) *NullableCreateFolderPayload {
- return &NullableCreateFolderPayload{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableCreateFolderPayload) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableCreateFolderPayload) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_create_folder_payload_test.go b/services/resourcemanager/model_create_folder_payload_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_create_folder_payload_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_create_project_payload.go b/services/resourcemanager/model_create_project_payload.go
deleted file mode 100644
index ebaeb255a0..0000000000
--- a/services/resourcemanager/model_create_project_payload.go
+++ /dev/null
@@ -1,317 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
-)
-
-// checks if the CreateProjectPayload type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &CreateProjectPayload{}
-
-/*
- types and functions for containerParentId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateProjectPayloadGetContainerParentIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getCreateProjectPayloadGetContainerParentIdAttributeTypeOk(arg CreateProjectPayloadGetContainerParentIdAttributeType) (ret CreateProjectPayloadGetContainerParentIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setCreateProjectPayloadGetContainerParentIdAttributeType(arg *CreateProjectPayloadGetContainerParentIdAttributeType, val CreateProjectPayloadGetContainerParentIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateProjectPayloadGetContainerParentIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateProjectPayloadGetContainerParentIdRetType = string
-
-/*
- types and functions for labels
-*/
-
-// isContainer
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateProjectPayloadGetLabelsAttributeType = *map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateProjectPayloadGetLabelsArgType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateProjectPayloadGetLabelsRetType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getCreateProjectPayloadGetLabelsAttributeTypeOk(arg CreateProjectPayloadGetLabelsAttributeType) (ret CreateProjectPayloadGetLabelsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setCreateProjectPayloadGetLabelsAttributeType(arg *CreateProjectPayloadGetLabelsAttributeType, val CreateProjectPayloadGetLabelsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for members
-*/
-
-// isArray
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateProjectPayloadGetMembersAttributeType = *[]Member
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateProjectPayloadGetMembersArgType = []Member
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateProjectPayloadGetMembersRetType = []Member
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getCreateProjectPayloadGetMembersAttributeTypeOk(arg CreateProjectPayloadGetMembersAttributeType) (ret CreateProjectPayloadGetMembersRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setCreateProjectPayloadGetMembersAttributeType(arg *CreateProjectPayloadGetMembersAttributeType, val CreateProjectPayloadGetMembersRetType) {
- *arg = &val
-}
-
-/*
- types and functions for name
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateProjectPayloadGetNameAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getCreateProjectPayloadGetNameAttributeTypeOk(arg CreateProjectPayloadGetNameAttributeType) (ret CreateProjectPayloadGetNameRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setCreateProjectPayloadGetNameAttributeType(arg *CreateProjectPayloadGetNameAttributeType, val CreateProjectPayloadGetNameRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateProjectPayloadGetNameArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateProjectPayloadGetNameRetType = string
-
-// CreateProjectPayload struct for CreateProjectPayload
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type CreateProjectPayload struct {
- // Identifier of the parent resource container - containerId as well as UUID identifier is supported.
- // REQUIRED
- ContainerParentId CreateProjectPayloadGetContainerParentIdAttributeType `json:"containerParentId" required:"true"`
- // Key-value string pairs attached to a resource container during creation. Certain labels may be enforced via organizational policies. * **Key:** Must be between 1 and 63 characters long (excluding an optional domain prefix). Must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May be empty (\"\"). If non-empty, must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). * 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 CreateProjectPayloadGetLabelsAttributeType `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.
- // REQUIRED
- Members CreateProjectPayloadGetMembersAttributeType `json:"members" required:"true"`
- // Project name matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`.
- // REQUIRED
- Name CreateProjectPayloadGetNameAttributeType `json:"name" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _CreateProjectPayload CreateProjectPayload
-
-// NewCreateProjectPayload instantiates a new CreateProjectPayload 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewCreateProjectPayload(containerParentId CreateProjectPayloadGetContainerParentIdArgType, members CreateProjectPayloadGetMembersArgType, name CreateProjectPayloadGetNameArgType) *CreateProjectPayload {
- this := CreateProjectPayload{}
- setCreateProjectPayloadGetContainerParentIdAttributeType(&this.ContainerParentId, containerParentId)
- setCreateProjectPayloadGetMembersAttributeType(&this.Members, members)
- setCreateProjectPayloadGetNameAttributeType(&this.Name, name)
- return &this
-}
-
-// NewCreateProjectPayloadWithDefaults instantiates a new CreateProjectPayload 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewCreateProjectPayloadWithDefaults() *CreateProjectPayload {
- this := CreateProjectPayload{}
- return &this
-}
-
-// GetContainerParentId returns the ContainerParentId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateProjectPayload) GetContainerParentId() (ret CreateProjectPayloadGetContainerParentIdRetType) {
- ret, _ = o.GetContainerParentIdOk()
- return ret
-}
-
-// GetContainerParentIdOk returns a tuple with the ContainerParentId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateProjectPayload) GetContainerParentIdOk() (ret CreateProjectPayloadGetContainerParentIdRetType, ok bool) {
- return getCreateProjectPayloadGetContainerParentIdAttributeTypeOk(o.ContainerParentId)
-}
-
-// SetContainerParentId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateProjectPayload) SetContainerParentId(v CreateProjectPayloadGetContainerParentIdRetType) {
- setCreateProjectPayloadGetContainerParentIdAttributeType(&o.ContainerParentId, v)
-}
-
-// GetLabels returns the Labels field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateProjectPayload) GetLabels() (res CreateProjectPayloadGetLabelsRetType) {
- res, _ = o.GetLabelsOk()
- return
-}
-
-// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateProjectPayload) GetLabelsOk() (ret CreateProjectPayloadGetLabelsRetType, ok bool) {
- return getCreateProjectPayloadGetLabelsAttributeTypeOk(o.Labels)
-}
-
-// HasLabels returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateProjectPayload) HasLabels() bool {
- _, ok := o.GetLabelsOk()
- return ok
-}
-
-// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateProjectPayload) SetLabels(v CreateProjectPayloadGetLabelsRetType) {
- setCreateProjectPayloadGetLabelsAttributeType(&o.Labels, v)
-}
-
-// GetMembers returns the Members field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateProjectPayload) GetMembers() (ret CreateProjectPayloadGetMembersRetType) {
- ret, _ = o.GetMembersOk()
- return ret
-}
-
-// GetMembersOk returns a tuple with the Members field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateProjectPayload) GetMembersOk() (ret CreateProjectPayloadGetMembersRetType, ok bool) {
- return getCreateProjectPayloadGetMembersAttributeTypeOk(o.Members)
-}
-
-// SetMembers sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateProjectPayload) SetMembers(v CreateProjectPayloadGetMembersRetType) {
- setCreateProjectPayloadGetMembersAttributeType(&o.Members, v)
-}
-
-// GetName returns the Name field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateProjectPayload) GetName() (ret CreateProjectPayloadGetNameRetType) {
- ret, _ = o.GetNameOk()
- return ret
-}
-
-// GetNameOk returns a tuple with the Name field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateProjectPayload) GetNameOk() (ret CreateProjectPayloadGetNameRetType, ok bool) {
- return getCreateProjectPayloadGetNameAttributeTypeOk(o.Name)
-}
-
-// SetName sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *CreateProjectPayload) SetName(v CreateProjectPayloadGetNameRetType) {
- setCreateProjectPayloadGetNameAttributeType(&o.Name, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o CreateProjectPayload) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getCreateProjectPayloadGetContainerParentIdAttributeTypeOk(o.ContainerParentId); ok {
- toSerialize["ContainerParentId"] = val
- }
- if val, ok := getCreateProjectPayloadGetLabelsAttributeTypeOk(o.Labels); ok {
- toSerialize["Labels"] = val
- }
- if val, ok := getCreateProjectPayloadGetMembersAttributeTypeOk(o.Members); ok {
- toSerialize["Members"] = val
- }
- if val, ok := getCreateProjectPayloadGetNameAttributeTypeOk(o.Name); ok {
- toSerialize["Name"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableCreateProjectPayload struct {
- value *CreateProjectPayload
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableCreateProjectPayload) Get() *CreateProjectPayload {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableCreateProjectPayload) Set(val *CreateProjectPayload) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableCreateProjectPayload) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableCreateProjectPayload) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableCreateProjectPayload(val *CreateProjectPayload) *NullableCreateProjectPayload {
- return &NullableCreateProjectPayload{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableCreateProjectPayload) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableCreateProjectPayload) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_create_project_payload_test.go b/services/resourcemanager/model_create_project_payload_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_create_project_payload_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_error_response.go b/services/resourcemanager/model_error_response.go
deleted file mode 100644
index e2f2b0c4ab..0000000000
--- a/services/resourcemanager/model_error_response.go
+++ /dev/null
@@ -1,367 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
- "time"
-)
-
-// checks if the ErrorResponse type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &ErrorResponse{}
-
-/*
- types and functions for error
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponseGetErrorAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getErrorResponseGetErrorAttributeTypeOk(arg ErrorResponseGetErrorAttributeType) (ret ErrorResponseGetErrorRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setErrorResponseGetErrorAttributeType(arg *ErrorResponseGetErrorAttributeType, val ErrorResponseGetErrorRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponseGetErrorArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponseGetErrorRetType = string
-
-/*
- types and functions for message
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponseGetMessageAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getErrorResponseGetMessageAttributeTypeOk(arg ErrorResponseGetMessageAttributeType) (ret ErrorResponseGetMessageRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setErrorResponseGetMessageAttributeType(arg *ErrorResponseGetMessageAttributeType, val ErrorResponseGetMessageRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponseGetMessageArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponseGetMessageRetType = string
-
-/*
- types and functions for path
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponseGetPathAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getErrorResponseGetPathAttributeTypeOk(arg ErrorResponseGetPathAttributeType) (ret ErrorResponseGetPathRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setErrorResponseGetPathAttributeType(arg *ErrorResponseGetPathAttributeType, val ErrorResponseGetPathRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponseGetPathArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponseGetPathRetType = string
-
-/*
- types and functions for status
-*/
-
-// isNumber
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponseGetStatusAttributeType = *float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponseGetStatusArgType = float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponseGetStatusRetType = float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getErrorResponseGetStatusAttributeTypeOk(arg ErrorResponseGetStatusAttributeType) (ret ErrorResponseGetStatusRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setErrorResponseGetStatusAttributeType(arg *ErrorResponseGetStatusAttributeType, val ErrorResponseGetStatusRetType) {
- *arg = &val
-}
-
-/*
- types and functions for timeStamp
-*/
-
-// isDateTime
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponseGetTimeStampAttributeType = *time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponseGetTimeStampArgType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponseGetTimeStampRetType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getErrorResponseGetTimeStampAttributeTypeOk(arg ErrorResponseGetTimeStampAttributeType) (ret ErrorResponseGetTimeStampRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setErrorResponseGetTimeStampAttributeType(arg *ErrorResponseGetTimeStampAttributeType, val ErrorResponseGetTimeStampRetType) {
- *arg = &val
-}
-
-// ErrorResponse struct for ErrorResponse
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ErrorResponse struct {
- // The reason phrase of the status code.
- // REQUIRED
- Error ErrorResponseGetErrorAttributeType `json:"error" required:"true"`
- // Description of the error.
- // REQUIRED
- Message ErrorResponseGetMessageAttributeType `json:"message" required:"true"`
- // Path which was called.
- // REQUIRED
- Path ErrorResponseGetPathAttributeType `json:"path" required:"true"`
- // Http Status Code.
- // REQUIRED
- Status ErrorResponseGetStatusAttributeType `json:"status" required:"true"`
- // Timestamp at which the error occurred.
- // REQUIRED
- TimeStamp ErrorResponseGetTimeStampAttributeType `json:"timeStamp" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _ErrorResponse ErrorResponse
-
-// NewErrorResponse instantiates a new ErrorResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewErrorResponse(error_ ErrorResponseGetErrorArgType, message ErrorResponseGetMessageArgType, path ErrorResponseGetPathArgType, status ErrorResponseGetStatusArgType, timeStamp ErrorResponseGetTimeStampArgType) *ErrorResponse {
- this := ErrorResponse{}
- setErrorResponseGetErrorAttributeType(&this.Error, error_)
- setErrorResponseGetMessageAttributeType(&this.Message, message)
- setErrorResponseGetPathAttributeType(&this.Path, path)
- setErrorResponseGetStatusAttributeType(&this.Status, status)
- setErrorResponseGetTimeStampAttributeType(&this.TimeStamp, timeStamp)
- return &this
-}
-
-// NewErrorResponseWithDefaults instantiates a new ErrorResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewErrorResponseWithDefaults() *ErrorResponse {
- this := ErrorResponse{}
- return &this
-}
-
-// GetError returns the Error field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ErrorResponse) GetError() (ret ErrorResponseGetErrorRetType) {
- ret, _ = o.GetErrorOk()
- return ret
-}
-
-// GetErrorOk returns a tuple with the Error field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ErrorResponse) GetErrorOk() (ret ErrorResponseGetErrorRetType, ok bool) {
- return getErrorResponseGetErrorAttributeTypeOk(o.Error)
-}
-
-// SetError sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ErrorResponse) SetError(v ErrorResponseGetErrorRetType) {
- setErrorResponseGetErrorAttributeType(&o.Error, v)
-}
-
-// GetMessage returns the Message field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ErrorResponse) GetMessage() (ret ErrorResponseGetMessageRetType) {
- ret, _ = o.GetMessageOk()
- return ret
-}
-
-// GetMessageOk returns a tuple with the Message field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ErrorResponse) GetMessageOk() (ret ErrorResponseGetMessageRetType, ok bool) {
- return getErrorResponseGetMessageAttributeTypeOk(o.Message)
-}
-
-// SetMessage sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ErrorResponse) SetMessage(v ErrorResponseGetMessageRetType) {
- setErrorResponseGetMessageAttributeType(&o.Message, v)
-}
-
-// GetPath returns the Path field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ErrorResponse) GetPath() (ret ErrorResponseGetPathRetType) {
- ret, _ = o.GetPathOk()
- return ret
-}
-
-// GetPathOk returns a tuple with the Path field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ErrorResponse) GetPathOk() (ret ErrorResponseGetPathRetType, ok bool) {
- return getErrorResponseGetPathAttributeTypeOk(o.Path)
-}
-
-// SetPath sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ErrorResponse) SetPath(v ErrorResponseGetPathRetType) {
- setErrorResponseGetPathAttributeType(&o.Path, v)
-}
-
-// GetStatus returns the Status field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ErrorResponse) GetStatus() (ret ErrorResponseGetStatusRetType) {
- ret, _ = o.GetStatusOk()
- return ret
-}
-
-// GetStatusOk returns a tuple with the Status field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ErrorResponse) GetStatusOk() (ret ErrorResponseGetStatusRetType, ok bool) {
- return getErrorResponseGetStatusAttributeTypeOk(o.Status)
-}
-
-// SetStatus sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ErrorResponse) SetStatus(v ErrorResponseGetStatusRetType) {
- setErrorResponseGetStatusAttributeType(&o.Status, v)
-}
-
-// GetTimeStamp returns the TimeStamp field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ErrorResponse) GetTimeStamp() (ret ErrorResponseGetTimeStampRetType) {
- ret, _ = o.GetTimeStampOk()
- return ret
-}
-
-// GetTimeStampOk returns a tuple with the TimeStamp field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ErrorResponse) GetTimeStampOk() (ret ErrorResponseGetTimeStampRetType, ok bool) {
- return getErrorResponseGetTimeStampAttributeTypeOk(o.TimeStamp)
-}
-
-// SetTimeStamp sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ErrorResponse) SetTimeStamp(v ErrorResponseGetTimeStampRetType) {
- setErrorResponseGetTimeStampAttributeType(&o.TimeStamp, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o ErrorResponse) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getErrorResponseGetErrorAttributeTypeOk(o.Error); ok {
- toSerialize["Error"] = val
- }
- if val, ok := getErrorResponseGetMessageAttributeTypeOk(o.Message); ok {
- toSerialize["Message"] = val
- }
- if val, ok := getErrorResponseGetPathAttributeTypeOk(o.Path); ok {
- toSerialize["Path"] = val
- }
- if val, ok := getErrorResponseGetStatusAttributeTypeOk(o.Status); ok {
- toSerialize["Status"] = val
- }
- if val, ok := getErrorResponseGetTimeStampAttributeTypeOk(o.TimeStamp); ok {
- toSerialize["TimeStamp"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableErrorResponse struct {
- value *ErrorResponse
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableErrorResponse) Get() *ErrorResponse {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableErrorResponse) Set(val *ErrorResponse) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableErrorResponse) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableErrorResponse) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableErrorResponse(val *ErrorResponse) *NullableErrorResponse {
- return &NullableErrorResponse{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableErrorResponse) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_error_response_test.go b/services/resourcemanager/model_error_response_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_error_response_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_folder_response.go b/services/resourcemanager/model_folder_response.go
deleted file mode 100644
index 8587878bb0..0000000000
--- a/services/resourcemanager/model_folder_response.go
+++ /dev/null
@@ -1,479 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
- "time"
-)
-
-// checks if the FolderResponse type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &FolderResponse{}
-
-/*
- types and functions for containerId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetContainerIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getFolderResponseGetContainerIdAttributeTypeOk(arg FolderResponseGetContainerIdAttributeType) (ret FolderResponseGetContainerIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setFolderResponseGetContainerIdAttributeType(arg *FolderResponseGetContainerIdAttributeType, val FolderResponseGetContainerIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetContainerIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetContainerIdRetType = string
-
-/*
- types and functions for creationTime
-*/
-
-// isDateTime
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetCreationTimeAttributeType = *time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetCreationTimeArgType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetCreationTimeRetType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getFolderResponseGetCreationTimeAttributeTypeOk(arg FolderResponseGetCreationTimeAttributeType) (ret FolderResponseGetCreationTimeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setFolderResponseGetCreationTimeAttributeType(arg *FolderResponseGetCreationTimeAttributeType, val FolderResponseGetCreationTimeRetType) {
- *arg = &val
-}
-
-/*
- types and functions for folderId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetFolderIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getFolderResponseGetFolderIdAttributeTypeOk(arg FolderResponseGetFolderIdAttributeType) (ret FolderResponseGetFolderIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setFolderResponseGetFolderIdAttributeType(arg *FolderResponseGetFolderIdAttributeType, val FolderResponseGetFolderIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetFolderIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetFolderIdRetType = string
-
-/*
- types and functions for labels
-*/
-
-// isContainer
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetLabelsAttributeType = *map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetLabelsArgType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetLabelsRetType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getFolderResponseGetLabelsAttributeTypeOk(arg FolderResponseGetLabelsAttributeType) (ret FolderResponseGetLabelsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setFolderResponseGetLabelsAttributeType(arg *FolderResponseGetLabelsAttributeType, val FolderResponseGetLabelsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for name
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetNameAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getFolderResponseGetNameAttributeTypeOk(arg FolderResponseGetNameAttributeType) (ret FolderResponseGetNameRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setFolderResponseGetNameAttributeType(arg *FolderResponseGetNameAttributeType, val FolderResponseGetNameRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetNameArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetNameRetType = string
-
-/*
- types and functions for parent
-*/
-
-// isModel
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetParentAttributeType = *Parent
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetParentArgType = Parent
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetParentRetType = Parent
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getFolderResponseGetParentAttributeTypeOk(arg FolderResponseGetParentAttributeType) (ret FolderResponseGetParentRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setFolderResponseGetParentAttributeType(arg *FolderResponseGetParentAttributeType, val FolderResponseGetParentRetType) {
- *arg = &val
-}
-
-/*
- types and functions for updateTime
-*/
-
-// isDateTime
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetUpdateTimeAttributeType = *time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetUpdateTimeArgType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponseGetUpdateTimeRetType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getFolderResponseGetUpdateTimeAttributeTypeOk(arg FolderResponseGetUpdateTimeAttributeType) (ret FolderResponseGetUpdateTimeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setFolderResponseGetUpdateTimeAttributeType(arg *FolderResponseGetUpdateTimeAttributeType, val FolderResponseGetUpdateTimeRetType) {
- *arg = &val
-}
-
-// FolderResponse struct for FolderResponse
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type FolderResponse struct {
- // Globally unique, user-friendly identifier.
- // REQUIRED
- ContainerId FolderResponseGetContainerIdAttributeType `json:"containerId" required:"true"`
- // Timestamp at which the folder was created.
- // REQUIRED
- CreationTime FolderResponseGetCreationTimeAttributeType `json:"creationTime" required:"true"`
- // Globally unique folder identifier.
- // REQUIRED
- FolderId FolderResponseGetFolderIdAttributeType `json:"folderId" required:"true"`
- // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must be between 1 and 63 characters long (excluding an optional domain prefix). Must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May be empty (\"\"). If non-empty, must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). > Note: Additional naming restrictions may apply depending on your specific organization.*
- Labels FolderResponseGetLabelsAttributeType `json:"labels,omitempty"`
- // Folder name.
- // REQUIRED
- Name FolderResponseGetNameAttributeType `json:"name" required:"true"`
- // REQUIRED
- Parent FolderResponseGetParentAttributeType `json:"parent" required:"true"`
- // Timestamp at which the folder was last modified.
- // REQUIRED
- UpdateTime FolderResponseGetUpdateTimeAttributeType `json:"updateTime" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _FolderResponse FolderResponse
-
-// NewFolderResponse instantiates a new FolderResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewFolderResponse(containerId FolderResponseGetContainerIdArgType, creationTime FolderResponseGetCreationTimeArgType, folderId FolderResponseGetFolderIdArgType, name FolderResponseGetNameArgType, parent FolderResponseGetParentArgType, updateTime FolderResponseGetUpdateTimeArgType) *FolderResponse {
- this := FolderResponse{}
- setFolderResponseGetContainerIdAttributeType(&this.ContainerId, containerId)
- setFolderResponseGetCreationTimeAttributeType(&this.CreationTime, creationTime)
- setFolderResponseGetFolderIdAttributeType(&this.FolderId, folderId)
- setFolderResponseGetNameAttributeType(&this.Name, name)
- setFolderResponseGetParentAttributeType(&this.Parent, parent)
- setFolderResponseGetUpdateTimeAttributeType(&this.UpdateTime, updateTime)
- return &this
-}
-
-// NewFolderResponseWithDefaults instantiates a new FolderResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewFolderResponseWithDefaults() *FolderResponse {
- this := FolderResponse{}
- return &this
-}
-
-// GetContainerId returns the ContainerId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) GetContainerId() (ret FolderResponseGetContainerIdRetType) {
- ret, _ = o.GetContainerIdOk()
- return ret
-}
-
-// GetContainerIdOk returns a tuple with the ContainerId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) GetContainerIdOk() (ret FolderResponseGetContainerIdRetType, ok bool) {
- return getFolderResponseGetContainerIdAttributeTypeOk(o.ContainerId)
-}
-
-// SetContainerId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) SetContainerId(v FolderResponseGetContainerIdRetType) {
- setFolderResponseGetContainerIdAttributeType(&o.ContainerId, v)
-}
-
-// GetCreationTime returns the CreationTime field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) GetCreationTime() (ret FolderResponseGetCreationTimeRetType) {
- ret, _ = o.GetCreationTimeOk()
- return ret
-}
-
-// GetCreationTimeOk returns a tuple with the CreationTime field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) GetCreationTimeOk() (ret FolderResponseGetCreationTimeRetType, ok bool) {
- return getFolderResponseGetCreationTimeAttributeTypeOk(o.CreationTime)
-}
-
-// SetCreationTime sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) SetCreationTime(v FolderResponseGetCreationTimeRetType) {
- setFolderResponseGetCreationTimeAttributeType(&o.CreationTime, v)
-}
-
-// GetFolderId returns the FolderId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) GetFolderId() (ret FolderResponseGetFolderIdRetType) {
- ret, _ = o.GetFolderIdOk()
- return ret
-}
-
-// GetFolderIdOk returns a tuple with the FolderId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) GetFolderIdOk() (ret FolderResponseGetFolderIdRetType, ok bool) {
- return getFolderResponseGetFolderIdAttributeTypeOk(o.FolderId)
-}
-
-// SetFolderId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) SetFolderId(v FolderResponseGetFolderIdRetType) {
- setFolderResponseGetFolderIdAttributeType(&o.FolderId, v)
-}
-
-// GetLabels returns the Labels field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) GetLabels() (res FolderResponseGetLabelsRetType) {
- res, _ = o.GetLabelsOk()
- return
-}
-
-// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) GetLabelsOk() (ret FolderResponseGetLabelsRetType, ok bool) {
- return getFolderResponseGetLabelsAttributeTypeOk(o.Labels)
-}
-
-// HasLabels returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) HasLabels() bool {
- _, ok := o.GetLabelsOk()
- return ok
-}
-
-// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) SetLabels(v FolderResponseGetLabelsRetType) {
- setFolderResponseGetLabelsAttributeType(&o.Labels, v)
-}
-
-// GetName returns the Name field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) GetName() (ret FolderResponseGetNameRetType) {
- ret, _ = o.GetNameOk()
- return ret
-}
-
-// GetNameOk returns a tuple with the Name field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) GetNameOk() (ret FolderResponseGetNameRetType, ok bool) {
- return getFolderResponseGetNameAttributeTypeOk(o.Name)
-}
-
-// SetName sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) SetName(v FolderResponseGetNameRetType) {
- setFolderResponseGetNameAttributeType(&o.Name, v)
-}
-
-// GetParent returns the Parent field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) GetParent() (ret FolderResponseGetParentRetType) {
- ret, _ = o.GetParentOk()
- return ret
-}
-
-// GetParentOk returns a tuple with the Parent field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) GetParentOk() (ret FolderResponseGetParentRetType, ok bool) {
- return getFolderResponseGetParentAttributeTypeOk(o.Parent)
-}
-
-// SetParent sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) SetParent(v FolderResponseGetParentRetType) {
- setFolderResponseGetParentAttributeType(&o.Parent, v)
-}
-
-// GetUpdateTime returns the UpdateTime field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) GetUpdateTime() (ret FolderResponseGetUpdateTimeRetType) {
- ret, _ = o.GetUpdateTimeOk()
- return ret
-}
-
-// GetUpdateTimeOk returns a tuple with the UpdateTime field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) GetUpdateTimeOk() (ret FolderResponseGetUpdateTimeRetType, ok bool) {
- return getFolderResponseGetUpdateTimeAttributeTypeOk(o.UpdateTime)
-}
-
-// SetUpdateTime sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *FolderResponse) SetUpdateTime(v FolderResponseGetUpdateTimeRetType) {
- setFolderResponseGetUpdateTimeAttributeType(&o.UpdateTime, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o FolderResponse) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getFolderResponseGetContainerIdAttributeTypeOk(o.ContainerId); ok {
- toSerialize["ContainerId"] = val
- }
- if val, ok := getFolderResponseGetCreationTimeAttributeTypeOk(o.CreationTime); ok {
- toSerialize["CreationTime"] = val
- }
- if val, ok := getFolderResponseGetFolderIdAttributeTypeOk(o.FolderId); ok {
- toSerialize["FolderId"] = val
- }
- if val, ok := getFolderResponseGetLabelsAttributeTypeOk(o.Labels); ok {
- toSerialize["Labels"] = val
- }
- if val, ok := getFolderResponseGetNameAttributeTypeOk(o.Name); ok {
- toSerialize["Name"] = val
- }
- if val, ok := getFolderResponseGetParentAttributeTypeOk(o.Parent); ok {
- toSerialize["Parent"] = val
- }
- if val, ok := getFolderResponseGetUpdateTimeAttributeTypeOk(o.UpdateTime); ok {
- toSerialize["UpdateTime"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableFolderResponse struct {
- value *FolderResponse
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableFolderResponse) Get() *FolderResponse {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableFolderResponse) Set(val *FolderResponse) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableFolderResponse) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableFolderResponse) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableFolderResponse(val *FolderResponse) *NullableFolderResponse {
- return &NullableFolderResponse{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableFolderResponse) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableFolderResponse) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_folder_response_test.go b/services/resourcemanager/model_folder_response_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_folder_response_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_get_folder_details_response.go b/services/resourcemanager/model_get_folder_details_response.go
deleted file mode 100644
index 04a4db8622..0000000000
--- a/services/resourcemanager/model_get_folder_details_response.go
+++ /dev/null
@@ -1,537 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
- "time"
-)
-
-// checks if the GetFolderDetailsResponse type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &GetFolderDetailsResponse{}
-
-/*
- types and functions for containerId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetContainerIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetFolderDetailsResponseGetContainerIdAttributeTypeOk(arg GetFolderDetailsResponseGetContainerIdAttributeType) (ret GetFolderDetailsResponseGetContainerIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetFolderDetailsResponseGetContainerIdAttributeType(arg *GetFolderDetailsResponseGetContainerIdAttributeType, val GetFolderDetailsResponseGetContainerIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetContainerIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetContainerIdRetType = string
-
-/*
- types and functions for creationTime
-*/
-
-// isDateTime
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetCreationTimeAttributeType = *time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetCreationTimeArgType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetCreationTimeRetType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetFolderDetailsResponseGetCreationTimeAttributeTypeOk(arg GetFolderDetailsResponseGetCreationTimeAttributeType) (ret GetFolderDetailsResponseGetCreationTimeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetFolderDetailsResponseGetCreationTimeAttributeType(arg *GetFolderDetailsResponseGetCreationTimeAttributeType, val GetFolderDetailsResponseGetCreationTimeRetType) {
- *arg = &val
-}
-
-/*
- types and functions for folderId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetFolderIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetFolderDetailsResponseGetFolderIdAttributeTypeOk(arg GetFolderDetailsResponseGetFolderIdAttributeType) (ret GetFolderDetailsResponseGetFolderIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetFolderDetailsResponseGetFolderIdAttributeType(arg *GetFolderDetailsResponseGetFolderIdAttributeType, val GetFolderDetailsResponseGetFolderIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetFolderIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetFolderIdRetType = string
-
-/*
- types and functions for labels
-*/
-
-// isContainer
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetLabelsAttributeType = *map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetLabelsArgType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetLabelsRetType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetFolderDetailsResponseGetLabelsAttributeTypeOk(arg GetFolderDetailsResponseGetLabelsAttributeType) (ret GetFolderDetailsResponseGetLabelsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetFolderDetailsResponseGetLabelsAttributeType(arg *GetFolderDetailsResponseGetLabelsAttributeType, val GetFolderDetailsResponseGetLabelsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for name
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetNameAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetFolderDetailsResponseGetNameAttributeTypeOk(arg GetFolderDetailsResponseGetNameAttributeType) (ret GetFolderDetailsResponseGetNameRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetFolderDetailsResponseGetNameAttributeType(arg *GetFolderDetailsResponseGetNameAttributeType, val GetFolderDetailsResponseGetNameRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetNameArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetNameRetType = string
-
-/*
- types and functions for parent
-*/
-
-// isModel
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetParentAttributeType = *Parent
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetParentArgType = Parent
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetParentRetType = Parent
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetFolderDetailsResponseGetParentAttributeTypeOk(arg GetFolderDetailsResponseGetParentAttributeType) (ret GetFolderDetailsResponseGetParentRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetFolderDetailsResponseGetParentAttributeType(arg *GetFolderDetailsResponseGetParentAttributeType, val GetFolderDetailsResponseGetParentRetType) {
- *arg = &val
-}
-
-/*
- types and functions for parents
-*/
-
-// isArray
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetParentsAttributeType = *[]ParentListInner
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetParentsArgType = []ParentListInner
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetParentsRetType = []ParentListInner
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetFolderDetailsResponseGetParentsAttributeTypeOk(arg GetFolderDetailsResponseGetParentsAttributeType) (ret GetFolderDetailsResponseGetParentsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetFolderDetailsResponseGetParentsAttributeType(arg *GetFolderDetailsResponseGetParentsAttributeType, val GetFolderDetailsResponseGetParentsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for updateTime
-*/
-
-// isDateTime
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetUpdateTimeAttributeType = *time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetUpdateTimeArgType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponseGetUpdateTimeRetType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetFolderDetailsResponseGetUpdateTimeAttributeTypeOk(arg GetFolderDetailsResponseGetUpdateTimeAttributeType) (ret GetFolderDetailsResponseGetUpdateTimeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetFolderDetailsResponseGetUpdateTimeAttributeType(arg *GetFolderDetailsResponseGetUpdateTimeAttributeType, val GetFolderDetailsResponseGetUpdateTimeRetType) {
- *arg = &val
-}
-
-// GetFolderDetailsResponse struct for GetFolderDetailsResponse
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetFolderDetailsResponse struct {
- // Globally unique user-friendly identifier.
- // REQUIRED
- ContainerId GetFolderDetailsResponseGetContainerIdAttributeType `json:"containerId" required:"true"`
- // Timestamp at which the folder was created.
- // REQUIRED
- CreationTime GetFolderDetailsResponseGetCreationTimeAttributeType `json:"creationTime" required:"true"`
- // Globally unique folder identifier.
- // REQUIRED
- FolderId GetFolderDetailsResponseGetFolderIdAttributeType `json:"folderId" required:"true"`
- // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must be between 1 and 63 characters long (excluding an optional domain prefix). Must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May be empty (\"\"). If non-empty, must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). > Note: Additional naming restrictions may apply depending on your specific organization.*
- Labels GetFolderDetailsResponseGetLabelsAttributeType `json:"labels,omitempty"`
- // Folder name.
- // REQUIRED
- Name GetFolderDetailsResponseGetNameAttributeType `json:"name" required:"true"`
- // REQUIRED
- Parent GetFolderDetailsResponseGetParentAttributeType `json:"parent" required:"true"`
- Parents GetFolderDetailsResponseGetParentsAttributeType `json:"parents,omitempty"`
- // Timestamp at which the folder was last modified.
- // REQUIRED
- UpdateTime GetFolderDetailsResponseGetUpdateTimeAttributeType `json:"updateTime" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _GetFolderDetailsResponse GetFolderDetailsResponse
-
-// NewGetFolderDetailsResponse instantiates a new GetFolderDetailsResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewGetFolderDetailsResponse(containerId GetFolderDetailsResponseGetContainerIdArgType, creationTime GetFolderDetailsResponseGetCreationTimeArgType, folderId GetFolderDetailsResponseGetFolderIdArgType, name GetFolderDetailsResponseGetNameArgType, parent GetFolderDetailsResponseGetParentArgType, updateTime GetFolderDetailsResponseGetUpdateTimeArgType) *GetFolderDetailsResponse {
- this := GetFolderDetailsResponse{}
- setGetFolderDetailsResponseGetContainerIdAttributeType(&this.ContainerId, containerId)
- setGetFolderDetailsResponseGetCreationTimeAttributeType(&this.CreationTime, creationTime)
- setGetFolderDetailsResponseGetFolderIdAttributeType(&this.FolderId, folderId)
- setGetFolderDetailsResponseGetNameAttributeType(&this.Name, name)
- setGetFolderDetailsResponseGetParentAttributeType(&this.Parent, parent)
- setGetFolderDetailsResponseGetUpdateTimeAttributeType(&this.UpdateTime, updateTime)
- return &this
-}
-
-// NewGetFolderDetailsResponseWithDefaults instantiates a new GetFolderDetailsResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewGetFolderDetailsResponseWithDefaults() *GetFolderDetailsResponse {
- this := GetFolderDetailsResponse{}
- return &this
-}
-
-// GetContainerId returns the ContainerId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetContainerId() (ret GetFolderDetailsResponseGetContainerIdRetType) {
- ret, _ = o.GetContainerIdOk()
- return ret
-}
-
-// GetContainerIdOk returns a tuple with the ContainerId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetContainerIdOk() (ret GetFolderDetailsResponseGetContainerIdRetType, ok bool) {
- return getGetFolderDetailsResponseGetContainerIdAttributeTypeOk(o.ContainerId)
-}
-
-// SetContainerId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) SetContainerId(v GetFolderDetailsResponseGetContainerIdRetType) {
- setGetFolderDetailsResponseGetContainerIdAttributeType(&o.ContainerId, v)
-}
-
-// GetCreationTime returns the CreationTime field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetCreationTime() (ret GetFolderDetailsResponseGetCreationTimeRetType) {
- ret, _ = o.GetCreationTimeOk()
- return ret
-}
-
-// GetCreationTimeOk returns a tuple with the CreationTime field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetCreationTimeOk() (ret GetFolderDetailsResponseGetCreationTimeRetType, ok bool) {
- return getGetFolderDetailsResponseGetCreationTimeAttributeTypeOk(o.CreationTime)
-}
-
-// SetCreationTime sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) SetCreationTime(v GetFolderDetailsResponseGetCreationTimeRetType) {
- setGetFolderDetailsResponseGetCreationTimeAttributeType(&o.CreationTime, v)
-}
-
-// GetFolderId returns the FolderId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetFolderId() (ret GetFolderDetailsResponseGetFolderIdRetType) {
- ret, _ = o.GetFolderIdOk()
- return ret
-}
-
-// GetFolderIdOk returns a tuple with the FolderId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetFolderIdOk() (ret GetFolderDetailsResponseGetFolderIdRetType, ok bool) {
- return getGetFolderDetailsResponseGetFolderIdAttributeTypeOk(o.FolderId)
-}
-
-// SetFolderId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) SetFolderId(v GetFolderDetailsResponseGetFolderIdRetType) {
- setGetFolderDetailsResponseGetFolderIdAttributeType(&o.FolderId, v)
-}
-
-// GetLabels returns the Labels field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetLabels() (res GetFolderDetailsResponseGetLabelsRetType) {
- res, _ = o.GetLabelsOk()
- return
-}
-
-// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetLabelsOk() (ret GetFolderDetailsResponseGetLabelsRetType, ok bool) {
- return getGetFolderDetailsResponseGetLabelsAttributeTypeOk(o.Labels)
-}
-
-// HasLabels returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) HasLabels() bool {
- _, ok := o.GetLabelsOk()
- return ok
-}
-
-// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) SetLabels(v GetFolderDetailsResponseGetLabelsRetType) {
- setGetFolderDetailsResponseGetLabelsAttributeType(&o.Labels, v)
-}
-
-// GetName returns the Name field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetName() (ret GetFolderDetailsResponseGetNameRetType) {
- ret, _ = o.GetNameOk()
- return ret
-}
-
-// GetNameOk returns a tuple with the Name field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetNameOk() (ret GetFolderDetailsResponseGetNameRetType, ok bool) {
- return getGetFolderDetailsResponseGetNameAttributeTypeOk(o.Name)
-}
-
-// SetName sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) SetName(v GetFolderDetailsResponseGetNameRetType) {
- setGetFolderDetailsResponseGetNameAttributeType(&o.Name, v)
-}
-
-// GetParent returns the Parent field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetParent() (ret GetFolderDetailsResponseGetParentRetType) {
- ret, _ = o.GetParentOk()
- return ret
-}
-
-// GetParentOk returns a tuple with the Parent field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetParentOk() (ret GetFolderDetailsResponseGetParentRetType, ok bool) {
- return getGetFolderDetailsResponseGetParentAttributeTypeOk(o.Parent)
-}
-
-// SetParent sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) SetParent(v GetFolderDetailsResponseGetParentRetType) {
- setGetFolderDetailsResponseGetParentAttributeType(&o.Parent, v)
-}
-
-// GetParents returns the Parents field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetParents() (res GetFolderDetailsResponseGetParentsRetType) {
- res, _ = o.GetParentsOk()
- return
-}
-
-// GetParentsOk returns a tuple with the Parents field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetParentsOk() (ret GetFolderDetailsResponseGetParentsRetType, ok bool) {
- return getGetFolderDetailsResponseGetParentsAttributeTypeOk(o.Parents)
-}
-
-// HasParents returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) HasParents() bool {
- _, ok := o.GetParentsOk()
- return ok
-}
-
-// SetParents gets a reference to the given []ParentListInner and assigns it to the Parents field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) SetParents(v GetFolderDetailsResponseGetParentsRetType) {
- setGetFolderDetailsResponseGetParentsAttributeType(&o.Parents, v)
-}
-
-// GetUpdateTime returns the UpdateTime field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetUpdateTime() (ret GetFolderDetailsResponseGetUpdateTimeRetType) {
- ret, _ = o.GetUpdateTimeOk()
- return ret
-}
-
-// GetUpdateTimeOk returns a tuple with the UpdateTime field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) GetUpdateTimeOk() (ret GetFolderDetailsResponseGetUpdateTimeRetType, ok bool) {
- return getGetFolderDetailsResponseGetUpdateTimeAttributeTypeOk(o.UpdateTime)
-}
-
-// SetUpdateTime sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetFolderDetailsResponse) SetUpdateTime(v GetFolderDetailsResponseGetUpdateTimeRetType) {
- setGetFolderDetailsResponseGetUpdateTimeAttributeType(&o.UpdateTime, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o GetFolderDetailsResponse) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getGetFolderDetailsResponseGetContainerIdAttributeTypeOk(o.ContainerId); ok {
- toSerialize["ContainerId"] = val
- }
- if val, ok := getGetFolderDetailsResponseGetCreationTimeAttributeTypeOk(o.CreationTime); ok {
- toSerialize["CreationTime"] = val
- }
- if val, ok := getGetFolderDetailsResponseGetFolderIdAttributeTypeOk(o.FolderId); ok {
- toSerialize["FolderId"] = val
- }
- if val, ok := getGetFolderDetailsResponseGetLabelsAttributeTypeOk(o.Labels); ok {
- toSerialize["Labels"] = val
- }
- if val, ok := getGetFolderDetailsResponseGetNameAttributeTypeOk(o.Name); ok {
- toSerialize["Name"] = val
- }
- if val, ok := getGetFolderDetailsResponseGetParentAttributeTypeOk(o.Parent); ok {
- toSerialize["Parent"] = val
- }
- if val, ok := getGetFolderDetailsResponseGetParentsAttributeTypeOk(o.Parents); ok {
- toSerialize["Parents"] = val
- }
- if val, ok := getGetFolderDetailsResponseGetUpdateTimeAttributeTypeOk(o.UpdateTime); ok {
- toSerialize["UpdateTime"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableGetFolderDetailsResponse struct {
- value *GetFolderDetailsResponse
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableGetFolderDetailsResponse) Get() *GetFolderDetailsResponse {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableGetFolderDetailsResponse) Set(val *GetFolderDetailsResponse) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableGetFolderDetailsResponse) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableGetFolderDetailsResponse) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableGetFolderDetailsResponse(val *GetFolderDetailsResponse) *NullableGetFolderDetailsResponse {
- return &NullableGetFolderDetailsResponse{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableGetFolderDetailsResponse) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableGetFolderDetailsResponse) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_get_folder_details_response_test.go b/services/resourcemanager/model_get_folder_details_response_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_get_folder_details_response_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_get_project_response.go b/services/resourcemanager/model_get_project_response.go
deleted file mode 100644
index 23da1c66cb..0000000000
--- a/services/resourcemanager/model_get_project_response.go
+++ /dev/null
@@ -1,590 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
- "time"
-)
-
-// checks if the GetProjectResponse type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &GetProjectResponse{}
-
-/*
- types and functions for containerId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetContainerIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetProjectResponseGetContainerIdAttributeTypeOk(arg GetProjectResponseGetContainerIdAttributeType) (ret GetProjectResponseGetContainerIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetProjectResponseGetContainerIdAttributeType(arg *GetProjectResponseGetContainerIdAttributeType, val GetProjectResponseGetContainerIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetContainerIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetContainerIdRetType = string
-
-/*
- types and functions for creationTime
-*/
-
-// isDateTime
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetCreationTimeAttributeType = *time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetCreationTimeArgType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetCreationTimeRetType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetProjectResponseGetCreationTimeAttributeTypeOk(arg GetProjectResponseGetCreationTimeAttributeType) (ret GetProjectResponseGetCreationTimeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetProjectResponseGetCreationTimeAttributeType(arg *GetProjectResponseGetCreationTimeAttributeType, val GetProjectResponseGetCreationTimeRetType) {
- *arg = &val
-}
-
-/*
- types and functions for labels
-*/
-
-// isContainer
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetLabelsAttributeType = *map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetLabelsArgType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetLabelsRetType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetProjectResponseGetLabelsAttributeTypeOk(arg GetProjectResponseGetLabelsAttributeType) (ret GetProjectResponseGetLabelsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetProjectResponseGetLabelsAttributeType(arg *GetProjectResponseGetLabelsAttributeType, val GetProjectResponseGetLabelsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for lifecycleState
-*/
-
-// isEnumRef
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetLifecycleStateAttributeType = *LifecycleState
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetLifecycleStateArgType = LifecycleState
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetLifecycleStateRetType = LifecycleState
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetProjectResponseGetLifecycleStateAttributeTypeOk(arg GetProjectResponseGetLifecycleStateAttributeType) (ret GetProjectResponseGetLifecycleStateRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetProjectResponseGetLifecycleStateAttributeType(arg *GetProjectResponseGetLifecycleStateAttributeType, val GetProjectResponseGetLifecycleStateRetType) {
- *arg = &val
-}
-
-/*
- types and functions for name
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetNameAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetProjectResponseGetNameAttributeTypeOk(arg GetProjectResponseGetNameAttributeType) (ret GetProjectResponseGetNameRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetProjectResponseGetNameAttributeType(arg *GetProjectResponseGetNameAttributeType, val GetProjectResponseGetNameRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetNameArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetNameRetType = string
-
-/*
- types and functions for parent
-*/
-
-// isModel
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetParentAttributeType = *Parent
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetParentArgType = Parent
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetParentRetType = Parent
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetProjectResponseGetParentAttributeTypeOk(arg GetProjectResponseGetParentAttributeType) (ret GetProjectResponseGetParentRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetProjectResponseGetParentAttributeType(arg *GetProjectResponseGetParentAttributeType, val GetProjectResponseGetParentRetType) {
- *arg = &val
-}
-
-/*
- types and functions for parents
-*/
-
-// isArray
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetParentsAttributeType = *[]ParentListInner
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetParentsArgType = []ParentListInner
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetParentsRetType = []ParentListInner
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetProjectResponseGetParentsAttributeTypeOk(arg GetProjectResponseGetParentsAttributeType) (ret GetProjectResponseGetParentsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetProjectResponseGetParentsAttributeType(arg *GetProjectResponseGetParentsAttributeType, val GetProjectResponseGetParentsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for projectId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetProjectIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetProjectResponseGetProjectIdAttributeTypeOk(arg GetProjectResponseGetProjectIdAttributeType) (ret GetProjectResponseGetProjectIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetProjectResponseGetProjectIdAttributeType(arg *GetProjectResponseGetProjectIdAttributeType, val GetProjectResponseGetProjectIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetProjectIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetProjectIdRetType = string
-
-/*
- types and functions for updateTime
-*/
-
-// isDateTime
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetUpdateTimeAttributeType = *time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetUpdateTimeArgType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponseGetUpdateTimeRetType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getGetProjectResponseGetUpdateTimeAttributeTypeOk(arg GetProjectResponseGetUpdateTimeAttributeType) (ret GetProjectResponseGetUpdateTimeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setGetProjectResponseGetUpdateTimeAttributeType(arg *GetProjectResponseGetUpdateTimeAttributeType, val GetProjectResponseGetUpdateTimeRetType) {
- *arg = &val
-}
-
-// GetProjectResponse struct for GetProjectResponse
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type GetProjectResponse struct {
- // Globally unique identifier.
- // REQUIRED
- ContainerId GetProjectResponseGetContainerIdAttributeType `json:"containerId" required:"true"`
- // Timestamp at which the project was created.
- // REQUIRED
- CreationTime GetProjectResponseGetCreationTimeAttributeType `json:"creationTime" required:"true"`
- // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must be between 1 and 63 characters long (excluding an optional domain prefix). Must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May be empty (\"\"). If non-empty, must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). > Note: Additional naming restrictions may apply depending on your specific organization.*
- Labels GetProjectResponseGetLabelsAttributeType `json:"labels,omitempty"`
- // REQUIRED
- LifecycleState GetProjectResponseGetLifecycleStateAttributeType `json:"lifecycleState" required:"true"`
- // Project name.
- // REQUIRED
- Name GetProjectResponseGetNameAttributeType `json:"name" required:"true"`
- // REQUIRED
- Parent GetProjectResponseGetParentAttributeType `json:"parent" required:"true"`
- Parents GetProjectResponseGetParentsAttributeType `json:"parents,omitempty"`
- // Globally unique identifier.
- // REQUIRED
- ProjectId GetProjectResponseGetProjectIdAttributeType `json:"projectId" required:"true"`
- // Timestamp at which the project was last modified.
- // REQUIRED
- UpdateTime GetProjectResponseGetUpdateTimeAttributeType `json:"updateTime" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _GetProjectResponse GetProjectResponse
-
-// NewGetProjectResponse instantiates a new GetProjectResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewGetProjectResponse(containerId GetProjectResponseGetContainerIdArgType, creationTime GetProjectResponseGetCreationTimeArgType, lifecycleState GetProjectResponseGetLifecycleStateArgType, name GetProjectResponseGetNameArgType, parent GetProjectResponseGetParentArgType, projectId GetProjectResponseGetProjectIdArgType, updateTime GetProjectResponseGetUpdateTimeArgType) *GetProjectResponse {
- this := GetProjectResponse{}
- setGetProjectResponseGetContainerIdAttributeType(&this.ContainerId, containerId)
- setGetProjectResponseGetCreationTimeAttributeType(&this.CreationTime, creationTime)
- setGetProjectResponseGetLifecycleStateAttributeType(&this.LifecycleState, lifecycleState)
- setGetProjectResponseGetNameAttributeType(&this.Name, name)
- setGetProjectResponseGetParentAttributeType(&this.Parent, parent)
- setGetProjectResponseGetProjectIdAttributeType(&this.ProjectId, projectId)
- setGetProjectResponseGetUpdateTimeAttributeType(&this.UpdateTime, updateTime)
- return &this
-}
-
-// NewGetProjectResponseWithDefaults instantiates a new GetProjectResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewGetProjectResponseWithDefaults() *GetProjectResponse {
- this := GetProjectResponse{}
- return &this
-}
-
-// GetContainerId returns the ContainerId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetContainerId() (ret GetProjectResponseGetContainerIdRetType) {
- ret, _ = o.GetContainerIdOk()
- return ret
-}
-
-// GetContainerIdOk returns a tuple with the ContainerId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetContainerIdOk() (ret GetProjectResponseGetContainerIdRetType, ok bool) {
- return getGetProjectResponseGetContainerIdAttributeTypeOk(o.ContainerId)
-}
-
-// SetContainerId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) SetContainerId(v GetProjectResponseGetContainerIdRetType) {
- setGetProjectResponseGetContainerIdAttributeType(&o.ContainerId, v)
-}
-
-// GetCreationTime returns the CreationTime field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetCreationTime() (ret GetProjectResponseGetCreationTimeRetType) {
- ret, _ = o.GetCreationTimeOk()
- return ret
-}
-
-// GetCreationTimeOk returns a tuple with the CreationTime field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetCreationTimeOk() (ret GetProjectResponseGetCreationTimeRetType, ok bool) {
- return getGetProjectResponseGetCreationTimeAttributeTypeOk(o.CreationTime)
-}
-
-// SetCreationTime sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) SetCreationTime(v GetProjectResponseGetCreationTimeRetType) {
- setGetProjectResponseGetCreationTimeAttributeType(&o.CreationTime, v)
-}
-
-// GetLabels returns the Labels field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetLabels() (res GetProjectResponseGetLabelsRetType) {
- res, _ = o.GetLabelsOk()
- return
-}
-
-// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetLabelsOk() (ret GetProjectResponseGetLabelsRetType, ok bool) {
- return getGetProjectResponseGetLabelsAttributeTypeOk(o.Labels)
-}
-
-// HasLabels returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) HasLabels() bool {
- _, ok := o.GetLabelsOk()
- return ok
-}
-
-// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) SetLabels(v GetProjectResponseGetLabelsRetType) {
- setGetProjectResponseGetLabelsAttributeType(&o.Labels, v)
-}
-
-// GetLifecycleState returns the LifecycleState field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetLifecycleState() (ret GetProjectResponseGetLifecycleStateRetType) {
- ret, _ = o.GetLifecycleStateOk()
- return ret
-}
-
-// GetLifecycleStateOk returns a tuple with the LifecycleState field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetLifecycleStateOk() (ret GetProjectResponseGetLifecycleStateRetType, ok bool) {
- return getGetProjectResponseGetLifecycleStateAttributeTypeOk(o.LifecycleState)
-}
-
-// SetLifecycleState sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) SetLifecycleState(v GetProjectResponseGetLifecycleStateRetType) {
- setGetProjectResponseGetLifecycleStateAttributeType(&o.LifecycleState, v)
-}
-
-// GetName returns the Name field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetName() (ret GetProjectResponseGetNameRetType) {
- ret, _ = o.GetNameOk()
- return ret
-}
-
-// GetNameOk returns a tuple with the Name field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetNameOk() (ret GetProjectResponseGetNameRetType, ok bool) {
- return getGetProjectResponseGetNameAttributeTypeOk(o.Name)
-}
-
-// SetName sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) SetName(v GetProjectResponseGetNameRetType) {
- setGetProjectResponseGetNameAttributeType(&o.Name, v)
-}
-
-// GetParent returns the Parent field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetParent() (ret GetProjectResponseGetParentRetType) {
- ret, _ = o.GetParentOk()
- return ret
-}
-
-// GetParentOk returns a tuple with the Parent field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetParentOk() (ret GetProjectResponseGetParentRetType, ok bool) {
- return getGetProjectResponseGetParentAttributeTypeOk(o.Parent)
-}
-
-// SetParent sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) SetParent(v GetProjectResponseGetParentRetType) {
- setGetProjectResponseGetParentAttributeType(&o.Parent, v)
-}
-
-// GetParents returns the Parents field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetParents() (res GetProjectResponseGetParentsRetType) {
- res, _ = o.GetParentsOk()
- return
-}
-
-// GetParentsOk returns a tuple with the Parents field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetParentsOk() (ret GetProjectResponseGetParentsRetType, ok bool) {
- return getGetProjectResponseGetParentsAttributeTypeOk(o.Parents)
-}
-
-// HasParents returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) HasParents() bool {
- _, ok := o.GetParentsOk()
- return ok
-}
-
-// SetParents gets a reference to the given []ParentListInner and assigns it to the Parents field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) SetParents(v GetProjectResponseGetParentsRetType) {
- setGetProjectResponseGetParentsAttributeType(&o.Parents, v)
-}
-
-// GetProjectId returns the ProjectId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetProjectId() (ret GetProjectResponseGetProjectIdRetType) {
- ret, _ = o.GetProjectIdOk()
- return ret
-}
-
-// GetProjectIdOk returns a tuple with the ProjectId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetProjectIdOk() (ret GetProjectResponseGetProjectIdRetType, ok bool) {
- return getGetProjectResponseGetProjectIdAttributeTypeOk(o.ProjectId)
-}
-
-// SetProjectId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) SetProjectId(v GetProjectResponseGetProjectIdRetType) {
- setGetProjectResponseGetProjectIdAttributeType(&o.ProjectId, v)
-}
-
-// GetUpdateTime returns the UpdateTime field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetUpdateTime() (ret GetProjectResponseGetUpdateTimeRetType) {
- ret, _ = o.GetUpdateTimeOk()
- return ret
-}
-
-// GetUpdateTimeOk returns a tuple with the UpdateTime field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) GetUpdateTimeOk() (ret GetProjectResponseGetUpdateTimeRetType, ok bool) {
- return getGetProjectResponseGetUpdateTimeAttributeTypeOk(o.UpdateTime)
-}
-
-// SetUpdateTime sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *GetProjectResponse) SetUpdateTime(v GetProjectResponseGetUpdateTimeRetType) {
- setGetProjectResponseGetUpdateTimeAttributeType(&o.UpdateTime, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o GetProjectResponse) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getGetProjectResponseGetContainerIdAttributeTypeOk(o.ContainerId); ok {
- toSerialize["ContainerId"] = val
- }
- if val, ok := getGetProjectResponseGetCreationTimeAttributeTypeOk(o.CreationTime); ok {
- toSerialize["CreationTime"] = val
- }
- if val, ok := getGetProjectResponseGetLabelsAttributeTypeOk(o.Labels); ok {
- toSerialize["Labels"] = val
- }
- if val, ok := getGetProjectResponseGetLifecycleStateAttributeTypeOk(o.LifecycleState); ok {
- toSerialize["LifecycleState"] = val
- }
- if val, ok := getGetProjectResponseGetNameAttributeTypeOk(o.Name); ok {
- toSerialize["Name"] = val
- }
- if val, ok := getGetProjectResponseGetParentAttributeTypeOk(o.Parent); ok {
- toSerialize["Parent"] = val
- }
- if val, ok := getGetProjectResponseGetParentsAttributeTypeOk(o.Parents); ok {
- toSerialize["Parents"] = val
- }
- if val, ok := getGetProjectResponseGetProjectIdAttributeTypeOk(o.ProjectId); ok {
- toSerialize["ProjectId"] = val
- }
- if val, ok := getGetProjectResponseGetUpdateTimeAttributeTypeOk(o.UpdateTime); ok {
- toSerialize["UpdateTime"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableGetProjectResponse struct {
- value *GetProjectResponse
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableGetProjectResponse) Get() *GetProjectResponse {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableGetProjectResponse) Set(val *GetProjectResponse) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableGetProjectResponse) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableGetProjectResponse) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableGetProjectResponse(val *GetProjectResponse) *NullableGetProjectResponse {
- return &NullableGetProjectResponse{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableGetProjectResponse) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableGetProjectResponse) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_get_project_response_test.go b/services/resourcemanager/model_get_project_response_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_get_project_response_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_lifecycle_state.go b/services/resourcemanager/model_lifecycle_state.go
deleted file mode 100644
index cad3974fdb..0000000000
--- a/services/resourcemanager/model_lifecycle_state.go
+++ /dev/null
@@ -1,138 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// LifecycleState Lifecycle state of the resource container. | LIFECYCLE STATE | DESCRIPTION | |----------|--------------------| | CREATING | The creation process has been triggered. The state remains until resource manager gets notified about successful process completion. | | ACTIVE | Resource container can be fully used. | | INACTIVE | Resource container usage has been disabled. | | DELETING | The deletion process has been triggered. The state remains until resource manager gets notified about successful process completion. Afterwards, the record will be deleted. |
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type LifecycleState string
-
-// List of LifecycleState
-const (
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- LIFECYCLESTATE_CREATING LifecycleState = "CREATING"
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- LIFECYCLESTATE_ACTIVE LifecycleState = "ACTIVE"
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- LIFECYCLESTATE_DELETING LifecycleState = "DELETING"
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- LIFECYCLESTATE_INACTIVE LifecycleState = "INACTIVE"
-)
-
-// All allowed values of LifecycleState enum
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-var AllowedLifecycleStateEnumValues = []LifecycleState{
- "CREATING",
- "ACTIVE",
- "DELETING",
- "INACTIVE",
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *LifecycleState) UnmarshalJSON(src []byte) error {
- var value string
- err := json.Unmarshal(src, &value)
- if err != nil {
- return err
- }
- // Allow unmarshalling zero value for testing purposes
- var zeroValue string
- if value == zeroValue {
- return nil
- }
- enumTypeValue := LifecycleState(value)
- for _, existing := range AllowedLifecycleStateEnumValues {
- if existing == enumTypeValue {
- *v = enumTypeValue
- return nil
- }
- }
-
- return fmt.Errorf("%+v is not a valid LifecycleState", value)
-}
-
-// NewLifecycleStateFromValue returns a pointer to a valid LifecycleState
-// for the value passed as argument, or an error if the value passed is not allowed by the enum
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewLifecycleStateFromValue(v string) (*LifecycleState, error) {
- ev := LifecycleState(v)
- if ev.IsValid() {
- return &ev, nil
- } else {
- return nil, fmt.Errorf("invalid value '%v' for LifecycleState: valid values are %v", v, AllowedLifecycleStateEnumValues)
- }
-}
-
-// IsValid return true if the value is valid for the enum, false otherwise
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v LifecycleState) IsValid() bool {
- for _, existing := range AllowedLifecycleStateEnumValues {
- if existing == v {
- return true
- }
- }
- return false
-}
-
-// Ptr returns reference to LifecycleState value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v LifecycleState) Ptr() *LifecycleState {
- return &v
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableLifecycleState struct {
- value *LifecycleState
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableLifecycleState) Get() *LifecycleState {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableLifecycleState) Set(val *LifecycleState) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableLifecycleState) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableLifecycleState) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableLifecycleState(val *LifecycleState) *NullableLifecycleState {
- return &NullableLifecycleState{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableLifecycleState) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableLifecycleState) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_lifecycle_state_test.go b/services/resourcemanager/model_lifecycle_state_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_lifecycle_state_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_list_folders_response.go b/services/resourcemanager/model_list_folders_response.go
deleted file mode 100644
index cff142fea4..0000000000
--- a/services/resourcemanager/model_list_folders_response.go
+++ /dev/null
@@ -1,261 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
-)
-
-// checks if the ListFoldersResponse type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &ListFoldersResponse{}
-
-/*
- types and functions for items
-*/
-
-// isArray
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseGetItemsAttributeType = *[]ListFoldersResponseItemsInner
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseGetItemsArgType = []ListFoldersResponseItemsInner
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseGetItemsRetType = []ListFoldersResponseItemsInner
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListFoldersResponseGetItemsAttributeTypeOk(arg ListFoldersResponseGetItemsAttributeType) (ret ListFoldersResponseGetItemsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListFoldersResponseGetItemsAttributeType(arg *ListFoldersResponseGetItemsAttributeType, val ListFoldersResponseGetItemsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for limit
-*/
-
-// isNumber
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseGetLimitAttributeType = *float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseGetLimitArgType = float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseGetLimitRetType = float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListFoldersResponseGetLimitAttributeTypeOk(arg ListFoldersResponseGetLimitAttributeType) (ret ListFoldersResponseGetLimitRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListFoldersResponseGetLimitAttributeType(arg *ListFoldersResponseGetLimitAttributeType, val ListFoldersResponseGetLimitRetType) {
- *arg = &val
-}
-
-/*
- types and functions for offset
-*/
-
-// isNumber
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseGetOffsetAttributeType = *float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseGetOffsetArgType = float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseGetOffsetRetType = float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListFoldersResponseGetOffsetAttributeTypeOk(arg ListFoldersResponseGetOffsetAttributeType) (ret ListFoldersResponseGetOffsetRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListFoldersResponseGetOffsetAttributeType(arg *ListFoldersResponseGetOffsetAttributeType, val ListFoldersResponseGetOffsetRetType) {
- *arg = &val
-}
-
-// ListFoldersResponse struct for ListFoldersResponse
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponse struct {
- // REQUIRED
- Items ListFoldersResponseGetItemsAttributeType `json:"items" required:"true"`
- // The maximum number of projects to return in the response. If not present, an appropriate default will be used.
- // REQUIRED
- Limit ListFoldersResponseGetLimitAttributeType `json:"limit" required:"true"`
- // The offset of the first item in the collection to return.
- // REQUIRED
- Offset ListFoldersResponseGetOffsetAttributeType `json:"offset" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _ListFoldersResponse ListFoldersResponse
-
-// NewListFoldersResponse instantiates a new ListFoldersResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewListFoldersResponse(items ListFoldersResponseGetItemsArgType, limit ListFoldersResponseGetLimitArgType, offset ListFoldersResponseGetOffsetArgType) *ListFoldersResponse {
- this := ListFoldersResponse{}
- setListFoldersResponseGetItemsAttributeType(&this.Items, items)
- setListFoldersResponseGetLimitAttributeType(&this.Limit, limit)
- setListFoldersResponseGetOffsetAttributeType(&this.Offset, offset)
- return &this
-}
-
-// NewListFoldersResponseWithDefaults instantiates a new ListFoldersResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewListFoldersResponseWithDefaults() *ListFoldersResponse {
- this := ListFoldersResponse{}
- var limit float64 = 50
- this.Limit = &limit
- var offset float64 = 0
- this.Offset = &offset
- return &this
-}
-
-// GetItems returns the Items field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponse) GetItems() (ret ListFoldersResponseGetItemsRetType) {
- ret, _ = o.GetItemsOk()
- return ret
-}
-
-// GetItemsOk returns a tuple with the Items field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponse) GetItemsOk() (ret ListFoldersResponseGetItemsRetType, ok bool) {
- return getListFoldersResponseGetItemsAttributeTypeOk(o.Items)
-}
-
-// SetItems sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponse) SetItems(v ListFoldersResponseGetItemsRetType) {
- setListFoldersResponseGetItemsAttributeType(&o.Items, v)
-}
-
-// GetLimit returns the Limit field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponse) GetLimit() (ret ListFoldersResponseGetLimitRetType) {
- ret, _ = o.GetLimitOk()
- return ret
-}
-
-// GetLimitOk returns a tuple with the Limit field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponse) GetLimitOk() (ret ListFoldersResponseGetLimitRetType, ok bool) {
- return getListFoldersResponseGetLimitAttributeTypeOk(o.Limit)
-}
-
-// SetLimit sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponse) SetLimit(v ListFoldersResponseGetLimitRetType) {
- setListFoldersResponseGetLimitAttributeType(&o.Limit, v)
-}
-
-// GetOffset returns the Offset field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponse) GetOffset() (ret ListFoldersResponseGetOffsetRetType) {
- ret, _ = o.GetOffsetOk()
- return ret
-}
-
-// GetOffsetOk returns a tuple with the Offset field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponse) GetOffsetOk() (ret ListFoldersResponseGetOffsetRetType, ok bool) {
- return getListFoldersResponseGetOffsetAttributeTypeOk(o.Offset)
-}
-
-// SetOffset sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponse) SetOffset(v ListFoldersResponseGetOffsetRetType) {
- setListFoldersResponseGetOffsetAttributeType(&o.Offset, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o ListFoldersResponse) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getListFoldersResponseGetItemsAttributeTypeOk(o.Items); ok {
- toSerialize["Items"] = val
- }
- if val, ok := getListFoldersResponseGetLimitAttributeTypeOk(o.Limit); ok {
- toSerialize["Limit"] = val
- }
- if val, ok := getListFoldersResponseGetOffsetAttributeTypeOk(o.Offset); ok {
- toSerialize["Offset"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableListFoldersResponse struct {
- value *ListFoldersResponse
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableListFoldersResponse) Get() *ListFoldersResponse {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableListFoldersResponse) Set(val *ListFoldersResponse) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableListFoldersResponse) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableListFoldersResponse) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableListFoldersResponse(val *ListFoldersResponse) *NullableListFoldersResponse {
- return &NullableListFoldersResponse{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableListFoldersResponse) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableListFoldersResponse) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_list_folders_response_items_inner.go b/services/resourcemanager/model_list_folders_response_items_inner.go
deleted file mode 100644
index 172ad2fbae..0000000000
--- a/services/resourcemanager/model_list_folders_response_items_inner.go
+++ /dev/null
@@ -1,479 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
- "time"
-)
-
-// checks if the ListFoldersResponseItemsInner type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &ListFoldersResponseItemsInner{}
-
-/*
- types and functions for containerId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetContainerIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListFoldersResponseItemsInnerGetContainerIdAttributeTypeOk(arg ListFoldersResponseItemsInnerGetContainerIdAttributeType) (ret ListFoldersResponseItemsInnerGetContainerIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListFoldersResponseItemsInnerGetContainerIdAttributeType(arg *ListFoldersResponseItemsInnerGetContainerIdAttributeType, val ListFoldersResponseItemsInnerGetContainerIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetContainerIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetContainerIdRetType = string
-
-/*
- types and functions for creationTime
-*/
-
-// isDateTime
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetCreationTimeAttributeType = *time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetCreationTimeArgType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetCreationTimeRetType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListFoldersResponseItemsInnerGetCreationTimeAttributeTypeOk(arg ListFoldersResponseItemsInnerGetCreationTimeAttributeType) (ret ListFoldersResponseItemsInnerGetCreationTimeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListFoldersResponseItemsInnerGetCreationTimeAttributeType(arg *ListFoldersResponseItemsInnerGetCreationTimeAttributeType, val ListFoldersResponseItemsInnerGetCreationTimeRetType) {
- *arg = &val
-}
-
-/*
- types and functions for folderId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetFolderIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListFoldersResponseItemsInnerGetFolderIdAttributeTypeOk(arg ListFoldersResponseItemsInnerGetFolderIdAttributeType) (ret ListFoldersResponseItemsInnerGetFolderIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListFoldersResponseItemsInnerGetFolderIdAttributeType(arg *ListFoldersResponseItemsInnerGetFolderIdAttributeType, val ListFoldersResponseItemsInnerGetFolderIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetFolderIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetFolderIdRetType = string
-
-/*
- types and functions for labels
-*/
-
-// isContainer
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetLabelsAttributeType = *map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetLabelsArgType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetLabelsRetType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListFoldersResponseItemsInnerGetLabelsAttributeTypeOk(arg ListFoldersResponseItemsInnerGetLabelsAttributeType) (ret ListFoldersResponseItemsInnerGetLabelsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListFoldersResponseItemsInnerGetLabelsAttributeType(arg *ListFoldersResponseItemsInnerGetLabelsAttributeType, val ListFoldersResponseItemsInnerGetLabelsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for name
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetNameAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListFoldersResponseItemsInnerGetNameAttributeTypeOk(arg ListFoldersResponseItemsInnerGetNameAttributeType) (ret ListFoldersResponseItemsInnerGetNameRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListFoldersResponseItemsInnerGetNameAttributeType(arg *ListFoldersResponseItemsInnerGetNameAttributeType, val ListFoldersResponseItemsInnerGetNameRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetNameArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetNameRetType = string
-
-/*
- types and functions for parent
-*/
-
-// isModel
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetParentAttributeType = *Parent
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetParentArgType = Parent
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetParentRetType = Parent
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListFoldersResponseItemsInnerGetParentAttributeTypeOk(arg ListFoldersResponseItemsInnerGetParentAttributeType) (ret ListFoldersResponseItemsInnerGetParentRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListFoldersResponseItemsInnerGetParentAttributeType(arg *ListFoldersResponseItemsInnerGetParentAttributeType, val ListFoldersResponseItemsInnerGetParentRetType) {
- *arg = &val
-}
-
-/*
- types and functions for updateTime
-*/
-
-// isDateTime
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetUpdateTimeAttributeType = *time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetUpdateTimeArgType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInnerGetUpdateTimeRetType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListFoldersResponseItemsInnerGetUpdateTimeAttributeTypeOk(arg ListFoldersResponseItemsInnerGetUpdateTimeAttributeType) (ret ListFoldersResponseItemsInnerGetUpdateTimeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListFoldersResponseItemsInnerGetUpdateTimeAttributeType(arg *ListFoldersResponseItemsInnerGetUpdateTimeAttributeType, val ListFoldersResponseItemsInnerGetUpdateTimeRetType) {
- *arg = &val
-}
-
-// ListFoldersResponseItemsInner struct for ListFoldersResponseItemsInner
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListFoldersResponseItemsInner struct {
- // Globally unique folder identifier.
- // REQUIRED
- ContainerId ListFoldersResponseItemsInnerGetContainerIdAttributeType `json:"containerId" required:"true"`
- // Timestamp at which the folder was created.
- // REQUIRED
- CreationTime ListFoldersResponseItemsInnerGetCreationTimeAttributeType `json:"creationTime" required:"true"`
- // Globally unique folder identifier.
- // REQUIRED
- FolderId ListFoldersResponseItemsInnerGetFolderIdAttributeType `json:"folderId" required:"true"`
- // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must be between 1 and 63 characters long (excluding an optional domain prefix). Must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May be empty (\"\"). If non-empty, must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). > Note: Additional naming restrictions may apply depending on your specific organization.*
- Labels ListFoldersResponseItemsInnerGetLabelsAttributeType `json:"labels,omitempty"`
- // Name of the folder.
- // REQUIRED
- Name ListFoldersResponseItemsInnerGetNameAttributeType `json:"name" required:"true"`
- // REQUIRED
- Parent ListFoldersResponseItemsInnerGetParentAttributeType `json:"parent" required:"true"`
- // Timestamp at which the folder was created.
- // REQUIRED
- UpdateTime ListFoldersResponseItemsInnerGetUpdateTimeAttributeType `json:"updateTime" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _ListFoldersResponseItemsInner ListFoldersResponseItemsInner
-
-// NewListFoldersResponseItemsInner instantiates a new ListFoldersResponseItemsInner 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewListFoldersResponseItemsInner(containerId ListFoldersResponseItemsInnerGetContainerIdArgType, creationTime ListFoldersResponseItemsInnerGetCreationTimeArgType, folderId ListFoldersResponseItemsInnerGetFolderIdArgType, name ListFoldersResponseItemsInnerGetNameArgType, parent ListFoldersResponseItemsInnerGetParentArgType, updateTime ListFoldersResponseItemsInnerGetUpdateTimeArgType) *ListFoldersResponseItemsInner {
- this := ListFoldersResponseItemsInner{}
- setListFoldersResponseItemsInnerGetContainerIdAttributeType(&this.ContainerId, containerId)
- setListFoldersResponseItemsInnerGetCreationTimeAttributeType(&this.CreationTime, creationTime)
- setListFoldersResponseItemsInnerGetFolderIdAttributeType(&this.FolderId, folderId)
- setListFoldersResponseItemsInnerGetNameAttributeType(&this.Name, name)
- setListFoldersResponseItemsInnerGetParentAttributeType(&this.Parent, parent)
- setListFoldersResponseItemsInnerGetUpdateTimeAttributeType(&this.UpdateTime, updateTime)
- return &this
-}
-
-// NewListFoldersResponseItemsInnerWithDefaults instantiates a new ListFoldersResponseItemsInner 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewListFoldersResponseItemsInnerWithDefaults() *ListFoldersResponseItemsInner {
- this := ListFoldersResponseItemsInner{}
- return &this
-}
-
-// GetContainerId returns the ContainerId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) GetContainerId() (ret ListFoldersResponseItemsInnerGetContainerIdRetType) {
- ret, _ = o.GetContainerIdOk()
- return ret
-}
-
-// GetContainerIdOk returns a tuple with the ContainerId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) GetContainerIdOk() (ret ListFoldersResponseItemsInnerGetContainerIdRetType, ok bool) {
- return getListFoldersResponseItemsInnerGetContainerIdAttributeTypeOk(o.ContainerId)
-}
-
-// SetContainerId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) SetContainerId(v ListFoldersResponseItemsInnerGetContainerIdRetType) {
- setListFoldersResponseItemsInnerGetContainerIdAttributeType(&o.ContainerId, v)
-}
-
-// GetCreationTime returns the CreationTime field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) GetCreationTime() (ret ListFoldersResponseItemsInnerGetCreationTimeRetType) {
- ret, _ = o.GetCreationTimeOk()
- return ret
-}
-
-// GetCreationTimeOk returns a tuple with the CreationTime field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) GetCreationTimeOk() (ret ListFoldersResponseItemsInnerGetCreationTimeRetType, ok bool) {
- return getListFoldersResponseItemsInnerGetCreationTimeAttributeTypeOk(o.CreationTime)
-}
-
-// SetCreationTime sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) SetCreationTime(v ListFoldersResponseItemsInnerGetCreationTimeRetType) {
- setListFoldersResponseItemsInnerGetCreationTimeAttributeType(&o.CreationTime, v)
-}
-
-// GetFolderId returns the FolderId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) GetFolderId() (ret ListFoldersResponseItemsInnerGetFolderIdRetType) {
- ret, _ = o.GetFolderIdOk()
- return ret
-}
-
-// GetFolderIdOk returns a tuple with the FolderId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) GetFolderIdOk() (ret ListFoldersResponseItemsInnerGetFolderIdRetType, ok bool) {
- return getListFoldersResponseItemsInnerGetFolderIdAttributeTypeOk(o.FolderId)
-}
-
-// SetFolderId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) SetFolderId(v ListFoldersResponseItemsInnerGetFolderIdRetType) {
- setListFoldersResponseItemsInnerGetFolderIdAttributeType(&o.FolderId, v)
-}
-
-// GetLabels returns the Labels field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) GetLabels() (res ListFoldersResponseItemsInnerGetLabelsRetType) {
- res, _ = o.GetLabelsOk()
- return
-}
-
-// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) GetLabelsOk() (ret ListFoldersResponseItemsInnerGetLabelsRetType, ok bool) {
- return getListFoldersResponseItemsInnerGetLabelsAttributeTypeOk(o.Labels)
-}
-
-// HasLabels returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) HasLabels() bool {
- _, ok := o.GetLabelsOk()
- return ok
-}
-
-// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) SetLabels(v ListFoldersResponseItemsInnerGetLabelsRetType) {
- setListFoldersResponseItemsInnerGetLabelsAttributeType(&o.Labels, v)
-}
-
-// GetName returns the Name field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) GetName() (ret ListFoldersResponseItemsInnerGetNameRetType) {
- ret, _ = o.GetNameOk()
- return ret
-}
-
-// GetNameOk returns a tuple with the Name field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) GetNameOk() (ret ListFoldersResponseItemsInnerGetNameRetType, ok bool) {
- return getListFoldersResponseItemsInnerGetNameAttributeTypeOk(o.Name)
-}
-
-// SetName sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) SetName(v ListFoldersResponseItemsInnerGetNameRetType) {
- setListFoldersResponseItemsInnerGetNameAttributeType(&o.Name, v)
-}
-
-// GetParent returns the Parent field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) GetParent() (ret ListFoldersResponseItemsInnerGetParentRetType) {
- ret, _ = o.GetParentOk()
- return ret
-}
-
-// GetParentOk returns a tuple with the Parent field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) GetParentOk() (ret ListFoldersResponseItemsInnerGetParentRetType, ok bool) {
- return getListFoldersResponseItemsInnerGetParentAttributeTypeOk(o.Parent)
-}
-
-// SetParent sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) SetParent(v ListFoldersResponseItemsInnerGetParentRetType) {
- setListFoldersResponseItemsInnerGetParentAttributeType(&o.Parent, v)
-}
-
-// GetUpdateTime returns the UpdateTime field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) GetUpdateTime() (ret ListFoldersResponseItemsInnerGetUpdateTimeRetType) {
- ret, _ = o.GetUpdateTimeOk()
- return ret
-}
-
-// GetUpdateTimeOk returns a tuple with the UpdateTime field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) GetUpdateTimeOk() (ret ListFoldersResponseItemsInnerGetUpdateTimeRetType, ok bool) {
- return getListFoldersResponseItemsInnerGetUpdateTimeAttributeTypeOk(o.UpdateTime)
-}
-
-// SetUpdateTime sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListFoldersResponseItemsInner) SetUpdateTime(v ListFoldersResponseItemsInnerGetUpdateTimeRetType) {
- setListFoldersResponseItemsInnerGetUpdateTimeAttributeType(&o.UpdateTime, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o ListFoldersResponseItemsInner) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getListFoldersResponseItemsInnerGetContainerIdAttributeTypeOk(o.ContainerId); ok {
- toSerialize["ContainerId"] = val
- }
- if val, ok := getListFoldersResponseItemsInnerGetCreationTimeAttributeTypeOk(o.CreationTime); ok {
- toSerialize["CreationTime"] = val
- }
- if val, ok := getListFoldersResponseItemsInnerGetFolderIdAttributeTypeOk(o.FolderId); ok {
- toSerialize["FolderId"] = val
- }
- if val, ok := getListFoldersResponseItemsInnerGetLabelsAttributeTypeOk(o.Labels); ok {
- toSerialize["Labels"] = val
- }
- if val, ok := getListFoldersResponseItemsInnerGetNameAttributeTypeOk(o.Name); ok {
- toSerialize["Name"] = val
- }
- if val, ok := getListFoldersResponseItemsInnerGetParentAttributeTypeOk(o.Parent); ok {
- toSerialize["Parent"] = val
- }
- if val, ok := getListFoldersResponseItemsInnerGetUpdateTimeAttributeTypeOk(o.UpdateTime); ok {
- toSerialize["UpdateTime"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableListFoldersResponseItemsInner struct {
- value *ListFoldersResponseItemsInner
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableListFoldersResponseItemsInner) Get() *ListFoldersResponseItemsInner {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableListFoldersResponseItemsInner) Set(val *ListFoldersResponseItemsInner) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableListFoldersResponseItemsInner) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableListFoldersResponseItemsInner) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableListFoldersResponseItemsInner(val *ListFoldersResponseItemsInner) *NullableListFoldersResponseItemsInner {
- return &NullableListFoldersResponseItemsInner{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableListFoldersResponseItemsInner) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableListFoldersResponseItemsInner) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_list_folders_response_items_inner_test.go b/services/resourcemanager/model_list_folders_response_items_inner_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_list_folders_response_items_inner_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_list_folders_response_test.go b/services/resourcemanager/model_list_folders_response_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_list_folders_response_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_list_organizations_response.go b/services/resourcemanager/model_list_organizations_response.go
deleted file mode 100644
index c715ca8f72..0000000000
--- a/services/resourcemanager/model_list_organizations_response.go
+++ /dev/null
@@ -1,261 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
-)
-
-// checks if the ListOrganizationsResponse type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &ListOrganizationsResponse{}
-
-/*
- types and functions for items
-*/
-
-// isArray
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseGetItemsAttributeType = *[]ListOrganizationsResponseItemsInner
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseGetItemsArgType = []ListOrganizationsResponseItemsInner
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseGetItemsRetType = []ListOrganizationsResponseItemsInner
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListOrganizationsResponseGetItemsAttributeTypeOk(arg ListOrganizationsResponseGetItemsAttributeType) (ret ListOrganizationsResponseGetItemsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListOrganizationsResponseGetItemsAttributeType(arg *ListOrganizationsResponseGetItemsAttributeType, val ListOrganizationsResponseGetItemsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for limit
-*/
-
-// isNumber
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseGetLimitAttributeType = *float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseGetLimitArgType = float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseGetLimitRetType = float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListOrganizationsResponseGetLimitAttributeTypeOk(arg ListOrganizationsResponseGetLimitAttributeType) (ret ListOrganizationsResponseGetLimitRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListOrganizationsResponseGetLimitAttributeType(arg *ListOrganizationsResponseGetLimitAttributeType, val ListOrganizationsResponseGetLimitRetType) {
- *arg = &val
-}
-
-/*
- types and functions for offset
-*/
-
-// isNumber
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseGetOffsetAttributeType = *float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseGetOffsetArgType = float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseGetOffsetRetType = float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListOrganizationsResponseGetOffsetAttributeTypeOk(arg ListOrganizationsResponseGetOffsetAttributeType) (ret ListOrganizationsResponseGetOffsetRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListOrganizationsResponseGetOffsetAttributeType(arg *ListOrganizationsResponseGetOffsetAttributeType, val ListOrganizationsResponseGetOffsetRetType) {
- *arg = &val
-}
-
-// ListOrganizationsResponse struct for ListOrganizationsResponse
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponse struct {
- // REQUIRED
- Items ListOrganizationsResponseGetItemsAttributeType `json:"items" required:"true"`
- // The maximum number of projects to return in the response. If not present, an appropriate default will be used.
- // REQUIRED
- Limit ListOrganizationsResponseGetLimitAttributeType `json:"limit" required:"true"`
- // The offset of the first item in the collection to return.
- // REQUIRED
- Offset ListOrganizationsResponseGetOffsetAttributeType `json:"offset" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _ListOrganizationsResponse ListOrganizationsResponse
-
-// NewListOrganizationsResponse instantiates a new ListOrganizationsResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewListOrganizationsResponse(items ListOrganizationsResponseGetItemsArgType, limit ListOrganizationsResponseGetLimitArgType, offset ListOrganizationsResponseGetOffsetArgType) *ListOrganizationsResponse {
- this := ListOrganizationsResponse{}
- setListOrganizationsResponseGetItemsAttributeType(&this.Items, items)
- setListOrganizationsResponseGetLimitAttributeType(&this.Limit, limit)
- setListOrganizationsResponseGetOffsetAttributeType(&this.Offset, offset)
- return &this
-}
-
-// NewListOrganizationsResponseWithDefaults instantiates a new ListOrganizationsResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewListOrganizationsResponseWithDefaults() *ListOrganizationsResponse {
- this := ListOrganizationsResponse{}
- var limit float64 = 50
- this.Limit = &limit
- var offset float64 = 0
- this.Offset = &offset
- return &this
-}
-
-// GetItems returns the Items field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponse) GetItems() (ret ListOrganizationsResponseGetItemsRetType) {
- ret, _ = o.GetItemsOk()
- return ret
-}
-
-// GetItemsOk returns a tuple with the Items field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponse) GetItemsOk() (ret ListOrganizationsResponseGetItemsRetType, ok bool) {
- return getListOrganizationsResponseGetItemsAttributeTypeOk(o.Items)
-}
-
-// SetItems sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponse) SetItems(v ListOrganizationsResponseGetItemsRetType) {
- setListOrganizationsResponseGetItemsAttributeType(&o.Items, v)
-}
-
-// GetLimit returns the Limit field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponse) GetLimit() (ret ListOrganizationsResponseGetLimitRetType) {
- ret, _ = o.GetLimitOk()
- return ret
-}
-
-// GetLimitOk returns a tuple with the Limit field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponse) GetLimitOk() (ret ListOrganizationsResponseGetLimitRetType, ok bool) {
- return getListOrganizationsResponseGetLimitAttributeTypeOk(o.Limit)
-}
-
-// SetLimit sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponse) SetLimit(v ListOrganizationsResponseGetLimitRetType) {
- setListOrganizationsResponseGetLimitAttributeType(&o.Limit, v)
-}
-
-// GetOffset returns the Offset field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponse) GetOffset() (ret ListOrganizationsResponseGetOffsetRetType) {
- ret, _ = o.GetOffsetOk()
- return ret
-}
-
-// GetOffsetOk returns a tuple with the Offset field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponse) GetOffsetOk() (ret ListOrganizationsResponseGetOffsetRetType, ok bool) {
- return getListOrganizationsResponseGetOffsetAttributeTypeOk(o.Offset)
-}
-
-// SetOffset sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponse) SetOffset(v ListOrganizationsResponseGetOffsetRetType) {
- setListOrganizationsResponseGetOffsetAttributeType(&o.Offset, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o ListOrganizationsResponse) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getListOrganizationsResponseGetItemsAttributeTypeOk(o.Items); ok {
- toSerialize["Items"] = val
- }
- if val, ok := getListOrganizationsResponseGetLimitAttributeTypeOk(o.Limit); ok {
- toSerialize["Limit"] = val
- }
- if val, ok := getListOrganizationsResponseGetOffsetAttributeTypeOk(o.Offset); ok {
- toSerialize["Offset"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableListOrganizationsResponse struct {
- value *ListOrganizationsResponse
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableListOrganizationsResponse) Get() *ListOrganizationsResponse {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableListOrganizationsResponse) Set(val *ListOrganizationsResponse) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableListOrganizationsResponse) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableListOrganizationsResponse) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableListOrganizationsResponse(val *ListOrganizationsResponse) *NullableListOrganizationsResponse {
- return &NullableListOrganizationsResponse{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableListOrganizationsResponse) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableListOrganizationsResponse) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_list_organizations_response_items_inner.go b/services/resourcemanager/model_list_organizations_response_items_inner.go
deleted file mode 100644
index 58dc75db8e..0000000000
--- a/services/resourcemanager/model_list_organizations_response_items_inner.go
+++ /dev/null
@@ -1,479 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
- "time"
-)
-
-// checks if the ListOrganizationsResponseItemsInner type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &ListOrganizationsResponseItemsInner{}
-
-/*
- types and functions for containerId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetContainerIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListOrganizationsResponseItemsInnerGetContainerIdAttributeTypeOk(arg ListOrganizationsResponseItemsInnerGetContainerIdAttributeType) (ret ListOrganizationsResponseItemsInnerGetContainerIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListOrganizationsResponseItemsInnerGetContainerIdAttributeType(arg *ListOrganizationsResponseItemsInnerGetContainerIdAttributeType, val ListOrganizationsResponseItemsInnerGetContainerIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetContainerIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetContainerIdRetType = string
-
-/*
- types and functions for creationTime
-*/
-
-// isDateTime
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetCreationTimeAttributeType = *time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetCreationTimeArgType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetCreationTimeRetType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListOrganizationsResponseItemsInnerGetCreationTimeAttributeTypeOk(arg ListOrganizationsResponseItemsInnerGetCreationTimeAttributeType) (ret ListOrganizationsResponseItemsInnerGetCreationTimeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListOrganizationsResponseItemsInnerGetCreationTimeAttributeType(arg *ListOrganizationsResponseItemsInnerGetCreationTimeAttributeType, val ListOrganizationsResponseItemsInnerGetCreationTimeRetType) {
- *arg = &val
-}
-
-/*
- types and functions for labels
-*/
-
-// isContainer
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetLabelsAttributeType = *map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetLabelsArgType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetLabelsRetType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListOrganizationsResponseItemsInnerGetLabelsAttributeTypeOk(arg ListOrganizationsResponseItemsInnerGetLabelsAttributeType) (ret ListOrganizationsResponseItemsInnerGetLabelsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListOrganizationsResponseItemsInnerGetLabelsAttributeType(arg *ListOrganizationsResponseItemsInnerGetLabelsAttributeType, val ListOrganizationsResponseItemsInnerGetLabelsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for lifecycleState
-*/
-
-// isEnumRef
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetLifecycleStateAttributeType = *LifecycleState
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetLifecycleStateArgType = LifecycleState
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetLifecycleStateRetType = LifecycleState
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListOrganizationsResponseItemsInnerGetLifecycleStateAttributeTypeOk(arg ListOrganizationsResponseItemsInnerGetLifecycleStateAttributeType) (ret ListOrganizationsResponseItemsInnerGetLifecycleStateRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListOrganizationsResponseItemsInnerGetLifecycleStateAttributeType(arg *ListOrganizationsResponseItemsInnerGetLifecycleStateAttributeType, val ListOrganizationsResponseItemsInnerGetLifecycleStateRetType) {
- *arg = &val
-}
-
-/*
- types and functions for name
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetNameAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListOrganizationsResponseItemsInnerGetNameAttributeTypeOk(arg ListOrganizationsResponseItemsInnerGetNameAttributeType) (ret ListOrganizationsResponseItemsInnerGetNameRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListOrganizationsResponseItemsInnerGetNameAttributeType(arg *ListOrganizationsResponseItemsInnerGetNameAttributeType, val ListOrganizationsResponseItemsInnerGetNameRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetNameArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetNameRetType = string
-
-/*
- types and functions for organizationId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetOrganizationIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListOrganizationsResponseItemsInnerGetOrganizationIdAttributeTypeOk(arg ListOrganizationsResponseItemsInnerGetOrganizationIdAttributeType) (ret ListOrganizationsResponseItemsInnerGetOrganizationIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListOrganizationsResponseItemsInnerGetOrganizationIdAttributeType(arg *ListOrganizationsResponseItemsInnerGetOrganizationIdAttributeType, val ListOrganizationsResponseItemsInnerGetOrganizationIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetOrganizationIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetOrganizationIdRetType = string
-
-/*
- types and functions for updateTime
-*/
-
-// isDateTime
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetUpdateTimeAttributeType = *time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetUpdateTimeArgType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInnerGetUpdateTimeRetType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListOrganizationsResponseItemsInnerGetUpdateTimeAttributeTypeOk(arg ListOrganizationsResponseItemsInnerGetUpdateTimeAttributeType) (ret ListOrganizationsResponseItemsInnerGetUpdateTimeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListOrganizationsResponseItemsInnerGetUpdateTimeAttributeType(arg *ListOrganizationsResponseItemsInnerGetUpdateTimeAttributeType, val ListOrganizationsResponseItemsInnerGetUpdateTimeRetType) {
- *arg = &val
-}
-
-// ListOrganizationsResponseItemsInner struct for ListOrganizationsResponseItemsInner
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListOrganizationsResponseItemsInner struct {
- // Globally unique, user-friendly identifier.
- // REQUIRED
- ContainerId ListOrganizationsResponseItemsInnerGetContainerIdAttributeType `json:"containerId" required:"true"`
- // Timestamp at which the organization was created.
- // REQUIRED
- CreationTime ListOrganizationsResponseItemsInnerGetCreationTimeAttributeType `json:"creationTime" required:"true"`
- // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must be between 1 and 63 characters long (excluding an optional domain prefix). Must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May be empty (\"\"). If non-empty, must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). > Note: Additional naming restrictions may apply depending on your specific organization.*
- Labels ListOrganizationsResponseItemsInnerGetLabelsAttributeType `json:"labels,omitempty"`
- // REQUIRED
- LifecycleState ListOrganizationsResponseItemsInnerGetLifecycleStateAttributeType `json:"lifecycleState" required:"true"`
- // Name of the organization.
- // REQUIRED
- Name ListOrganizationsResponseItemsInnerGetNameAttributeType `json:"name" required:"true"`
- // Globally unique, organization identifier.
- // REQUIRED
- OrganizationId ListOrganizationsResponseItemsInnerGetOrganizationIdAttributeType `json:"organizationId" required:"true"`
- // Timestamp at which the organization was last modified.
- // REQUIRED
- UpdateTime ListOrganizationsResponseItemsInnerGetUpdateTimeAttributeType `json:"updateTime" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _ListOrganizationsResponseItemsInner ListOrganizationsResponseItemsInner
-
-// NewListOrganizationsResponseItemsInner instantiates a new ListOrganizationsResponseItemsInner 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewListOrganizationsResponseItemsInner(containerId ListOrganizationsResponseItemsInnerGetContainerIdArgType, creationTime ListOrganizationsResponseItemsInnerGetCreationTimeArgType, lifecycleState ListOrganizationsResponseItemsInnerGetLifecycleStateArgType, name ListOrganizationsResponseItemsInnerGetNameArgType, organizationId ListOrganizationsResponseItemsInnerGetOrganizationIdArgType, updateTime ListOrganizationsResponseItemsInnerGetUpdateTimeArgType) *ListOrganizationsResponseItemsInner {
- this := ListOrganizationsResponseItemsInner{}
- setListOrganizationsResponseItemsInnerGetContainerIdAttributeType(&this.ContainerId, containerId)
- setListOrganizationsResponseItemsInnerGetCreationTimeAttributeType(&this.CreationTime, creationTime)
- setListOrganizationsResponseItemsInnerGetLifecycleStateAttributeType(&this.LifecycleState, lifecycleState)
- setListOrganizationsResponseItemsInnerGetNameAttributeType(&this.Name, name)
- setListOrganizationsResponseItemsInnerGetOrganizationIdAttributeType(&this.OrganizationId, organizationId)
- setListOrganizationsResponseItemsInnerGetUpdateTimeAttributeType(&this.UpdateTime, updateTime)
- return &this
-}
-
-// NewListOrganizationsResponseItemsInnerWithDefaults instantiates a new ListOrganizationsResponseItemsInner 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewListOrganizationsResponseItemsInnerWithDefaults() *ListOrganizationsResponseItemsInner {
- this := ListOrganizationsResponseItemsInner{}
- return &this
-}
-
-// GetContainerId returns the ContainerId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) GetContainerId() (ret ListOrganizationsResponseItemsInnerGetContainerIdRetType) {
- ret, _ = o.GetContainerIdOk()
- return ret
-}
-
-// GetContainerIdOk returns a tuple with the ContainerId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) GetContainerIdOk() (ret ListOrganizationsResponseItemsInnerGetContainerIdRetType, ok bool) {
- return getListOrganizationsResponseItemsInnerGetContainerIdAttributeTypeOk(o.ContainerId)
-}
-
-// SetContainerId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) SetContainerId(v ListOrganizationsResponseItemsInnerGetContainerIdRetType) {
- setListOrganizationsResponseItemsInnerGetContainerIdAttributeType(&o.ContainerId, v)
-}
-
-// GetCreationTime returns the CreationTime field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) GetCreationTime() (ret ListOrganizationsResponseItemsInnerGetCreationTimeRetType) {
- ret, _ = o.GetCreationTimeOk()
- return ret
-}
-
-// GetCreationTimeOk returns a tuple with the CreationTime field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) GetCreationTimeOk() (ret ListOrganizationsResponseItemsInnerGetCreationTimeRetType, ok bool) {
- return getListOrganizationsResponseItemsInnerGetCreationTimeAttributeTypeOk(o.CreationTime)
-}
-
-// SetCreationTime sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) SetCreationTime(v ListOrganizationsResponseItemsInnerGetCreationTimeRetType) {
- setListOrganizationsResponseItemsInnerGetCreationTimeAttributeType(&o.CreationTime, v)
-}
-
-// GetLabels returns the Labels field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) GetLabels() (res ListOrganizationsResponseItemsInnerGetLabelsRetType) {
- res, _ = o.GetLabelsOk()
- return
-}
-
-// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) GetLabelsOk() (ret ListOrganizationsResponseItemsInnerGetLabelsRetType, ok bool) {
- return getListOrganizationsResponseItemsInnerGetLabelsAttributeTypeOk(o.Labels)
-}
-
-// HasLabels returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) HasLabels() bool {
- _, ok := o.GetLabelsOk()
- return ok
-}
-
-// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) SetLabels(v ListOrganizationsResponseItemsInnerGetLabelsRetType) {
- setListOrganizationsResponseItemsInnerGetLabelsAttributeType(&o.Labels, v)
-}
-
-// GetLifecycleState returns the LifecycleState field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) GetLifecycleState() (ret ListOrganizationsResponseItemsInnerGetLifecycleStateRetType) {
- ret, _ = o.GetLifecycleStateOk()
- return ret
-}
-
-// GetLifecycleStateOk returns a tuple with the LifecycleState field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) GetLifecycleStateOk() (ret ListOrganizationsResponseItemsInnerGetLifecycleStateRetType, ok bool) {
- return getListOrganizationsResponseItemsInnerGetLifecycleStateAttributeTypeOk(o.LifecycleState)
-}
-
-// SetLifecycleState sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) SetLifecycleState(v ListOrganizationsResponseItemsInnerGetLifecycleStateRetType) {
- setListOrganizationsResponseItemsInnerGetLifecycleStateAttributeType(&o.LifecycleState, v)
-}
-
-// GetName returns the Name field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) GetName() (ret ListOrganizationsResponseItemsInnerGetNameRetType) {
- ret, _ = o.GetNameOk()
- return ret
-}
-
-// GetNameOk returns a tuple with the Name field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) GetNameOk() (ret ListOrganizationsResponseItemsInnerGetNameRetType, ok bool) {
- return getListOrganizationsResponseItemsInnerGetNameAttributeTypeOk(o.Name)
-}
-
-// SetName sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) SetName(v ListOrganizationsResponseItemsInnerGetNameRetType) {
- setListOrganizationsResponseItemsInnerGetNameAttributeType(&o.Name, v)
-}
-
-// GetOrganizationId returns the OrganizationId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) GetOrganizationId() (ret ListOrganizationsResponseItemsInnerGetOrganizationIdRetType) {
- ret, _ = o.GetOrganizationIdOk()
- return ret
-}
-
-// GetOrganizationIdOk returns a tuple with the OrganizationId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) GetOrganizationIdOk() (ret ListOrganizationsResponseItemsInnerGetOrganizationIdRetType, ok bool) {
- return getListOrganizationsResponseItemsInnerGetOrganizationIdAttributeTypeOk(o.OrganizationId)
-}
-
-// SetOrganizationId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) SetOrganizationId(v ListOrganizationsResponseItemsInnerGetOrganizationIdRetType) {
- setListOrganizationsResponseItemsInnerGetOrganizationIdAttributeType(&o.OrganizationId, v)
-}
-
-// GetUpdateTime returns the UpdateTime field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) GetUpdateTime() (ret ListOrganizationsResponseItemsInnerGetUpdateTimeRetType) {
- ret, _ = o.GetUpdateTimeOk()
- return ret
-}
-
-// GetUpdateTimeOk returns a tuple with the UpdateTime field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) GetUpdateTimeOk() (ret ListOrganizationsResponseItemsInnerGetUpdateTimeRetType, ok bool) {
- return getListOrganizationsResponseItemsInnerGetUpdateTimeAttributeTypeOk(o.UpdateTime)
-}
-
-// SetUpdateTime sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListOrganizationsResponseItemsInner) SetUpdateTime(v ListOrganizationsResponseItemsInnerGetUpdateTimeRetType) {
- setListOrganizationsResponseItemsInnerGetUpdateTimeAttributeType(&o.UpdateTime, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o ListOrganizationsResponseItemsInner) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getListOrganizationsResponseItemsInnerGetContainerIdAttributeTypeOk(o.ContainerId); ok {
- toSerialize["ContainerId"] = val
- }
- if val, ok := getListOrganizationsResponseItemsInnerGetCreationTimeAttributeTypeOk(o.CreationTime); ok {
- toSerialize["CreationTime"] = val
- }
- if val, ok := getListOrganizationsResponseItemsInnerGetLabelsAttributeTypeOk(o.Labels); ok {
- toSerialize["Labels"] = val
- }
- if val, ok := getListOrganizationsResponseItemsInnerGetLifecycleStateAttributeTypeOk(o.LifecycleState); ok {
- toSerialize["LifecycleState"] = val
- }
- if val, ok := getListOrganizationsResponseItemsInnerGetNameAttributeTypeOk(o.Name); ok {
- toSerialize["Name"] = val
- }
- if val, ok := getListOrganizationsResponseItemsInnerGetOrganizationIdAttributeTypeOk(o.OrganizationId); ok {
- toSerialize["OrganizationId"] = val
- }
- if val, ok := getListOrganizationsResponseItemsInnerGetUpdateTimeAttributeTypeOk(o.UpdateTime); ok {
- toSerialize["UpdateTime"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableListOrganizationsResponseItemsInner struct {
- value *ListOrganizationsResponseItemsInner
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableListOrganizationsResponseItemsInner) Get() *ListOrganizationsResponseItemsInner {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableListOrganizationsResponseItemsInner) Set(val *ListOrganizationsResponseItemsInner) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableListOrganizationsResponseItemsInner) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableListOrganizationsResponseItemsInner) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableListOrganizationsResponseItemsInner(val *ListOrganizationsResponseItemsInner) *NullableListOrganizationsResponseItemsInner {
- return &NullableListOrganizationsResponseItemsInner{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableListOrganizationsResponseItemsInner) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableListOrganizationsResponseItemsInner) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_list_organizations_response_items_inner_test.go b/services/resourcemanager/model_list_organizations_response_items_inner_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_list_organizations_response_items_inner_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_list_organizations_response_test.go b/services/resourcemanager/model_list_organizations_response_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_list_organizations_response_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_list_projects_response.go b/services/resourcemanager/model_list_projects_response.go
deleted file mode 100644
index 6720f4d565..0000000000
--- a/services/resourcemanager/model_list_projects_response.go
+++ /dev/null
@@ -1,261 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
-)
-
-// checks if the ListProjectsResponse type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &ListProjectsResponse{}
-
-/*
- types and functions for items
-*/
-
-// isArray
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListProjectsResponseGetItemsAttributeType = *[]Project
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListProjectsResponseGetItemsArgType = []Project
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListProjectsResponseGetItemsRetType = []Project
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListProjectsResponseGetItemsAttributeTypeOk(arg ListProjectsResponseGetItemsAttributeType) (ret ListProjectsResponseGetItemsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListProjectsResponseGetItemsAttributeType(arg *ListProjectsResponseGetItemsAttributeType, val ListProjectsResponseGetItemsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for limit
-*/
-
-// isNumber
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListProjectsResponseGetLimitAttributeType = *float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListProjectsResponseGetLimitArgType = float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListProjectsResponseGetLimitRetType = float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListProjectsResponseGetLimitAttributeTypeOk(arg ListProjectsResponseGetLimitAttributeType) (ret ListProjectsResponseGetLimitRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListProjectsResponseGetLimitAttributeType(arg *ListProjectsResponseGetLimitAttributeType, val ListProjectsResponseGetLimitRetType) {
- *arg = &val
-}
-
-/*
- types and functions for offset
-*/
-
-// isNumber
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListProjectsResponseGetOffsetAttributeType = *float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListProjectsResponseGetOffsetArgType = float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListProjectsResponseGetOffsetRetType = float64
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getListProjectsResponseGetOffsetAttributeTypeOk(arg ListProjectsResponseGetOffsetAttributeType) (ret ListProjectsResponseGetOffsetRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setListProjectsResponseGetOffsetAttributeType(arg *ListProjectsResponseGetOffsetAttributeType, val ListProjectsResponseGetOffsetRetType) {
- *arg = &val
-}
-
-// ListProjectsResponse struct for ListProjectsResponse
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ListProjectsResponse struct {
- // REQUIRED
- Items ListProjectsResponseGetItemsAttributeType `json:"items" required:"true"`
- // The maximum number of projects to return in the response. If not present, an appropriate default will be used.
- // REQUIRED
- Limit ListProjectsResponseGetLimitAttributeType `json:"limit" required:"true"`
- // The offset of the first item in the collection to return.
- // REQUIRED
- Offset ListProjectsResponseGetOffsetAttributeType `json:"offset" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _ListProjectsResponse ListProjectsResponse
-
-// NewListProjectsResponse instantiates a new ListProjectsResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewListProjectsResponse(items ListProjectsResponseGetItemsArgType, limit ListProjectsResponseGetLimitArgType, offset ListProjectsResponseGetOffsetArgType) *ListProjectsResponse {
- this := ListProjectsResponse{}
- setListProjectsResponseGetItemsAttributeType(&this.Items, items)
- setListProjectsResponseGetLimitAttributeType(&this.Limit, limit)
- setListProjectsResponseGetOffsetAttributeType(&this.Offset, offset)
- return &this
-}
-
-// NewListProjectsResponseWithDefaults instantiates a new ListProjectsResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewListProjectsResponseWithDefaults() *ListProjectsResponse {
- this := ListProjectsResponse{}
- var limit float64 = 50
- this.Limit = &limit
- var offset float64 = 0
- this.Offset = &offset
- return &this
-}
-
-// GetItems returns the Items field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListProjectsResponse) GetItems() (ret ListProjectsResponseGetItemsRetType) {
- ret, _ = o.GetItemsOk()
- return ret
-}
-
-// GetItemsOk returns a tuple with the Items field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListProjectsResponse) GetItemsOk() (ret ListProjectsResponseGetItemsRetType, ok bool) {
- return getListProjectsResponseGetItemsAttributeTypeOk(o.Items)
-}
-
-// SetItems sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListProjectsResponse) SetItems(v ListProjectsResponseGetItemsRetType) {
- setListProjectsResponseGetItemsAttributeType(&o.Items, v)
-}
-
-// GetLimit returns the Limit field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListProjectsResponse) GetLimit() (ret ListProjectsResponseGetLimitRetType) {
- ret, _ = o.GetLimitOk()
- return ret
-}
-
-// GetLimitOk returns a tuple with the Limit field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListProjectsResponse) GetLimitOk() (ret ListProjectsResponseGetLimitRetType, ok bool) {
- return getListProjectsResponseGetLimitAttributeTypeOk(o.Limit)
-}
-
-// SetLimit sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListProjectsResponse) SetLimit(v ListProjectsResponseGetLimitRetType) {
- setListProjectsResponseGetLimitAttributeType(&o.Limit, v)
-}
-
-// GetOffset returns the Offset field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListProjectsResponse) GetOffset() (ret ListProjectsResponseGetOffsetRetType) {
- ret, _ = o.GetOffsetOk()
- return ret
-}
-
-// GetOffsetOk returns a tuple with the Offset field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListProjectsResponse) GetOffsetOk() (ret ListProjectsResponseGetOffsetRetType, ok bool) {
- return getListProjectsResponseGetOffsetAttributeTypeOk(o.Offset)
-}
-
-// SetOffset sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ListProjectsResponse) SetOffset(v ListProjectsResponseGetOffsetRetType) {
- setListProjectsResponseGetOffsetAttributeType(&o.Offset, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o ListProjectsResponse) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getListProjectsResponseGetItemsAttributeTypeOk(o.Items); ok {
- toSerialize["Items"] = val
- }
- if val, ok := getListProjectsResponseGetLimitAttributeTypeOk(o.Limit); ok {
- toSerialize["Limit"] = val
- }
- if val, ok := getListProjectsResponseGetOffsetAttributeTypeOk(o.Offset); ok {
- toSerialize["Offset"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableListProjectsResponse struct {
- value *ListProjectsResponse
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableListProjectsResponse) Get() *ListProjectsResponse {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableListProjectsResponse) Set(val *ListProjectsResponse) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableListProjectsResponse) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableListProjectsResponse) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableListProjectsResponse(val *ListProjectsResponse) *NullableListProjectsResponse {
- return &NullableListProjectsResponse{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableListProjectsResponse) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableListProjectsResponse) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_list_projects_response_test.go b/services/resourcemanager/model_list_projects_response_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_list_projects_response_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_member.go b/services/resourcemanager/model_member.go
deleted file mode 100644
index 5ba471df97..0000000000
--- a/services/resourcemanager/model_member.go
+++ /dev/null
@@ -1,204 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
-)
-
-// checks if the Member type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &Member{}
-
-/*
- types and functions for role
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type MemberGetRoleAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getMemberGetRoleAttributeTypeOk(arg MemberGetRoleAttributeType) (ret MemberGetRoleRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setMemberGetRoleAttributeType(arg *MemberGetRoleAttributeType, val MemberGetRoleRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type MemberGetRoleArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type MemberGetRoleRetType = string
-
-/*
- types and functions for subject
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type MemberGetSubjectAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getMemberGetSubjectAttributeTypeOk(arg MemberGetSubjectAttributeType) (ret MemberGetSubjectRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setMemberGetSubjectAttributeType(arg *MemberGetSubjectAttributeType, val MemberGetSubjectRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type MemberGetSubjectArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type MemberGetSubjectRetType = string
-
-// Member struct for Member
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type Member struct {
- // A valid role defined for the resource.
- // REQUIRED
- Role MemberGetRoleAttributeType `json:"role" required:"true"`
- // Unique identifier of the user, service account or client.
- // REQUIRED
- Subject MemberGetSubjectAttributeType `json:"subject" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _Member Member
-
-// NewMember instantiates a new Member 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewMember(role MemberGetRoleArgType, subject MemberGetSubjectArgType) *Member {
- this := Member{}
- setMemberGetRoleAttributeType(&this.Role, role)
- setMemberGetSubjectAttributeType(&this.Subject, subject)
- return &this
-}
-
-// NewMemberWithDefaults instantiates a new Member 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewMemberWithDefaults() *Member {
- this := Member{}
- return &this
-}
-
-// GetRole returns the Role field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Member) GetRole() (ret MemberGetRoleRetType) {
- ret, _ = o.GetRoleOk()
- return ret
-}
-
-// GetRoleOk returns a tuple with the Role field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Member) GetRoleOk() (ret MemberGetRoleRetType, ok bool) {
- return getMemberGetRoleAttributeTypeOk(o.Role)
-}
-
-// SetRole sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Member) SetRole(v MemberGetRoleRetType) {
- setMemberGetRoleAttributeType(&o.Role, v)
-}
-
-// GetSubject returns the Subject field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Member) GetSubject() (ret MemberGetSubjectRetType) {
- ret, _ = o.GetSubjectOk()
- return ret
-}
-
-// GetSubjectOk returns a tuple with the Subject field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Member) GetSubjectOk() (ret MemberGetSubjectRetType, ok bool) {
- return getMemberGetSubjectAttributeTypeOk(o.Subject)
-}
-
-// SetSubject sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Member) SetSubject(v MemberGetSubjectRetType) {
- setMemberGetSubjectAttributeType(&o.Subject, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o Member) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getMemberGetRoleAttributeTypeOk(o.Role); ok {
- toSerialize["Role"] = val
- }
- if val, ok := getMemberGetSubjectAttributeTypeOk(o.Subject); ok {
- toSerialize["Subject"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableMember struct {
- value *Member
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableMember) Get() *Member {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableMember) Set(val *Member) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableMember) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableMember) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableMember(val *Member) *NullableMember {
- return &NullableMember{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableMember) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableMember) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_member_test.go b/services/resourcemanager/model_member_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_member_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_organization_response.go b/services/resourcemanager/model_organization_response.go
deleted file mode 100644
index 3ded546568..0000000000
--- a/services/resourcemanager/model_organization_response.go
+++ /dev/null
@@ -1,479 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
- "time"
-)
-
-// checks if the OrganizationResponse type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &OrganizationResponse{}
-
-/*
- types and functions for containerId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetContainerIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getOrganizationResponseGetContainerIdAttributeTypeOk(arg OrganizationResponseGetContainerIdAttributeType) (ret OrganizationResponseGetContainerIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setOrganizationResponseGetContainerIdAttributeType(arg *OrganizationResponseGetContainerIdAttributeType, val OrganizationResponseGetContainerIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetContainerIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetContainerIdRetType = string
-
-/*
- types and functions for creationTime
-*/
-
-// isDateTime
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetCreationTimeAttributeType = *time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetCreationTimeArgType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetCreationTimeRetType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getOrganizationResponseGetCreationTimeAttributeTypeOk(arg OrganizationResponseGetCreationTimeAttributeType) (ret OrganizationResponseGetCreationTimeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setOrganizationResponseGetCreationTimeAttributeType(arg *OrganizationResponseGetCreationTimeAttributeType, val OrganizationResponseGetCreationTimeRetType) {
- *arg = &val
-}
-
-/*
- types and functions for labels
-*/
-
-// isContainer
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetLabelsAttributeType = *map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetLabelsArgType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetLabelsRetType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getOrganizationResponseGetLabelsAttributeTypeOk(arg OrganizationResponseGetLabelsAttributeType) (ret OrganizationResponseGetLabelsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setOrganizationResponseGetLabelsAttributeType(arg *OrganizationResponseGetLabelsAttributeType, val OrganizationResponseGetLabelsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for lifecycleState
-*/
-
-// isEnumRef
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetLifecycleStateAttributeType = *LifecycleState
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetLifecycleStateArgType = LifecycleState
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetLifecycleStateRetType = LifecycleState
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getOrganizationResponseGetLifecycleStateAttributeTypeOk(arg OrganizationResponseGetLifecycleStateAttributeType) (ret OrganizationResponseGetLifecycleStateRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setOrganizationResponseGetLifecycleStateAttributeType(arg *OrganizationResponseGetLifecycleStateAttributeType, val OrganizationResponseGetLifecycleStateRetType) {
- *arg = &val
-}
-
-/*
- types and functions for name
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetNameAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getOrganizationResponseGetNameAttributeTypeOk(arg OrganizationResponseGetNameAttributeType) (ret OrganizationResponseGetNameRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setOrganizationResponseGetNameAttributeType(arg *OrganizationResponseGetNameAttributeType, val OrganizationResponseGetNameRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetNameArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetNameRetType = string
-
-/*
- types and functions for organizationId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetOrganizationIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getOrganizationResponseGetOrganizationIdAttributeTypeOk(arg OrganizationResponseGetOrganizationIdAttributeType) (ret OrganizationResponseGetOrganizationIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setOrganizationResponseGetOrganizationIdAttributeType(arg *OrganizationResponseGetOrganizationIdAttributeType, val OrganizationResponseGetOrganizationIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetOrganizationIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetOrganizationIdRetType = string
-
-/*
- types and functions for updateTime
-*/
-
-// isDateTime
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetUpdateTimeAttributeType = *time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetUpdateTimeArgType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponseGetUpdateTimeRetType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getOrganizationResponseGetUpdateTimeAttributeTypeOk(arg OrganizationResponseGetUpdateTimeAttributeType) (ret OrganizationResponseGetUpdateTimeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setOrganizationResponseGetUpdateTimeAttributeType(arg *OrganizationResponseGetUpdateTimeAttributeType, val OrganizationResponseGetUpdateTimeRetType) {
- *arg = &val
-}
-
-// OrganizationResponse struct for OrganizationResponse
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type OrganizationResponse struct {
- // Globally unique, user-friendly identifier.
- // REQUIRED
- ContainerId OrganizationResponseGetContainerIdAttributeType `json:"containerId" required:"true"`
- // Timestamp at which the organization was created.
- // REQUIRED
- CreationTime OrganizationResponseGetCreationTimeAttributeType `json:"creationTime" required:"true"`
- // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must be between 1 and 63 characters long (excluding an optional domain prefix). Must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May be empty (\"\"). If non-empty, must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). > Note: Additional naming restrictions may apply depending on your specific organization.*
- Labels OrganizationResponseGetLabelsAttributeType `json:"labels,omitempty"`
- // REQUIRED
- LifecycleState OrganizationResponseGetLifecycleStateAttributeType `json:"lifecycleState" required:"true"`
- // Organization name.
- // REQUIRED
- Name OrganizationResponseGetNameAttributeType `json:"name" required:"true"`
- // Globally unique, organization identifier.
- // REQUIRED
- OrganizationId OrganizationResponseGetOrganizationIdAttributeType `json:"organizationId" required:"true"`
- // Timestamp at which the organization was last modified.
- // REQUIRED
- UpdateTime OrganizationResponseGetUpdateTimeAttributeType `json:"updateTime" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _OrganizationResponse OrganizationResponse
-
-// NewOrganizationResponse instantiates a new OrganizationResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewOrganizationResponse(containerId OrganizationResponseGetContainerIdArgType, creationTime OrganizationResponseGetCreationTimeArgType, lifecycleState OrganizationResponseGetLifecycleStateArgType, name OrganizationResponseGetNameArgType, organizationId OrganizationResponseGetOrganizationIdArgType, updateTime OrganizationResponseGetUpdateTimeArgType) *OrganizationResponse {
- this := OrganizationResponse{}
- setOrganizationResponseGetContainerIdAttributeType(&this.ContainerId, containerId)
- setOrganizationResponseGetCreationTimeAttributeType(&this.CreationTime, creationTime)
- setOrganizationResponseGetLifecycleStateAttributeType(&this.LifecycleState, lifecycleState)
- setOrganizationResponseGetNameAttributeType(&this.Name, name)
- setOrganizationResponseGetOrganizationIdAttributeType(&this.OrganizationId, organizationId)
- setOrganizationResponseGetUpdateTimeAttributeType(&this.UpdateTime, updateTime)
- return &this
-}
-
-// NewOrganizationResponseWithDefaults instantiates a new OrganizationResponse 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewOrganizationResponseWithDefaults() *OrganizationResponse {
- this := OrganizationResponse{}
- return &this
-}
-
-// GetContainerId returns the ContainerId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) GetContainerId() (ret OrganizationResponseGetContainerIdRetType) {
- ret, _ = o.GetContainerIdOk()
- return ret
-}
-
-// GetContainerIdOk returns a tuple with the ContainerId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) GetContainerIdOk() (ret OrganizationResponseGetContainerIdRetType, ok bool) {
- return getOrganizationResponseGetContainerIdAttributeTypeOk(o.ContainerId)
-}
-
-// SetContainerId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) SetContainerId(v OrganizationResponseGetContainerIdRetType) {
- setOrganizationResponseGetContainerIdAttributeType(&o.ContainerId, v)
-}
-
-// GetCreationTime returns the CreationTime field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) GetCreationTime() (ret OrganizationResponseGetCreationTimeRetType) {
- ret, _ = o.GetCreationTimeOk()
- return ret
-}
-
-// GetCreationTimeOk returns a tuple with the CreationTime field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) GetCreationTimeOk() (ret OrganizationResponseGetCreationTimeRetType, ok bool) {
- return getOrganizationResponseGetCreationTimeAttributeTypeOk(o.CreationTime)
-}
-
-// SetCreationTime sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) SetCreationTime(v OrganizationResponseGetCreationTimeRetType) {
- setOrganizationResponseGetCreationTimeAttributeType(&o.CreationTime, v)
-}
-
-// GetLabels returns the Labels field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) GetLabels() (res OrganizationResponseGetLabelsRetType) {
- res, _ = o.GetLabelsOk()
- return
-}
-
-// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) GetLabelsOk() (ret OrganizationResponseGetLabelsRetType, ok bool) {
- return getOrganizationResponseGetLabelsAttributeTypeOk(o.Labels)
-}
-
-// HasLabels returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) HasLabels() bool {
- _, ok := o.GetLabelsOk()
- return ok
-}
-
-// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) SetLabels(v OrganizationResponseGetLabelsRetType) {
- setOrganizationResponseGetLabelsAttributeType(&o.Labels, v)
-}
-
-// GetLifecycleState returns the LifecycleState field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) GetLifecycleState() (ret OrganizationResponseGetLifecycleStateRetType) {
- ret, _ = o.GetLifecycleStateOk()
- return ret
-}
-
-// GetLifecycleStateOk returns a tuple with the LifecycleState field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) GetLifecycleStateOk() (ret OrganizationResponseGetLifecycleStateRetType, ok bool) {
- return getOrganizationResponseGetLifecycleStateAttributeTypeOk(o.LifecycleState)
-}
-
-// SetLifecycleState sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) SetLifecycleState(v OrganizationResponseGetLifecycleStateRetType) {
- setOrganizationResponseGetLifecycleStateAttributeType(&o.LifecycleState, v)
-}
-
-// GetName returns the Name field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) GetName() (ret OrganizationResponseGetNameRetType) {
- ret, _ = o.GetNameOk()
- return ret
-}
-
-// GetNameOk returns a tuple with the Name field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) GetNameOk() (ret OrganizationResponseGetNameRetType, ok bool) {
- return getOrganizationResponseGetNameAttributeTypeOk(o.Name)
-}
-
-// SetName sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) SetName(v OrganizationResponseGetNameRetType) {
- setOrganizationResponseGetNameAttributeType(&o.Name, v)
-}
-
-// GetOrganizationId returns the OrganizationId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) GetOrganizationId() (ret OrganizationResponseGetOrganizationIdRetType) {
- ret, _ = o.GetOrganizationIdOk()
- return ret
-}
-
-// GetOrganizationIdOk returns a tuple with the OrganizationId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) GetOrganizationIdOk() (ret OrganizationResponseGetOrganizationIdRetType, ok bool) {
- return getOrganizationResponseGetOrganizationIdAttributeTypeOk(o.OrganizationId)
-}
-
-// SetOrganizationId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) SetOrganizationId(v OrganizationResponseGetOrganizationIdRetType) {
- setOrganizationResponseGetOrganizationIdAttributeType(&o.OrganizationId, v)
-}
-
-// GetUpdateTime returns the UpdateTime field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) GetUpdateTime() (ret OrganizationResponseGetUpdateTimeRetType) {
- ret, _ = o.GetUpdateTimeOk()
- return ret
-}
-
-// GetUpdateTimeOk returns a tuple with the UpdateTime field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) GetUpdateTimeOk() (ret OrganizationResponseGetUpdateTimeRetType, ok bool) {
- return getOrganizationResponseGetUpdateTimeAttributeTypeOk(o.UpdateTime)
-}
-
-// SetUpdateTime sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *OrganizationResponse) SetUpdateTime(v OrganizationResponseGetUpdateTimeRetType) {
- setOrganizationResponseGetUpdateTimeAttributeType(&o.UpdateTime, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o OrganizationResponse) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getOrganizationResponseGetContainerIdAttributeTypeOk(o.ContainerId); ok {
- toSerialize["ContainerId"] = val
- }
- if val, ok := getOrganizationResponseGetCreationTimeAttributeTypeOk(o.CreationTime); ok {
- toSerialize["CreationTime"] = val
- }
- if val, ok := getOrganizationResponseGetLabelsAttributeTypeOk(o.Labels); ok {
- toSerialize["Labels"] = val
- }
- if val, ok := getOrganizationResponseGetLifecycleStateAttributeTypeOk(o.LifecycleState); ok {
- toSerialize["LifecycleState"] = val
- }
- if val, ok := getOrganizationResponseGetNameAttributeTypeOk(o.Name); ok {
- toSerialize["Name"] = val
- }
- if val, ok := getOrganizationResponseGetOrganizationIdAttributeTypeOk(o.OrganizationId); ok {
- toSerialize["OrganizationId"] = val
- }
- if val, ok := getOrganizationResponseGetUpdateTimeAttributeTypeOk(o.UpdateTime); ok {
- toSerialize["UpdateTime"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableOrganizationResponse struct {
- value *OrganizationResponse
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableOrganizationResponse) Get() *OrganizationResponse {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableOrganizationResponse) Set(val *OrganizationResponse) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableOrganizationResponse) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableOrganizationResponse) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableOrganizationResponse(val *OrganizationResponse) *NullableOrganizationResponse {
- return &NullableOrganizationResponse{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableOrganizationResponse) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableOrganizationResponse) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_organization_response_test.go b/services/resourcemanager/model_organization_response_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_organization_response_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_parent.go b/services/resourcemanager/model_parent.go
deleted file mode 100644
index 2d9a84bf6f..0000000000
--- a/services/resourcemanager/model_parent.go
+++ /dev/null
@@ -1,379 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the Parent type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &Parent{}
-
-/*
- types and functions for containerId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentGetContainerIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getParentGetContainerIdAttributeTypeOk(arg ParentGetContainerIdAttributeType) (ret ParentGetContainerIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setParentGetContainerIdAttributeType(arg *ParentGetContainerIdAttributeType, val ParentGetContainerIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentGetContainerIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentGetContainerIdRetType = string
-
-/*
- types and functions for id
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentGetIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getParentGetIdAttributeTypeOk(arg ParentGetIdAttributeType) (ret ParentGetIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setParentGetIdAttributeType(arg *ParentGetIdAttributeType, val ParentGetIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentGetIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentGetIdRetType = string
-
-/*
- types and functions for type
-*/
-
-// isEnum
-
-// ParentTypes Container type of parent container.
-// value type for enums
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentTypes string
-
-// List of Type
-const (
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- PARENTTYPE_ORGANIZATION ParentTypes = "ORGANIZATION"
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- PARENTTYPE_FOLDER ParentTypes = "FOLDER"
-)
-
-// All allowed values of Parent enum
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-var AllowedParentTypesEnumValues = []ParentTypes{
- "ORGANIZATION",
- "FOLDER",
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *ParentTypes) UnmarshalJSON(src []byte) error {
- // use a type alias to prevent infinite recursion during unmarshal,
- // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers
- type TmpJson ParentTypes
- var value TmpJson
- err := json.Unmarshal(src, &value)
- if err != nil {
- return err
- }
- // Allow unmarshalling zero value for testing purposes
- var zeroValue TmpJson
- if value == zeroValue {
- return nil
- }
- enumTypeValue := ParentTypes(value)
- for _, existing := range AllowedParentTypesEnumValues {
- if existing == enumTypeValue {
- *v = enumTypeValue
- return nil
- }
- }
-
- return fmt.Errorf("%+v is not a valid Parent", value)
-}
-
-// NewParentTypesFromValue returns a pointer to a valid ParentTypes
-// for the value passed as argument, or an error if the value passed is not allowed by the enum
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewParentTypesFromValue(v ParentTypes) (*ParentTypes, error) {
- ev := ParentTypes(v)
- if ev.IsValid() {
- return &ev, nil
- } else {
- return nil, fmt.Errorf("invalid value '%v' for ParentTypes: valid values are %v", v, AllowedParentTypesEnumValues)
- }
-}
-
-// IsValid return true if the value is valid for the enum, false otherwise
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v ParentTypes) IsValid() bool {
- for _, existing := range AllowedParentTypesEnumValues {
- if existing == v {
- return true
- }
- }
- return false
-}
-
-// Ptr returns reference to TypeTypes value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v ParentTypes) Ptr() *ParentTypes {
- return &v
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableParentTypes struct {
- value *ParentTypes
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableParentTypes) Get() *ParentTypes {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableParentTypes) Set(val *ParentTypes) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableParentTypes) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableParentTypes) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableParentTypes(val *ParentTypes) *NullableParentTypes {
- return &NullableParentTypes{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableParentTypes) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableParentTypes) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentGetTypeAttributeType = *ParentTypes
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentGetTypeArgType = ParentTypes
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentGetTypeRetType = ParentTypes
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getParentGetTypeAttributeTypeOk(arg ParentGetTypeAttributeType) (ret ParentGetTypeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setParentGetTypeAttributeType(arg *ParentGetTypeAttributeType, val ParentGetTypeRetType) {
- *arg = &val
-}
-
-// Parent Parent container.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type Parent struct {
- // User-friendly identifier of either organization or folder (will replace id).
- // REQUIRED
- ContainerId ParentGetContainerIdAttributeType `json:"containerId" required:"true"`
- // Identifier of either organization or folder.
- // REQUIRED
- Id ParentGetIdAttributeType `json:"id" required:"true"`
- // Container type of parent container.
- // REQUIRED
- Type ParentGetTypeAttributeType `json:"type" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _Parent Parent
-
-// NewParent instantiates a new Parent 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewParent(containerId ParentGetContainerIdArgType, id ParentGetIdArgType, types ParentGetTypeArgType) *Parent {
- this := Parent{}
- setParentGetContainerIdAttributeType(&this.ContainerId, containerId)
- setParentGetIdAttributeType(&this.Id, id)
- setParentGetTypeAttributeType(&this.Type, types)
- return &this
-}
-
-// NewParentWithDefaults instantiates a new Parent 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewParentWithDefaults() *Parent {
- this := Parent{}
- return &this
-}
-
-// GetContainerId returns the ContainerId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Parent) GetContainerId() (ret ParentGetContainerIdRetType) {
- ret, _ = o.GetContainerIdOk()
- return ret
-}
-
-// GetContainerIdOk returns a tuple with the ContainerId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Parent) GetContainerIdOk() (ret ParentGetContainerIdRetType, ok bool) {
- return getParentGetContainerIdAttributeTypeOk(o.ContainerId)
-}
-
-// SetContainerId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Parent) SetContainerId(v ParentGetContainerIdRetType) {
- setParentGetContainerIdAttributeType(&o.ContainerId, v)
-}
-
-// GetId returns the Id field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Parent) GetId() (ret ParentGetIdRetType) {
- ret, _ = o.GetIdOk()
- return ret
-}
-
-// GetIdOk returns a tuple with the Id field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Parent) GetIdOk() (ret ParentGetIdRetType, ok bool) {
- return getParentGetIdAttributeTypeOk(o.Id)
-}
-
-// SetId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Parent) SetId(v ParentGetIdRetType) {
- setParentGetIdAttributeType(&o.Id, v)
-}
-
-// GetType returns the Type field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Parent) GetType() (ret ParentGetTypeRetType) {
- ret, _ = o.GetTypeOk()
- return ret
-}
-
-// GetTypeOk returns a tuple with the Type field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Parent) GetTypeOk() (ret ParentGetTypeRetType, ok bool) {
- return getParentGetTypeAttributeTypeOk(o.Type)
-}
-
-// SetType sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Parent) SetType(v ParentGetTypeRetType) {
- setParentGetTypeAttributeType(&o.Type, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o Parent) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getParentGetContainerIdAttributeTypeOk(o.ContainerId); ok {
- toSerialize["ContainerId"] = val
- }
- if val, ok := getParentGetIdAttributeTypeOk(o.Id); ok {
- toSerialize["Id"] = val
- }
- if val, ok := getParentGetTypeAttributeTypeOk(o.Type); ok {
- toSerialize["Type"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableParent struct {
- value *Parent
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableParent) Get() *Parent {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableParent) Set(val *Parent) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableParent) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableParent) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableParent(val *Parent) *NullableParent {
- return &NullableParent{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableParent) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableParent) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_parent_list_inner.go b/services/resourcemanager/model_parent_list_inner.go
deleted file mode 100644
index ba5ea2785c..0000000000
--- a/services/resourcemanager/model_parent_list_inner.go
+++ /dev/null
@@ -1,551 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the ParentListInner type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &ParentListInner{}
-
-/*
- types and functions for containerId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetContainerIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getParentListInnerGetContainerIdAttributeTypeOk(arg ParentListInnerGetContainerIdAttributeType) (ret ParentListInnerGetContainerIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setParentListInnerGetContainerIdAttributeType(arg *ParentListInnerGetContainerIdAttributeType, val ParentListInnerGetContainerIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetContainerIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetContainerIdRetType = string
-
-/*
- types and functions for containerParentId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetContainerParentIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getParentListInnerGetContainerParentIdAttributeTypeOk(arg ParentListInnerGetContainerParentIdAttributeType) (ret ParentListInnerGetContainerParentIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setParentListInnerGetContainerParentIdAttributeType(arg *ParentListInnerGetContainerParentIdAttributeType, val ParentListInnerGetContainerParentIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetContainerParentIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetContainerParentIdRetType = string
-
-/*
- types and functions for id
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getParentListInnerGetIdAttributeTypeOk(arg ParentListInnerGetIdAttributeType) (ret ParentListInnerGetIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setParentListInnerGetIdAttributeType(arg *ParentListInnerGetIdAttributeType, val ParentListInnerGetIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetIdRetType = string
-
-/*
- types and functions for name
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetNameAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getParentListInnerGetNameAttributeTypeOk(arg ParentListInnerGetNameAttributeType) (ret ParentListInnerGetNameRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setParentListInnerGetNameAttributeType(arg *ParentListInnerGetNameAttributeType, val ParentListInnerGetNameRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetNameArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetNameRetType = string
-
-/*
- types and functions for parentId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetParentIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getParentListInnerGetParentIdAttributeTypeOk(arg ParentListInnerGetParentIdAttributeType) (ret ParentListInnerGetParentIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setParentListInnerGetParentIdAttributeType(arg *ParentListInnerGetParentIdAttributeType, val ParentListInnerGetParentIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetParentIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetParentIdRetType = string
-
-/*
- types and functions for type
-*/
-
-// isEnum
-
-// ParentListInnerTypes Parent container type.
-// value type for enums
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerTypes string
-
-// List of Type
-const (
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- PARENTLISTINNERTYPE_FOLDER ParentListInnerTypes = "FOLDER"
- // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
- PARENTLISTINNERTYPE_ORGANIZATION ParentListInnerTypes = "ORGANIZATION"
-)
-
-// All allowed values of ParentListInner enum
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-var AllowedParentListInnerTypesEnumValues = []ParentListInnerTypes{
- "FOLDER",
- "ORGANIZATION",
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *ParentListInnerTypes) UnmarshalJSON(src []byte) error {
- // use a type alias to prevent infinite recursion during unmarshal,
- // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers
- type TmpJson ParentListInnerTypes
- var value TmpJson
- err := json.Unmarshal(src, &value)
- if err != nil {
- return err
- }
- // Allow unmarshalling zero value for testing purposes
- var zeroValue TmpJson
- if value == zeroValue {
- return nil
- }
- enumTypeValue := ParentListInnerTypes(value)
- for _, existing := range AllowedParentListInnerTypesEnumValues {
- if existing == enumTypeValue {
- *v = enumTypeValue
- return nil
- }
- }
-
- return fmt.Errorf("%+v is not a valid ParentListInner", value)
-}
-
-// NewParentListInnerTypesFromValue returns a pointer to a valid ParentListInnerTypes
-// for the value passed as argument, or an error if the value passed is not allowed by the enum
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewParentListInnerTypesFromValue(v ParentListInnerTypes) (*ParentListInnerTypes, error) {
- ev := ParentListInnerTypes(v)
- if ev.IsValid() {
- return &ev, nil
- } else {
- return nil, fmt.Errorf("invalid value '%v' for ParentListInnerTypes: valid values are %v", v, AllowedParentListInnerTypesEnumValues)
- }
-}
-
-// IsValid return true if the value is valid for the enum, false otherwise
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v ParentListInnerTypes) IsValid() bool {
- for _, existing := range AllowedParentListInnerTypesEnumValues {
- if existing == v {
- return true
- }
- }
- return false
-}
-
-// Ptr returns reference to TypeTypes value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v ParentListInnerTypes) Ptr() *ParentListInnerTypes {
- return &v
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableParentListInnerTypes struct {
- value *ParentListInnerTypes
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableParentListInnerTypes) Get() *ParentListInnerTypes {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableParentListInnerTypes) Set(val *ParentListInnerTypes) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableParentListInnerTypes) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableParentListInnerTypes) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableParentListInnerTypes(val *ParentListInnerTypes) *NullableParentListInnerTypes {
- return &NullableParentListInnerTypes{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableParentListInnerTypes) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableParentListInnerTypes) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetTypeAttributeType = *ParentListInnerTypes
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetTypeArgType = ParentListInnerTypes
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInnerGetTypeRetType = ParentListInnerTypes
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getParentListInnerGetTypeAttributeTypeOk(arg ParentListInnerGetTypeAttributeType) (ret ParentListInnerGetTypeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setParentListInnerGetTypeAttributeType(arg *ParentListInnerGetTypeAttributeType, val ParentListInnerGetTypeRetType) {
- *arg = &val
-}
-
-// ParentListInner struct for ParentListInner
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ParentListInner struct {
- // User-friendly identifier of either organization or folder (will replace id).
- // REQUIRED
- ContainerId ParentListInnerGetContainerIdAttributeType `json:"containerId" required:"true"`
- // User-friendly parent identifier of either organization or folder (will replace parentId).
- ContainerParentId ParentListInnerGetContainerParentIdAttributeType `json:"containerParentId,omitempty"`
- // Identifier.
- // REQUIRED
- Id ParentListInnerGetIdAttributeType `json:"id" required:"true"`
- // Parent container name.
- // REQUIRED
- Name ParentListInnerGetNameAttributeType `json:"name" required:"true"`
- // Identifier of the parent resource container.
- ParentId ParentListInnerGetParentIdAttributeType `json:"parentId,omitempty"`
- // Parent container type.
- // REQUIRED
- Type ParentListInnerGetTypeAttributeType `json:"type" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _ParentListInner ParentListInner
-
-// NewParentListInner instantiates a new ParentListInner 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewParentListInner(containerId ParentListInnerGetContainerIdArgType, id ParentListInnerGetIdArgType, name ParentListInnerGetNameArgType, types ParentListInnerGetTypeArgType) *ParentListInner {
- this := ParentListInner{}
- setParentListInnerGetContainerIdAttributeType(&this.ContainerId, containerId)
- setParentListInnerGetIdAttributeType(&this.Id, id)
- setParentListInnerGetNameAttributeType(&this.Name, name)
- setParentListInnerGetTypeAttributeType(&this.Type, types)
- return &this
-}
-
-// NewParentListInnerWithDefaults instantiates a new ParentListInner 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewParentListInnerWithDefaults() *ParentListInner {
- this := ParentListInner{}
- return &this
-}
-
-// GetContainerId returns the ContainerId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) GetContainerId() (ret ParentListInnerGetContainerIdRetType) {
- ret, _ = o.GetContainerIdOk()
- return ret
-}
-
-// GetContainerIdOk returns a tuple with the ContainerId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) GetContainerIdOk() (ret ParentListInnerGetContainerIdRetType, ok bool) {
- return getParentListInnerGetContainerIdAttributeTypeOk(o.ContainerId)
-}
-
-// SetContainerId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) SetContainerId(v ParentListInnerGetContainerIdRetType) {
- setParentListInnerGetContainerIdAttributeType(&o.ContainerId, v)
-}
-
-// GetContainerParentId returns the ContainerParentId field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) GetContainerParentId() (res ParentListInnerGetContainerParentIdRetType) {
- res, _ = o.GetContainerParentIdOk()
- return
-}
-
-// GetContainerParentIdOk returns a tuple with the ContainerParentId field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) GetContainerParentIdOk() (ret ParentListInnerGetContainerParentIdRetType, ok bool) {
- return getParentListInnerGetContainerParentIdAttributeTypeOk(o.ContainerParentId)
-}
-
-// HasContainerParentId returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) HasContainerParentId() bool {
- _, ok := o.GetContainerParentIdOk()
- return ok
-}
-
-// SetContainerParentId gets a reference to the given string and assigns it to the ContainerParentId field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) SetContainerParentId(v ParentListInnerGetContainerParentIdRetType) {
- setParentListInnerGetContainerParentIdAttributeType(&o.ContainerParentId, v)
-}
-
-// GetId returns the Id field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) GetId() (ret ParentListInnerGetIdRetType) {
- ret, _ = o.GetIdOk()
- return ret
-}
-
-// GetIdOk returns a tuple with the Id field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) GetIdOk() (ret ParentListInnerGetIdRetType, ok bool) {
- return getParentListInnerGetIdAttributeTypeOk(o.Id)
-}
-
-// SetId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) SetId(v ParentListInnerGetIdRetType) {
- setParentListInnerGetIdAttributeType(&o.Id, v)
-}
-
-// GetName returns the Name field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) GetName() (ret ParentListInnerGetNameRetType) {
- ret, _ = o.GetNameOk()
- return ret
-}
-
-// GetNameOk returns a tuple with the Name field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) GetNameOk() (ret ParentListInnerGetNameRetType, ok bool) {
- return getParentListInnerGetNameAttributeTypeOk(o.Name)
-}
-
-// SetName sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) SetName(v ParentListInnerGetNameRetType) {
- setParentListInnerGetNameAttributeType(&o.Name, v)
-}
-
-// GetParentId returns the ParentId field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) GetParentId() (res ParentListInnerGetParentIdRetType) {
- res, _ = o.GetParentIdOk()
- return
-}
-
-// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) GetParentIdOk() (ret ParentListInnerGetParentIdRetType, ok bool) {
- return getParentListInnerGetParentIdAttributeTypeOk(o.ParentId)
-}
-
-// HasParentId returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) HasParentId() bool {
- _, ok := o.GetParentIdOk()
- return ok
-}
-
-// SetParentId gets a reference to the given string and assigns it to the ParentId field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) SetParentId(v ParentListInnerGetParentIdRetType) {
- setParentListInnerGetParentIdAttributeType(&o.ParentId, v)
-}
-
-// GetType returns the Type field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) GetType() (ret ParentListInnerGetTypeRetType) {
- ret, _ = o.GetTypeOk()
- return ret
-}
-
-// GetTypeOk returns a tuple with the Type field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) GetTypeOk() (ret ParentListInnerGetTypeRetType, ok bool) {
- return getParentListInnerGetTypeAttributeTypeOk(o.Type)
-}
-
-// SetType sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *ParentListInner) SetType(v ParentListInnerGetTypeRetType) {
- setParentListInnerGetTypeAttributeType(&o.Type, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o ParentListInner) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getParentListInnerGetContainerIdAttributeTypeOk(o.ContainerId); ok {
- toSerialize["ContainerId"] = val
- }
- if val, ok := getParentListInnerGetContainerParentIdAttributeTypeOk(o.ContainerParentId); ok {
- toSerialize["ContainerParentId"] = val
- }
- if val, ok := getParentListInnerGetIdAttributeTypeOk(o.Id); ok {
- toSerialize["Id"] = val
- }
- if val, ok := getParentListInnerGetNameAttributeTypeOk(o.Name); ok {
- toSerialize["Name"] = val
- }
- if val, ok := getParentListInnerGetParentIdAttributeTypeOk(o.ParentId); ok {
- toSerialize["ParentId"] = val
- }
- if val, ok := getParentListInnerGetTypeAttributeTypeOk(o.Type); ok {
- toSerialize["Type"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableParentListInner struct {
- value *ParentListInner
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableParentListInner) Get() *ParentListInner {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableParentListInner) Set(val *ParentListInner) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableParentListInner) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableParentListInner) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableParentListInner(val *ParentListInner) *NullableParentListInner {
- return &NullableParentListInner{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableParentListInner) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableParentListInner) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_parent_list_inner_test.go b/services/resourcemanager/model_parent_list_inner_test.go
deleted file mode 100644
index 9703fceb9c..0000000000
--- a/services/resourcemanager/model_parent_list_inner_test.go
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
-
-import (
- "testing"
-)
-
-// isEnum
-
-func TestParentListInnerTypes_UnmarshalJSON(t *testing.T) {
- type args struct {
- src []byte
- }
- tests := []struct {
- name string
- args args
- wantErr bool
- }{
- {
- name: `success - possible enum value no. 1`,
- args: args{
- src: []byte(`"FOLDER"`),
- },
- wantErr: false,
- },
- {
- name: `success - possible enum value no. 2`,
- args: args{
- src: []byte(`"ORGANIZATION"`),
- },
- wantErr: false,
- },
- {
- name: "fail",
- args: args{
- src: []byte("\"FOOBAR\""),
- },
- wantErr: true,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- v := ParentListInnerTypes("")
- if err := v.UnmarshalJSON(tt.args.src); (err != nil) != tt.wantErr {
- t.Errorf("UnmarshalJSON() error = %v, wantErr %v", err, tt.wantErr)
- }
- })
- }
-}
diff --git a/services/resourcemanager/model_parent_test.go b/services/resourcemanager/model_parent_test.go
deleted file mode 100644
index d085747a13..0000000000
--- a/services/resourcemanager/model_parent_test.go
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
-
-import (
- "testing"
-)
-
-// isEnum
-
-func TestParentTypes_UnmarshalJSON(t *testing.T) {
- type args struct {
- src []byte
- }
- tests := []struct {
- name string
- args args
- wantErr bool
- }{
- {
- name: `success - possible enum value no. 1`,
- args: args{
- src: []byte(`"ORGANIZATION"`),
- },
- wantErr: false,
- },
- {
- name: `success - possible enum value no. 2`,
- args: args{
- src: []byte(`"FOLDER"`),
- },
- wantErr: false,
- },
- {
- name: "fail",
- args: args{
- src: []byte("\"FOOBAR\""),
- },
- wantErr: true,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- v := ParentTypes("")
- if err := v.UnmarshalJSON(tt.args.src); (err != nil) != tt.wantErr {
- t.Errorf("UnmarshalJSON() error = %v, wantErr %v", err, tt.wantErr)
- }
- })
- }
-}
diff --git a/services/resourcemanager/model_partial_update_folder_payload.go b/services/resourcemanager/model_partial_update_folder_payload.go
deleted file mode 100644
index f4a0a86427..0000000000
--- a/services/resourcemanager/model_partial_update_folder_payload.go
+++ /dev/null
@@ -1,270 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
-)
-
-// checks if the PartialUpdateFolderPayload type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PartialUpdateFolderPayload{}
-
-/*
- types and functions for containerParentId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateFolderPayloadGetContainerParentIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getPartialUpdateFolderPayloadGetContainerParentIdAttributeTypeOk(arg PartialUpdateFolderPayloadGetContainerParentIdAttributeType) (ret PartialUpdateFolderPayloadGetContainerParentIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setPartialUpdateFolderPayloadGetContainerParentIdAttributeType(arg *PartialUpdateFolderPayloadGetContainerParentIdAttributeType, val PartialUpdateFolderPayloadGetContainerParentIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateFolderPayloadGetContainerParentIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateFolderPayloadGetContainerParentIdRetType = string
-
-/*
- types and functions for labels
-*/
-
-// isContainer
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateFolderPayloadGetLabelsAttributeType = *map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateFolderPayloadGetLabelsArgType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateFolderPayloadGetLabelsRetType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getPartialUpdateFolderPayloadGetLabelsAttributeTypeOk(arg PartialUpdateFolderPayloadGetLabelsAttributeType) (ret PartialUpdateFolderPayloadGetLabelsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setPartialUpdateFolderPayloadGetLabelsAttributeType(arg *PartialUpdateFolderPayloadGetLabelsAttributeType, val PartialUpdateFolderPayloadGetLabelsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for name
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateFolderPayloadGetNameAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getPartialUpdateFolderPayloadGetNameAttributeTypeOk(arg PartialUpdateFolderPayloadGetNameAttributeType) (ret PartialUpdateFolderPayloadGetNameRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setPartialUpdateFolderPayloadGetNameAttributeType(arg *PartialUpdateFolderPayloadGetNameAttributeType, val PartialUpdateFolderPayloadGetNameRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateFolderPayloadGetNameArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateFolderPayloadGetNameRetType = string
-
-// PartialUpdateFolderPayload struct for PartialUpdateFolderPayload
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateFolderPayload struct {
- // New parent identifier for the resource container - containerId as well as UUID identifier is supported.
- ContainerParentId PartialUpdateFolderPayloadGetContainerParentIdAttributeType `json:"containerParentId,omitempty"`
- // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. Setting an individual label's value to `null` removes/deletes that label from the resource. * **Key:** Must be between 1 and 63 characters long (excluding an optional domain prefix). Must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May be empty (\"\"). If non-empty, must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). > Note: Additional naming restrictions may apply depending on your specific organization.*
- Labels PartialUpdateFolderPayloadGetLabelsAttributeType `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 PartialUpdateFolderPayloadGetNameAttributeType `json:"name,omitempty"`
-}
-
-// NewPartialUpdateFolderPayload instantiates a new PartialUpdateFolderPayload 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewPartialUpdateFolderPayload() *PartialUpdateFolderPayload {
- this := PartialUpdateFolderPayload{}
- return &this
-}
-
-// NewPartialUpdateFolderPayloadWithDefaults instantiates a new PartialUpdateFolderPayload 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewPartialUpdateFolderPayloadWithDefaults() *PartialUpdateFolderPayload {
- this := PartialUpdateFolderPayload{}
- return &this
-}
-
-// GetContainerParentId returns the ContainerParentId field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateFolderPayload) GetContainerParentId() (res PartialUpdateFolderPayloadGetContainerParentIdRetType) {
- res, _ = o.GetContainerParentIdOk()
- return
-}
-
-// GetContainerParentIdOk returns a tuple with the ContainerParentId field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateFolderPayload) GetContainerParentIdOk() (ret PartialUpdateFolderPayloadGetContainerParentIdRetType, ok bool) {
- return getPartialUpdateFolderPayloadGetContainerParentIdAttributeTypeOk(o.ContainerParentId)
-}
-
-// HasContainerParentId returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateFolderPayload) HasContainerParentId() bool {
- _, ok := o.GetContainerParentIdOk()
- return ok
-}
-
-// SetContainerParentId gets a reference to the given string and assigns it to the ContainerParentId field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateFolderPayload) SetContainerParentId(v PartialUpdateFolderPayloadGetContainerParentIdRetType) {
- setPartialUpdateFolderPayloadGetContainerParentIdAttributeType(&o.ContainerParentId, v)
-}
-
-// GetLabels returns the Labels field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateFolderPayload) GetLabels() (res PartialUpdateFolderPayloadGetLabelsRetType) {
- res, _ = o.GetLabelsOk()
- return
-}
-
-// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateFolderPayload) GetLabelsOk() (ret PartialUpdateFolderPayloadGetLabelsRetType, ok bool) {
- return getPartialUpdateFolderPayloadGetLabelsAttributeTypeOk(o.Labels)
-}
-
-// HasLabels returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateFolderPayload) HasLabels() bool {
- _, ok := o.GetLabelsOk()
- return ok
-}
-
-// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateFolderPayload) SetLabels(v PartialUpdateFolderPayloadGetLabelsRetType) {
- setPartialUpdateFolderPayloadGetLabelsAttributeType(&o.Labels, v)
-}
-
-// GetName returns the Name field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateFolderPayload) GetName() (res PartialUpdateFolderPayloadGetNameRetType) {
- res, _ = o.GetNameOk()
- return
-}
-
-// GetNameOk returns a tuple with the Name field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateFolderPayload) GetNameOk() (ret PartialUpdateFolderPayloadGetNameRetType, ok bool) {
- return getPartialUpdateFolderPayloadGetNameAttributeTypeOk(o.Name)
-}
-
-// HasName returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateFolderPayload) HasName() bool {
- _, ok := o.GetNameOk()
- return ok
-}
-
-// SetName gets a reference to the given string and assigns it to the Name field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateFolderPayload) SetName(v PartialUpdateFolderPayloadGetNameRetType) {
- setPartialUpdateFolderPayloadGetNameAttributeType(&o.Name, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o PartialUpdateFolderPayload) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getPartialUpdateFolderPayloadGetContainerParentIdAttributeTypeOk(o.ContainerParentId); ok {
- toSerialize["ContainerParentId"] = val
- }
- if val, ok := getPartialUpdateFolderPayloadGetLabelsAttributeTypeOk(o.Labels); ok {
- toSerialize["Labels"] = val
- }
- if val, ok := getPartialUpdateFolderPayloadGetNameAttributeTypeOk(o.Name); ok {
- toSerialize["Name"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullablePartialUpdateFolderPayload struct {
- value *PartialUpdateFolderPayload
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullablePartialUpdateFolderPayload) Get() *PartialUpdateFolderPayload {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullablePartialUpdateFolderPayload) Set(val *PartialUpdateFolderPayload) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullablePartialUpdateFolderPayload) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullablePartialUpdateFolderPayload) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullablePartialUpdateFolderPayload(val *PartialUpdateFolderPayload) *NullablePartialUpdateFolderPayload {
- return &NullablePartialUpdateFolderPayload{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullablePartialUpdateFolderPayload) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullablePartialUpdateFolderPayload) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_partial_update_folder_payload_test.go b/services/resourcemanager/model_partial_update_folder_payload_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_partial_update_folder_payload_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_partial_update_organization_payload.go b/services/resourcemanager/model_partial_update_organization_payload.go
deleted file mode 100644
index a39e33b706..0000000000
--- a/services/resourcemanager/model_partial_update_organization_payload.go
+++ /dev/null
@@ -1,211 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
-)
-
-// checks if the PartialUpdateOrganizationPayload type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PartialUpdateOrganizationPayload{}
-
-/*
- types and functions for labels
-*/
-
-// isContainer
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateOrganizationPayloadGetLabelsAttributeType = *map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateOrganizationPayloadGetLabelsArgType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateOrganizationPayloadGetLabelsRetType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getPartialUpdateOrganizationPayloadGetLabelsAttributeTypeOk(arg PartialUpdateOrganizationPayloadGetLabelsAttributeType) (ret PartialUpdateOrganizationPayloadGetLabelsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setPartialUpdateOrganizationPayloadGetLabelsAttributeType(arg *PartialUpdateOrganizationPayloadGetLabelsAttributeType, val PartialUpdateOrganizationPayloadGetLabelsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for name
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateOrganizationPayloadGetNameAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getPartialUpdateOrganizationPayloadGetNameAttributeTypeOk(arg PartialUpdateOrganizationPayloadGetNameAttributeType) (ret PartialUpdateOrganizationPayloadGetNameRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setPartialUpdateOrganizationPayloadGetNameAttributeType(arg *PartialUpdateOrganizationPayloadGetNameAttributeType, val PartialUpdateOrganizationPayloadGetNameRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateOrganizationPayloadGetNameArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateOrganizationPayloadGetNameRetType = string
-
-// PartialUpdateOrganizationPayload struct for PartialUpdateOrganizationPayload
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateOrganizationPayload struct {
- // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. Setting an individual label's value to `null` removes/deletes that label from the resource. * **Key:** Must be between 1 and 63 characters long (excluding an optional domain prefix). Must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May be empty (\"\"). If non-empty, must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). > Note: Additional naming restrictions may apply depending on your specific organization.*
- Labels PartialUpdateOrganizationPayloadGetLabelsAttributeType `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 PartialUpdateOrganizationPayloadGetNameAttributeType `json:"name,omitempty"`
-}
-
-// NewPartialUpdateOrganizationPayload instantiates a new PartialUpdateOrganizationPayload 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewPartialUpdateOrganizationPayload() *PartialUpdateOrganizationPayload {
- this := PartialUpdateOrganizationPayload{}
- return &this
-}
-
-// NewPartialUpdateOrganizationPayloadWithDefaults instantiates a new PartialUpdateOrganizationPayload 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewPartialUpdateOrganizationPayloadWithDefaults() *PartialUpdateOrganizationPayload {
- this := PartialUpdateOrganizationPayload{}
- return &this
-}
-
-// GetLabels returns the Labels field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateOrganizationPayload) GetLabels() (res PartialUpdateOrganizationPayloadGetLabelsRetType) {
- res, _ = o.GetLabelsOk()
- return
-}
-
-// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateOrganizationPayload) GetLabelsOk() (ret PartialUpdateOrganizationPayloadGetLabelsRetType, ok bool) {
- return getPartialUpdateOrganizationPayloadGetLabelsAttributeTypeOk(o.Labels)
-}
-
-// HasLabels returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateOrganizationPayload) HasLabels() bool {
- _, ok := o.GetLabelsOk()
- return ok
-}
-
-// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateOrganizationPayload) SetLabels(v PartialUpdateOrganizationPayloadGetLabelsRetType) {
- setPartialUpdateOrganizationPayloadGetLabelsAttributeType(&o.Labels, v)
-}
-
-// GetName returns the Name field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateOrganizationPayload) GetName() (res PartialUpdateOrganizationPayloadGetNameRetType) {
- res, _ = o.GetNameOk()
- return
-}
-
-// GetNameOk returns a tuple with the Name field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateOrganizationPayload) GetNameOk() (ret PartialUpdateOrganizationPayloadGetNameRetType, ok bool) {
- return getPartialUpdateOrganizationPayloadGetNameAttributeTypeOk(o.Name)
-}
-
-// HasName returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateOrganizationPayload) HasName() bool {
- _, ok := o.GetNameOk()
- return ok
-}
-
-// SetName gets a reference to the given string and assigns it to the Name field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateOrganizationPayload) SetName(v PartialUpdateOrganizationPayloadGetNameRetType) {
- setPartialUpdateOrganizationPayloadGetNameAttributeType(&o.Name, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o PartialUpdateOrganizationPayload) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getPartialUpdateOrganizationPayloadGetLabelsAttributeTypeOk(o.Labels); ok {
- toSerialize["Labels"] = val
- }
- if val, ok := getPartialUpdateOrganizationPayloadGetNameAttributeTypeOk(o.Name); ok {
- toSerialize["Name"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullablePartialUpdateOrganizationPayload struct {
- value *PartialUpdateOrganizationPayload
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullablePartialUpdateOrganizationPayload) Get() *PartialUpdateOrganizationPayload {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullablePartialUpdateOrganizationPayload) Set(val *PartialUpdateOrganizationPayload) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullablePartialUpdateOrganizationPayload) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullablePartialUpdateOrganizationPayload) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullablePartialUpdateOrganizationPayload(val *PartialUpdateOrganizationPayload) *NullablePartialUpdateOrganizationPayload {
- return &NullablePartialUpdateOrganizationPayload{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullablePartialUpdateOrganizationPayload) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullablePartialUpdateOrganizationPayload) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_partial_update_organization_payload_test.go b/services/resourcemanager/model_partial_update_organization_payload_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_partial_update_organization_payload_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_partial_update_project_payload.go b/services/resourcemanager/model_partial_update_project_payload.go
deleted file mode 100644
index fa9ff5a6a7..0000000000
--- a/services/resourcemanager/model_partial_update_project_payload.go
+++ /dev/null
@@ -1,270 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
-)
-
-// checks if the PartialUpdateProjectPayload type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PartialUpdateProjectPayload{}
-
-/*
- types and functions for containerParentId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateProjectPayloadGetContainerParentIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getPartialUpdateProjectPayloadGetContainerParentIdAttributeTypeOk(arg PartialUpdateProjectPayloadGetContainerParentIdAttributeType) (ret PartialUpdateProjectPayloadGetContainerParentIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setPartialUpdateProjectPayloadGetContainerParentIdAttributeType(arg *PartialUpdateProjectPayloadGetContainerParentIdAttributeType, val PartialUpdateProjectPayloadGetContainerParentIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateProjectPayloadGetContainerParentIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateProjectPayloadGetContainerParentIdRetType = string
-
-/*
- types and functions for labels
-*/
-
-// isContainer
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateProjectPayloadGetLabelsAttributeType = *map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateProjectPayloadGetLabelsArgType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateProjectPayloadGetLabelsRetType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getPartialUpdateProjectPayloadGetLabelsAttributeTypeOk(arg PartialUpdateProjectPayloadGetLabelsAttributeType) (ret PartialUpdateProjectPayloadGetLabelsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setPartialUpdateProjectPayloadGetLabelsAttributeType(arg *PartialUpdateProjectPayloadGetLabelsAttributeType, val PartialUpdateProjectPayloadGetLabelsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for name
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateProjectPayloadGetNameAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getPartialUpdateProjectPayloadGetNameAttributeTypeOk(arg PartialUpdateProjectPayloadGetNameAttributeType) (ret PartialUpdateProjectPayloadGetNameRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setPartialUpdateProjectPayloadGetNameAttributeType(arg *PartialUpdateProjectPayloadGetNameAttributeType, val PartialUpdateProjectPayloadGetNameRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateProjectPayloadGetNameArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateProjectPayloadGetNameRetType = string
-
-// PartialUpdateProjectPayload struct for PartialUpdateProjectPayload
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type PartialUpdateProjectPayload struct {
- // New parent identifier for the resource container - containerId as well as UUID identifier is supported.
- ContainerParentId PartialUpdateProjectPayloadGetContainerParentIdAttributeType `json:"containerParentId,omitempty"`
- // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. Setting an individual label's value to `null` removes/deletes that label from the resource. * **Key:** Must be between 1 and 63 characters long (excluding an optional domain prefix). Must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May be empty (\"\"). If non-empty, must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). > Note: Additional naming restrictions may apply depending on your specific organization.*
- Labels PartialUpdateProjectPayloadGetLabelsAttributeType `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 PartialUpdateProjectPayloadGetNameAttributeType `json:"name,omitempty"`
-}
-
-// NewPartialUpdateProjectPayload instantiates a new PartialUpdateProjectPayload 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewPartialUpdateProjectPayload() *PartialUpdateProjectPayload {
- this := PartialUpdateProjectPayload{}
- return &this
-}
-
-// NewPartialUpdateProjectPayloadWithDefaults instantiates a new PartialUpdateProjectPayload 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewPartialUpdateProjectPayloadWithDefaults() *PartialUpdateProjectPayload {
- this := PartialUpdateProjectPayload{}
- return &this
-}
-
-// GetContainerParentId returns the ContainerParentId field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateProjectPayload) GetContainerParentId() (res PartialUpdateProjectPayloadGetContainerParentIdRetType) {
- res, _ = o.GetContainerParentIdOk()
- return
-}
-
-// GetContainerParentIdOk returns a tuple with the ContainerParentId field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateProjectPayload) GetContainerParentIdOk() (ret PartialUpdateProjectPayloadGetContainerParentIdRetType, ok bool) {
- return getPartialUpdateProjectPayloadGetContainerParentIdAttributeTypeOk(o.ContainerParentId)
-}
-
-// HasContainerParentId returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateProjectPayload) HasContainerParentId() bool {
- _, ok := o.GetContainerParentIdOk()
- return ok
-}
-
-// SetContainerParentId gets a reference to the given string and assigns it to the ContainerParentId field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateProjectPayload) SetContainerParentId(v PartialUpdateProjectPayloadGetContainerParentIdRetType) {
- setPartialUpdateProjectPayloadGetContainerParentIdAttributeType(&o.ContainerParentId, v)
-}
-
-// GetLabels returns the Labels field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateProjectPayload) GetLabels() (res PartialUpdateProjectPayloadGetLabelsRetType) {
- res, _ = o.GetLabelsOk()
- return
-}
-
-// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateProjectPayload) GetLabelsOk() (ret PartialUpdateProjectPayloadGetLabelsRetType, ok bool) {
- return getPartialUpdateProjectPayloadGetLabelsAttributeTypeOk(o.Labels)
-}
-
-// HasLabels returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateProjectPayload) HasLabels() bool {
- _, ok := o.GetLabelsOk()
- return ok
-}
-
-// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateProjectPayload) SetLabels(v PartialUpdateProjectPayloadGetLabelsRetType) {
- setPartialUpdateProjectPayloadGetLabelsAttributeType(&o.Labels, v)
-}
-
-// GetName returns the Name field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateProjectPayload) GetName() (res PartialUpdateProjectPayloadGetNameRetType) {
- res, _ = o.GetNameOk()
- return
-}
-
-// GetNameOk returns a tuple with the Name field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateProjectPayload) GetNameOk() (ret PartialUpdateProjectPayloadGetNameRetType, ok bool) {
- return getPartialUpdateProjectPayloadGetNameAttributeTypeOk(o.Name)
-}
-
-// HasName returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateProjectPayload) HasName() bool {
- _, ok := o.GetNameOk()
- return ok
-}
-
-// SetName gets a reference to the given string and assigns it to the Name field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *PartialUpdateProjectPayload) SetName(v PartialUpdateProjectPayloadGetNameRetType) {
- setPartialUpdateProjectPayloadGetNameAttributeType(&o.Name, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o PartialUpdateProjectPayload) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getPartialUpdateProjectPayloadGetContainerParentIdAttributeTypeOk(o.ContainerParentId); ok {
- toSerialize["ContainerParentId"] = val
- }
- if val, ok := getPartialUpdateProjectPayloadGetLabelsAttributeTypeOk(o.Labels); ok {
- toSerialize["Labels"] = val
- }
- if val, ok := getPartialUpdateProjectPayloadGetNameAttributeTypeOk(o.Name); ok {
- toSerialize["Name"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullablePartialUpdateProjectPayload struct {
- value *PartialUpdateProjectPayload
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullablePartialUpdateProjectPayload) Get() *PartialUpdateProjectPayload {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullablePartialUpdateProjectPayload) Set(val *PartialUpdateProjectPayload) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullablePartialUpdateProjectPayload) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullablePartialUpdateProjectPayload) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullablePartialUpdateProjectPayload(val *PartialUpdateProjectPayload) *NullablePartialUpdateProjectPayload {
- return &NullablePartialUpdateProjectPayload{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullablePartialUpdateProjectPayload) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullablePartialUpdateProjectPayload) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_partial_update_project_payload_test.go b/services/resourcemanager/model_partial_update_project_payload_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_partial_update_project_payload_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/model_project.go b/services/resourcemanager/model_project.go
deleted file mode 100644
index 26593a0b9f..0000000000
--- a/services/resourcemanager/model_project.go
+++ /dev/null
@@ -1,532 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package resourcemanager
-
-import (
- "encoding/json"
- "time"
-)
-
-// checks if the Project type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &Project{}
-
-/*
- types and functions for containerId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetContainerIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getProjectGetContainerIdAttributeTypeOk(arg ProjectGetContainerIdAttributeType) (ret ProjectGetContainerIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setProjectGetContainerIdAttributeType(arg *ProjectGetContainerIdAttributeType, val ProjectGetContainerIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetContainerIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetContainerIdRetType = string
-
-/*
- types and functions for creationTime
-*/
-
-// isDateTime
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetCreationTimeAttributeType = *time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetCreationTimeArgType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetCreationTimeRetType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getProjectGetCreationTimeAttributeTypeOk(arg ProjectGetCreationTimeAttributeType) (ret ProjectGetCreationTimeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setProjectGetCreationTimeAttributeType(arg *ProjectGetCreationTimeAttributeType, val ProjectGetCreationTimeRetType) {
- *arg = &val
-}
-
-/*
- types and functions for labels
-*/
-
-// isContainer
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetLabelsAttributeType = *map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetLabelsArgType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetLabelsRetType = map[string]string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getProjectGetLabelsAttributeTypeOk(arg ProjectGetLabelsAttributeType) (ret ProjectGetLabelsRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setProjectGetLabelsAttributeType(arg *ProjectGetLabelsAttributeType, val ProjectGetLabelsRetType) {
- *arg = &val
-}
-
-/*
- types and functions for lifecycleState
-*/
-
-// isEnumRef
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetLifecycleStateAttributeType = *LifecycleState
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetLifecycleStateArgType = LifecycleState
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetLifecycleStateRetType = LifecycleState
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getProjectGetLifecycleStateAttributeTypeOk(arg ProjectGetLifecycleStateAttributeType) (ret ProjectGetLifecycleStateRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setProjectGetLifecycleStateAttributeType(arg *ProjectGetLifecycleStateAttributeType, val ProjectGetLifecycleStateRetType) {
- *arg = &val
-}
-
-/*
- types and functions for name
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetNameAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getProjectGetNameAttributeTypeOk(arg ProjectGetNameAttributeType) (ret ProjectGetNameRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setProjectGetNameAttributeType(arg *ProjectGetNameAttributeType, val ProjectGetNameRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetNameArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetNameRetType = string
-
-/*
- types and functions for parent
-*/
-
-// isModel
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetParentAttributeType = *Parent
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetParentArgType = Parent
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetParentRetType = Parent
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getProjectGetParentAttributeTypeOk(arg ProjectGetParentAttributeType) (ret ProjectGetParentRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setProjectGetParentAttributeType(arg *ProjectGetParentAttributeType, val ProjectGetParentRetType) {
- *arg = &val
-}
-
-/*
- types and functions for projectId
-*/
-
-// isNotNullableString
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetProjectIdAttributeType = *string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getProjectGetProjectIdAttributeTypeOk(arg ProjectGetProjectIdAttributeType) (ret ProjectGetProjectIdRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setProjectGetProjectIdAttributeType(arg *ProjectGetProjectIdAttributeType, val ProjectGetProjectIdRetType) {
- *arg = &val
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetProjectIdArgType = string
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetProjectIdRetType = string
-
-/*
- types and functions for updateTime
-*/
-
-// isDateTime
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetUpdateTimeAttributeType = *time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetUpdateTimeArgType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type ProjectGetUpdateTimeRetType = time.Time
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func getProjectGetUpdateTimeAttributeTypeOk(arg ProjectGetUpdateTimeAttributeType) (ret ProjectGetUpdateTimeRetType, ok bool) {
- if arg == nil {
- return ret, false
- }
- return *arg, true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func setProjectGetUpdateTimeAttributeType(arg *ProjectGetUpdateTimeAttributeType, val ProjectGetUpdateTimeRetType) {
- *arg = &val
-}
-
-// Project struct for Project
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type Project struct {
- // Globally unique, user-friendly identifier.
- // REQUIRED
- ContainerId ProjectGetContainerIdAttributeType `json:"containerId" required:"true"`
- // Timestamp at which the project was created.
- // REQUIRED
- CreationTime ProjectGetCreationTimeAttributeType `json:"creationTime" required:"true"`
- // Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must be between 1 and 63 characters long (excluding an optional domain prefix). Must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May be empty (\"\"). If non-empty, must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). > Note: Additional naming restrictions may apply depending on your specific organization.*
- Labels ProjectGetLabelsAttributeType `json:"labels,omitempty"`
- // REQUIRED
- LifecycleState ProjectGetLifecycleStateAttributeType `json:"lifecycleState" required:"true"`
- // Project name.
- // REQUIRED
- Name ProjectGetNameAttributeType `json:"name" required:"true"`
- // REQUIRED
- Parent ProjectGetParentAttributeType `json:"parent" required:"true"`
- // Globally unique, project identifier.
- // REQUIRED
- ProjectId ProjectGetProjectIdAttributeType `json:"projectId" required:"true"`
- // Timestamp at which the project was last modified.
- // REQUIRED
- UpdateTime ProjectGetUpdateTimeAttributeType `json:"updateTime" required:"true"`
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type _Project Project
-
-// NewProject instantiates a new Project 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewProject(containerId ProjectGetContainerIdArgType, creationTime ProjectGetCreationTimeArgType, lifecycleState ProjectGetLifecycleStateArgType, name ProjectGetNameArgType, parent ProjectGetParentArgType, projectId ProjectGetProjectIdArgType, updateTime ProjectGetUpdateTimeArgType) *Project {
- this := Project{}
- setProjectGetContainerIdAttributeType(&this.ContainerId, containerId)
- setProjectGetCreationTimeAttributeType(&this.CreationTime, creationTime)
- setProjectGetLifecycleStateAttributeType(&this.LifecycleState, lifecycleState)
- setProjectGetNameAttributeType(&this.Name, name)
- setProjectGetParentAttributeType(&this.Parent, parent)
- setProjectGetProjectIdAttributeType(&this.ProjectId, projectId)
- setProjectGetUpdateTimeAttributeType(&this.UpdateTime, updateTime)
- return &this
-}
-
-// NewProjectWithDefaults instantiates a new Project 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
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewProjectWithDefaults() *Project {
- this := Project{}
- return &this
-}
-
-// GetContainerId returns the ContainerId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetContainerId() (ret ProjectGetContainerIdRetType) {
- ret, _ = o.GetContainerIdOk()
- return ret
-}
-
-// GetContainerIdOk returns a tuple with the ContainerId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetContainerIdOk() (ret ProjectGetContainerIdRetType, ok bool) {
- return getProjectGetContainerIdAttributeTypeOk(o.ContainerId)
-}
-
-// SetContainerId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) SetContainerId(v ProjectGetContainerIdRetType) {
- setProjectGetContainerIdAttributeType(&o.ContainerId, v)
-}
-
-// GetCreationTime returns the CreationTime field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetCreationTime() (ret ProjectGetCreationTimeRetType) {
- ret, _ = o.GetCreationTimeOk()
- return ret
-}
-
-// GetCreationTimeOk returns a tuple with the CreationTime field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetCreationTimeOk() (ret ProjectGetCreationTimeRetType, ok bool) {
- return getProjectGetCreationTimeAttributeTypeOk(o.CreationTime)
-}
-
-// SetCreationTime sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) SetCreationTime(v ProjectGetCreationTimeRetType) {
- setProjectGetCreationTimeAttributeType(&o.CreationTime, v)
-}
-
-// GetLabels returns the Labels field value if set, zero value otherwise.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetLabels() (res ProjectGetLabelsRetType) {
- res, _ = o.GetLabelsOk()
- return
-}
-
-// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetLabelsOk() (ret ProjectGetLabelsRetType, ok bool) {
- return getProjectGetLabelsAttributeTypeOk(o.Labels)
-}
-
-// HasLabels returns a boolean if a field has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) HasLabels() bool {
- _, ok := o.GetLabelsOk()
- return ok
-}
-
-// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) SetLabels(v ProjectGetLabelsRetType) {
- setProjectGetLabelsAttributeType(&o.Labels, v)
-}
-
-// GetLifecycleState returns the LifecycleState field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetLifecycleState() (ret ProjectGetLifecycleStateRetType) {
- ret, _ = o.GetLifecycleStateOk()
- return ret
-}
-
-// GetLifecycleStateOk returns a tuple with the LifecycleState field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetLifecycleStateOk() (ret ProjectGetLifecycleStateRetType, ok bool) {
- return getProjectGetLifecycleStateAttributeTypeOk(o.LifecycleState)
-}
-
-// SetLifecycleState sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) SetLifecycleState(v ProjectGetLifecycleStateRetType) {
- setProjectGetLifecycleStateAttributeType(&o.LifecycleState, v)
-}
-
-// GetName returns the Name field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetName() (ret ProjectGetNameRetType) {
- ret, _ = o.GetNameOk()
- return ret
-}
-
-// GetNameOk returns a tuple with the Name field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetNameOk() (ret ProjectGetNameRetType, ok bool) {
- return getProjectGetNameAttributeTypeOk(o.Name)
-}
-
-// SetName sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) SetName(v ProjectGetNameRetType) {
- setProjectGetNameAttributeType(&o.Name, v)
-}
-
-// GetParent returns the Parent field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetParent() (ret ProjectGetParentRetType) {
- ret, _ = o.GetParentOk()
- return ret
-}
-
-// GetParentOk returns a tuple with the Parent field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetParentOk() (ret ProjectGetParentRetType, ok bool) {
- return getProjectGetParentAttributeTypeOk(o.Parent)
-}
-
-// SetParent sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) SetParent(v ProjectGetParentRetType) {
- setProjectGetParentAttributeType(&o.Parent, v)
-}
-
-// GetProjectId returns the ProjectId field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetProjectId() (ret ProjectGetProjectIdRetType) {
- ret, _ = o.GetProjectIdOk()
- return ret
-}
-
-// GetProjectIdOk returns a tuple with the ProjectId field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetProjectIdOk() (ret ProjectGetProjectIdRetType, ok bool) {
- return getProjectGetProjectIdAttributeTypeOk(o.ProjectId)
-}
-
-// SetProjectId sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) SetProjectId(v ProjectGetProjectIdRetType) {
- setProjectGetProjectIdAttributeType(&o.ProjectId, v)
-}
-
-// GetUpdateTime returns the UpdateTime field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetUpdateTime() (ret ProjectGetUpdateTimeRetType) {
- ret, _ = o.GetUpdateTimeOk()
- return ret
-}
-
-// GetUpdateTimeOk returns a tuple with the UpdateTime field value
-// and a boolean to check if the value has been set.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) GetUpdateTimeOk() (ret ProjectGetUpdateTimeRetType, ok bool) {
- return getProjectGetUpdateTimeAttributeTypeOk(o.UpdateTime)
-}
-
-// SetUpdateTime sets field value
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o *Project) SetUpdateTime(v ProjectGetUpdateTimeRetType) {
- setProjectGetUpdateTimeAttributeType(&o.UpdateTime, v)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (o Project) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if val, ok := getProjectGetContainerIdAttributeTypeOk(o.ContainerId); ok {
- toSerialize["ContainerId"] = val
- }
- if val, ok := getProjectGetCreationTimeAttributeTypeOk(o.CreationTime); ok {
- toSerialize["CreationTime"] = val
- }
- if val, ok := getProjectGetLabelsAttributeTypeOk(o.Labels); ok {
- toSerialize["Labels"] = val
- }
- if val, ok := getProjectGetLifecycleStateAttributeTypeOk(o.LifecycleState); ok {
- toSerialize["LifecycleState"] = val
- }
- if val, ok := getProjectGetNameAttributeTypeOk(o.Name); ok {
- toSerialize["Name"] = val
- }
- if val, ok := getProjectGetParentAttributeTypeOk(o.Parent); ok {
- toSerialize["Parent"] = val
- }
- if val, ok := getProjectGetProjectIdAttributeTypeOk(o.ProjectId); ok {
- toSerialize["ProjectId"] = val
- }
- if val, ok := getProjectGetUpdateTimeAttributeTypeOk(o.UpdateTime); ok {
- toSerialize["UpdateTime"] = val
- }
- return toSerialize, nil
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableProject struct {
- value *Project
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableProject) Get() *Project {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableProject) Set(val *Project) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableProject) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableProject) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableProject(val *Project) *NullableProject {
- return &NullableProject{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableProject) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableProject) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/services/resourcemanager/model_project_test.go b/services/resourcemanager/model_project_test.go
deleted file mode 100644
index 381399d86f..0000000000
--- a/services/resourcemanager/model_project_test.go
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
diff --git a/services/resourcemanager/oas_commit b/services/resourcemanager/oas_commit
index eaaf4c5ec5..6a8ba08d49 100644
--- a/services/resourcemanager/oas_commit
+++ b/services/resourcemanager/oas_commit
@@ -1 +1 @@
-61666e6da6a7eaa8ac113f9bf8748266058f493d
+ef9232ba8d49c72fc3397a365b09ca1a8205b25e
diff --git a/services/resourcemanager/package.go b/services/resourcemanager/package.go
new file mode 100644
index 0000000000..e9e914d37a
--- /dev/null
+++ b/services/resourcemanager/package.go
@@ -0,0 +1 @@
+package resourcemanager
diff --git a/services/resourcemanager/utils.go b/services/resourcemanager/utils.go
deleted file mode 100644
index 9992dd9101..0000000000
--- a/services/resourcemanager/utils.go
+++ /dev/null
@@ -1,466 +0,0 @@
-/*
-STACKIT Resource Manager API
-
-API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists
-
-API version: 2.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package resourcemanager
-
-import (
- "encoding/json"
- "math/rand"
- "reflect"
- "time"
-)
-
-// PtrBool is a helper routine that returns a pointer to given boolean value.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func PtrBool(v bool) *bool { return &v }
-
-// PtrInt is a helper routine that returns a pointer to given integer value.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func PtrInt(v int) *int { return &v }
-
-// PtrInt32 is a helper routine that returns a pointer to given integer value.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func PtrInt32(v int32) *int32 { return &v }
-
-// PtrInt64 is a helper routine that returns a pointer to given integer value.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func PtrInt64(v int64) *int64 { return &v }
-
-// PtrFloat32 is a helper routine that returns a pointer to given float value.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func PtrFloat32(v float32) *float32 { return &v }
-
-// PtrFloat64 is a helper routine that returns a pointer to given float value.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func PtrFloat64(v float64) *float64 { return &v }
-
-// PtrString is a helper routine that returns a pointer to given string value.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func PtrString(v string) *string { return &v }
-
-// PtrTime is helper routine that returns a pointer to given Time value.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func PtrTime(v time.Time) *time.Time { return &v }
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableValue[T any] struct {
- value *T
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableValue[T]) Get() *T {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableValue[T]) Set(val *T) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableValue[T]) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableValue[T]) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableBool struct {
- value *bool
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableBool) Get() *bool {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableBool) Set(val *bool) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableBool) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableBool) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableBool(val *bool) *NullableBool {
- return &NullableBool{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableBool) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableBool) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableInt struct {
- value *int
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableInt) Get() *int {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableInt) Set(val *int) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableInt) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableInt) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableInt(val *int) *NullableInt {
- return &NullableInt{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableInt) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableInt) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableInt32 struct {
- value *int32
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableInt32) Get() *int32 {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableInt32) Set(val *int32) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableInt32) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableInt32) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableInt32(val *int32) *NullableInt32 {
- return &NullableInt32{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableInt32) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableInt32) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableInt64 struct {
- value *int64
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableInt64) Get() *int64 {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableInt64) Set(val *int64) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableInt64) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableInt64) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableInt64(val *int64) *NullableInt64 {
- return &NullableInt64{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableInt64) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableInt64) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableFloat32 struct {
- value *float32
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableFloat32) Get() *float32 {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableFloat32) Set(val *float32) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableFloat32) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableFloat32) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableFloat32(val *float32) *NullableFloat32 {
- return &NullableFloat32{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableFloat32) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableFloat32) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableFloat64 struct {
- value *float64
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableFloat64) Get() *float64 {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableFloat64) Set(val *float64) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableFloat64) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableFloat64) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableFloat64(val *float64) *NullableFloat64 {
- return &NullableFloat64{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableFloat64) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableFloat64) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableString struct {
- value *string
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableString) Get() *string {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableString) Set(val *string) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableString) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableString) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableString(val *string) *NullableString {
- return &NullableString{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableString) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableString) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type NullableTime struct {
- value *time.Time
- isSet bool
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableTime) Get() *time.Time {
- return v.value
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableTime) Set(val *time.Time) {
- v.value = val
- v.isSet = true
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableTime) IsSet() bool {
- return v.isSet
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableTime) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func NewNullableTime(val *time.Time) *NullableTime {
- return &NullableTime{value: val, isSet: true}
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v NullableTime) MarshalJSON() ([]byte, error) {
- return v.value.MarshalJSON()
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func (v *NullableTime) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
-
-// IsNil checks if an input is nil
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func IsNil(i interface{}) bool {
- if i == nil {
- return true
- }
- if t, ok := i.(interface{ IsSet() bool }); ok {
- return !t.IsSet()
- }
- switch reflect.TypeOf(i).Kind() {
- case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice:
- return reflect.ValueOf(i).IsNil()
- case reflect.Array:
- return reflect.ValueOf(i).IsZero()
- }
- return false
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type MappedNullable interface {
- ToMap() (map[string]interface{}, error)
-}
-
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
-
-// randString returns a random string with a specified length. It panics if n <= 0.
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func randString(n int) string {
- b := make([]byte, n)
- for i := range b {
- b[i] = letterRunes[rand.Intn(len(letterRunes))]
- }
- return string(b)
-}
diff --git a/services/resourcemanager/wait/deprecation.go b/services/resourcemanager/wait/deprecation.go
deleted file mode 100644
index 58f184c093..0000000000
--- a/services/resourcemanager/wait/deprecation.go
+++ /dev/null
@@ -1,2 +0,0 @@
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package wait
diff --git a/services/resourcemanager/wait/wait.go b/services/resourcemanager/wait/wait.go
deleted file mode 100644
index 82f91eec17..0000000000
--- a/services/resourcemanager/wait/wait.go
+++ /dev/null
@@ -1,67 +0,0 @@
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-package wait
-
-import (
- "context"
- "fmt"
- "net/http"
- "time"
-
- "github.com/stackitcloud/stackit-sdk-go/core/oapierror"
- "github.com/stackitcloud/stackit-sdk-go/core/wait"
- "github.com/stackitcloud/stackit-sdk-go/services/resourcemanager"
-)
-
-// Interfaces needed for tests
-//
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-type APIClientInterface interface {
- GetProjectExecute(ctx context.Context, containerId string) (*resourcemanager.GetProjectResponse, error)
-}
-
-// CreateProjectWaitHandler will wait for project creation
-//
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func CreateProjectWaitHandler(ctx context.Context, a APIClientInterface, containerId string) *wait.AsyncActionHandler[resourcemanager.GetProjectResponse] {
- handler := wait.New(func() (waitFinished bool, response *resourcemanager.GetProjectResponse, err error) {
- p, err := a.GetProjectExecute(ctx, containerId)
- if err != nil {
- return false, nil, err
- }
- if p.ContainerId == nil || p.LifecycleState == nil {
- return false, nil, fmt.Errorf("creation failed: response invalid for container id %s. Container id or LifeCycleState missing", containerId)
- }
- if *p.ContainerId == containerId && *p.LifecycleState == resourcemanager.LIFECYCLESTATE_ACTIVE {
- return true, p, nil
- }
- if *p.ContainerId == containerId && *p.LifecycleState == resourcemanager.LIFECYCLESTATE_CREATING {
- return false, nil, nil
- }
- return true, p, fmt.Errorf("creation failed: received project state '%s'", *p.LifecycleState)
- })
- handler.SetSleepBeforeWait(1 * time.Minute)
- handler.SetTimeout(45 * time.Minute)
- return handler
-}
-
-// DeleteProjectWaitHandler will wait for project deletion
-//
-// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
-func DeleteProjectWaitHandler(ctx context.Context, a APIClientInterface, containerId string) *wait.AsyncActionHandler[struct{}] {
- handler := wait.New(func() (waitFinished bool, response *struct{}, err error) {
- _, err = a.GetProjectExecute(ctx, containerId)
- if err == nil {
- return false, nil, nil
- }
- oapiErr, ok := err.(*oapierror.GenericOpenAPIError) //nolint:errorlint //complaining that error.As should be used to catch wrapped errors, but this error should not be wrapped
- if !ok {
- return false, nil, fmt.Errorf("could not convert error to oapierror.GenericOpenAPIError")
- }
- if oapiErr.StatusCode == http.StatusNotFound || oapiErr.StatusCode == http.StatusForbidden {
- return true, nil, nil
- }
- return false, nil, err
- })
- handler.SetTimeout(15 * time.Minute)
- return handler
-}
diff --git a/services/resourcemanager/wait/wait_test.go b/services/resourcemanager/wait/wait_test.go
deleted file mode 100644
index 49c9d7d04f..0000000000
--- a/services/resourcemanager/wait/wait_test.go
+++ /dev/null
@@ -1,156 +0,0 @@
-package wait
-
-import (
- "context"
- "net/http"
- "testing"
- "testing/synctest"
-
- "github.com/google/go-cmp/cmp"
-
- "github.com/stackitcloud/stackit-sdk-go/core/oapierror"
- "github.com/stackitcloud/stackit-sdk-go/core/utils"
- "github.com/stackitcloud/stackit-sdk-go/services/resourcemanager"
-)
-
-type apiClientMocked struct {
- getFails bool
- getNotFound bool
- projectState resourcemanager.LifecycleState
-}
-
-func (a *apiClientMocked) GetProjectExecute(_ context.Context, _ string) (*resourcemanager.GetProjectResponse, error) {
- if a.getFails {
- return nil, &oapierror.GenericOpenAPIError{
- StatusCode: http.StatusInternalServerError,
- }
- }
-
- if a.getNotFound {
- return nil, &oapierror.GenericOpenAPIError{
- StatusCode: http.StatusNotFound,
- }
- }
-
- return &resourcemanager.GetProjectResponse{
- LifecycleState: &a.projectState,
- ContainerId: utils.Ptr("cid"),
- }, nil
-}
-
-func TestCreateProjectWaitHandler(t *testing.T) {
- tests := []struct {
- desc string
- getFails bool
- projectState resourcemanager.LifecycleState
- wantErr bool
- wantResp bool
- }{
- {
- desc: "create_succeeded",
- getFails: false,
- projectState: resourcemanager.LIFECYCLESTATE_ACTIVE,
- wantErr: false,
- wantResp: true,
- },
- {
- desc: "creating",
- getFails: false,
- projectState: resourcemanager.LIFECYCLESTATE_CREATING,
- wantErr: true,
- wantResp: false,
- },
- {
- desc: "get_fails",
- getFails: true,
- projectState: resourcemanager.LifecycleState(""),
- wantErr: true,
- wantResp: false,
- },
- {
- desc: "unknown_state",
- getFails: false,
- projectState: resourcemanager.LifecycleState("ANOTHER STATE"),
- wantErr: true,
- wantResp: true,
- },
- }
- for _, tt := range tests {
- t.Run(tt.desc, func(t *testing.T) {
- synctest.Test(t, func(t *testing.T) {
- apiClient := &apiClientMocked{
- getFails: tt.getFails,
- projectState: tt.projectState,
- }
-
- var wantRes *resourcemanager.GetProjectResponse
- if tt.wantResp {
- wantRes = &resourcemanager.GetProjectResponse{
- LifecycleState: utils.Ptr(tt.projectState),
- ContainerId: utils.Ptr("cid"),
- }
- }
-
- handler := CreateProjectWaitHandler(context.Background(), apiClient, "cid")
-
- gotRes, err := handler.WaitWithContext(context.Background())
-
- if (err != nil) != tt.wantErr {
- t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr)
- }
- if !cmp.Equal(gotRes, wantRes) {
- t.Fatalf("handler gotRes = %v, want %v", gotRes, wantRes)
- }
- })
- })
- }
-}
-
-func TestDeleteProjectWaitHandler(t *testing.T) {
- tests := []struct {
- desc string
- getFails bool
- getNotFound bool
- projectState resourcemanager.LifecycleState
- wantErr bool
- }{
- {
- desc: "delete_succeeded",
- getFails: false,
- getNotFound: true,
- projectState: resourcemanager.LifecycleState(""),
- wantErr: false,
- },
- {
- desc: "get_fails",
- getFails: true,
- projectState: "",
- wantErr: true,
- },
- {
- desc: "timeout",
- getFails: false,
- projectState: "ANOTHER STATE",
- wantErr: true,
- },
- }
- for _, tt := range tests {
- t.Run(tt.desc, func(t *testing.T) {
- synctest.Test(t, func(t *testing.T) {
- apiClient := &apiClientMocked{
- getFails: tt.getFails,
- getNotFound: tt.getNotFound,
- projectState: tt.projectState,
- }
-
- handler := DeleteProjectWaitHandler(context.Background(), apiClient, "cid")
-
- _, err := handler.WaitWithContext(context.Background())
-
- if (err != nil) != tt.wantErr {
- t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr)
- }
- })
- })
- }
-}