cosmotech-api 3.2.0.post1__py3-none-any.whl → 5.0.0rc3__py3-none-any.whl
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.
- cosmotech_api/__init__.py +180 -130
- cosmotech_api/api/__init__.py +1 -4
- cosmotech_api/api/connector_api.py +31 -27
- cosmotech_api/api/dataset_api.py +1762 -3918
- cosmotech_api/api/meta_api.py +281 -0
- cosmotech_api/api/organization_api.py +654 -1460
- cosmotech_api/api/run_api.py +170 -817
- cosmotech_api/api/runner_api.py +688 -631
- cosmotech_api/api/scenario_api.py +141 -121
- cosmotech_api/api/scenariorun_api.py +76 -66
- cosmotech_api/api/scenariorunresult_api.py +341 -659
- cosmotech_api/api/solution_api.py +2504 -956
- cosmotech_api/api/twingraph_api.py +83 -72
- cosmotech_api/api/validator_api.py +1249 -2501
- cosmotech_api/api/workspace_api.py +835 -1658
- cosmotech_api/api_client.py +79 -33
- cosmotech_api/configuration.py +185 -48
- cosmotech_api/exceptions.py +18 -1
- cosmotech_api/model/component_role_permissions.py +1 -1
- cosmotech_api/model/connector.py +1 -1
- cosmotech_api/model/connector_parameter.py +1 -1
- cosmotech_api/model/connector_parameter_group.py +1 -1
- cosmotech_api/model/container_resource_size_info.py +1 -1
- cosmotech_api/model/container_resource_sizing.py +1 -1
- cosmotech_api/model/dataset.py +1 -1
- cosmotech_api/model/dataset_access_control.py +1 -1
- cosmotech_api/model/dataset_compatibility.py +1 -1
- cosmotech_api/model/dataset_connector.py +1 -1
- cosmotech_api/model/dataset_copy_parameters.py +1 -1
- cosmotech_api/model/dataset_role.py +1 -1
- cosmotech_api/model/dataset_search.py +1 -1
- cosmotech_api/model/dataset_security.py +1 -1
- cosmotech_api/model/dataset_source_type.py +1 -1
- cosmotech_api/model/dataset_twin_graph_hash.py +1 -1
- cosmotech_api/model/dataset_twin_graph_info.py +1 -1
- cosmotech_api/model/dataset_twin_graph_query.py +1 -1
- cosmotech_api/model/delete_historical_data.py +1 -1
- cosmotech_api/model/file_upload_metadata.py +1 -1
- cosmotech_api/model/file_upload_validation.py +1 -1
- cosmotech_api/model/graph_properties.py +1 -1
- cosmotech_api/model/organization.py +1 -1
- cosmotech_api/model/organization_access_control.py +1 -1
- cosmotech_api/model/organization_role.py +1 -1
- cosmotech_api/model/organization_security.py +1 -1
- cosmotech_api/model/organization_service.py +1 -1
- cosmotech_api/model/organization_services.py +1 -1
- cosmotech_api/model/resource_size_info.py +1 -1
- cosmotech_api/model/run.py +1 -1
- cosmotech_api/model/run_container.py +1 -1
- cosmotech_api/model/run_container_artifact.py +1 -1
- cosmotech_api/model/run_container_logs.py +1 -1
- cosmotech_api/model/run_logs.py +1 -1
- cosmotech_api/model/run_resource_requested.py +1 -1
- cosmotech_api/model/run_search.py +1 -1
- cosmotech_api/model/run_start_containers.py +1 -1
- cosmotech_api/model/run_state.py +1 -1
- cosmotech_api/model/run_status.py +1 -1
- cosmotech_api/model/run_status_node.py +1 -1
- cosmotech_api/model/run_template.py +1 -1
- cosmotech_api/model/run_template_handler_id.py +1 -1
- cosmotech_api/model/run_template_orchestrator.py +1 -1
- cosmotech_api/model/run_template_parameter.py +1 -1
- cosmotech_api/model/run_template_parameter_group.py +1 -1
- cosmotech_api/model/run_template_parameter_value.py +1 -1
- cosmotech_api/model/run_template_resource_sizing.py +1 -1
- cosmotech_api/model/run_template_step_source.py +1 -1
- cosmotech_api/model/runner.py +1 -1
- cosmotech_api/model/runner_access_control.py +1 -1
- cosmotech_api/model/runner_changed_parameter_value.py +1 -1
- cosmotech_api/model/runner_comparison_result.py +1 -1
- cosmotech_api/model/runner_data_download_info.py +1 -1
- cosmotech_api/model/runner_data_download_job.py +1 -1
- cosmotech_api/model/runner_job_state.py +1 -1
- cosmotech_api/model/runner_last_run.py +1 -1
- cosmotech_api/model/runner_resource_sizing.py +1 -1
- cosmotech_api/model/runner_role.py +1 -1
- cosmotech_api/model/runner_run_template_parameter_value.py +1 -1
- cosmotech_api/model/runner_security.py +1 -1
- cosmotech_api/model/runner_validation_status.py +1 -1
- cosmotech_api/model/scenario.py +1 -1
- cosmotech_api/model/scenario_access_control.py +1 -1
- cosmotech_api/model/scenario_changed_parameter_value.py +1 -1
- cosmotech_api/model/scenario_comparison_result.py +1 -1
- cosmotech_api/model/scenario_data_download_info.py +1 -1
- cosmotech_api/model/scenario_data_download_job.py +1 -1
- cosmotech_api/model/scenario_job_state.py +1 -1
- cosmotech_api/model/scenario_last_run.py +1 -1
- cosmotech_api/model/scenario_resource_sizing.py +1 -1
- cosmotech_api/model/scenario_role.py +1 -1
- cosmotech_api/model/scenario_run.py +1 -1
- cosmotech_api/model/scenario_run_container.py +1 -1
- cosmotech_api/model/scenario_run_container_artifact.py +1 -1
- cosmotech_api/model/scenario_run_container_logs.py +1 -1
- cosmotech_api/model/scenario_run_logs.py +1 -1
- cosmotech_api/model/scenario_run_resource_requested.py +1 -1
- cosmotech_api/model/scenario_run_result.py +1 -1
- cosmotech_api/model/scenario_run_search.py +1 -1
- cosmotech_api/model/scenario_run_start_containers.py +1 -1
- cosmotech_api/model/scenario_run_state.py +1 -1
- cosmotech_api/model/scenario_run_status.py +1 -1
- cosmotech_api/model/scenario_run_status_node.py +1 -1
- cosmotech_api/model/scenario_run_template_parameter_value.py +1 -1
- cosmotech_api/model/scenario_security.py +1 -1
- cosmotech_api/model/scenario_validation_status.py +1 -1
- cosmotech_api/model/solution.py +1 -1
- cosmotech_api/model/solution_access_control.py +1 -1
- cosmotech_api/model/solution_role.py +1 -1
- cosmotech_api/model/solution_security.py +1 -1
- cosmotech_api/model/source_info.py +1 -1
- cosmotech_api/model/sub_dataset_graph_query.py +1 -1
- cosmotech_api/model/translated_labels.py +1 -1
- cosmotech_api/model/twin_graph_batch_result.py +1 -1
- cosmotech_api/model/twin_graph_hash.py +1 -1
- cosmotech_api/model/twin_graph_query.py +1 -1
- cosmotech_api/model/validator.py +1 -1
- cosmotech_api/model/validator_run.py +1 -1
- cosmotech_api/model/workspace.py +1 -1
- cosmotech_api/model/workspace_access_control.py +1 -1
- cosmotech_api/model/workspace_file.py +1 -1
- cosmotech_api/model/workspace_role.py +1 -1
- cosmotech_api/model/workspace_secret.py +1 -1
- cosmotech_api/model/workspace_security.py +1 -1
- cosmotech_api/model/workspace_solution.py +1 -1
- cosmotech_api/model/workspace_web_app.py +1 -1
- cosmotech_api/model_utils.py +1 -1
- cosmotech_api/models/__init__.py +33 -72
- cosmotech_api/models/about_info.py +92 -0
- cosmotech_api/models/about_info_version.py +100 -0
- cosmotech_api/models/component_role_permissions.py +11 -11
- cosmotech_api/models/connector.py +12 -22
- cosmotech_api/models/connector_parameter.py +7 -7
- cosmotech_api/models/connector_parameter_group.py +10 -10
- cosmotech_api/models/container_resource_size_info.py +7 -7
- cosmotech_api/models/container_resource_sizing.py +7 -7
- cosmotech_api/models/create_info.py +103 -0
- cosmotech_api/models/created_run.py +88 -0
- cosmotech_api/models/dataset.py +47 -103
- cosmotech_api/models/dataset_access_control.py +7 -7
- cosmotech_api/models/dataset_compatibility.py +7 -7
- cosmotech_api/models/dataset_connector.py +7 -7
- cosmotech_api/models/dataset_copy_parameters.py +7 -7
- cosmotech_api/models/dataset_create_info.py +103 -0
- cosmotech_api/models/dataset_create_request.py +111 -0
- cosmotech_api/models/dataset_edit_info.py +90 -0
- cosmotech_api/models/dataset_part.py +132 -0
- cosmotech_api/models/dataset_part_create_request.py +100 -0
- cosmotech_api/models/dataset_part_type_enum.py +38 -0
- cosmotech_api/models/dataset_part_update_request.py +95 -0
- cosmotech_api/models/dataset_role.py +7 -7
- cosmotech_api/models/dataset_search.py +7 -7
- cosmotech_api/models/dataset_security.py +10 -10
- cosmotech_api/models/dataset_source_type.py +1 -1
- cosmotech_api/models/dataset_twin_graph_hash.py +7 -7
- cosmotech_api/models/dataset_twin_graph_info.py +7 -7
- cosmotech_api/models/dataset_twin_graph_query.py +7 -7
- cosmotech_api/models/dataset_update_request.py +105 -0
- cosmotech_api/models/delete_historical_data.py +7 -7
- cosmotech_api/models/edit_info.py +90 -0
- cosmotech_api/models/file_upload_metadata.py +7 -7
- cosmotech_api/models/file_upload_validation.py +13 -13
- cosmotech_api/models/graph_properties.py +7 -7
- cosmotech_api/models/ingestion_status_enum.py +40 -0
- cosmotech_api/models/io_types_enum.py +38 -0
- cosmotech_api/models/last_run_info.py +100 -0
- cosmotech_api/models/organization.py +24 -23
- cosmotech_api/models/organization_access_control.py +10 -10
- cosmotech_api/models/organization_create_request.py +95 -0
- cosmotech_api/models/organization_edit_info.py +90 -0
- cosmotech_api/models/organization_role.py +9 -9
- cosmotech_api/models/organization_security.py +13 -13
- cosmotech_api/models/organization_service.py +7 -7
- cosmotech_api/models/organization_services.py +7 -7
- cosmotech_api/models/organization_update_request.py +89 -0
- cosmotech_api/models/query_result.py +7 -7
- cosmotech_api/models/resource_size_info.py +7 -7
- cosmotech_api/models/run.py +20 -22
- cosmotech_api/models/run_container.py +9 -19
- cosmotech_api/models/run_container_artifact.py +7 -7
- cosmotech_api/models/run_container_logs.py +7 -7
- cosmotech_api/models/run_data.py +7 -7
- cosmotech_api/models/run_data_query.py +7 -7
- cosmotech_api/models/run_edit_info.py +90 -0
- cosmotech_api/models/run_logs.py +10 -10
- cosmotech_api/models/run_logs_entry.py +88 -0
- cosmotech_api/models/run_resource_requested.py +7 -7
- cosmotech_api/models/run_search.py +9 -18
- cosmotech_api/models/run_search_state.py +46 -0
- cosmotech_api/models/run_start_containers.py +10 -10
- cosmotech_api/models/run_state.py +2 -1
- cosmotech_api/models/run_status.py +17 -11
- cosmotech_api/models/run_status_node.py +7 -7
- cosmotech_api/models/run_template.py +20 -75
- cosmotech_api/models/run_template_create_request.py +109 -0
- cosmotech_api/models/run_template_handler_id.py +1 -1
- cosmotech_api/models/run_template_orchestrator.py +1 -1
- cosmotech_api/models/run_template_parameter.py +21 -20
- cosmotech_api/models/run_template_parameter_create_request.py +103 -0
- cosmotech_api/models/run_template_parameter_group.py +17 -18
- cosmotech_api/models/run_template_parameter_group_create_request.py +97 -0
- cosmotech_api/models/run_template_parameter_group_update_request.py +94 -0
- cosmotech_api/models/run_template_parameter_update_request.py +101 -0
- cosmotech_api/models/run_template_parameter_value.py +7 -7
- cosmotech_api/models/run_template_resource_sizing.py +8 -8
- cosmotech_api/models/run_template_step_source.py +1 -1
- cosmotech_api/models/run_template_update_request.py +107 -0
- cosmotech_api/models/runner.py +48 -62
- cosmotech_api/models/runner_access_control.py +7 -7
- cosmotech_api/models/runner_changed_parameter_value.py +7 -7
- cosmotech_api/models/runner_comparison_result.py +10 -10
- cosmotech_api/models/runner_create_request.py +146 -0
- cosmotech_api/models/runner_data_download_info.py +7 -7
- cosmotech_api/models/runner_data_download_job.py +7 -7
- cosmotech_api/models/runner_datasets.py +92 -0
- cosmotech_api/models/runner_edit_info.py +90 -0
- cosmotech_api/models/runner_job_state.py +1 -1
- cosmotech_api/models/runner_last_run.py +7 -7
- cosmotech_api/models/runner_parent_last_run.py +7 -7
- cosmotech_api/models/runner_resource_sizing.py +7 -7
- cosmotech_api/models/runner_role.py +7 -7
- cosmotech_api/models/runner_root_last_run.py +7 -7
- cosmotech_api/models/runner_run_template_parameter_value.py +7 -9
- cosmotech_api/models/runner_security.py +10 -10
- cosmotech_api/models/runner_update_request.py +119 -0
- cosmotech_api/models/runner_validation_status.py +1 -1
- cosmotech_api/models/scenario.py +10 -10
- cosmotech_api/models/scenario_access_control.py +7 -7
- cosmotech_api/models/scenario_changed_parameter_value.py +7 -7
- cosmotech_api/models/scenario_comparison_result.py +10 -10
- cosmotech_api/models/scenario_data_download_info.py +7 -7
- cosmotech_api/models/scenario_data_download_job.py +7 -7
- cosmotech_api/models/scenario_job_state.py +1 -1
- cosmotech_api/models/scenario_last_run.py +7 -7
- cosmotech_api/models/scenario_resource_sizing.py +7 -7
- cosmotech_api/models/scenario_role.py +7 -7
- cosmotech_api/models/scenario_run.py +13 -13
- cosmotech_api/models/scenario_run_container.py +10 -10
- cosmotech_api/models/scenario_run_container_artifact.py +7 -7
- cosmotech_api/models/scenario_run_container_logs.py +7 -7
- cosmotech_api/models/scenario_run_logs.py +10 -10
- cosmotech_api/models/scenario_run_resource_requested.py +7 -7
- cosmotech_api/models/scenario_run_search.py +9 -18
- cosmotech_api/models/scenario_run_search_state.py +46 -0
- cosmotech_api/models/scenario_run_start_containers.py +10 -10
- cosmotech_api/models/scenario_run_state.py +1 -1
- cosmotech_api/models/scenario_run_status.py +10 -10
- cosmotech_api/models/scenario_run_status_node.py +7 -7
- cosmotech_api/models/scenario_run_template_parameter_value.py +7 -7
- cosmotech_api/models/scenario_security.py +10 -10
- cosmotech_api/models/scenario_validation_status.py +1 -1
- cosmotech_api/models/send_run_data_request.py +7 -7
- cosmotech_api/models/solution.py +60 -44
- cosmotech_api/models/solution_access_control.py +10 -10
- cosmotech_api/models/solution_create_request.py +139 -0
- cosmotech_api/models/solution_edit_info.py +90 -0
- cosmotech_api/models/solution_file.py +88 -0
- cosmotech_api/models/solution_role.py +9 -9
- cosmotech_api/models/solution_security.py +13 -13
- cosmotech_api/models/solution_update_request.py +133 -0
- cosmotech_api/models/source_info.py +7 -7
- cosmotech_api/models/sub_dataset_graph_query.py +7 -7
- cosmotech_api/models/twin_graph_batch_result.py +7 -7
- cosmotech_api/models/twin_graph_hash.py +7 -7
- cosmotech_api/models/twin_graph_query.py +7 -7
- cosmotech_api/models/twincache_status_enum.py +38 -0
- cosmotech_api/models/validator.py +7 -7
- cosmotech_api/models/workspace.py +46 -42
- cosmotech_api/models/workspace_access_control.py +10 -10
- cosmotech_api/models/workspace_create_request.py +113 -0
- cosmotech_api/models/workspace_edit_info.py +90 -0
- cosmotech_api/models/workspace_file.py +10 -10
- cosmotech_api/models/workspace_role.py +9 -9
- cosmotech_api/models/workspace_secret.py +7 -7
- cosmotech_api/models/workspace_security.py +13 -13
- cosmotech_api/models/workspace_solution.py +33 -15
- cosmotech_api/models/workspace_update_request.py +105 -0
- cosmotech_api/models/workspace_web_app.py +7 -7
- cosmotech_api/rest.py +5 -2
- cosmotech_api-5.0.0rc3.dist-info/METADATA +314 -0
- cosmotech_api-5.0.0rc3.dist-info/RECORD +297 -0
- {cosmotech_api-3.2.0.post1.dist-info → cosmotech_api-5.0.0rc3.dist-info}/WHEEL +1 -1
- {cosmotech_api-3.2.0.post1.dist-info → cosmotech_api-5.0.0rc3.dist-info/licenses}/LICENSE +1 -1
- cosmotech_api-3.2.0.post1.dist-info/METADATA +0 -18
- cosmotech_api-3.2.0.post1.dist-info/RECORD +0 -255
- {cosmotech_api-3.2.0.post1.dist-info → cosmotech_api-5.0.0rc3.dist-info}/top_level.txt +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Cosmo Tech Platform API
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 5.0.0-rc3
|
|
9
9
|
Contact: platform@cosmotech.com
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -17,15 +17,16 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
17
17
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
18
|
from typing_extensions import Annotated
|
|
19
19
|
|
|
20
|
-
from pydantic import Field, StrictInt, StrictStr
|
|
21
|
-
from typing import
|
|
20
|
+
from pydantic import Field, StrictInt, StrictStr, field_validator
|
|
21
|
+
from typing import List, Optional
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
23
|
from cosmotech_api.models.component_role_permissions import ComponentRolePermissions
|
|
24
24
|
from cosmotech_api.models.organization import Organization
|
|
25
25
|
from cosmotech_api.models.organization_access_control import OrganizationAccessControl
|
|
26
|
+
from cosmotech_api.models.organization_create_request import OrganizationCreateRequest
|
|
26
27
|
from cosmotech_api.models.organization_role import OrganizationRole
|
|
27
28
|
from cosmotech_api.models.organization_security import OrganizationSecurity
|
|
28
|
-
from cosmotech_api.models.
|
|
29
|
+
from cosmotech_api.models.organization_update_request import OrganizationUpdateRequest
|
|
29
30
|
|
|
30
31
|
from cosmotech_api.api_client import ApiClient, RequestSerialized
|
|
31
32
|
from cosmotech_api.api_response import ApiResponse
|
|
@@ -46,10 +47,9 @@ class OrganizationApi:
|
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
@validate_call
|
|
49
|
-
def
|
|
50
|
+
def create_organization(
|
|
50
51
|
self,
|
|
51
|
-
|
|
52
|
-
organization_access_control: Annotated[OrganizationAccessControl, Field(description="the new Organization security access to add.")],
|
|
52
|
+
organization_create_request: Annotated[OrganizationCreateRequest, Field(description="The Organization to create")],
|
|
53
53
|
_request_timeout: Union[
|
|
54
54
|
None,
|
|
55
55
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -62,14 +62,12 @@ class OrganizationApi:
|
|
|
62
62
|
_content_type: Optional[StrictStr] = None,
|
|
63
63
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
64
64
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
65
|
-
) ->
|
|
66
|
-
"""
|
|
65
|
+
) -> Organization:
|
|
66
|
+
"""Create a new organization
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
:param
|
|
70
|
-
:type
|
|
71
|
-
:param organization_access_control: the new Organization security access to add. (required)
|
|
72
|
-
:type organization_access_control: OrganizationAccessControl
|
|
69
|
+
:param organization_create_request: The Organization to create (required)
|
|
70
|
+
:type organization_create_request: OrganizationCreateRequest
|
|
73
71
|
:param _request_timeout: timeout setting for this request. If one
|
|
74
72
|
number provided, it will be total request
|
|
75
73
|
timeout. It can also be a pair (tuple) of
|
|
@@ -92,9 +90,8 @@ class OrganizationApi:
|
|
|
92
90
|
:return: Returns the result object.
|
|
93
91
|
""" # noqa: E501
|
|
94
92
|
|
|
95
|
-
_param = self.
|
|
96
|
-
|
|
97
|
-
organization_access_control=organization_access_control,
|
|
93
|
+
_param = self._create_organization_serialize(
|
|
94
|
+
organization_create_request=organization_create_request,
|
|
98
95
|
_request_auth=_request_auth,
|
|
99
96
|
_content_type=_content_type,
|
|
100
97
|
_headers=_headers,
|
|
@@ -102,8 +99,8 @@ class OrganizationApi:
|
|
|
102
99
|
)
|
|
103
100
|
|
|
104
101
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
105
|
-
'201': "
|
|
106
|
-
'
|
|
102
|
+
'201': "Organization",
|
|
103
|
+
'400': None,
|
|
107
104
|
}
|
|
108
105
|
response_data = self.api_client.call_api(
|
|
109
106
|
*_param,
|
|
@@ -117,10 +114,9 @@ class OrganizationApi:
|
|
|
117
114
|
|
|
118
115
|
|
|
119
116
|
@validate_call
|
|
120
|
-
def
|
|
117
|
+
def create_organization_with_http_info(
|
|
121
118
|
self,
|
|
122
|
-
|
|
123
|
-
organization_access_control: Annotated[OrganizationAccessControl, Field(description="the new Organization security access to add.")],
|
|
119
|
+
organization_create_request: Annotated[OrganizationCreateRequest, Field(description="The Organization to create")],
|
|
124
120
|
_request_timeout: Union[
|
|
125
121
|
None,
|
|
126
122
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -133,14 +129,12 @@ class OrganizationApi:
|
|
|
133
129
|
_content_type: Optional[StrictStr] = None,
|
|
134
130
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
135
131
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
136
|
-
) -> ApiResponse[
|
|
137
|
-
"""
|
|
132
|
+
) -> ApiResponse[Organization]:
|
|
133
|
+
"""Create a new organization
|
|
138
134
|
|
|
139
135
|
|
|
140
|
-
:param
|
|
141
|
-
:type
|
|
142
|
-
:param organization_access_control: the new Organization security access to add. (required)
|
|
143
|
-
:type organization_access_control: OrganizationAccessControl
|
|
136
|
+
:param organization_create_request: The Organization to create (required)
|
|
137
|
+
:type organization_create_request: OrganizationCreateRequest
|
|
144
138
|
:param _request_timeout: timeout setting for this request. If one
|
|
145
139
|
number provided, it will be total request
|
|
146
140
|
timeout. It can also be a pair (tuple) of
|
|
@@ -163,9 +157,8 @@ class OrganizationApi:
|
|
|
163
157
|
:return: Returns the result object.
|
|
164
158
|
""" # noqa: E501
|
|
165
159
|
|
|
166
|
-
_param = self.
|
|
167
|
-
|
|
168
|
-
organization_access_control=organization_access_control,
|
|
160
|
+
_param = self._create_organization_serialize(
|
|
161
|
+
organization_create_request=organization_create_request,
|
|
169
162
|
_request_auth=_request_auth,
|
|
170
163
|
_content_type=_content_type,
|
|
171
164
|
_headers=_headers,
|
|
@@ -173,8 +166,8 @@ class OrganizationApi:
|
|
|
173
166
|
)
|
|
174
167
|
|
|
175
168
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
176
|
-
'201': "
|
|
177
|
-
'
|
|
169
|
+
'201': "Organization",
|
|
170
|
+
'400': None,
|
|
178
171
|
}
|
|
179
172
|
response_data = self.api_client.call_api(
|
|
180
173
|
*_param,
|
|
@@ -188,10 +181,9 @@ class OrganizationApi:
|
|
|
188
181
|
|
|
189
182
|
|
|
190
183
|
@validate_call
|
|
191
|
-
def
|
|
184
|
+
def create_organization_without_preload_content(
|
|
192
185
|
self,
|
|
193
|
-
|
|
194
|
-
organization_access_control: Annotated[OrganizationAccessControl, Field(description="the new Organization security access to add.")],
|
|
186
|
+
organization_create_request: Annotated[OrganizationCreateRequest, Field(description="The Organization to create")],
|
|
195
187
|
_request_timeout: Union[
|
|
196
188
|
None,
|
|
197
189
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -205,13 +197,11 @@ class OrganizationApi:
|
|
|
205
197
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
206
198
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
207
199
|
) -> RESTResponseType:
|
|
208
|
-
"""
|
|
200
|
+
"""Create a new organization
|
|
209
201
|
|
|
210
202
|
|
|
211
|
-
:param
|
|
212
|
-
:type
|
|
213
|
-
:param organization_access_control: the new Organization security access to add. (required)
|
|
214
|
-
:type organization_access_control: OrganizationAccessControl
|
|
203
|
+
:param organization_create_request: The Organization to create (required)
|
|
204
|
+
:type organization_create_request: OrganizationCreateRequest
|
|
215
205
|
:param _request_timeout: timeout setting for this request. If one
|
|
216
206
|
number provided, it will be total request
|
|
217
207
|
timeout. It can also be a pair (tuple) of
|
|
@@ -234,9 +224,8 @@ class OrganizationApi:
|
|
|
234
224
|
:return: Returns the result object.
|
|
235
225
|
""" # noqa: E501
|
|
236
226
|
|
|
237
|
-
_param = self.
|
|
238
|
-
|
|
239
|
-
organization_access_control=organization_access_control,
|
|
227
|
+
_param = self._create_organization_serialize(
|
|
228
|
+
organization_create_request=organization_create_request,
|
|
240
229
|
_request_auth=_request_auth,
|
|
241
230
|
_content_type=_content_type,
|
|
242
231
|
_headers=_headers,
|
|
@@ -244,8 +233,8 @@ class OrganizationApi:
|
|
|
244
233
|
)
|
|
245
234
|
|
|
246
235
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
247
|
-
'201': "
|
|
248
|
-
'
|
|
236
|
+
'201': "Organization",
|
|
237
|
+
'400': None,
|
|
249
238
|
}
|
|
250
239
|
response_data = self.api_client.call_api(
|
|
251
240
|
*_param,
|
|
@@ -254,10 +243,9 @@ class OrganizationApi:
|
|
|
254
243
|
return response_data.response
|
|
255
244
|
|
|
256
245
|
|
|
257
|
-
def
|
|
246
|
+
def _create_organization_serialize(
|
|
258
247
|
self,
|
|
259
|
-
|
|
260
|
-
organization_access_control,
|
|
248
|
+
organization_create_request,
|
|
261
249
|
_request_auth,
|
|
262
250
|
_content_type,
|
|
263
251
|
_headers,
|
|
@@ -273,26 +261,28 @@ class OrganizationApi:
|
|
|
273
261
|
_query_params: List[Tuple[str, str]] = []
|
|
274
262
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
275
263
|
_form_params: List[Tuple[str, str]] = []
|
|
276
|
-
_files: Dict[
|
|
264
|
+
_files: Dict[
|
|
265
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
266
|
+
] = {}
|
|
277
267
|
_body_params: Optional[bytes] = None
|
|
278
268
|
|
|
279
269
|
# process the path parameters
|
|
280
|
-
if organization_id is not None:
|
|
281
|
-
_path_params['organization_id'] = organization_id
|
|
282
270
|
# process the query parameters
|
|
283
271
|
# process the header parameters
|
|
284
272
|
# process the form parameters
|
|
285
273
|
# process the body parameter
|
|
286
|
-
if
|
|
287
|
-
_body_params =
|
|
274
|
+
if organization_create_request is not None:
|
|
275
|
+
_body_params = organization_create_request
|
|
288
276
|
|
|
289
277
|
|
|
290
278
|
# set the HTTP header `Accept`
|
|
291
|
-
|
|
292
|
-
[
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
279
|
+
if 'Accept' not in _header_params:
|
|
280
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
281
|
+
[
|
|
282
|
+
'application/json',
|
|
283
|
+
'application/yaml'
|
|
284
|
+
]
|
|
285
|
+
)
|
|
296
286
|
|
|
297
287
|
# set the HTTP header `Content-Type`
|
|
298
288
|
if _content_type:
|
|
@@ -316,7 +306,7 @@ class OrganizationApi:
|
|
|
316
306
|
|
|
317
307
|
return self.api_client.param_serialize(
|
|
318
308
|
method='POST',
|
|
319
|
-
resource_path='/organizations
|
|
309
|
+
resource_path='/organizations',
|
|
320
310
|
path_params=_path_params,
|
|
321
311
|
query_params=_query_params,
|
|
322
312
|
header_params=_header_params,
|
|
@@ -333,10 +323,10 @@ class OrganizationApi:
|
|
|
333
323
|
|
|
334
324
|
|
|
335
325
|
@validate_call
|
|
336
|
-
def
|
|
326
|
+
def create_organization_access_control(
|
|
337
327
|
self,
|
|
338
|
-
|
|
339
|
-
|
|
328
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
329
|
+
organization_access_control: Annotated[OrganizationAccessControl, Field(description="The new Organization security access to add.")],
|
|
340
330
|
_request_timeout: Union[
|
|
341
331
|
None,
|
|
342
332
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -349,14 +339,14 @@ class OrganizationApi:
|
|
|
349
339
|
_content_type: Optional[StrictStr] = None,
|
|
350
340
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
351
341
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
352
|
-
) ->
|
|
353
|
-
"""
|
|
342
|
+
) -> OrganizationAccessControl:
|
|
343
|
+
"""Add a control access to the Organization
|
|
354
344
|
|
|
355
345
|
|
|
356
|
-
:param
|
|
357
|
-
:type
|
|
358
|
-
:param
|
|
359
|
-
:type
|
|
346
|
+
:param organization_id: The Organization identifier (required)
|
|
347
|
+
:type organization_id: str
|
|
348
|
+
:param organization_access_control: The new Organization security access to add. (required)
|
|
349
|
+
:type organization_access_control: OrganizationAccessControl
|
|
360
350
|
:param _request_timeout: timeout setting for this request. If one
|
|
361
351
|
number provided, it will be total request
|
|
362
352
|
timeout. It can also be a pair (tuple) of
|
|
@@ -379,9 +369,9 @@ class OrganizationApi:
|
|
|
379
369
|
:return: Returns the result object.
|
|
380
370
|
""" # noqa: E501
|
|
381
371
|
|
|
382
|
-
_param = self.
|
|
383
|
-
|
|
384
|
-
|
|
372
|
+
_param = self._create_organization_access_control_serialize(
|
|
373
|
+
organization_id=organization_id,
|
|
374
|
+
organization_access_control=organization_access_control,
|
|
385
375
|
_request_auth=_request_auth,
|
|
386
376
|
_content_type=_content_type,
|
|
387
377
|
_headers=_headers,
|
|
@@ -389,7 +379,8 @@ class OrganizationApi:
|
|
|
389
379
|
)
|
|
390
380
|
|
|
391
381
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
392
|
-
'
|
|
382
|
+
'201': "OrganizationAccessControl",
|
|
383
|
+
'404': None,
|
|
393
384
|
}
|
|
394
385
|
response_data = self.api_client.call_api(
|
|
395
386
|
*_param,
|
|
@@ -403,10 +394,10 @@ class OrganizationApi:
|
|
|
403
394
|
|
|
404
395
|
|
|
405
396
|
@validate_call
|
|
406
|
-
def
|
|
397
|
+
def create_organization_access_control_with_http_info(
|
|
407
398
|
self,
|
|
408
|
-
|
|
409
|
-
|
|
399
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
400
|
+
organization_access_control: Annotated[OrganizationAccessControl, Field(description="The new Organization security access to add.")],
|
|
410
401
|
_request_timeout: Union[
|
|
411
402
|
None,
|
|
412
403
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -419,14 +410,14 @@ class OrganizationApi:
|
|
|
419
410
|
_content_type: Optional[StrictStr] = None,
|
|
420
411
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
421
412
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
422
|
-
) -> ApiResponse[
|
|
423
|
-
"""
|
|
413
|
+
) -> ApiResponse[OrganizationAccessControl]:
|
|
414
|
+
"""Add a control access to the Organization
|
|
424
415
|
|
|
425
416
|
|
|
426
|
-
:param
|
|
427
|
-
:type
|
|
428
|
-
:param
|
|
429
|
-
:type
|
|
417
|
+
:param organization_id: The Organization identifier (required)
|
|
418
|
+
:type organization_id: str
|
|
419
|
+
:param organization_access_control: The new Organization security access to add. (required)
|
|
420
|
+
:type organization_access_control: OrganizationAccessControl
|
|
430
421
|
:param _request_timeout: timeout setting for this request. If one
|
|
431
422
|
number provided, it will be total request
|
|
432
423
|
timeout. It can also be a pair (tuple) of
|
|
@@ -449,9 +440,9 @@ class OrganizationApi:
|
|
|
449
440
|
:return: Returns the result object.
|
|
450
441
|
""" # noqa: E501
|
|
451
442
|
|
|
452
|
-
_param = self.
|
|
453
|
-
|
|
454
|
-
|
|
443
|
+
_param = self._create_organization_access_control_serialize(
|
|
444
|
+
organization_id=organization_id,
|
|
445
|
+
organization_access_control=organization_access_control,
|
|
455
446
|
_request_auth=_request_auth,
|
|
456
447
|
_content_type=_content_type,
|
|
457
448
|
_headers=_headers,
|
|
@@ -459,7 +450,8 @@ class OrganizationApi:
|
|
|
459
450
|
)
|
|
460
451
|
|
|
461
452
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
462
|
-
'
|
|
453
|
+
'201': "OrganizationAccessControl",
|
|
454
|
+
'404': None,
|
|
463
455
|
}
|
|
464
456
|
response_data = self.api_client.call_api(
|
|
465
457
|
*_param,
|
|
@@ -473,10 +465,10 @@ class OrganizationApi:
|
|
|
473
465
|
|
|
474
466
|
|
|
475
467
|
@validate_call
|
|
476
|
-
def
|
|
468
|
+
def create_organization_access_control_without_preload_content(
|
|
477
469
|
self,
|
|
478
|
-
|
|
479
|
-
|
|
470
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
471
|
+
organization_access_control: Annotated[OrganizationAccessControl, Field(description="The new Organization security access to add.")],
|
|
480
472
|
_request_timeout: Union[
|
|
481
473
|
None,
|
|
482
474
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -490,13 +482,13 @@ class OrganizationApi:
|
|
|
490
482
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
491
483
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
492
484
|
) -> RESTResponseType:
|
|
493
|
-
"""
|
|
485
|
+
"""Add a control access to the Organization
|
|
494
486
|
|
|
495
487
|
|
|
496
|
-
:param
|
|
497
|
-
:type
|
|
498
|
-
:param
|
|
499
|
-
:type
|
|
488
|
+
:param organization_id: The Organization identifier (required)
|
|
489
|
+
:type organization_id: str
|
|
490
|
+
:param organization_access_control: The new Organization security access to add. (required)
|
|
491
|
+
:type organization_access_control: OrganizationAccessControl
|
|
500
492
|
:param _request_timeout: timeout setting for this request. If one
|
|
501
493
|
number provided, it will be total request
|
|
502
494
|
timeout. It can also be a pair (tuple) of
|
|
@@ -519,9 +511,9 @@ class OrganizationApi:
|
|
|
519
511
|
:return: Returns the result object.
|
|
520
512
|
""" # noqa: E501
|
|
521
513
|
|
|
522
|
-
_param = self.
|
|
523
|
-
|
|
524
|
-
|
|
514
|
+
_param = self._create_organization_access_control_serialize(
|
|
515
|
+
organization_id=organization_id,
|
|
516
|
+
organization_access_control=organization_access_control,
|
|
525
517
|
_request_auth=_request_auth,
|
|
526
518
|
_content_type=_content_type,
|
|
527
519
|
_headers=_headers,
|
|
@@ -529,7 +521,8 @@ class OrganizationApi:
|
|
|
529
521
|
)
|
|
530
522
|
|
|
531
523
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
532
|
-
'
|
|
524
|
+
'201': "OrganizationAccessControl",
|
|
525
|
+
'404': None,
|
|
533
526
|
}
|
|
534
527
|
response_data = self.api_client.call_api(
|
|
535
528
|
*_param,
|
|
@@ -538,10 +531,10 @@ class OrganizationApi:
|
|
|
538
531
|
return response_data.response
|
|
539
532
|
|
|
540
533
|
|
|
541
|
-
def
|
|
534
|
+
def _create_organization_access_control_serialize(
|
|
542
535
|
self,
|
|
543
|
-
|
|
544
|
-
|
|
536
|
+
organization_id,
|
|
537
|
+
organization_access_control,
|
|
545
538
|
_request_auth,
|
|
546
539
|
_content_type,
|
|
547
540
|
_headers,
|
|
@@ -557,31 +550,45 @@ class OrganizationApi:
|
|
|
557
550
|
_query_params: List[Tuple[str, str]] = []
|
|
558
551
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
559
552
|
_form_params: List[Tuple[str, str]] = []
|
|
560
|
-
_files: Dict[
|
|
553
|
+
_files: Dict[
|
|
554
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
555
|
+
] = {}
|
|
561
556
|
_body_params: Optional[bytes] = None
|
|
562
557
|
|
|
563
558
|
# process the path parameters
|
|
559
|
+
if organization_id is not None:
|
|
560
|
+
_path_params['organization_id'] = organization_id
|
|
564
561
|
# process the query parameters
|
|
565
|
-
if page is not None:
|
|
566
|
-
|
|
567
|
-
_query_params.append(('page', page))
|
|
568
|
-
|
|
569
|
-
if size is not None:
|
|
570
|
-
|
|
571
|
-
_query_params.append(('size', size))
|
|
572
|
-
|
|
573
562
|
# process the header parameters
|
|
574
563
|
# process the form parameters
|
|
575
564
|
# process the body parameter
|
|
565
|
+
if organization_access_control is not None:
|
|
566
|
+
_body_params = organization_access_control
|
|
576
567
|
|
|
577
568
|
|
|
578
569
|
# set the HTTP header `Accept`
|
|
579
|
-
|
|
580
|
-
[
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
570
|
+
if 'Accept' not in _header_params:
|
|
571
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
572
|
+
[
|
|
573
|
+
'application/json',
|
|
574
|
+
'application/yaml'
|
|
575
|
+
]
|
|
576
|
+
)
|
|
584
577
|
|
|
578
|
+
# set the HTTP header `Content-Type`
|
|
579
|
+
if _content_type:
|
|
580
|
+
_header_params['Content-Type'] = _content_type
|
|
581
|
+
else:
|
|
582
|
+
_default_content_type = (
|
|
583
|
+
self.api_client.select_header_content_type(
|
|
584
|
+
[
|
|
585
|
+
'application/json',
|
|
586
|
+
'application/yaml'
|
|
587
|
+
]
|
|
588
|
+
)
|
|
589
|
+
)
|
|
590
|
+
if _default_content_type is not None:
|
|
591
|
+
_header_params['Content-Type'] = _default_content_type
|
|
585
592
|
|
|
586
593
|
# authentication setting
|
|
587
594
|
_auth_settings: List[str] = [
|
|
@@ -589,8 +596,8 @@ class OrganizationApi:
|
|
|
589
596
|
]
|
|
590
597
|
|
|
591
598
|
return self.api_client.param_serialize(
|
|
592
|
-
method='
|
|
593
|
-
resource_path='/organizations',
|
|
599
|
+
method='POST',
|
|
600
|
+
resource_path='/organizations/{organization_id}/security/access',
|
|
594
601
|
path_params=_path_params,
|
|
595
602
|
query_params=_query_params,
|
|
596
603
|
header_params=_header_params,
|
|
@@ -607,9 +614,9 @@ class OrganizationApi:
|
|
|
607
614
|
|
|
608
615
|
|
|
609
616
|
@validate_call
|
|
610
|
-
def
|
|
617
|
+
def delete_organization(
|
|
611
618
|
self,
|
|
612
|
-
organization_id: Annotated[
|
|
619
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
613
620
|
_request_timeout: Union[
|
|
614
621
|
None,
|
|
615
622
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -622,11 +629,11 @@ class OrganizationApi:
|
|
|
622
629
|
_content_type: Optional[StrictStr] = None,
|
|
623
630
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
624
631
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
625
|
-
) ->
|
|
626
|
-
"""
|
|
632
|
+
) -> None:
|
|
633
|
+
"""Delete an organization
|
|
627
634
|
|
|
628
635
|
|
|
629
|
-
:param organization_id:
|
|
636
|
+
:param organization_id: The Organization identifier (required)
|
|
630
637
|
:type organization_id: str
|
|
631
638
|
:param _request_timeout: timeout setting for this request. If one
|
|
632
639
|
number provided, it will be total request
|
|
@@ -650,7 +657,7 @@ class OrganizationApi:
|
|
|
650
657
|
:return: Returns the result object.
|
|
651
658
|
""" # noqa: E501
|
|
652
659
|
|
|
653
|
-
_param = self.
|
|
660
|
+
_param = self._delete_organization_serialize(
|
|
654
661
|
organization_id=organization_id,
|
|
655
662
|
_request_auth=_request_auth,
|
|
656
663
|
_content_type=_content_type,
|
|
@@ -659,7 +666,7 @@ class OrganizationApi:
|
|
|
659
666
|
)
|
|
660
667
|
|
|
661
668
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
662
|
-
'
|
|
669
|
+
'204': None,
|
|
663
670
|
'404': None,
|
|
664
671
|
}
|
|
665
672
|
response_data = self.api_client.call_api(
|
|
@@ -674,9 +681,9 @@ class OrganizationApi:
|
|
|
674
681
|
|
|
675
682
|
|
|
676
683
|
@validate_call
|
|
677
|
-
def
|
|
684
|
+
def delete_organization_with_http_info(
|
|
678
685
|
self,
|
|
679
|
-
organization_id: Annotated[
|
|
686
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
680
687
|
_request_timeout: Union[
|
|
681
688
|
None,
|
|
682
689
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -689,11 +696,11 @@ class OrganizationApi:
|
|
|
689
696
|
_content_type: Optional[StrictStr] = None,
|
|
690
697
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
691
698
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
692
|
-
) -> ApiResponse[
|
|
693
|
-
"""
|
|
699
|
+
) -> ApiResponse[None]:
|
|
700
|
+
"""Delete an organization
|
|
694
701
|
|
|
695
702
|
|
|
696
|
-
:param organization_id:
|
|
703
|
+
:param organization_id: The Organization identifier (required)
|
|
697
704
|
:type organization_id: str
|
|
698
705
|
:param _request_timeout: timeout setting for this request. If one
|
|
699
706
|
number provided, it will be total request
|
|
@@ -717,7 +724,7 @@ class OrganizationApi:
|
|
|
717
724
|
:return: Returns the result object.
|
|
718
725
|
""" # noqa: E501
|
|
719
726
|
|
|
720
|
-
_param = self.
|
|
727
|
+
_param = self._delete_organization_serialize(
|
|
721
728
|
organization_id=organization_id,
|
|
722
729
|
_request_auth=_request_auth,
|
|
723
730
|
_content_type=_content_type,
|
|
@@ -726,7 +733,7 @@ class OrganizationApi:
|
|
|
726
733
|
)
|
|
727
734
|
|
|
728
735
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
729
|
-
'
|
|
736
|
+
'204': None,
|
|
730
737
|
'404': None,
|
|
731
738
|
}
|
|
732
739
|
response_data = self.api_client.call_api(
|
|
@@ -741,9 +748,9 @@ class OrganizationApi:
|
|
|
741
748
|
|
|
742
749
|
|
|
743
750
|
@validate_call
|
|
744
|
-
def
|
|
751
|
+
def delete_organization_without_preload_content(
|
|
745
752
|
self,
|
|
746
|
-
organization_id: Annotated[
|
|
753
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
747
754
|
_request_timeout: Union[
|
|
748
755
|
None,
|
|
749
756
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -757,10 +764,10 @@ class OrganizationApi:
|
|
|
757
764
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
758
765
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
759
766
|
) -> RESTResponseType:
|
|
760
|
-
"""
|
|
767
|
+
"""Delete an organization
|
|
761
768
|
|
|
762
769
|
|
|
763
|
-
:param organization_id:
|
|
770
|
+
:param organization_id: The Organization identifier (required)
|
|
764
771
|
:type organization_id: str
|
|
765
772
|
:param _request_timeout: timeout setting for this request. If one
|
|
766
773
|
number provided, it will be total request
|
|
@@ -784,7 +791,7 @@ class OrganizationApi:
|
|
|
784
791
|
:return: Returns the result object.
|
|
785
792
|
""" # noqa: E501
|
|
786
793
|
|
|
787
|
-
_param = self.
|
|
794
|
+
_param = self._delete_organization_serialize(
|
|
788
795
|
organization_id=organization_id,
|
|
789
796
|
_request_auth=_request_auth,
|
|
790
797
|
_content_type=_content_type,
|
|
@@ -793,7 +800,7 @@ class OrganizationApi:
|
|
|
793
800
|
)
|
|
794
801
|
|
|
795
802
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
796
|
-
'
|
|
803
|
+
'204': None,
|
|
797
804
|
'404': None,
|
|
798
805
|
}
|
|
799
806
|
response_data = self.api_client.call_api(
|
|
@@ -803,7 +810,7 @@ class OrganizationApi:
|
|
|
803
810
|
return response_data.response
|
|
804
811
|
|
|
805
812
|
|
|
806
|
-
def
|
|
813
|
+
def _delete_organization_serialize(
|
|
807
814
|
self,
|
|
808
815
|
organization_id,
|
|
809
816
|
_request_auth,
|
|
@@ -821,7 +828,9 @@ class OrganizationApi:
|
|
|
821
828
|
_query_params: List[Tuple[str, str]] = []
|
|
822
829
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
823
830
|
_form_params: List[Tuple[str, str]] = []
|
|
824
|
-
_files: Dict[
|
|
831
|
+
_files: Dict[
|
|
832
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
833
|
+
] = {}
|
|
825
834
|
_body_params: Optional[bytes] = None
|
|
826
835
|
|
|
827
836
|
# process the path parameters
|
|
@@ -833,12 +842,6 @@ class OrganizationApi:
|
|
|
833
842
|
# process the body parameter
|
|
834
843
|
|
|
835
844
|
|
|
836
|
-
# set the HTTP header `Accept`
|
|
837
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
838
|
-
[
|
|
839
|
-
'application/json'
|
|
840
|
-
]
|
|
841
|
-
)
|
|
842
845
|
|
|
843
846
|
|
|
844
847
|
# authentication setting
|
|
@@ -847,7 +850,7 @@ class OrganizationApi:
|
|
|
847
850
|
]
|
|
848
851
|
|
|
849
852
|
return self.api_client.param_serialize(
|
|
850
|
-
method='
|
|
853
|
+
method='DELETE',
|
|
851
854
|
resource_path='/organizations/{organization_id}',
|
|
852
855
|
path_params=_path_params,
|
|
853
856
|
query_params=_query_params,
|
|
@@ -865,8 +868,10 @@ class OrganizationApi:
|
|
|
865
868
|
|
|
866
869
|
|
|
867
870
|
@validate_call
|
|
868
|
-
def
|
|
871
|
+
def delete_organization_access_control(
|
|
869
872
|
self,
|
|
873
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
874
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
870
875
|
_request_timeout: Union[
|
|
871
876
|
None,
|
|
872
877
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -879,10 +884,14 @@ class OrganizationApi:
|
|
|
879
884
|
_content_type: Optional[StrictStr] = None,
|
|
880
885
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
881
886
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
882
|
-
) ->
|
|
883
|
-
"""
|
|
887
|
+
) -> None:
|
|
888
|
+
"""Remove the specified access from the given Organization
|
|
884
889
|
|
|
885
890
|
|
|
891
|
+
:param organization_id: The Organization identifier (required)
|
|
892
|
+
:type organization_id: str
|
|
893
|
+
:param identity_id: The User identifier (required)
|
|
894
|
+
:type identity_id: str
|
|
886
895
|
:param _request_timeout: timeout setting for this request. If one
|
|
887
896
|
number provided, it will be total request
|
|
888
897
|
timeout. It can also be a pair (tuple) of
|
|
@@ -905,7 +914,9 @@ class OrganizationApi:
|
|
|
905
914
|
:return: Returns the result object.
|
|
906
915
|
""" # noqa: E501
|
|
907
916
|
|
|
908
|
-
_param = self.
|
|
917
|
+
_param = self._delete_organization_access_control_serialize(
|
|
918
|
+
organization_id=organization_id,
|
|
919
|
+
identity_id=identity_id,
|
|
909
920
|
_request_auth=_request_auth,
|
|
910
921
|
_content_type=_content_type,
|
|
911
922
|
_headers=_headers,
|
|
@@ -913,7 +924,8 @@ class OrganizationApi:
|
|
|
913
924
|
)
|
|
914
925
|
|
|
915
926
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
916
|
-
'
|
|
927
|
+
'204': None,
|
|
928
|
+
'404': None,
|
|
917
929
|
}
|
|
918
930
|
response_data = self.api_client.call_api(
|
|
919
931
|
*_param,
|
|
@@ -927,8 +939,10 @@ class OrganizationApi:
|
|
|
927
939
|
|
|
928
940
|
|
|
929
941
|
@validate_call
|
|
930
|
-
def
|
|
942
|
+
def delete_organization_access_control_with_http_info(
|
|
931
943
|
self,
|
|
944
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
945
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
932
946
|
_request_timeout: Union[
|
|
933
947
|
None,
|
|
934
948
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -941,10 +955,14 @@ class OrganizationApi:
|
|
|
941
955
|
_content_type: Optional[StrictStr] = None,
|
|
942
956
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
943
957
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
944
|
-
) -> ApiResponse[
|
|
945
|
-
"""
|
|
958
|
+
) -> ApiResponse[None]:
|
|
959
|
+
"""Remove the specified access from the given Organization
|
|
946
960
|
|
|
947
961
|
|
|
962
|
+
:param organization_id: The Organization identifier (required)
|
|
963
|
+
:type organization_id: str
|
|
964
|
+
:param identity_id: The User identifier (required)
|
|
965
|
+
:type identity_id: str
|
|
948
966
|
:param _request_timeout: timeout setting for this request. If one
|
|
949
967
|
number provided, it will be total request
|
|
950
968
|
timeout. It can also be a pair (tuple) of
|
|
@@ -967,7 +985,9 @@ class OrganizationApi:
|
|
|
967
985
|
:return: Returns the result object.
|
|
968
986
|
""" # noqa: E501
|
|
969
987
|
|
|
970
|
-
_param = self.
|
|
988
|
+
_param = self._delete_organization_access_control_serialize(
|
|
989
|
+
organization_id=organization_id,
|
|
990
|
+
identity_id=identity_id,
|
|
971
991
|
_request_auth=_request_auth,
|
|
972
992
|
_content_type=_content_type,
|
|
973
993
|
_headers=_headers,
|
|
@@ -975,7 +995,8 @@ class OrganizationApi:
|
|
|
975
995
|
)
|
|
976
996
|
|
|
977
997
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
978
|
-
'
|
|
998
|
+
'204': None,
|
|
999
|
+
'404': None,
|
|
979
1000
|
}
|
|
980
1001
|
response_data = self.api_client.call_api(
|
|
981
1002
|
*_param,
|
|
@@ -989,8 +1010,10 @@ class OrganizationApi:
|
|
|
989
1010
|
|
|
990
1011
|
|
|
991
1012
|
@validate_call
|
|
992
|
-
def
|
|
1013
|
+
def delete_organization_access_control_without_preload_content(
|
|
993
1014
|
self,
|
|
1015
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1016
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
994
1017
|
_request_timeout: Union[
|
|
995
1018
|
None,
|
|
996
1019
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1004,9 +1027,13 @@ class OrganizationApi:
|
|
|
1004
1027
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1005
1028
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1006
1029
|
) -> RESTResponseType:
|
|
1007
|
-
"""
|
|
1030
|
+
"""Remove the specified access from the given Organization
|
|
1008
1031
|
|
|
1009
1032
|
|
|
1033
|
+
:param organization_id: The Organization identifier (required)
|
|
1034
|
+
:type organization_id: str
|
|
1035
|
+
:param identity_id: The User identifier (required)
|
|
1036
|
+
:type identity_id: str
|
|
1010
1037
|
:param _request_timeout: timeout setting for this request. If one
|
|
1011
1038
|
number provided, it will be total request
|
|
1012
1039
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1029,7 +1056,9 @@ class OrganizationApi:
|
|
|
1029
1056
|
:return: Returns the result object.
|
|
1030
1057
|
""" # noqa: E501
|
|
1031
1058
|
|
|
1032
|
-
_param = self.
|
|
1059
|
+
_param = self._delete_organization_access_control_serialize(
|
|
1060
|
+
organization_id=organization_id,
|
|
1061
|
+
identity_id=identity_id,
|
|
1033
1062
|
_request_auth=_request_auth,
|
|
1034
1063
|
_content_type=_content_type,
|
|
1035
1064
|
_headers=_headers,
|
|
@@ -1037,7 +1066,8 @@ class OrganizationApi:
|
|
|
1037
1066
|
)
|
|
1038
1067
|
|
|
1039
1068
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1040
|
-
'
|
|
1069
|
+
'204': None,
|
|
1070
|
+
'404': None,
|
|
1041
1071
|
}
|
|
1042
1072
|
response_data = self.api_client.call_api(
|
|
1043
1073
|
*_param,
|
|
@@ -1046,8 +1076,10 @@ class OrganizationApi:
|
|
|
1046
1076
|
return response_data.response
|
|
1047
1077
|
|
|
1048
1078
|
|
|
1049
|
-
def
|
|
1079
|
+
def _delete_organization_access_control_serialize(
|
|
1050
1080
|
self,
|
|
1081
|
+
organization_id,
|
|
1082
|
+
identity_id,
|
|
1051
1083
|
_request_auth,
|
|
1052
1084
|
_content_type,
|
|
1053
1085
|
_headers,
|
|
@@ -1063,22 +1095,22 @@ class OrganizationApi:
|
|
|
1063
1095
|
_query_params: List[Tuple[str, str]] = []
|
|
1064
1096
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1065
1097
|
_form_params: List[Tuple[str, str]] = []
|
|
1066
|
-
_files: Dict[
|
|
1098
|
+
_files: Dict[
|
|
1099
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1100
|
+
] = {}
|
|
1067
1101
|
_body_params: Optional[bytes] = None
|
|
1068
1102
|
|
|
1069
1103
|
# process the path parameters
|
|
1104
|
+
if organization_id is not None:
|
|
1105
|
+
_path_params['organization_id'] = organization_id
|
|
1106
|
+
if identity_id is not None:
|
|
1107
|
+
_path_params['identity_id'] = identity_id
|
|
1070
1108
|
# process the query parameters
|
|
1071
1109
|
# process the header parameters
|
|
1072
1110
|
# process the form parameters
|
|
1073
1111
|
# process the body parameter
|
|
1074
1112
|
|
|
1075
1113
|
|
|
1076
|
-
# set the HTTP header `Accept`
|
|
1077
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1078
|
-
[
|
|
1079
|
-
'application/json'
|
|
1080
|
-
]
|
|
1081
|
-
)
|
|
1082
1114
|
|
|
1083
1115
|
|
|
1084
1116
|
# authentication setting
|
|
@@ -1087,8 +1119,8 @@ class OrganizationApi:
|
|
|
1087
1119
|
]
|
|
1088
1120
|
|
|
1089
1121
|
return self.api_client.param_serialize(
|
|
1090
|
-
method='
|
|
1091
|
-
resource_path='/organizations/
|
|
1122
|
+
method='DELETE',
|
|
1123
|
+
resource_path='/organizations/{organization_id}/security/access/{identity_id}',
|
|
1092
1124
|
path_params=_path_params,
|
|
1093
1125
|
query_params=_query_params,
|
|
1094
1126
|
header_params=_header_params,
|
|
@@ -1105,10 +1137,9 @@ class OrganizationApi:
|
|
|
1105
1137
|
|
|
1106
1138
|
|
|
1107
1139
|
@validate_call
|
|
1108
|
-
def
|
|
1140
|
+
def get_organization(
|
|
1109
1141
|
self,
|
|
1110
|
-
organization_id: Annotated[
|
|
1111
|
-
identity_id: Annotated[StrictStr, Field(description="the User identifier")],
|
|
1142
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1112
1143
|
_request_timeout: Union[
|
|
1113
1144
|
None,
|
|
1114
1145
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1121,14 +1152,12 @@ class OrganizationApi:
|
|
|
1121
1152
|
_content_type: Optional[StrictStr] = None,
|
|
1122
1153
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1123
1154
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1124
|
-
) ->
|
|
1125
|
-
"""Get
|
|
1155
|
+
) -> Organization:
|
|
1156
|
+
"""Get the details of an Organization
|
|
1126
1157
|
|
|
1127
1158
|
|
|
1128
|
-
:param organization_id:
|
|
1159
|
+
:param organization_id: The Organization identifier (required)
|
|
1129
1160
|
:type organization_id: str
|
|
1130
|
-
:param identity_id: the User identifier (required)
|
|
1131
|
-
:type identity_id: str
|
|
1132
1161
|
:param _request_timeout: timeout setting for this request. If one
|
|
1133
1162
|
number provided, it will be total request
|
|
1134
1163
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1151,9 +1180,8 @@ class OrganizationApi:
|
|
|
1151
1180
|
:return: Returns the result object.
|
|
1152
1181
|
""" # noqa: E501
|
|
1153
1182
|
|
|
1154
|
-
_param = self.
|
|
1183
|
+
_param = self._get_organization_serialize(
|
|
1155
1184
|
organization_id=organization_id,
|
|
1156
|
-
identity_id=identity_id,
|
|
1157
1185
|
_request_auth=_request_auth,
|
|
1158
1186
|
_content_type=_content_type,
|
|
1159
1187
|
_headers=_headers,
|
|
@@ -1161,7 +1189,7 @@ class OrganizationApi:
|
|
|
1161
1189
|
)
|
|
1162
1190
|
|
|
1163
1191
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1164
|
-
'200': "
|
|
1192
|
+
'200': "Organization",
|
|
1165
1193
|
'404': None,
|
|
1166
1194
|
}
|
|
1167
1195
|
response_data = self.api_client.call_api(
|
|
@@ -1176,10 +1204,9 @@ class OrganizationApi:
|
|
|
1176
1204
|
|
|
1177
1205
|
|
|
1178
1206
|
@validate_call
|
|
1179
|
-
def
|
|
1207
|
+
def get_organization_with_http_info(
|
|
1180
1208
|
self,
|
|
1181
|
-
organization_id: Annotated[
|
|
1182
|
-
identity_id: Annotated[StrictStr, Field(description="the User identifier")],
|
|
1209
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1183
1210
|
_request_timeout: Union[
|
|
1184
1211
|
None,
|
|
1185
1212
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1192,14 +1219,12 @@ class OrganizationApi:
|
|
|
1192
1219
|
_content_type: Optional[StrictStr] = None,
|
|
1193
1220
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1194
1221
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1195
|
-
) -> ApiResponse[
|
|
1196
|
-
"""Get
|
|
1222
|
+
) -> ApiResponse[Organization]:
|
|
1223
|
+
"""Get the details of an Organization
|
|
1197
1224
|
|
|
1198
1225
|
|
|
1199
|
-
:param organization_id:
|
|
1226
|
+
:param organization_id: The Organization identifier (required)
|
|
1200
1227
|
:type organization_id: str
|
|
1201
|
-
:param identity_id: the User identifier (required)
|
|
1202
|
-
:type identity_id: str
|
|
1203
1228
|
:param _request_timeout: timeout setting for this request. If one
|
|
1204
1229
|
number provided, it will be total request
|
|
1205
1230
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1222,9 +1247,8 @@ class OrganizationApi:
|
|
|
1222
1247
|
:return: Returns the result object.
|
|
1223
1248
|
""" # noqa: E501
|
|
1224
1249
|
|
|
1225
|
-
_param = self.
|
|
1250
|
+
_param = self._get_organization_serialize(
|
|
1226
1251
|
organization_id=organization_id,
|
|
1227
|
-
identity_id=identity_id,
|
|
1228
1252
|
_request_auth=_request_auth,
|
|
1229
1253
|
_content_type=_content_type,
|
|
1230
1254
|
_headers=_headers,
|
|
@@ -1232,7 +1256,7 @@ class OrganizationApi:
|
|
|
1232
1256
|
)
|
|
1233
1257
|
|
|
1234
1258
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1235
|
-
'200': "
|
|
1259
|
+
'200': "Organization",
|
|
1236
1260
|
'404': None,
|
|
1237
1261
|
}
|
|
1238
1262
|
response_data = self.api_client.call_api(
|
|
@@ -1247,10 +1271,9 @@ class OrganizationApi:
|
|
|
1247
1271
|
|
|
1248
1272
|
|
|
1249
1273
|
@validate_call
|
|
1250
|
-
def
|
|
1274
|
+
def get_organization_without_preload_content(
|
|
1251
1275
|
self,
|
|
1252
|
-
organization_id: Annotated[
|
|
1253
|
-
identity_id: Annotated[StrictStr, Field(description="the User identifier")],
|
|
1276
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1254
1277
|
_request_timeout: Union[
|
|
1255
1278
|
None,
|
|
1256
1279
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1264,13 +1287,11 @@ class OrganizationApi:
|
|
|
1264
1287
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1265
1288
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1266
1289
|
) -> RESTResponseType:
|
|
1267
|
-
"""Get
|
|
1290
|
+
"""Get the details of an Organization
|
|
1268
1291
|
|
|
1269
1292
|
|
|
1270
|
-
:param organization_id:
|
|
1293
|
+
:param organization_id: The Organization identifier (required)
|
|
1271
1294
|
:type organization_id: str
|
|
1272
|
-
:param identity_id: the User identifier (required)
|
|
1273
|
-
:type identity_id: str
|
|
1274
1295
|
:param _request_timeout: timeout setting for this request. If one
|
|
1275
1296
|
number provided, it will be total request
|
|
1276
1297
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1293,9 +1314,8 @@ class OrganizationApi:
|
|
|
1293
1314
|
:return: Returns the result object.
|
|
1294
1315
|
""" # noqa: E501
|
|
1295
1316
|
|
|
1296
|
-
_param = self.
|
|
1317
|
+
_param = self._get_organization_serialize(
|
|
1297
1318
|
organization_id=organization_id,
|
|
1298
|
-
identity_id=identity_id,
|
|
1299
1319
|
_request_auth=_request_auth,
|
|
1300
1320
|
_content_type=_content_type,
|
|
1301
1321
|
_headers=_headers,
|
|
@@ -1303,7 +1323,7 @@ class OrganizationApi:
|
|
|
1303
1323
|
)
|
|
1304
1324
|
|
|
1305
1325
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1306
|
-
'200': "
|
|
1326
|
+
'200': "Organization",
|
|
1307
1327
|
'404': None,
|
|
1308
1328
|
}
|
|
1309
1329
|
response_data = self.api_client.call_api(
|
|
@@ -1313,10 +1333,9 @@ class OrganizationApi:
|
|
|
1313
1333
|
return response_data.response
|
|
1314
1334
|
|
|
1315
1335
|
|
|
1316
|
-
def
|
|
1336
|
+
def _get_organization_serialize(
|
|
1317
1337
|
self,
|
|
1318
1338
|
organization_id,
|
|
1319
|
-
identity_id,
|
|
1320
1339
|
_request_auth,
|
|
1321
1340
|
_content_type,
|
|
1322
1341
|
_headers,
|
|
@@ -1332,14 +1351,14 @@ class OrganizationApi:
|
|
|
1332
1351
|
_query_params: List[Tuple[str, str]] = []
|
|
1333
1352
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1334
1353
|
_form_params: List[Tuple[str, str]] = []
|
|
1335
|
-
_files: Dict[
|
|
1354
|
+
_files: Dict[
|
|
1355
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1356
|
+
] = {}
|
|
1336
1357
|
_body_params: Optional[bytes] = None
|
|
1337
1358
|
|
|
1338
1359
|
# process the path parameters
|
|
1339
1360
|
if organization_id is not None:
|
|
1340
1361
|
_path_params['organization_id'] = organization_id
|
|
1341
|
-
if identity_id is not None:
|
|
1342
|
-
_path_params['identity_id'] = identity_id
|
|
1343
1362
|
# process the query parameters
|
|
1344
1363
|
# process the header parameters
|
|
1345
1364
|
# process the form parameters
|
|
@@ -1347,11 +1366,13 @@ class OrganizationApi:
|
|
|
1347
1366
|
|
|
1348
1367
|
|
|
1349
1368
|
# set the HTTP header `Accept`
|
|
1350
|
-
|
|
1351
|
-
[
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1369
|
+
if 'Accept' not in _header_params:
|
|
1370
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1371
|
+
[
|
|
1372
|
+
'application/json',
|
|
1373
|
+
'application/yaml'
|
|
1374
|
+
]
|
|
1375
|
+
)
|
|
1355
1376
|
|
|
1356
1377
|
|
|
1357
1378
|
# authentication setting
|
|
@@ -1361,7 +1382,7 @@ class OrganizationApi:
|
|
|
1361
1382
|
|
|
1362
1383
|
return self.api_client.param_serialize(
|
|
1363
1384
|
method='GET',
|
|
1364
|
-
resource_path='/organizations/{organization_id}
|
|
1385
|
+
resource_path='/organizations/{organization_id}',
|
|
1365
1386
|
path_params=_path_params,
|
|
1366
1387
|
query_params=_query_params,
|
|
1367
1388
|
header_params=_header_params,
|
|
@@ -1378,10 +1399,10 @@ class OrganizationApi:
|
|
|
1378
1399
|
|
|
1379
1400
|
|
|
1380
1401
|
@validate_call
|
|
1381
|
-
def
|
|
1402
|
+
def get_organization_access_control(
|
|
1382
1403
|
self,
|
|
1383
|
-
organization_id: Annotated[
|
|
1384
|
-
|
|
1404
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1405
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
1385
1406
|
_request_timeout: Union[
|
|
1386
1407
|
None,
|
|
1387
1408
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1394,14 +1415,14 @@ class OrganizationApi:
|
|
|
1394
1415
|
_content_type: Optional[StrictStr] = None,
|
|
1395
1416
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1396
1417
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1397
|
-
) ->
|
|
1398
|
-
"""Get
|
|
1418
|
+
) -> OrganizationAccessControl:
|
|
1419
|
+
"""Get a control access for the Organization
|
|
1399
1420
|
|
|
1400
1421
|
|
|
1401
|
-
:param organization_id:
|
|
1422
|
+
:param organization_id: The Organization identifier (required)
|
|
1402
1423
|
:type organization_id: str
|
|
1403
|
-
:param
|
|
1404
|
-
:type
|
|
1424
|
+
:param identity_id: The User identifier (required)
|
|
1425
|
+
:type identity_id: str
|
|
1405
1426
|
:param _request_timeout: timeout setting for this request. If one
|
|
1406
1427
|
number provided, it will be total request
|
|
1407
1428
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1424,9 +1445,9 @@ class OrganizationApi:
|
|
|
1424
1445
|
:return: Returns the result object.
|
|
1425
1446
|
""" # noqa: E501
|
|
1426
1447
|
|
|
1427
|
-
_param = self.
|
|
1448
|
+
_param = self._get_organization_access_control_serialize(
|
|
1428
1449
|
organization_id=organization_id,
|
|
1429
|
-
|
|
1450
|
+
identity_id=identity_id,
|
|
1430
1451
|
_request_auth=_request_auth,
|
|
1431
1452
|
_content_type=_content_type,
|
|
1432
1453
|
_headers=_headers,
|
|
@@ -1434,7 +1455,8 @@ class OrganizationApi:
|
|
|
1434
1455
|
)
|
|
1435
1456
|
|
|
1436
1457
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1437
|
-
'200': "
|
|
1458
|
+
'200': "OrganizationAccessControl",
|
|
1459
|
+
'404': None,
|
|
1438
1460
|
}
|
|
1439
1461
|
response_data = self.api_client.call_api(
|
|
1440
1462
|
*_param,
|
|
@@ -1448,10 +1470,10 @@ class OrganizationApi:
|
|
|
1448
1470
|
|
|
1449
1471
|
|
|
1450
1472
|
@validate_call
|
|
1451
|
-
def
|
|
1473
|
+
def get_organization_access_control_with_http_info(
|
|
1452
1474
|
self,
|
|
1453
|
-
organization_id: Annotated[
|
|
1454
|
-
|
|
1475
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1476
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
1455
1477
|
_request_timeout: Union[
|
|
1456
1478
|
None,
|
|
1457
1479
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1464,14 +1486,14 @@ class OrganizationApi:
|
|
|
1464
1486
|
_content_type: Optional[StrictStr] = None,
|
|
1465
1487
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1466
1488
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1467
|
-
) -> ApiResponse[
|
|
1468
|
-
"""Get
|
|
1489
|
+
) -> ApiResponse[OrganizationAccessControl]:
|
|
1490
|
+
"""Get a control access for the Organization
|
|
1469
1491
|
|
|
1470
1492
|
|
|
1471
|
-
:param organization_id:
|
|
1493
|
+
:param organization_id: The Organization identifier (required)
|
|
1472
1494
|
:type organization_id: str
|
|
1473
|
-
:param
|
|
1474
|
-
:type
|
|
1495
|
+
:param identity_id: The User identifier (required)
|
|
1496
|
+
:type identity_id: str
|
|
1475
1497
|
:param _request_timeout: timeout setting for this request. If one
|
|
1476
1498
|
number provided, it will be total request
|
|
1477
1499
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1494,9 +1516,9 @@ class OrganizationApi:
|
|
|
1494
1516
|
:return: Returns the result object.
|
|
1495
1517
|
""" # noqa: E501
|
|
1496
1518
|
|
|
1497
|
-
_param = self.
|
|
1519
|
+
_param = self._get_organization_access_control_serialize(
|
|
1498
1520
|
organization_id=organization_id,
|
|
1499
|
-
|
|
1521
|
+
identity_id=identity_id,
|
|
1500
1522
|
_request_auth=_request_auth,
|
|
1501
1523
|
_content_type=_content_type,
|
|
1502
1524
|
_headers=_headers,
|
|
@@ -1504,7 +1526,8 @@ class OrganizationApi:
|
|
|
1504
1526
|
)
|
|
1505
1527
|
|
|
1506
1528
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1507
|
-
'200': "
|
|
1529
|
+
'200': "OrganizationAccessControl",
|
|
1530
|
+
'404': None,
|
|
1508
1531
|
}
|
|
1509
1532
|
response_data = self.api_client.call_api(
|
|
1510
1533
|
*_param,
|
|
@@ -1518,10 +1541,10 @@ class OrganizationApi:
|
|
|
1518
1541
|
|
|
1519
1542
|
|
|
1520
1543
|
@validate_call
|
|
1521
|
-
def
|
|
1544
|
+
def get_organization_access_control_without_preload_content(
|
|
1522
1545
|
self,
|
|
1523
|
-
organization_id: Annotated[
|
|
1524
|
-
|
|
1546
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1547
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
1525
1548
|
_request_timeout: Union[
|
|
1526
1549
|
None,
|
|
1527
1550
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1535,13 +1558,13 @@ class OrganizationApi:
|
|
|
1535
1558
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1536
1559
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1537
1560
|
) -> RESTResponseType:
|
|
1538
|
-
"""Get
|
|
1561
|
+
"""Get a control access for the Organization
|
|
1539
1562
|
|
|
1540
1563
|
|
|
1541
|
-
:param organization_id:
|
|
1564
|
+
:param organization_id: The Organization identifier (required)
|
|
1542
1565
|
:type organization_id: str
|
|
1543
|
-
:param
|
|
1544
|
-
:type
|
|
1566
|
+
:param identity_id: The User identifier (required)
|
|
1567
|
+
:type identity_id: str
|
|
1545
1568
|
:param _request_timeout: timeout setting for this request. If one
|
|
1546
1569
|
number provided, it will be total request
|
|
1547
1570
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1564,9 +1587,9 @@ class OrganizationApi:
|
|
|
1564
1587
|
:return: Returns the result object.
|
|
1565
1588
|
""" # noqa: E501
|
|
1566
1589
|
|
|
1567
|
-
_param = self.
|
|
1590
|
+
_param = self._get_organization_access_control_serialize(
|
|
1568
1591
|
organization_id=organization_id,
|
|
1569
|
-
|
|
1592
|
+
identity_id=identity_id,
|
|
1570
1593
|
_request_auth=_request_auth,
|
|
1571
1594
|
_content_type=_content_type,
|
|
1572
1595
|
_headers=_headers,
|
|
@@ -1574,7 +1597,8 @@ class OrganizationApi:
|
|
|
1574
1597
|
)
|
|
1575
1598
|
|
|
1576
1599
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1577
|
-
'200': "
|
|
1600
|
+
'200': "OrganizationAccessControl",
|
|
1601
|
+
'404': None,
|
|
1578
1602
|
}
|
|
1579
1603
|
response_data = self.api_client.call_api(
|
|
1580
1604
|
*_param,
|
|
@@ -1583,10 +1607,10 @@ class OrganizationApi:
|
|
|
1583
1607
|
return response_data.response
|
|
1584
1608
|
|
|
1585
1609
|
|
|
1586
|
-
def
|
|
1610
|
+
def _get_organization_access_control_serialize(
|
|
1587
1611
|
self,
|
|
1588
1612
|
organization_id,
|
|
1589
|
-
|
|
1613
|
+
identity_id,
|
|
1590
1614
|
_request_auth,
|
|
1591
1615
|
_content_type,
|
|
1592
1616
|
_headers,
|
|
@@ -1602,14 +1626,16 @@ class OrganizationApi:
|
|
|
1602
1626
|
_query_params: List[Tuple[str, str]] = []
|
|
1603
1627
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1604
1628
|
_form_params: List[Tuple[str, str]] = []
|
|
1605
|
-
_files: Dict[
|
|
1629
|
+
_files: Dict[
|
|
1630
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1631
|
+
] = {}
|
|
1606
1632
|
_body_params: Optional[bytes] = None
|
|
1607
1633
|
|
|
1608
1634
|
# process the path parameters
|
|
1609
1635
|
if organization_id is not None:
|
|
1610
1636
|
_path_params['organization_id'] = organization_id
|
|
1611
|
-
if
|
|
1612
|
-
_path_params['
|
|
1637
|
+
if identity_id is not None:
|
|
1638
|
+
_path_params['identity_id'] = identity_id
|
|
1613
1639
|
# process the query parameters
|
|
1614
1640
|
# process the header parameters
|
|
1615
1641
|
# process the form parameters
|
|
@@ -1617,11 +1643,13 @@ class OrganizationApi:
|
|
|
1617
1643
|
|
|
1618
1644
|
|
|
1619
1645
|
# set the HTTP header `Accept`
|
|
1620
|
-
|
|
1621
|
-
[
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1646
|
+
if 'Accept' not in _header_params:
|
|
1647
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1648
|
+
[
|
|
1649
|
+
'application/json',
|
|
1650
|
+
'application/yaml'
|
|
1651
|
+
]
|
|
1652
|
+
)
|
|
1625
1653
|
|
|
1626
1654
|
|
|
1627
1655
|
# authentication setting
|
|
@@ -1631,7 +1659,7 @@ class OrganizationApi:
|
|
|
1631
1659
|
|
|
1632
1660
|
return self.api_client.param_serialize(
|
|
1633
1661
|
method='GET',
|
|
1634
|
-
resource_path='/organizations/{organization_id}/
|
|
1662
|
+
resource_path='/organizations/{organization_id}/security/access/{identity_id}',
|
|
1635
1663
|
path_params=_path_params,
|
|
1636
1664
|
query_params=_query_params,
|
|
1637
1665
|
header_params=_header_params,
|
|
@@ -1648,9 +1676,10 @@ class OrganizationApi:
|
|
|
1648
1676
|
|
|
1649
1677
|
|
|
1650
1678
|
@validate_call
|
|
1651
|
-
def
|
|
1679
|
+
def get_organization_permissions(
|
|
1652
1680
|
self,
|
|
1653
|
-
organization_id: Annotated[
|
|
1681
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1682
|
+
role: Annotated[StrictStr, Field(description="The Role")],
|
|
1654
1683
|
_request_timeout: Union[
|
|
1655
1684
|
None,
|
|
1656
1685
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1663,12 +1692,14 @@ class OrganizationApi:
|
|
|
1663
1692
|
_content_type: Optional[StrictStr] = None,
|
|
1664
1693
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1665
1694
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1666
|
-
) ->
|
|
1667
|
-
"""Get the Organization
|
|
1695
|
+
) -> List[str]:
|
|
1696
|
+
"""Get the Organization permissions by given role
|
|
1668
1697
|
|
|
1669
1698
|
|
|
1670
|
-
:param organization_id:
|
|
1699
|
+
:param organization_id: The Organization identifier (required)
|
|
1671
1700
|
:type organization_id: str
|
|
1701
|
+
:param role: The Role (required)
|
|
1702
|
+
:type role: str
|
|
1672
1703
|
:param _request_timeout: timeout setting for this request. If one
|
|
1673
1704
|
number provided, it will be total request
|
|
1674
1705
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1691,8 +1722,9 @@ class OrganizationApi:
|
|
|
1691
1722
|
:return: Returns the result object.
|
|
1692
1723
|
""" # noqa: E501
|
|
1693
1724
|
|
|
1694
|
-
_param = self.
|
|
1725
|
+
_param = self._get_organization_permissions_serialize(
|
|
1695
1726
|
organization_id=organization_id,
|
|
1727
|
+
role=role,
|
|
1696
1728
|
_request_auth=_request_auth,
|
|
1697
1729
|
_content_type=_content_type,
|
|
1698
1730
|
_headers=_headers,
|
|
@@ -1700,8 +1732,7 @@ class OrganizationApi:
|
|
|
1700
1732
|
)
|
|
1701
1733
|
|
|
1702
1734
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1703
|
-
'200': "
|
|
1704
|
-
'404': None,
|
|
1735
|
+
'200': "List[str]",
|
|
1705
1736
|
}
|
|
1706
1737
|
response_data = self.api_client.call_api(
|
|
1707
1738
|
*_param,
|
|
@@ -1715,9 +1746,10 @@ class OrganizationApi:
|
|
|
1715
1746
|
|
|
1716
1747
|
|
|
1717
1748
|
@validate_call
|
|
1718
|
-
def
|
|
1749
|
+
def get_organization_permissions_with_http_info(
|
|
1719
1750
|
self,
|
|
1720
|
-
organization_id: Annotated[
|
|
1751
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1752
|
+
role: Annotated[StrictStr, Field(description="The Role")],
|
|
1721
1753
|
_request_timeout: Union[
|
|
1722
1754
|
None,
|
|
1723
1755
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1730,12 +1762,14 @@ class OrganizationApi:
|
|
|
1730
1762
|
_content_type: Optional[StrictStr] = None,
|
|
1731
1763
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1732
1764
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1733
|
-
) -> ApiResponse[
|
|
1734
|
-
"""Get the Organization
|
|
1765
|
+
) -> ApiResponse[List[str]]:
|
|
1766
|
+
"""Get the Organization permissions by given role
|
|
1735
1767
|
|
|
1736
1768
|
|
|
1737
|
-
:param organization_id:
|
|
1769
|
+
:param organization_id: The Organization identifier (required)
|
|
1738
1770
|
:type organization_id: str
|
|
1771
|
+
:param role: The Role (required)
|
|
1772
|
+
:type role: str
|
|
1739
1773
|
:param _request_timeout: timeout setting for this request. If one
|
|
1740
1774
|
number provided, it will be total request
|
|
1741
1775
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1758,8 +1792,9 @@ class OrganizationApi:
|
|
|
1758
1792
|
:return: Returns the result object.
|
|
1759
1793
|
""" # noqa: E501
|
|
1760
1794
|
|
|
1761
|
-
_param = self.
|
|
1795
|
+
_param = self._get_organization_permissions_serialize(
|
|
1762
1796
|
organization_id=organization_id,
|
|
1797
|
+
role=role,
|
|
1763
1798
|
_request_auth=_request_auth,
|
|
1764
1799
|
_content_type=_content_type,
|
|
1765
1800
|
_headers=_headers,
|
|
@@ -1767,8 +1802,7 @@ class OrganizationApi:
|
|
|
1767
1802
|
)
|
|
1768
1803
|
|
|
1769
1804
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1770
|
-
'200': "
|
|
1771
|
-
'404': None,
|
|
1805
|
+
'200': "List[str]",
|
|
1772
1806
|
}
|
|
1773
1807
|
response_data = self.api_client.call_api(
|
|
1774
1808
|
*_param,
|
|
@@ -1782,9 +1816,10 @@ class OrganizationApi:
|
|
|
1782
1816
|
|
|
1783
1817
|
|
|
1784
1818
|
@validate_call
|
|
1785
|
-
def
|
|
1819
|
+
def get_organization_permissions_without_preload_content(
|
|
1786
1820
|
self,
|
|
1787
|
-
organization_id: Annotated[
|
|
1821
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1822
|
+
role: Annotated[StrictStr, Field(description="The Role")],
|
|
1788
1823
|
_request_timeout: Union[
|
|
1789
1824
|
None,
|
|
1790
1825
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1798,11 +1833,13 @@ class OrganizationApi:
|
|
|
1798
1833
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1799
1834
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1800
1835
|
) -> RESTResponseType:
|
|
1801
|
-
"""Get the Organization
|
|
1836
|
+
"""Get the Organization permissions by given role
|
|
1802
1837
|
|
|
1803
1838
|
|
|
1804
|
-
:param organization_id:
|
|
1839
|
+
:param organization_id: The Organization identifier (required)
|
|
1805
1840
|
:type organization_id: str
|
|
1841
|
+
:param role: The Role (required)
|
|
1842
|
+
:type role: str
|
|
1806
1843
|
:param _request_timeout: timeout setting for this request. If one
|
|
1807
1844
|
number provided, it will be total request
|
|
1808
1845
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1825,8 +1862,9 @@ class OrganizationApi:
|
|
|
1825
1862
|
:return: Returns the result object.
|
|
1826
1863
|
""" # noqa: E501
|
|
1827
1864
|
|
|
1828
|
-
_param = self.
|
|
1865
|
+
_param = self._get_organization_permissions_serialize(
|
|
1829
1866
|
organization_id=organization_id,
|
|
1867
|
+
role=role,
|
|
1830
1868
|
_request_auth=_request_auth,
|
|
1831
1869
|
_content_type=_content_type,
|
|
1832
1870
|
_headers=_headers,
|
|
@@ -1834,8 +1872,7 @@ class OrganizationApi:
|
|
|
1834
1872
|
)
|
|
1835
1873
|
|
|
1836
1874
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1837
|
-
'200': "
|
|
1838
|
-
'404': None,
|
|
1875
|
+
'200': "List[str]",
|
|
1839
1876
|
}
|
|
1840
1877
|
response_data = self.api_client.call_api(
|
|
1841
1878
|
*_param,
|
|
@@ -1844,9 +1881,10 @@ class OrganizationApi:
|
|
|
1844
1881
|
return response_data.response
|
|
1845
1882
|
|
|
1846
1883
|
|
|
1847
|
-
def
|
|
1884
|
+
def _get_organization_permissions_serialize(
|
|
1848
1885
|
self,
|
|
1849
1886
|
organization_id,
|
|
1887
|
+
role,
|
|
1850
1888
|
_request_auth,
|
|
1851
1889
|
_content_type,
|
|
1852
1890
|
_headers,
|
|
@@ -1862,12 +1900,16 @@ class OrganizationApi:
|
|
|
1862
1900
|
_query_params: List[Tuple[str, str]] = []
|
|
1863
1901
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1864
1902
|
_form_params: List[Tuple[str, str]] = []
|
|
1865
|
-
_files: Dict[
|
|
1903
|
+
_files: Dict[
|
|
1904
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1905
|
+
] = {}
|
|
1866
1906
|
_body_params: Optional[bytes] = None
|
|
1867
1907
|
|
|
1868
1908
|
# process the path parameters
|
|
1869
1909
|
if organization_id is not None:
|
|
1870
1910
|
_path_params['organization_id'] = organization_id
|
|
1911
|
+
if role is not None:
|
|
1912
|
+
_path_params['role'] = role
|
|
1871
1913
|
# process the query parameters
|
|
1872
1914
|
# process the header parameters
|
|
1873
1915
|
# process the form parameters
|
|
@@ -1875,11 +1917,13 @@ class OrganizationApi:
|
|
|
1875
1917
|
|
|
1876
1918
|
|
|
1877
1919
|
# set the HTTP header `Accept`
|
|
1878
|
-
|
|
1879
|
-
[
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1920
|
+
if 'Accept' not in _header_params:
|
|
1921
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1922
|
+
[
|
|
1923
|
+
'application/json',
|
|
1924
|
+
'application/yaml'
|
|
1925
|
+
]
|
|
1926
|
+
)
|
|
1883
1927
|
|
|
1884
1928
|
|
|
1885
1929
|
# authentication setting
|
|
@@ -1889,7 +1933,7 @@ class OrganizationApi:
|
|
|
1889
1933
|
|
|
1890
1934
|
return self.api_client.param_serialize(
|
|
1891
1935
|
method='GET',
|
|
1892
|
-
resource_path='/organizations/{organization_id}/
|
|
1936
|
+
resource_path='/organizations/{organization_id}/permissions/{role}',
|
|
1893
1937
|
path_params=_path_params,
|
|
1894
1938
|
query_params=_query_params,
|
|
1895
1939
|
header_params=_header_params,
|
|
@@ -1906,9 +1950,9 @@ class OrganizationApi:
|
|
|
1906
1950
|
|
|
1907
1951
|
|
|
1908
1952
|
@validate_call
|
|
1909
|
-
def
|
|
1953
|
+
def get_organization_security(
|
|
1910
1954
|
self,
|
|
1911
|
-
organization_id: Annotated[
|
|
1955
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1912
1956
|
_request_timeout: Union[
|
|
1913
1957
|
None,
|
|
1914
1958
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1921,8 +1965,8 @@ class OrganizationApi:
|
|
|
1921
1965
|
_content_type: Optional[StrictStr] = None,
|
|
1922
1966
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1923
1967
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1924
|
-
) ->
|
|
1925
|
-
"""Get the Organization security
|
|
1968
|
+
) -> OrganizationSecurity:
|
|
1969
|
+
"""Get the Organization security information
|
|
1926
1970
|
|
|
1927
1971
|
|
|
1928
1972
|
:param organization_id: The Organization identifier (required)
|
|
@@ -1949,7 +1993,7 @@ class OrganizationApi:
|
|
|
1949
1993
|
:return: Returns the result object.
|
|
1950
1994
|
""" # noqa: E501
|
|
1951
1995
|
|
|
1952
|
-
_param = self.
|
|
1996
|
+
_param = self._get_organization_security_serialize(
|
|
1953
1997
|
organization_id=organization_id,
|
|
1954
1998
|
_request_auth=_request_auth,
|
|
1955
1999
|
_content_type=_content_type,
|
|
@@ -1958,7 +2002,7 @@ class OrganizationApi:
|
|
|
1958
2002
|
)
|
|
1959
2003
|
|
|
1960
2004
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1961
|
-
'200': "
|
|
2005
|
+
'200': "OrganizationSecurity",
|
|
1962
2006
|
'404': None,
|
|
1963
2007
|
}
|
|
1964
2008
|
response_data = self.api_client.call_api(
|
|
@@ -1973,9 +2017,9 @@ class OrganizationApi:
|
|
|
1973
2017
|
|
|
1974
2018
|
|
|
1975
2019
|
@validate_call
|
|
1976
|
-
def
|
|
2020
|
+
def get_organization_security_with_http_info(
|
|
1977
2021
|
self,
|
|
1978
|
-
organization_id: Annotated[
|
|
2022
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
1979
2023
|
_request_timeout: Union[
|
|
1980
2024
|
None,
|
|
1981
2025
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1988,8 +2032,8 @@ class OrganizationApi:
|
|
|
1988
2032
|
_content_type: Optional[StrictStr] = None,
|
|
1989
2033
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1990
2034
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1991
|
-
) -> ApiResponse[
|
|
1992
|
-
"""Get the Organization security
|
|
2035
|
+
) -> ApiResponse[OrganizationSecurity]:
|
|
2036
|
+
"""Get the Organization security information
|
|
1993
2037
|
|
|
1994
2038
|
|
|
1995
2039
|
:param organization_id: The Organization identifier (required)
|
|
@@ -2016,7 +2060,7 @@ class OrganizationApi:
|
|
|
2016
2060
|
:return: Returns the result object.
|
|
2017
2061
|
""" # noqa: E501
|
|
2018
2062
|
|
|
2019
|
-
_param = self.
|
|
2063
|
+
_param = self._get_organization_security_serialize(
|
|
2020
2064
|
organization_id=organization_id,
|
|
2021
2065
|
_request_auth=_request_auth,
|
|
2022
2066
|
_content_type=_content_type,
|
|
@@ -2025,7 +2069,7 @@ class OrganizationApi:
|
|
|
2025
2069
|
)
|
|
2026
2070
|
|
|
2027
2071
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2028
|
-
'200': "
|
|
2072
|
+
'200': "OrganizationSecurity",
|
|
2029
2073
|
'404': None,
|
|
2030
2074
|
}
|
|
2031
2075
|
response_data = self.api_client.call_api(
|
|
@@ -2040,9 +2084,9 @@ class OrganizationApi:
|
|
|
2040
2084
|
|
|
2041
2085
|
|
|
2042
2086
|
@validate_call
|
|
2043
|
-
def
|
|
2087
|
+
def get_organization_security_without_preload_content(
|
|
2044
2088
|
self,
|
|
2045
|
-
organization_id: Annotated[
|
|
2089
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
2046
2090
|
_request_timeout: Union[
|
|
2047
2091
|
None,
|
|
2048
2092
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2056,7 +2100,7 @@ class OrganizationApi:
|
|
|
2056
2100
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2057
2101
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2058
2102
|
) -> RESTResponseType:
|
|
2059
|
-
"""Get the Organization security
|
|
2103
|
+
"""Get the Organization security information
|
|
2060
2104
|
|
|
2061
2105
|
|
|
2062
2106
|
:param organization_id: The Organization identifier (required)
|
|
@@ -2083,7 +2127,7 @@ class OrganizationApi:
|
|
|
2083
2127
|
:return: Returns the result object.
|
|
2084
2128
|
""" # noqa: E501
|
|
2085
2129
|
|
|
2086
|
-
_param = self.
|
|
2130
|
+
_param = self._get_organization_security_serialize(
|
|
2087
2131
|
organization_id=organization_id,
|
|
2088
2132
|
_request_auth=_request_auth,
|
|
2089
2133
|
_content_type=_content_type,
|
|
@@ -2092,7 +2136,7 @@ class OrganizationApi:
|
|
|
2092
2136
|
)
|
|
2093
2137
|
|
|
2094
2138
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2095
|
-
'200': "
|
|
2139
|
+
'200': "OrganizationSecurity",
|
|
2096
2140
|
'404': None,
|
|
2097
2141
|
}
|
|
2098
2142
|
response_data = self.api_client.call_api(
|
|
@@ -2102,7 +2146,7 @@ class OrganizationApi:
|
|
|
2102
2146
|
return response_data.response
|
|
2103
2147
|
|
|
2104
2148
|
|
|
2105
|
-
def
|
|
2149
|
+
def _get_organization_security_serialize(
|
|
2106
2150
|
self,
|
|
2107
2151
|
organization_id,
|
|
2108
2152
|
_request_auth,
|
|
@@ -2120,7 +2164,9 @@ class OrganizationApi:
|
|
|
2120
2164
|
_query_params: List[Tuple[str, str]] = []
|
|
2121
2165
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2122
2166
|
_form_params: List[Tuple[str, str]] = []
|
|
2123
|
-
_files: Dict[
|
|
2167
|
+
_files: Dict[
|
|
2168
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2169
|
+
] = {}
|
|
2124
2170
|
_body_params: Optional[bytes] = None
|
|
2125
2171
|
|
|
2126
2172
|
# process the path parameters
|
|
@@ -2133,11 +2179,13 @@ class OrganizationApi:
|
|
|
2133
2179
|
|
|
2134
2180
|
|
|
2135
2181
|
# set the HTTP header `Accept`
|
|
2136
|
-
|
|
2137
|
-
[
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2182
|
+
if 'Accept' not in _header_params:
|
|
2183
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2184
|
+
[
|
|
2185
|
+
'application/json',
|
|
2186
|
+
'application/yaml'
|
|
2187
|
+
]
|
|
2188
|
+
)
|
|
2141
2189
|
|
|
2142
2190
|
|
|
2143
2191
|
# authentication setting
|
|
@@ -2147,7 +2195,7 @@ class OrganizationApi:
|
|
|
2147
2195
|
|
|
2148
2196
|
return self.api_client.param_serialize(
|
|
2149
2197
|
method='GET',
|
|
2150
|
-
resource_path='/organizations/{organization_id}/security
|
|
2198
|
+
resource_path='/organizations/{organization_id}/security',
|
|
2151
2199
|
path_params=_path_params,
|
|
2152
2200
|
query_params=_query_params,
|
|
2153
2201
|
header_params=_header_params,
|
|
@@ -2164,9 +2212,9 @@ class OrganizationApi:
|
|
|
2164
2212
|
|
|
2165
2213
|
|
|
2166
2214
|
@validate_call
|
|
2167
|
-
def
|
|
2215
|
+
def list_organization_security_users(
|
|
2168
2216
|
self,
|
|
2169
|
-
|
|
2217
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
2170
2218
|
_request_timeout: Union[
|
|
2171
2219
|
None,
|
|
2172
2220
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2179,12 +2227,12 @@ class OrganizationApi:
|
|
|
2179
2227
|
_content_type: Optional[StrictStr] = None,
|
|
2180
2228
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2181
2229
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2182
|
-
) ->
|
|
2183
|
-
"""
|
|
2230
|
+
) -> List[str]:
|
|
2231
|
+
"""Get the Organization security users list
|
|
2184
2232
|
|
|
2185
2233
|
|
|
2186
|
-
:param
|
|
2187
|
-
:type
|
|
2234
|
+
:param organization_id: The Organization identifier (required)
|
|
2235
|
+
:type organization_id: str
|
|
2188
2236
|
:param _request_timeout: timeout setting for this request. If one
|
|
2189
2237
|
number provided, it will be total request
|
|
2190
2238
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2207,8 +2255,8 @@ class OrganizationApi:
|
|
|
2207
2255
|
:return: Returns the result object.
|
|
2208
2256
|
""" # noqa: E501
|
|
2209
2257
|
|
|
2210
|
-
_param = self.
|
|
2211
|
-
|
|
2258
|
+
_param = self._list_organization_security_users_serialize(
|
|
2259
|
+
organization_id=organization_id,
|
|
2212
2260
|
_request_auth=_request_auth,
|
|
2213
2261
|
_content_type=_content_type,
|
|
2214
2262
|
_headers=_headers,
|
|
@@ -2216,8 +2264,8 @@ class OrganizationApi:
|
|
|
2216
2264
|
)
|
|
2217
2265
|
|
|
2218
2266
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2219
|
-
'
|
|
2220
|
-
'
|
|
2267
|
+
'200': "List[str]",
|
|
2268
|
+
'404': None,
|
|
2221
2269
|
}
|
|
2222
2270
|
response_data = self.api_client.call_api(
|
|
2223
2271
|
*_param,
|
|
@@ -2231,9 +2279,9 @@ class OrganizationApi:
|
|
|
2231
2279
|
|
|
2232
2280
|
|
|
2233
2281
|
@validate_call
|
|
2234
|
-
def
|
|
2282
|
+
def list_organization_security_users_with_http_info(
|
|
2235
2283
|
self,
|
|
2236
|
-
|
|
2284
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
2237
2285
|
_request_timeout: Union[
|
|
2238
2286
|
None,
|
|
2239
2287
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2246,12 +2294,12 @@ class OrganizationApi:
|
|
|
2246
2294
|
_content_type: Optional[StrictStr] = None,
|
|
2247
2295
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2248
2296
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2249
|
-
) -> ApiResponse[
|
|
2250
|
-
"""
|
|
2297
|
+
) -> ApiResponse[List[str]]:
|
|
2298
|
+
"""Get the Organization security users list
|
|
2251
2299
|
|
|
2252
2300
|
|
|
2253
|
-
:param
|
|
2254
|
-
:type
|
|
2301
|
+
:param organization_id: The Organization identifier (required)
|
|
2302
|
+
:type organization_id: str
|
|
2255
2303
|
:param _request_timeout: timeout setting for this request. If one
|
|
2256
2304
|
number provided, it will be total request
|
|
2257
2305
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2274,8 +2322,8 @@ class OrganizationApi:
|
|
|
2274
2322
|
:return: Returns the result object.
|
|
2275
2323
|
""" # noqa: E501
|
|
2276
2324
|
|
|
2277
|
-
_param = self.
|
|
2278
|
-
|
|
2325
|
+
_param = self._list_organization_security_users_serialize(
|
|
2326
|
+
organization_id=organization_id,
|
|
2279
2327
|
_request_auth=_request_auth,
|
|
2280
2328
|
_content_type=_content_type,
|
|
2281
2329
|
_headers=_headers,
|
|
@@ -2283,8 +2331,8 @@ class OrganizationApi:
|
|
|
2283
2331
|
)
|
|
2284
2332
|
|
|
2285
2333
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2286
|
-
'
|
|
2287
|
-
'
|
|
2334
|
+
'200': "List[str]",
|
|
2335
|
+
'404': None,
|
|
2288
2336
|
}
|
|
2289
2337
|
response_data = self.api_client.call_api(
|
|
2290
2338
|
*_param,
|
|
@@ -2298,9 +2346,9 @@ class OrganizationApi:
|
|
|
2298
2346
|
|
|
2299
2347
|
|
|
2300
2348
|
@validate_call
|
|
2301
|
-
def
|
|
2349
|
+
def list_organization_security_users_without_preload_content(
|
|
2302
2350
|
self,
|
|
2303
|
-
|
|
2351
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
2304
2352
|
_request_timeout: Union[
|
|
2305
2353
|
None,
|
|
2306
2354
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2314,11 +2362,11 @@ class OrganizationApi:
|
|
|
2314
2362
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2315
2363
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2316
2364
|
) -> RESTResponseType:
|
|
2317
|
-
"""
|
|
2365
|
+
"""Get the Organization security users list
|
|
2318
2366
|
|
|
2319
2367
|
|
|
2320
|
-
:param
|
|
2321
|
-
:type
|
|
2368
|
+
:param organization_id: The Organization identifier (required)
|
|
2369
|
+
:type organization_id: str
|
|
2322
2370
|
:param _request_timeout: timeout setting for this request. If one
|
|
2323
2371
|
number provided, it will be total request
|
|
2324
2372
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2341,8 +2389,8 @@ class OrganizationApi:
|
|
|
2341
2389
|
:return: Returns the result object.
|
|
2342
2390
|
""" # noqa: E501
|
|
2343
2391
|
|
|
2344
|
-
_param = self.
|
|
2345
|
-
|
|
2392
|
+
_param = self._list_organization_security_users_serialize(
|
|
2393
|
+
organization_id=organization_id,
|
|
2346
2394
|
_request_auth=_request_auth,
|
|
2347
2395
|
_content_type=_content_type,
|
|
2348
2396
|
_headers=_headers,
|
|
@@ -2350,8 +2398,8 @@ class OrganizationApi:
|
|
|
2350
2398
|
)
|
|
2351
2399
|
|
|
2352
2400
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2353
|
-
'
|
|
2354
|
-
'
|
|
2401
|
+
'200': "List[str]",
|
|
2402
|
+
'404': None,
|
|
2355
2403
|
}
|
|
2356
2404
|
response_data = self.api_client.call_api(
|
|
2357
2405
|
*_param,
|
|
@@ -2360,9 +2408,9 @@ class OrganizationApi:
|
|
|
2360
2408
|
return response_data.response
|
|
2361
2409
|
|
|
2362
2410
|
|
|
2363
|
-
def
|
|
2411
|
+
def _list_organization_security_users_serialize(
|
|
2364
2412
|
self,
|
|
2365
|
-
|
|
2413
|
+
organization_id,
|
|
2366
2414
|
_request_auth,
|
|
2367
2415
|
_content_type,
|
|
2368
2416
|
_headers,
|
|
@@ -2378,39 +2426,29 @@ class OrganizationApi:
|
|
|
2378
2426
|
_query_params: List[Tuple[str, str]] = []
|
|
2379
2427
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2380
2428
|
_form_params: List[Tuple[str, str]] = []
|
|
2381
|
-
_files: Dict[
|
|
2429
|
+
_files: Dict[
|
|
2430
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2431
|
+
] = {}
|
|
2382
2432
|
_body_params: Optional[bytes] = None
|
|
2383
2433
|
|
|
2384
2434
|
# process the path parameters
|
|
2435
|
+
if organization_id is not None:
|
|
2436
|
+
_path_params['organization_id'] = organization_id
|
|
2385
2437
|
# process the query parameters
|
|
2386
2438
|
# process the header parameters
|
|
2387
2439
|
# process the form parameters
|
|
2388
2440
|
# process the body parameter
|
|
2389
|
-
if organization is not None:
|
|
2390
|
-
_body_params = organization
|
|
2391
2441
|
|
|
2392
2442
|
|
|
2393
2443
|
# set the HTTP header `Accept`
|
|
2394
|
-
|
|
2395
|
-
[
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
# set the HTTP header `Content-Type`
|
|
2401
|
-
if _content_type:
|
|
2402
|
-
_header_params['Content-Type'] = _content_type
|
|
2403
|
-
else:
|
|
2404
|
-
_default_content_type = (
|
|
2405
|
-
self.api_client.select_header_content_type(
|
|
2406
|
-
[
|
|
2407
|
-
'application/json',
|
|
2408
|
-
'application/yaml'
|
|
2409
|
-
]
|
|
2410
|
-
)
|
|
2444
|
+
if 'Accept' not in _header_params:
|
|
2445
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2446
|
+
[
|
|
2447
|
+
'application/json',
|
|
2448
|
+
'application/yaml'
|
|
2449
|
+
]
|
|
2411
2450
|
)
|
|
2412
|
-
|
|
2413
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2451
|
+
|
|
2414
2452
|
|
|
2415
2453
|
# authentication setting
|
|
2416
2454
|
_auth_settings: List[str] = [
|
|
@@ -2418,8 +2456,8 @@ class OrganizationApi:
|
|
|
2418
2456
|
]
|
|
2419
2457
|
|
|
2420
2458
|
return self.api_client.param_serialize(
|
|
2421
|
-
method='
|
|
2422
|
-
resource_path='/organizations',
|
|
2459
|
+
method='GET',
|
|
2460
|
+
resource_path='/organizations/{organization_id}/security/users',
|
|
2423
2461
|
path_params=_path_params,
|
|
2424
2462
|
query_params=_query_params,
|
|
2425
2463
|
header_params=_header_params,
|
|
@@ -2436,10 +2474,10 @@ class OrganizationApi:
|
|
|
2436
2474
|
|
|
2437
2475
|
|
|
2438
2476
|
@validate_call
|
|
2439
|
-
def
|
|
2477
|
+
def list_organizations(
|
|
2440
2478
|
self,
|
|
2441
|
-
|
|
2442
|
-
|
|
2479
|
+
page: Annotated[Optional[StrictInt], Field(description="Page number to query (first page is at index 0)")] = None,
|
|
2480
|
+
size: Annotated[Optional[StrictInt], Field(description="Amount of result by page")] = None,
|
|
2443
2481
|
_request_timeout: Union[
|
|
2444
2482
|
None,
|
|
2445
2483
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2452,14 +2490,14 @@ class OrganizationApi:
|
|
|
2452
2490
|
_content_type: Optional[StrictStr] = None,
|
|
2453
2491
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2454
2492
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2455
|
-
) ->
|
|
2456
|
-
"""
|
|
2493
|
+
) -> List[Organization]:
|
|
2494
|
+
"""List all Organizations
|
|
2457
2495
|
|
|
2458
2496
|
|
|
2459
|
-
:param
|
|
2460
|
-
:type
|
|
2461
|
-
:param
|
|
2462
|
-
:type
|
|
2497
|
+
:param page: Page number to query (first page is at index 0)
|
|
2498
|
+
:type page: int
|
|
2499
|
+
:param size: Amount of result by page
|
|
2500
|
+
:type size: int
|
|
2463
2501
|
:param _request_timeout: timeout setting for this request. If one
|
|
2464
2502
|
number provided, it will be total request
|
|
2465
2503
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2482,9 +2520,9 @@ class OrganizationApi:
|
|
|
2482
2520
|
:return: Returns the result object.
|
|
2483
2521
|
""" # noqa: E501
|
|
2484
2522
|
|
|
2485
|
-
_param = self.
|
|
2486
|
-
|
|
2487
|
-
|
|
2523
|
+
_param = self._list_organizations_serialize(
|
|
2524
|
+
page=page,
|
|
2525
|
+
size=size,
|
|
2488
2526
|
_request_auth=_request_auth,
|
|
2489
2527
|
_content_type=_content_type,
|
|
2490
2528
|
_headers=_headers,
|
|
@@ -2492,8 +2530,7 @@ class OrganizationApi:
|
|
|
2492
2530
|
)
|
|
2493
2531
|
|
|
2494
2532
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2495
|
-
'
|
|
2496
|
-
'404': None,
|
|
2533
|
+
'200': "List[Organization]",
|
|
2497
2534
|
}
|
|
2498
2535
|
response_data = self.api_client.call_api(
|
|
2499
2536
|
*_param,
|
|
@@ -2507,10 +2544,10 @@ class OrganizationApi:
|
|
|
2507
2544
|
|
|
2508
2545
|
|
|
2509
2546
|
@validate_call
|
|
2510
|
-
def
|
|
2547
|
+
def list_organizations_with_http_info(
|
|
2511
2548
|
self,
|
|
2512
|
-
|
|
2513
|
-
|
|
2549
|
+
page: Annotated[Optional[StrictInt], Field(description="Page number to query (first page is at index 0)")] = None,
|
|
2550
|
+
size: Annotated[Optional[StrictInt], Field(description="Amount of result by page")] = None,
|
|
2514
2551
|
_request_timeout: Union[
|
|
2515
2552
|
None,
|
|
2516
2553
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2523,14 +2560,14 @@ class OrganizationApi:
|
|
|
2523
2560
|
_content_type: Optional[StrictStr] = None,
|
|
2524
2561
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2525
2562
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2526
|
-
) -> ApiResponse[
|
|
2527
|
-
"""
|
|
2563
|
+
) -> ApiResponse[List[Organization]]:
|
|
2564
|
+
"""List all Organizations
|
|
2528
2565
|
|
|
2529
2566
|
|
|
2530
|
-
:param
|
|
2531
|
-
:type
|
|
2532
|
-
:param
|
|
2533
|
-
:type
|
|
2567
|
+
:param page: Page number to query (first page is at index 0)
|
|
2568
|
+
:type page: int
|
|
2569
|
+
:param size: Amount of result by page
|
|
2570
|
+
:type size: int
|
|
2534
2571
|
:param _request_timeout: timeout setting for this request. If one
|
|
2535
2572
|
number provided, it will be total request
|
|
2536
2573
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2553,9 +2590,9 @@ class OrganizationApi:
|
|
|
2553
2590
|
:return: Returns the result object.
|
|
2554
2591
|
""" # noqa: E501
|
|
2555
2592
|
|
|
2556
|
-
_param = self.
|
|
2557
|
-
|
|
2558
|
-
|
|
2593
|
+
_param = self._list_organizations_serialize(
|
|
2594
|
+
page=page,
|
|
2595
|
+
size=size,
|
|
2559
2596
|
_request_auth=_request_auth,
|
|
2560
2597
|
_content_type=_content_type,
|
|
2561
2598
|
_headers=_headers,
|
|
@@ -2563,8 +2600,7 @@ class OrganizationApi:
|
|
|
2563
2600
|
)
|
|
2564
2601
|
|
|
2565
2602
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2566
|
-
'
|
|
2567
|
-
'404': None,
|
|
2603
|
+
'200': "List[Organization]",
|
|
2568
2604
|
}
|
|
2569
2605
|
response_data = self.api_client.call_api(
|
|
2570
2606
|
*_param,
|
|
@@ -2578,10 +2614,10 @@ class OrganizationApi:
|
|
|
2578
2614
|
|
|
2579
2615
|
|
|
2580
2616
|
@validate_call
|
|
2581
|
-
def
|
|
2617
|
+
def list_organizations_without_preload_content(
|
|
2582
2618
|
self,
|
|
2583
|
-
|
|
2584
|
-
|
|
2619
|
+
page: Annotated[Optional[StrictInt], Field(description="Page number to query (first page is at index 0)")] = None,
|
|
2620
|
+
size: Annotated[Optional[StrictInt], Field(description="Amount of result by page")] = None,
|
|
2585
2621
|
_request_timeout: Union[
|
|
2586
2622
|
None,
|
|
2587
2623
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2595,13 +2631,13 @@ class OrganizationApi:
|
|
|
2595
2631
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2596
2632
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2597
2633
|
) -> RESTResponseType:
|
|
2598
|
-
"""
|
|
2634
|
+
"""List all Organizations
|
|
2599
2635
|
|
|
2600
2636
|
|
|
2601
|
-
:param
|
|
2602
|
-
:type
|
|
2603
|
-
:param
|
|
2604
|
-
:type
|
|
2637
|
+
:param page: Page number to query (first page is at index 0)
|
|
2638
|
+
:type page: int
|
|
2639
|
+
:param size: Amount of result by page
|
|
2640
|
+
:type size: int
|
|
2605
2641
|
:param _request_timeout: timeout setting for this request. If one
|
|
2606
2642
|
number provided, it will be total request
|
|
2607
2643
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2624,9 +2660,9 @@ class OrganizationApi:
|
|
|
2624
2660
|
:return: Returns the result object.
|
|
2625
2661
|
""" # noqa: E501
|
|
2626
2662
|
|
|
2627
|
-
_param = self.
|
|
2628
|
-
|
|
2629
|
-
|
|
2663
|
+
_param = self._list_organizations_serialize(
|
|
2664
|
+
page=page,
|
|
2665
|
+
size=size,
|
|
2630
2666
|
_request_auth=_request_auth,
|
|
2631
2667
|
_content_type=_content_type,
|
|
2632
2668
|
_headers=_headers,
|
|
@@ -2634,8 +2670,7 @@ class OrganizationApi:
|
|
|
2634
2670
|
)
|
|
2635
2671
|
|
|
2636
2672
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2637
|
-
'
|
|
2638
|
-
'404': None,
|
|
2673
|
+
'200': "List[Organization]",
|
|
2639
2674
|
}
|
|
2640
2675
|
response_data = self.api_client.call_api(
|
|
2641
2676
|
*_param,
|
|
@@ -2644,10 +2679,10 @@ class OrganizationApi:
|
|
|
2644
2679
|
return response_data.response
|
|
2645
2680
|
|
|
2646
2681
|
|
|
2647
|
-
def
|
|
2682
|
+
def _list_organizations_serialize(
|
|
2648
2683
|
self,
|
|
2649
|
-
|
|
2650
|
-
|
|
2684
|
+
page,
|
|
2685
|
+
size,
|
|
2651
2686
|
_request_auth,
|
|
2652
2687
|
_content_type,
|
|
2653
2688
|
_headers,
|
|
@@ -2663,20 +2698,34 @@ class OrganizationApi:
|
|
|
2663
2698
|
_query_params: List[Tuple[str, str]] = []
|
|
2664
2699
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2665
2700
|
_form_params: List[Tuple[str, str]] = []
|
|
2666
|
-
_files: Dict[
|
|
2701
|
+
_files: Dict[
|
|
2702
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2703
|
+
] = {}
|
|
2667
2704
|
_body_params: Optional[bytes] = None
|
|
2668
2705
|
|
|
2669
2706
|
# process the path parameters
|
|
2670
|
-
if organization_id is not None:
|
|
2671
|
-
_path_params['organization_id'] = organization_id
|
|
2672
|
-
if identity_id is not None:
|
|
2673
|
-
_path_params['identity_id'] = identity_id
|
|
2674
2707
|
# process the query parameters
|
|
2708
|
+
if page is not None:
|
|
2709
|
+
|
|
2710
|
+
_query_params.append(('page', page))
|
|
2711
|
+
|
|
2712
|
+
if size is not None:
|
|
2713
|
+
|
|
2714
|
+
_query_params.append(('size', size))
|
|
2715
|
+
|
|
2675
2716
|
# process the header parameters
|
|
2676
2717
|
# process the form parameters
|
|
2677
2718
|
# process the body parameter
|
|
2678
2719
|
|
|
2679
2720
|
|
|
2721
|
+
# set the HTTP header `Accept`
|
|
2722
|
+
if 'Accept' not in _header_params:
|
|
2723
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2724
|
+
[
|
|
2725
|
+
'application/json',
|
|
2726
|
+
'application/yaml'
|
|
2727
|
+
]
|
|
2728
|
+
)
|
|
2680
2729
|
|
|
2681
2730
|
|
|
2682
2731
|
# authentication setting
|
|
@@ -2685,8 +2734,8 @@ class OrganizationApi:
|
|
|
2685
2734
|
]
|
|
2686
2735
|
|
|
2687
2736
|
return self.api_client.param_serialize(
|
|
2688
|
-
method='
|
|
2689
|
-
resource_path='/organizations
|
|
2737
|
+
method='GET',
|
|
2738
|
+
resource_path='/organizations',
|
|
2690
2739
|
path_params=_path_params,
|
|
2691
2740
|
query_params=_query_params,
|
|
2692
2741
|
header_params=_header_params,
|
|
@@ -2703,10 +2752,8 @@ class OrganizationApi:
|
|
|
2703
2752
|
|
|
2704
2753
|
|
|
2705
2754
|
@validate_call
|
|
2706
|
-
def
|
|
2755
|
+
def list_permissions(
|
|
2707
2756
|
self,
|
|
2708
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2709
|
-
organization_role: Annotated[OrganizationRole, Field(description="This change the organization default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the organization.")],
|
|
2710
2757
|
_request_timeout: Union[
|
|
2711
2758
|
None,
|
|
2712
2759
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2719,14 +2766,10 @@ class OrganizationApi:
|
|
|
2719
2766
|
_content_type: Optional[StrictStr] = None,
|
|
2720
2767
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2721
2768
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2722
|
-
) ->
|
|
2723
|
-
"""
|
|
2769
|
+
) -> List[ComponentRolePermissions]:
|
|
2770
|
+
"""Get all permissions per components
|
|
2724
2771
|
|
|
2725
2772
|
|
|
2726
|
-
:param organization_id: the Organization identifier (required)
|
|
2727
|
-
:type organization_id: str
|
|
2728
|
-
:param organization_role: This change the organization default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the organization. (required)
|
|
2729
|
-
:type organization_role: OrganizationRole
|
|
2730
2773
|
:param _request_timeout: timeout setting for this request. If one
|
|
2731
2774
|
number provided, it will be total request
|
|
2732
2775
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2749,9 +2792,7 @@ class OrganizationApi:
|
|
|
2749
2792
|
:return: Returns the result object.
|
|
2750
2793
|
""" # noqa: E501
|
|
2751
2794
|
|
|
2752
|
-
_param = self.
|
|
2753
|
-
organization_id=organization_id,
|
|
2754
|
-
organization_role=organization_role,
|
|
2795
|
+
_param = self._list_permissions_serialize(
|
|
2755
2796
|
_request_auth=_request_auth,
|
|
2756
2797
|
_content_type=_content_type,
|
|
2757
2798
|
_headers=_headers,
|
|
@@ -2759,8 +2800,7 @@ class OrganizationApi:
|
|
|
2759
2800
|
)
|
|
2760
2801
|
|
|
2761
2802
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2762
|
-
'
|
|
2763
|
-
'404': None,
|
|
2803
|
+
'200': "List[ComponentRolePermissions]",
|
|
2764
2804
|
}
|
|
2765
2805
|
response_data = self.api_client.call_api(
|
|
2766
2806
|
*_param,
|
|
@@ -2774,10 +2814,8 @@ class OrganizationApi:
|
|
|
2774
2814
|
|
|
2775
2815
|
|
|
2776
2816
|
@validate_call
|
|
2777
|
-
def
|
|
2817
|
+
def list_permissions_with_http_info(
|
|
2778
2818
|
self,
|
|
2779
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2780
|
-
organization_role: Annotated[OrganizationRole, Field(description="This change the organization default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the organization.")],
|
|
2781
2819
|
_request_timeout: Union[
|
|
2782
2820
|
None,
|
|
2783
2821
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2790,14 +2828,10 @@ class OrganizationApi:
|
|
|
2790
2828
|
_content_type: Optional[StrictStr] = None,
|
|
2791
2829
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2792
2830
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2793
|
-
) -> ApiResponse[
|
|
2794
|
-
"""
|
|
2831
|
+
) -> ApiResponse[List[ComponentRolePermissions]]:
|
|
2832
|
+
"""Get all permissions per components
|
|
2795
2833
|
|
|
2796
2834
|
|
|
2797
|
-
:param organization_id: the Organization identifier (required)
|
|
2798
|
-
:type organization_id: str
|
|
2799
|
-
:param organization_role: This change the organization default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the organization. (required)
|
|
2800
|
-
:type organization_role: OrganizationRole
|
|
2801
2835
|
:param _request_timeout: timeout setting for this request. If one
|
|
2802
2836
|
number provided, it will be total request
|
|
2803
2837
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2820,9 +2854,7 @@ class OrganizationApi:
|
|
|
2820
2854
|
:return: Returns the result object.
|
|
2821
2855
|
""" # noqa: E501
|
|
2822
2856
|
|
|
2823
|
-
_param = self.
|
|
2824
|
-
organization_id=organization_id,
|
|
2825
|
-
organization_role=organization_role,
|
|
2857
|
+
_param = self._list_permissions_serialize(
|
|
2826
2858
|
_request_auth=_request_auth,
|
|
2827
2859
|
_content_type=_content_type,
|
|
2828
2860
|
_headers=_headers,
|
|
@@ -2830,8 +2862,7 @@ class OrganizationApi:
|
|
|
2830
2862
|
)
|
|
2831
2863
|
|
|
2832
2864
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2833
|
-
'
|
|
2834
|
-
'404': None,
|
|
2865
|
+
'200': "List[ComponentRolePermissions]",
|
|
2835
2866
|
}
|
|
2836
2867
|
response_data = self.api_client.call_api(
|
|
2837
2868
|
*_param,
|
|
@@ -2845,10 +2876,8 @@ class OrganizationApi:
|
|
|
2845
2876
|
|
|
2846
2877
|
|
|
2847
2878
|
@validate_call
|
|
2848
|
-
def
|
|
2879
|
+
def list_permissions_without_preload_content(
|
|
2849
2880
|
self,
|
|
2850
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2851
|
-
organization_role: Annotated[OrganizationRole, Field(description="This change the organization default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the organization.")],
|
|
2852
2881
|
_request_timeout: Union[
|
|
2853
2882
|
None,
|
|
2854
2883
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2862,853 +2891,9 @@ class OrganizationApi:
|
|
|
2862
2891
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2863
2892
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2864
2893
|
) -> RESTResponseType:
|
|
2865
|
-
"""
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
:param organization_id: the Organization identifier (required)
|
|
2869
|
-
:type organization_id: str
|
|
2870
|
-
:param organization_role: This change the organization default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the organization. (required)
|
|
2871
|
-
:type organization_role: OrganizationRole
|
|
2872
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2873
|
-
number provided, it will be total request
|
|
2874
|
-
timeout. It can also be a pair (tuple) of
|
|
2875
|
-
(connection, read) timeouts.
|
|
2876
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2877
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2878
|
-
request; this effectively ignores the
|
|
2879
|
-
authentication in the spec for a single request.
|
|
2880
|
-
:type _request_auth: dict, optional
|
|
2881
|
-
:param _content_type: force content-type for the request.
|
|
2882
|
-
:type _content_type: str, Optional
|
|
2883
|
-
:param _headers: set to override the headers for a single
|
|
2884
|
-
request; this effectively ignores the headers
|
|
2885
|
-
in the spec for a single request.
|
|
2886
|
-
:type _headers: dict, optional
|
|
2887
|
-
:param _host_index: set to override the host_index for a single
|
|
2888
|
-
request; this effectively ignores the host_index
|
|
2889
|
-
in the spec for a single request.
|
|
2890
|
-
:type _host_index: int, optional
|
|
2891
|
-
:return: Returns the result object.
|
|
2892
|
-
""" # noqa: E501
|
|
2893
|
-
|
|
2894
|
-
_param = self._set_organization_default_security_serialize(
|
|
2895
|
-
organization_id=organization_id,
|
|
2896
|
-
organization_role=organization_role,
|
|
2897
|
-
_request_auth=_request_auth,
|
|
2898
|
-
_content_type=_content_type,
|
|
2899
|
-
_headers=_headers,
|
|
2900
|
-
_host_index=_host_index
|
|
2901
|
-
)
|
|
2902
|
-
|
|
2903
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2904
|
-
'201': "OrganizationSecurity",
|
|
2905
|
-
'404': None,
|
|
2906
|
-
}
|
|
2907
|
-
response_data = self.api_client.call_api(
|
|
2908
|
-
*_param,
|
|
2909
|
-
_request_timeout=_request_timeout
|
|
2910
|
-
)
|
|
2911
|
-
return response_data.response
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
def _set_organization_default_security_serialize(
|
|
2915
|
-
self,
|
|
2916
|
-
organization_id,
|
|
2917
|
-
organization_role,
|
|
2918
|
-
_request_auth,
|
|
2919
|
-
_content_type,
|
|
2920
|
-
_headers,
|
|
2921
|
-
_host_index,
|
|
2922
|
-
) -> RequestSerialized:
|
|
2923
|
-
|
|
2924
|
-
_host = None
|
|
2925
|
-
|
|
2926
|
-
_collection_formats: Dict[str, str] = {
|
|
2927
|
-
}
|
|
2928
|
-
|
|
2929
|
-
_path_params: Dict[str, str] = {}
|
|
2930
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2931
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2932
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2933
|
-
_files: Dict[str, str] = {}
|
|
2934
|
-
_body_params: Optional[bytes] = None
|
|
2935
|
-
|
|
2936
|
-
# process the path parameters
|
|
2937
|
-
if organization_id is not None:
|
|
2938
|
-
_path_params['organization_id'] = organization_id
|
|
2939
|
-
# process the query parameters
|
|
2940
|
-
# process the header parameters
|
|
2941
|
-
# process the form parameters
|
|
2942
|
-
# process the body parameter
|
|
2943
|
-
if organization_role is not None:
|
|
2944
|
-
_body_params = organization_role
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
# set the HTTP header `Accept`
|
|
2948
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2949
|
-
[
|
|
2950
|
-
'application/json'
|
|
2951
|
-
]
|
|
2952
|
-
)
|
|
2953
|
-
|
|
2954
|
-
# set the HTTP header `Content-Type`
|
|
2955
|
-
if _content_type:
|
|
2956
|
-
_header_params['Content-Type'] = _content_type
|
|
2957
|
-
else:
|
|
2958
|
-
_default_content_type = (
|
|
2959
|
-
self.api_client.select_header_content_type(
|
|
2960
|
-
[
|
|
2961
|
-
'application/json',
|
|
2962
|
-
'application/yaml'
|
|
2963
|
-
]
|
|
2964
|
-
)
|
|
2965
|
-
)
|
|
2966
|
-
if _default_content_type is not None:
|
|
2967
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2968
|
-
|
|
2969
|
-
# authentication setting
|
|
2970
|
-
_auth_settings: List[str] = [
|
|
2971
|
-
'oAuth2AuthCode'
|
|
2972
|
-
]
|
|
2973
|
-
|
|
2974
|
-
return self.api_client.param_serialize(
|
|
2975
|
-
method='POST',
|
|
2976
|
-
resource_path='/organizations/{organization_id}/security/default',
|
|
2977
|
-
path_params=_path_params,
|
|
2978
|
-
query_params=_query_params,
|
|
2979
|
-
header_params=_header_params,
|
|
2980
|
-
body=_body_params,
|
|
2981
|
-
post_params=_form_params,
|
|
2982
|
-
files=_files,
|
|
2983
|
-
auth_settings=_auth_settings,
|
|
2984
|
-
collection_formats=_collection_formats,
|
|
2985
|
-
_host=_host,
|
|
2986
|
-
_request_auth=_request_auth
|
|
2987
|
-
)
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
@validate_call
|
|
2993
|
-
def unregister_organization(
|
|
2994
|
-
self,
|
|
2995
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2996
|
-
_request_timeout: Union[
|
|
2997
|
-
None,
|
|
2998
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2999
|
-
Tuple[
|
|
3000
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3001
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3002
|
-
]
|
|
3003
|
-
] = None,
|
|
3004
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3005
|
-
_content_type: Optional[StrictStr] = None,
|
|
3006
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3007
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3008
|
-
) -> None:
|
|
3009
|
-
"""Unregister an organization
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
:param organization_id: the Organization identifier (required)
|
|
3013
|
-
:type organization_id: str
|
|
3014
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3015
|
-
number provided, it will be total request
|
|
3016
|
-
timeout. It can also be a pair (tuple) of
|
|
3017
|
-
(connection, read) timeouts.
|
|
3018
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3019
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3020
|
-
request; this effectively ignores the
|
|
3021
|
-
authentication in the spec for a single request.
|
|
3022
|
-
:type _request_auth: dict, optional
|
|
3023
|
-
:param _content_type: force content-type for the request.
|
|
3024
|
-
:type _content_type: str, Optional
|
|
3025
|
-
:param _headers: set to override the headers for a single
|
|
3026
|
-
request; this effectively ignores the headers
|
|
3027
|
-
in the spec for a single request.
|
|
3028
|
-
:type _headers: dict, optional
|
|
3029
|
-
:param _host_index: set to override the host_index for a single
|
|
3030
|
-
request; this effectively ignores the host_index
|
|
3031
|
-
in the spec for a single request.
|
|
3032
|
-
:type _host_index: int, optional
|
|
3033
|
-
:return: Returns the result object.
|
|
3034
|
-
""" # noqa: E501
|
|
3035
|
-
|
|
3036
|
-
_param = self._unregister_organization_serialize(
|
|
3037
|
-
organization_id=organization_id,
|
|
3038
|
-
_request_auth=_request_auth,
|
|
3039
|
-
_content_type=_content_type,
|
|
3040
|
-
_headers=_headers,
|
|
3041
|
-
_host_index=_host_index
|
|
3042
|
-
)
|
|
3043
|
-
|
|
3044
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3045
|
-
'204': None,
|
|
3046
|
-
'404': None,
|
|
3047
|
-
}
|
|
3048
|
-
response_data = self.api_client.call_api(
|
|
3049
|
-
*_param,
|
|
3050
|
-
_request_timeout=_request_timeout
|
|
3051
|
-
)
|
|
3052
|
-
response_data.read()
|
|
3053
|
-
return self.api_client.response_deserialize(
|
|
3054
|
-
response_data=response_data,
|
|
3055
|
-
response_types_map=_response_types_map,
|
|
3056
|
-
).data
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
@validate_call
|
|
3060
|
-
def unregister_organization_with_http_info(
|
|
3061
|
-
self,
|
|
3062
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
3063
|
-
_request_timeout: Union[
|
|
3064
|
-
None,
|
|
3065
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3066
|
-
Tuple[
|
|
3067
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3068
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3069
|
-
]
|
|
3070
|
-
] = None,
|
|
3071
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3072
|
-
_content_type: Optional[StrictStr] = None,
|
|
3073
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3074
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3075
|
-
) -> ApiResponse[None]:
|
|
3076
|
-
"""Unregister an organization
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
:param organization_id: the Organization identifier (required)
|
|
3080
|
-
:type organization_id: str
|
|
3081
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3082
|
-
number provided, it will be total request
|
|
3083
|
-
timeout. It can also be a pair (tuple) of
|
|
3084
|
-
(connection, read) timeouts.
|
|
3085
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3086
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3087
|
-
request; this effectively ignores the
|
|
3088
|
-
authentication in the spec for a single request.
|
|
3089
|
-
:type _request_auth: dict, optional
|
|
3090
|
-
:param _content_type: force content-type for the request.
|
|
3091
|
-
:type _content_type: str, Optional
|
|
3092
|
-
:param _headers: set to override the headers for a single
|
|
3093
|
-
request; this effectively ignores the headers
|
|
3094
|
-
in the spec for a single request.
|
|
3095
|
-
:type _headers: dict, optional
|
|
3096
|
-
:param _host_index: set to override the host_index for a single
|
|
3097
|
-
request; this effectively ignores the host_index
|
|
3098
|
-
in the spec for a single request.
|
|
3099
|
-
:type _host_index: int, optional
|
|
3100
|
-
:return: Returns the result object.
|
|
3101
|
-
""" # noqa: E501
|
|
3102
|
-
|
|
3103
|
-
_param = self._unregister_organization_serialize(
|
|
3104
|
-
organization_id=organization_id,
|
|
3105
|
-
_request_auth=_request_auth,
|
|
3106
|
-
_content_type=_content_type,
|
|
3107
|
-
_headers=_headers,
|
|
3108
|
-
_host_index=_host_index
|
|
3109
|
-
)
|
|
3110
|
-
|
|
3111
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3112
|
-
'204': None,
|
|
3113
|
-
'404': None,
|
|
3114
|
-
}
|
|
3115
|
-
response_data = self.api_client.call_api(
|
|
3116
|
-
*_param,
|
|
3117
|
-
_request_timeout=_request_timeout
|
|
3118
|
-
)
|
|
3119
|
-
response_data.read()
|
|
3120
|
-
return self.api_client.response_deserialize(
|
|
3121
|
-
response_data=response_data,
|
|
3122
|
-
response_types_map=_response_types_map,
|
|
3123
|
-
)
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
@validate_call
|
|
3127
|
-
def unregister_organization_without_preload_content(
|
|
3128
|
-
self,
|
|
3129
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
3130
|
-
_request_timeout: Union[
|
|
3131
|
-
None,
|
|
3132
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3133
|
-
Tuple[
|
|
3134
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3135
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3136
|
-
]
|
|
3137
|
-
] = None,
|
|
3138
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3139
|
-
_content_type: Optional[StrictStr] = None,
|
|
3140
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3141
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3142
|
-
) -> RESTResponseType:
|
|
3143
|
-
"""Unregister an organization
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
:param organization_id: the Organization identifier (required)
|
|
3147
|
-
:type organization_id: str
|
|
3148
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3149
|
-
number provided, it will be total request
|
|
3150
|
-
timeout. It can also be a pair (tuple) of
|
|
3151
|
-
(connection, read) timeouts.
|
|
3152
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3153
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3154
|
-
request; this effectively ignores the
|
|
3155
|
-
authentication in the spec for a single request.
|
|
3156
|
-
:type _request_auth: dict, optional
|
|
3157
|
-
:param _content_type: force content-type for the request.
|
|
3158
|
-
:type _content_type: str, Optional
|
|
3159
|
-
:param _headers: set to override the headers for a single
|
|
3160
|
-
request; this effectively ignores the headers
|
|
3161
|
-
in the spec for a single request.
|
|
3162
|
-
:type _headers: dict, optional
|
|
3163
|
-
:param _host_index: set to override the host_index for a single
|
|
3164
|
-
request; this effectively ignores the host_index
|
|
3165
|
-
in the spec for a single request.
|
|
3166
|
-
:type _host_index: int, optional
|
|
3167
|
-
:return: Returns the result object.
|
|
3168
|
-
""" # noqa: E501
|
|
3169
|
-
|
|
3170
|
-
_param = self._unregister_organization_serialize(
|
|
3171
|
-
organization_id=organization_id,
|
|
3172
|
-
_request_auth=_request_auth,
|
|
3173
|
-
_content_type=_content_type,
|
|
3174
|
-
_headers=_headers,
|
|
3175
|
-
_host_index=_host_index
|
|
3176
|
-
)
|
|
3177
|
-
|
|
3178
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3179
|
-
'204': None,
|
|
3180
|
-
'404': None,
|
|
3181
|
-
}
|
|
3182
|
-
response_data = self.api_client.call_api(
|
|
3183
|
-
*_param,
|
|
3184
|
-
_request_timeout=_request_timeout
|
|
3185
|
-
)
|
|
3186
|
-
return response_data.response
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
def _unregister_organization_serialize(
|
|
3190
|
-
self,
|
|
3191
|
-
organization_id,
|
|
3192
|
-
_request_auth,
|
|
3193
|
-
_content_type,
|
|
3194
|
-
_headers,
|
|
3195
|
-
_host_index,
|
|
3196
|
-
) -> RequestSerialized:
|
|
3197
|
-
|
|
3198
|
-
_host = None
|
|
3199
|
-
|
|
3200
|
-
_collection_formats: Dict[str, str] = {
|
|
3201
|
-
}
|
|
3202
|
-
|
|
3203
|
-
_path_params: Dict[str, str] = {}
|
|
3204
|
-
_query_params: List[Tuple[str, str]] = []
|
|
3205
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3206
|
-
_form_params: List[Tuple[str, str]] = []
|
|
3207
|
-
_files: Dict[str, str] = {}
|
|
3208
|
-
_body_params: Optional[bytes] = None
|
|
3209
|
-
|
|
3210
|
-
# process the path parameters
|
|
3211
|
-
if organization_id is not None:
|
|
3212
|
-
_path_params['organization_id'] = organization_id
|
|
3213
|
-
# process the query parameters
|
|
3214
|
-
# process the header parameters
|
|
3215
|
-
# process the form parameters
|
|
3216
|
-
# process the body parameter
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
# authentication setting
|
|
3222
|
-
_auth_settings: List[str] = [
|
|
3223
|
-
'oAuth2AuthCode'
|
|
3224
|
-
]
|
|
3225
|
-
|
|
3226
|
-
return self.api_client.param_serialize(
|
|
3227
|
-
method='DELETE',
|
|
3228
|
-
resource_path='/organizations/{organization_id}',
|
|
3229
|
-
path_params=_path_params,
|
|
3230
|
-
query_params=_query_params,
|
|
3231
|
-
header_params=_header_params,
|
|
3232
|
-
body=_body_params,
|
|
3233
|
-
post_params=_form_params,
|
|
3234
|
-
files=_files,
|
|
3235
|
-
auth_settings=_auth_settings,
|
|
3236
|
-
collection_formats=_collection_formats,
|
|
3237
|
-
_host=_host,
|
|
3238
|
-
_request_auth=_request_auth
|
|
3239
|
-
)
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
@validate_call
|
|
3245
|
-
def update_organization(
|
|
3246
|
-
self,
|
|
3247
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
3248
|
-
organization: Annotated[Organization, Field(description="the new Organization details. This endpoint can't be used to update security")],
|
|
3249
|
-
_request_timeout: Union[
|
|
3250
|
-
None,
|
|
3251
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3252
|
-
Tuple[
|
|
3253
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3254
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3255
|
-
]
|
|
3256
|
-
] = None,
|
|
3257
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3258
|
-
_content_type: Optional[StrictStr] = None,
|
|
3259
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3260
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3261
|
-
) -> Organization:
|
|
3262
|
-
"""Update an Organization
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
:param organization_id: the Organization identifier (required)
|
|
3266
|
-
:type organization_id: str
|
|
3267
|
-
:param organization: the new Organization details. This endpoint can't be used to update security (required)
|
|
3268
|
-
:type organization: Organization
|
|
3269
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3270
|
-
number provided, it will be total request
|
|
3271
|
-
timeout. It can also be a pair (tuple) of
|
|
3272
|
-
(connection, read) timeouts.
|
|
3273
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3274
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3275
|
-
request; this effectively ignores the
|
|
3276
|
-
authentication in the spec for a single request.
|
|
3277
|
-
:type _request_auth: dict, optional
|
|
3278
|
-
:param _content_type: force content-type for the request.
|
|
3279
|
-
:type _content_type: str, Optional
|
|
3280
|
-
:param _headers: set to override the headers for a single
|
|
3281
|
-
request; this effectively ignores the headers
|
|
3282
|
-
in the spec for a single request.
|
|
3283
|
-
:type _headers: dict, optional
|
|
3284
|
-
:param _host_index: set to override the host_index for a single
|
|
3285
|
-
request; this effectively ignores the host_index
|
|
3286
|
-
in the spec for a single request.
|
|
3287
|
-
:type _host_index: int, optional
|
|
3288
|
-
:return: Returns the result object.
|
|
3289
|
-
""" # noqa: E501
|
|
3290
|
-
|
|
3291
|
-
_param = self._update_organization_serialize(
|
|
3292
|
-
organization_id=organization_id,
|
|
3293
|
-
organization=organization,
|
|
3294
|
-
_request_auth=_request_auth,
|
|
3295
|
-
_content_type=_content_type,
|
|
3296
|
-
_headers=_headers,
|
|
3297
|
-
_host_index=_host_index
|
|
3298
|
-
)
|
|
3299
|
-
|
|
3300
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3301
|
-
'200': "Organization",
|
|
3302
|
-
'400': None,
|
|
3303
|
-
'404': None,
|
|
3304
|
-
}
|
|
3305
|
-
response_data = self.api_client.call_api(
|
|
3306
|
-
*_param,
|
|
3307
|
-
_request_timeout=_request_timeout
|
|
3308
|
-
)
|
|
3309
|
-
response_data.read()
|
|
3310
|
-
return self.api_client.response_deserialize(
|
|
3311
|
-
response_data=response_data,
|
|
3312
|
-
response_types_map=_response_types_map,
|
|
3313
|
-
).data
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
@validate_call
|
|
3317
|
-
def update_organization_with_http_info(
|
|
3318
|
-
self,
|
|
3319
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
3320
|
-
organization: Annotated[Organization, Field(description="the new Organization details. This endpoint can't be used to update security")],
|
|
3321
|
-
_request_timeout: Union[
|
|
3322
|
-
None,
|
|
3323
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3324
|
-
Tuple[
|
|
3325
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3326
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3327
|
-
]
|
|
3328
|
-
] = None,
|
|
3329
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3330
|
-
_content_type: Optional[StrictStr] = None,
|
|
3331
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3332
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3333
|
-
) -> ApiResponse[Organization]:
|
|
3334
|
-
"""Update an Organization
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
:param organization_id: the Organization identifier (required)
|
|
3338
|
-
:type organization_id: str
|
|
3339
|
-
:param organization: the new Organization details. This endpoint can't be used to update security (required)
|
|
3340
|
-
:type organization: Organization
|
|
3341
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3342
|
-
number provided, it will be total request
|
|
3343
|
-
timeout. It can also be a pair (tuple) of
|
|
3344
|
-
(connection, read) timeouts.
|
|
3345
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3346
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3347
|
-
request; this effectively ignores the
|
|
3348
|
-
authentication in the spec for a single request.
|
|
3349
|
-
:type _request_auth: dict, optional
|
|
3350
|
-
:param _content_type: force content-type for the request.
|
|
3351
|
-
:type _content_type: str, Optional
|
|
3352
|
-
:param _headers: set to override the headers for a single
|
|
3353
|
-
request; this effectively ignores the headers
|
|
3354
|
-
in the spec for a single request.
|
|
3355
|
-
:type _headers: dict, optional
|
|
3356
|
-
:param _host_index: set to override the host_index for a single
|
|
3357
|
-
request; this effectively ignores the host_index
|
|
3358
|
-
in the spec for a single request.
|
|
3359
|
-
:type _host_index: int, optional
|
|
3360
|
-
:return: Returns the result object.
|
|
3361
|
-
""" # noqa: E501
|
|
3362
|
-
|
|
3363
|
-
_param = self._update_organization_serialize(
|
|
3364
|
-
organization_id=organization_id,
|
|
3365
|
-
organization=organization,
|
|
3366
|
-
_request_auth=_request_auth,
|
|
3367
|
-
_content_type=_content_type,
|
|
3368
|
-
_headers=_headers,
|
|
3369
|
-
_host_index=_host_index
|
|
3370
|
-
)
|
|
3371
|
-
|
|
3372
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3373
|
-
'200': "Organization",
|
|
3374
|
-
'400': None,
|
|
3375
|
-
'404': None,
|
|
3376
|
-
}
|
|
3377
|
-
response_data = self.api_client.call_api(
|
|
3378
|
-
*_param,
|
|
3379
|
-
_request_timeout=_request_timeout
|
|
3380
|
-
)
|
|
3381
|
-
response_data.read()
|
|
3382
|
-
return self.api_client.response_deserialize(
|
|
3383
|
-
response_data=response_data,
|
|
3384
|
-
response_types_map=_response_types_map,
|
|
3385
|
-
)
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
@validate_call
|
|
3389
|
-
def update_organization_without_preload_content(
|
|
3390
|
-
self,
|
|
3391
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
3392
|
-
organization: Annotated[Organization, Field(description="the new Organization details. This endpoint can't be used to update security")],
|
|
3393
|
-
_request_timeout: Union[
|
|
3394
|
-
None,
|
|
3395
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3396
|
-
Tuple[
|
|
3397
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3398
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3399
|
-
]
|
|
3400
|
-
] = None,
|
|
3401
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3402
|
-
_content_type: Optional[StrictStr] = None,
|
|
3403
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3404
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3405
|
-
) -> RESTResponseType:
|
|
3406
|
-
"""Update an Organization
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
:param organization_id: the Organization identifier (required)
|
|
3410
|
-
:type organization_id: str
|
|
3411
|
-
:param organization: the new Organization details. This endpoint can't be used to update security (required)
|
|
3412
|
-
:type organization: Organization
|
|
3413
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3414
|
-
number provided, it will be total request
|
|
3415
|
-
timeout. It can also be a pair (tuple) of
|
|
3416
|
-
(connection, read) timeouts.
|
|
3417
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3418
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3419
|
-
request; this effectively ignores the
|
|
3420
|
-
authentication in the spec for a single request.
|
|
3421
|
-
:type _request_auth: dict, optional
|
|
3422
|
-
:param _content_type: force content-type for the request.
|
|
3423
|
-
:type _content_type: str, Optional
|
|
3424
|
-
:param _headers: set to override the headers for a single
|
|
3425
|
-
request; this effectively ignores the headers
|
|
3426
|
-
in the spec for a single request.
|
|
3427
|
-
:type _headers: dict, optional
|
|
3428
|
-
:param _host_index: set to override the host_index for a single
|
|
3429
|
-
request; this effectively ignores the host_index
|
|
3430
|
-
in the spec for a single request.
|
|
3431
|
-
:type _host_index: int, optional
|
|
3432
|
-
:return: Returns the result object.
|
|
3433
|
-
""" # noqa: E501
|
|
3434
|
-
|
|
3435
|
-
_param = self._update_organization_serialize(
|
|
3436
|
-
organization_id=organization_id,
|
|
3437
|
-
organization=organization,
|
|
3438
|
-
_request_auth=_request_auth,
|
|
3439
|
-
_content_type=_content_type,
|
|
3440
|
-
_headers=_headers,
|
|
3441
|
-
_host_index=_host_index
|
|
3442
|
-
)
|
|
3443
|
-
|
|
3444
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3445
|
-
'200': "Organization",
|
|
3446
|
-
'400': None,
|
|
3447
|
-
'404': None,
|
|
3448
|
-
}
|
|
3449
|
-
response_data = self.api_client.call_api(
|
|
3450
|
-
*_param,
|
|
3451
|
-
_request_timeout=_request_timeout
|
|
3452
|
-
)
|
|
3453
|
-
return response_data.response
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
def _update_organization_serialize(
|
|
3457
|
-
self,
|
|
3458
|
-
organization_id,
|
|
3459
|
-
organization,
|
|
3460
|
-
_request_auth,
|
|
3461
|
-
_content_type,
|
|
3462
|
-
_headers,
|
|
3463
|
-
_host_index,
|
|
3464
|
-
) -> RequestSerialized:
|
|
3465
|
-
|
|
3466
|
-
_host = None
|
|
3467
|
-
|
|
3468
|
-
_collection_formats: Dict[str, str] = {
|
|
3469
|
-
}
|
|
3470
|
-
|
|
3471
|
-
_path_params: Dict[str, str] = {}
|
|
3472
|
-
_query_params: List[Tuple[str, str]] = []
|
|
3473
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3474
|
-
_form_params: List[Tuple[str, str]] = []
|
|
3475
|
-
_files: Dict[str, str] = {}
|
|
3476
|
-
_body_params: Optional[bytes] = None
|
|
3477
|
-
|
|
3478
|
-
# process the path parameters
|
|
3479
|
-
if organization_id is not None:
|
|
3480
|
-
_path_params['organization_id'] = organization_id
|
|
3481
|
-
# process the query parameters
|
|
3482
|
-
# process the header parameters
|
|
3483
|
-
# process the form parameters
|
|
3484
|
-
# process the body parameter
|
|
3485
|
-
if organization is not None:
|
|
3486
|
-
_body_params = organization
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
# set the HTTP header `Accept`
|
|
3490
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3491
|
-
[
|
|
3492
|
-
'application/json'
|
|
3493
|
-
]
|
|
3494
|
-
)
|
|
3495
|
-
|
|
3496
|
-
# set the HTTP header `Content-Type`
|
|
3497
|
-
if _content_type:
|
|
3498
|
-
_header_params['Content-Type'] = _content_type
|
|
3499
|
-
else:
|
|
3500
|
-
_default_content_type = (
|
|
3501
|
-
self.api_client.select_header_content_type(
|
|
3502
|
-
[
|
|
3503
|
-
'application/json',
|
|
3504
|
-
'application/yaml'
|
|
3505
|
-
]
|
|
3506
|
-
)
|
|
3507
|
-
)
|
|
3508
|
-
if _default_content_type is not None:
|
|
3509
|
-
_header_params['Content-Type'] = _default_content_type
|
|
3510
|
-
|
|
3511
|
-
# authentication setting
|
|
3512
|
-
_auth_settings: List[str] = [
|
|
3513
|
-
'oAuth2AuthCode'
|
|
3514
|
-
]
|
|
3515
|
-
|
|
3516
|
-
return self.api_client.param_serialize(
|
|
3517
|
-
method='PATCH',
|
|
3518
|
-
resource_path='/organizations/{organization_id}',
|
|
3519
|
-
path_params=_path_params,
|
|
3520
|
-
query_params=_query_params,
|
|
3521
|
-
header_params=_header_params,
|
|
3522
|
-
body=_body_params,
|
|
3523
|
-
post_params=_form_params,
|
|
3524
|
-
files=_files,
|
|
3525
|
-
auth_settings=_auth_settings,
|
|
3526
|
-
collection_formats=_collection_formats,
|
|
3527
|
-
_host=_host,
|
|
3528
|
-
_request_auth=_request_auth
|
|
3529
|
-
)
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
@validate_call
|
|
3535
|
-
def update_organization_access_control(
|
|
3536
|
-
self,
|
|
3537
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
3538
|
-
identity_id: Annotated[StrictStr, Field(description="the User identifier")],
|
|
3539
|
-
organization_role: Annotated[OrganizationRole, Field(description="The new Organization Access Control")],
|
|
3540
|
-
_request_timeout: Union[
|
|
3541
|
-
None,
|
|
3542
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3543
|
-
Tuple[
|
|
3544
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3545
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3546
|
-
]
|
|
3547
|
-
] = None,
|
|
3548
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3549
|
-
_content_type: Optional[StrictStr] = None,
|
|
3550
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3551
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3552
|
-
) -> OrganizationAccessControl:
|
|
3553
|
-
"""Update the specified access to User for an Organization
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
:param organization_id: the Organization identifier (required)
|
|
3557
|
-
:type organization_id: str
|
|
3558
|
-
:param identity_id: the User identifier (required)
|
|
3559
|
-
:type identity_id: str
|
|
3560
|
-
:param organization_role: The new Organization Access Control (required)
|
|
3561
|
-
:type organization_role: OrganizationRole
|
|
3562
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3563
|
-
number provided, it will be total request
|
|
3564
|
-
timeout. It can also be a pair (tuple) of
|
|
3565
|
-
(connection, read) timeouts.
|
|
3566
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3567
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3568
|
-
request; this effectively ignores the
|
|
3569
|
-
authentication in the spec for a single request.
|
|
3570
|
-
:type _request_auth: dict, optional
|
|
3571
|
-
:param _content_type: force content-type for the request.
|
|
3572
|
-
:type _content_type: str, Optional
|
|
3573
|
-
:param _headers: set to override the headers for a single
|
|
3574
|
-
request; this effectively ignores the headers
|
|
3575
|
-
in the spec for a single request.
|
|
3576
|
-
:type _headers: dict, optional
|
|
3577
|
-
:param _host_index: set to override the host_index for a single
|
|
3578
|
-
request; this effectively ignores the host_index
|
|
3579
|
-
in the spec for a single request.
|
|
3580
|
-
:type _host_index: int, optional
|
|
3581
|
-
:return: Returns the result object.
|
|
3582
|
-
""" # noqa: E501
|
|
3583
|
-
|
|
3584
|
-
_param = self._update_organization_access_control_serialize(
|
|
3585
|
-
organization_id=organization_id,
|
|
3586
|
-
identity_id=identity_id,
|
|
3587
|
-
organization_role=organization_role,
|
|
3588
|
-
_request_auth=_request_auth,
|
|
3589
|
-
_content_type=_content_type,
|
|
3590
|
-
_headers=_headers,
|
|
3591
|
-
_host_index=_host_index
|
|
3592
|
-
)
|
|
3593
|
-
|
|
3594
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3595
|
-
'200': "OrganizationAccessControl",
|
|
3596
|
-
'404': None,
|
|
3597
|
-
}
|
|
3598
|
-
response_data = self.api_client.call_api(
|
|
3599
|
-
*_param,
|
|
3600
|
-
_request_timeout=_request_timeout
|
|
3601
|
-
)
|
|
3602
|
-
response_data.read()
|
|
3603
|
-
return self.api_client.response_deserialize(
|
|
3604
|
-
response_data=response_data,
|
|
3605
|
-
response_types_map=_response_types_map,
|
|
3606
|
-
).data
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
@validate_call
|
|
3610
|
-
def update_organization_access_control_with_http_info(
|
|
3611
|
-
self,
|
|
3612
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
3613
|
-
identity_id: Annotated[StrictStr, Field(description="the User identifier")],
|
|
3614
|
-
organization_role: Annotated[OrganizationRole, Field(description="The new Organization Access Control")],
|
|
3615
|
-
_request_timeout: Union[
|
|
3616
|
-
None,
|
|
3617
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3618
|
-
Tuple[
|
|
3619
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3620
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3621
|
-
]
|
|
3622
|
-
] = None,
|
|
3623
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3624
|
-
_content_type: Optional[StrictStr] = None,
|
|
3625
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3626
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3627
|
-
) -> ApiResponse[OrganizationAccessControl]:
|
|
3628
|
-
"""Update the specified access to User for an Organization
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
:param organization_id: the Organization identifier (required)
|
|
3632
|
-
:type organization_id: str
|
|
3633
|
-
:param identity_id: the User identifier (required)
|
|
3634
|
-
:type identity_id: str
|
|
3635
|
-
:param organization_role: The new Organization Access Control (required)
|
|
3636
|
-
:type organization_role: OrganizationRole
|
|
3637
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3638
|
-
number provided, it will be total request
|
|
3639
|
-
timeout. It can also be a pair (tuple) of
|
|
3640
|
-
(connection, read) timeouts.
|
|
3641
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3642
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3643
|
-
request; this effectively ignores the
|
|
3644
|
-
authentication in the spec for a single request.
|
|
3645
|
-
:type _request_auth: dict, optional
|
|
3646
|
-
:param _content_type: force content-type for the request.
|
|
3647
|
-
:type _content_type: str, Optional
|
|
3648
|
-
:param _headers: set to override the headers for a single
|
|
3649
|
-
request; this effectively ignores the headers
|
|
3650
|
-
in the spec for a single request.
|
|
3651
|
-
:type _headers: dict, optional
|
|
3652
|
-
:param _host_index: set to override the host_index for a single
|
|
3653
|
-
request; this effectively ignores the host_index
|
|
3654
|
-
in the spec for a single request.
|
|
3655
|
-
:type _host_index: int, optional
|
|
3656
|
-
:return: Returns the result object.
|
|
3657
|
-
""" # noqa: E501
|
|
3658
|
-
|
|
3659
|
-
_param = self._update_organization_access_control_serialize(
|
|
3660
|
-
organization_id=organization_id,
|
|
3661
|
-
identity_id=identity_id,
|
|
3662
|
-
organization_role=organization_role,
|
|
3663
|
-
_request_auth=_request_auth,
|
|
3664
|
-
_content_type=_content_type,
|
|
3665
|
-
_headers=_headers,
|
|
3666
|
-
_host_index=_host_index
|
|
3667
|
-
)
|
|
3668
|
-
|
|
3669
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3670
|
-
'200': "OrganizationAccessControl",
|
|
3671
|
-
'404': None,
|
|
3672
|
-
}
|
|
3673
|
-
response_data = self.api_client.call_api(
|
|
3674
|
-
*_param,
|
|
3675
|
-
_request_timeout=_request_timeout
|
|
3676
|
-
)
|
|
3677
|
-
response_data.read()
|
|
3678
|
-
return self.api_client.response_deserialize(
|
|
3679
|
-
response_data=response_data,
|
|
3680
|
-
response_types_map=_response_types_map,
|
|
3681
|
-
)
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
@validate_call
|
|
3685
|
-
def update_organization_access_control_without_preload_content(
|
|
3686
|
-
self,
|
|
3687
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
3688
|
-
identity_id: Annotated[StrictStr, Field(description="the User identifier")],
|
|
3689
|
-
organization_role: Annotated[OrganizationRole, Field(description="The new Organization Access Control")],
|
|
3690
|
-
_request_timeout: Union[
|
|
3691
|
-
None,
|
|
3692
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3693
|
-
Tuple[
|
|
3694
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3695
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3696
|
-
]
|
|
3697
|
-
] = None,
|
|
3698
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3699
|
-
_content_type: Optional[StrictStr] = None,
|
|
3700
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3701
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3702
|
-
) -> RESTResponseType:
|
|
3703
|
-
"""Update the specified access to User for an Organization
|
|
2894
|
+
"""Get all permissions per components
|
|
3704
2895
|
|
|
3705
2896
|
|
|
3706
|
-
:param organization_id: the Organization identifier (required)
|
|
3707
|
-
:type organization_id: str
|
|
3708
|
-
:param identity_id: the User identifier (required)
|
|
3709
|
-
:type identity_id: str
|
|
3710
|
-
:param organization_role: The new Organization Access Control (required)
|
|
3711
|
-
:type organization_role: OrganizationRole
|
|
3712
2897
|
:param _request_timeout: timeout setting for this request. If one
|
|
3713
2898
|
number provided, it will be total request
|
|
3714
2899
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3731,10 +2916,7 @@ class OrganizationApi:
|
|
|
3731
2916
|
:return: Returns the result object.
|
|
3732
2917
|
""" # noqa: E501
|
|
3733
2918
|
|
|
3734
|
-
_param = self.
|
|
3735
|
-
organization_id=organization_id,
|
|
3736
|
-
identity_id=identity_id,
|
|
3737
|
-
organization_role=organization_role,
|
|
2919
|
+
_param = self._list_permissions_serialize(
|
|
3738
2920
|
_request_auth=_request_auth,
|
|
3739
2921
|
_content_type=_content_type,
|
|
3740
2922
|
_headers=_headers,
|
|
@@ -3742,8 +2924,7 @@ class OrganizationApi:
|
|
|
3742
2924
|
)
|
|
3743
2925
|
|
|
3744
2926
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3745
|
-
'200': "
|
|
3746
|
-
'404': None,
|
|
2927
|
+
'200': "List[ComponentRolePermissions]",
|
|
3747
2928
|
}
|
|
3748
2929
|
response_data = self.api_client.call_api(
|
|
3749
2930
|
*_param,
|
|
@@ -3752,11 +2933,8 @@ class OrganizationApi:
|
|
|
3752
2933
|
return response_data.response
|
|
3753
2934
|
|
|
3754
2935
|
|
|
3755
|
-
def
|
|
2936
|
+
def _list_permissions_serialize(
|
|
3756
2937
|
self,
|
|
3757
|
-
organization_id,
|
|
3758
|
-
identity_id,
|
|
3759
|
-
organization_role,
|
|
3760
2938
|
_request_auth,
|
|
3761
2939
|
_content_type,
|
|
3762
2940
|
_headers,
|
|
@@ -3772,42 +2950,27 @@ class OrganizationApi:
|
|
|
3772
2950
|
_query_params: List[Tuple[str, str]] = []
|
|
3773
2951
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3774
2952
|
_form_params: List[Tuple[str, str]] = []
|
|
3775
|
-
_files: Dict[
|
|
2953
|
+
_files: Dict[
|
|
2954
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2955
|
+
] = {}
|
|
3776
2956
|
_body_params: Optional[bytes] = None
|
|
3777
2957
|
|
|
3778
2958
|
# process the path parameters
|
|
3779
|
-
if organization_id is not None:
|
|
3780
|
-
_path_params['organization_id'] = organization_id
|
|
3781
|
-
if identity_id is not None:
|
|
3782
|
-
_path_params['identity_id'] = identity_id
|
|
3783
2959
|
# process the query parameters
|
|
3784
2960
|
# process the header parameters
|
|
3785
2961
|
# process the form parameters
|
|
3786
2962
|
# process the body parameter
|
|
3787
|
-
if organization_role is not None:
|
|
3788
|
-
_body_params = organization_role
|
|
3789
2963
|
|
|
3790
2964
|
|
|
3791
2965
|
# set the HTTP header `Accept`
|
|
3792
|
-
|
|
3793
|
-
[
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
# set the HTTP header `Content-Type`
|
|
3799
|
-
if _content_type:
|
|
3800
|
-
_header_params['Content-Type'] = _content_type
|
|
3801
|
-
else:
|
|
3802
|
-
_default_content_type = (
|
|
3803
|
-
self.api_client.select_header_content_type(
|
|
3804
|
-
[
|
|
3805
|
-
'application/json'
|
|
3806
|
-
]
|
|
3807
|
-
)
|
|
2966
|
+
if 'Accept' not in _header_params:
|
|
2967
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2968
|
+
[
|
|
2969
|
+
'application/json',
|
|
2970
|
+
'application/yaml'
|
|
2971
|
+
]
|
|
3808
2972
|
)
|
|
3809
|
-
|
|
3810
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2973
|
+
|
|
3811
2974
|
|
|
3812
2975
|
# authentication setting
|
|
3813
2976
|
_auth_settings: List[str] = [
|
|
@@ -3815,8 +2978,8 @@ class OrganizationApi:
|
|
|
3815
2978
|
]
|
|
3816
2979
|
|
|
3817
2980
|
return self.api_client.param_serialize(
|
|
3818
|
-
method='
|
|
3819
|
-
resource_path='/organizations/
|
|
2981
|
+
method='GET',
|
|
2982
|
+
resource_path='/organizations/permissions',
|
|
3820
2983
|
path_params=_path_params,
|
|
3821
2984
|
query_params=_query_params,
|
|
3822
2985
|
header_params=_header_params,
|
|
@@ -3833,10 +2996,10 @@ class OrganizationApi:
|
|
|
3833
2996
|
|
|
3834
2997
|
|
|
3835
2998
|
@validate_call
|
|
3836
|
-
def
|
|
2999
|
+
def update_organization(
|
|
3837
3000
|
self,
|
|
3838
|
-
organization_id: Annotated[
|
|
3839
|
-
|
|
3001
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
3002
|
+
organization_update_request: Annotated[OrganizationUpdateRequest, Field(description="The new Organization details. This endpoint can't be used to update security")],
|
|
3840
3003
|
_request_timeout: Union[
|
|
3841
3004
|
None,
|
|
3842
3005
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3849,14 +3012,14 @@ class OrganizationApi:
|
|
|
3849
3012
|
_content_type: Optional[StrictStr] = None,
|
|
3850
3013
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3851
3014
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3852
|
-
) ->
|
|
3853
|
-
"""Update
|
|
3015
|
+
) -> Organization:
|
|
3016
|
+
"""Update an Organization
|
|
3854
3017
|
|
|
3855
3018
|
|
|
3856
|
-
:param organization_id:
|
|
3019
|
+
:param organization_id: The Organization identifier (required)
|
|
3857
3020
|
:type organization_id: str
|
|
3858
|
-
:param
|
|
3859
|
-
:type
|
|
3021
|
+
:param organization_update_request: The new Organization details. This endpoint can't be used to update security (required)
|
|
3022
|
+
:type organization_update_request: OrganizationUpdateRequest
|
|
3860
3023
|
:param _request_timeout: timeout setting for this request. If one
|
|
3861
3024
|
number provided, it will be total request
|
|
3862
3025
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3879,9 +3042,9 @@ class OrganizationApi:
|
|
|
3879
3042
|
:return: Returns the result object.
|
|
3880
3043
|
""" # noqa: E501
|
|
3881
3044
|
|
|
3882
|
-
_param = self.
|
|
3045
|
+
_param = self._update_organization_serialize(
|
|
3883
3046
|
organization_id=organization_id,
|
|
3884
|
-
|
|
3047
|
+
organization_update_request=organization_update_request,
|
|
3885
3048
|
_request_auth=_request_auth,
|
|
3886
3049
|
_content_type=_content_type,
|
|
3887
3050
|
_headers=_headers,
|
|
@@ -3889,7 +3052,8 @@ class OrganizationApi:
|
|
|
3889
3052
|
)
|
|
3890
3053
|
|
|
3891
3054
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3892
|
-
'200': "
|
|
3055
|
+
'200': "Organization",
|
|
3056
|
+
'400': None,
|
|
3893
3057
|
'404': None,
|
|
3894
3058
|
}
|
|
3895
3059
|
response_data = self.api_client.call_api(
|
|
@@ -3904,10 +3068,10 @@ class OrganizationApi:
|
|
|
3904
3068
|
|
|
3905
3069
|
|
|
3906
3070
|
@validate_call
|
|
3907
|
-
def
|
|
3071
|
+
def update_organization_with_http_info(
|
|
3908
3072
|
self,
|
|
3909
|
-
organization_id: Annotated[
|
|
3910
|
-
|
|
3073
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
3074
|
+
organization_update_request: Annotated[OrganizationUpdateRequest, Field(description="The new Organization details. This endpoint can't be used to update security")],
|
|
3911
3075
|
_request_timeout: Union[
|
|
3912
3076
|
None,
|
|
3913
3077
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3920,14 +3084,14 @@ class OrganizationApi:
|
|
|
3920
3084
|
_content_type: Optional[StrictStr] = None,
|
|
3921
3085
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3922
3086
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3923
|
-
) -> ApiResponse[
|
|
3924
|
-
"""Update
|
|
3087
|
+
) -> ApiResponse[Organization]:
|
|
3088
|
+
"""Update an Organization
|
|
3925
3089
|
|
|
3926
3090
|
|
|
3927
|
-
:param organization_id:
|
|
3091
|
+
:param organization_id: The Organization identifier (required)
|
|
3928
3092
|
:type organization_id: str
|
|
3929
|
-
:param
|
|
3930
|
-
:type
|
|
3093
|
+
:param organization_update_request: The new Organization details. This endpoint can't be used to update security (required)
|
|
3094
|
+
:type organization_update_request: OrganizationUpdateRequest
|
|
3931
3095
|
:param _request_timeout: timeout setting for this request. If one
|
|
3932
3096
|
number provided, it will be total request
|
|
3933
3097
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3950,9 +3114,9 @@ class OrganizationApi:
|
|
|
3950
3114
|
:return: Returns the result object.
|
|
3951
3115
|
""" # noqa: E501
|
|
3952
3116
|
|
|
3953
|
-
_param = self.
|
|
3117
|
+
_param = self._update_organization_serialize(
|
|
3954
3118
|
organization_id=organization_id,
|
|
3955
|
-
|
|
3119
|
+
organization_update_request=organization_update_request,
|
|
3956
3120
|
_request_auth=_request_auth,
|
|
3957
3121
|
_content_type=_content_type,
|
|
3958
3122
|
_headers=_headers,
|
|
@@ -3960,7 +3124,8 @@ class OrganizationApi:
|
|
|
3960
3124
|
)
|
|
3961
3125
|
|
|
3962
3126
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3963
|
-
'200': "
|
|
3127
|
+
'200': "Organization",
|
|
3128
|
+
'400': None,
|
|
3964
3129
|
'404': None,
|
|
3965
3130
|
}
|
|
3966
3131
|
response_data = self.api_client.call_api(
|
|
@@ -3975,10 +3140,10 @@ class OrganizationApi:
|
|
|
3975
3140
|
|
|
3976
3141
|
|
|
3977
3142
|
@validate_call
|
|
3978
|
-
def
|
|
3143
|
+
def update_organization_without_preload_content(
|
|
3979
3144
|
self,
|
|
3980
|
-
organization_id: Annotated[
|
|
3981
|
-
|
|
3145
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
3146
|
+
organization_update_request: Annotated[OrganizationUpdateRequest, Field(description="The new Organization details. This endpoint can't be used to update security")],
|
|
3982
3147
|
_request_timeout: Union[
|
|
3983
3148
|
None,
|
|
3984
3149
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3992,13 +3157,13 @@ class OrganizationApi:
|
|
|
3992
3157
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3993
3158
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3994
3159
|
) -> RESTResponseType:
|
|
3995
|
-
"""Update
|
|
3160
|
+
"""Update an Organization
|
|
3996
3161
|
|
|
3997
3162
|
|
|
3998
|
-
:param organization_id:
|
|
3163
|
+
:param organization_id: The Organization identifier (required)
|
|
3999
3164
|
:type organization_id: str
|
|
4000
|
-
:param
|
|
4001
|
-
:type
|
|
3165
|
+
:param organization_update_request: The new Organization details. This endpoint can't be used to update security (required)
|
|
3166
|
+
:type organization_update_request: OrganizationUpdateRequest
|
|
4002
3167
|
:param _request_timeout: timeout setting for this request. If one
|
|
4003
3168
|
number provided, it will be total request
|
|
4004
3169
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4021,9 +3186,9 @@ class OrganizationApi:
|
|
|
4021
3186
|
:return: Returns the result object.
|
|
4022
3187
|
""" # noqa: E501
|
|
4023
3188
|
|
|
4024
|
-
_param = self.
|
|
3189
|
+
_param = self._update_organization_serialize(
|
|
4025
3190
|
organization_id=organization_id,
|
|
4026
|
-
|
|
3191
|
+
organization_update_request=organization_update_request,
|
|
4027
3192
|
_request_auth=_request_auth,
|
|
4028
3193
|
_content_type=_content_type,
|
|
4029
3194
|
_headers=_headers,
|
|
@@ -4031,7 +3196,8 @@ class OrganizationApi:
|
|
|
4031
3196
|
)
|
|
4032
3197
|
|
|
4033
3198
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4034
|
-
'200': "
|
|
3199
|
+
'200': "Organization",
|
|
3200
|
+
'400': None,
|
|
4035
3201
|
'404': None,
|
|
4036
3202
|
}
|
|
4037
3203
|
response_data = self.api_client.call_api(
|
|
@@ -4041,10 +3207,10 @@ class OrganizationApi:
|
|
|
4041
3207
|
return response_data.response
|
|
4042
3208
|
|
|
4043
3209
|
|
|
4044
|
-
def
|
|
3210
|
+
def _update_organization_serialize(
|
|
4045
3211
|
self,
|
|
4046
3212
|
organization_id,
|
|
4047
|
-
|
|
3213
|
+
organization_update_request,
|
|
4048
3214
|
_request_auth,
|
|
4049
3215
|
_content_type,
|
|
4050
3216
|
_headers,
|
|
@@ -4060,7 +3226,9 @@ class OrganizationApi:
|
|
|
4060
3226
|
_query_params: List[Tuple[str, str]] = []
|
|
4061
3227
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4062
3228
|
_form_params: List[Tuple[str, str]] = []
|
|
4063
|
-
_files: Dict[
|
|
3229
|
+
_files: Dict[
|
|
3230
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3231
|
+
] = {}
|
|
4064
3232
|
_body_params: Optional[bytes] = None
|
|
4065
3233
|
|
|
4066
3234
|
# process the path parameters
|
|
@@ -4070,16 +3238,18 @@ class OrganizationApi:
|
|
|
4070
3238
|
# process the header parameters
|
|
4071
3239
|
# process the form parameters
|
|
4072
3240
|
# process the body parameter
|
|
4073
|
-
if
|
|
4074
|
-
_body_params =
|
|
3241
|
+
if organization_update_request is not None:
|
|
3242
|
+
_body_params = organization_update_request
|
|
4075
3243
|
|
|
4076
3244
|
|
|
4077
3245
|
# set the HTTP header `Accept`
|
|
4078
|
-
|
|
4079
|
-
[
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
3246
|
+
if 'Accept' not in _header_params:
|
|
3247
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3248
|
+
[
|
|
3249
|
+
'application/json',
|
|
3250
|
+
'application/yaml'
|
|
3251
|
+
]
|
|
3252
|
+
)
|
|
4083
3253
|
|
|
4084
3254
|
# set the HTTP header `Content-Type`
|
|
4085
3255
|
if _content_type:
|
|
@@ -4103,7 +3273,7 @@ class OrganizationApi:
|
|
|
4103
3273
|
|
|
4104
3274
|
return self.api_client.param_serialize(
|
|
4105
3275
|
method='PATCH',
|
|
4106
|
-
resource_path='/organizations/{organization_id}
|
|
3276
|
+
resource_path='/organizations/{organization_id}',
|
|
4107
3277
|
path_params=_path_params,
|
|
4108
3278
|
query_params=_query_params,
|
|
4109
3279
|
header_params=_header_params,
|
|
@@ -4120,10 +3290,11 @@ class OrganizationApi:
|
|
|
4120
3290
|
|
|
4121
3291
|
|
|
4122
3292
|
@validate_call
|
|
4123
|
-
def
|
|
3293
|
+
def update_organization_access_control(
|
|
4124
3294
|
self,
|
|
4125
|
-
organization_id: Annotated[
|
|
4126
|
-
|
|
3295
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
3296
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
3297
|
+
organization_role: Annotated[OrganizationRole, Field(description="The new Organization Access Control")],
|
|
4127
3298
|
_request_timeout: Union[
|
|
4128
3299
|
None,
|
|
4129
3300
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4136,14 +3307,16 @@ class OrganizationApi:
|
|
|
4136
3307
|
_content_type: Optional[StrictStr] = None,
|
|
4137
3308
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4138
3309
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4139
|
-
) ->
|
|
4140
|
-
"""Update
|
|
3310
|
+
) -> OrganizationAccessControl:
|
|
3311
|
+
"""Update the specified access to User for an Organization
|
|
4141
3312
|
|
|
4142
3313
|
|
|
4143
|
-
:param organization_id:
|
|
3314
|
+
:param organization_id: The Organization identifier (required)
|
|
4144
3315
|
:type organization_id: str
|
|
4145
|
-
:param
|
|
4146
|
-
:type
|
|
3316
|
+
:param identity_id: The User identifier (required)
|
|
3317
|
+
:type identity_id: str
|
|
3318
|
+
:param organization_role: The new Organization Access Control (required)
|
|
3319
|
+
:type organization_role: OrganizationRole
|
|
4147
3320
|
:param _request_timeout: timeout setting for this request. If one
|
|
4148
3321
|
number provided, it will be total request
|
|
4149
3322
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4166,9 +3339,10 @@ class OrganizationApi:
|
|
|
4166
3339
|
:return: Returns the result object.
|
|
4167
3340
|
""" # noqa: E501
|
|
4168
3341
|
|
|
4169
|
-
_param = self.
|
|
3342
|
+
_param = self._update_organization_access_control_serialize(
|
|
4170
3343
|
organization_id=organization_id,
|
|
4171
|
-
|
|
3344
|
+
identity_id=identity_id,
|
|
3345
|
+
organization_role=organization_role,
|
|
4172
3346
|
_request_auth=_request_auth,
|
|
4173
3347
|
_content_type=_content_type,
|
|
4174
3348
|
_headers=_headers,
|
|
@@ -4176,7 +3350,7 @@ class OrganizationApi:
|
|
|
4176
3350
|
)
|
|
4177
3351
|
|
|
4178
3352
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4179
|
-
'200': "
|
|
3353
|
+
'200': "OrganizationAccessControl",
|
|
4180
3354
|
'404': None,
|
|
4181
3355
|
}
|
|
4182
3356
|
response_data = self.api_client.call_api(
|
|
@@ -4191,10 +3365,11 @@ class OrganizationApi:
|
|
|
4191
3365
|
|
|
4192
3366
|
|
|
4193
3367
|
@validate_call
|
|
4194
|
-
def
|
|
3368
|
+
def update_organization_access_control_with_http_info(
|
|
4195
3369
|
self,
|
|
4196
|
-
organization_id: Annotated[
|
|
4197
|
-
|
|
3370
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
3371
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
3372
|
+
organization_role: Annotated[OrganizationRole, Field(description="The new Organization Access Control")],
|
|
4198
3373
|
_request_timeout: Union[
|
|
4199
3374
|
None,
|
|
4200
3375
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4207,14 +3382,16 @@ class OrganizationApi:
|
|
|
4207
3382
|
_content_type: Optional[StrictStr] = None,
|
|
4208
3383
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4209
3384
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4210
|
-
) -> ApiResponse[
|
|
4211
|
-
"""Update
|
|
3385
|
+
) -> ApiResponse[OrganizationAccessControl]:
|
|
3386
|
+
"""Update the specified access to User for an Organization
|
|
4212
3387
|
|
|
4213
3388
|
|
|
4214
|
-
:param organization_id:
|
|
3389
|
+
:param organization_id: The Organization identifier (required)
|
|
4215
3390
|
:type organization_id: str
|
|
4216
|
-
:param
|
|
4217
|
-
:type
|
|
3391
|
+
:param identity_id: The User identifier (required)
|
|
3392
|
+
:type identity_id: str
|
|
3393
|
+
:param organization_role: The new Organization Access Control (required)
|
|
3394
|
+
:type organization_role: OrganizationRole
|
|
4218
3395
|
:param _request_timeout: timeout setting for this request. If one
|
|
4219
3396
|
number provided, it will be total request
|
|
4220
3397
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4237,9 +3414,10 @@ class OrganizationApi:
|
|
|
4237
3414
|
:return: Returns the result object.
|
|
4238
3415
|
""" # noqa: E501
|
|
4239
3416
|
|
|
4240
|
-
_param = self.
|
|
3417
|
+
_param = self._update_organization_access_control_serialize(
|
|
4241
3418
|
organization_id=organization_id,
|
|
4242
|
-
|
|
3419
|
+
identity_id=identity_id,
|
|
3420
|
+
organization_role=organization_role,
|
|
4243
3421
|
_request_auth=_request_auth,
|
|
4244
3422
|
_content_type=_content_type,
|
|
4245
3423
|
_headers=_headers,
|
|
@@ -4247,7 +3425,7 @@ class OrganizationApi:
|
|
|
4247
3425
|
)
|
|
4248
3426
|
|
|
4249
3427
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4250
|
-
'200': "
|
|
3428
|
+
'200': "OrganizationAccessControl",
|
|
4251
3429
|
'404': None,
|
|
4252
3430
|
}
|
|
4253
3431
|
response_data = self.api_client.call_api(
|
|
@@ -4262,10 +3440,11 @@ class OrganizationApi:
|
|
|
4262
3440
|
|
|
4263
3441
|
|
|
4264
3442
|
@validate_call
|
|
4265
|
-
def
|
|
3443
|
+
def update_organization_access_control_without_preload_content(
|
|
4266
3444
|
self,
|
|
4267
|
-
organization_id: Annotated[
|
|
4268
|
-
|
|
3445
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
3446
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
3447
|
+
organization_role: Annotated[OrganizationRole, Field(description="The new Organization Access Control")],
|
|
4269
3448
|
_request_timeout: Union[
|
|
4270
3449
|
None,
|
|
4271
3450
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4279,13 +3458,15 @@ class OrganizationApi:
|
|
|
4279
3458
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4280
3459
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4281
3460
|
) -> RESTResponseType:
|
|
4282
|
-
"""Update
|
|
3461
|
+
"""Update the specified access to User for an Organization
|
|
4283
3462
|
|
|
4284
3463
|
|
|
4285
|
-
:param organization_id:
|
|
3464
|
+
:param organization_id: The Organization identifier (required)
|
|
4286
3465
|
:type organization_id: str
|
|
4287
|
-
:param
|
|
4288
|
-
:type
|
|
3466
|
+
:param identity_id: The User identifier (required)
|
|
3467
|
+
:type identity_id: str
|
|
3468
|
+
:param organization_role: The new Organization Access Control (required)
|
|
3469
|
+
:type organization_role: OrganizationRole
|
|
4289
3470
|
:param _request_timeout: timeout setting for this request. If one
|
|
4290
3471
|
number provided, it will be total request
|
|
4291
3472
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4308,9 +3489,10 @@ class OrganizationApi:
|
|
|
4308
3489
|
:return: Returns the result object.
|
|
4309
3490
|
""" # noqa: E501
|
|
4310
3491
|
|
|
4311
|
-
_param = self.
|
|
3492
|
+
_param = self._update_organization_access_control_serialize(
|
|
4312
3493
|
organization_id=organization_id,
|
|
4313
|
-
|
|
3494
|
+
identity_id=identity_id,
|
|
3495
|
+
organization_role=organization_role,
|
|
4314
3496
|
_request_auth=_request_auth,
|
|
4315
3497
|
_content_type=_content_type,
|
|
4316
3498
|
_headers=_headers,
|
|
@@ -4318,7 +3500,7 @@ class OrganizationApi:
|
|
|
4318
3500
|
)
|
|
4319
3501
|
|
|
4320
3502
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4321
|
-
'200': "
|
|
3503
|
+
'200': "OrganizationAccessControl",
|
|
4322
3504
|
'404': None,
|
|
4323
3505
|
}
|
|
4324
3506
|
response_data = self.api_client.call_api(
|
|
@@ -4328,10 +3510,11 @@ class OrganizationApi:
|
|
|
4328
3510
|
return response_data.response
|
|
4329
3511
|
|
|
4330
3512
|
|
|
4331
|
-
def
|
|
3513
|
+
def _update_organization_access_control_serialize(
|
|
4332
3514
|
self,
|
|
4333
3515
|
organization_id,
|
|
4334
|
-
|
|
3516
|
+
identity_id,
|
|
3517
|
+
organization_role,
|
|
4335
3518
|
_request_auth,
|
|
4336
3519
|
_content_type,
|
|
4337
3520
|
_headers,
|
|
@@ -4347,26 +3530,32 @@ class OrganizationApi:
|
|
|
4347
3530
|
_query_params: List[Tuple[str, str]] = []
|
|
4348
3531
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4349
3532
|
_form_params: List[Tuple[str, str]] = []
|
|
4350
|
-
_files: Dict[
|
|
3533
|
+
_files: Dict[
|
|
3534
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3535
|
+
] = {}
|
|
4351
3536
|
_body_params: Optional[bytes] = None
|
|
4352
3537
|
|
|
4353
3538
|
# process the path parameters
|
|
4354
3539
|
if organization_id is not None:
|
|
4355
3540
|
_path_params['organization_id'] = organization_id
|
|
3541
|
+
if identity_id is not None:
|
|
3542
|
+
_path_params['identity_id'] = identity_id
|
|
4356
3543
|
# process the query parameters
|
|
4357
3544
|
# process the header parameters
|
|
4358
3545
|
# process the form parameters
|
|
4359
3546
|
# process the body parameter
|
|
4360
|
-
if
|
|
4361
|
-
_body_params =
|
|
3547
|
+
if organization_role is not None:
|
|
3548
|
+
_body_params = organization_role
|
|
4362
3549
|
|
|
4363
3550
|
|
|
4364
3551
|
# set the HTTP header `Accept`
|
|
4365
|
-
|
|
4366
|
-
[
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
3552
|
+
if 'Accept' not in _header_params:
|
|
3553
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3554
|
+
[
|
|
3555
|
+
'application/json',
|
|
3556
|
+
'application/yaml'
|
|
3557
|
+
]
|
|
3558
|
+
)
|
|
4370
3559
|
|
|
4371
3560
|
# set the HTTP header `Content-Type`
|
|
4372
3561
|
if _content_type:
|
|
@@ -4390,7 +3579,7 @@ class OrganizationApi:
|
|
|
4390
3579
|
|
|
4391
3580
|
return self.api_client.param_serialize(
|
|
4392
3581
|
method='PATCH',
|
|
4393
|
-
resource_path='/organizations/{organization_id}/
|
|
3582
|
+
resource_path='/organizations/{organization_id}/security/access/{identity_id}',
|
|
4394
3583
|
path_params=_path_params,
|
|
4395
3584
|
query_params=_query_params,
|
|
4396
3585
|
header_params=_header_params,
|
|
@@ -4407,10 +3596,10 @@ class OrganizationApi:
|
|
|
4407
3596
|
|
|
4408
3597
|
|
|
4409
3598
|
@validate_call
|
|
4410
|
-
def
|
|
3599
|
+
def update_organization_default_security(
|
|
4411
3600
|
self,
|
|
4412
|
-
organization_id: Annotated[
|
|
4413
|
-
|
|
3601
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
3602
|
+
organization_role: Annotated[OrganizationRole, Field(description="This change the organization default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the organization.")],
|
|
4414
3603
|
_request_timeout: Union[
|
|
4415
3604
|
None,
|
|
4416
3605
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4423,14 +3612,14 @@ class OrganizationApi:
|
|
|
4423
3612
|
_content_type: Optional[StrictStr] = None,
|
|
4424
3613
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4425
3614
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4426
|
-
) ->
|
|
4427
|
-
"""Update
|
|
3615
|
+
) -> OrganizationSecurity:
|
|
3616
|
+
"""Update the Organization default security
|
|
4428
3617
|
|
|
4429
3618
|
|
|
4430
|
-
:param organization_id:
|
|
3619
|
+
:param organization_id: The Organization identifier (required)
|
|
4431
3620
|
:type organization_id: str
|
|
4432
|
-
:param
|
|
4433
|
-
:type
|
|
3621
|
+
:param organization_role: This change the organization default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the organization. (required)
|
|
3622
|
+
:type organization_role: OrganizationRole
|
|
4434
3623
|
:param _request_timeout: timeout setting for this request. If one
|
|
4435
3624
|
number provided, it will be total request
|
|
4436
3625
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4453,9 +3642,9 @@ class OrganizationApi:
|
|
|
4453
3642
|
:return: Returns the result object.
|
|
4454
3643
|
""" # noqa: E501
|
|
4455
3644
|
|
|
4456
|
-
_param = self.
|
|
3645
|
+
_param = self._update_organization_default_security_serialize(
|
|
4457
3646
|
organization_id=organization_id,
|
|
4458
|
-
|
|
3647
|
+
organization_role=organization_role,
|
|
4459
3648
|
_request_auth=_request_auth,
|
|
4460
3649
|
_content_type=_content_type,
|
|
4461
3650
|
_headers=_headers,
|
|
@@ -4463,7 +3652,7 @@ class OrganizationApi:
|
|
|
4463
3652
|
)
|
|
4464
3653
|
|
|
4465
3654
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4466
|
-
'
|
|
3655
|
+
'201': "OrganizationSecurity",
|
|
4467
3656
|
'404': None,
|
|
4468
3657
|
}
|
|
4469
3658
|
response_data = self.api_client.call_api(
|
|
@@ -4478,10 +3667,10 @@ class OrganizationApi:
|
|
|
4478
3667
|
|
|
4479
3668
|
|
|
4480
3669
|
@validate_call
|
|
4481
|
-
def
|
|
3670
|
+
def update_organization_default_security_with_http_info(
|
|
4482
3671
|
self,
|
|
4483
|
-
organization_id: Annotated[
|
|
4484
|
-
|
|
3672
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
3673
|
+
organization_role: Annotated[OrganizationRole, Field(description="This change the organization default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the organization.")],
|
|
4485
3674
|
_request_timeout: Union[
|
|
4486
3675
|
None,
|
|
4487
3676
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4494,14 +3683,14 @@ class OrganizationApi:
|
|
|
4494
3683
|
_content_type: Optional[StrictStr] = None,
|
|
4495
3684
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4496
3685
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4497
|
-
) -> ApiResponse[
|
|
4498
|
-
"""Update
|
|
3686
|
+
) -> ApiResponse[OrganizationSecurity]:
|
|
3687
|
+
"""Update the Organization default security
|
|
4499
3688
|
|
|
4500
3689
|
|
|
4501
|
-
:param organization_id:
|
|
3690
|
+
:param organization_id: The Organization identifier (required)
|
|
4502
3691
|
:type organization_id: str
|
|
4503
|
-
:param
|
|
4504
|
-
:type
|
|
3692
|
+
:param organization_role: This change the organization default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the organization. (required)
|
|
3693
|
+
:type organization_role: OrganizationRole
|
|
4505
3694
|
:param _request_timeout: timeout setting for this request. If one
|
|
4506
3695
|
number provided, it will be total request
|
|
4507
3696
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4524,9 +3713,9 @@ class OrganizationApi:
|
|
|
4524
3713
|
:return: Returns the result object.
|
|
4525
3714
|
""" # noqa: E501
|
|
4526
3715
|
|
|
4527
|
-
_param = self.
|
|
3716
|
+
_param = self._update_organization_default_security_serialize(
|
|
4528
3717
|
organization_id=organization_id,
|
|
4529
|
-
|
|
3718
|
+
organization_role=organization_role,
|
|
4530
3719
|
_request_auth=_request_auth,
|
|
4531
3720
|
_content_type=_content_type,
|
|
4532
3721
|
_headers=_headers,
|
|
@@ -4534,7 +3723,7 @@ class OrganizationApi:
|
|
|
4534
3723
|
)
|
|
4535
3724
|
|
|
4536
3725
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4537
|
-
'
|
|
3726
|
+
'201': "OrganizationSecurity",
|
|
4538
3727
|
'404': None,
|
|
4539
3728
|
}
|
|
4540
3729
|
response_data = self.api_client.call_api(
|
|
@@ -4549,10 +3738,10 @@ class OrganizationApi:
|
|
|
4549
3738
|
|
|
4550
3739
|
|
|
4551
3740
|
@validate_call
|
|
4552
|
-
def
|
|
3741
|
+
def update_organization_default_security_without_preload_content(
|
|
4553
3742
|
self,
|
|
4554
|
-
organization_id: Annotated[
|
|
4555
|
-
|
|
3743
|
+
organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
|
|
3744
|
+
organization_role: Annotated[OrganizationRole, Field(description="This change the organization default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the organization.")],
|
|
4556
3745
|
_request_timeout: Union[
|
|
4557
3746
|
None,
|
|
4558
3747
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4566,13 +3755,13 @@ class OrganizationApi:
|
|
|
4566
3755
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4567
3756
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4568
3757
|
) -> RESTResponseType:
|
|
4569
|
-
"""Update
|
|
3758
|
+
"""Update the Organization default security
|
|
4570
3759
|
|
|
4571
3760
|
|
|
4572
|
-
:param organization_id:
|
|
3761
|
+
:param organization_id: The Organization identifier (required)
|
|
4573
3762
|
:type organization_id: str
|
|
4574
|
-
:param
|
|
4575
|
-
:type
|
|
3763
|
+
:param organization_role: This change the organization default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the organization. (required)
|
|
3764
|
+
:type organization_role: OrganizationRole
|
|
4576
3765
|
:param _request_timeout: timeout setting for this request. If one
|
|
4577
3766
|
number provided, it will be total request
|
|
4578
3767
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4595,9 +3784,9 @@ class OrganizationApi:
|
|
|
4595
3784
|
:return: Returns the result object.
|
|
4596
3785
|
""" # noqa: E501
|
|
4597
3786
|
|
|
4598
|
-
_param = self.
|
|
3787
|
+
_param = self._update_organization_default_security_serialize(
|
|
4599
3788
|
organization_id=organization_id,
|
|
4600
|
-
|
|
3789
|
+
organization_role=organization_role,
|
|
4601
3790
|
_request_auth=_request_auth,
|
|
4602
3791
|
_content_type=_content_type,
|
|
4603
3792
|
_headers=_headers,
|
|
@@ -4605,7 +3794,7 @@ class OrganizationApi:
|
|
|
4605
3794
|
)
|
|
4606
3795
|
|
|
4607
3796
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4608
|
-
'
|
|
3797
|
+
'201': "OrganizationSecurity",
|
|
4609
3798
|
'404': None,
|
|
4610
3799
|
}
|
|
4611
3800
|
response_data = self.api_client.call_api(
|
|
@@ -4615,10 +3804,10 @@ class OrganizationApi:
|
|
|
4615
3804
|
return response_data.response
|
|
4616
3805
|
|
|
4617
3806
|
|
|
4618
|
-
def
|
|
3807
|
+
def _update_organization_default_security_serialize(
|
|
4619
3808
|
self,
|
|
4620
3809
|
organization_id,
|
|
4621
|
-
|
|
3810
|
+
organization_role,
|
|
4622
3811
|
_request_auth,
|
|
4623
3812
|
_content_type,
|
|
4624
3813
|
_headers,
|
|
@@ -4634,7 +3823,9 @@ class OrganizationApi:
|
|
|
4634
3823
|
_query_params: List[Tuple[str, str]] = []
|
|
4635
3824
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4636
3825
|
_form_params: List[Tuple[str, str]] = []
|
|
4637
|
-
_files: Dict[
|
|
3826
|
+
_files: Dict[
|
|
3827
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3828
|
+
] = {}
|
|
4638
3829
|
_body_params: Optional[bytes] = None
|
|
4639
3830
|
|
|
4640
3831
|
# process the path parameters
|
|
@@ -4644,16 +3835,18 @@ class OrganizationApi:
|
|
|
4644
3835
|
# process the header parameters
|
|
4645
3836
|
# process the form parameters
|
|
4646
3837
|
# process the body parameter
|
|
4647
|
-
if
|
|
4648
|
-
_body_params =
|
|
3838
|
+
if organization_role is not None:
|
|
3839
|
+
_body_params = organization_role
|
|
4649
3840
|
|
|
4650
3841
|
|
|
4651
3842
|
# set the HTTP header `Accept`
|
|
4652
|
-
|
|
4653
|
-
[
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
3843
|
+
if 'Accept' not in _header_params:
|
|
3844
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3845
|
+
[
|
|
3846
|
+
'application/json',
|
|
3847
|
+
'application/yaml'
|
|
3848
|
+
]
|
|
3849
|
+
)
|
|
4657
3850
|
|
|
4658
3851
|
# set the HTTP header `Content-Type`
|
|
4659
3852
|
if _content_type:
|
|
@@ -4662,7 +3855,8 @@ class OrganizationApi:
|
|
|
4662
3855
|
_default_content_type = (
|
|
4663
3856
|
self.api_client.select_header_content_type(
|
|
4664
3857
|
[
|
|
4665
|
-
'application/json'
|
|
3858
|
+
'application/json',
|
|
3859
|
+
'application/yaml'
|
|
4666
3860
|
]
|
|
4667
3861
|
)
|
|
4668
3862
|
)
|
|
@@ -4676,7 +3870,7 @@ class OrganizationApi:
|
|
|
4676
3870
|
|
|
4677
3871
|
return self.api_client.param_serialize(
|
|
4678
3872
|
method='PATCH',
|
|
4679
|
-
resource_path='/organizations/{organization_id}/
|
|
3873
|
+
resource_path='/organizations/{organization_id}/security/default',
|
|
4680
3874
|
path_params=_path_params,
|
|
4681
3875
|
query_params=_query_params,
|
|
4682
3876
|
header_params=_header_params,
|