diff --git a/services/resourcemanager/api_default.go b/services/resourcemanager/api_default.go
index 566307424..998d79cf5 100644
--- a/services/resourcemanager/api_default.go
+++ b/services/resourcemanager/api_default.go
@@ -8,6 +8,7 @@ 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 (
@@ -25,6 +26,7 @@ import (
"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
@@ -32,6 +34,8 @@ type DefaultApi interface {
@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
/*
@@ -40,6 +44,7 @@ type DefaultApi interface {
@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)
/*
@@ -50,6 +55,8 @@ type DefaultApi interface {
@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
/*
@@ -58,6 +65,7 @@ type DefaultApi interface {
@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)
/*
@@ -69,11 +77,14 @@ type DefaultApi interface {
@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
/*
@@ -85,11 +96,14 @@ type DefaultApi interface {
@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
/*
@@ -101,11 +115,14 @@ type DefaultApi interface {
@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
/*
@@ -117,11 +134,14 @@ type DefaultApi interface {
@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
/*
@@ -133,11 +153,14 @@ type DefaultApi interface {
@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
/*
@@ -147,6 +170,8 @@ type DefaultApi interface {
@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
/*
@@ -156,6 +181,7 @@ type DefaultApi interface {
@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)
/*
@@ -165,6 +191,8 @@ type DefaultApi interface {
@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
/*
@@ -174,6 +202,7 @@ type DefaultApi interface {
@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)
/*
@@ -183,6 +212,8 @@ type DefaultApi interface {
@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
/*
@@ -192,6 +223,7 @@ type DefaultApi interface {
@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)
/*
@@ -210,6 +242,8 @@ type DefaultApi interface {
@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
/*
@@ -218,6 +252,7 @@ type DefaultApi interface {
@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)
/*
@@ -231,6 +266,8 @@ type DefaultApi interface {
@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
/*
@@ -239,6 +276,7 @@ type DefaultApi interface {
@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)
/*
@@ -256,6 +294,8 @@ type DefaultApi interface {
@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
/*
@@ -264,6 +304,7 @@ type DefaultApi interface {
@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)
/*
@@ -276,6 +317,8 @@ type DefaultApi interface {
@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
/*
@@ -285,6 +328,7 @@ type DefaultApi interface {
@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)
/*
@@ -296,6 +340,8 @@ type DefaultApi interface {
@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
/*
@@ -305,6 +351,7 @@ type DefaultApi interface {
@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)
/*
@@ -317,6 +364,8 @@ type DefaultApi interface {
@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
/*
@@ -326,137 +375,202 @@ type DefaultApi interface {
@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
@@ -582,7 +696,7 @@ func (r CreateFolderRequest) Execute() (*FolderResponse, error) {
/*
CreateFolder: Create Folder
-Create a new 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
@@ -594,6 +708,7 @@ func (a *APIClient) CreateFolder(ctx context.Context) ApiCreateFolderRequest {
}
}
+// 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,
@@ -602,17 +717,20 @@ func (a *APIClient) CreateFolderExecute(ctx context.Context) (*FolderResponse, e
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
@@ -738,9 +856,7 @@ func (r CreateProjectRequest) Execute() (*Project, error) {
/*
CreateProject: Create Project
-Create a new project.
-- The request is synchronous, but the workflow-based creation is asynchronous.
-- Lifecycle state remains in CREATING, until workflow completes
+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
@@ -752,6 +868,7 @@ func (a *APIClient) CreateProject(ctx context.Context) ApiCreateProjectRequest {
}
}
+// 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,
@@ -760,6 +877,7 @@ func (a *APIClient) CreateProjectExecute(ctx context.Context) (*Project, error)
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
@@ -768,12 +886,13 @@ type DeleteFolderRequest struct {
}
// 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
@@ -879,9 +998,7 @@ func (r DeleteFolderRequest) Execute() error {
/*
DeleteFolder: Delete Folder
-Delete a folder and its metadata.
-- Folder must not be parent of any other container
-- A force flag may be set, deleting all underlying folders 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
@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.
@@ -895,6 +1012,7 @@ func (a *APIClient) DeleteFolder(ctx context.Context, containerId string) ApiDel
}
}
+// 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,
@@ -904,6 +1022,7 @@ func (a *APIClient) DeleteFolderExecute(ctx context.Context, containerId string)
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
@@ -912,12 +1031,13 @@ type DeleteFolderLabelsRequest struct {
}
// 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
@@ -1020,9 +1140,7 @@ func (r DeleteFolderLabelsRequest) Execute() error {
/*
DeleteFolderLabels: Delete Folder Labels
-Deletes all folder labels by given keys.
-- Specific labels may be deleted by key(s)
-- If no key is specified, all labels will be deleted!
+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.
@@ -1036,6 +1154,7 @@ func (a *APIClient) DeleteFolderLabels(ctx context.Context, containerId string)
}
}
+// 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,
@@ -1045,6 +1164,7 @@ func (a *APIClient) DeleteFolderLabelsExecute(ctx context.Context, containerId s
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
@@ -1053,12 +1173,13 @@ type DeleteOrganizationLabelsRequest struct {
}
// 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
@@ -1161,9 +1282,7 @@ func (r DeleteOrganizationLabelsRequest) Execute() error {
/*
DeleteOrganizationLabels: Delete Organization Labels
-Deletes all organization labels by given keys.
-- Specific labels may be deleted by key(s)
-- If no key is specified, all labels will be deleted!
+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.
@@ -1177,6 +1296,7 @@ func (a *APIClient) DeleteOrganizationLabels(ctx context.Context, containerId st
}
}
+// 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,
@@ -1186,12 +1306,14 @@ func (a *APIClient) DeleteOrganizationLabelsExecute(ctx context.Context, contain
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
@@ -1283,9 +1405,7 @@ func (r DeleteProjectRequest) Execute() error {
/*
DeleteProject: Delete Project
-Triggers the deletion of a project.
-- The request is synchronous, but the workflow-based deletion is asynchronous
-- Lifecycle state remains in DELETING, until workflow completes
+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.
@@ -1299,6 +1419,7 @@ func (a *APIClient) DeleteProject(ctx context.Context, id string) ApiDeleteProje
}
}
+// 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,
@@ -1308,6 +1429,7 @@ func (a *APIClient) DeleteProjectExecute(ctx context.Context, id string) error {
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
@@ -1316,12 +1438,13 @@ type DeleteProjectLabelsRequest struct {
}
// 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
@@ -1424,9 +1547,7 @@ func (r DeleteProjectLabelsRequest) Execute() error {
/*
DeleteProjectLabels: Delete Project Labels
-Deletes all project labels by given keys.
-- Specific labels may be deleted by key(s)
-- If no key is specified, all labels will be deleted!
+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.
@@ -1440,6 +1561,7 @@ func (a *APIClient) DeleteProjectLabels(ctx context.Context, containerId string)
}
}
+// 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,
@@ -1449,6 +1571,7 @@ func (a *APIClient) DeleteProjectLabelsExecute(ctx context.Context, 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
@@ -1456,11 +1579,13 @@ type GetFolderDetailsRequest struct {
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
@@ -1577,7 +1702,7 @@ func (r GetFolderDetailsRequest) Execute() (*GetFolderDetailsResponse, error) {
/*
GetFolderDetails: Get Folder Details
-Returns all metadata for a specific 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.
@@ -1591,6 +1716,7 @@ func (a *APIClient) GetFolderDetails(ctx context.Context, containerId string) Ap
}
}
+// 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,
@@ -1600,12 +1726,14 @@ func (a *APIClient) GetFolderDetailsExecute(ctx context.Context, containerId str
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
@@ -1708,7 +1836,7 @@ func (r GetOrganizationRequest) Execute() (*OrganizationResponse, error) {
/*
GetOrganization: Get Organization Details
-Returns the organization and its metadata.
+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.
@@ -1722,6 +1850,7 @@ func (a *APIClient) GetOrganization(ctx context.Context, id string) ApiGetOrgani
}
}
+// 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,
@@ -1731,6 +1860,7 @@ func (a *APIClient) GetOrganizationExecute(ctx context.Context, id string) (*Org
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
@@ -1738,11 +1868,13 @@ type GetProjectRequest struct {
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
@@ -1859,7 +1991,7 @@ func (r GetProjectRequest) Execute() (*GetProjectResponse, error) {
/*
GetProject: Get Project Details
-Returns the project and its metadata.
+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.
@@ -1873,6 +2005,7 @@ func (a *APIClient) GetProject(ctx context.Context, id string) ApiGetProjectRequ
}
}
+// 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,
@@ -1882,6 +2015,7 @@ func (a *APIClient) GetProjectExecute(ctx context.Context, id string) (*GetProje
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
@@ -1894,47 +2028,48 @@ type ListFoldersRequest struct {
}
// 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
@@ -2084,16 +2219,7 @@ func (r ListFoldersRequest) Execute() (*ListFoldersResponse, 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
+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
@@ -2105,6 +2231,7 @@ func (a *APIClient) ListFolders(ctx context.Context) ApiListFoldersRequest {
}
}
+// 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,
@@ -2113,6 +2240,7 @@ func (a *APIClient) ListFoldersExecute(ctx context.Context) (*ListFoldersRespons
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
@@ -2124,40 +2252,41 @@ type ListOrganizationsRequest struct {
}
// 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
@@ -2293,11 +2422,7 @@ func (r ListOrganizationsRequest) Execute() (*ListOrganizationsResponse, error)
/*
ListOrganizations: Get All Organizations
-Returns all organizations and their metadata.
-- If no containerIds are specified, all organizations are returned, if permitted
-- ContainerIds may be set to filter
-- Member may be set to filter
-- If member and containerIds are given, both are used for filtering
+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
@@ -2309,6 +2434,7 @@ func (a *APIClient) ListOrganizations(ctx context.Context) ApiListOrganizationsR
}
}
+// 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,
@@ -2317,6 +2443,7 @@ func (a *APIClient) ListOrganizationsExecute(ctx context.Context) (*ListOrganiza
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
@@ -2329,47 +2456,48 @@ type ListProjectsRequest struct {
}
// 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
@@ -2508,16 +2636,7 @@ func (r ListProjectsRequest) Execute() (*ListProjectsResponse, error) {
/*
ListProjects: Get All Projects
-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
+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
@@ -2529,6 +2648,7 @@ func (a *APIClient) ListProjects(ctx context.Context) ApiListProjectsRequest {
}
}
+// 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,
@@ -2537,6 +2657,7 @@ func (a *APIClient) ListProjectsExecute(ctx context.Context) (*ListProjectsRespo
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
@@ -2544,11 +2665,13 @@ type PartialUpdateFolderRequest struct {
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
@@ -2675,10 +2798,7 @@ func (r PartialUpdateFolderRequest) Execute() (*FolderResponse, error) {
/*
PartialUpdateFolder: Update Folder
-Update the folder and its metadata.
-- Update folder name
-- Update folder labels
-- Update folder parent (folder or 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 containerId Folder identifier - containerId as well as UUID identifier is supported.
@@ -2692,6 +2812,7 @@ func (a *APIClient) PartialUpdateFolder(ctx context.Context, containerId string)
}
}
+// 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,
@@ -2701,6 +2822,7 @@ func (a *APIClient) PartialUpdateFolderExecute(ctx context.Context, 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
@@ -2708,11 +2830,13 @@ type PartialUpdateOrganizationRequest struct {
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
@@ -2828,9 +2952,7 @@ func (r PartialUpdateOrganizationRequest) Execute() (*OrganizationResponse, erro
/*
PartialUpdateOrganization: Update Organization
-Update the organization and its metadata.
-- Update organization name
-- Update 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 id Organization identifier - containerId as well as UUID identifier is supported.
@@ -2844,6 +2966,7 @@ func (a *APIClient) PartialUpdateOrganization(ctx context.Context, id string) Ap
}
}
+// 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,
@@ -2853,6 +2976,7 @@ func (a *APIClient) PartialUpdateOrganizationExecute(ctx context.Context, id str
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
@@ -2860,11 +2984,13 @@ type PartialUpdateProjectRequest struct {
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
@@ -2991,10 +3117,7 @@ func (r PartialUpdateProjectRequest) Execute() (*Project, error) {
/*
PartialUpdateProject: Update Project
-Update the project and its metadata.
-- Update project name
-- Update project labels
-- Update project parent (folder or 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 Project identifier - containerId as well as UUID identifier is supported.
@@ -3008,6 +3131,7 @@ func (a *APIClient) PartialUpdateProject(ctx context.Context, id string) ApiPart
}
}
+// 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,
diff --git a/services/resourcemanager/client.go b/services/resourcemanager/client.go
index 015c23a08..2f8b807ec 100644
--- a/services/resourcemanager/client.go
+++ b/services/resourcemanager/client.go
@@ -8,6 +8,7 @@ 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 (
@@ -44,18 +45,21 @@ var (
// 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()
@@ -147,6 +151,7 @@ func typeCheckParameter(obj interface{}, expected string, name string) error {
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)
@@ -285,6 +290,7 @@ func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) {
// 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
}
@@ -595,6 +601,7 @@ func parseCacheControl(headers http.Header) cacheControl {
}
// 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
diff --git a/services/resourcemanager/configuration.go b/services/resourcemanager/configuration.go
index 092f884ab..4e250a0b7 100644
--- a/services/resourcemanager/configuration.go
+++ b/services/resourcemanager/configuration.go
@@ -8,6 +8,7 @@ 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 (
@@ -15,6 +16,7 @@ import (
)
// 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),
diff --git a/services/resourcemanager/go.mod b/services/resourcemanager/go.mod
index 2c9ea465d..2ccebdfda 100644
--- a/services/resourcemanager/go.mod
+++ b/services/resourcemanager/go.mod
@@ -4,7 +4,7 @@ go 1.21
require (
github.com/google/go-cmp v0.7.0
- github.com/stackitcloud/stackit-sdk-go/core v0.21.1
+ github.com/stackitcloud/stackit-sdk-go/core v0.22.0
)
require (
diff --git a/services/resourcemanager/go.sum b/services/resourcemanager/go.sum
index ca103c909..195011dd5 100644
--- a/services/resourcemanager/go.sum
+++ b/services/resourcemanager/go.sum
@@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
-github.com/stackitcloud/stackit-sdk-go/core v0.21.1 h1:Y/PcAgM7DPYMNqum0MLv4n1mF9ieuevzcCIZYQfm3Ts=
-github.com/stackitcloud/stackit-sdk-go/core v0.21.1/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI=
+github.com/stackitcloud/stackit-sdk-go/core v0.22.0 h1:6rViz7GnNwXSh51Lur5xuDzO8EWSZfN9J0HvEkBKq6c=
+github.com/stackitcloud/stackit-sdk-go/core v0.22.0/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI=
diff --git a/services/resourcemanager/model_container_search_result.go b/services/resourcemanager/model_container_search_result.go
index 5717fcf7c..5a4b57e78 100644
--- a/services/resourcemanager/model_container_search_result.go
+++ b/services/resourcemanager/model_container_search_result.go
@@ -8,6 +8,7 @@ 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 (
@@ -23,8 +24,10 @@ var _ MappedNullable = &ContainerSearchResult{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetContainerIdAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getContainerSearchResultGetContainerIdAttributeTypeOk(arg ContainerSearchResultGetContainerIdAttributeType) (ret ContainerSearchResultGetContainerIdRetType, ok bool) {
if arg == nil {
return ret, false
@@ -32,11 +35,15 @@ func getContainerSearchResultGetContainerIdAttributeTypeOk(arg ContainerSearchRe
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setContainerSearchResultGetContainerIdAttributeType(arg *ContainerSearchResultGetContainerIdAttributeType, val ContainerSearchResultGetContainerIdRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetContainerIdArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetContainerIdRetType = string
/*
@@ -47,20 +54,25 @@ type ContainerSearchResultGetContainerIdRetType = string
// ContainerSearchResultContainerType Resource 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 ContainerSearchResultContainerType string
// List of ContainerType
const (
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CONTAINERSEARCHRESULTCONTAINER_TYPE_PROJECT ContainerSearchResultContainerType = "PROJECT"
- CONTAINERSEARCHRESULTCONTAINER_TYPE_FOLDER ContainerSearchResultContainerType = "FOLDER"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CONTAINERSEARCHRESULTCONTAINER_TYPE_FOLDER ContainerSearchResultContainerType = "FOLDER"
)
// All allowed values of ContainerSearchResult enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
var AllowedContainerSearchResultContainerTypeEnumValues = []ContainerSearchResultContainerType{
"PROJECT",
"FOLDER",
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *ContainerSearchResultContainerType) 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
@@ -88,6 +100,7 @@ func (v *ContainerSearchResultContainerType) UnmarshalJSON(src []byte) error {
// NewContainerSearchResultContainerTypeFromValue returns a pointer to a valid ContainerSearchResultContainerType
// 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 NewContainerSearchResultContainerTypeFromValue(v ContainerSearchResultContainerType) (*ContainerSearchResultContainerType, error) {
ev := ContainerSearchResultContainerType(v)
if ev.IsValid() {
@@ -98,6 +111,7 @@ func NewContainerSearchResultContainerTypeFromValue(v ContainerSearchResultConta
}
// 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 ContainerSearchResultContainerType) IsValid() bool {
for _, existing := range AllowedContainerSearchResultContainerTypeEnumValues {
if existing == v {
@@ -108,50 +122,65 @@ func (v ContainerSearchResultContainerType) IsValid() bool {
}
// Ptr returns reference to ContainerTypeContainerType value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v ContainerSearchResultContainerType) Ptr() *ContainerSearchResultContainerType {
return &v
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableContainerSearchResultContainerType struct {
value *ContainerSearchResultContainerType
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableContainerSearchResultContainerType) Get() *ContainerSearchResultContainerType {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableContainerSearchResultContainerType) Set(val *ContainerSearchResultContainerType) {
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 NullableContainerSearchResultContainerType) 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 *NullableContainerSearchResultContainerType) 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 NewNullableContainerSearchResultContainerType(val *ContainerSearchResultContainerType) *NullableContainerSearchResultContainerType {
return &NullableContainerSearchResultContainerType{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 NullableContainerSearchResultContainerType) 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 *NullableContainerSearchResultContainerType) 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 ContainerSearchResultGetContainerTypeAttributeType = *ContainerSearchResultContainerType
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetContainerTypeArgType = ContainerSearchResultContainerType
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetContainerTypeRetType = ContainerSearchResultContainerType
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getContainerSearchResultGetContainerTypeAttributeTypeOk(arg ContainerSearchResultGetContainerTypeAttributeType) (ret ContainerSearchResultGetContainerTypeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -159,6 +188,7 @@ func getContainerSearchResultGetContainerTypeAttributeTypeOk(arg ContainerSearch
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setContainerSearchResultGetContainerTypeAttributeType(arg *ContainerSearchResultGetContainerTypeAttributeType, val ContainerSearchResultGetContainerTypeRetType) {
*arg = &val
}
@@ -168,8 +198,10 @@ func setContainerSearchResultGetContainerTypeAttributeType(arg *ContainerSearchR
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetIdAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getContainerSearchResultGetIdAttributeTypeOk(arg ContainerSearchResultGetIdAttributeType) (ret ContainerSearchResultGetIdRetType, ok bool) {
if arg == nil {
return ret, false
@@ -177,11 +209,15 @@ func getContainerSearchResultGetIdAttributeTypeOk(arg ContainerSearchResultGetId
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setContainerSearchResultGetIdAttributeType(arg *ContainerSearchResultGetIdAttributeType, val ContainerSearchResultGetIdRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetIdArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetIdRetType = string
/*
@@ -189,10 +225,16 @@ type ContainerSearchResultGetIdRetType = string
*/
// isEnumRef
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetLifecycleStateAttributeType = *LifecycleState
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetLifecycleStateArgType = LifecycleState
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetLifecycleStateRetType = LifecycleState
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getContainerSearchResultGetLifecycleStateAttributeTypeOk(arg ContainerSearchResultGetLifecycleStateAttributeType) (ret ContainerSearchResultGetLifecycleStateRetType, ok bool) {
if arg == nil {
return ret, false
@@ -200,6 +242,7 @@ func getContainerSearchResultGetLifecycleStateAttributeTypeOk(arg ContainerSearc
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setContainerSearchResultGetLifecycleStateAttributeType(arg *ContainerSearchResultGetLifecycleStateAttributeType, val ContainerSearchResultGetLifecycleStateRetType) {
*arg = &val
}
@@ -209,8 +252,10 @@ func setContainerSearchResultGetLifecycleStateAttributeType(arg *ContainerSearch
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetNameAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getContainerSearchResultGetNameAttributeTypeOk(arg ContainerSearchResultGetNameAttributeType) (ret ContainerSearchResultGetNameRetType, ok bool) {
if arg == nil {
return ret, false
@@ -218,11 +263,15 @@ func getContainerSearchResultGetNameAttributeTypeOk(arg ContainerSearchResultGet
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setContainerSearchResultGetNameAttributeType(arg *ContainerSearchResultGetNameAttributeType, val ContainerSearchResultGetNameRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetNameArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetNameRetType = string
/*
@@ -230,8 +279,10 @@ type ContainerSearchResultGetNameRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetOrganizationIdAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getContainerSearchResultGetOrganizationIdAttributeTypeOk(arg ContainerSearchResultGetOrganizationIdAttributeType) (ret ContainerSearchResultGetOrganizationIdRetType, ok bool) {
if arg == nil {
return ret, false
@@ -239,14 +290,19 @@ func getContainerSearchResultGetOrganizationIdAttributeTypeOk(arg ContainerSearc
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setContainerSearchResultGetOrganizationIdAttributeType(arg *ContainerSearchResultGetOrganizationIdAttributeType, val ContainerSearchResultGetOrganizationIdRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetOrganizationIdArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResultGetOrganizationIdRetType = string
// ContainerSearchResult struct for ContainerSearchResult
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ContainerSearchResult struct {
// Globally unique user-friendly identifier.
// REQUIRED
@@ -265,12 +321,14 @@ type ContainerSearchResult struct {
OrganizationId ContainerSearchResultGetOrganizationIdAttributeType `json:"organizationId,omitempty"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _ContainerSearchResult ContainerSearchResult
// NewContainerSearchResult instantiates a new ContainerSearchResult 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 NewContainerSearchResult(containerId ContainerSearchResultGetContainerIdArgType, containerType ContainerSearchResultGetContainerTypeArgType, id ContainerSearchResultGetIdArgType, name ContainerSearchResultGetNameArgType) *ContainerSearchResult {
this := ContainerSearchResult{}
setContainerSearchResultGetContainerIdAttributeType(&this.ContainerId, containerId)
@@ -283,12 +341,14 @@ func NewContainerSearchResult(containerId ContainerSearchResultGetContainerIdArg
// NewContainerSearchResultWithDefaults instantiates a new ContainerSearchResult 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 NewContainerSearchResultWithDefaults() *ContainerSearchResult {
this := ContainerSearchResult{}
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 *ContainerSearchResult) GetContainerId() (ret ContainerSearchResultGetContainerIdRetType) {
ret, _ = o.GetContainerIdOk()
return ret
@@ -296,16 +356,19 @@ func (o *ContainerSearchResult) GetContainerId() (ret ContainerSearchResultGetCo
// 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 *ContainerSearchResult) GetContainerIdOk() (ret ContainerSearchResultGetContainerIdRetType, ok bool) {
return getContainerSearchResultGetContainerIdAttributeTypeOk(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 *ContainerSearchResult) SetContainerId(v ContainerSearchResultGetContainerIdRetType) {
setContainerSearchResultGetContainerIdAttributeType(&o.ContainerId, v)
}
// GetContainerType returns the ContainerType field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ContainerSearchResult) GetContainerType() (ret ContainerSearchResultGetContainerTypeRetType) {
ret, _ = o.GetContainerTypeOk()
return ret
@@ -313,16 +376,19 @@ func (o *ContainerSearchResult) GetContainerType() (ret ContainerSearchResultGet
// GetContainerTypeOk returns a tuple with the ContainerType 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 *ContainerSearchResult) GetContainerTypeOk() (ret ContainerSearchResultGetContainerTypeRetType, ok bool) {
return getContainerSearchResultGetContainerTypeAttributeTypeOk(o.ContainerType)
}
// SetContainerType sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ContainerSearchResult) SetContainerType(v ContainerSearchResultGetContainerTypeRetType) {
setContainerSearchResultGetContainerTypeAttributeType(&o.ContainerType, 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 *ContainerSearchResult) GetId() (ret ContainerSearchResultGetIdRetType) {
ret, _ = o.GetIdOk()
return ret
@@ -330,16 +396,19 @@ func (o *ContainerSearchResult) GetId() (ret ContainerSearchResultGetIdRetType)
// 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 *ContainerSearchResult) GetIdOk() (ret ContainerSearchResultGetIdRetType, ok bool) {
return getContainerSearchResultGetIdAttributeTypeOk(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 *ContainerSearchResult) SetId(v ContainerSearchResultGetIdRetType) {
setContainerSearchResultGetIdAttributeType(&o.Id, v)
}
// GetLifecycleState returns the LifecycleState 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 *ContainerSearchResult) GetLifecycleState() (res ContainerSearchResultGetLifecycleStateRetType) {
res, _ = o.GetLifecycleStateOk()
return
@@ -347,22 +416,26 @@ func (o *ContainerSearchResult) GetLifecycleState() (res ContainerSearchResultGe
// GetLifecycleStateOk returns a tuple with the LifecycleState 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 *ContainerSearchResult) GetLifecycleStateOk() (ret ContainerSearchResultGetLifecycleStateRetType, ok bool) {
return getContainerSearchResultGetLifecycleStateAttributeTypeOk(o.LifecycleState)
}
// HasLifecycleState 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 *ContainerSearchResult) HasLifecycleState() bool {
_, ok := o.GetLifecycleStateOk()
return ok
}
// SetLifecycleState gets a reference to the given LifecycleState and assigns it to the LifecycleState field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ContainerSearchResult) SetLifecycleState(v ContainerSearchResultGetLifecycleStateRetType) {
setContainerSearchResultGetLifecycleStateAttributeType(&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 *ContainerSearchResult) GetName() (ret ContainerSearchResultGetNameRetType) {
ret, _ = o.GetNameOk()
return ret
@@ -370,16 +443,19 @@ func (o *ContainerSearchResult) GetName() (ret ContainerSearchResultGetNameRetTy
// 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 *ContainerSearchResult) GetNameOk() (ret ContainerSearchResultGetNameRetType, ok bool) {
return getContainerSearchResultGetNameAttributeTypeOk(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 *ContainerSearchResult) SetName(v ContainerSearchResultGetNameRetType) {
setContainerSearchResultGetNameAttributeType(&o.Name, v)
}
// GetOrganizationId returns the OrganizationId 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 *ContainerSearchResult) GetOrganizationId() (res ContainerSearchResultGetOrganizationIdRetType) {
res, _ = o.GetOrganizationIdOk()
return
@@ -387,21 +463,25 @@ func (o *ContainerSearchResult) GetOrganizationId() (res ContainerSearchResultGe
// GetOrganizationIdOk returns a tuple with the OrganizationId 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 *ContainerSearchResult) GetOrganizationIdOk() (ret ContainerSearchResultGetOrganizationIdRetType, ok bool) {
return getContainerSearchResultGetOrganizationIdAttributeTypeOk(o.OrganizationId)
}
// HasOrganizationId 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 *ContainerSearchResult) HasOrganizationId() bool {
_, ok := o.GetOrganizationIdOk()
return ok
}
// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ContainerSearchResult) SetOrganizationId(v ContainerSearchResultGetOrganizationIdRetType) {
setContainerSearchResultGetOrganizationIdAttributeType(&o.OrganizationId, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ContainerSearchResult) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getContainerSearchResultGetContainerIdAttributeTypeOk(o.ContainerId); ok {
@@ -425,37 +505,45 @@ func (o ContainerSearchResult) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableContainerSearchResult struct {
value *ContainerSearchResult
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableContainerSearchResult) Get() *ContainerSearchResult {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableContainerSearchResult) Set(val *ContainerSearchResult) {
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 NullableContainerSearchResult) 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 *NullableContainerSearchResult) 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 NewNullableContainerSearchResult(val *ContainerSearchResult) *NullableContainerSearchResult {
return &NullableContainerSearchResult{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 NullableContainerSearchResult) 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 *NullableContainerSearchResult) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/resourcemanager/model_create_folder_payload.go b/services/resourcemanager/model_create_folder_payload.go
index a7e224802..5c505d3f6 100644
--- a/services/resourcemanager/model_create_folder_payload.go
+++ b/services/resourcemanager/model_create_folder_payload.go
@@ -8,6 +8,7 @@ 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 (
@@ -22,8 +23,10 @@ var _ MappedNullable = &CreateFolderPayload{}
*/
// 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
@@ -31,11 +34,15 @@ func getCreateFolderPayloadGetContainerParentIdAttributeTypeOk(arg CreateFolderP
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
/*
@@ -43,10 +50,16 @@ type CreateFolderPayloadGetContainerParentIdRetType = string
*/
// 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
@@ -54,6 +67,7 @@ func getCreateFolderPayloadGetLabelsAttributeTypeOk(arg CreateFolderPayloadGetLa
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
}
@@ -63,10 +77,16 @@ func setCreateFolderPayloadGetLabelsAttributeType(arg *CreateFolderPayloadGetLab
*/
// 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
@@ -74,6 +94,7 @@ func getCreateFolderPayloadGetMembersAttributeTypeOk(arg CreateFolderPayloadGetM
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
}
@@ -83,8 +104,10 @@ func setCreateFolderPayloadGetMembersAttributeType(arg *CreateFolderPayloadGetMe
*/
// 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
@@ -92,14 +115,19 @@ func getCreateFolderPayloadGetNameAttributeTypeOk(arg CreateFolderPayloadGetName
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
@@ -113,12 +141,14 @@ type CreateFolderPayload struct {
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)
@@ -129,12 +159,14 @@ func NewCreateFolderPayload(containerParentId CreateFolderPayloadGetContainerPar
// 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
@@ -142,16 +174,19 @@ func (o *CreateFolderPayload) GetContainerParentId() (ret CreateFolderPayloadGet
// 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
@@ -159,22 +194,26 @@ func (o *CreateFolderPayload) GetLabels() (res CreateFolderPayloadGetLabelsRetTy
// 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
@@ -182,22 +221,26 @@ func (o *CreateFolderPayload) GetMembers() (res CreateFolderPayloadGetMembersRet
// 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
@@ -205,15 +248,18 @@ func (o *CreateFolderPayload) GetName() (ret CreateFolderPayloadGetNameRetType)
// 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 {
@@ -231,37 +277,45 @@ func (o CreateFolderPayload) ToMap() (map[string]interface{}, error) {
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_project_payload.go b/services/resourcemanager/model_create_project_payload.go
index cdacfb5cc..75356cc36 100644
--- a/services/resourcemanager/model_create_project_payload.go
+++ b/services/resourcemanager/model_create_project_payload.go
@@ -8,6 +8,7 @@ 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 (
@@ -22,8 +23,10 @@ var _ MappedNullable = &CreateProjectPayload{}
*/
// 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
@@ -31,11 +34,15 @@ func getCreateProjectPayloadGetContainerParentIdAttributeTypeOk(arg CreateProjec
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
/*
@@ -43,10 +50,16 @@ type CreateProjectPayloadGetContainerParentIdRetType = string
*/
// 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
@@ -54,6 +67,7 @@ func getCreateProjectPayloadGetLabelsAttributeTypeOk(arg CreateProjectPayloadGet
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
}
@@ -63,10 +77,16 @@ func setCreateProjectPayloadGetLabelsAttributeType(arg *CreateProjectPayloadGetL
*/
// 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
@@ -74,6 +94,7 @@ func getCreateProjectPayloadGetMembersAttributeTypeOk(arg CreateProjectPayloadGe
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
}
@@ -83,8 +104,10 @@ func setCreateProjectPayloadGetMembersAttributeType(arg *CreateProjectPayloadGet
*/
// 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
@@ -92,14 +115,19 @@ func getCreateProjectPayloadGetNameAttributeTypeOk(arg CreateProjectPayloadGetNa
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
@@ -114,12 +142,14 @@ type CreateProjectPayload struct {
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)
@@ -131,12 +161,14 @@ func NewCreateProjectPayload(containerParentId CreateProjectPayloadGetContainerP
// 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
@@ -144,16 +176,19 @@ func (o *CreateProjectPayload) GetContainerParentId() (ret CreateProjectPayloadG
// 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
@@ -161,22 +196,26 @@ func (o *CreateProjectPayload) GetLabels() (res CreateProjectPayloadGetLabelsRet
// 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
@@ -184,16 +223,19 @@ func (o *CreateProjectPayload) GetMembers() (ret CreateProjectPayloadGetMembersR
// 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
@@ -201,15 +243,18 @@ func (o *CreateProjectPayload) GetName() (ret CreateProjectPayloadGetNameRetType
// 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 {
@@ -227,37 +272,45 @@ func (o CreateProjectPayload) ToMap() (map[string]interface{}, error) {
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_error_response.go b/services/resourcemanager/model_error_response.go
index 41c16b2a4..e2f2b0c4a 100644
--- a/services/resourcemanager/model_error_response.go
+++ b/services/resourcemanager/model_error_response.go
@@ -8,6 +8,7 @@ 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 (
@@ -23,8 +24,10 @@ var _ MappedNullable = &ErrorResponse{}
*/
// 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
@@ -32,11 +35,15 @@ func getErrorResponseGetErrorAttributeTypeOk(arg ErrorResponseGetErrorAttributeT
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
/*
@@ -44,8 +51,10 @@ type ErrorResponseGetErrorRetType = string
*/
// 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
@@ -53,11 +62,15 @@ func getErrorResponseGetMessageAttributeTypeOk(arg ErrorResponseGetMessageAttrib
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
/*
@@ -65,8 +78,10 @@ type ErrorResponseGetMessageRetType = string
*/
// 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
@@ -74,11 +89,15 @@ func getErrorResponseGetPathAttributeTypeOk(arg ErrorResponseGetPathAttributeTyp
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
/*
@@ -86,10 +105,16 @@ type ErrorResponseGetPathRetType = string
*/
// 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
@@ -97,6 +122,7 @@ func getErrorResponseGetStatusAttributeTypeOk(arg ErrorResponseGetStatusAttribut
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
}
@@ -106,10 +132,16 @@ func setErrorResponseGetStatusAttributeType(arg *ErrorResponseGetStatusAttribute
*/
// 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
@@ -117,11 +149,13 @@ func getErrorResponseGetTimeStampAttributeTypeOk(arg ErrorResponseGetTimeStampAt
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
@@ -140,12 +174,14 @@ type ErrorResponse struct {
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_)
@@ -159,12 +195,14 @@ func NewErrorResponse(error_ ErrorResponseGetErrorArgType, message ErrorResponse
// 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
@@ -172,16 +210,19 @@ func (o *ErrorResponse) GetError() (ret ErrorResponseGetErrorRetType) {
// 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
@@ -189,16 +230,19 @@ func (o *ErrorResponse) GetMessage() (ret ErrorResponseGetMessageRetType) {
// 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
@@ -206,16 +250,19 @@ func (o *ErrorResponse) GetPath() (ret ErrorResponseGetPathRetType) {
// 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
@@ -223,16 +270,19 @@ func (o *ErrorResponse) GetStatus() (ret ErrorResponseGetStatusRetType) {
// 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
@@ -240,15 +290,18 @@ func (o *ErrorResponse) GetTimeStamp() (ret ErrorResponseGetTimeStampRetType) {
// 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 {
@@ -269,37 +322,45 @@ func (o ErrorResponse) ToMap() (map[string]interface{}, error) {
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_folder_response.go b/services/resourcemanager/model_folder_response.go
index bf5d3cc41..d65905897 100644
--- a/services/resourcemanager/model_folder_response.go
+++ b/services/resourcemanager/model_folder_response.go
@@ -8,6 +8,7 @@ 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 (
@@ -23,8 +24,10 @@ var _ MappedNullable = &FolderResponse{}
*/
// 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
@@ -32,11 +35,15 @@ func getFolderResponseGetContainerIdAttributeTypeOk(arg FolderResponseGetContain
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
/*
@@ -44,10 +51,16 @@ type FolderResponseGetContainerIdRetType = string
*/
// 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
@@ -55,6 +68,7 @@ func getFolderResponseGetCreationTimeAttributeTypeOk(arg FolderResponseGetCreati
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
}
@@ -64,8 +78,10 @@ func setFolderResponseGetCreationTimeAttributeType(arg *FolderResponseGetCreatio
*/
// 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
@@ -73,11 +89,15 @@ func getFolderResponseGetFolderIdAttributeTypeOk(arg FolderResponseGetFolderIdAt
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
/*
@@ -85,10 +105,16 @@ type FolderResponseGetFolderIdRetType = string
*/
// 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
@@ -96,6 +122,7 @@ func getFolderResponseGetLabelsAttributeTypeOk(arg FolderResponseGetLabelsAttrib
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
}
@@ -105,8 +132,10 @@ func setFolderResponseGetLabelsAttributeType(arg *FolderResponseGetLabelsAttribu
*/
// 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
@@ -114,11 +143,15 @@ func getFolderResponseGetNameAttributeTypeOk(arg FolderResponseGetNameAttributeT
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
/*
@@ -126,10 +159,16 @@ type FolderResponseGetNameRetType = string
*/
// 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
@@ -137,6 +176,7 @@ func getFolderResponseGetParentAttributeTypeOk(arg FolderResponseGetParentAttrib
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
}
@@ -146,10 +186,16 @@ func setFolderResponseGetParentAttributeType(arg *FolderResponseGetParentAttribu
*/
// 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
@@ -157,11 +203,13 @@ func getFolderResponseGetUpdateTimeAttributeTypeOk(arg FolderResponseGetUpdateTi
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
@@ -184,12 +232,14 @@ type FolderResponse struct {
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)
@@ -204,12 +254,14 @@ func NewFolderResponse(containerId FolderResponseGetContainerIdArgType, creation
// 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
@@ -217,16 +269,19 @@ func (o *FolderResponse) GetContainerId() (ret FolderResponseGetContainerIdRetTy
// 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
@@ -234,16 +289,19 @@ func (o *FolderResponse) GetCreationTime() (ret FolderResponseGetCreationTimeRet
// 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
@@ -251,16 +309,19 @@ func (o *FolderResponse) GetFolderId() (ret FolderResponseGetFolderIdRetType) {
// 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
@@ -268,22 +329,26 @@ func (o *FolderResponse) GetLabels() (res FolderResponseGetLabelsRetType) {
// 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
@@ -291,16 +356,19 @@ func (o *FolderResponse) GetName() (ret FolderResponseGetNameRetType) {
// 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
@@ -308,16 +376,19 @@ func (o *FolderResponse) GetParent() (ret FolderResponseGetParentRetType) {
// 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
@@ -325,15 +396,18 @@ func (o *FolderResponse) GetUpdateTime() (ret FolderResponseGetUpdateTimeRetType
// 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 {
@@ -360,37 +434,45 @@ func (o FolderResponse) ToMap() (map[string]interface{}, error) {
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_get_folder_details_response.go b/services/resourcemanager/model_get_folder_details_response.go
index 5c7b5c514..297eb1478 100644
--- a/services/resourcemanager/model_get_folder_details_response.go
+++ b/services/resourcemanager/model_get_folder_details_response.go
@@ -8,6 +8,7 @@ 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 (
@@ -23,8 +24,10 @@ var _ MappedNullable = &GetFolderDetailsResponse{}
*/
// 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
@@ -32,11 +35,15 @@ func getGetFolderDetailsResponseGetContainerIdAttributeTypeOk(arg GetFolderDetai
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
/*
@@ -44,10 +51,16 @@ type GetFolderDetailsResponseGetContainerIdRetType = string
*/
// 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
@@ -55,6 +68,7 @@ func getGetFolderDetailsResponseGetCreationTimeAttributeTypeOk(arg GetFolderDeta
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
}
@@ -64,8 +78,10 @@ func setGetFolderDetailsResponseGetCreationTimeAttributeType(arg *GetFolderDetai
*/
// 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
@@ -73,11 +89,15 @@ func getGetFolderDetailsResponseGetFolderIdAttributeTypeOk(arg GetFolderDetailsR
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
/*
@@ -85,10 +105,16 @@ type GetFolderDetailsResponseGetFolderIdRetType = string
*/
// 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
@@ -96,6 +122,7 @@ func getGetFolderDetailsResponseGetLabelsAttributeTypeOk(arg GetFolderDetailsRes
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
}
@@ -105,8 +132,10 @@ func setGetFolderDetailsResponseGetLabelsAttributeType(arg *GetFolderDetailsResp
*/
// 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
@@ -114,11 +143,15 @@ func getGetFolderDetailsResponseGetNameAttributeTypeOk(arg GetFolderDetailsRespo
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
/*
@@ -126,10 +159,16 @@ type GetFolderDetailsResponseGetNameRetType = string
*/
// 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
@@ -137,6 +176,7 @@ func getGetFolderDetailsResponseGetParentAttributeTypeOk(arg GetFolderDetailsRes
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
}
@@ -146,10 +186,16 @@ func setGetFolderDetailsResponseGetParentAttributeType(arg *GetFolderDetailsResp
*/
// 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
@@ -157,6 +203,7 @@ func getGetFolderDetailsResponseGetParentsAttributeTypeOk(arg GetFolderDetailsRe
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
}
@@ -166,10 +213,16 @@ func setGetFolderDetailsResponseGetParentsAttributeType(arg *GetFolderDetailsRes
*/
// 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
@@ -177,11 +230,13 @@ func getGetFolderDetailsResponseGetUpdateTimeAttributeTypeOk(arg GetFolderDetail
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
@@ -205,12 +260,14 @@ type GetFolderDetailsResponse struct {
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)
@@ -225,12 +282,14 @@ func NewGetFolderDetailsResponse(containerId GetFolderDetailsResponseGetContaine
// 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
@@ -238,16 +297,19 @@ func (o *GetFolderDetailsResponse) GetContainerId() (ret GetFolderDetailsRespons
// 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
@@ -255,16 +317,19 @@ func (o *GetFolderDetailsResponse) GetCreationTime() (ret GetFolderDetailsRespon
// 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
@@ -272,16 +337,19 @@ func (o *GetFolderDetailsResponse) GetFolderId() (ret GetFolderDetailsResponseGe
// 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
@@ -289,22 +357,26 @@ func (o *GetFolderDetailsResponse) GetLabels() (res GetFolderDetailsResponseGetL
// 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
@@ -312,16 +384,19 @@ func (o *GetFolderDetailsResponse) GetName() (ret GetFolderDetailsResponseGetNam
// 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
@@ -329,16 +404,19 @@ func (o *GetFolderDetailsResponse) GetParent() (ret GetFolderDetailsResponseGetP
// 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
@@ -346,22 +424,26 @@ func (o *GetFolderDetailsResponse) GetParents() (res GetFolderDetailsResponseGet
// 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
@@ -369,15 +451,18 @@ func (o *GetFolderDetailsResponse) GetUpdateTime() (ret GetFolderDetailsResponse
// 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 {
@@ -407,37 +492,45 @@ func (o GetFolderDetailsResponse) ToMap() (map[string]interface{}, error) {
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_project_response.go b/services/resourcemanager/model_get_project_response.go
index 108c5521b..1984616ee 100644
--- a/services/resourcemanager/model_get_project_response.go
+++ b/services/resourcemanager/model_get_project_response.go
@@ -8,6 +8,7 @@ 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 (
@@ -23,8 +24,10 @@ var _ MappedNullable = &GetProjectResponse{}
*/
// 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
@@ -32,11 +35,15 @@ func getGetProjectResponseGetContainerIdAttributeTypeOk(arg GetProjectResponseGe
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
/*
@@ -44,10 +51,16 @@ type GetProjectResponseGetContainerIdRetType = string
*/
// 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
@@ -55,6 +68,7 @@ func getGetProjectResponseGetCreationTimeAttributeTypeOk(arg GetProjectResponseG
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
}
@@ -64,10 +78,16 @@ func setGetProjectResponseGetCreationTimeAttributeType(arg *GetProjectResponseGe
*/
// 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
@@ -75,6 +95,7 @@ func getGetProjectResponseGetLabelsAttributeTypeOk(arg GetProjectResponseGetLabe
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
}
@@ -84,10 +105,16 @@ func setGetProjectResponseGetLabelsAttributeType(arg *GetProjectResponseGetLabel
*/
// 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
@@ -95,6 +122,7 @@ func getGetProjectResponseGetLifecycleStateAttributeTypeOk(arg GetProjectRespons
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
}
@@ -104,8 +132,10 @@ func setGetProjectResponseGetLifecycleStateAttributeType(arg *GetProjectResponse
*/
// 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
@@ -113,11 +143,15 @@ func getGetProjectResponseGetNameAttributeTypeOk(arg GetProjectResponseGetNameAt
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
/*
@@ -125,10 +159,16 @@ type GetProjectResponseGetNameRetType = string
*/
// 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
@@ -136,6 +176,7 @@ func getGetProjectResponseGetParentAttributeTypeOk(arg GetProjectResponseGetPare
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
}
@@ -145,10 +186,16 @@ func setGetProjectResponseGetParentAttributeType(arg *GetProjectResponseGetParen
*/
// 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
@@ -156,6 +203,7 @@ func getGetProjectResponseGetParentsAttributeTypeOk(arg GetProjectResponseGetPar
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
}
@@ -165,8 +213,10 @@ func setGetProjectResponseGetParentsAttributeType(arg *GetProjectResponseGetPare
*/
// 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
@@ -174,11 +224,15 @@ func getGetProjectResponseGetProjectIdAttributeTypeOk(arg GetProjectResponseGetP
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
/*
@@ -186,10 +240,16 @@ type GetProjectResponseGetProjectIdRetType = string
*/
// 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
@@ -197,11 +257,13 @@ func getGetProjectResponseGetUpdateTimeAttributeTypeOk(arg GetProjectResponseGet
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
@@ -227,12 +289,14 @@ type GetProjectResponse struct {
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)
@@ -248,12 +312,14 @@ func NewGetProjectResponse(containerId GetProjectResponseGetContainerIdArgType,
// 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
@@ -261,16 +327,19 @@ func (o *GetProjectResponse) GetContainerId() (ret GetProjectResponseGetContaine
// 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
@@ -278,16 +347,19 @@ func (o *GetProjectResponse) GetCreationTime() (ret GetProjectResponseGetCreatio
// 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
@@ -295,22 +367,26 @@ func (o *GetProjectResponse) GetLabels() (res GetProjectResponseGetLabelsRetType
// 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
@@ -318,16 +394,19 @@ func (o *GetProjectResponse) GetLifecycleState() (ret GetProjectResponseGetLifec
// 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
@@ -335,16 +414,19 @@ func (o *GetProjectResponse) GetName() (ret GetProjectResponseGetNameRetType) {
// 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
@@ -352,16 +434,19 @@ func (o *GetProjectResponse) GetParent() (ret GetProjectResponseGetParentRetType
// 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
@@ -369,22 +454,26 @@ func (o *GetProjectResponse) GetParents() (res GetProjectResponseGetParentsRetTy
// 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
@@ -392,16 +481,19 @@ func (o *GetProjectResponse) GetProjectId() (ret GetProjectResponseGetProjectIdR
// 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
@@ -409,15 +501,18 @@ func (o *GetProjectResponse) GetUpdateTime() (ret GetProjectResponseGetUpdateTim
// 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 {
@@ -450,37 +545,45 @@ func (o GetProjectResponse) ToMap() (map[string]interface{}, error) {
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_lifecycle_state.go b/services/resourcemanager/model_lifecycle_state.go
index aa9cb87b4..cad3974fd 100644
--- a/services/resourcemanager/model_lifecycle_state.go
+++ b/services/resourcemanager/model_lifecycle_state.go
@@ -8,6 +8,7 @@ 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 (
@@ -16,17 +17,23 @@ import (
)
// 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"
- LIFECYCLESTATE_ACTIVE LifecycleState = "ACTIVE"
+ // 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",
@@ -34,6 +41,7 @@ var AllowedLifecycleStateEnumValues = []LifecycleState{
"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)
@@ -58,6 +66,7 @@ func (v *LifecycleState) UnmarshalJSON(src []byte) error {
// 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() {
@@ -68,6 +77,7 @@ func NewLifecycleStateFromValue(v string) (*LifecycleState, error) {
}
// 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 {
@@ -78,41 +88,50 @@ func (v LifecycleState) IsValid() bool {
}
// 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_list_folders_response.go b/services/resourcemanager/model_list_folders_response.go
index 6e3631750..cff142fea 100644
--- a/services/resourcemanager/model_list_folders_response.go
+++ b/services/resourcemanager/model_list_folders_response.go
@@ -8,6 +8,7 @@ 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 (
@@ -22,10 +23,16 @@ var _ MappedNullable = &ListFoldersResponse{}
*/
// 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
@@ -33,6 +40,7 @@ func getListFoldersResponseGetItemsAttributeTypeOk(arg ListFoldersResponseGetIte
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
}
@@ -42,10 +50,16 @@ func setListFoldersResponseGetItemsAttributeType(arg *ListFoldersResponseGetItem
*/
// 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
@@ -53,6 +67,7 @@ func getListFoldersResponseGetLimitAttributeTypeOk(arg ListFoldersResponseGetLim
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
}
@@ -62,10 +77,16 @@ func setListFoldersResponseGetLimitAttributeType(arg *ListFoldersResponseGetLimi
*/
// 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
@@ -73,11 +94,13 @@ func getListFoldersResponseGetOffsetAttributeTypeOk(arg ListFoldersResponseGetOf
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"`
@@ -89,12 +112,14 @@ type ListFoldersResponse struct {
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)
@@ -106,6 +131,7 @@ func NewListFoldersResponse(items ListFoldersResponseGetItemsArgType, limit List
// 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
@@ -116,6 +142,7 @@ func NewListFoldersResponseWithDefaults() *ListFoldersResponse {
}
// 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
@@ -123,16 +150,19 @@ func (o *ListFoldersResponse) GetItems() (ret ListFoldersResponseGetItemsRetType
// 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
@@ -140,16 +170,19 @@ func (o *ListFoldersResponse) GetLimit() (ret ListFoldersResponseGetLimitRetType
// 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
@@ -157,15 +190,18 @@ func (o *ListFoldersResponse) GetOffset() (ret ListFoldersResponseGetOffsetRetTy
// 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 {
@@ -180,37 +216,45 @@ func (o ListFoldersResponse) ToMap() (map[string]interface{}, error) {
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
index e81e38987..116edb15d 100644
--- a/services/resourcemanager/model_list_folders_response_items_inner.go
+++ b/services/resourcemanager/model_list_folders_response_items_inner.go
@@ -8,6 +8,7 @@ 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 (
@@ -23,8 +24,10 @@ var _ MappedNullable = &ListFoldersResponseItemsInner{}
*/
// 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
@@ -32,11 +35,15 @@ func getListFoldersResponseItemsInnerGetContainerIdAttributeTypeOk(arg ListFolde
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
/*
@@ -44,10 +51,16 @@ type ListFoldersResponseItemsInnerGetContainerIdRetType = string
*/
// 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
@@ -55,6 +68,7 @@ func getListFoldersResponseItemsInnerGetCreationTimeAttributeTypeOk(arg ListFold
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
}
@@ -64,8 +78,10 @@ func setListFoldersResponseItemsInnerGetCreationTimeAttributeType(arg *ListFolde
*/
// 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
@@ -73,11 +89,15 @@ func getListFoldersResponseItemsInnerGetFolderIdAttributeTypeOk(arg ListFoldersR
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
/*
@@ -85,10 +105,16 @@ type ListFoldersResponseItemsInnerGetFolderIdRetType = string
*/
// 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
@@ -96,6 +122,7 @@ func getListFoldersResponseItemsInnerGetLabelsAttributeTypeOk(arg ListFoldersRes
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
}
@@ -105,8 +132,10 @@ func setListFoldersResponseItemsInnerGetLabelsAttributeType(arg *ListFoldersResp
*/
// 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
@@ -114,11 +143,15 @@ func getListFoldersResponseItemsInnerGetNameAttributeTypeOk(arg ListFoldersRespo
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
/*
@@ -126,10 +159,16 @@ type ListFoldersResponseItemsInnerGetNameRetType = string
*/
// 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
@@ -137,6 +176,7 @@ func getListFoldersResponseItemsInnerGetParentAttributeTypeOk(arg ListFoldersRes
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
}
@@ -146,10 +186,16 @@ func setListFoldersResponseItemsInnerGetParentAttributeType(arg *ListFoldersResp
*/
// 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
@@ -157,11 +203,13 @@ func getListFoldersResponseItemsInnerGetUpdateTimeAttributeTypeOk(arg ListFolder
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
@@ -184,12 +232,14 @@ type ListFoldersResponseItemsInner struct {
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)
@@ -204,12 +254,14 @@ func NewListFoldersResponseItemsInner(containerId ListFoldersResponseItemsInnerG
// 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
@@ -217,16 +269,19 @@ func (o *ListFoldersResponseItemsInner) GetContainerId() (ret ListFoldersRespons
// 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
@@ -234,16 +289,19 @@ func (o *ListFoldersResponseItemsInner) GetCreationTime() (ret ListFoldersRespon
// 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
@@ -251,16 +309,19 @@ func (o *ListFoldersResponseItemsInner) GetFolderId() (ret ListFoldersResponseIt
// 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
@@ -268,22 +329,26 @@ func (o *ListFoldersResponseItemsInner) GetLabels() (res ListFoldersResponseItem
// 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
@@ -291,16 +356,19 @@ func (o *ListFoldersResponseItemsInner) GetName() (ret ListFoldersResponseItemsI
// 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
@@ -308,16 +376,19 @@ func (o *ListFoldersResponseItemsInner) GetParent() (ret ListFoldersResponseItem
// 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
@@ -325,15 +396,18 @@ func (o *ListFoldersResponseItemsInner) GetUpdateTime() (ret ListFoldersResponse
// 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 {
@@ -360,37 +434,45 @@ func (o ListFoldersResponseItemsInner) ToMap() (map[string]interface{}, error) {
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_organizations_response.go b/services/resourcemanager/model_list_organizations_response.go
index 2a505f8b0..c715ca8f7 100644
--- a/services/resourcemanager/model_list_organizations_response.go
+++ b/services/resourcemanager/model_list_organizations_response.go
@@ -8,6 +8,7 @@ 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 (
@@ -22,10 +23,16 @@ var _ MappedNullable = &ListOrganizationsResponse{}
*/
// 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
@@ -33,6 +40,7 @@ func getListOrganizationsResponseGetItemsAttributeTypeOk(arg ListOrganizationsRe
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
}
@@ -42,10 +50,16 @@ func setListOrganizationsResponseGetItemsAttributeType(arg *ListOrganizationsRes
*/
// 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
@@ -53,6 +67,7 @@ func getListOrganizationsResponseGetLimitAttributeTypeOk(arg ListOrganizationsRe
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
}
@@ -62,10 +77,16 @@ func setListOrganizationsResponseGetLimitAttributeType(arg *ListOrganizationsRes
*/
// 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
@@ -73,11 +94,13 @@ func getListOrganizationsResponseGetOffsetAttributeTypeOk(arg ListOrganizationsR
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"`
@@ -89,12 +112,14 @@ type ListOrganizationsResponse struct {
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)
@@ -106,6 +131,7 @@ func NewListOrganizationsResponse(items ListOrganizationsResponseGetItemsArgType
// 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
@@ -116,6 +142,7 @@ func NewListOrganizationsResponseWithDefaults() *ListOrganizationsResponse {
}
// 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
@@ -123,16 +150,19 @@ func (o *ListOrganizationsResponse) GetItems() (ret ListOrganizationsResponseGet
// 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
@@ -140,16 +170,19 @@ func (o *ListOrganizationsResponse) GetLimit() (ret ListOrganizationsResponseGet
// 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
@@ -157,15 +190,18 @@ func (o *ListOrganizationsResponse) GetOffset() (ret ListOrganizationsResponseGe
// 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 {
@@ -180,37 +216,45 @@ func (o ListOrganizationsResponse) ToMap() (map[string]interface{}, error) {
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
index 0d33c5bbb..540420adb 100644
--- a/services/resourcemanager/model_list_organizations_response_items_inner.go
+++ b/services/resourcemanager/model_list_organizations_response_items_inner.go
@@ -8,6 +8,7 @@ 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 (
@@ -23,8 +24,10 @@ var _ MappedNullable = &ListOrganizationsResponseItemsInner{}
*/
// 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
@@ -32,11 +35,15 @@ func getListOrganizationsResponseItemsInnerGetContainerIdAttributeTypeOk(arg Lis
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
/*
@@ -44,10 +51,16 @@ type ListOrganizationsResponseItemsInnerGetContainerIdRetType = string
*/
// 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
@@ -55,6 +68,7 @@ func getListOrganizationsResponseItemsInnerGetCreationTimeAttributeTypeOk(arg Li
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
}
@@ -64,10 +78,16 @@ func setListOrganizationsResponseItemsInnerGetCreationTimeAttributeType(arg *Lis
*/
// 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
@@ -75,6 +95,7 @@ func getListOrganizationsResponseItemsInnerGetLabelsAttributeTypeOk(arg ListOrga
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
}
@@ -84,10 +105,16 @@ func setListOrganizationsResponseItemsInnerGetLabelsAttributeType(arg *ListOrgan
*/
// 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
@@ -95,6 +122,7 @@ func getListOrganizationsResponseItemsInnerGetLifecycleStateAttributeTypeOk(arg
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
}
@@ -104,8 +132,10 @@ func setListOrganizationsResponseItemsInnerGetLifecycleStateAttributeType(arg *L
*/
// 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
@@ -113,11 +143,15 @@ func getListOrganizationsResponseItemsInnerGetNameAttributeTypeOk(arg ListOrgani
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
/*
@@ -125,8 +159,10 @@ type ListOrganizationsResponseItemsInnerGetNameRetType = string
*/
// 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
@@ -134,11 +170,15 @@ func getListOrganizationsResponseItemsInnerGetOrganizationIdAttributeTypeOk(arg
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
/*
@@ -146,10 +186,16 @@ type ListOrganizationsResponseItemsInnerGetOrganizationIdRetType = string
*/
// 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
@@ -157,11 +203,13 @@ func getListOrganizationsResponseItemsInnerGetUpdateTimeAttributeTypeOk(arg List
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
@@ -184,12 +232,14 @@ type ListOrganizationsResponseItemsInner struct {
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)
@@ -204,12 +254,14 @@ func NewListOrganizationsResponseItemsInner(containerId ListOrganizationsRespons
// 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
@@ -217,16 +269,19 @@ func (o *ListOrganizationsResponseItemsInner) GetContainerId() (ret ListOrganiza
// 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
@@ -234,16 +289,19 @@ func (o *ListOrganizationsResponseItemsInner) GetCreationTime() (ret ListOrganiz
// 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
@@ -251,22 +309,26 @@ func (o *ListOrganizationsResponseItemsInner) GetLabels() (res ListOrganizations
// 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
@@ -274,16 +336,19 @@ func (o *ListOrganizationsResponseItemsInner) GetLifecycleState() (ret ListOrgan
// 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
@@ -291,16 +356,19 @@ func (o *ListOrganizationsResponseItemsInner) GetName() (ret ListOrganizationsRe
// 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
@@ -308,16 +376,19 @@ func (o *ListOrganizationsResponseItemsInner) GetOrganizationId() (ret ListOrgan
// 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
@@ -325,15 +396,18 @@ func (o *ListOrganizationsResponseItemsInner) GetUpdateTime() (ret ListOrganizat
// 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 {
@@ -360,37 +434,45 @@ func (o ListOrganizationsResponseItemsInner) ToMap() (map[string]interface{}, er
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_projects_response.go b/services/resourcemanager/model_list_projects_response.go
index 5c21cd392..6720f4d56 100644
--- a/services/resourcemanager/model_list_projects_response.go
+++ b/services/resourcemanager/model_list_projects_response.go
@@ -8,6 +8,7 @@ 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 (
@@ -22,10 +23,16 @@ var _ MappedNullable = &ListProjectsResponse{}
*/
// 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
@@ -33,6 +40,7 @@ func getListProjectsResponseGetItemsAttributeTypeOk(arg ListProjectsResponseGetI
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
}
@@ -42,10 +50,16 @@ func setListProjectsResponseGetItemsAttributeType(arg *ListProjectsResponseGetIt
*/
// 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
@@ -53,6 +67,7 @@ func getListProjectsResponseGetLimitAttributeTypeOk(arg ListProjectsResponseGetL
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
}
@@ -62,10 +77,16 @@ func setListProjectsResponseGetLimitAttributeType(arg *ListProjectsResponseGetLi
*/
// 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
@@ -73,11 +94,13 @@ func getListProjectsResponseGetOffsetAttributeTypeOk(arg ListProjectsResponseGet
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"`
@@ -89,12 +112,14 @@ type ListProjectsResponse struct {
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)
@@ -106,6 +131,7 @@ func NewListProjectsResponse(items ListProjectsResponseGetItemsArgType, limit Li
// 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
@@ -116,6 +142,7 @@ func NewListProjectsResponseWithDefaults() *ListProjectsResponse {
}
// 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
@@ -123,16 +150,19 @@ func (o *ListProjectsResponse) GetItems() (ret ListProjectsResponseGetItemsRetTy
// 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
@@ -140,16 +170,19 @@ func (o *ListProjectsResponse) GetLimit() (ret ListProjectsResponseGetLimitRetTy
// 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
@@ -157,15 +190,18 @@ func (o *ListProjectsResponse) GetOffset() (ret ListProjectsResponseGetOffsetRet
// 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 {
@@ -180,37 +216,45 @@ func (o ListProjectsResponse) ToMap() (map[string]interface{}, error) {
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_member.go b/services/resourcemanager/model_member.go
index ea145565e..5ba471df9 100644
--- a/services/resourcemanager/model_member.go
+++ b/services/resourcemanager/model_member.go
@@ -8,6 +8,7 @@ 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 (
@@ -22,8 +23,10 @@ var _ MappedNullable = &Member{}
*/
// 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
@@ -31,11 +34,15 @@ func getMemberGetRoleAttributeTypeOk(arg MemberGetRoleAttributeType) (ret Member
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
/*
@@ -43,8 +50,10 @@ type MemberGetRoleRetType = string
*/
// 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
@@ -52,14 +61,19 @@ func getMemberGetSubjectAttributeTypeOk(arg MemberGetSubjectAttributeType) (ret
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
@@ -69,12 +83,14 @@ type Member struct {
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)
@@ -85,12 +101,14 @@ func NewMember(role MemberGetRoleArgType, subject MemberGetSubjectArgType) *Memb
// 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
@@ -98,16 +116,19 @@ func (o *Member) GetRole() (ret MemberGetRoleRetType) {
// 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
@@ -115,15 +136,18 @@ func (o *Member) GetSubject() (ret MemberGetSubjectRetType) {
// 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 {
@@ -135,37 +159,45 @@ func (o Member) ToMap() (map[string]interface{}, error) {
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_organization_response.go b/services/resourcemanager/model_organization_response.go
index a91ca6b23..cbe89f09f 100644
--- a/services/resourcemanager/model_organization_response.go
+++ b/services/resourcemanager/model_organization_response.go
@@ -8,6 +8,7 @@ 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 (
@@ -23,8 +24,10 @@ var _ MappedNullable = &OrganizationResponse{}
*/
// 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
@@ -32,11 +35,15 @@ func getOrganizationResponseGetContainerIdAttributeTypeOk(arg OrganizationRespon
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
/*
@@ -44,10 +51,16 @@ type OrganizationResponseGetContainerIdRetType = string
*/
// 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
@@ -55,6 +68,7 @@ func getOrganizationResponseGetCreationTimeAttributeTypeOk(arg OrganizationRespo
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
}
@@ -64,10 +78,16 @@ func setOrganizationResponseGetCreationTimeAttributeType(arg *OrganizationRespon
*/
// 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
@@ -75,6 +95,7 @@ func getOrganizationResponseGetLabelsAttributeTypeOk(arg OrganizationResponseGet
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
}
@@ -84,10 +105,16 @@ func setOrganizationResponseGetLabelsAttributeType(arg *OrganizationResponseGetL
*/
// 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
@@ -95,6 +122,7 @@ func getOrganizationResponseGetLifecycleStateAttributeTypeOk(arg OrganizationRes
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
}
@@ -104,8 +132,10 @@ func setOrganizationResponseGetLifecycleStateAttributeType(arg *OrganizationResp
*/
// 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
@@ -113,11 +143,15 @@ func getOrganizationResponseGetNameAttributeTypeOk(arg OrganizationResponseGetNa
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
/*
@@ -125,8 +159,10 @@ type OrganizationResponseGetNameRetType = string
*/
// 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
@@ -134,11 +170,15 @@ func getOrganizationResponseGetOrganizationIdAttributeTypeOk(arg OrganizationRes
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
/*
@@ -146,10 +186,16 @@ type OrganizationResponseGetOrganizationIdRetType = string
*/
// 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
@@ -157,11 +203,13 @@ func getOrganizationResponseGetUpdateTimeAttributeTypeOk(arg OrganizationRespons
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
@@ -184,12 +232,14 @@ type OrganizationResponse struct {
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)
@@ -204,12 +254,14 @@ func NewOrganizationResponse(containerId OrganizationResponseGetContainerIdArgTy
// 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
@@ -217,16 +269,19 @@ func (o *OrganizationResponse) GetContainerId() (ret OrganizationResponseGetCont
// 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
@@ -234,16 +289,19 @@ func (o *OrganizationResponse) GetCreationTime() (ret OrganizationResponseGetCre
// 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
@@ -251,22 +309,26 @@ func (o *OrganizationResponse) GetLabels() (res OrganizationResponseGetLabelsRet
// 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
@@ -274,16 +336,19 @@ func (o *OrganizationResponse) GetLifecycleState() (ret OrganizationResponseGetL
// 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
@@ -291,16 +356,19 @@ func (o *OrganizationResponse) GetName() (ret OrganizationResponseGetNameRetType
// 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
@@ -308,16 +376,19 @@ func (o *OrganizationResponse) GetOrganizationId() (ret OrganizationResponseGetO
// 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
@@ -325,15 +396,18 @@ func (o *OrganizationResponse) GetUpdateTime() (ret OrganizationResponseGetUpdat
// 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 {
@@ -360,37 +434,45 @@ func (o OrganizationResponse) ToMap() (map[string]interface{}, error) {
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_parent.go b/services/resourcemanager/model_parent.go
index e4c887c11..2d9a84bf6 100644
--- a/services/resourcemanager/model_parent.go
+++ b/services/resourcemanager/model_parent.go
@@ -8,6 +8,7 @@ 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 (
@@ -23,8 +24,10 @@ var _ MappedNullable = &Parent{}
*/
// 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
@@ -32,11 +35,15 @@ func getParentGetContainerIdAttributeTypeOk(arg ParentGetContainerIdAttributeTyp
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
/*
@@ -44,8 +51,10 @@ type ParentGetContainerIdRetType = string
*/
// 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
@@ -53,11 +62,15 @@ func getParentGetIdAttributeTypeOk(arg ParentGetIdAttributeType) (ret ParentGetI
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
/*
@@ -68,20 +81,25 @@ type ParentGetIdRetType = string
// 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"
- PARENTTYPE_FOLDER ParentTypes = "FOLDER"
+ // 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
@@ -109,6 +127,7 @@ func (v *ParentTypes) UnmarshalJSON(src []byte) error {
// 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() {
@@ -119,6 +138,7 @@ func NewParentTypesFromValue(v ParentTypes) (*ParentTypes, error) {
}
// 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 {
@@ -129,50 +149,65 @@ func (v ParentTypes) IsValid() bool {
}
// 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
@@ -180,11 +215,13 @@ func getParentGetTypeAttributeTypeOk(arg ParentGetTypeAttributeType) (ret Parent
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
@@ -197,12 +234,14 @@ type Parent struct {
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)
@@ -214,12 +253,14 @@ func NewParent(containerId ParentGetContainerIdArgType, id ParentGetIdArgType, t
// 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
@@ -227,16 +268,19 @@ func (o *Parent) GetContainerId() (ret ParentGetContainerIdRetType) {
// 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
@@ -244,16 +288,19 @@ func (o *Parent) GetId() (ret ParentGetIdRetType) {
// 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
@@ -261,15 +308,18 @@ func (o *Parent) GetType() (ret ParentGetTypeRetType) {
// 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 {
@@ -284,37 +334,45 @@ func (o Parent) ToMap() (map[string]interface{}, error) {
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
index 12f9413ff..ba5ea2785 100644
--- a/services/resourcemanager/model_parent_list_inner.go
+++ b/services/resourcemanager/model_parent_list_inner.go
@@ -8,6 +8,7 @@ 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 (
@@ -23,8 +24,10 @@ var _ MappedNullable = &ParentListInner{}
*/
// 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
@@ -32,11 +35,15 @@ func getParentListInnerGetContainerIdAttributeTypeOk(arg ParentListInnerGetConta
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
/*
@@ -44,8 +51,10 @@ type ParentListInnerGetContainerIdRetType = string
*/
// 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
@@ -53,11 +62,15 @@ func getParentListInnerGetContainerParentIdAttributeTypeOk(arg ParentListInnerGe
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
/*
@@ -65,8 +78,10 @@ type ParentListInnerGetContainerParentIdRetType = string
*/
// 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
@@ -74,11 +89,15 @@ func getParentListInnerGetIdAttributeTypeOk(arg ParentListInnerGetIdAttributeTyp
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
/*
@@ -86,8 +105,10 @@ type ParentListInnerGetIdRetType = string
*/
// 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
@@ -95,11 +116,15 @@ func getParentListInnerGetNameAttributeTypeOk(arg ParentListInnerGetNameAttribut
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
/*
@@ -107,8 +132,10 @@ type ParentListInnerGetNameRetType = string
*/
// 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
@@ -116,11 +143,15 @@ func getParentListInnerGetParentIdAttributeTypeOk(arg ParentListInnerGetParentId
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
/*
@@ -131,20 +162,25 @@ type ParentListInnerGetParentIdRetType = string
// 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 (
- PARENTLISTINNERTYPE_FOLDER ParentListInnerTypes = "FOLDER"
+ // 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
@@ -172,6 +208,7 @@ func (v *ParentListInnerTypes) UnmarshalJSON(src []byte) error {
// 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() {
@@ -182,6 +219,7 @@ func NewParentListInnerTypesFromValue(v ParentListInnerTypes) (*ParentListInnerT
}
// 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 {
@@ -192,50 +230,65 @@ func (v ParentListInnerTypes) IsValid() bool {
}
// 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
@@ -243,11 +296,13 @@ func getParentListInnerGetTypeAttributeTypeOk(arg ParentListInnerGetTypeAttribut
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
@@ -267,12 +322,14 @@ type ParentListInner struct {
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)
@@ -285,12 +342,14 @@ func NewParentListInner(containerId ParentListInnerGetContainerIdArgType, id Par
// 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
@@ -298,16 +357,19 @@ func (o *ParentListInner) GetContainerId() (ret ParentListInnerGetContainerIdRet
// 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
@@ -315,22 +377,26 @@ func (o *ParentListInner) GetContainerParentId() (res ParentListInnerGetContaine
// 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
@@ -338,16 +404,19 @@ func (o *ParentListInner) GetId() (ret ParentListInnerGetIdRetType) {
// 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
@@ -355,16 +424,19 @@ func (o *ParentListInner) GetName() (ret ParentListInnerGetNameRetType) {
// 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
@@ -372,22 +444,26 @@ func (o *ParentListInner) GetParentId() (res ParentListInnerGetParentIdRetType)
// 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
@@ -395,15 +471,18 @@ func (o *ParentListInner) GetType() (ret ParentListInnerGetTypeRetType) {
// 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 {
@@ -427,37 +506,45 @@ func (o ParentListInner) ToMap() (map[string]interface{}, error) {
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_partial_update_folder_payload.go b/services/resourcemanager/model_partial_update_folder_payload.go
index 7eca47ea6..2762e190c 100644
--- a/services/resourcemanager/model_partial_update_folder_payload.go
+++ b/services/resourcemanager/model_partial_update_folder_payload.go
@@ -8,6 +8,7 @@ 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 (
@@ -22,8 +23,10 @@ var _ MappedNullable = &PartialUpdateFolderPayload{}
*/
// 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
@@ -31,11 +34,15 @@ func getPartialUpdateFolderPayloadGetContainerParentIdAttributeTypeOk(arg Partia
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
/*
@@ -43,10 +50,16 @@ type PartialUpdateFolderPayloadGetContainerParentIdRetType = string
*/
// 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
@@ -54,6 +67,7 @@ func getPartialUpdateFolderPayloadGetLabelsAttributeTypeOk(arg PartialUpdateFold
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
}
@@ -63,8 +77,10 @@ func setPartialUpdateFolderPayloadGetLabelsAttributeType(arg *PartialUpdateFolde
*/
// 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
@@ -72,14 +88,19 @@ func getPartialUpdateFolderPayloadGetNameAttributeTypeOk(arg PartialUpdateFolder
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"`
@@ -93,6 +114,7 @@ type PartialUpdateFolderPayload struct {
// 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
@@ -101,12 +123,14 @@ func NewPartialUpdateFolderPayload() *PartialUpdateFolderPayload {
// 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
@@ -114,22 +138,26 @@ func (o *PartialUpdateFolderPayload) GetContainerParentId() (res PartialUpdateFo
// 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
@@ -137,22 +165,26 @@ func (o *PartialUpdateFolderPayload) GetLabels() (res PartialUpdateFolderPayload
// 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
@@ -160,21 +192,25 @@ func (o *PartialUpdateFolderPayload) GetName() (res PartialUpdateFolderPayloadGe
// 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 {
@@ -189,37 +225,45 @@ func (o PartialUpdateFolderPayload) ToMap() (map[string]interface{}, error) {
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_organization_payload.go b/services/resourcemanager/model_partial_update_organization_payload.go
index 1b37fb3cd..e5696fa22 100644
--- a/services/resourcemanager/model_partial_update_organization_payload.go
+++ b/services/resourcemanager/model_partial_update_organization_payload.go
@@ -8,6 +8,7 @@ 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 (
@@ -22,10 +23,16 @@ var _ MappedNullable = &PartialUpdateOrganizationPayload{}
*/
// 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
@@ -33,6 +40,7 @@ func getPartialUpdateOrganizationPayloadGetLabelsAttributeTypeOk(arg PartialUpda
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
}
@@ -42,8 +50,10 @@ func setPartialUpdateOrganizationPayloadGetLabelsAttributeType(arg *PartialUpdat
*/
// 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
@@ -51,14 +61,19 @@ func getPartialUpdateOrganizationPayloadGetNameAttributeTypeOk(arg PartialUpdate
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 {
// Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
Labels PartialUpdateOrganizationPayloadGetLabelsAttributeType `json:"labels,omitempty"`
@@ -70,6 +85,7 @@ type PartialUpdateOrganizationPayload struct {
// 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
@@ -78,12 +94,14 @@ func NewPartialUpdateOrganizationPayload() *PartialUpdateOrganizationPayload {
// 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
@@ -91,22 +109,26 @@ func (o *PartialUpdateOrganizationPayload) GetLabels() (res PartialUpdateOrganiz
// 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
@@ -114,21 +136,25 @@ func (o *PartialUpdateOrganizationPayload) GetName() (res PartialUpdateOrganizat
// 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 {
@@ -140,37 +166,45 @@ func (o PartialUpdateOrganizationPayload) ToMap() (map[string]interface{}, error
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_project_payload.go b/services/resourcemanager/model_partial_update_project_payload.go
index ad5c58a50..dfe64d2d2 100644
--- a/services/resourcemanager/model_partial_update_project_payload.go
+++ b/services/resourcemanager/model_partial_update_project_payload.go
@@ -8,6 +8,7 @@ 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 (
@@ -22,8 +23,10 @@ var _ MappedNullable = &PartialUpdateProjectPayload{}
*/
// 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
@@ -31,11 +34,15 @@ func getPartialUpdateProjectPayloadGetContainerParentIdAttributeTypeOk(arg Parti
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
/*
@@ -43,10 +50,16 @@ type PartialUpdateProjectPayloadGetContainerParentIdRetType = string
*/
// 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
@@ -54,6 +67,7 @@ func getPartialUpdateProjectPayloadGetLabelsAttributeTypeOk(arg PartialUpdatePro
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
}
@@ -63,8 +77,10 @@ func setPartialUpdateProjectPayloadGetLabelsAttributeType(arg *PartialUpdateProj
*/
// 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
@@ -72,14 +88,19 @@ func getPartialUpdateProjectPayloadGetNameAttributeTypeOk(arg PartialUpdateProje
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"`
@@ -93,6 +114,7 @@ type PartialUpdateProjectPayload struct {
// 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
@@ -101,12 +123,14 @@ func NewPartialUpdateProjectPayload() *PartialUpdateProjectPayload {
// 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
@@ -114,22 +138,26 @@ func (o *PartialUpdateProjectPayload) GetContainerParentId() (res PartialUpdateP
// 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
@@ -137,22 +165,26 @@ func (o *PartialUpdateProjectPayload) GetLabels() (res PartialUpdateProjectPaylo
// 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
@@ -160,21 +192,25 @@ func (o *PartialUpdateProjectPayload) GetName() (res PartialUpdateProjectPayload
// 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 {
@@ -189,37 +225,45 @@ func (o PartialUpdateProjectPayload) ToMap() (map[string]interface{}, error) {
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_project.go b/services/resourcemanager/model_project.go
index d1e9f2851..391b0f755 100644
--- a/services/resourcemanager/model_project.go
+++ b/services/resourcemanager/model_project.go
@@ -8,6 +8,7 @@ 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 (
@@ -23,8 +24,10 @@ var _ MappedNullable = &Project{}
*/
// 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
@@ -32,11 +35,15 @@ func getProjectGetContainerIdAttributeTypeOk(arg ProjectGetContainerIdAttributeT
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
/*
@@ -44,10 +51,16 @@ type ProjectGetContainerIdRetType = string
*/
// 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
@@ -55,6 +68,7 @@ func getProjectGetCreationTimeAttributeTypeOk(arg ProjectGetCreationTimeAttribut
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
}
@@ -64,10 +78,16 @@ func setProjectGetCreationTimeAttributeType(arg *ProjectGetCreationTimeAttribute
*/
// 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
@@ -75,6 +95,7 @@ func getProjectGetLabelsAttributeTypeOk(arg ProjectGetLabelsAttributeType) (ret
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
}
@@ -84,10 +105,16 @@ func setProjectGetLabelsAttributeType(arg *ProjectGetLabelsAttributeType, val Pr
*/
// 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
@@ -95,6 +122,7 @@ func getProjectGetLifecycleStateAttributeTypeOk(arg ProjectGetLifecycleStateAttr
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
}
@@ -104,8 +132,10 @@ func setProjectGetLifecycleStateAttributeType(arg *ProjectGetLifecycleStateAttri
*/
// 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
@@ -113,11 +143,15 @@ func getProjectGetNameAttributeTypeOk(arg ProjectGetNameAttributeType) (ret Proj
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
/*
@@ -125,10 +159,16 @@ type ProjectGetNameRetType = string
*/
// 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
@@ -136,6 +176,7 @@ func getProjectGetParentAttributeTypeOk(arg ProjectGetParentAttributeType) (ret
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
}
@@ -145,8 +186,10 @@ func setProjectGetParentAttributeType(arg *ProjectGetParentAttributeType, val Pr
*/
// 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
@@ -154,11 +197,15 @@ func getProjectGetProjectIdAttributeTypeOk(arg ProjectGetProjectIdAttributeType)
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
/*
@@ -166,10 +213,16 @@ type ProjectGetProjectIdRetType = string
*/
// 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
@@ -177,11 +230,13 @@ func getProjectGetUpdateTimeAttributeTypeOk(arg ProjectGetUpdateTimeAttributeTyp
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
@@ -206,12 +261,14 @@ type Project struct {
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)
@@ -227,12 +284,14 @@ func NewProject(containerId ProjectGetContainerIdArgType, creationTime ProjectGe
// 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
@@ -240,16 +299,19 @@ func (o *Project) GetContainerId() (ret ProjectGetContainerIdRetType) {
// 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
@@ -257,16 +319,19 @@ func (o *Project) GetCreationTime() (ret ProjectGetCreationTimeRetType) {
// 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
@@ -274,22 +339,26 @@ func (o *Project) GetLabels() (res ProjectGetLabelsRetType) {
// 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
@@ -297,16 +366,19 @@ func (o *Project) GetLifecycleState() (ret ProjectGetLifecycleStateRetType) {
// 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
@@ -314,16 +386,19 @@ func (o *Project) GetName() (ret ProjectGetNameRetType) {
// 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
@@ -331,16 +406,19 @@ func (o *Project) GetParent() (ret ProjectGetParentRetType) {
// 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
@@ -348,16 +426,19 @@ func (o *Project) GetProjectId() (ret ProjectGetProjectIdRetType) {
// 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
@@ -365,15 +446,18 @@ func (o *Project) GetUpdateTime() (ret ProjectGetUpdateTimeRetType) {
// 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 {
@@ -403,37 +487,45 @@ func (o Project) ToMap() (map[string]interface{}, error) {
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/oas_commit b/services/resourcemanager/oas_commit
index 588ee296b..853627d06 100644
--- a/services/resourcemanager/oas_commit
+++ b/services/resourcemanager/oas_commit
@@ -1 +1 @@
-964ac4ce34f0b6417f2496a1d48585c4926dee3a
+335aa32af4d6c0d2a036b8567773da2f051f7efb
diff --git a/services/resourcemanager/utils.go b/services/resourcemanager/utils.go
index 600a82fed..9992dd910 100644
--- a/services/resourcemanager/utils.go
+++ b/services/resourcemanager/utils.go
@@ -18,341 +18,419 @@ import (
)
// 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
@@ -369,13 +447,16 @@ func IsNil(i interface{}) bool {
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 {
diff --git a/services/resourcemanager/v0api/api_default.go b/services/resourcemanager/v0api/api_default.go
new file mode 100644
index 000000000..96247969f
--- /dev/null
+++ b/services/resourcemanager/v0api/api_default.go
@@ -0,0 +1,2821 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "context"
+ "io"
+ "net/http"
+ "net/url"
+ "reflect"
+ "strings"
+ "time"
+
+ "github.com/stackitcloud/stackit-sdk-go/core/config"
+ "github.com/stackitcloud/stackit-sdk-go/core/oapierror"
+)
+
+type DefaultAPI interface {
+
+ /*
+ CreateFolder Create Folder
+
+ Create a new folder.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCreateFolderRequest
+ */
+ CreateFolder(ctx context.Context) ApiCreateFolderRequest
+
+ // CreateFolderExecute executes the request
+ // @return FolderResponse
+ CreateFolderExecute(r ApiCreateFolderRequest) (*FolderResponse, error)
+
+ /*
+ CreateProject Create Project
+
+ Create a new project.
+ - The request is synchronous, but the workflow-based creation is asynchronous.
+ - Lifecycle state remains in CREATING, until workflow completes
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCreateProjectRequest
+ */
+ CreateProject(ctx context.Context) ApiCreateProjectRequest
+
+ // CreateProjectExecute executes the request
+ // @return Project
+ CreateProjectExecute(r ApiCreateProjectRequest) (*Project, error)
+
+ /*
+ DeleteFolder Delete Folder
+
+ Delete a folder and its metadata.
+ - Folder must not be parent of any other container
+ - A force flag may be set, deleting all underlying folders recursively - if no project is attached!
+
+ @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
+ */
+ DeleteFolder(ctx context.Context, containerId string) ApiDeleteFolderRequest
+
+ // DeleteFolderExecute executes the request
+ DeleteFolderExecute(r ApiDeleteFolderRequest) error
+
+ /*
+ DeleteFolderLabels Delete Folder Labels
+
+ Deletes all folder labels by given keys.
+ - Specific labels may be deleted by key(s)
+ - If no key is specified, all labels will be deleted!
+
+ @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
+ */
+ DeleteFolderLabels(ctx context.Context, containerId string) ApiDeleteFolderLabelsRequest
+
+ // DeleteFolderLabelsExecute executes the request
+ DeleteFolderLabelsExecute(r ApiDeleteFolderLabelsRequest) error
+
+ /*
+ DeleteOrganizationLabels Delete Organization Labels
+
+ Deletes all organization labels by given keys.
+ - Specific labels may be deleted by key(s)
+ - If no key is specified, all labels will be deleted!
+
+ @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
+ */
+ DeleteOrganizationLabels(ctx context.Context, containerId string) ApiDeleteOrganizationLabelsRequest
+
+ // DeleteOrganizationLabelsExecute executes the request
+ DeleteOrganizationLabelsExecute(r ApiDeleteOrganizationLabelsRequest) error
+
+ /*
+ DeleteProject Delete Project
+
+ Triggers the deletion of a project.
+ - The request is synchronous, but the workflow-based deletion is asynchronous
+ - Lifecycle state remains in DELETING, until workflow completes
+
+ @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
+ */
+ DeleteProject(ctx context.Context, id string) ApiDeleteProjectRequest
+
+ // DeleteProjectExecute executes the request
+ DeleteProjectExecute(r ApiDeleteProjectRequest) error
+
+ /*
+ DeleteProjectLabels Delete Project Labels
+
+ Deletes all project labels by given keys.
+ - Specific labels may be deleted by key(s)
+ - If no key is specified, all labels will be deleted!
+
+ @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
+ */
+ DeleteProjectLabels(ctx context.Context, containerId string) ApiDeleteProjectLabelsRequest
+
+ // DeleteProjectLabelsExecute executes the request
+ DeleteProjectLabelsExecute(r ApiDeleteProjectLabelsRequest) error
+
+ /*
+ GetFolderDetails Get Folder Details
+
+ Returns all metadata for a specific folder.
+
+ @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
+ */
+ GetFolderDetails(ctx context.Context, containerId string) ApiGetFolderDetailsRequest
+
+ // GetFolderDetailsExecute executes the request
+ // @return GetFolderDetailsResponse
+ GetFolderDetailsExecute(r ApiGetFolderDetailsRequest) (*GetFolderDetailsResponse, error)
+
+ /*
+ GetOrganization Get Organization Details
+
+ Returns the organization and its metadata.
+
+ @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
+ */
+ GetOrganization(ctx context.Context, id string) ApiGetOrganizationRequest
+
+ // GetOrganizationExecute executes the request
+ // @return OrganizationResponse
+ GetOrganizationExecute(r ApiGetOrganizationRequest) (*OrganizationResponse, error)
+
+ /*
+ GetProject Get Project Details
+
+ Returns the project and its metadata.
+
+ @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
+ */
+ GetProject(ctx context.Context, id string) ApiGetProjectRequest
+
+ // GetProjectExecute executes the request
+ // @return GetProjectResponse
+ GetProjectExecute(r ApiGetProjectRequest) (*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
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiListFoldersRequest
+ */
+ ListFolders(ctx context.Context) ApiListFoldersRequest
+
+ // ListFoldersExecute executes the request
+ // @return ListFoldersResponse
+ ListFoldersExecute(r ApiListFoldersRequest) (*ListFoldersResponse, error)
+
+ /*
+ ListOrganizations Get All Organizations
+
+ Returns all organizations and their metadata.
+ - If no containerIds are specified, all organizations are returned, if permitted
+ - ContainerIds may be set to filter
+ - Member may be set to filter
+ - If member and containerIds are given, both are used for filtering
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiListOrganizationsRequest
+ */
+ ListOrganizations(ctx context.Context) ApiListOrganizationsRequest
+
+ // ListOrganizationsExecute executes the request
+ // @return ListOrganizationsResponse
+ ListOrganizationsExecute(r ApiListOrganizationsRequest) (*ListOrganizationsResponse, error)
+
+ /*
+ ListProjects Get All Projects
+
+ 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
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiListProjectsRequest
+ */
+ ListProjects(ctx context.Context) ApiListProjectsRequest
+
+ // ListProjectsExecute executes the request
+ // @return ListProjectsResponse
+ ListProjectsExecute(r ApiListProjectsRequest) (*ListProjectsResponse, error)
+
+ /*
+ PartialUpdateFolder Update Folder
+
+ Update the folder and its metadata.
+ - Update folder name
+ - Update folder labels
+ - Update folder parent (folder or organization)
+
+ @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
+ */
+ PartialUpdateFolder(ctx context.Context, containerId string) ApiPartialUpdateFolderRequest
+
+ // PartialUpdateFolderExecute executes the request
+ // @return FolderResponse
+ PartialUpdateFolderExecute(r ApiPartialUpdateFolderRequest) (*FolderResponse, error)
+
+ /*
+ PartialUpdateOrganization Update Organization
+
+ Update the organization and its metadata.
+ - Update organization name
+ - Update organization 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
+ */
+ PartialUpdateOrganization(ctx context.Context, id string) ApiPartialUpdateOrganizationRequest
+
+ // PartialUpdateOrganizationExecute executes the request
+ // @return OrganizationResponse
+ PartialUpdateOrganizationExecute(r ApiPartialUpdateOrganizationRequest) (*OrganizationResponse, error)
+
+ /*
+ PartialUpdateProject Update Project
+
+ Update the project and its metadata.
+ - Update project name
+ - Update project labels
+ - Update project parent (folder or organization)
+
+ @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
+ */
+ PartialUpdateProject(ctx context.Context, id string) ApiPartialUpdateProjectRequest
+
+ // PartialUpdateProjectExecute executes the request
+ // @return Project
+ PartialUpdateProjectExecute(r ApiPartialUpdateProjectRequest) (*Project, error)
+}
+
+// DefaultAPIService DefaultAPI service
+type DefaultAPIService service
+
+type ApiCreateFolderRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ createFolderPayload *CreateFolderPayload
+}
+
+func (r ApiCreateFolderRequest) CreateFolderPayload(createFolderPayload CreateFolderPayload) ApiCreateFolderRequest {
+ r.createFolderPayload = &createFolderPayload
+ return r
+}
+
+func (r ApiCreateFolderRequest) Execute() (*FolderResponse, error) {
+ return r.ApiService.CreateFolderExecute(r)
+}
+
+/*
+CreateFolder Create Folder
+
+Create a new folder.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCreateFolderRequest
+*/
+func (a *DefaultAPIService) CreateFolder(ctx context.Context) ApiCreateFolderRequest {
+ return ApiCreateFolderRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return FolderResponse
+func (a *DefaultAPIService) CreateFolderExecute(r ApiCreateFolderRequest) (*FolderResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FolderResponse
+ )
+
+ localBasePath, err := a.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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorResponse
+ err = a.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
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 403 {
+ var v ErrorResponse
+ err = a.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
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v ErrorResponse
+ err = a.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
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.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
+}
+
+type ApiCreateProjectRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ createProjectPayload *CreateProjectPayload
+}
+
+func (r ApiCreateProjectRequest) CreateProjectPayload(createProjectPayload CreateProjectPayload) ApiCreateProjectRequest {
+ r.createProjectPayload = &createProjectPayload
+ return r
+}
+
+func (r ApiCreateProjectRequest) Execute() (*Project, error) {
+ return r.ApiService.CreateProjectExecute(r)
+}
+
+/*
+CreateProject Create Project
+
+Create a new project.
+- The request is synchronous, but the workflow-based creation is asynchronous.
+- Lifecycle state remains in CREATING, until workflow completes
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCreateProjectRequest
+*/
+func (a *DefaultAPIService) CreateProject(ctx context.Context) ApiCreateProjectRequest {
+ return ApiCreateProjectRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return Project
+func (a *DefaultAPIService) CreateProjectExecute(r ApiCreateProjectRequest) (*Project, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Project
+ )
+
+ localBasePath, err := a.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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorResponse
+ err = a.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
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 403 {
+ var v ErrorResponse
+ err = a.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
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v ErrorResponse
+ err = a.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
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.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
+}
+
+type ApiDeleteFolderRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ containerId string
+ force *bool
+}
+
+// If true, all nested, empty folders are deleted recursively - if no project is attached!
+func (r ApiDeleteFolderRequest) Force(force bool) ApiDeleteFolderRequest {
+ r.force = &force
+ return r
+}
+
+func (r ApiDeleteFolderRequest) Execute() error {
+ return r.ApiService.DeleteFolderExecute(r)
+}
+
+/*
+DeleteFolder Delete Folder
+
+Delete a folder and its metadata.
+- Folder must not be parent of any other container
+- A force flag may be set, deleting all underlying folders recursively - if no project is attached!
+
+ @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 *DefaultAPIService) DeleteFolder(ctx context.Context, containerId string) ApiDeleteFolderRequest {
+ return ApiDeleteFolderRequest{
+ ApiService: a,
+ ctx: ctx,
+ containerId: containerId,
+ }
+}
+
+// Execute executes the request
+func (a *DefaultAPIService) DeleteFolderExecute(r ApiDeleteFolderRequest) error {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.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, "form", "")
+ } else {
+ var defaultValue bool = false
+ parameterAddToHeaderOrQuery(localVarQueryParams, "force", defaultValue, "form", "")
+ r.force = &defaultValue
+ }
+ // 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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v ErrorResponse
+ err = a.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 newErr
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v ErrorResponse
+ err = a.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 newErr
+ }
+
+ return nil
+}
+
+type ApiDeleteFolderLabelsRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ containerId string
+ keys *[]string
+}
+
+// Label name.
+func (r ApiDeleteFolderLabelsRequest) Keys(keys []string) ApiDeleteFolderLabelsRequest {
+ r.keys = &keys
+ return r
+}
+
+func (r ApiDeleteFolderLabelsRequest) Execute() error {
+ return r.ApiService.DeleteFolderLabelsExecute(r)
+}
+
+/*
+DeleteFolderLabels Delete Folder Labels
+
+Deletes all folder labels by given keys.
+- Specific labels may be deleted by key(s)
+- If no key is specified, all labels will be deleted!
+
+ @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 *DefaultAPIService) DeleteFolderLabels(ctx context.Context, containerId string) ApiDeleteFolderLabelsRequest {
+ return ApiDeleteFolderLabelsRequest{
+ ApiService: a,
+ ctx: ctx,
+ containerId: containerId,
+ }
+}
+
+// Execute executes the request
+func (a *DefaultAPIService) DeleteFolderLabelsExecute(r ApiDeleteFolderLabelsRequest) error {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.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(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "keys", t, "form", "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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v ErrorResponse
+ err = a.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 newErr
+ }
+
+ return nil
+}
+
+type ApiDeleteOrganizationLabelsRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ containerId string
+ keys *[]string
+}
+
+// Label name.
+func (r ApiDeleteOrganizationLabelsRequest) Keys(keys []string) ApiDeleteOrganizationLabelsRequest {
+ r.keys = &keys
+ return r
+}
+
+func (r ApiDeleteOrganizationLabelsRequest) Execute() error {
+ return r.ApiService.DeleteOrganizationLabelsExecute(r)
+}
+
+/*
+DeleteOrganizationLabels Delete Organization Labels
+
+Deletes all organization labels by given keys.
+- Specific labels may be deleted by key(s)
+- If no key is specified, all labels will be deleted!
+
+ @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 *DefaultAPIService) DeleteOrganizationLabels(ctx context.Context, containerId string) ApiDeleteOrganizationLabelsRequest {
+ return ApiDeleteOrganizationLabelsRequest{
+ ApiService: a,
+ ctx: ctx,
+ containerId: containerId,
+ }
+}
+
+// Execute executes the request
+func (a *DefaultAPIService) DeleteOrganizationLabelsExecute(r ApiDeleteOrganizationLabelsRequest) error {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.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(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "keys", t, "form", "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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v ErrorResponse
+ err = a.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 newErr
+ }
+
+ return nil
+}
+
+type ApiDeleteProjectRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ id string
+}
+
+func (r ApiDeleteProjectRequest) Execute() error {
+ return r.ApiService.DeleteProjectExecute(r)
+}
+
+/*
+DeleteProject Delete Project
+
+Triggers the deletion of a project.
+- The request is synchronous, but the workflow-based deletion is asynchronous
+- Lifecycle state remains in DELETING, until workflow completes
+
+ @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 *DefaultAPIService) DeleteProject(ctx context.Context, id string) ApiDeleteProjectRequest {
+ return ApiDeleteProjectRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+func (a *DefaultAPIService) DeleteProjectExecute(r ApiDeleteProjectRequest) error {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v ErrorResponse
+ err = a.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 newErr
+ }
+
+ return nil
+}
+
+type ApiDeleteProjectLabelsRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ containerId string
+ keys *[]string
+}
+
+// Label name.
+func (r ApiDeleteProjectLabelsRequest) Keys(keys []string) ApiDeleteProjectLabelsRequest {
+ r.keys = &keys
+ return r
+}
+
+func (r ApiDeleteProjectLabelsRequest) Execute() error {
+ return r.ApiService.DeleteProjectLabelsExecute(r)
+}
+
+/*
+DeleteProjectLabels Delete Project Labels
+
+Deletes all project labels by given keys.
+- Specific labels may be deleted by key(s)
+- If no key is specified, all labels will be deleted!
+
+ @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 *DefaultAPIService) DeleteProjectLabels(ctx context.Context, containerId string) ApiDeleteProjectLabelsRequest {
+ return ApiDeleteProjectLabelsRequest{
+ ApiService: a,
+ ctx: ctx,
+ containerId: containerId,
+ }
+}
+
+// Execute executes the request
+func (a *DefaultAPIService) DeleteProjectLabelsExecute(r ApiDeleteProjectLabelsRequest) error {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.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(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "keys", t, "form", "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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v ErrorResponse
+ err = a.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 newErr
+ }
+
+ return nil
+}
+
+type ApiGetFolderDetailsRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ containerId string
+ includeParents *bool
+}
+
+func (r ApiGetFolderDetailsRequest) IncludeParents(includeParents bool) ApiGetFolderDetailsRequest {
+ r.includeParents = &includeParents
+ return r
+}
+
+func (r ApiGetFolderDetailsRequest) Execute() (*GetFolderDetailsResponse, error) {
+ return r.ApiService.GetFolderDetailsExecute(r)
+}
+
+/*
+GetFolderDetails Get Folder Details
+
+Returns all metadata for a specific folder.
+
+ @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 *DefaultAPIService) GetFolderDetails(ctx context.Context, containerId string) ApiGetFolderDetailsRequest {
+ return ApiGetFolderDetailsRequest{
+ ApiService: a,
+ ctx: ctx,
+ containerId: containerId,
+ }
+}
+
+// Execute executes the request
+//
+// @return GetFolderDetailsResponse
+func (a *DefaultAPIService) GetFolderDetailsExecute(r ApiGetFolderDetailsRequest) (*GetFolderDetailsResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *GetFolderDetailsResponse
+ )
+
+ localBasePath, err := a.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, "form", "")
+ } else {
+ var defaultValue bool = false
+ parameterAddToHeaderOrQuery(localVarQueryParams, "includeParents", defaultValue, "form", "")
+ r.includeParents = &defaultValue
+ }
+ // 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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 403 {
+ var v ErrorResponse
+ err = a.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
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v ErrorResponse
+ err = a.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
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.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
+}
+
+type ApiGetOrganizationRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ id string
+}
+
+func (r ApiGetOrganizationRequest) Execute() (*OrganizationResponse, error) {
+ return r.ApiService.GetOrganizationExecute(r)
+}
+
+/*
+GetOrganization Get Organization Details
+
+Returns the organization and its metadata.
+
+ @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 *DefaultAPIService) GetOrganization(ctx context.Context, id string) ApiGetOrganizationRequest {
+ return ApiGetOrganizationRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return OrganizationResponse
+func (a *DefaultAPIService) GetOrganizationExecute(r ApiGetOrganizationRequest) (*OrganizationResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *OrganizationResponse
+ )
+
+ localBasePath, err := a.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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v ErrorResponse
+ err = a.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
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.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
+}
+
+type ApiGetProjectRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ id string
+ includeParents *bool
+}
+
+func (r ApiGetProjectRequest) IncludeParents(includeParents bool) ApiGetProjectRequest {
+ r.includeParents = &includeParents
+ return r
+}
+
+func (r ApiGetProjectRequest) Execute() (*GetProjectResponse, error) {
+ return r.ApiService.GetProjectExecute(r)
+}
+
+/*
+GetProject Get Project Details
+
+Returns the project and its metadata.
+
+ @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 *DefaultAPIService) GetProject(ctx context.Context, id string) ApiGetProjectRequest {
+ return ApiGetProjectRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return GetProjectResponse
+func (a *DefaultAPIService) GetProjectExecute(r ApiGetProjectRequest) (*GetProjectResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *GetProjectResponse
+ )
+
+ localBasePath, err := a.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, "form", "")
+ } else {
+ var defaultValue bool = false
+ parameterAddToHeaderOrQuery(localVarQueryParams, "includeParents", defaultValue, "form", "")
+ r.includeParents = &defaultValue
+ }
+ // 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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 403 {
+ var v ErrorResponse
+ err = a.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
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v ErrorResponse
+ err = a.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
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.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
+}
+
+type ApiListFoldersRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ 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.
+func (r ApiListFoldersRequest) ContainerParentId(containerParentId string) ApiListFoldersRequest {
+ r.containerParentId = &containerParentId
+ return r
+}
+
+// List of container identifiers - containerId as well as UUID identifier is supported.
+func (r ApiListFoldersRequest) ContainerIds(containerIds []string) ApiListFoldersRequest {
+ r.containerIds = &containerIds
+ return r
+}
+
+// E-Mail address of the user for whom the visible resource containers should be filtered.
+func (r ApiListFoldersRequest) 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.
+func (r ApiListFoldersRequest) Limit(limit float32) ApiListFoldersRequest {
+ r.limit = &limit
+ return r
+}
+
+// The offset of the first item in the collection to return.
+func (r ApiListFoldersRequest) 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.
+func (r ApiListFoldersRequest) CreationTimeStart(creationTimeStart time.Time) ApiListFoldersRequest {
+ r.creationTimeStart = &creationTimeStart
+ return r
+}
+
+func (r ApiListFoldersRequest) Execute() (*ListFoldersResponse, error) {
+ return r.ApiService.ListFoldersExecute(r)
+}
+
+/*
+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
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiListFoldersRequest
+*/
+func (a *DefaultAPIService) ListFolders(ctx context.Context) ApiListFoldersRequest {
+ return ApiListFoldersRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return ListFoldersResponse
+func (a *DefaultAPIService) ListFoldersExecute(r ApiListFoldersRequest) (*ListFoldersResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ListFoldersResponse
+ )
+
+ localBasePath, err := a.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, "form", "")
+ }
+ 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(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "containerIds", t, "form", "multi")
+ }
+ }
+ if r.member != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "member", r.member, "form", "")
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "")
+ } else {
+ var defaultValue float32 = 50
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", defaultValue, "form", "")
+ r.limit = &defaultValue
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "")
+ } else {
+ var defaultValue float32 = 0
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", defaultValue, "form", "")
+ r.offset = &defaultValue
+ }
+ if r.creationTimeStart != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creation-time-start", r.creationTimeStart, "form", "")
+ }
+ // 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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorResponse
+ err = a.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
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 403 {
+ var v ErrorResponse
+ err = a.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
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v ErrorResponse
+ err = a.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
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.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
+}
+
+type ApiListOrganizationsRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ 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.
+func (r ApiListOrganizationsRequest) ContainerIds(containerIds []string) ApiListOrganizationsRequest {
+ r.containerIds = &containerIds
+ return r
+}
+
+// E-Mail address of the user for whom the visible resource containers should be filtered.
+func (r ApiListOrganizationsRequest) 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.
+func (r ApiListOrganizationsRequest) Limit(limit float32) ApiListOrganizationsRequest {
+ r.limit = &limit
+ return r
+}
+
+// The offset of the first item in the collection to return.
+func (r ApiListOrganizationsRequest) 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.
+func (r ApiListOrganizationsRequest) CreationTimeStart(creationTimeStart time.Time) ApiListOrganizationsRequest {
+ r.creationTimeStart = &creationTimeStart
+ return r
+}
+
+func (r ApiListOrganizationsRequest) Execute() (*ListOrganizationsResponse, error) {
+ return r.ApiService.ListOrganizationsExecute(r)
+}
+
+/*
+ListOrganizations Get All Organizations
+
+Returns all organizations and their metadata.
+- If no containerIds are specified, all organizations are returned, if permitted
+- ContainerIds may be set to filter
+- Member may be set to filter
+- If member and containerIds are given, both are used for filtering
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiListOrganizationsRequest
+*/
+func (a *DefaultAPIService) ListOrganizations(ctx context.Context) ApiListOrganizationsRequest {
+ return ApiListOrganizationsRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return ListOrganizationsResponse
+func (a *DefaultAPIService) ListOrganizationsExecute(r ApiListOrganizationsRequest) (*ListOrganizationsResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ListOrganizationsResponse
+ )
+
+ localBasePath, err := a.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(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "containerIds", t, "form", "multi")
+ }
+ }
+ if r.member != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "member", r.member, "form", "")
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "")
+ } else {
+ var defaultValue float32 = 50
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", defaultValue, "form", "")
+ r.limit = &defaultValue
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "")
+ } else {
+ var defaultValue float32 = 0
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", defaultValue, "form", "")
+ r.offset = &defaultValue
+ }
+ if r.creationTimeStart != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creation-time-start", r.creationTimeStart, "form", "")
+ }
+ // 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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorResponse
+ err = a.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
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 403 {
+ var v ErrorResponse
+ err = a.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
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.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
+}
+
+type ApiListProjectsRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ 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.
+func (r ApiListProjectsRequest) ContainerParentId(containerParentId string) ApiListProjectsRequest {
+ r.containerParentId = &containerParentId
+ return r
+}
+
+// List of container identifiers - containerId as well as UUID identifier is supported.
+func (r ApiListProjectsRequest) ContainerIds(containerIds []string) ApiListProjectsRequest {
+ r.containerIds = &containerIds
+ return r
+}
+
+// E-Mail address of the user for whom the visible resource containers should be filtered.
+func (r ApiListProjectsRequest) Member(member string) ApiListProjectsRequest {
+ r.member = &member
+ return r
+}
+
+// The offset of the first item in the collection to return.
+func (r ApiListProjectsRequest) 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.
+func (r ApiListProjectsRequest) 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.
+func (r ApiListProjectsRequest) CreationTimeStart(creationTimeStart time.Time) ApiListProjectsRequest {
+ r.creationTimeStart = &creationTimeStart
+ return r
+}
+
+func (r ApiListProjectsRequest) Execute() (*ListProjectsResponse, error) {
+ return r.ApiService.ListProjectsExecute(r)
+}
+
+/*
+ListProjects Get All Projects
+
+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
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiListProjectsRequest
+*/
+func (a *DefaultAPIService) ListProjects(ctx context.Context) ApiListProjectsRequest {
+ return ApiListProjectsRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return ListProjectsResponse
+func (a *DefaultAPIService) ListProjectsExecute(r ApiListProjectsRequest) (*ListProjectsResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ListProjectsResponse
+ )
+
+ localBasePath, err := a.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, "form", "")
+ }
+ 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(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "containerIds", t, "form", "multi")
+ }
+ }
+ if r.member != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "member", r.member, "form", "")
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "")
+ } else {
+ var defaultValue float32 = 0
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", defaultValue, "form", "")
+ r.offset = &defaultValue
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "")
+ } else {
+ var defaultValue float32 = 50
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", defaultValue, "form", "")
+ r.limit = &defaultValue
+ }
+ if r.creationTimeStart != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creation-time-start", r.creationTimeStart, "form", "")
+ }
+ // 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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorResponse
+ err = a.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
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 403 {
+ var v ErrorResponse
+ err = a.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
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.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
+}
+
+type ApiPartialUpdateFolderRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ containerId string
+ partialUpdateFolderPayload *PartialUpdateFolderPayload
+}
+
+func (r ApiPartialUpdateFolderRequest) PartialUpdateFolderPayload(partialUpdateFolderPayload PartialUpdateFolderPayload) ApiPartialUpdateFolderRequest {
+ r.partialUpdateFolderPayload = &partialUpdateFolderPayload
+ return r
+}
+
+func (r ApiPartialUpdateFolderRequest) Execute() (*FolderResponse, error) {
+ return r.ApiService.PartialUpdateFolderExecute(r)
+}
+
+/*
+PartialUpdateFolder Update Folder
+
+Update the folder and its metadata.
+- Update folder name
+- Update folder labels
+- Update folder parent (folder or organization)
+
+ @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 *DefaultAPIService) PartialUpdateFolder(ctx context.Context, containerId string) ApiPartialUpdateFolderRequest {
+ return ApiPartialUpdateFolderRequest{
+ ApiService: a,
+ ctx: ctx,
+ containerId: containerId,
+ }
+}
+
+// Execute executes the request
+//
+// @return FolderResponse
+func (a *DefaultAPIService) PartialUpdateFolderExecute(r ApiPartialUpdateFolderRequest) (*FolderResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FolderResponse
+ )
+
+ localBasePath, err := a.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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 403 {
+ var v ErrorResponse
+ err = a.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
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v ErrorResponse
+ err = a.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
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v ErrorResponse
+ err = a.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
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.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
+}
+
+type ApiPartialUpdateOrganizationRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ id string
+ partialUpdateOrganizationPayload *PartialUpdateOrganizationPayload
+}
+
+func (r ApiPartialUpdateOrganizationRequest) PartialUpdateOrganizationPayload(partialUpdateOrganizationPayload PartialUpdateOrganizationPayload) ApiPartialUpdateOrganizationRequest {
+ r.partialUpdateOrganizationPayload = &partialUpdateOrganizationPayload
+ return r
+}
+
+func (r ApiPartialUpdateOrganizationRequest) Execute() (*OrganizationResponse, error) {
+ return r.ApiService.PartialUpdateOrganizationExecute(r)
+}
+
+/*
+PartialUpdateOrganization Update Organization
+
+Update the organization and its metadata.
+- Update organization name
+- Update organization 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
+*/
+func (a *DefaultAPIService) PartialUpdateOrganization(ctx context.Context, id string) ApiPartialUpdateOrganizationRequest {
+ return ApiPartialUpdateOrganizationRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return OrganizationResponse
+func (a *DefaultAPIService) PartialUpdateOrganizationExecute(r ApiPartialUpdateOrganizationRequest) (*OrganizationResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *OrganizationResponse
+ )
+
+ localBasePath, err := a.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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v ErrorResponse
+ err = a.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
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v ErrorResponse
+ err = a.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
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.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
+}
+
+type ApiPartialUpdateProjectRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ id string
+ partialUpdateProjectPayload *PartialUpdateProjectPayload
+}
+
+func (r ApiPartialUpdateProjectRequest) PartialUpdateProjectPayload(partialUpdateProjectPayload PartialUpdateProjectPayload) ApiPartialUpdateProjectRequest {
+ r.partialUpdateProjectPayload = &partialUpdateProjectPayload
+ return r
+}
+
+func (r ApiPartialUpdateProjectRequest) Execute() (*Project, error) {
+ return r.ApiService.PartialUpdateProjectExecute(r)
+}
+
+/*
+PartialUpdateProject Update Project
+
+Update the project and its metadata.
+- Update project name
+- Update project labels
+- Update project parent (folder or organization)
+
+ @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 *DefaultAPIService) PartialUpdateProject(ctx context.Context, id string) ApiPartialUpdateProjectRequest {
+ return ApiPartialUpdateProjectRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return Project
+func (a *DefaultAPIService) PartialUpdateProjectExecute(r ApiPartialUpdateProjectRequest) (*Project, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Project
+ )
+
+ localBasePath, err := a.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 := a.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 := a.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{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 403 {
+ var v ErrorResponse
+ err = a.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
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v ErrorResponse
+ err = a.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
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v ErrorResponse
+ err = a.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
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.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
+}
diff --git a/services/resourcemanager/v0api/api_default_mock.go b/services/resourcemanager/v0api/api_default_mock.go
new file mode 100644
index 000000000..bfb7a65cb
--- /dev/null
+++ b/services/resourcemanager/v0api/api_default_mock.go
@@ -0,0 +1,333 @@
+/*
+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 v0api
+
+import (
+ "context"
+)
+
+// assert the implementation matches the interface
+var _ DefaultAPI = &DefaultAPIServiceMock{}
+
+// DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService.
+// By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct.
+type DefaultAPIServiceMock struct {
+ // CreateFolderExecuteMock can be populated to implement the behavior of the CreateFolderExecute function of this mock
+ CreateFolderExecuteMock *func(r ApiCreateFolderRequest) (*FolderResponse, error)
+ // CreateProjectExecuteMock can be populated to implement the behavior of the CreateProjectExecute function of this mock
+ CreateProjectExecuteMock *func(r ApiCreateProjectRequest) (*Project, error)
+ // DeleteFolderExecuteMock can be populated to implement the behavior of the DeleteFolderExecute function of this mock
+ DeleteFolderExecuteMock *func(r ApiDeleteFolderRequest) error
+ // DeleteFolderLabelsExecuteMock can be populated to implement the behavior of the DeleteFolderLabelsExecute function of this mock
+ DeleteFolderLabelsExecuteMock *func(r ApiDeleteFolderLabelsRequest) error
+ // DeleteOrganizationLabelsExecuteMock can be populated to implement the behavior of the DeleteOrganizationLabelsExecute function of this mock
+ DeleteOrganizationLabelsExecuteMock *func(r ApiDeleteOrganizationLabelsRequest) error
+ // DeleteProjectExecuteMock can be populated to implement the behavior of the DeleteProjectExecute function of this mock
+ DeleteProjectExecuteMock *func(r ApiDeleteProjectRequest) error
+ // DeleteProjectLabelsExecuteMock can be populated to implement the behavior of the DeleteProjectLabelsExecute function of this mock
+ DeleteProjectLabelsExecuteMock *func(r ApiDeleteProjectLabelsRequest) error
+ // GetFolderDetailsExecuteMock can be populated to implement the behavior of the GetFolderDetailsExecute function of this mock
+ GetFolderDetailsExecuteMock *func(r ApiGetFolderDetailsRequest) (*GetFolderDetailsResponse, error)
+ // GetOrganizationExecuteMock can be populated to implement the behavior of the GetOrganizationExecute function of this mock
+ GetOrganizationExecuteMock *func(r ApiGetOrganizationRequest) (*OrganizationResponse, error)
+ // GetProjectExecuteMock can be populated to implement the behavior of the GetProjectExecute function of this mock
+ GetProjectExecuteMock *func(r ApiGetProjectRequest) (*GetProjectResponse, error)
+ // ListFoldersExecuteMock can be populated to implement the behavior of the ListFoldersExecute function of this mock
+ ListFoldersExecuteMock *func(r ApiListFoldersRequest) (*ListFoldersResponse, error)
+ // ListOrganizationsExecuteMock can be populated to implement the behavior of the ListOrganizationsExecute function of this mock
+ ListOrganizationsExecuteMock *func(r ApiListOrganizationsRequest) (*ListOrganizationsResponse, error)
+ // ListProjectsExecuteMock can be populated to implement the behavior of the ListProjectsExecute function of this mock
+ ListProjectsExecuteMock *func(r ApiListProjectsRequest) (*ListProjectsResponse, error)
+ // PartialUpdateFolderExecuteMock can be populated to implement the behavior of the PartialUpdateFolderExecute function of this mock
+ PartialUpdateFolderExecuteMock *func(r ApiPartialUpdateFolderRequest) (*FolderResponse, error)
+ // PartialUpdateOrganizationExecuteMock can be populated to implement the behavior of the PartialUpdateOrganizationExecute function of this mock
+ PartialUpdateOrganizationExecuteMock *func(r ApiPartialUpdateOrganizationRequest) (*OrganizationResponse, error)
+ // PartialUpdateProjectExecuteMock can be populated to implement the behavior of the PartialUpdateProjectExecute function of this mock
+ PartialUpdateProjectExecuteMock *func(r ApiPartialUpdateProjectRequest) (*Project, error)
+}
+
+func (a DefaultAPIServiceMock) CreateFolder(ctx context.Context) ApiCreateFolderRequest {
+ return ApiCreateFolderRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// CreateFolderExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateFolderExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) CreateFolderExecute(r ApiCreateFolderRequest) (*FolderResponse, error) {
+ if a.CreateFolderExecuteMock == nil {
+ var localVarReturnValue *FolderResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.CreateFolderExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) CreateProject(ctx context.Context) ApiCreateProjectRequest {
+ return ApiCreateProjectRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// CreateProjectExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateProjectExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) CreateProjectExecute(r ApiCreateProjectRequest) (*Project, error) {
+ if a.CreateProjectExecuteMock == nil {
+ var localVarReturnValue *Project
+ return localVarReturnValue, nil
+ }
+
+ return (*a.CreateProjectExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) DeleteFolder(ctx context.Context, containerId string) ApiDeleteFolderRequest {
+ return ApiDeleteFolderRequest{
+ ApiService: a,
+ ctx: ctx,
+ containerId: containerId,
+ }
+}
+
+// DeleteFolderExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteFolderExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) DeleteFolderExecute(r ApiDeleteFolderRequest) error {
+ if a.DeleteFolderExecuteMock == nil {
+ return nil
+ }
+
+ return (*a.DeleteFolderExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) DeleteFolderLabels(ctx context.Context, containerId string) ApiDeleteFolderLabelsRequest {
+ return ApiDeleteFolderLabelsRequest{
+ ApiService: a,
+ ctx: ctx,
+ containerId: containerId,
+ }
+}
+
+// DeleteFolderLabelsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteFolderLabelsExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) DeleteFolderLabelsExecute(r ApiDeleteFolderLabelsRequest) error {
+ if a.DeleteFolderLabelsExecuteMock == nil {
+ return nil
+ }
+
+ return (*a.DeleteFolderLabelsExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) DeleteOrganizationLabels(ctx context.Context, containerId string) ApiDeleteOrganizationLabelsRequest {
+ return ApiDeleteOrganizationLabelsRequest{
+ ApiService: a,
+ ctx: ctx,
+ containerId: containerId,
+ }
+}
+
+// DeleteOrganizationLabelsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteOrganizationLabelsExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) DeleteOrganizationLabelsExecute(r ApiDeleteOrganizationLabelsRequest) error {
+ if a.DeleteOrganizationLabelsExecuteMock == nil {
+ return nil
+ }
+
+ return (*a.DeleteOrganizationLabelsExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) DeleteProject(ctx context.Context, id string) ApiDeleteProjectRequest {
+ return ApiDeleteProjectRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// DeleteProjectExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteProjectExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) DeleteProjectExecute(r ApiDeleteProjectRequest) error {
+ if a.DeleteProjectExecuteMock == nil {
+ return nil
+ }
+
+ return (*a.DeleteProjectExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) DeleteProjectLabels(ctx context.Context, containerId string) ApiDeleteProjectLabelsRequest {
+ return ApiDeleteProjectLabelsRequest{
+ ApiService: a,
+ ctx: ctx,
+ containerId: containerId,
+ }
+}
+
+// DeleteProjectLabelsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteProjectLabelsExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) DeleteProjectLabelsExecute(r ApiDeleteProjectLabelsRequest) error {
+ if a.DeleteProjectLabelsExecuteMock == nil {
+ return nil
+ }
+
+ return (*a.DeleteProjectLabelsExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) GetFolderDetails(ctx context.Context, containerId string) ApiGetFolderDetailsRequest {
+ return ApiGetFolderDetailsRequest{
+ ApiService: a,
+ ctx: ctx,
+ containerId: containerId,
+ }
+}
+
+// GetFolderDetailsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetFolderDetailsExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) GetFolderDetailsExecute(r ApiGetFolderDetailsRequest) (*GetFolderDetailsResponse, error) {
+ if a.GetFolderDetailsExecuteMock == nil {
+ var localVarReturnValue *GetFolderDetailsResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.GetFolderDetailsExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) GetOrganization(ctx context.Context, id string) ApiGetOrganizationRequest {
+ return ApiGetOrganizationRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// GetOrganizationExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetOrganizationExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) GetOrganizationExecute(r ApiGetOrganizationRequest) (*OrganizationResponse, error) {
+ if a.GetOrganizationExecuteMock == nil {
+ var localVarReturnValue *OrganizationResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.GetOrganizationExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) GetProject(ctx context.Context, id string) ApiGetProjectRequest {
+ return ApiGetProjectRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// GetProjectExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetProjectExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) GetProjectExecute(r ApiGetProjectRequest) (*GetProjectResponse, error) {
+ if a.GetProjectExecuteMock == nil {
+ var localVarReturnValue *GetProjectResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.GetProjectExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) ListFolders(ctx context.Context) ApiListFoldersRequest {
+ return ApiListFoldersRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// ListFoldersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListFoldersExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) ListFoldersExecute(r ApiListFoldersRequest) (*ListFoldersResponse, error) {
+ if a.ListFoldersExecuteMock == nil {
+ var localVarReturnValue *ListFoldersResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.ListFoldersExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) ListOrganizations(ctx context.Context) ApiListOrganizationsRequest {
+ return ApiListOrganizationsRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// ListOrganizationsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListOrganizationsExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) ListOrganizationsExecute(r ApiListOrganizationsRequest) (*ListOrganizationsResponse, error) {
+ if a.ListOrganizationsExecuteMock == nil {
+ var localVarReturnValue *ListOrganizationsResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.ListOrganizationsExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) ListProjects(ctx context.Context) ApiListProjectsRequest {
+ return ApiListProjectsRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// ListProjectsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListProjectsExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) ListProjectsExecute(r ApiListProjectsRequest) (*ListProjectsResponse, error) {
+ if a.ListProjectsExecuteMock == nil {
+ var localVarReturnValue *ListProjectsResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.ListProjectsExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) PartialUpdateFolder(ctx context.Context, containerId string) ApiPartialUpdateFolderRequest {
+ return ApiPartialUpdateFolderRequest{
+ ApiService: a,
+ ctx: ctx,
+ containerId: containerId,
+ }
+}
+
+// PartialUpdateFolderExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateFolderExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) PartialUpdateFolderExecute(r ApiPartialUpdateFolderRequest) (*FolderResponse, error) {
+ if a.PartialUpdateFolderExecuteMock == nil {
+ var localVarReturnValue *FolderResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.PartialUpdateFolderExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) PartialUpdateOrganization(ctx context.Context, id string) ApiPartialUpdateOrganizationRequest {
+ return ApiPartialUpdateOrganizationRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// PartialUpdateOrganizationExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateOrganizationExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) PartialUpdateOrganizationExecute(r ApiPartialUpdateOrganizationRequest) (*OrganizationResponse, error) {
+ if a.PartialUpdateOrganizationExecuteMock == nil {
+ var localVarReturnValue *OrganizationResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.PartialUpdateOrganizationExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) PartialUpdateProject(ctx context.Context, id string) ApiPartialUpdateProjectRequest {
+ return ApiPartialUpdateProjectRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// PartialUpdateProjectExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateProjectExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) PartialUpdateProjectExecute(r ApiPartialUpdateProjectRequest) (*Project, error) {
+ if a.PartialUpdateProjectExecuteMock == nil {
+ var localVarReturnValue *Project
+ return localVarReturnValue, nil
+ }
+
+ return (*a.PartialUpdateProjectExecuteMock)(r)
+}
diff --git a/services/resourcemanager/v0api/client.go b/services/resourcemanager/v0api/client.go
new file mode 100644
index 000000000..4f7efbca5
--- /dev/null
+++ b/services/resourcemanager/v0api/client.go
@@ -0,0 +1,658 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "context"
+ "encoding/json"
+ "encoding/xml"
+ "errors"
+ "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)/(?:[^;]+\+)?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.
+type APIClient struct {
+ cfg *config.Configuration
+ common service // Reuse a single struct instead of allocating one for each service on the heap.
+
+ // API Services
+
+ DefaultAPI DefaultAPI
+}
+
+type service struct {
+ client *APIClient
+}
+
+// NewAPIClient creates a new API client. Requires a userAgent string describing your application.
+// optionally a custom http.Client to allow for advanced features such as caching.
+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
+
+ // API Services
+ 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
+}
+
+func parameterValueToString(obj interface{}, key string) string {
+ if reflect.TypeOf(obj).Kind() != reflect.Ptr {
+ if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok {
+ return fmt.Sprintf("%v", actualObj.GetActualInstanceValue())
+ }
+
+ 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{}, style string, 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, style, collectionType)
+ return
+ }
+ if t, ok := obj.(time.Time); ok {
+ parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, 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)
+ var keyPrefixForCollectionType = keyPrefix
+ if style == "deepObject" {
+ keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]"
+ }
+ parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, 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(), style, collectionType)
+ }
+ return
+
+ case reflect.Interface:
+ fallthrough
+ case reflect.Ptr:
+ parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, 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
+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 postBody != nil {
+ 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, errors.New("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, errors.New("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 errors.New("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 errors.New("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
+}
+
+// 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) {
+ var bs []byte
+ bs, err = xml.Marshal(body)
+ if err == nil {
+ bodyBuf.Write(bs)
+ }
+ }
+
+ if err != nil {
+ return nil, err
+ }
+
+ if bodyBuf.Len() == 0 {
+ err = fmt.Errorf("invalid body type %s\n", 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.
+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)
+}
+
+// format error message using title and detail when model implements rfc7807
+func formatErrorMessage(status string, v interface{}) string {
+ str := ""
+ metaValue := reflect.ValueOf(v).Elem()
+
+ if metaValue.Kind() == reflect.Struct {
+ field := metaValue.FieldByName("Title")
+ if field != (reflect.Value{}) {
+ str = fmt.Sprintf("%s", field.Interface())
+ }
+
+ field = metaValue.FieldByName("Detail")
+ if field != (reflect.Value{}) {
+ str = fmt.Sprintf("%s (%s)", str, field.Interface())
+ }
+ }
+
+ return strings.TrimSpace(fmt.Sprintf("%s %s", status, str))
+}
diff --git a/services/resourcemanager/v0api/configuration.go b/services/resourcemanager/v0api/configuration.go
new file mode 100644
index 000000000..71632007b
--- /dev/null
+++ b/services/resourcemanager/v0api/configuration.go
@@ -0,0 +1,37 @@
+/*
+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 v0api
+
+import (
+ "github.com/stackitcloud/stackit-sdk-go/core/config"
+)
+
+// NewConfiguration returns a new Configuration object
+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/v0api/model_container_search_result.go b/services/resourcemanager/v0api/model_container_search_result.go
new file mode 100644
index 000000000..00f9d8aaf
--- /dev/null
+++ b/services/resourcemanager/v0api/model_container_search_result.go
@@ -0,0 +1,317 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ContainerSearchResult type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ContainerSearchResult{}
+
+// ContainerSearchResult struct for ContainerSearchResult
+type ContainerSearchResult struct {
+ // Globally unique user-friendly identifier.
+ ContainerId string `json:"containerId"`
+ // Resource container type.
+ ContainerType string `json:"containerType"`
+ // Globally unique identifier.
+ Id string `json:"id"`
+ LifecycleState *LifecycleState `json:"lifecycleState,omitempty"`
+ // Resource container name.
+ Name string `json:"name"`
+ // Id of the organization the container is in.
+ OrganizationId *string `json:"organizationId,omitempty"`
+}
+
+type _ContainerSearchResult ContainerSearchResult
+
+// NewContainerSearchResult instantiates a new ContainerSearchResult object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewContainerSearchResult(containerId string, containerType string, id string, name string) *ContainerSearchResult {
+ this := ContainerSearchResult{}
+ this.ContainerId = containerId
+ this.ContainerType = containerType
+ this.Id = id
+ this.Name = name
+ return &this
+}
+
+// NewContainerSearchResultWithDefaults instantiates a new ContainerSearchResult object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewContainerSearchResultWithDefaults() *ContainerSearchResult {
+ this := ContainerSearchResult{}
+ return &this
+}
+
+// GetContainerId returns the ContainerId field value
+func (o *ContainerSearchResult) GetContainerId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ContainerId
+}
+
+// GetContainerIdOk returns a tuple with the ContainerId field value
+// and a boolean to check if the value has been set.
+func (o *ContainerSearchResult) GetContainerIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ContainerId, true
+}
+
+// SetContainerId sets field value
+func (o *ContainerSearchResult) SetContainerId(v string) {
+ o.ContainerId = v
+}
+
+// GetContainerType returns the ContainerType field value
+func (o *ContainerSearchResult) GetContainerType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ContainerType
+}
+
+// GetContainerTypeOk returns a tuple with the ContainerType field value
+// and a boolean to check if the value has been set.
+func (o *ContainerSearchResult) GetContainerTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ContainerType, true
+}
+
+// SetContainerType sets field value
+func (o *ContainerSearchResult) SetContainerType(v string) {
+ o.ContainerType = v
+}
+
+// GetId returns the Id field value
+func (o *ContainerSearchResult) GetId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *ContainerSearchResult) GetIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *ContainerSearchResult) SetId(v string) {
+ o.Id = v
+}
+
+// GetLifecycleState returns the LifecycleState field value if set, zero value otherwise.
+func (o *ContainerSearchResult) GetLifecycleState() LifecycleState {
+ if o == nil || IsNil(o.LifecycleState) {
+ var ret LifecycleState
+ return ret
+ }
+ return *o.LifecycleState
+}
+
+// GetLifecycleStateOk returns a tuple with the LifecycleState field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ContainerSearchResult) GetLifecycleStateOk() (*LifecycleState, bool) {
+ if o == nil || IsNil(o.LifecycleState) {
+ return nil, false
+ }
+ return o.LifecycleState, true
+}
+
+// HasLifecycleState returns a boolean if a field has been set.
+func (o *ContainerSearchResult) HasLifecycleState() bool {
+ if o != nil && !IsNil(o.LifecycleState) {
+ return true
+ }
+
+ return false
+}
+
+// SetLifecycleState gets a reference to the given LifecycleState and assigns it to the LifecycleState field.
+func (o *ContainerSearchResult) SetLifecycleState(v LifecycleState) {
+ o.LifecycleState = &v
+}
+
+// GetName returns the Name field value
+func (o *ContainerSearchResult) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *ContainerSearchResult) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *ContainerSearchResult) SetName(v string) {
+ o.Name = v
+}
+
+// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise.
+func (o *ContainerSearchResult) GetOrganizationId() string {
+ if o == nil || IsNil(o.OrganizationId) {
+ var ret string
+ return ret
+ }
+ return *o.OrganizationId
+}
+
+// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ContainerSearchResult) GetOrganizationIdOk() (*string, bool) {
+ if o == nil || IsNil(o.OrganizationId) {
+ return nil, false
+ }
+ return o.OrganizationId, true
+}
+
+// HasOrganizationId returns a boolean if a field has been set.
+func (o *ContainerSearchResult) HasOrganizationId() bool {
+ if o != nil && !IsNil(o.OrganizationId) {
+ return true
+ }
+
+ return false
+}
+
+// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field.
+func (o *ContainerSearchResult) SetOrganizationId(v string) {
+ o.OrganizationId = &v
+}
+
+func (o ContainerSearchResult) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ContainerSearchResult) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["containerId"] = o.ContainerId
+ toSerialize["containerType"] = o.ContainerType
+ toSerialize["id"] = o.Id
+ if !IsNil(o.LifecycleState) {
+ toSerialize["lifecycleState"] = o.LifecycleState
+ }
+ toSerialize["name"] = o.Name
+ if !IsNil(o.OrganizationId) {
+ toSerialize["organizationId"] = o.OrganizationId
+ }
+ return toSerialize, nil
+}
+
+func (o *ContainerSearchResult) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "containerId",
+ "containerType",
+ "id",
+ "name",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varContainerSearchResult := _ContainerSearchResult{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varContainerSearchResult)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ContainerSearchResult(varContainerSearchResult)
+
+ return err
+}
+
+type NullableContainerSearchResult struct {
+ value *ContainerSearchResult
+ isSet bool
+}
+
+func (v NullableContainerSearchResult) Get() *ContainerSearchResult {
+ return v.value
+}
+
+func (v *NullableContainerSearchResult) Set(val *ContainerSearchResult) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableContainerSearchResult) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableContainerSearchResult) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableContainerSearchResult(val *ContainerSearchResult) *NullableContainerSearchResult {
+ return &NullableContainerSearchResult{value: val, isSet: true}
+}
+
+func (v NullableContainerSearchResult) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableContainerSearchResult) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_create_folder_payload.go b/services/resourcemanager/v0api/model_create_folder_payload.go
new file mode 100644
index 000000000..b23ec6693
--- /dev/null
+++ b/services/resourcemanager/v0api/model_create_folder_payload.go
@@ -0,0 +1,260 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the CreateFolderPayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &CreateFolderPayload{}
+
+// CreateFolderPayload struct for CreateFolderPayload
+type CreateFolderPayload struct {
+ // Identifier of the parent resource container - containerId as well as UUID identifier is supported.
+ ContainerParentId string `json:"containerParentId"`
+ // Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
+ Labels *map[string]string `json:"labels,omitempty"`
+ // The initial members assigned to the project. At least one subject needs to be a user, and not a client or service account.
+ Members []Member `json:"members,omitempty"`
+ // The name of the folder matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`.
+ Name string `json:"name" validate:"regexp=^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$"`
+}
+
+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
+func NewCreateFolderPayload(containerParentId string, name string) *CreateFolderPayload {
+ this := CreateFolderPayload{}
+ this.ContainerParentId = containerParentId
+ 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
+func NewCreateFolderPayloadWithDefaults() *CreateFolderPayload {
+ this := CreateFolderPayload{}
+ return &this
+}
+
+// GetContainerParentId returns the ContainerParentId field value
+func (o *CreateFolderPayload) GetContainerParentId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ContainerParentId
+}
+
+// GetContainerParentIdOk returns a tuple with the ContainerParentId field value
+// and a boolean to check if the value has been set.
+func (o *CreateFolderPayload) GetContainerParentIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ContainerParentId, true
+}
+
+// SetContainerParentId sets field value
+func (o *CreateFolderPayload) SetContainerParentId(v string) {
+ o.ContainerParentId = v
+}
+
+// GetLabels returns the Labels field value if set, zero value otherwise.
+func (o *CreateFolderPayload) GetLabels() map[string]string {
+ if o == nil || IsNil(o.Labels) {
+ var ret map[string]string
+ return ret
+ }
+ return *o.Labels
+}
+
+// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateFolderPayload) GetLabelsOk() (*map[string]string, bool) {
+ if o == nil || IsNil(o.Labels) {
+ return nil, false
+ }
+ return o.Labels, true
+}
+
+// HasLabels returns a boolean if a field has been set.
+func (o *CreateFolderPayload) HasLabels() bool {
+ if o != nil && !IsNil(o.Labels) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
+func (o *CreateFolderPayload) SetLabels(v map[string]string) {
+ o.Labels = &v
+}
+
+// GetMembers returns the Members field value if set, zero value otherwise.
+func (o *CreateFolderPayload) GetMembers() []Member {
+ if o == nil || IsNil(o.Members) {
+ var ret []Member
+ return ret
+ }
+ return o.Members
+}
+
+// GetMembersOk returns a tuple with the Members field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateFolderPayload) GetMembersOk() ([]Member, bool) {
+ if o == nil || IsNil(o.Members) {
+ return nil, false
+ }
+ return o.Members, true
+}
+
+// HasMembers returns a boolean if a field has been set.
+func (o *CreateFolderPayload) HasMembers() bool {
+ if o != nil && !IsNil(o.Members) {
+ return true
+ }
+
+ return false
+}
+
+// SetMembers gets a reference to the given []Member and assigns it to the Members field.
+func (o *CreateFolderPayload) SetMembers(v []Member) {
+ o.Members = v
+}
+
+// GetName returns the Name field value
+func (o *CreateFolderPayload) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *CreateFolderPayload) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *CreateFolderPayload) SetName(v string) {
+ o.Name = v
+}
+
+func (o CreateFolderPayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o CreateFolderPayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["containerParentId"] = o.ContainerParentId
+ if !IsNil(o.Labels) {
+ toSerialize["labels"] = o.Labels
+ }
+ if !IsNil(o.Members) {
+ toSerialize["members"] = o.Members
+ }
+ toSerialize["name"] = o.Name
+ return toSerialize, nil
+}
+
+func (o *CreateFolderPayload) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "containerParentId",
+ "name",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCreateFolderPayload := _CreateFolderPayload{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCreateFolderPayload)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CreateFolderPayload(varCreateFolderPayload)
+
+ return err
+}
+
+type NullableCreateFolderPayload struct {
+ value *CreateFolderPayload
+ isSet bool
+}
+
+func (v NullableCreateFolderPayload) Get() *CreateFolderPayload {
+ return v.value
+}
+
+func (v *NullableCreateFolderPayload) Set(val *CreateFolderPayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCreateFolderPayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCreateFolderPayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCreateFolderPayload(val *CreateFolderPayload) *NullableCreateFolderPayload {
+ return &NullableCreateFolderPayload{value: val, isSet: true}
+}
+
+func (v NullableCreateFolderPayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCreateFolderPayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_create_project_payload.go b/services/resourcemanager/v0api/model_create_project_payload.go
new file mode 100644
index 000000000..71a19846d
--- /dev/null
+++ b/services/resourcemanager/v0api/model_create_project_payload.go
@@ -0,0 +1,252 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the CreateProjectPayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &CreateProjectPayload{}
+
+// CreateProjectPayload struct for CreateProjectPayload
+type CreateProjectPayload struct {
+ // Identifier of the parent resource container - containerId as well as UUID identifier is supported.
+ ContainerParentId string `json:"containerParentId"`
+ // Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
+ Labels *map[string]string `json:"labels,omitempty"`
+ // The initial members assigned to the project. At least one subject needs to be a user, and not a client or service account.
+ Members []Member `json:"members"`
+ // Project name matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`.
+ Name string `json:"name" validate:"regexp=^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$"`
+}
+
+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
+func NewCreateProjectPayload(containerParentId string, members []Member, name string) *CreateProjectPayload {
+ this := CreateProjectPayload{}
+ this.ContainerParentId = containerParentId
+ this.Members = members
+ 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
+func NewCreateProjectPayloadWithDefaults() *CreateProjectPayload {
+ this := CreateProjectPayload{}
+ return &this
+}
+
+// GetContainerParentId returns the ContainerParentId field value
+func (o *CreateProjectPayload) GetContainerParentId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ContainerParentId
+}
+
+// GetContainerParentIdOk returns a tuple with the ContainerParentId field value
+// and a boolean to check if the value has been set.
+func (o *CreateProjectPayload) GetContainerParentIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ContainerParentId, true
+}
+
+// SetContainerParentId sets field value
+func (o *CreateProjectPayload) SetContainerParentId(v string) {
+ o.ContainerParentId = v
+}
+
+// GetLabels returns the Labels field value if set, zero value otherwise.
+func (o *CreateProjectPayload) GetLabels() map[string]string {
+ if o == nil || IsNil(o.Labels) {
+ var ret map[string]string
+ return ret
+ }
+ return *o.Labels
+}
+
+// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateProjectPayload) GetLabelsOk() (*map[string]string, bool) {
+ if o == nil || IsNil(o.Labels) {
+ return nil, false
+ }
+ return o.Labels, true
+}
+
+// HasLabels returns a boolean if a field has been set.
+func (o *CreateProjectPayload) HasLabels() bool {
+ if o != nil && !IsNil(o.Labels) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
+func (o *CreateProjectPayload) SetLabels(v map[string]string) {
+ o.Labels = &v
+}
+
+// GetMembers returns the Members field value
+func (o *CreateProjectPayload) GetMembers() []Member {
+ if o == nil {
+ var ret []Member
+ return ret
+ }
+
+ return o.Members
+}
+
+// GetMembersOk returns a tuple with the Members field value
+// and a boolean to check if the value has been set.
+func (o *CreateProjectPayload) GetMembersOk() ([]Member, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Members, true
+}
+
+// SetMembers sets field value
+func (o *CreateProjectPayload) SetMembers(v []Member) {
+ o.Members = v
+}
+
+// GetName returns the Name field value
+func (o *CreateProjectPayload) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *CreateProjectPayload) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *CreateProjectPayload) SetName(v string) {
+ o.Name = v
+}
+
+func (o CreateProjectPayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o CreateProjectPayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["containerParentId"] = o.ContainerParentId
+ if !IsNil(o.Labels) {
+ toSerialize["labels"] = o.Labels
+ }
+ toSerialize["members"] = o.Members
+ toSerialize["name"] = o.Name
+ return toSerialize, nil
+}
+
+func (o *CreateProjectPayload) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "containerParentId",
+ "members",
+ "name",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCreateProjectPayload := _CreateProjectPayload{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCreateProjectPayload)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CreateProjectPayload(varCreateProjectPayload)
+
+ return err
+}
+
+type NullableCreateProjectPayload struct {
+ value *CreateProjectPayload
+ isSet bool
+}
+
+func (v NullableCreateProjectPayload) Get() *CreateProjectPayload {
+ return v.value
+}
+
+func (v *NullableCreateProjectPayload) Set(val *CreateProjectPayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCreateProjectPayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCreateProjectPayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCreateProjectPayload(val *CreateProjectPayload) *NullableCreateProjectPayload {
+ return &NullableCreateProjectPayload{value: val, isSet: true}
+}
+
+func (v NullableCreateProjectPayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCreateProjectPayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_error_response.go b/services/resourcemanager/v0api/model_error_response.go
new file mode 100644
index 000000000..e87a3b78f
--- /dev/null
+++ b/services/resourcemanager/v0api/model_error_response.go
@@ -0,0 +1,274 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the ErrorResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ErrorResponse{}
+
+// ErrorResponse struct for ErrorResponse
+type ErrorResponse struct {
+ // The reason phrase of the status code.
+ Error string `json:"error"`
+ // Description of the error.
+ Message string `json:"message"`
+ // Path which was called.
+ Path string `json:"path"`
+ // Http Status Code.
+ Status float32 `json:"status"`
+ // Timestamp at which the error occurred.
+ TimeStamp time.Time `json:"timeStamp"`
+}
+
+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
+func NewErrorResponse(error_ string, message string, path string, status float32, timeStamp time.Time) *ErrorResponse {
+ this := ErrorResponse{}
+ this.Error = error_
+ this.Message = message
+ this.Path = path
+ this.Status = status
+ 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
+func NewErrorResponseWithDefaults() *ErrorResponse {
+ this := ErrorResponse{}
+ return &this
+}
+
+// GetError returns the Error field value
+func (o *ErrorResponse) GetError() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Error
+}
+
+// GetErrorOk returns a tuple with the Error field value
+// and a boolean to check if the value has been set.
+func (o *ErrorResponse) GetErrorOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Error, true
+}
+
+// SetError sets field value
+func (o *ErrorResponse) SetError(v string) {
+ o.Error = v
+}
+
+// GetMessage returns the Message field value
+func (o *ErrorResponse) GetMessage() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Message
+}
+
+// GetMessageOk returns a tuple with the Message field value
+// and a boolean to check if the value has been set.
+func (o *ErrorResponse) GetMessageOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Message, true
+}
+
+// SetMessage sets field value
+func (o *ErrorResponse) SetMessage(v string) {
+ o.Message = v
+}
+
+// GetPath returns the Path field value
+func (o *ErrorResponse) GetPath() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Path
+}
+
+// GetPathOk returns a tuple with the Path field value
+// and a boolean to check if the value has been set.
+func (o *ErrorResponse) GetPathOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Path, true
+}
+
+// SetPath sets field value
+func (o *ErrorResponse) SetPath(v string) {
+ o.Path = v
+}
+
+// GetStatus returns the Status field value
+func (o *ErrorResponse) GetStatus() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value
+// and a boolean to check if the value has been set.
+func (o *ErrorResponse) GetStatusOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Status, true
+}
+
+// SetStatus sets field value
+func (o *ErrorResponse) SetStatus(v float32) {
+ o.Status = v
+}
+
+// GetTimeStamp returns the TimeStamp field value
+func (o *ErrorResponse) GetTimeStamp() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.TimeStamp
+}
+
+// GetTimeStampOk returns a tuple with the TimeStamp field value
+// and a boolean to check if the value has been set.
+func (o *ErrorResponse) GetTimeStampOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TimeStamp, true
+}
+
+// SetTimeStamp sets field value
+func (o *ErrorResponse) SetTimeStamp(v time.Time) {
+ o.TimeStamp = v
+}
+
+func (o ErrorResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ErrorResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["error"] = o.Error
+ toSerialize["message"] = o.Message
+ toSerialize["path"] = o.Path
+ toSerialize["status"] = o.Status
+ toSerialize["timeStamp"] = o.TimeStamp
+ return toSerialize, nil
+}
+
+func (o *ErrorResponse) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "error",
+ "message",
+ "path",
+ "status",
+ "timeStamp",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varErrorResponse := _ErrorResponse{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varErrorResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ErrorResponse(varErrorResponse)
+
+ return err
+}
+
+type NullableErrorResponse struct {
+ value *ErrorResponse
+ isSet bool
+}
+
+func (v NullableErrorResponse) Get() *ErrorResponse {
+ return v.value
+}
+
+func (v *NullableErrorResponse) Set(val *ErrorResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableErrorResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableErrorResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableErrorResponse(val *ErrorResponse) *NullableErrorResponse {
+ return &NullableErrorResponse{value: val, isSet: true}
+}
+
+func (v NullableErrorResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_folder_response.go b/services/resourcemanager/v0api/model_folder_response.go
new file mode 100644
index 000000000..2508fdf75
--- /dev/null
+++ b/services/resourcemanager/v0api/model_folder_response.go
@@ -0,0 +1,339 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the FolderResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &FolderResponse{}
+
+// FolderResponse struct for FolderResponse
+type FolderResponse struct {
+ // Globally unique, user-friendly identifier.
+ ContainerId string `json:"containerId"`
+ // Timestamp at which the folder was created.
+ CreationTime time.Time `json:"creationTime"`
+ // Globally unique folder identifier.
+ FolderId string `json:"folderId"`
+ // Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
+ Labels *map[string]string `json:"labels,omitempty"`
+ // Folder name.
+ Name string `json:"name"`
+ Parent Parent `json:"parent"`
+ // Timestamp at which the folder was last modified.
+ UpdateTime time.Time `json:"updateTime"`
+}
+
+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
+func NewFolderResponse(containerId string, creationTime time.Time, folderId string, name string, parent Parent, updateTime time.Time) *FolderResponse {
+ this := FolderResponse{}
+ this.ContainerId = containerId
+ this.CreationTime = creationTime
+ this.FolderId = folderId
+ this.Name = name
+ this.Parent = parent
+ 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
+func NewFolderResponseWithDefaults() *FolderResponse {
+ this := FolderResponse{}
+ return &this
+}
+
+// GetContainerId returns the ContainerId field value
+func (o *FolderResponse) GetContainerId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ContainerId
+}
+
+// GetContainerIdOk returns a tuple with the ContainerId field value
+// and a boolean to check if the value has been set.
+func (o *FolderResponse) GetContainerIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ContainerId, true
+}
+
+// SetContainerId sets field value
+func (o *FolderResponse) SetContainerId(v string) {
+ o.ContainerId = v
+}
+
+// GetCreationTime returns the CreationTime field value
+func (o *FolderResponse) GetCreationTime() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.CreationTime
+}
+
+// GetCreationTimeOk returns a tuple with the CreationTime field value
+// and a boolean to check if the value has been set.
+func (o *FolderResponse) GetCreationTimeOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CreationTime, true
+}
+
+// SetCreationTime sets field value
+func (o *FolderResponse) SetCreationTime(v time.Time) {
+ o.CreationTime = v
+}
+
+// GetFolderId returns the FolderId field value
+func (o *FolderResponse) GetFolderId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.FolderId
+}
+
+// GetFolderIdOk returns a tuple with the FolderId field value
+// and a boolean to check if the value has been set.
+func (o *FolderResponse) GetFolderIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.FolderId, true
+}
+
+// SetFolderId sets field value
+func (o *FolderResponse) SetFolderId(v string) {
+ o.FolderId = v
+}
+
+// GetLabels returns the Labels field value if set, zero value otherwise.
+func (o *FolderResponse) GetLabels() map[string]string {
+ if o == nil || IsNil(o.Labels) {
+ var ret map[string]string
+ return ret
+ }
+ return *o.Labels
+}
+
+// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *FolderResponse) GetLabelsOk() (*map[string]string, bool) {
+ if o == nil || IsNil(o.Labels) {
+ return nil, false
+ }
+ return o.Labels, true
+}
+
+// HasLabels returns a boolean if a field has been set.
+func (o *FolderResponse) HasLabels() bool {
+ if o != nil && !IsNil(o.Labels) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
+func (o *FolderResponse) SetLabels(v map[string]string) {
+ o.Labels = &v
+}
+
+// GetName returns the Name field value
+func (o *FolderResponse) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *FolderResponse) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *FolderResponse) SetName(v string) {
+ o.Name = v
+}
+
+// GetParent returns the Parent field value
+func (o *FolderResponse) GetParent() Parent {
+ if o == nil {
+ var ret Parent
+ return ret
+ }
+
+ return o.Parent
+}
+
+// GetParentOk returns a tuple with the Parent field value
+// and a boolean to check if the value has been set.
+func (o *FolderResponse) GetParentOk() (*Parent, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Parent, true
+}
+
+// SetParent sets field value
+func (o *FolderResponse) SetParent(v Parent) {
+ o.Parent = v
+}
+
+// GetUpdateTime returns the UpdateTime field value
+func (o *FolderResponse) GetUpdateTime() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.UpdateTime
+}
+
+// GetUpdateTimeOk returns a tuple with the UpdateTime field value
+// and a boolean to check if the value has been set.
+func (o *FolderResponse) GetUpdateTimeOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.UpdateTime, true
+}
+
+// SetUpdateTime sets field value
+func (o *FolderResponse) SetUpdateTime(v time.Time) {
+ o.UpdateTime = v
+}
+
+func (o FolderResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o FolderResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["containerId"] = o.ContainerId
+ toSerialize["creationTime"] = o.CreationTime
+ toSerialize["folderId"] = o.FolderId
+ if !IsNil(o.Labels) {
+ toSerialize["labels"] = o.Labels
+ }
+ toSerialize["name"] = o.Name
+ toSerialize["parent"] = o.Parent
+ toSerialize["updateTime"] = o.UpdateTime
+ return toSerialize, nil
+}
+
+func (o *FolderResponse) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "containerId",
+ "creationTime",
+ "folderId",
+ "name",
+ "parent",
+ "updateTime",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varFolderResponse := _FolderResponse{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varFolderResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = FolderResponse(varFolderResponse)
+
+ return err
+}
+
+type NullableFolderResponse struct {
+ value *FolderResponse
+ isSet bool
+}
+
+func (v NullableFolderResponse) Get() *FolderResponse {
+ return v.value
+}
+
+func (v *NullableFolderResponse) Set(val *FolderResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableFolderResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableFolderResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableFolderResponse(val *FolderResponse) *NullableFolderResponse {
+ return &NullableFolderResponse{value: val, isSet: true}
+}
+
+func (v NullableFolderResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableFolderResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_get_folder_details_response.go b/services/resourcemanager/v0api/model_get_folder_details_response.go
new file mode 100644
index 000000000..2b34ead7e
--- /dev/null
+++ b/services/resourcemanager/v0api/model_get_folder_details_response.go
@@ -0,0 +1,375 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the GetFolderDetailsResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &GetFolderDetailsResponse{}
+
+// GetFolderDetailsResponse struct for GetFolderDetailsResponse
+type GetFolderDetailsResponse struct {
+ // Globally unique user-friendly identifier.
+ ContainerId string `json:"containerId"`
+ // Timestamp at which the folder was created.
+ CreationTime time.Time `json:"creationTime"`
+ // Globally unique folder identifier.
+ FolderId string `json:"folderId"`
+ // Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
+ Labels *map[string]string `json:"labels,omitempty"`
+ // Folder name.
+ Name string `json:"name"`
+ Parent Parent `json:"parent"`
+ Parents []ParentListInner `json:"parents,omitempty"`
+ // Timestamp at which the folder was last modified.
+ UpdateTime time.Time `json:"updateTime"`
+}
+
+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
+func NewGetFolderDetailsResponse(containerId string, creationTime time.Time, folderId string, name string, parent Parent, updateTime time.Time) *GetFolderDetailsResponse {
+ this := GetFolderDetailsResponse{}
+ this.ContainerId = containerId
+ this.CreationTime = creationTime
+ this.FolderId = folderId
+ this.Name = name
+ this.Parent = parent
+ 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
+func NewGetFolderDetailsResponseWithDefaults() *GetFolderDetailsResponse {
+ this := GetFolderDetailsResponse{}
+ return &this
+}
+
+// GetContainerId returns the ContainerId field value
+func (o *GetFolderDetailsResponse) GetContainerId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ContainerId
+}
+
+// GetContainerIdOk returns a tuple with the ContainerId field value
+// and a boolean to check if the value has been set.
+func (o *GetFolderDetailsResponse) GetContainerIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ContainerId, true
+}
+
+// SetContainerId sets field value
+func (o *GetFolderDetailsResponse) SetContainerId(v string) {
+ o.ContainerId = v
+}
+
+// GetCreationTime returns the CreationTime field value
+func (o *GetFolderDetailsResponse) GetCreationTime() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.CreationTime
+}
+
+// GetCreationTimeOk returns a tuple with the CreationTime field value
+// and a boolean to check if the value has been set.
+func (o *GetFolderDetailsResponse) GetCreationTimeOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CreationTime, true
+}
+
+// SetCreationTime sets field value
+func (o *GetFolderDetailsResponse) SetCreationTime(v time.Time) {
+ o.CreationTime = v
+}
+
+// GetFolderId returns the FolderId field value
+func (o *GetFolderDetailsResponse) GetFolderId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.FolderId
+}
+
+// GetFolderIdOk returns a tuple with the FolderId field value
+// and a boolean to check if the value has been set.
+func (o *GetFolderDetailsResponse) GetFolderIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.FolderId, true
+}
+
+// SetFolderId sets field value
+func (o *GetFolderDetailsResponse) SetFolderId(v string) {
+ o.FolderId = v
+}
+
+// GetLabels returns the Labels field value if set, zero value otherwise.
+func (o *GetFolderDetailsResponse) GetLabels() map[string]string {
+ if o == nil || IsNil(o.Labels) {
+ var ret map[string]string
+ return ret
+ }
+ return *o.Labels
+}
+
+// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GetFolderDetailsResponse) GetLabelsOk() (*map[string]string, bool) {
+ if o == nil || IsNil(o.Labels) {
+ return nil, false
+ }
+ return o.Labels, true
+}
+
+// HasLabels returns a boolean if a field has been set.
+func (o *GetFolderDetailsResponse) HasLabels() bool {
+ if o != nil && !IsNil(o.Labels) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
+func (o *GetFolderDetailsResponse) SetLabels(v map[string]string) {
+ o.Labels = &v
+}
+
+// GetName returns the Name field value
+func (o *GetFolderDetailsResponse) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *GetFolderDetailsResponse) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *GetFolderDetailsResponse) SetName(v string) {
+ o.Name = v
+}
+
+// GetParent returns the Parent field value
+func (o *GetFolderDetailsResponse) GetParent() Parent {
+ if o == nil {
+ var ret Parent
+ return ret
+ }
+
+ return o.Parent
+}
+
+// GetParentOk returns a tuple with the Parent field value
+// and a boolean to check if the value has been set.
+func (o *GetFolderDetailsResponse) GetParentOk() (*Parent, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Parent, true
+}
+
+// SetParent sets field value
+func (o *GetFolderDetailsResponse) SetParent(v Parent) {
+ o.Parent = v
+}
+
+// GetParents returns the Parents field value if set, zero value otherwise.
+func (o *GetFolderDetailsResponse) GetParents() []ParentListInner {
+ if o == nil || IsNil(o.Parents) {
+ var ret []ParentListInner
+ return ret
+ }
+ return o.Parents
+}
+
+// GetParentsOk returns a tuple with the Parents field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GetFolderDetailsResponse) GetParentsOk() ([]ParentListInner, bool) {
+ if o == nil || IsNil(o.Parents) {
+ return nil, false
+ }
+ return o.Parents, true
+}
+
+// HasParents returns a boolean if a field has been set.
+func (o *GetFolderDetailsResponse) HasParents() bool {
+ if o != nil && !IsNil(o.Parents) {
+ return true
+ }
+
+ return false
+}
+
+// SetParents gets a reference to the given []ParentListInner and assigns it to the Parents field.
+func (o *GetFolderDetailsResponse) SetParents(v []ParentListInner) {
+ o.Parents = v
+}
+
+// GetUpdateTime returns the UpdateTime field value
+func (o *GetFolderDetailsResponse) GetUpdateTime() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.UpdateTime
+}
+
+// GetUpdateTimeOk returns a tuple with the UpdateTime field value
+// and a boolean to check if the value has been set.
+func (o *GetFolderDetailsResponse) GetUpdateTimeOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.UpdateTime, true
+}
+
+// SetUpdateTime sets field value
+func (o *GetFolderDetailsResponse) SetUpdateTime(v time.Time) {
+ o.UpdateTime = v
+}
+
+func (o GetFolderDetailsResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o GetFolderDetailsResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["containerId"] = o.ContainerId
+ toSerialize["creationTime"] = o.CreationTime
+ toSerialize["folderId"] = o.FolderId
+ if !IsNil(o.Labels) {
+ toSerialize["labels"] = o.Labels
+ }
+ toSerialize["name"] = o.Name
+ toSerialize["parent"] = o.Parent
+ if !IsNil(o.Parents) {
+ toSerialize["parents"] = o.Parents
+ }
+ toSerialize["updateTime"] = o.UpdateTime
+ return toSerialize, nil
+}
+
+func (o *GetFolderDetailsResponse) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "containerId",
+ "creationTime",
+ "folderId",
+ "name",
+ "parent",
+ "updateTime",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varGetFolderDetailsResponse := _GetFolderDetailsResponse{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varGetFolderDetailsResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = GetFolderDetailsResponse(varGetFolderDetailsResponse)
+
+ return err
+}
+
+type NullableGetFolderDetailsResponse struct {
+ value *GetFolderDetailsResponse
+ isSet bool
+}
+
+func (v NullableGetFolderDetailsResponse) Get() *GetFolderDetailsResponse {
+ return v.value
+}
+
+func (v *NullableGetFolderDetailsResponse) Set(val *GetFolderDetailsResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableGetFolderDetailsResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableGetFolderDetailsResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableGetFolderDetailsResponse(val *GetFolderDetailsResponse) *NullableGetFolderDetailsResponse {
+ return &NullableGetFolderDetailsResponse{value: val, isSet: true}
+}
+
+func (v NullableGetFolderDetailsResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableGetFolderDetailsResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_get_project_response.go b/services/resourcemanager/v0api/model_get_project_response.go
new file mode 100644
index 000000000..55ec03608
--- /dev/null
+++ b/services/resourcemanager/v0api/model_get_project_response.go
@@ -0,0 +1,403 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the GetProjectResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &GetProjectResponse{}
+
+// GetProjectResponse struct for GetProjectResponse
+type GetProjectResponse struct {
+ // Globally unique identifier.
+ ContainerId string `json:"containerId"`
+ // Timestamp at which the project was created.
+ CreationTime time.Time `json:"creationTime"`
+ // Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
+ Labels *map[string]string `json:"labels,omitempty"`
+ LifecycleState LifecycleState `json:"lifecycleState"`
+ // Project name.
+ Name string `json:"name"`
+ Parent Parent `json:"parent"`
+ Parents []ParentListInner `json:"parents,omitempty"`
+ // Globally unique identifier.
+ ProjectId string `json:"projectId"`
+ // Timestamp at which the project was last modified.
+ UpdateTime time.Time `json:"updateTime"`
+}
+
+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
+func NewGetProjectResponse(containerId string, creationTime time.Time, lifecycleState LifecycleState, name string, parent Parent, projectId string, updateTime time.Time) *GetProjectResponse {
+ this := GetProjectResponse{}
+ this.ContainerId = containerId
+ this.CreationTime = creationTime
+ this.LifecycleState = lifecycleState
+ this.Name = name
+ this.Parent = parent
+ this.ProjectId = projectId
+ 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
+func NewGetProjectResponseWithDefaults() *GetProjectResponse {
+ this := GetProjectResponse{}
+ return &this
+}
+
+// GetContainerId returns the ContainerId field value
+func (o *GetProjectResponse) GetContainerId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ContainerId
+}
+
+// GetContainerIdOk returns a tuple with the ContainerId field value
+// and a boolean to check if the value has been set.
+func (o *GetProjectResponse) GetContainerIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ContainerId, true
+}
+
+// SetContainerId sets field value
+func (o *GetProjectResponse) SetContainerId(v string) {
+ o.ContainerId = v
+}
+
+// GetCreationTime returns the CreationTime field value
+func (o *GetProjectResponse) GetCreationTime() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.CreationTime
+}
+
+// GetCreationTimeOk returns a tuple with the CreationTime field value
+// and a boolean to check if the value has been set.
+func (o *GetProjectResponse) GetCreationTimeOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CreationTime, true
+}
+
+// SetCreationTime sets field value
+func (o *GetProjectResponse) SetCreationTime(v time.Time) {
+ o.CreationTime = v
+}
+
+// GetLabels returns the Labels field value if set, zero value otherwise.
+func (o *GetProjectResponse) GetLabels() map[string]string {
+ if o == nil || IsNil(o.Labels) {
+ var ret map[string]string
+ return ret
+ }
+ return *o.Labels
+}
+
+// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GetProjectResponse) GetLabelsOk() (*map[string]string, bool) {
+ if o == nil || IsNil(o.Labels) {
+ return nil, false
+ }
+ return o.Labels, true
+}
+
+// HasLabels returns a boolean if a field has been set.
+func (o *GetProjectResponse) HasLabels() bool {
+ if o != nil && !IsNil(o.Labels) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
+func (o *GetProjectResponse) SetLabels(v map[string]string) {
+ o.Labels = &v
+}
+
+// GetLifecycleState returns the LifecycleState field value
+func (o *GetProjectResponse) GetLifecycleState() LifecycleState {
+ if o == nil {
+ var ret LifecycleState
+ return ret
+ }
+
+ return o.LifecycleState
+}
+
+// GetLifecycleStateOk returns a tuple with the LifecycleState field value
+// and a boolean to check if the value has been set.
+func (o *GetProjectResponse) GetLifecycleStateOk() (*LifecycleState, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.LifecycleState, true
+}
+
+// SetLifecycleState sets field value
+func (o *GetProjectResponse) SetLifecycleState(v LifecycleState) {
+ o.LifecycleState = v
+}
+
+// GetName returns the Name field value
+func (o *GetProjectResponse) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *GetProjectResponse) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *GetProjectResponse) SetName(v string) {
+ o.Name = v
+}
+
+// GetParent returns the Parent field value
+func (o *GetProjectResponse) GetParent() Parent {
+ if o == nil {
+ var ret Parent
+ return ret
+ }
+
+ return o.Parent
+}
+
+// GetParentOk returns a tuple with the Parent field value
+// and a boolean to check if the value has been set.
+func (o *GetProjectResponse) GetParentOk() (*Parent, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Parent, true
+}
+
+// SetParent sets field value
+func (o *GetProjectResponse) SetParent(v Parent) {
+ o.Parent = v
+}
+
+// GetParents returns the Parents field value if set, zero value otherwise.
+func (o *GetProjectResponse) GetParents() []ParentListInner {
+ if o == nil || IsNil(o.Parents) {
+ var ret []ParentListInner
+ return ret
+ }
+ return o.Parents
+}
+
+// GetParentsOk returns a tuple with the Parents field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GetProjectResponse) GetParentsOk() ([]ParentListInner, bool) {
+ if o == nil || IsNil(o.Parents) {
+ return nil, false
+ }
+ return o.Parents, true
+}
+
+// HasParents returns a boolean if a field has been set.
+func (o *GetProjectResponse) HasParents() bool {
+ if o != nil && !IsNil(o.Parents) {
+ return true
+ }
+
+ return false
+}
+
+// SetParents gets a reference to the given []ParentListInner and assigns it to the Parents field.
+func (o *GetProjectResponse) SetParents(v []ParentListInner) {
+ o.Parents = v
+}
+
+// GetProjectId returns the ProjectId field value
+func (o *GetProjectResponse) GetProjectId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ProjectId
+}
+
+// GetProjectIdOk returns a tuple with the ProjectId field value
+// and a boolean to check if the value has been set.
+func (o *GetProjectResponse) GetProjectIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ProjectId, true
+}
+
+// SetProjectId sets field value
+func (o *GetProjectResponse) SetProjectId(v string) {
+ o.ProjectId = v
+}
+
+// GetUpdateTime returns the UpdateTime field value
+func (o *GetProjectResponse) GetUpdateTime() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.UpdateTime
+}
+
+// GetUpdateTimeOk returns a tuple with the UpdateTime field value
+// and a boolean to check if the value has been set.
+func (o *GetProjectResponse) GetUpdateTimeOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.UpdateTime, true
+}
+
+// SetUpdateTime sets field value
+func (o *GetProjectResponse) SetUpdateTime(v time.Time) {
+ o.UpdateTime = v
+}
+
+func (o GetProjectResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o GetProjectResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["containerId"] = o.ContainerId
+ toSerialize["creationTime"] = o.CreationTime
+ if !IsNil(o.Labels) {
+ toSerialize["labels"] = o.Labels
+ }
+ toSerialize["lifecycleState"] = o.LifecycleState
+ toSerialize["name"] = o.Name
+ toSerialize["parent"] = o.Parent
+ if !IsNil(o.Parents) {
+ toSerialize["parents"] = o.Parents
+ }
+ toSerialize["projectId"] = o.ProjectId
+ toSerialize["updateTime"] = o.UpdateTime
+ return toSerialize, nil
+}
+
+func (o *GetProjectResponse) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "containerId",
+ "creationTime",
+ "lifecycleState",
+ "name",
+ "parent",
+ "projectId",
+ "updateTime",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varGetProjectResponse := _GetProjectResponse{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varGetProjectResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = GetProjectResponse(varGetProjectResponse)
+
+ return err
+}
+
+type NullableGetProjectResponse struct {
+ value *GetProjectResponse
+ isSet bool
+}
+
+func (v NullableGetProjectResponse) Get() *GetProjectResponse {
+ return v.value
+}
+
+func (v *NullableGetProjectResponse) Set(val *GetProjectResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableGetProjectResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableGetProjectResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableGetProjectResponse(val *GetProjectResponse) *NullableGetProjectResponse {
+ return &NullableGetProjectResponse{value: val, isSet: true}
+}
+
+func (v NullableGetProjectResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableGetProjectResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_lifecycle_state.go b/services/resourcemanager/v0api/model_lifecycle_state.go
new file mode 100644
index 000000000..ac37a8838
--- /dev/null
+++ b/services/resourcemanager/v0api/model_lifecycle_state.go
@@ -0,0 +1,114 @@
+/*
+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 v0api
+
+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. |
+type LifecycleState string
+
+// List of LifecycleState
+const (
+ LIFECYCLESTATE_CREATING LifecycleState = "CREATING"
+ LIFECYCLESTATE_ACTIVE LifecycleState = "ACTIVE"
+ LIFECYCLESTATE_DELETING LifecycleState = "DELETING"
+ LIFECYCLESTATE_INACTIVE LifecycleState = "INACTIVE"
+)
+
+// All allowed values of LifecycleState enum
+var AllowedLifecycleStateEnumValues = []LifecycleState{
+ "CREATING",
+ "ACTIVE",
+ "DELETING",
+ "INACTIVE",
+}
+
+func (v *LifecycleState) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ 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
+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
+func (v LifecycleState) IsValid() bool {
+ for _, existing := range AllowedLifecycleStateEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to LifecycleState value
+func (v LifecycleState) Ptr() *LifecycleState {
+ return &v
+}
+
+type NullableLifecycleState struct {
+ value *LifecycleState
+ isSet bool
+}
+
+func (v NullableLifecycleState) Get() *LifecycleState {
+ return v.value
+}
+
+func (v *NullableLifecycleState) Set(val *LifecycleState) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableLifecycleState) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableLifecycleState) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableLifecycleState(val *LifecycleState) *NullableLifecycleState {
+ return &NullableLifecycleState{value: val, isSet: true}
+}
+
+func (v NullableLifecycleState) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableLifecycleState) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_list_folders_response.go b/services/resourcemanager/v0api/model_list_folders_response.go
new file mode 100644
index 000000000..0a54ed5a8
--- /dev/null
+++ b/services/resourcemanager/v0api/model_list_folders_response.go
@@ -0,0 +1,218 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ListFoldersResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ListFoldersResponse{}
+
+// ListFoldersResponse struct for ListFoldersResponse
+type ListFoldersResponse struct {
+ Items []ListFoldersResponseItemsInner `json:"items"`
+ // The maximum number of projects to return in the response. If not present, an appropriate default will be used.
+ Limit float32 `json:"limit"`
+ // The offset of the first item in the collection to return.
+ Offset float32 `json:"offset"`
+}
+
+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
+func NewListFoldersResponse(items []ListFoldersResponseItemsInner, limit float32, offset float32) *ListFoldersResponse {
+ this := ListFoldersResponse{}
+ this.Items = items
+ this.Limit = limit
+ 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
+func NewListFoldersResponseWithDefaults() *ListFoldersResponse {
+ this := ListFoldersResponse{}
+ var limit float32 = 50
+ this.Limit = limit
+ var offset float32 = 0
+ this.Offset = offset
+ return &this
+}
+
+// GetItems returns the Items field value
+func (o *ListFoldersResponse) GetItems() []ListFoldersResponseItemsInner {
+ if o == nil {
+ var ret []ListFoldersResponseItemsInner
+ return ret
+ }
+
+ return o.Items
+}
+
+// GetItemsOk returns a tuple with the Items field value
+// and a boolean to check if the value has been set.
+func (o *ListFoldersResponse) GetItemsOk() ([]ListFoldersResponseItemsInner, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Items, true
+}
+
+// SetItems sets field value
+func (o *ListFoldersResponse) SetItems(v []ListFoldersResponseItemsInner) {
+ o.Items = v
+}
+
+// GetLimit returns the Limit field value
+func (o *ListFoldersResponse) GetLimit() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Limit
+}
+
+// GetLimitOk returns a tuple with the Limit field value
+// and a boolean to check if the value has been set.
+func (o *ListFoldersResponse) GetLimitOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Limit, true
+}
+
+// SetLimit sets field value
+func (o *ListFoldersResponse) SetLimit(v float32) {
+ o.Limit = v
+}
+
+// GetOffset returns the Offset field value
+func (o *ListFoldersResponse) GetOffset() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Offset
+}
+
+// GetOffsetOk returns a tuple with the Offset field value
+// and a boolean to check if the value has been set.
+func (o *ListFoldersResponse) GetOffsetOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Offset, true
+}
+
+// SetOffset sets field value
+func (o *ListFoldersResponse) SetOffset(v float32) {
+ o.Offset = v
+}
+
+func (o ListFoldersResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ListFoldersResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["items"] = o.Items
+ toSerialize["limit"] = o.Limit
+ toSerialize["offset"] = o.Offset
+ return toSerialize, nil
+}
+
+func (o *ListFoldersResponse) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "items",
+ "limit",
+ "offset",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varListFoldersResponse := _ListFoldersResponse{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varListFoldersResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ListFoldersResponse(varListFoldersResponse)
+
+ return err
+}
+
+type NullableListFoldersResponse struct {
+ value *ListFoldersResponse
+ isSet bool
+}
+
+func (v NullableListFoldersResponse) Get() *ListFoldersResponse {
+ return v.value
+}
+
+func (v *NullableListFoldersResponse) Set(val *ListFoldersResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableListFoldersResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableListFoldersResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableListFoldersResponse(val *ListFoldersResponse) *NullableListFoldersResponse {
+ return &NullableListFoldersResponse{value: val, isSet: true}
+}
+
+func (v NullableListFoldersResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableListFoldersResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_list_folders_response_items_inner.go b/services/resourcemanager/v0api/model_list_folders_response_items_inner.go
new file mode 100644
index 000000000..9a00683f1
--- /dev/null
+++ b/services/resourcemanager/v0api/model_list_folders_response_items_inner.go
@@ -0,0 +1,339 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the ListFoldersResponseItemsInner type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ListFoldersResponseItemsInner{}
+
+// ListFoldersResponseItemsInner struct for ListFoldersResponseItemsInner
+type ListFoldersResponseItemsInner struct {
+ // Globally unique folder identifier.
+ ContainerId string `json:"containerId"`
+ // Timestamp at which the folder was created.
+ CreationTime time.Time `json:"creationTime"`
+ // Globally unique folder identifier.
+ FolderId string `json:"folderId"`
+ // Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
+ Labels *map[string]string `json:"labels,omitempty"`
+ // Name of the folder.
+ Name string `json:"name"`
+ Parent Parent `json:"parent"`
+ // Timestamp at which the folder was created.
+ UpdateTime time.Time `json:"updateTime"`
+}
+
+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
+func NewListFoldersResponseItemsInner(containerId string, creationTime time.Time, folderId string, name string, parent Parent, updateTime time.Time) *ListFoldersResponseItemsInner {
+ this := ListFoldersResponseItemsInner{}
+ this.ContainerId = containerId
+ this.CreationTime = creationTime
+ this.FolderId = folderId
+ this.Name = name
+ this.Parent = parent
+ 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
+func NewListFoldersResponseItemsInnerWithDefaults() *ListFoldersResponseItemsInner {
+ this := ListFoldersResponseItemsInner{}
+ return &this
+}
+
+// GetContainerId returns the ContainerId field value
+func (o *ListFoldersResponseItemsInner) GetContainerId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ContainerId
+}
+
+// GetContainerIdOk returns a tuple with the ContainerId field value
+// and a boolean to check if the value has been set.
+func (o *ListFoldersResponseItemsInner) GetContainerIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ContainerId, true
+}
+
+// SetContainerId sets field value
+func (o *ListFoldersResponseItemsInner) SetContainerId(v string) {
+ o.ContainerId = v
+}
+
+// GetCreationTime returns the CreationTime field value
+func (o *ListFoldersResponseItemsInner) GetCreationTime() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.CreationTime
+}
+
+// GetCreationTimeOk returns a tuple with the CreationTime field value
+// and a boolean to check if the value has been set.
+func (o *ListFoldersResponseItemsInner) GetCreationTimeOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CreationTime, true
+}
+
+// SetCreationTime sets field value
+func (o *ListFoldersResponseItemsInner) SetCreationTime(v time.Time) {
+ o.CreationTime = v
+}
+
+// GetFolderId returns the FolderId field value
+func (o *ListFoldersResponseItemsInner) GetFolderId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.FolderId
+}
+
+// GetFolderIdOk returns a tuple with the FolderId field value
+// and a boolean to check if the value has been set.
+func (o *ListFoldersResponseItemsInner) GetFolderIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.FolderId, true
+}
+
+// SetFolderId sets field value
+func (o *ListFoldersResponseItemsInner) SetFolderId(v string) {
+ o.FolderId = v
+}
+
+// GetLabels returns the Labels field value if set, zero value otherwise.
+func (o *ListFoldersResponseItemsInner) GetLabels() map[string]string {
+ if o == nil || IsNil(o.Labels) {
+ var ret map[string]string
+ return ret
+ }
+ return *o.Labels
+}
+
+// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ListFoldersResponseItemsInner) GetLabelsOk() (*map[string]string, bool) {
+ if o == nil || IsNil(o.Labels) {
+ return nil, false
+ }
+ return o.Labels, true
+}
+
+// HasLabels returns a boolean if a field has been set.
+func (o *ListFoldersResponseItemsInner) HasLabels() bool {
+ if o != nil && !IsNil(o.Labels) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
+func (o *ListFoldersResponseItemsInner) SetLabels(v map[string]string) {
+ o.Labels = &v
+}
+
+// GetName returns the Name field value
+func (o *ListFoldersResponseItemsInner) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *ListFoldersResponseItemsInner) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *ListFoldersResponseItemsInner) SetName(v string) {
+ o.Name = v
+}
+
+// GetParent returns the Parent field value
+func (o *ListFoldersResponseItemsInner) GetParent() Parent {
+ if o == nil {
+ var ret Parent
+ return ret
+ }
+
+ return o.Parent
+}
+
+// GetParentOk returns a tuple with the Parent field value
+// and a boolean to check if the value has been set.
+func (o *ListFoldersResponseItemsInner) GetParentOk() (*Parent, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Parent, true
+}
+
+// SetParent sets field value
+func (o *ListFoldersResponseItemsInner) SetParent(v Parent) {
+ o.Parent = v
+}
+
+// GetUpdateTime returns the UpdateTime field value
+func (o *ListFoldersResponseItemsInner) GetUpdateTime() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.UpdateTime
+}
+
+// GetUpdateTimeOk returns a tuple with the UpdateTime field value
+// and a boolean to check if the value has been set.
+func (o *ListFoldersResponseItemsInner) GetUpdateTimeOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.UpdateTime, true
+}
+
+// SetUpdateTime sets field value
+func (o *ListFoldersResponseItemsInner) SetUpdateTime(v time.Time) {
+ o.UpdateTime = v
+}
+
+func (o ListFoldersResponseItemsInner) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ListFoldersResponseItemsInner) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["containerId"] = o.ContainerId
+ toSerialize["creationTime"] = o.CreationTime
+ toSerialize["folderId"] = o.FolderId
+ if !IsNil(o.Labels) {
+ toSerialize["labels"] = o.Labels
+ }
+ toSerialize["name"] = o.Name
+ toSerialize["parent"] = o.Parent
+ toSerialize["updateTime"] = o.UpdateTime
+ return toSerialize, nil
+}
+
+func (o *ListFoldersResponseItemsInner) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "containerId",
+ "creationTime",
+ "folderId",
+ "name",
+ "parent",
+ "updateTime",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varListFoldersResponseItemsInner := _ListFoldersResponseItemsInner{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varListFoldersResponseItemsInner)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ListFoldersResponseItemsInner(varListFoldersResponseItemsInner)
+
+ return err
+}
+
+type NullableListFoldersResponseItemsInner struct {
+ value *ListFoldersResponseItemsInner
+ isSet bool
+}
+
+func (v NullableListFoldersResponseItemsInner) Get() *ListFoldersResponseItemsInner {
+ return v.value
+}
+
+func (v *NullableListFoldersResponseItemsInner) Set(val *ListFoldersResponseItemsInner) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableListFoldersResponseItemsInner) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableListFoldersResponseItemsInner) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableListFoldersResponseItemsInner(val *ListFoldersResponseItemsInner) *NullableListFoldersResponseItemsInner {
+ return &NullableListFoldersResponseItemsInner{value: val, isSet: true}
+}
+
+func (v NullableListFoldersResponseItemsInner) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableListFoldersResponseItemsInner) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_list_organizations_response.go b/services/resourcemanager/v0api/model_list_organizations_response.go
new file mode 100644
index 000000000..ab8f7c808
--- /dev/null
+++ b/services/resourcemanager/v0api/model_list_organizations_response.go
@@ -0,0 +1,218 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ListOrganizationsResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ListOrganizationsResponse{}
+
+// ListOrganizationsResponse struct for ListOrganizationsResponse
+type ListOrganizationsResponse struct {
+ Items []ListOrganizationsResponseItemsInner `json:"items"`
+ // The maximum number of projects to return in the response. If not present, an appropriate default will be used.
+ Limit float32 `json:"limit"`
+ // The offset of the first item in the collection to return.
+ Offset float32 `json:"offset"`
+}
+
+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
+func NewListOrganizationsResponse(items []ListOrganizationsResponseItemsInner, limit float32, offset float32) *ListOrganizationsResponse {
+ this := ListOrganizationsResponse{}
+ this.Items = items
+ this.Limit = limit
+ 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
+func NewListOrganizationsResponseWithDefaults() *ListOrganizationsResponse {
+ this := ListOrganizationsResponse{}
+ var limit float32 = 50
+ this.Limit = limit
+ var offset float32 = 0
+ this.Offset = offset
+ return &this
+}
+
+// GetItems returns the Items field value
+func (o *ListOrganizationsResponse) GetItems() []ListOrganizationsResponseItemsInner {
+ if o == nil {
+ var ret []ListOrganizationsResponseItemsInner
+ return ret
+ }
+
+ return o.Items
+}
+
+// GetItemsOk returns a tuple with the Items field value
+// and a boolean to check if the value has been set.
+func (o *ListOrganizationsResponse) GetItemsOk() ([]ListOrganizationsResponseItemsInner, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Items, true
+}
+
+// SetItems sets field value
+func (o *ListOrganizationsResponse) SetItems(v []ListOrganizationsResponseItemsInner) {
+ o.Items = v
+}
+
+// GetLimit returns the Limit field value
+func (o *ListOrganizationsResponse) GetLimit() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Limit
+}
+
+// GetLimitOk returns a tuple with the Limit field value
+// and a boolean to check if the value has been set.
+func (o *ListOrganizationsResponse) GetLimitOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Limit, true
+}
+
+// SetLimit sets field value
+func (o *ListOrganizationsResponse) SetLimit(v float32) {
+ o.Limit = v
+}
+
+// GetOffset returns the Offset field value
+func (o *ListOrganizationsResponse) GetOffset() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Offset
+}
+
+// GetOffsetOk returns a tuple with the Offset field value
+// and a boolean to check if the value has been set.
+func (o *ListOrganizationsResponse) GetOffsetOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Offset, true
+}
+
+// SetOffset sets field value
+func (o *ListOrganizationsResponse) SetOffset(v float32) {
+ o.Offset = v
+}
+
+func (o ListOrganizationsResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ListOrganizationsResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["items"] = o.Items
+ toSerialize["limit"] = o.Limit
+ toSerialize["offset"] = o.Offset
+ return toSerialize, nil
+}
+
+func (o *ListOrganizationsResponse) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "items",
+ "limit",
+ "offset",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varListOrganizationsResponse := _ListOrganizationsResponse{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varListOrganizationsResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ListOrganizationsResponse(varListOrganizationsResponse)
+
+ return err
+}
+
+type NullableListOrganizationsResponse struct {
+ value *ListOrganizationsResponse
+ isSet bool
+}
+
+func (v NullableListOrganizationsResponse) Get() *ListOrganizationsResponse {
+ return v.value
+}
+
+func (v *NullableListOrganizationsResponse) Set(val *ListOrganizationsResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableListOrganizationsResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableListOrganizationsResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableListOrganizationsResponse(val *ListOrganizationsResponse) *NullableListOrganizationsResponse {
+ return &NullableListOrganizationsResponse{value: val, isSet: true}
+}
+
+func (v NullableListOrganizationsResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableListOrganizationsResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_list_organizations_response_items_inner.go b/services/resourcemanager/v0api/model_list_organizations_response_items_inner.go
new file mode 100644
index 000000000..3fc92f4e0
--- /dev/null
+++ b/services/resourcemanager/v0api/model_list_organizations_response_items_inner.go
@@ -0,0 +1,339 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the ListOrganizationsResponseItemsInner type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ListOrganizationsResponseItemsInner{}
+
+// ListOrganizationsResponseItemsInner struct for ListOrganizationsResponseItemsInner
+type ListOrganizationsResponseItemsInner struct {
+ // Globally unique, user-friendly identifier.
+ ContainerId string `json:"containerId"`
+ // Timestamp at which the organization was created.
+ CreationTime time.Time `json:"creationTime"`
+ // Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
+ Labels *map[string]string `json:"labels,omitempty"`
+ LifecycleState LifecycleState `json:"lifecycleState"`
+ // Name of the organization.
+ Name string `json:"name"`
+ // Globally unique, organization identifier.
+ OrganizationId string `json:"organizationId"`
+ // Timestamp at which the organization was last modified.
+ UpdateTime time.Time `json:"updateTime"`
+}
+
+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
+func NewListOrganizationsResponseItemsInner(containerId string, creationTime time.Time, lifecycleState LifecycleState, name string, organizationId string, updateTime time.Time) *ListOrganizationsResponseItemsInner {
+ this := ListOrganizationsResponseItemsInner{}
+ this.ContainerId = containerId
+ this.CreationTime = creationTime
+ this.LifecycleState = lifecycleState
+ this.Name = name
+ this.OrganizationId = organizationId
+ 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
+func NewListOrganizationsResponseItemsInnerWithDefaults() *ListOrganizationsResponseItemsInner {
+ this := ListOrganizationsResponseItemsInner{}
+ return &this
+}
+
+// GetContainerId returns the ContainerId field value
+func (o *ListOrganizationsResponseItemsInner) GetContainerId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ContainerId
+}
+
+// GetContainerIdOk returns a tuple with the ContainerId field value
+// and a boolean to check if the value has been set.
+func (o *ListOrganizationsResponseItemsInner) GetContainerIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ContainerId, true
+}
+
+// SetContainerId sets field value
+func (o *ListOrganizationsResponseItemsInner) SetContainerId(v string) {
+ o.ContainerId = v
+}
+
+// GetCreationTime returns the CreationTime field value
+func (o *ListOrganizationsResponseItemsInner) GetCreationTime() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.CreationTime
+}
+
+// GetCreationTimeOk returns a tuple with the CreationTime field value
+// and a boolean to check if the value has been set.
+func (o *ListOrganizationsResponseItemsInner) GetCreationTimeOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CreationTime, true
+}
+
+// SetCreationTime sets field value
+func (o *ListOrganizationsResponseItemsInner) SetCreationTime(v time.Time) {
+ o.CreationTime = v
+}
+
+// GetLabels returns the Labels field value if set, zero value otherwise.
+func (o *ListOrganizationsResponseItemsInner) GetLabels() map[string]string {
+ if o == nil || IsNil(o.Labels) {
+ var ret map[string]string
+ return ret
+ }
+ return *o.Labels
+}
+
+// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ListOrganizationsResponseItemsInner) GetLabelsOk() (*map[string]string, bool) {
+ if o == nil || IsNil(o.Labels) {
+ return nil, false
+ }
+ return o.Labels, true
+}
+
+// HasLabels returns a boolean if a field has been set.
+func (o *ListOrganizationsResponseItemsInner) HasLabels() bool {
+ if o != nil && !IsNil(o.Labels) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
+func (o *ListOrganizationsResponseItemsInner) SetLabels(v map[string]string) {
+ o.Labels = &v
+}
+
+// GetLifecycleState returns the LifecycleState field value
+func (o *ListOrganizationsResponseItemsInner) GetLifecycleState() LifecycleState {
+ if o == nil {
+ var ret LifecycleState
+ return ret
+ }
+
+ return o.LifecycleState
+}
+
+// GetLifecycleStateOk returns a tuple with the LifecycleState field value
+// and a boolean to check if the value has been set.
+func (o *ListOrganizationsResponseItemsInner) GetLifecycleStateOk() (*LifecycleState, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.LifecycleState, true
+}
+
+// SetLifecycleState sets field value
+func (o *ListOrganizationsResponseItemsInner) SetLifecycleState(v LifecycleState) {
+ o.LifecycleState = v
+}
+
+// GetName returns the Name field value
+func (o *ListOrganizationsResponseItemsInner) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *ListOrganizationsResponseItemsInner) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *ListOrganizationsResponseItemsInner) SetName(v string) {
+ o.Name = v
+}
+
+// GetOrganizationId returns the OrganizationId field value
+func (o *ListOrganizationsResponseItemsInner) GetOrganizationId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OrganizationId
+}
+
+// GetOrganizationIdOk returns a tuple with the OrganizationId field value
+// and a boolean to check if the value has been set.
+func (o *ListOrganizationsResponseItemsInner) GetOrganizationIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OrganizationId, true
+}
+
+// SetOrganizationId sets field value
+func (o *ListOrganizationsResponseItemsInner) SetOrganizationId(v string) {
+ o.OrganizationId = v
+}
+
+// GetUpdateTime returns the UpdateTime field value
+func (o *ListOrganizationsResponseItemsInner) GetUpdateTime() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.UpdateTime
+}
+
+// GetUpdateTimeOk returns a tuple with the UpdateTime field value
+// and a boolean to check if the value has been set.
+func (o *ListOrganizationsResponseItemsInner) GetUpdateTimeOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.UpdateTime, true
+}
+
+// SetUpdateTime sets field value
+func (o *ListOrganizationsResponseItemsInner) SetUpdateTime(v time.Time) {
+ o.UpdateTime = v
+}
+
+func (o ListOrganizationsResponseItemsInner) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ListOrganizationsResponseItemsInner) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["containerId"] = o.ContainerId
+ toSerialize["creationTime"] = o.CreationTime
+ if !IsNil(o.Labels) {
+ toSerialize["labels"] = o.Labels
+ }
+ toSerialize["lifecycleState"] = o.LifecycleState
+ toSerialize["name"] = o.Name
+ toSerialize["organizationId"] = o.OrganizationId
+ toSerialize["updateTime"] = o.UpdateTime
+ return toSerialize, nil
+}
+
+func (o *ListOrganizationsResponseItemsInner) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "containerId",
+ "creationTime",
+ "lifecycleState",
+ "name",
+ "organizationId",
+ "updateTime",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varListOrganizationsResponseItemsInner := _ListOrganizationsResponseItemsInner{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varListOrganizationsResponseItemsInner)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ListOrganizationsResponseItemsInner(varListOrganizationsResponseItemsInner)
+
+ return err
+}
+
+type NullableListOrganizationsResponseItemsInner struct {
+ value *ListOrganizationsResponseItemsInner
+ isSet bool
+}
+
+func (v NullableListOrganizationsResponseItemsInner) Get() *ListOrganizationsResponseItemsInner {
+ return v.value
+}
+
+func (v *NullableListOrganizationsResponseItemsInner) Set(val *ListOrganizationsResponseItemsInner) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableListOrganizationsResponseItemsInner) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableListOrganizationsResponseItemsInner) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableListOrganizationsResponseItemsInner(val *ListOrganizationsResponseItemsInner) *NullableListOrganizationsResponseItemsInner {
+ return &NullableListOrganizationsResponseItemsInner{value: val, isSet: true}
+}
+
+func (v NullableListOrganizationsResponseItemsInner) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableListOrganizationsResponseItemsInner) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_list_projects_response.go b/services/resourcemanager/v0api/model_list_projects_response.go
new file mode 100644
index 000000000..edcf66886
--- /dev/null
+++ b/services/resourcemanager/v0api/model_list_projects_response.go
@@ -0,0 +1,218 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ListProjectsResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ListProjectsResponse{}
+
+// ListProjectsResponse struct for ListProjectsResponse
+type ListProjectsResponse struct {
+ Items []Project `json:"items"`
+ // The maximum number of projects to return in the response. If not present, an appropriate default will be used.
+ Limit float32 `json:"limit"`
+ // The offset of the first item in the collection to return.
+ Offset float32 `json:"offset"`
+}
+
+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
+func NewListProjectsResponse(items []Project, limit float32, offset float32) *ListProjectsResponse {
+ this := ListProjectsResponse{}
+ this.Items = items
+ this.Limit = limit
+ 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
+func NewListProjectsResponseWithDefaults() *ListProjectsResponse {
+ this := ListProjectsResponse{}
+ var limit float32 = 50
+ this.Limit = limit
+ var offset float32 = 0
+ this.Offset = offset
+ return &this
+}
+
+// GetItems returns the Items field value
+func (o *ListProjectsResponse) GetItems() []Project {
+ if o == nil {
+ var ret []Project
+ return ret
+ }
+
+ return o.Items
+}
+
+// GetItemsOk returns a tuple with the Items field value
+// and a boolean to check if the value has been set.
+func (o *ListProjectsResponse) GetItemsOk() ([]Project, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Items, true
+}
+
+// SetItems sets field value
+func (o *ListProjectsResponse) SetItems(v []Project) {
+ o.Items = v
+}
+
+// GetLimit returns the Limit field value
+func (o *ListProjectsResponse) GetLimit() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Limit
+}
+
+// GetLimitOk returns a tuple with the Limit field value
+// and a boolean to check if the value has been set.
+func (o *ListProjectsResponse) GetLimitOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Limit, true
+}
+
+// SetLimit sets field value
+func (o *ListProjectsResponse) SetLimit(v float32) {
+ o.Limit = v
+}
+
+// GetOffset returns the Offset field value
+func (o *ListProjectsResponse) GetOffset() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Offset
+}
+
+// GetOffsetOk returns a tuple with the Offset field value
+// and a boolean to check if the value has been set.
+func (o *ListProjectsResponse) GetOffsetOk() (*float32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Offset, true
+}
+
+// SetOffset sets field value
+func (o *ListProjectsResponse) SetOffset(v float32) {
+ o.Offset = v
+}
+
+func (o ListProjectsResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ListProjectsResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["items"] = o.Items
+ toSerialize["limit"] = o.Limit
+ toSerialize["offset"] = o.Offset
+ return toSerialize, nil
+}
+
+func (o *ListProjectsResponse) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "items",
+ "limit",
+ "offset",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varListProjectsResponse := _ListProjectsResponse{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varListProjectsResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ListProjectsResponse(varListProjectsResponse)
+
+ return err
+}
+
+type NullableListProjectsResponse struct {
+ value *ListProjectsResponse
+ isSet bool
+}
+
+func (v NullableListProjectsResponse) Get() *ListProjectsResponse {
+ return v.value
+}
+
+func (v *NullableListProjectsResponse) Set(val *ListProjectsResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableListProjectsResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableListProjectsResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableListProjectsResponse(val *ListProjectsResponse) *NullableListProjectsResponse {
+ return &NullableListProjectsResponse{value: val, isSet: true}
+}
+
+func (v NullableListProjectsResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableListProjectsResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_member.go b/services/resourcemanager/v0api/model_member.go
new file mode 100644
index 000000000..03e9b658d
--- /dev/null
+++ b/services/resourcemanager/v0api/model_member.go
@@ -0,0 +1,186 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the Member type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &Member{}
+
+// Member struct for Member
+type Member struct {
+ // A valid role defined for the resource.
+ Role string `json:"role"`
+ // Unique identifier of the user, service account or client.
+ Subject string `json:"subject"`
+}
+
+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
+func NewMember(role string, subject string) *Member {
+ this := Member{}
+ this.Role = role
+ 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
+func NewMemberWithDefaults() *Member {
+ this := Member{}
+ return &this
+}
+
+// GetRole returns the Role field value
+func (o *Member) GetRole() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Role
+}
+
+// GetRoleOk returns a tuple with the Role field value
+// and a boolean to check if the value has been set.
+func (o *Member) GetRoleOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Role, true
+}
+
+// SetRole sets field value
+func (o *Member) SetRole(v string) {
+ o.Role = v
+}
+
+// GetSubject returns the Subject field value
+func (o *Member) GetSubject() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Subject
+}
+
+// GetSubjectOk returns a tuple with the Subject field value
+// and a boolean to check if the value has been set.
+func (o *Member) GetSubjectOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Subject, true
+}
+
+// SetSubject sets field value
+func (o *Member) SetSubject(v string) {
+ o.Subject = v
+}
+
+func (o Member) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o Member) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["role"] = o.Role
+ toSerialize["subject"] = o.Subject
+ return toSerialize, nil
+}
+
+func (o *Member) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "role",
+ "subject",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varMember := _Member{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varMember)
+
+ if err != nil {
+ return err
+ }
+
+ *o = Member(varMember)
+
+ return err
+}
+
+type NullableMember struct {
+ value *Member
+ isSet bool
+}
+
+func (v NullableMember) Get() *Member {
+ return v.value
+}
+
+func (v *NullableMember) Set(val *Member) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableMember) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableMember) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableMember(val *Member) *NullableMember {
+ return &NullableMember{value: val, isSet: true}
+}
+
+func (v NullableMember) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableMember) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_organization_response.go b/services/resourcemanager/v0api/model_organization_response.go
new file mode 100644
index 000000000..4d6b605d3
--- /dev/null
+++ b/services/resourcemanager/v0api/model_organization_response.go
@@ -0,0 +1,339 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the OrganizationResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrganizationResponse{}
+
+// OrganizationResponse struct for OrganizationResponse
+type OrganizationResponse struct {
+ // Globally unique, user-friendly identifier.
+ ContainerId string `json:"containerId"`
+ // Timestamp at which the organization was created.
+ CreationTime time.Time `json:"creationTime"`
+ // Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
+ Labels *map[string]string `json:"labels,omitempty"`
+ LifecycleState LifecycleState `json:"lifecycleState"`
+ // Organization name.
+ Name string `json:"name"`
+ // Globally unique, organization identifier.
+ OrganizationId string `json:"organizationId"`
+ // Timestamp at which the organization was last modified.
+ UpdateTime time.Time `json:"updateTime"`
+}
+
+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
+func NewOrganizationResponse(containerId string, creationTime time.Time, lifecycleState LifecycleState, name string, organizationId string, updateTime time.Time) *OrganizationResponse {
+ this := OrganizationResponse{}
+ this.ContainerId = containerId
+ this.CreationTime = creationTime
+ this.LifecycleState = lifecycleState
+ this.Name = name
+ this.OrganizationId = organizationId
+ 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
+func NewOrganizationResponseWithDefaults() *OrganizationResponse {
+ this := OrganizationResponse{}
+ return &this
+}
+
+// GetContainerId returns the ContainerId field value
+func (o *OrganizationResponse) GetContainerId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ContainerId
+}
+
+// GetContainerIdOk returns a tuple with the ContainerId field value
+// and a boolean to check if the value has been set.
+func (o *OrganizationResponse) GetContainerIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ContainerId, true
+}
+
+// SetContainerId sets field value
+func (o *OrganizationResponse) SetContainerId(v string) {
+ o.ContainerId = v
+}
+
+// GetCreationTime returns the CreationTime field value
+func (o *OrganizationResponse) GetCreationTime() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.CreationTime
+}
+
+// GetCreationTimeOk returns a tuple with the CreationTime field value
+// and a boolean to check if the value has been set.
+func (o *OrganizationResponse) GetCreationTimeOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CreationTime, true
+}
+
+// SetCreationTime sets field value
+func (o *OrganizationResponse) SetCreationTime(v time.Time) {
+ o.CreationTime = v
+}
+
+// GetLabels returns the Labels field value if set, zero value otherwise.
+func (o *OrganizationResponse) GetLabels() map[string]string {
+ if o == nil || IsNil(o.Labels) {
+ var ret map[string]string
+ return ret
+ }
+ return *o.Labels
+}
+
+// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrganizationResponse) GetLabelsOk() (*map[string]string, bool) {
+ if o == nil || IsNil(o.Labels) {
+ return nil, false
+ }
+ return o.Labels, true
+}
+
+// HasLabels returns a boolean if a field has been set.
+func (o *OrganizationResponse) HasLabels() bool {
+ if o != nil && !IsNil(o.Labels) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
+func (o *OrganizationResponse) SetLabels(v map[string]string) {
+ o.Labels = &v
+}
+
+// GetLifecycleState returns the LifecycleState field value
+func (o *OrganizationResponse) GetLifecycleState() LifecycleState {
+ if o == nil {
+ var ret LifecycleState
+ return ret
+ }
+
+ return o.LifecycleState
+}
+
+// GetLifecycleStateOk returns a tuple with the LifecycleState field value
+// and a boolean to check if the value has been set.
+func (o *OrganizationResponse) GetLifecycleStateOk() (*LifecycleState, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.LifecycleState, true
+}
+
+// SetLifecycleState sets field value
+func (o *OrganizationResponse) SetLifecycleState(v LifecycleState) {
+ o.LifecycleState = v
+}
+
+// GetName returns the Name field value
+func (o *OrganizationResponse) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *OrganizationResponse) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *OrganizationResponse) SetName(v string) {
+ o.Name = v
+}
+
+// GetOrganizationId returns the OrganizationId field value
+func (o *OrganizationResponse) GetOrganizationId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OrganizationId
+}
+
+// GetOrganizationIdOk returns a tuple with the OrganizationId field value
+// and a boolean to check if the value has been set.
+func (o *OrganizationResponse) GetOrganizationIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OrganizationId, true
+}
+
+// SetOrganizationId sets field value
+func (o *OrganizationResponse) SetOrganizationId(v string) {
+ o.OrganizationId = v
+}
+
+// GetUpdateTime returns the UpdateTime field value
+func (o *OrganizationResponse) GetUpdateTime() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.UpdateTime
+}
+
+// GetUpdateTimeOk returns a tuple with the UpdateTime field value
+// and a boolean to check if the value has been set.
+func (o *OrganizationResponse) GetUpdateTimeOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.UpdateTime, true
+}
+
+// SetUpdateTime sets field value
+func (o *OrganizationResponse) SetUpdateTime(v time.Time) {
+ o.UpdateTime = v
+}
+
+func (o OrganizationResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrganizationResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["containerId"] = o.ContainerId
+ toSerialize["creationTime"] = o.CreationTime
+ if !IsNil(o.Labels) {
+ toSerialize["labels"] = o.Labels
+ }
+ toSerialize["lifecycleState"] = o.LifecycleState
+ toSerialize["name"] = o.Name
+ toSerialize["organizationId"] = o.OrganizationId
+ toSerialize["updateTime"] = o.UpdateTime
+ return toSerialize, nil
+}
+
+func (o *OrganizationResponse) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "containerId",
+ "creationTime",
+ "lifecycleState",
+ "name",
+ "organizationId",
+ "updateTime",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrganizationResponse := _OrganizationResponse{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varOrganizationResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrganizationResponse(varOrganizationResponse)
+
+ return err
+}
+
+type NullableOrganizationResponse struct {
+ value *OrganizationResponse
+ isSet bool
+}
+
+func (v NullableOrganizationResponse) Get() *OrganizationResponse {
+ return v.value
+}
+
+func (v *NullableOrganizationResponse) Set(val *OrganizationResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrganizationResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrganizationResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrganizationResponse(val *OrganizationResponse) *NullableOrganizationResponse {
+ return &NullableOrganizationResponse{value: val, isSet: true}
+}
+
+func (v NullableOrganizationResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrganizationResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_parent.go b/services/resourcemanager/v0api/model_parent.go
new file mode 100644
index 000000000..aba8e6033
--- /dev/null
+++ b/services/resourcemanager/v0api/model_parent.go
@@ -0,0 +1,215 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the Parent type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &Parent{}
+
+// Parent Parent container.
+type Parent struct {
+ // User-friendly identifier of either organization or folder (will replace id).
+ ContainerId string `json:"containerId"`
+ // Identifier of either organization or folder.
+ Id string `json:"id"`
+ // Container type of parent container.
+ Type string `json:"type"`
+}
+
+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
+func NewParent(containerId string, id string, types string) *Parent {
+ this := Parent{}
+ this.ContainerId = containerId
+ this.Id = id
+ 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
+func NewParentWithDefaults() *Parent {
+ this := Parent{}
+ return &this
+}
+
+// GetContainerId returns the ContainerId field value
+func (o *Parent) GetContainerId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ContainerId
+}
+
+// GetContainerIdOk returns a tuple with the ContainerId field value
+// and a boolean to check if the value has been set.
+func (o *Parent) GetContainerIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ContainerId, true
+}
+
+// SetContainerId sets field value
+func (o *Parent) SetContainerId(v string) {
+ o.ContainerId = v
+}
+
+// GetId returns the Id field value
+func (o *Parent) GetId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *Parent) GetIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *Parent) SetId(v string) {
+ o.Id = v
+}
+
+// GetType returns the Type field value
+func (o *Parent) GetType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *Parent) GetTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *Parent) SetType(v string) {
+ o.Type = v
+}
+
+func (o Parent) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o Parent) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["containerId"] = o.ContainerId
+ toSerialize["id"] = o.Id
+ toSerialize["type"] = o.Type
+ return toSerialize, nil
+}
+
+func (o *Parent) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "containerId",
+ "id",
+ "type",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varParent := _Parent{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varParent)
+
+ if err != nil {
+ return err
+ }
+
+ *o = Parent(varParent)
+
+ return err
+}
+
+type NullableParent struct {
+ value *Parent
+ isSet bool
+}
+
+func (v NullableParent) Get() *Parent {
+ return v.value
+}
+
+func (v *NullableParent) Set(val *Parent) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableParent) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableParent) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableParent(val *Parent) *NullableParent {
+ return &NullableParent{value: val, isSet: true}
+}
+
+func (v NullableParent) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableParent) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_parent_list_inner.go b/services/resourcemanager/v0api/model_parent_list_inner.go
new file mode 100644
index 000000000..067933dd1
--- /dev/null
+++ b/services/resourcemanager/v0api/model_parent_list_inner.go
@@ -0,0 +1,318 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ParentListInner type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ParentListInner{}
+
+// ParentListInner struct for ParentListInner
+type ParentListInner struct {
+ // User-friendly identifier of either organization or folder (will replace id).
+ ContainerId string `json:"containerId"`
+ // User-friendly parent identifier of either organization or folder (will replace parentId).
+ ContainerParentId *string `json:"containerParentId,omitempty"`
+ // Identifier.
+ Id string `json:"id"`
+ // Parent container name.
+ Name string `json:"name"`
+ // Identifier of the parent resource container.
+ ParentId *string `json:"parentId,omitempty"`
+ // Parent container type.
+ Type string `json:"type"`
+}
+
+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
+func NewParentListInner(containerId string, id string, name string, types string) *ParentListInner {
+ this := ParentListInner{}
+ this.ContainerId = containerId
+ this.Id = id
+ this.Name = name
+ 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
+func NewParentListInnerWithDefaults() *ParentListInner {
+ this := ParentListInner{}
+ return &this
+}
+
+// GetContainerId returns the ContainerId field value
+func (o *ParentListInner) GetContainerId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ContainerId
+}
+
+// GetContainerIdOk returns a tuple with the ContainerId field value
+// and a boolean to check if the value has been set.
+func (o *ParentListInner) GetContainerIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ContainerId, true
+}
+
+// SetContainerId sets field value
+func (o *ParentListInner) SetContainerId(v string) {
+ o.ContainerId = v
+}
+
+// GetContainerParentId returns the ContainerParentId field value if set, zero value otherwise.
+func (o *ParentListInner) GetContainerParentId() string {
+ if o == nil || IsNil(o.ContainerParentId) {
+ var ret string
+ return ret
+ }
+ return *o.ContainerParentId
+}
+
+// GetContainerParentIdOk returns a tuple with the ContainerParentId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ParentListInner) GetContainerParentIdOk() (*string, bool) {
+ if o == nil || IsNil(o.ContainerParentId) {
+ return nil, false
+ }
+ return o.ContainerParentId, true
+}
+
+// HasContainerParentId returns a boolean if a field has been set.
+func (o *ParentListInner) HasContainerParentId() bool {
+ if o != nil && !IsNil(o.ContainerParentId) {
+ return true
+ }
+
+ return false
+}
+
+// SetContainerParentId gets a reference to the given string and assigns it to the ContainerParentId field.
+func (o *ParentListInner) SetContainerParentId(v string) {
+ o.ContainerParentId = &v
+}
+
+// GetId returns the Id field value
+func (o *ParentListInner) GetId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *ParentListInner) GetIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *ParentListInner) SetId(v string) {
+ o.Id = v
+}
+
+// GetName returns the Name field value
+func (o *ParentListInner) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *ParentListInner) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *ParentListInner) SetName(v string) {
+ o.Name = v
+}
+
+// GetParentId returns the ParentId field value if set, zero value otherwise.
+func (o *ParentListInner) GetParentId() string {
+ if o == nil || IsNil(o.ParentId) {
+ var ret string
+ return ret
+ }
+ return *o.ParentId
+}
+
+// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ParentListInner) GetParentIdOk() (*string, bool) {
+ if o == nil || IsNil(o.ParentId) {
+ return nil, false
+ }
+ return o.ParentId, true
+}
+
+// HasParentId returns a boolean if a field has been set.
+func (o *ParentListInner) HasParentId() bool {
+ if o != nil && !IsNil(o.ParentId) {
+ return true
+ }
+
+ return false
+}
+
+// SetParentId gets a reference to the given string and assigns it to the ParentId field.
+func (o *ParentListInner) SetParentId(v string) {
+ o.ParentId = &v
+}
+
+// GetType returns the Type field value
+func (o *ParentListInner) GetType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *ParentListInner) GetTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *ParentListInner) SetType(v string) {
+ o.Type = v
+}
+
+func (o ParentListInner) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ParentListInner) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["containerId"] = o.ContainerId
+ if !IsNil(o.ContainerParentId) {
+ toSerialize["containerParentId"] = o.ContainerParentId
+ }
+ toSerialize["id"] = o.Id
+ toSerialize["name"] = o.Name
+ if !IsNil(o.ParentId) {
+ toSerialize["parentId"] = o.ParentId
+ }
+ toSerialize["type"] = o.Type
+ return toSerialize, nil
+}
+
+func (o *ParentListInner) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "containerId",
+ "id",
+ "name",
+ "type",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varParentListInner := _ParentListInner{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varParentListInner)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ParentListInner(varParentListInner)
+
+ return err
+}
+
+type NullableParentListInner struct {
+ value *ParentListInner
+ isSet bool
+}
+
+func (v NullableParentListInner) Get() *ParentListInner {
+ return v.value
+}
+
+func (v *NullableParentListInner) Set(val *ParentListInner) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableParentListInner) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableParentListInner) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableParentListInner(val *ParentListInner) *NullableParentListInner {
+ return &NullableParentListInner{value: val, isSet: true}
+}
+
+func (v NullableParentListInner) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableParentListInner) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_partial_update_folder_payload.go b/services/resourcemanager/v0api/model_partial_update_folder_payload.go
new file mode 100644
index 000000000..ba8a02bb5
--- /dev/null
+++ b/services/resourcemanager/v0api/model_partial_update_folder_payload.go
@@ -0,0 +1,199 @@
+/*
+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 v0api
+
+import (
+ "encoding/json"
+)
+
+// checks if the PartialUpdateFolderPayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PartialUpdateFolderPayload{}
+
+// PartialUpdateFolderPayload struct for PartialUpdateFolderPayload
+type PartialUpdateFolderPayload struct {
+ // New parent identifier for the resource container - containerId as well as UUID identifier is supported.
+ ContainerParentId *string `json:"containerParentId,omitempty"`
+ // Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
+ Labels *map[string]string `json:"labels,omitempty"`
+ // New name for the resource container matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`.
+ Name *string `json:"name,omitempty" validate:"regexp=^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$"`
+}
+
+// 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
+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
+func NewPartialUpdateFolderPayloadWithDefaults() *PartialUpdateFolderPayload {
+ this := PartialUpdateFolderPayload{}
+ return &this
+}
+
+// GetContainerParentId returns the ContainerParentId field value if set, zero value otherwise.
+func (o *PartialUpdateFolderPayload) GetContainerParentId() string {
+ if o == nil || IsNil(o.ContainerParentId) {
+ var ret string
+ return ret
+ }
+ return *o.ContainerParentId
+}
+
+// GetContainerParentIdOk returns a tuple with the ContainerParentId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateFolderPayload) GetContainerParentIdOk() (*string, bool) {
+ if o == nil || IsNil(o.ContainerParentId) {
+ return nil, false
+ }
+ return o.ContainerParentId, true
+}
+
+// HasContainerParentId returns a boolean if a field has been set.
+func (o *PartialUpdateFolderPayload) HasContainerParentId() bool {
+ if o != nil && !IsNil(o.ContainerParentId) {
+ return true
+ }
+
+ return false
+}
+
+// SetContainerParentId gets a reference to the given string and assigns it to the ContainerParentId field.
+func (o *PartialUpdateFolderPayload) SetContainerParentId(v string) {
+ o.ContainerParentId = &v
+}
+
+// GetLabels returns the Labels field value if set, zero value otherwise.
+func (o *PartialUpdateFolderPayload) GetLabels() map[string]string {
+ if o == nil || IsNil(o.Labels) {
+ var ret map[string]string
+ return ret
+ }
+ return *o.Labels
+}
+
+// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateFolderPayload) GetLabelsOk() (*map[string]string, bool) {
+ if o == nil || IsNil(o.Labels) {
+ return nil, false
+ }
+ return o.Labels, true
+}
+
+// HasLabels returns a boolean if a field has been set.
+func (o *PartialUpdateFolderPayload) HasLabels() bool {
+ if o != nil && !IsNil(o.Labels) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
+func (o *PartialUpdateFolderPayload) SetLabels(v map[string]string) {
+ o.Labels = &v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PartialUpdateFolderPayload) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateFolderPayload) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *PartialUpdateFolderPayload) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *PartialUpdateFolderPayload) SetName(v string) {
+ o.Name = &v
+}
+
+func (o PartialUpdateFolderPayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PartialUpdateFolderPayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.ContainerParentId) {
+ toSerialize["containerParentId"] = o.ContainerParentId
+ }
+ if !IsNil(o.Labels) {
+ toSerialize["labels"] = o.Labels
+ }
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ return toSerialize, nil
+}
+
+type NullablePartialUpdateFolderPayload struct {
+ value *PartialUpdateFolderPayload
+ isSet bool
+}
+
+func (v NullablePartialUpdateFolderPayload) Get() *PartialUpdateFolderPayload {
+ return v.value
+}
+
+func (v *NullablePartialUpdateFolderPayload) Set(val *PartialUpdateFolderPayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePartialUpdateFolderPayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePartialUpdateFolderPayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePartialUpdateFolderPayload(val *PartialUpdateFolderPayload) *NullablePartialUpdateFolderPayload {
+ return &NullablePartialUpdateFolderPayload{value: val, isSet: true}
+}
+
+func (v NullablePartialUpdateFolderPayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePartialUpdateFolderPayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_partial_update_organization_payload.go b/services/resourcemanager/v0api/model_partial_update_organization_payload.go
new file mode 100644
index 000000000..25e19f23d
--- /dev/null
+++ b/services/resourcemanager/v0api/model_partial_update_organization_payload.go
@@ -0,0 +1,162 @@
+/*
+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 v0api
+
+import (
+ "encoding/json"
+)
+
+// checks if the PartialUpdateOrganizationPayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PartialUpdateOrganizationPayload{}
+
+// PartialUpdateOrganizationPayload struct for PartialUpdateOrganizationPayload
+type PartialUpdateOrganizationPayload struct {
+ // Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
+ Labels *map[string]string `json:"labels,omitempty"`
+ // The new name of the organization matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`.
+ Name *string `json:"name,omitempty" validate:"regexp=^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$"`
+}
+
+// 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
+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
+func NewPartialUpdateOrganizationPayloadWithDefaults() *PartialUpdateOrganizationPayload {
+ this := PartialUpdateOrganizationPayload{}
+ return &this
+}
+
+// GetLabels returns the Labels field value if set, zero value otherwise.
+func (o *PartialUpdateOrganizationPayload) GetLabels() map[string]string {
+ if o == nil || IsNil(o.Labels) {
+ var ret map[string]string
+ return ret
+ }
+ return *o.Labels
+}
+
+// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateOrganizationPayload) GetLabelsOk() (*map[string]string, bool) {
+ if o == nil || IsNil(o.Labels) {
+ return nil, false
+ }
+ return o.Labels, true
+}
+
+// HasLabels returns a boolean if a field has been set.
+func (o *PartialUpdateOrganizationPayload) HasLabels() bool {
+ if o != nil && !IsNil(o.Labels) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
+func (o *PartialUpdateOrganizationPayload) SetLabels(v map[string]string) {
+ o.Labels = &v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PartialUpdateOrganizationPayload) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateOrganizationPayload) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *PartialUpdateOrganizationPayload) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *PartialUpdateOrganizationPayload) SetName(v string) {
+ o.Name = &v
+}
+
+func (o PartialUpdateOrganizationPayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PartialUpdateOrganizationPayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Labels) {
+ toSerialize["labels"] = o.Labels
+ }
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ return toSerialize, nil
+}
+
+type NullablePartialUpdateOrganizationPayload struct {
+ value *PartialUpdateOrganizationPayload
+ isSet bool
+}
+
+func (v NullablePartialUpdateOrganizationPayload) Get() *PartialUpdateOrganizationPayload {
+ return v.value
+}
+
+func (v *NullablePartialUpdateOrganizationPayload) Set(val *PartialUpdateOrganizationPayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePartialUpdateOrganizationPayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePartialUpdateOrganizationPayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePartialUpdateOrganizationPayload(val *PartialUpdateOrganizationPayload) *NullablePartialUpdateOrganizationPayload {
+ return &NullablePartialUpdateOrganizationPayload{value: val, isSet: true}
+}
+
+func (v NullablePartialUpdateOrganizationPayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePartialUpdateOrganizationPayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_partial_update_project_payload.go b/services/resourcemanager/v0api/model_partial_update_project_payload.go
new file mode 100644
index 000000000..5025f9535
--- /dev/null
+++ b/services/resourcemanager/v0api/model_partial_update_project_payload.go
@@ -0,0 +1,199 @@
+/*
+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 v0api
+
+import (
+ "encoding/json"
+)
+
+// checks if the PartialUpdateProjectPayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PartialUpdateProjectPayload{}
+
+// PartialUpdateProjectPayload struct for PartialUpdateProjectPayload
+type PartialUpdateProjectPayload struct {
+ // New parent identifier for the resource container - containerId as well as UUID identifier is supported.
+ ContainerParentId *string `json:"containerParentId,omitempty"`
+ // Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
+ Labels *map[string]string `json:"labels,omitempty"`
+ // New name for the resource container matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`.
+ Name *string `json:"name,omitempty" validate:"regexp=^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$"`
+}
+
+// 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
+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
+func NewPartialUpdateProjectPayloadWithDefaults() *PartialUpdateProjectPayload {
+ this := PartialUpdateProjectPayload{}
+ return &this
+}
+
+// GetContainerParentId returns the ContainerParentId field value if set, zero value otherwise.
+func (o *PartialUpdateProjectPayload) GetContainerParentId() string {
+ if o == nil || IsNil(o.ContainerParentId) {
+ var ret string
+ return ret
+ }
+ return *o.ContainerParentId
+}
+
+// GetContainerParentIdOk returns a tuple with the ContainerParentId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateProjectPayload) GetContainerParentIdOk() (*string, bool) {
+ if o == nil || IsNil(o.ContainerParentId) {
+ return nil, false
+ }
+ return o.ContainerParentId, true
+}
+
+// HasContainerParentId returns a boolean if a field has been set.
+func (o *PartialUpdateProjectPayload) HasContainerParentId() bool {
+ if o != nil && !IsNil(o.ContainerParentId) {
+ return true
+ }
+
+ return false
+}
+
+// SetContainerParentId gets a reference to the given string and assigns it to the ContainerParentId field.
+func (o *PartialUpdateProjectPayload) SetContainerParentId(v string) {
+ o.ContainerParentId = &v
+}
+
+// GetLabels returns the Labels field value if set, zero value otherwise.
+func (o *PartialUpdateProjectPayload) GetLabels() map[string]string {
+ if o == nil || IsNil(o.Labels) {
+ var ret map[string]string
+ return ret
+ }
+ return *o.Labels
+}
+
+// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateProjectPayload) GetLabelsOk() (*map[string]string, bool) {
+ if o == nil || IsNil(o.Labels) {
+ return nil, false
+ }
+ return o.Labels, true
+}
+
+// HasLabels returns a boolean if a field has been set.
+func (o *PartialUpdateProjectPayload) HasLabels() bool {
+ if o != nil && !IsNil(o.Labels) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
+func (o *PartialUpdateProjectPayload) SetLabels(v map[string]string) {
+ o.Labels = &v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PartialUpdateProjectPayload) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateProjectPayload) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *PartialUpdateProjectPayload) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *PartialUpdateProjectPayload) SetName(v string) {
+ o.Name = &v
+}
+
+func (o PartialUpdateProjectPayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PartialUpdateProjectPayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.ContainerParentId) {
+ toSerialize["containerParentId"] = o.ContainerParentId
+ }
+ if !IsNil(o.Labels) {
+ toSerialize["labels"] = o.Labels
+ }
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ return toSerialize, nil
+}
+
+type NullablePartialUpdateProjectPayload struct {
+ value *PartialUpdateProjectPayload
+ isSet bool
+}
+
+func (v NullablePartialUpdateProjectPayload) Get() *PartialUpdateProjectPayload {
+ return v.value
+}
+
+func (v *NullablePartialUpdateProjectPayload) Set(val *PartialUpdateProjectPayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePartialUpdateProjectPayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePartialUpdateProjectPayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePartialUpdateProjectPayload(val *PartialUpdateProjectPayload) *NullablePartialUpdateProjectPayload {
+ return &NullablePartialUpdateProjectPayload{value: val, isSet: true}
+}
+
+func (v NullablePartialUpdateProjectPayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePartialUpdateProjectPayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/model_project.go b/services/resourcemanager/v0api/model_project.go
new file mode 100644
index 000000000..3c4f81013
--- /dev/null
+++ b/services/resourcemanager/v0api/model_project.go
@@ -0,0 +1,367 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the Project type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &Project{}
+
+// Project struct for Project
+type Project struct {
+ // Globally unique, user-friendly identifier.
+ ContainerId string `json:"containerId"`
+ // Timestamp at which the project was created.
+ CreationTime time.Time `json:"creationTime"`
+ // Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
+ Labels *map[string]string `json:"labels,omitempty"`
+ LifecycleState LifecycleState `json:"lifecycleState"`
+ // Project name.
+ Name string `json:"name"`
+ Parent Parent `json:"parent"`
+ // Globally unique, project identifier.
+ ProjectId string `json:"projectId"`
+ // Timestamp at which the project was last modified.
+ UpdateTime time.Time `json:"updateTime"`
+}
+
+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
+func NewProject(containerId string, creationTime time.Time, lifecycleState LifecycleState, name string, parent Parent, projectId string, updateTime time.Time) *Project {
+ this := Project{}
+ this.ContainerId = containerId
+ this.CreationTime = creationTime
+ this.LifecycleState = lifecycleState
+ this.Name = name
+ this.Parent = parent
+ this.ProjectId = projectId
+ 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
+func NewProjectWithDefaults() *Project {
+ this := Project{}
+ return &this
+}
+
+// GetContainerId returns the ContainerId field value
+func (o *Project) GetContainerId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ContainerId
+}
+
+// GetContainerIdOk returns a tuple with the ContainerId field value
+// and a boolean to check if the value has been set.
+func (o *Project) GetContainerIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ContainerId, true
+}
+
+// SetContainerId sets field value
+func (o *Project) SetContainerId(v string) {
+ o.ContainerId = v
+}
+
+// GetCreationTime returns the CreationTime field value
+func (o *Project) GetCreationTime() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.CreationTime
+}
+
+// GetCreationTimeOk returns a tuple with the CreationTime field value
+// and a boolean to check if the value has been set.
+func (o *Project) GetCreationTimeOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CreationTime, true
+}
+
+// SetCreationTime sets field value
+func (o *Project) SetCreationTime(v time.Time) {
+ o.CreationTime = v
+}
+
+// GetLabels returns the Labels field value if set, zero value otherwise.
+func (o *Project) GetLabels() map[string]string {
+ if o == nil || IsNil(o.Labels) {
+ var ret map[string]string
+ return ret
+ }
+ return *o.Labels
+}
+
+// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Project) GetLabelsOk() (*map[string]string, bool) {
+ if o == nil || IsNil(o.Labels) {
+ return nil, false
+ }
+ return o.Labels, true
+}
+
+// HasLabels returns a boolean if a field has been set.
+func (o *Project) HasLabels() bool {
+ if o != nil && !IsNil(o.Labels) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
+func (o *Project) SetLabels(v map[string]string) {
+ o.Labels = &v
+}
+
+// GetLifecycleState returns the LifecycleState field value
+func (o *Project) GetLifecycleState() LifecycleState {
+ if o == nil {
+ var ret LifecycleState
+ return ret
+ }
+
+ return o.LifecycleState
+}
+
+// GetLifecycleStateOk returns a tuple with the LifecycleState field value
+// and a boolean to check if the value has been set.
+func (o *Project) GetLifecycleStateOk() (*LifecycleState, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.LifecycleState, true
+}
+
+// SetLifecycleState sets field value
+func (o *Project) SetLifecycleState(v LifecycleState) {
+ o.LifecycleState = v
+}
+
+// GetName returns the Name field value
+func (o *Project) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *Project) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *Project) SetName(v string) {
+ o.Name = v
+}
+
+// GetParent returns the Parent field value
+func (o *Project) GetParent() Parent {
+ if o == nil {
+ var ret Parent
+ return ret
+ }
+
+ return o.Parent
+}
+
+// GetParentOk returns a tuple with the Parent field value
+// and a boolean to check if the value has been set.
+func (o *Project) GetParentOk() (*Parent, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Parent, true
+}
+
+// SetParent sets field value
+func (o *Project) SetParent(v Parent) {
+ o.Parent = v
+}
+
+// GetProjectId returns the ProjectId field value
+func (o *Project) GetProjectId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ProjectId
+}
+
+// GetProjectIdOk returns a tuple with the ProjectId field value
+// and a boolean to check if the value has been set.
+func (o *Project) GetProjectIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ProjectId, true
+}
+
+// SetProjectId sets field value
+func (o *Project) SetProjectId(v string) {
+ o.ProjectId = v
+}
+
+// GetUpdateTime returns the UpdateTime field value
+func (o *Project) GetUpdateTime() time.Time {
+ if o == nil {
+ var ret time.Time
+ return ret
+ }
+
+ return o.UpdateTime
+}
+
+// GetUpdateTimeOk returns a tuple with the UpdateTime field value
+// and a boolean to check if the value has been set.
+func (o *Project) GetUpdateTimeOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.UpdateTime, true
+}
+
+// SetUpdateTime sets field value
+func (o *Project) SetUpdateTime(v time.Time) {
+ o.UpdateTime = v
+}
+
+func (o Project) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o Project) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["containerId"] = o.ContainerId
+ toSerialize["creationTime"] = o.CreationTime
+ if !IsNil(o.Labels) {
+ toSerialize["labels"] = o.Labels
+ }
+ toSerialize["lifecycleState"] = o.LifecycleState
+ toSerialize["name"] = o.Name
+ toSerialize["parent"] = o.Parent
+ toSerialize["projectId"] = o.ProjectId
+ toSerialize["updateTime"] = o.UpdateTime
+ return toSerialize, nil
+}
+
+func (o *Project) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "containerId",
+ "creationTime",
+ "lifecycleState",
+ "name",
+ "parent",
+ "projectId",
+ "updateTime",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varProject := _Project{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varProject)
+
+ if err != nil {
+ return err
+ }
+
+ *o = Project(varProject)
+
+ return err
+}
+
+type NullableProject struct {
+ value *Project
+ isSet bool
+}
+
+func (v NullableProject) Get() *Project {
+ return v.value
+}
+
+func (v *NullableProject) Set(val *Project) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableProject) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableProject) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableProject(val *Project) *NullableProject {
+ return &NullableProject{value: val, isSet: true}
+}
+
+func (v NullableProject) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableProject) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/resourcemanager/v0api/response.go b/services/resourcemanager/v0api/response.go
new file mode 100644
index 000000000..6df595dfa
--- /dev/null
+++ b/services/resourcemanager/v0api/response.go
@@ -0,0 +1,47 @@
+/*
+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 v0api
+
+import (
+ "net/http"
+)
+
+// APIResponse stores the API response returned by the server.
+type APIResponse struct {
+ *http.Response `json:"-"`
+ Message string `json:"message,omitempty"`
+ // Operation is the name of the OpenAPI operation.
+ Operation string `json:"operation,omitempty"`
+ // RequestURL is the request URL. This value is always available, even if the
+ // embedded *http.Response is nil.
+ RequestURL string `json:"url,omitempty"`
+ // Method is the HTTP method used for the request. This value is always
+ // available, even if the embedded *http.Response is nil.
+ Method string `json:"method,omitempty"`
+ // Payload holds the contents of the response body (which may be nil or empty).
+ // This is provided here as the raw response.Body() reader will have already
+ // been drained.
+ Payload []byte `json:"-"`
+}
+
+// NewAPIResponse returns a new APIResponse object.
+func NewAPIResponse(r *http.Response) *APIResponse {
+
+ response := &APIResponse{Response: r}
+ return response
+}
+
+// NewAPIResponseWithError returns a new APIResponse object with the provided error message.
+func NewAPIResponseWithError(errorMessage string) *APIResponse {
+
+ response := &APIResponse{Message: errorMessage}
+ return response
+}
diff --git a/services/resourcemanager/v0api/utils.go b/services/resourcemanager/v0api/utils.go
new file mode 100644
index 000000000..012334724
--- /dev/null
+++ b/services/resourcemanager/v0api/utils.go
@@ -0,0 +1,361 @@
+/*
+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 v0api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "reflect"
+ "time"
+)
+
+// PtrBool is a helper routine that returns a pointer to given boolean value.
+func PtrBool(v bool) *bool { return &v }
+
+// PtrInt is a helper routine that returns a pointer to given integer value.
+func PtrInt(v int) *int { return &v }
+
+// PtrInt32 is a helper routine that returns a pointer to given integer value.
+func PtrInt32(v int32) *int32 { return &v }
+
+// PtrInt64 is a helper routine that returns a pointer to given integer value.
+func PtrInt64(v int64) *int64 { return &v }
+
+// PtrFloat32 is a helper routine that returns a pointer to given float value.
+func PtrFloat32(v float32) *float32 { return &v }
+
+// PtrFloat64 is a helper routine that returns a pointer to given float value.
+func PtrFloat64(v float64) *float64 { return &v }
+
+// PtrString is a helper routine that returns a pointer to given string value.
+func PtrString(v string) *string { return &v }
+
+// PtrTime is helper routine that returns a pointer to given Time value.
+func PtrTime(v time.Time) *time.Time { return &v }
+
+type NullableBool struct {
+ value *bool
+ isSet bool
+}
+
+func (v NullableBool) Get() *bool {
+ return v.value
+}
+
+func (v *NullableBool) Set(val *bool) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableBool) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableBool) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableBool(val *bool) *NullableBool {
+ return &NullableBool{value: val, isSet: true}
+}
+
+func (v NullableBool) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableBool) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableInt struct {
+ value *int
+ isSet bool
+}
+
+func (v NullableInt) Get() *int {
+ return v.value
+}
+
+func (v *NullableInt) Set(val *int) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInt) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInt) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInt(val *int) *NullableInt {
+ return &NullableInt{value: val, isSet: true}
+}
+
+func (v NullableInt) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInt) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableInt32 struct {
+ value *int32
+ isSet bool
+}
+
+func (v NullableInt32) Get() *int32 {
+ return v.value
+}
+
+func (v *NullableInt32) Set(val *int32) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInt32) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInt32) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInt32(val *int32) *NullableInt32 {
+ return &NullableInt32{value: val, isSet: true}
+}
+
+func (v NullableInt32) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInt32) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableInt64 struct {
+ value *int64
+ isSet bool
+}
+
+func (v NullableInt64) Get() *int64 {
+ return v.value
+}
+
+func (v *NullableInt64) Set(val *int64) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInt64) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInt64) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInt64(val *int64) *NullableInt64 {
+ return &NullableInt64{value: val, isSet: true}
+}
+
+func (v NullableInt64) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInt64) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableFloat32 struct {
+ value *float32
+ isSet bool
+}
+
+func (v NullableFloat32) Get() *float32 {
+ return v.value
+}
+
+func (v *NullableFloat32) Set(val *float32) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableFloat32) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableFloat32) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableFloat32(val *float32) *NullableFloat32 {
+ return &NullableFloat32{value: val, isSet: true}
+}
+
+func (v NullableFloat32) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableFloat32) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableFloat64 struct {
+ value *float64
+ isSet bool
+}
+
+func (v NullableFloat64) Get() *float64 {
+ return v.value
+}
+
+func (v *NullableFloat64) Set(val *float64) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableFloat64) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableFloat64) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableFloat64(val *float64) *NullableFloat64 {
+ return &NullableFloat64{value: val, isSet: true}
+}
+
+func (v NullableFloat64) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableFloat64) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableString struct {
+ value *string
+ isSet bool
+}
+
+func (v NullableString) Get() *string {
+ return v.value
+}
+
+func (v *NullableString) Set(val *string) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableString) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableString) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableString(val *string) *NullableString {
+ return &NullableString{value: val, isSet: true}
+}
+
+func (v NullableString) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableString) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableTime struct {
+ value *time.Time
+ isSet bool
+}
+
+func (v NullableTime) Get() *time.Time {
+ return v.value
+}
+
+func (v *NullableTime) Set(val *time.Time) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTime) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTime) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTime(val *time.Time) *NullableTime {
+ return &NullableTime{value: val, isSet: true}
+}
+
+func (v NullableTime) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTime) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+// IsNil checks if an input is nil
+func IsNil(i interface{}) bool {
+ if i == nil {
+ return true
+ }
+ 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
+}
+
+type MappedNullable interface {
+ ToMap() (map[string]interface{}, error)
+}
+
+// A wrapper for strict JSON decoding
+func newStrictDecoder(data []byte) *json.Decoder {
+ dec := json.NewDecoder(bytes.NewBuffer(data))
+ dec.DisallowUnknownFields()
+ return dec
+}
+
+// Prevent trying to import "fmt"
+func reportError(format string, a ...interface{}) error {
+ return fmt.Errorf(format, a...)
+}
diff --git a/services/resourcemanager/wait/deprecation.go b/services/resourcemanager/wait/deprecation.go
new file mode 100644
index 000000000..58f184c09
--- /dev/null
+++ b/services/resourcemanager/wait/deprecation.go
@@ -0,0 +1,2 @@
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+package wait