stackit-resourcemanager 0.9.1__tar.gz → 0.11.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/PKG-INFO +2 -2
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/pyproject.toml +1 -1
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/__init__.py +0 -4
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/api/default_api.py +54 -54
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/__init__.py +0 -1
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/partial_update_folder_payload.py +2 -2
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/partial_update_organization_payload.py +2 -2
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/partial_update_project_payload.py +2 -2
- stackit_resourcemanager-0.9.1/src/stackit/resourcemanager/models/container_search_result.py +0 -115
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/.gitignore +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/LICENSE.md +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/NOTICE.txt +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/README.md +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/api/__init__.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/api_client.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/api_response.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/configuration.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/exceptions.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/create_folder_payload.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/create_project_payload.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/error_response.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/folder_response.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/get_folder_details_response.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/get_project_response.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/lifecycle_state.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/list_folders_response.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/list_folders_response_items_inner.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/list_organizations_response.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/list_organizations_response_items_inner.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/list_projects_response.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/member.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/organization_response.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/parent.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/parent_list_inner.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/models/project.py +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/py.typed +0 -0
- {stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/rest.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: stackit-resourcemanager
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0
|
|
4
4
|
Summary: Resource Manager API
|
|
5
5
|
Project-URL: Homepage, https://github.com/stackitcloud/stackit-sdk-python
|
|
6
6
|
Project-URL: Issues, https://github.com/stackitcloud/stackit-sdk-python/issues
|
|
@@ -27,7 +27,6 @@ __all__ = [
|
|
|
27
27
|
"ApiKeyError",
|
|
28
28
|
"ApiAttributeError",
|
|
29
29
|
"ApiException",
|
|
30
|
-
"ContainerSearchResult",
|
|
31
30
|
"CreateFolderPayload",
|
|
32
31
|
"CreateProjectPayload",
|
|
33
32
|
"ErrorResponse",
|
|
@@ -65,9 +64,6 @@ from stackit.resourcemanager.exceptions import ApiValueError as ApiValueError
|
|
|
65
64
|
from stackit.resourcemanager.exceptions import OpenApiException as OpenApiException
|
|
66
65
|
|
|
67
66
|
# import models into sdk package
|
|
68
|
-
from stackit.resourcemanager.models.container_search_result import (
|
|
69
|
-
ContainerSearchResult as ContainerSearchResult,
|
|
70
|
-
)
|
|
71
67
|
from stackit.resourcemanager.models.create_folder_payload import (
|
|
72
68
|
CreateFolderPayload as CreateFolderPayload,
|
|
73
69
|
)
|
|
@@ -75,7 +75,7 @@ class DefaultApi:
|
|
|
75
75
|
) -> FolderResponse:
|
|
76
76
|
"""Create Folder
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
Creates a new folder within a parent organization or folder. Authorization & Permissions: - Evaluated on Target Parent Container: resource-manager.folder.create (required permission on the target parent organization or folder to create a folder).
|
|
79
79
|
|
|
80
80
|
:param create_folder_payload:
|
|
81
81
|
:type create_folder_payload: CreateFolderPayload
|
|
@@ -138,7 +138,7 @@ class DefaultApi:
|
|
|
138
138
|
) -> ApiResponse[FolderResponse]:
|
|
139
139
|
"""Create Folder
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
Creates a new folder within a parent organization or folder. Authorization & Permissions: - Evaluated on Target Parent Container: resource-manager.folder.create (required permission on the target parent organization or folder to create a folder).
|
|
142
142
|
|
|
143
143
|
:param create_folder_payload:
|
|
144
144
|
:type create_folder_payload: CreateFolderPayload
|
|
@@ -201,7 +201,7 @@ class DefaultApi:
|
|
|
201
201
|
) -> RESTResponseType:
|
|
202
202
|
"""Create Folder
|
|
203
203
|
|
|
204
|
-
|
|
204
|
+
Creates a new folder within a parent organization or folder. Authorization & Permissions: - Evaluated on Target Parent Container: resource-manager.folder.create (required permission on the target parent organization or folder to create a folder).
|
|
205
205
|
|
|
206
206
|
:param create_folder_payload:
|
|
207
207
|
:type create_folder_payload: CreateFolderPayload
|
|
@@ -318,7 +318,7 @@ class DefaultApi:
|
|
|
318
318
|
) -> Project:
|
|
319
319
|
"""Create Project
|
|
320
320
|
|
|
321
|
-
|
|
321
|
+
Creates a new project within a parent container. - Creation request returns synchronously, while underlying resource provisioning runs asynchronously. - Initial lifecycle state is CREATING until provisioning completes. Authorization & Permissions: - Evaluated on Target Parent Container: resource-manager.project.create (required permission on the target parent organization or folder to create a project).
|
|
322
322
|
|
|
323
323
|
:param create_project_payload:
|
|
324
324
|
:type create_project_payload: CreateProjectPayload
|
|
@@ -381,7 +381,7 @@ class DefaultApi:
|
|
|
381
381
|
) -> ApiResponse[Project]:
|
|
382
382
|
"""Create Project
|
|
383
383
|
|
|
384
|
-
|
|
384
|
+
Creates a new project within a parent container. - Creation request returns synchronously, while underlying resource provisioning runs asynchronously. - Initial lifecycle state is CREATING until provisioning completes. Authorization & Permissions: - Evaluated on Target Parent Container: resource-manager.project.create (required permission on the target parent organization or folder to create a project).
|
|
385
385
|
|
|
386
386
|
:param create_project_payload:
|
|
387
387
|
:type create_project_payload: CreateProjectPayload
|
|
@@ -444,7 +444,7 @@ class DefaultApi:
|
|
|
444
444
|
) -> RESTResponseType:
|
|
445
445
|
"""Create Project
|
|
446
446
|
|
|
447
|
-
|
|
447
|
+
Creates a new project within a parent container. - Creation request returns synchronously, while underlying resource provisioning runs asynchronously. - Initial lifecycle state is CREATING until provisioning completes. Authorization & Permissions: - Evaluated on Target Parent Container: resource-manager.project.create (required permission on the target parent organization or folder to create a project).
|
|
448
448
|
|
|
449
449
|
:param create_project_payload:
|
|
450
450
|
:type create_project_payload: CreateProjectPayload
|
|
@@ -569,7 +569,7 @@ class DefaultApi:
|
|
|
569
569
|
) -> None:
|
|
570
570
|
"""Delete Folder
|
|
571
571
|
|
|
572
|
-
Delete a folder and its metadata. - Folder must not
|
|
572
|
+
Delete a folder and its metadata. - Folder must not contain active child containers unless force deletion is enabled without attached projects. Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.delete (required permission on the target folder to delete it).
|
|
573
573
|
|
|
574
574
|
:param container_id: Folder identifier - containerId as well as UUID identifier is supported. (required)
|
|
575
575
|
:type container_id: str
|
|
@@ -642,7 +642,7 @@ class DefaultApi:
|
|
|
642
642
|
) -> ApiResponse[None]:
|
|
643
643
|
"""Delete Folder
|
|
644
644
|
|
|
645
|
-
Delete a folder and its metadata. - Folder must not
|
|
645
|
+
Delete a folder and its metadata. - Folder must not contain active child containers unless force deletion is enabled without attached projects. Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.delete (required permission on the target folder to delete it).
|
|
646
646
|
|
|
647
647
|
:param container_id: Folder identifier - containerId as well as UUID identifier is supported. (required)
|
|
648
648
|
:type container_id: str
|
|
@@ -715,7 +715,7 @@ class DefaultApi:
|
|
|
715
715
|
) -> RESTResponseType:
|
|
716
716
|
"""Delete Folder
|
|
717
717
|
|
|
718
|
-
Delete a folder and its metadata. - Folder must not
|
|
718
|
+
Delete a folder and its metadata. - Folder must not contain active child containers unless force deletion is enabled without attached projects. Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.delete (required permission on the target folder to delete it).
|
|
719
719
|
|
|
720
720
|
:param container_id: Folder identifier - containerId as well as UUID identifier is supported. (required)
|
|
721
721
|
:type container_id: str
|
|
@@ -834,7 +834,7 @@ class DefaultApi:
|
|
|
834
834
|
) -> None:
|
|
835
835
|
"""Delete Folder Labels
|
|
836
836
|
|
|
837
|
-
Deletes
|
|
837
|
+
Deletes folder labels by specified keys, or removes all labels if no key is provided. Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.edit (required permission on the target folder to delete its labels).
|
|
838
838
|
|
|
839
839
|
:param container_id: Folder identifier - containerId as well as UUID identifier is supported. (required)
|
|
840
840
|
:type container_id: str
|
|
@@ -901,7 +901,7 @@ class DefaultApi:
|
|
|
901
901
|
) -> ApiResponse[None]:
|
|
902
902
|
"""Delete Folder Labels
|
|
903
903
|
|
|
904
|
-
Deletes
|
|
904
|
+
Deletes folder labels by specified keys, or removes all labels if no key is provided. Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.edit (required permission on the target folder to delete its labels).
|
|
905
905
|
|
|
906
906
|
:param container_id: Folder identifier - containerId as well as UUID identifier is supported. (required)
|
|
907
907
|
:type container_id: str
|
|
@@ -968,7 +968,7 @@ class DefaultApi:
|
|
|
968
968
|
) -> RESTResponseType:
|
|
969
969
|
"""Delete Folder Labels
|
|
970
970
|
|
|
971
|
-
Deletes
|
|
971
|
+
Deletes folder labels by specified keys, or removes all labels if no key is provided. Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.edit (required permission on the target folder to delete its labels).
|
|
972
972
|
|
|
973
973
|
:param container_id: Folder identifier - containerId as well as UUID identifier is supported. (required)
|
|
974
974
|
:type container_id: str
|
|
@@ -1089,7 +1089,7 @@ class DefaultApi:
|
|
|
1089
1089
|
) -> None:
|
|
1090
1090
|
"""Delete Organization Labels
|
|
1091
1091
|
|
|
1092
|
-
Deletes
|
|
1092
|
+
Deletes organization labels by specified keys, or removes all labels if no key is provided. Authorization & Permissions: - Evaluated on Target Organization: resource-manager.organization.edit (required permission on the organization to delete labels).
|
|
1093
1093
|
|
|
1094
1094
|
:param container_id: Organization identifier - containerId as well as UUID identifier is supported. (required)
|
|
1095
1095
|
:type container_id: str
|
|
@@ -1157,7 +1157,7 @@ class DefaultApi:
|
|
|
1157
1157
|
) -> ApiResponse[None]:
|
|
1158
1158
|
"""Delete Organization Labels
|
|
1159
1159
|
|
|
1160
|
-
Deletes
|
|
1160
|
+
Deletes organization labels by specified keys, or removes all labels if no key is provided. Authorization & Permissions: - Evaluated on Target Organization: resource-manager.organization.edit (required permission on the organization to delete labels).
|
|
1161
1161
|
|
|
1162
1162
|
:param container_id: Organization identifier - containerId as well as UUID identifier is supported. (required)
|
|
1163
1163
|
:type container_id: str
|
|
@@ -1225,7 +1225,7 @@ class DefaultApi:
|
|
|
1225
1225
|
) -> RESTResponseType:
|
|
1226
1226
|
"""Delete Organization Labels
|
|
1227
1227
|
|
|
1228
|
-
Deletes
|
|
1228
|
+
Deletes organization labels by specified keys, or removes all labels if no key is provided. Authorization & Permissions: - Evaluated on Target Organization: resource-manager.organization.edit (required permission on the organization to delete labels).
|
|
1229
1229
|
|
|
1230
1230
|
:param container_id: Organization identifier - containerId as well as UUID identifier is supported. (required)
|
|
1231
1231
|
:type container_id: str
|
|
@@ -1344,7 +1344,7 @@ class DefaultApi:
|
|
|
1344
1344
|
) -> None:
|
|
1345
1345
|
"""Delete Project
|
|
1346
1346
|
|
|
1347
|
-
Triggers the deletion of a project.
|
|
1347
|
+
Triggers the deletion of a project. - Request returns synchronously, while deletion process runs asynchronously. - Initial lifecycle state is DELETING until workflow completes. Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.delete (required permission on the project to delete it).
|
|
1348
1348
|
|
|
1349
1349
|
:param id: Project identifier - containerId as well as UUID identifier is supported. (required)
|
|
1350
1350
|
:type id: str
|
|
@@ -1403,7 +1403,7 @@ class DefaultApi:
|
|
|
1403
1403
|
) -> ApiResponse[None]:
|
|
1404
1404
|
"""Delete Project
|
|
1405
1405
|
|
|
1406
|
-
Triggers the deletion of a project.
|
|
1406
|
+
Triggers the deletion of a project. - Request returns synchronously, while deletion process runs asynchronously. - Initial lifecycle state is DELETING until workflow completes. Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.delete (required permission on the project to delete it).
|
|
1407
1407
|
|
|
1408
1408
|
:param id: Project identifier - containerId as well as UUID identifier is supported. (required)
|
|
1409
1409
|
:type id: str
|
|
@@ -1462,7 +1462,7 @@ class DefaultApi:
|
|
|
1462
1462
|
) -> RESTResponseType:
|
|
1463
1463
|
"""Delete Project
|
|
1464
1464
|
|
|
1465
|
-
Triggers the deletion of a project.
|
|
1465
|
+
Triggers the deletion of a project. - Request returns synchronously, while deletion process runs asynchronously. - Initial lifecycle state is DELETING until workflow completes. Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.delete (required permission on the project to delete it).
|
|
1466
1466
|
|
|
1467
1467
|
:param id: Project identifier - containerId as well as UUID identifier is supported. (required)
|
|
1468
1468
|
:type id: str
|
|
@@ -1568,7 +1568,7 @@ class DefaultApi:
|
|
|
1568
1568
|
) -> None:
|
|
1569
1569
|
"""Delete Project Labels
|
|
1570
1570
|
|
|
1571
|
-
Deletes
|
|
1571
|
+
Deletes project labels by specified keys, or removes all labels if no key is provided. Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.edit (required permission on the project to delete its labels).
|
|
1572
1572
|
|
|
1573
1573
|
:param container_id: Project identifier - containerId as well as UUID identifier is supported. (required)
|
|
1574
1574
|
:type container_id: str
|
|
@@ -1635,7 +1635,7 @@ class DefaultApi:
|
|
|
1635
1635
|
) -> ApiResponse[None]:
|
|
1636
1636
|
"""Delete Project Labels
|
|
1637
1637
|
|
|
1638
|
-
Deletes
|
|
1638
|
+
Deletes project labels by specified keys, or removes all labels if no key is provided. Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.edit (required permission on the project to delete its labels).
|
|
1639
1639
|
|
|
1640
1640
|
:param container_id: Project identifier - containerId as well as UUID identifier is supported. (required)
|
|
1641
1641
|
:type container_id: str
|
|
@@ -1702,7 +1702,7 @@ class DefaultApi:
|
|
|
1702
1702
|
) -> RESTResponseType:
|
|
1703
1703
|
"""Delete Project Labels
|
|
1704
1704
|
|
|
1705
|
-
Deletes
|
|
1705
|
+
Deletes project labels by specified keys, or removes all labels if no key is provided. Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.edit (required permission on the project to delete its labels).
|
|
1706
1706
|
|
|
1707
1707
|
:param container_id: Project identifier - containerId as well as UUID identifier is supported. (required)
|
|
1708
1708
|
:type container_id: str
|
|
@@ -1822,7 +1822,7 @@ class DefaultApi:
|
|
|
1822
1822
|
) -> GetFolderDetailsResponse:
|
|
1823
1823
|
"""Get Folder Details
|
|
1824
1824
|
|
|
1825
|
-
Returns
|
|
1825
|
+
Returns metadata for a specific folder. Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.get (required primary permission to retrieve folder details). - Evaluated on Parent Containers: resource-manager.organization.get and resource-manager.folder.get implicitly to resolve parent hierarchy details.
|
|
1826
1826
|
|
|
1827
1827
|
:param container_id: Folder identifier - containerId as well as UUID identifier is supported. (required)
|
|
1828
1828
|
:type container_id: str
|
|
@@ -1890,7 +1890,7 @@ class DefaultApi:
|
|
|
1890
1890
|
) -> ApiResponse[GetFolderDetailsResponse]:
|
|
1891
1891
|
"""Get Folder Details
|
|
1892
1892
|
|
|
1893
|
-
Returns
|
|
1893
|
+
Returns metadata for a specific folder. Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.get (required primary permission to retrieve folder details). - Evaluated on Parent Containers: resource-manager.organization.get and resource-manager.folder.get implicitly to resolve parent hierarchy details.
|
|
1894
1894
|
|
|
1895
1895
|
:param container_id: Folder identifier - containerId as well as UUID identifier is supported. (required)
|
|
1896
1896
|
:type container_id: str
|
|
@@ -1958,7 +1958,7 @@ class DefaultApi:
|
|
|
1958
1958
|
) -> RESTResponseType:
|
|
1959
1959
|
"""Get Folder Details
|
|
1960
1960
|
|
|
1961
|
-
Returns
|
|
1961
|
+
Returns metadata for a specific folder. Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.get (required primary permission to retrieve folder details). - Evaluated on Parent Containers: resource-manager.organization.get and resource-manager.folder.get implicitly to resolve parent hierarchy details.
|
|
1962
1962
|
|
|
1963
1963
|
:param container_id: Folder identifier - containerId as well as UUID identifier is supported. (required)
|
|
1964
1964
|
:type container_id: str
|
|
@@ -2077,7 +2077,7 @@ class DefaultApi:
|
|
|
2077
2077
|
) -> OrganizationResponse:
|
|
2078
2078
|
"""Get Organization Details
|
|
2079
2079
|
|
|
2080
|
-
Returns the organization
|
|
2080
|
+
Returns metadata for a specific organization. Authorization & Permissions: - Evaluated on Target Organization: resource-manager.organization.get (required permission on the organization to view its details).
|
|
2081
2081
|
|
|
2082
2082
|
:param id: Organization identifier - containerId as well as UUID identifier is supported. (required)
|
|
2083
2083
|
:type id: str
|
|
@@ -2137,7 +2137,7 @@ class DefaultApi:
|
|
|
2137
2137
|
) -> ApiResponse[OrganizationResponse]:
|
|
2138
2138
|
"""Get Organization Details
|
|
2139
2139
|
|
|
2140
|
-
Returns the organization
|
|
2140
|
+
Returns metadata for a specific organization. Authorization & Permissions: - Evaluated on Target Organization: resource-manager.organization.get (required permission on the organization to view its details).
|
|
2141
2141
|
|
|
2142
2142
|
:param id: Organization identifier - containerId as well as UUID identifier is supported. (required)
|
|
2143
2143
|
:type id: str
|
|
@@ -2197,7 +2197,7 @@ class DefaultApi:
|
|
|
2197
2197
|
) -> RESTResponseType:
|
|
2198
2198
|
"""Get Organization Details
|
|
2199
2199
|
|
|
2200
|
-
Returns the organization
|
|
2200
|
+
Returns metadata for a specific organization. Authorization & Permissions: - Evaluated on Target Organization: resource-manager.organization.get (required permission on the organization to view its details).
|
|
2201
2201
|
|
|
2202
2202
|
:param id: Organization identifier - containerId as well as UUID identifier is supported. (required)
|
|
2203
2203
|
:type id: str
|
|
@@ -2303,7 +2303,7 @@ class DefaultApi:
|
|
|
2303
2303
|
) -> GetProjectResponse:
|
|
2304
2304
|
"""Get Project Details
|
|
2305
2305
|
|
|
2306
|
-
Returns the project and its metadata.
|
|
2306
|
+
Returns the project and its metadata. Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.get (required primary permission to view project details). - Evaluated on Parent Containers: resource-manager.organization.get and resource-manager.folder.get on parent organizations/folders implicitly to resolve and include parent metadata in the response hierarchy.
|
|
2307
2307
|
|
|
2308
2308
|
:param id: Project identifier - containerId as well as UUID identifier is supported. (required)
|
|
2309
2309
|
:type id: str
|
|
@@ -2371,7 +2371,7 @@ class DefaultApi:
|
|
|
2371
2371
|
) -> ApiResponse[GetProjectResponse]:
|
|
2372
2372
|
"""Get Project Details
|
|
2373
2373
|
|
|
2374
|
-
Returns the project and its metadata.
|
|
2374
|
+
Returns the project and its metadata. Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.get (required primary permission to view project details). - Evaluated on Parent Containers: resource-manager.organization.get and resource-manager.folder.get on parent organizations/folders implicitly to resolve and include parent metadata in the response hierarchy.
|
|
2375
2375
|
|
|
2376
2376
|
:param id: Project identifier - containerId as well as UUID identifier is supported. (required)
|
|
2377
2377
|
:type id: str
|
|
@@ -2439,7 +2439,7 @@ class DefaultApi:
|
|
|
2439
2439
|
) -> RESTResponseType:
|
|
2440
2440
|
"""Get Project Details
|
|
2441
2441
|
|
|
2442
|
-
Returns the project and its metadata.
|
|
2442
|
+
Returns the project and its metadata. Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.get (required primary permission to view project details). - Evaluated on Parent Containers: resource-manager.organization.get and resource-manager.folder.get on parent organizations/folders implicitly to resolve and include parent metadata in the response hierarchy.
|
|
2443
2443
|
|
|
2444
2444
|
:param id: Project identifier - containerId as well as UUID identifier is supported. (required)
|
|
2445
2445
|
:type id: str
|
|
@@ -2590,7 +2590,7 @@ class DefaultApi:
|
|
|
2590
2590
|
) -> ListFoldersResponse:
|
|
2591
2591
|
"""Get All Folders
|
|
2592
2592
|
|
|
2593
|
-
Returns all folders and their metadata that: - Are children of the specific containerParentId - Match the given containerIds - User is member of <br /> 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
|
|
2593
|
+
Returns all folders and their metadata that: - Are children of the specific containerParentId - Match the given containerIds - User is member of <br /> Filter: - Either containerParentId OR containerIds OR member must be passed - If containerId and containerParentId are given, both are used for filtering - containers must point to the same parent - If member and containerParentId are given, both are used for filtering - If member is given, containers must not point to the same container parent Authorization & Permissions: - When filtering by member: resource-manager.folder.direct.get is evaluated on target folders for the member; if caller differs from target member, system-level resource-manager.folder.get is required. - When filtering by containerParentId: resource-manager.folder.list is evaluated on the parent container. - When filtering by containerIds: resource-manager.folder.get is evaluated on the parent container of requested folders.
|
|
2594
2594
|
|
|
2595
2595
|
:param container_parent_id: Identifier of the parent resource container - containerId as well as UUID identifier is supported.
|
|
2596
2596
|
:type container_parent_id: str
|
|
@@ -2703,7 +2703,7 @@ class DefaultApi:
|
|
|
2703
2703
|
) -> ApiResponse[ListFoldersResponse]:
|
|
2704
2704
|
"""Get All Folders
|
|
2705
2705
|
|
|
2706
|
-
Returns all folders and their metadata that: - Are children of the specific containerParentId - Match the given containerIds - User is member of <br /> 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
|
|
2706
|
+
Returns all folders and their metadata that: - Are children of the specific containerParentId - Match the given containerIds - User is member of <br /> Filter: - Either containerParentId OR containerIds OR member must be passed - If containerId and containerParentId are given, both are used for filtering - containers must point to the same parent - If member and containerParentId are given, both are used for filtering - If member is given, containers must not point to the same container parent Authorization & Permissions: - When filtering by member: resource-manager.folder.direct.get is evaluated on target folders for the member; if caller differs from target member, system-level resource-manager.folder.get is required. - When filtering by containerParentId: resource-manager.folder.list is evaluated on the parent container. - When filtering by containerIds: resource-manager.folder.get is evaluated on the parent container of requested folders.
|
|
2707
2707
|
|
|
2708
2708
|
:param container_parent_id: Identifier of the parent resource container - containerId as well as UUID identifier is supported.
|
|
2709
2709
|
:type container_parent_id: str
|
|
@@ -2816,7 +2816,7 @@ class DefaultApi:
|
|
|
2816
2816
|
) -> RESTResponseType:
|
|
2817
2817
|
"""Get All Folders
|
|
2818
2818
|
|
|
2819
|
-
Returns all folders and their metadata that: - Are children of the specific containerParentId - Match the given containerIds - User is member of <br /> 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
|
|
2819
|
+
Returns all folders and their metadata that: - Are children of the specific containerParentId - Match the given containerIds - User is member of <br /> Filter: - Either containerParentId OR containerIds OR member must be passed - If containerId and containerParentId are given, both are used for filtering - containers must point to the same parent - If member and containerParentId are given, both are used for filtering - If member is given, containers must not point to the same container parent Authorization & Permissions: - When filtering by member: resource-manager.folder.direct.get is evaluated on target folders for the member; if caller differs from target member, system-level resource-manager.folder.get is required. - When filtering by containerParentId: resource-manager.folder.list is evaluated on the parent container. - When filtering by containerIds: resource-manager.folder.get is evaluated on the parent container of requested folders.
|
|
2820
2820
|
|
|
2821
2821
|
:param container_parent_id: Identifier of the parent resource container - containerId as well as UUID identifier is supported.
|
|
2822
2822
|
:type container_parent_id: str
|
|
@@ -3002,9 +3002,9 @@ class DefaultApi:
|
|
|
3002
3002
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3003
3003
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3004
3004
|
) -> ListOrganizationsResponse:
|
|
3005
|
-
"""Get
|
|
3005
|
+
"""Get all organizations of member
|
|
3006
3006
|
|
|
3007
|
-
Returns all organizations and their metadata. -
|
|
3007
|
+
Returns all organizations and their metadata accessible to the caller. - Filterable by containerIds or member. Authorization & Permissions: - Evaluated on Target Organizations: resource-manager.organization.list and/or (depending if containerIDs was used in the request) resource-manager.organization.get to filter and list accessible organizations.
|
|
3008
3008
|
|
|
3009
3009
|
:param container_ids: Organization identifiers - containerId as well as UUID identifier is supported. A combination of both is not allowed.
|
|
3010
3010
|
:type container_ids: List[str]
|
|
@@ -3107,9 +3107,9 @@ class DefaultApi:
|
|
|
3107
3107
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3108
3108
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3109
3109
|
) -> ApiResponse[ListOrganizationsResponse]:
|
|
3110
|
-
"""Get
|
|
3110
|
+
"""Get all organizations of member
|
|
3111
3111
|
|
|
3112
|
-
Returns all organizations and their metadata. -
|
|
3112
|
+
Returns all organizations and their metadata accessible to the caller. - Filterable by containerIds or member. Authorization & Permissions: - Evaluated on Target Organizations: resource-manager.organization.list and/or (depending if containerIDs was used in the request) resource-manager.organization.get to filter and list accessible organizations.
|
|
3113
3113
|
|
|
3114
3114
|
:param container_ids: Organization identifiers - containerId as well as UUID identifier is supported. A combination of both is not allowed.
|
|
3115
3115
|
:type container_ids: List[str]
|
|
@@ -3212,9 +3212,9 @@ class DefaultApi:
|
|
|
3212
3212
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3213
3213
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3214
3214
|
) -> RESTResponseType:
|
|
3215
|
-
"""Get
|
|
3215
|
+
"""Get all organizations of member
|
|
3216
3216
|
|
|
3217
|
-
Returns all organizations and their metadata. -
|
|
3217
|
+
Returns all organizations and their metadata accessible to the caller. - Filterable by containerIds or member. Authorization & Permissions: - Evaluated on Target Organizations: resource-manager.organization.list and/or (depending if containerIDs was used in the request) resource-manager.organization.get to filter and list accessible organizations.
|
|
3218
3218
|
|
|
3219
3219
|
:param container_ids: Organization identifiers - containerId as well as UUID identifier is supported. A combination of both is not allowed.
|
|
3220
3220
|
:type container_ids: List[str]
|
|
@@ -3395,9 +3395,9 @@ class DefaultApi:
|
|
|
3395
3395
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3396
3396
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3397
3397
|
) -> ListProjectsResponse:
|
|
3398
|
-
"""Get All Projects
|
|
3398
|
+
"""Get All Projects of a member.
|
|
3399
3399
|
|
|
3400
|
-
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
|
|
3400
|
+
Returns all projects and their metadata that: - Are children of the specific containerParentId - Match the given containerIds - User is member of Filter: - Either containerParentId OR containerIds OR member must be passed - If containerId and containerParentId are given, both are used for filtering - containers must point to the same parent - If member and containerParentId are given, both are used for filtering - If member is given, containers must not point to the same container parent Authorization & Permissions: - Evaluated on Target Projects: resource-manager.project.get, resource-manager.project.list, or resource-manager.project.direct.get to filter and return accessible projects.
|
|
3401
3401
|
|
|
3402
3402
|
:param container_parent_id: Identifier of the parent resource container - containerId as well as UUID identifier is supported.
|
|
3403
3403
|
:type container_parent_id: str
|
|
@@ -3507,9 +3507,9 @@ class DefaultApi:
|
|
|
3507
3507
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3508
3508
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3509
3509
|
) -> ApiResponse[ListProjectsResponse]:
|
|
3510
|
-
"""Get All Projects
|
|
3510
|
+
"""Get All Projects of a member.
|
|
3511
3511
|
|
|
3512
|
-
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
|
|
3512
|
+
Returns all projects and their metadata that: - Are children of the specific containerParentId - Match the given containerIds - User is member of Filter: - Either containerParentId OR containerIds OR member must be passed - If containerId and containerParentId are given, both are used for filtering - containers must point to the same parent - If member and containerParentId are given, both are used for filtering - If member is given, containers must not point to the same container parent Authorization & Permissions: - Evaluated on Target Projects: resource-manager.project.get, resource-manager.project.list, or resource-manager.project.direct.get to filter and return accessible projects.
|
|
3513
3513
|
|
|
3514
3514
|
:param container_parent_id: Identifier of the parent resource container - containerId as well as UUID identifier is supported.
|
|
3515
3515
|
:type container_parent_id: str
|
|
@@ -3619,9 +3619,9 @@ class DefaultApi:
|
|
|
3619
3619
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3620
3620
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3621
3621
|
) -> RESTResponseType:
|
|
3622
|
-
"""Get All Projects
|
|
3622
|
+
"""Get All Projects of a member.
|
|
3623
3623
|
|
|
3624
|
-
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
|
|
3624
|
+
Returns all projects and their metadata that: - Are children of the specific containerParentId - Match the given containerIds - User is member of Filter: - Either containerParentId OR containerIds OR member must be passed - If containerId and containerParentId are given, both are used for filtering - containers must point to the same parent - If member and containerParentId are given, both are used for filtering - If member is given, containers must not point to the same container parent Authorization & Permissions: - Evaluated on Target Projects: resource-manager.project.get, resource-manager.project.list, or resource-manager.project.direct.get to filter and return accessible projects.
|
|
3625
3625
|
|
|
3626
3626
|
:param container_parent_id: Identifier of the parent resource container - containerId as well as UUID identifier is supported.
|
|
3627
3627
|
:type container_parent_id: str
|
|
@@ -3780,7 +3780,7 @@ class DefaultApi:
|
|
|
3780
3780
|
) -> FolderResponse:
|
|
3781
3781
|
"""Update Folder
|
|
3782
3782
|
|
|
3783
|
-
Update the folder and its metadata. -
|
|
3783
|
+
Update the folder and its metadata (name, labels, parent container). Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.edit (required permission on the target folder to modify its details, labels, or parent).
|
|
3784
3784
|
|
|
3785
3785
|
:param container_id: Folder identifier - containerId as well as UUID identifier is supported. (required)
|
|
3786
3786
|
:type container_id: str
|
|
@@ -3849,7 +3849,7 @@ class DefaultApi:
|
|
|
3849
3849
|
) -> ApiResponse[FolderResponse]:
|
|
3850
3850
|
"""Update Folder
|
|
3851
3851
|
|
|
3852
|
-
Update the folder and its metadata. -
|
|
3852
|
+
Update the folder and its metadata (name, labels, parent container). Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.edit (required permission on the target folder to modify its details, labels, or parent).
|
|
3853
3853
|
|
|
3854
3854
|
:param container_id: Folder identifier - containerId as well as UUID identifier is supported. (required)
|
|
3855
3855
|
:type container_id: str
|
|
@@ -3918,7 +3918,7 @@ class DefaultApi:
|
|
|
3918
3918
|
) -> RESTResponseType:
|
|
3919
3919
|
"""Update Folder
|
|
3920
3920
|
|
|
3921
|
-
Update the folder and its metadata. -
|
|
3921
|
+
Update the folder and its metadata (name, labels, parent container). Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.edit (required permission on the target folder to modify its details, labels, or parent).
|
|
3922
3922
|
|
|
3923
3923
|
:param container_id: Folder identifier - containerId as well as UUID identifier is supported. (required)
|
|
3924
3924
|
:type container_id: str
|
|
@@ -4045,7 +4045,7 @@ class DefaultApi:
|
|
|
4045
4045
|
) -> OrganizationResponse:
|
|
4046
4046
|
"""Update Organization
|
|
4047
4047
|
|
|
4048
|
-
|
|
4048
|
+
Updates organization metadata (name, labels). Authorization & Permissions: - Evaluated on Target Organization: resource-manager.organization.edit (required permission on the organization to update metadata and labels).
|
|
4049
4049
|
|
|
4050
4050
|
:param id: Organization identifier - containerId as well as UUID identifier is supported. (required)
|
|
4051
4051
|
:type id: str
|
|
@@ -4114,7 +4114,7 @@ class DefaultApi:
|
|
|
4114
4114
|
) -> ApiResponse[OrganizationResponse]:
|
|
4115
4115
|
"""Update Organization
|
|
4116
4116
|
|
|
4117
|
-
|
|
4117
|
+
Updates organization metadata (name, labels). Authorization & Permissions: - Evaluated on Target Organization: resource-manager.organization.edit (required permission on the organization to update metadata and labels).
|
|
4118
4118
|
|
|
4119
4119
|
:param id: Organization identifier - containerId as well as UUID identifier is supported. (required)
|
|
4120
4120
|
:type id: str
|
|
@@ -4183,7 +4183,7 @@ class DefaultApi:
|
|
|
4183
4183
|
) -> RESTResponseType:
|
|
4184
4184
|
"""Update Organization
|
|
4185
4185
|
|
|
4186
|
-
|
|
4186
|
+
Updates organization metadata (name, labels). Authorization & Permissions: - Evaluated on Target Organization: resource-manager.organization.edit (required permission on the organization to update metadata and labels).
|
|
4187
4187
|
|
|
4188
4188
|
:param id: Organization identifier - containerId as well as UUID identifier is supported. (required)
|
|
4189
4189
|
:type id: str
|
|
@@ -4308,7 +4308,7 @@ class DefaultApi:
|
|
|
4308
4308
|
) -> Project:
|
|
4309
4309
|
"""Update Project
|
|
4310
4310
|
|
|
4311
|
-
|
|
4311
|
+
Updates project metadata (name, labels, or parent hierarchy). Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.edit (required permission on the project to modify its details, labels, or parent).
|
|
4312
4312
|
|
|
4313
4313
|
:param id: Project identifier - containerId as well as UUID identifier is supported. (required)
|
|
4314
4314
|
:type id: str
|
|
@@ -4377,7 +4377,7 @@ class DefaultApi:
|
|
|
4377
4377
|
) -> ApiResponse[Project]:
|
|
4378
4378
|
"""Update Project
|
|
4379
4379
|
|
|
4380
|
-
|
|
4380
|
+
Updates project metadata (name, labels, or parent hierarchy). Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.edit (required permission on the project to modify its details, labels, or parent).
|
|
4381
4381
|
|
|
4382
4382
|
:param id: Project identifier - containerId as well as UUID identifier is supported. (required)
|
|
4383
4383
|
:type id: str
|
|
@@ -4446,7 +4446,7 @@ class DefaultApi:
|
|
|
4446
4446
|
) -> RESTResponseType:
|
|
4447
4447
|
"""Update Project
|
|
4448
4448
|
|
|
4449
|
-
|
|
4449
|
+
Updates project metadata (name, labels, or parent hierarchy). Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.edit (required permission on the project to modify its details, labels, or parent).
|
|
4450
4450
|
|
|
4451
4451
|
:param id: Project identifier - containerId as well as UUID identifier is supported. (required)
|
|
4452
4452
|
:type id: str
|
|
@@ -13,7 +13,6 @@ Do not edit the class manually.
|
|
|
13
13
|
""" # noqa: E501
|
|
14
14
|
|
|
15
15
|
# import models into model package
|
|
16
|
-
from stackit.resourcemanager.models.container_search_result import ContainerSearchResult
|
|
17
16
|
from stackit.resourcemanager.models.create_folder_payload import CreateFolderPayload
|
|
18
17
|
from stackit.resourcemanager.models.create_project_payload import CreateProjectPayload
|
|
19
18
|
from stackit.resourcemanager.models.error_response import ErrorResponse
|
|
@@ -33,9 +33,9 @@ class PartialUpdateFolderPayload(BaseModel):
|
|
|
33
33
|
description="New parent identifier for the resource container - containerId as well as UUID identifier is supported.",
|
|
34
34
|
alias="containerParentId",
|
|
35
35
|
)
|
|
36
|
-
labels: Optional[Dict[str, StrictStr]] = Field(
|
|
36
|
+
labels: Optional[Dict[str, Optional[StrictStr]]] = Field(
|
|
37
37
|
default=None,
|
|
38
|
-
description="Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.*",
|
|
38
|
+
description="Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. Setting an individual label's value to `null` removes/deletes that label from the resource. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`, or be `null` to delete the label > Note: Additional naming restrictions may apply depending on your specific organization.*",
|
|
39
39
|
)
|
|
40
40
|
name: Optional[Annotated[str, Field(strict=True)]] = Field(
|
|
41
41
|
default=None,
|
|
@@ -28,9 +28,9 @@ class PartialUpdateOrganizationPayload(BaseModel):
|
|
|
28
28
|
PartialUpdateOrganizationPayload
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
|
|
31
|
-
labels: Optional[Dict[str, StrictStr]] = Field(
|
|
31
|
+
labels: Optional[Dict[str, Optional[StrictStr]]] = Field(
|
|
32
32
|
default=None,
|
|
33
|
-
description="Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.*",
|
|
33
|
+
description="Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. Setting an individual label's value to `null` removes/deletes that label from the resource. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`, or be `null` to delete the label > Note: Additional naming restrictions may apply depending on your specific organization.*",
|
|
34
34
|
)
|
|
35
35
|
name: Optional[Annotated[str, Field(strict=True)]] = Field(
|
|
36
36
|
default=None,
|
|
@@ -33,9 +33,9 @@ class PartialUpdateProjectPayload(BaseModel):
|
|
|
33
33
|
description="New parent identifier for the resource container - containerId as well as UUID identifier is supported.",
|
|
34
34
|
alias="containerParentId",
|
|
35
35
|
)
|
|
36
|
-
labels: Optional[Dict[str, StrictStr]] = Field(
|
|
36
|
+
labels: Optional[Dict[str, Optional[StrictStr]]] = Field(
|
|
37
37
|
default=None,
|
|
38
|
-
description="Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.*",
|
|
38
|
+
description="Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. Setting an individual label's value to `null` removes/deletes that label from the resource. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`, or be `null` to delete the label > Note: Additional naming restrictions may apply depending on your specific organization.*",
|
|
39
39
|
)
|
|
40
40
|
name: Optional[Annotated[str, Field(strict=True)]] = Field(
|
|
41
41
|
default=None,
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
STACKIT Resource Manager API
|
|
5
|
-
|
|
6
|
-
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
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 2.0
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
from __future__ import annotations
|
|
15
|
-
|
|
16
|
-
import json
|
|
17
|
-
import pprint
|
|
18
|
-
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
|
-
from uuid import UUID
|
|
20
|
-
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
22
|
-
from pydantic_core import to_jsonable_python
|
|
23
|
-
from typing_extensions import Self
|
|
24
|
-
|
|
25
|
-
from stackit.resourcemanager.models.lifecycle_state import LifecycleState
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class ContainerSearchResult(BaseModel):
|
|
29
|
-
"""
|
|
30
|
-
ContainerSearchResult
|
|
31
|
-
""" # noqa: E501
|
|
32
|
-
|
|
33
|
-
container_id: StrictStr = Field(description="Globally unique user-friendly identifier.", alias="containerId")
|
|
34
|
-
container_type: StrictStr = Field(description="Resource container type.", alias="containerType")
|
|
35
|
-
id: UUID = Field(description="Globally unique identifier.")
|
|
36
|
-
lifecycle_state: Optional[LifecycleState] = Field(default=None, alias="lifecycleState")
|
|
37
|
-
name: StrictStr = Field(description="Resource container name.")
|
|
38
|
-
organization_id: Optional[UUID] = Field(
|
|
39
|
-
default=None, description="Id of the organization the container is in.", alias="organizationId"
|
|
40
|
-
)
|
|
41
|
-
__properties: ClassVar[List[str]] = [
|
|
42
|
-
"containerId",
|
|
43
|
-
"containerType",
|
|
44
|
-
"id",
|
|
45
|
-
"lifecycleState",
|
|
46
|
-
"name",
|
|
47
|
-
"organizationId",
|
|
48
|
-
]
|
|
49
|
-
|
|
50
|
-
@field_validator("container_type")
|
|
51
|
-
def container_type_validate_enum(cls, value):
|
|
52
|
-
"""Validates the enum"""
|
|
53
|
-
if value not in set(["PROJECT", "FOLDER"]):
|
|
54
|
-
raise ValueError("must be one of enum values ('PROJECT', 'FOLDER')")
|
|
55
|
-
return value
|
|
56
|
-
|
|
57
|
-
model_config = ConfigDict(
|
|
58
|
-
validate_by_name=True,
|
|
59
|
-
validate_by_alias=True,
|
|
60
|
-
validate_assignment=True,
|
|
61
|
-
protected_namespaces=(),
|
|
62
|
-
)
|
|
63
|
-
|
|
64
|
-
def to_str(self) -> str:
|
|
65
|
-
"""Returns the string representation of the model using alias"""
|
|
66
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
67
|
-
|
|
68
|
-
def to_json(self) -> str:
|
|
69
|
-
"""Returns the JSON representation of the model using alias"""
|
|
70
|
-
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
71
|
-
|
|
72
|
-
@classmethod
|
|
73
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
74
|
-
"""Create an instance of ContainerSearchResult from a JSON string"""
|
|
75
|
-
return cls.from_dict(json.loads(json_str))
|
|
76
|
-
|
|
77
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
78
|
-
"""Return the dictionary representation of the model using alias.
|
|
79
|
-
|
|
80
|
-
This has the following differences from calling pydantic's
|
|
81
|
-
`self.model_dump(by_alias=True)`:
|
|
82
|
-
|
|
83
|
-
* `None` is only added to the output dict for nullable fields that
|
|
84
|
-
were set at model initialization. Other fields with value `None`
|
|
85
|
-
are ignored.
|
|
86
|
-
"""
|
|
87
|
-
excluded_fields: Set[str] = set([])
|
|
88
|
-
|
|
89
|
-
_dict = self.model_dump(
|
|
90
|
-
by_alias=True,
|
|
91
|
-
exclude=excluded_fields,
|
|
92
|
-
exclude_none=True,
|
|
93
|
-
)
|
|
94
|
-
return _dict
|
|
95
|
-
|
|
96
|
-
@classmethod
|
|
97
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
98
|
-
"""Create an instance of ContainerSearchResult from a dict"""
|
|
99
|
-
if obj is None:
|
|
100
|
-
return None
|
|
101
|
-
|
|
102
|
-
if not isinstance(obj, dict):
|
|
103
|
-
return cls.model_validate(obj)
|
|
104
|
-
|
|
105
|
-
_obj = cls.model_validate(
|
|
106
|
-
{
|
|
107
|
-
"containerId": obj.get("containerId"),
|
|
108
|
-
"containerType": obj.get("containerType"),
|
|
109
|
-
"id": obj.get("id"),
|
|
110
|
-
"lifecycleState": obj.get("lifecycleState"),
|
|
111
|
-
"name": obj.get("name"),
|
|
112
|
-
"organizationId": obj.get("organizationId"),
|
|
113
|
-
}
|
|
114
|
-
)
|
|
115
|
-
return _obj
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_resourcemanager-0.9.1 → stackit_resourcemanager-0.11.0}/src/stackit/resourcemanager/rest.py
RENAMED
|
File without changes
|