cosmotech-api 4.0.0.dev9__py3-none-any.whl → 5.0.0b3__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.
Potentially problematic release.
This version of cosmotech-api might be problematic. Click here for more details.
- cosmotech_api/__init__.py +32 -27
- cosmotech_api/api/__init__.py +1 -1
- cosmotech_api/api/connector_api.py +19 -8
- cosmotech_api/api/dataset_api.py +1496 -4126
- cosmotech_api/api/meta_api.py +281 -0
- cosmotech_api/api/organization_api.py +605 -562
- cosmotech_api/api/run_api.py +42 -22
- cosmotech_api/api/runner_api.py +512 -467
- cosmotech_api/api/scenario_api.py +141 -121
- cosmotech_api/api/scenariorun_api.py +76 -66
- cosmotech_api/api/scenariorunresult_api.py +1 -1
- cosmotech_api/api/solution_api.py +2980 -795
- cosmotech_api/api/twingraph_api.py +83 -72
- cosmotech_api/api/validator_api.py +1 -1
- cosmotech_api/api/workspace_api.py +795 -1331
- cosmotech_api/api_client.py +14 -5
- cosmotech_api/configuration.py +167 -40
- 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 +31 -26
- cosmotech_api/models/about_info.py +92 -0
- cosmotech_api/models/about_info_version.py +100 -0
- cosmotech_api/models/component_role_permissions.py +5 -5
- cosmotech_api/models/connector.py +1 -1
- cosmotech_api/models/connector_parameter.py +1 -1
- cosmotech_api/models/connector_parameter_group.py +1 -1
- cosmotech_api/models/container_resource_size_info.py +1 -1
- cosmotech_api/models/container_resource_sizing.py +1 -1
- cosmotech_api/models/create_info.py +103 -0
- cosmotech_api/models/created_run.py +2 -2
- cosmotech_api/models/dataset.py +42 -81
- cosmotech_api/models/dataset_access_control.py +1 -1
- cosmotech_api/models/dataset_compatibility.py +1 -1
- cosmotech_api/models/dataset_connector.py +1 -1
- cosmotech_api/models/dataset_copy_parameters.py +1 -1
- cosmotech_api/models/dataset_create_request.py +121 -0
- cosmotech_api/models/dataset_part.py +130 -0
- cosmotech_api/models/dataset_part_create_request.py +98 -0
- cosmotech_api/models/dataset_part_type_enum.py +38 -0
- cosmotech_api/models/dataset_part_update_request.py +90 -0
- cosmotech_api/models/dataset_role.py +1 -1
- cosmotech_api/models/dataset_search.py +1 -1
- cosmotech_api/models/dataset_security.py +1 -1
- cosmotech_api/models/dataset_source_type.py +1 -1
- cosmotech_api/models/dataset_twin_graph_hash.py +1 -1
- cosmotech_api/models/dataset_twin_graph_info.py +1 -1
- cosmotech_api/models/dataset_twin_graph_query.py +1 -1
- cosmotech_api/models/dataset_update_request.py +109 -0
- cosmotech_api/models/delete_historical_data.py +1 -1
- cosmotech_api/models/edit_info.py +90 -0
- cosmotech_api/models/file_upload_metadata.py +1 -1
- cosmotech_api/models/file_upload_validation.py +1 -1
- cosmotech_api/models/graph_properties.py +1 -1
- cosmotech_api/models/ingestion_status_enum.py +1 -1
- cosmotech_api/models/io_types_enum.py +1 -1
- cosmotech_api/models/last_run_info.py +100 -0
- cosmotech_api/models/organization.py +18 -11
- cosmotech_api/models/organization_access_control.py +4 -4
- cosmotech_api/models/organization_create_request.py +95 -0
- cosmotech_api/models/organization_edit_info.py +90 -0
- cosmotech_api/models/organization_role.py +3 -3
- cosmotech_api/models/organization_security.py +4 -4
- 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 +1 -1
- cosmotech_api/models/resource_size_info.py +1 -1
- cosmotech_api/models/run.py +8 -10
- cosmotech_api/models/run_container.py +1 -1
- cosmotech_api/models/run_container_artifact.py +7 -7
- cosmotech_api/models/run_container_logs.py +7 -7
- cosmotech_api/models/run_data.py +2 -2
- cosmotech_api/models/run_data_query.py +1 -1
- cosmotech_api/models/run_edit_info.py +90 -0
- cosmotech_api/models/run_logs.py +1 -1
- cosmotech_api/models/run_logs_entry.py +1 -1
- cosmotech_api/models/run_resource_requested.py +1 -1
- cosmotech_api/models/run_search.py +7 -7
- cosmotech_api/models/run_search_state.py +1 -1
- cosmotech_api/models/run_start_containers.py +10 -10
- cosmotech_api/models/run_state.py +2 -1
- cosmotech_api/models/run_status.py +8 -2
- cosmotech_api/models/run_status_node.py +1 -1
- cosmotech_api/models/run_template.py +14 -69
- 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 +14 -11
- cosmotech_api/models/run_template_parameter_create_request.py +105 -0
- cosmotech_api/models/run_template_parameter_group.py +12 -9
- cosmotech_api/models/run_template_parameter_group_create_request.py +101 -0
- cosmotech_api/models/run_template_parameter_group_update_request.py +98 -0
- cosmotech_api/models/run_template_parameter_update_request.py +103 -0
- cosmotech_api/models/run_template_parameter_value.py +1 -1
- cosmotech_api/models/run_template_resource_sizing.py +2 -2
- 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 +31 -28
- cosmotech_api/models/runner_access_control.py +1 -1
- 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 +154 -0
- cosmotech_api/models/runner_data_download_info.py +12 -9
- cosmotech_api/models/runner_data_download_job.py +7 -7
- 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 +1 -1
- cosmotech_api/models/runner_role.py +1 -1
- cosmotech_api/models/runner_root_last_run.py +7 -7
- cosmotech_api/models/runner_run_template_parameter_value.py +1 -1
- cosmotech_api/models/runner_security.py +1 -1
- cosmotech_api/models/runner_update_request.py +123 -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 +7 -7
- cosmotech_api/models/scenario_run_search_state.py +1 -1
- 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 +5 -5
- cosmotech_api/models/solution.py +45 -29
- cosmotech_api/models/solution_access_control.py +4 -4
- cosmotech_api/models/solution_create_request.py +139 -0
- cosmotech_api/models/solution_edit_info.py +90 -0
- cosmotech_api/models/solution_role.py +3 -3
- cosmotech_api/models/solution_security.py +4 -4
- cosmotech_api/models/solution_update_request.py +133 -0
- cosmotech_api/models/source_info.py +1 -1
- cosmotech_api/models/sub_dataset_graph_query.py +1 -1
- cosmotech_api/models/twin_graph_batch_result.py +1 -1
- 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 +1 -1
- cosmotech_api/models/validator.py +7 -7
- cosmotech_api/models/workspace.py +38 -30
- cosmotech_api/models/workspace_access_control.py +4 -4
- cosmotech_api/models/workspace_create_request.py +117 -0
- cosmotech_api/models/workspace_edit_info.py +90 -0
- cosmotech_api/models/workspace_file.py +4 -4
- cosmotech_api/models/workspace_role.py +3 -3
- cosmotech_api/models/workspace_secret.py +7 -7
- cosmotech_api/models/workspace_security.py +4 -4
- cosmotech_api/models/workspace_solution.py +14 -6
- cosmotech_api/models/workspace_update_request.py +109 -0
- cosmotech_api/models/workspace_web_app.py +4 -4
- cosmotech_api/rest.py +3 -2
- cosmotech_api-5.0.0b3.dist-info/METADATA +27 -0
- cosmotech_api-5.0.0b3.dist-info/RECORD +293 -0
- {cosmotech_api-4.0.0.dev9.dist-info → cosmotech_api-5.0.0b3.dist-info}/WHEEL +1 -1
- {cosmotech_api-4.0.0.dev9.dist-info → cosmotech_api-5.0.0b3.dist-info/licenses}/LICENSE +1 -1
- cosmotech_api-4.0.0.dev9.dist-info/METADATA +0 -18
- cosmotech_api-4.0.0.dev9.dist-info/RECORD +0 -262
- {cosmotech_api-4.0.0.dev9.dist-info → cosmotech_api-5.0.0b3.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-beta3
|
|
9
9
|
Contact: platform@cosmotech.com
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -23,8 +23,10 @@ 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
|
|
29
|
+
from cosmotech_api.models.organization_update_request import OrganizationUpdateRequest
|
|
28
30
|
|
|
29
31
|
from cosmotech_api.api_client import ApiClient, RequestSerialized
|
|
30
32
|
from cosmotech_api.api_response import ApiResponse
|
|
@@ -45,10 +47,9 @@ class OrganizationApi:
|
|
|
45
47
|
|
|
46
48
|
|
|
47
49
|
@validate_call
|
|
48
|
-
def
|
|
50
|
+
def create_organization(
|
|
49
51
|
self,
|
|
50
|
-
|
|
51
|
-
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")],
|
|
52
53
|
_request_timeout: Union[
|
|
53
54
|
None,
|
|
54
55
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -61,14 +62,12 @@ class OrganizationApi:
|
|
|
61
62
|
_content_type: Optional[StrictStr] = None,
|
|
62
63
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
63
64
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
64
|
-
) ->
|
|
65
|
-
"""
|
|
65
|
+
) -> Organization:
|
|
66
|
+
"""Create a new organization
|
|
66
67
|
|
|
67
68
|
|
|
68
|
-
:param
|
|
69
|
-
:type
|
|
70
|
-
:param organization_access_control: the new Organization security access to add. (required)
|
|
71
|
-
:type organization_access_control: OrganizationAccessControl
|
|
69
|
+
:param organization_create_request: The Organization to create (required)
|
|
70
|
+
:type organization_create_request: OrganizationCreateRequest
|
|
72
71
|
:param _request_timeout: timeout setting for this request. If one
|
|
73
72
|
number provided, it will be total request
|
|
74
73
|
timeout. It can also be a pair (tuple) of
|
|
@@ -91,9 +90,8 @@ class OrganizationApi:
|
|
|
91
90
|
:return: Returns the result object.
|
|
92
91
|
""" # noqa: E501
|
|
93
92
|
|
|
94
|
-
_param = self.
|
|
95
|
-
|
|
96
|
-
organization_access_control=organization_access_control,
|
|
93
|
+
_param = self._create_organization_serialize(
|
|
94
|
+
organization_create_request=organization_create_request,
|
|
97
95
|
_request_auth=_request_auth,
|
|
98
96
|
_content_type=_content_type,
|
|
99
97
|
_headers=_headers,
|
|
@@ -101,8 +99,8 @@ class OrganizationApi:
|
|
|
101
99
|
)
|
|
102
100
|
|
|
103
101
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
104
|
-
'201': "
|
|
105
|
-
'
|
|
102
|
+
'201': "Organization",
|
|
103
|
+
'400': None,
|
|
106
104
|
}
|
|
107
105
|
response_data = self.api_client.call_api(
|
|
108
106
|
*_param,
|
|
@@ -116,10 +114,9 @@ class OrganizationApi:
|
|
|
116
114
|
|
|
117
115
|
|
|
118
116
|
@validate_call
|
|
119
|
-
def
|
|
117
|
+
def create_organization_with_http_info(
|
|
120
118
|
self,
|
|
121
|
-
|
|
122
|
-
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")],
|
|
123
120
|
_request_timeout: Union[
|
|
124
121
|
None,
|
|
125
122
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -132,14 +129,12 @@ class OrganizationApi:
|
|
|
132
129
|
_content_type: Optional[StrictStr] = None,
|
|
133
130
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
134
131
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
135
|
-
) -> ApiResponse[
|
|
136
|
-
"""
|
|
132
|
+
) -> ApiResponse[Organization]:
|
|
133
|
+
"""Create a new organization
|
|
137
134
|
|
|
138
135
|
|
|
139
|
-
:param
|
|
140
|
-
:type
|
|
141
|
-
:param organization_access_control: the new Organization security access to add. (required)
|
|
142
|
-
:type organization_access_control: OrganizationAccessControl
|
|
136
|
+
:param organization_create_request: The Organization to create (required)
|
|
137
|
+
:type organization_create_request: OrganizationCreateRequest
|
|
143
138
|
:param _request_timeout: timeout setting for this request. If one
|
|
144
139
|
number provided, it will be total request
|
|
145
140
|
timeout. It can also be a pair (tuple) of
|
|
@@ -162,9 +157,8 @@ class OrganizationApi:
|
|
|
162
157
|
:return: Returns the result object.
|
|
163
158
|
""" # noqa: E501
|
|
164
159
|
|
|
165
|
-
_param = self.
|
|
166
|
-
|
|
167
|
-
organization_access_control=organization_access_control,
|
|
160
|
+
_param = self._create_organization_serialize(
|
|
161
|
+
organization_create_request=organization_create_request,
|
|
168
162
|
_request_auth=_request_auth,
|
|
169
163
|
_content_type=_content_type,
|
|
170
164
|
_headers=_headers,
|
|
@@ -172,8 +166,8 @@ class OrganizationApi:
|
|
|
172
166
|
)
|
|
173
167
|
|
|
174
168
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
175
|
-
'201': "
|
|
176
|
-
'
|
|
169
|
+
'201': "Organization",
|
|
170
|
+
'400': None,
|
|
177
171
|
}
|
|
178
172
|
response_data = self.api_client.call_api(
|
|
179
173
|
*_param,
|
|
@@ -187,10 +181,9 @@ class OrganizationApi:
|
|
|
187
181
|
|
|
188
182
|
|
|
189
183
|
@validate_call
|
|
190
|
-
def
|
|
184
|
+
def create_organization_without_preload_content(
|
|
191
185
|
self,
|
|
192
|
-
|
|
193
|
-
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")],
|
|
194
187
|
_request_timeout: Union[
|
|
195
188
|
None,
|
|
196
189
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -204,13 +197,11 @@ class OrganizationApi:
|
|
|
204
197
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
205
198
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
206
199
|
) -> RESTResponseType:
|
|
207
|
-
"""
|
|
200
|
+
"""Create a new organization
|
|
208
201
|
|
|
209
202
|
|
|
210
|
-
:param
|
|
211
|
-
:type
|
|
212
|
-
:param organization_access_control: the new Organization security access to add. (required)
|
|
213
|
-
:type organization_access_control: OrganizationAccessControl
|
|
203
|
+
:param organization_create_request: The Organization to create (required)
|
|
204
|
+
:type organization_create_request: OrganizationCreateRequest
|
|
214
205
|
:param _request_timeout: timeout setting for this request. If one
|
|
215
206
|
number provided, it will be total request
|
|
216
207
|
timeout. It can also be a pair (tuple) of
|
|
@@ -233,9 +224,8 @@ class OrganizationApi:
|
|
|
233
224
|
:return: Returns the result object.
|
|
234
225
|
""" # noqa: E501
|
|
235
226
|
|
|
236
|
-
_param = self.
|
|
237
|
-
|
|
238
|
-
organization_access_control=organization_access_control,
|
|
227
|
+
_param = self._create_organization_serialize(
|
|
228
|
+
organization_create_request=organization_create_request,
|
|
239
229
|
_request_auth=_request_auth,
|
|
240
230
|
_content_type=_content_type,
|
|
241
231
|
_headers=_headers,
|
|
@@ -243,8 +233,8 @@ class OrganizationApi:
|
|
|
243
233
|
)
|
|
244
234
|
|
|
245
235
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
246
|
-
'201': "
|
|
247
|
-
'
|
|
236
|
+
'201': "Organization",
|
|
237
|
+
'400': None,
|
|
248
238
|
}
|
|
249
239
|
response_data = self.api_client.call_api(
|
|
250
240
|
*_param,
|
|
@@ -253,10 +243,9 @@ class OrganizationApi:
|
|
|
253
243
|
return response_data.response
|
|
254
244
|
|
|
255
245
|
|
|
256
|
-
def
|
|
246
|
+
def _create_organization_serialize(
|
|
257
247
|
self,
|
|
258
|
-
|
|
259
|
-
organization_access_control,
|
|
248
|
+
organization_create_request,
|
|
260
249
|
_request_auth,
|
|
261
250
|
_content_type,
|
|
262
251
|
_headers,
|
|
@@ -272,25 +261,26 @@ class OrganizationApi:
|
|
|
272
261
|
_query_params: List[Tuple[str, str]] = []
|
|
273
262
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
274
263
|
_form_params: List[Tuple[str, str]] = []
|
|
275
|
-
_files: Dict[
|
|
264
|
+
_files: Dict[
|
|
265
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
266
|
+
] = {}
|
|
276
267
|
_body_params: Optional[bytes] = None
|
|
277
268
|
|
|
278
269
|
# process the path parameters
|
|
279
|
-
if organization_id is not None:
|
|
280
|
-
_path_params['organization_id'] = organization_id
|
|
281
270
|
# process the query parameters
|
|
282
271
|
# process the header parameters
|
|
283
272
|
# process the form parameters
|
|
284
273
|
# process the body parameter
|
|
285
|
-
if
|
|
286
|
-
_body_params =
|
|
274
|
+
if organization_create_request is not None:
|
|
275
|
+
_body_params = organization_create_request
|
|
287
276
|
|
|
288
277
|
|
|
289
278
|
# set the HTTP header `Accept`
|
|
290
279
|
if 'Accept' not in _header_params:
|
|
291
280
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
292
281
|
[
|
|
293
|
-
'application/json'
|
|
282
|
+
'application/json',
|
|
283
|
+
'application/yaml'
|
|
294
284
|
]
|
|
295
285
|
)
|
|
296
286
|
|
|
@@ -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[StrictStr, Field(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[StrictStr, Field(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[StrictStr, Field(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,32 +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
570
|
if 'Accept' not in _header_params:
|
|
580
571
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
581
572
|
[
|
|
582
|
-
'application/json'
|
|
573
|
+
'application/json',
|
|
574
|
+
'application/yaml'
|
|
583
575
|
]
|
|
584
576
|
)
|
|
585
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
|
|
586
592
|
|
|
587
593
|
# authentication setting
|
|
588
594
|
_auth_settings: List[str] = [
|
|
@@ -590,8 +596,8 @@ class OrganizationApi:
|
|
|
590
596
|
]
|
|
591
597
|
|
|
592
598
|
return self.api_client.param_serialize(
|
|
593
|
-
method='
|
|
594
|
-
resource_path='/organizations',
|
|
599
|
+
method='POST',
|
|
600
|
+
resource_path='/organizations/{organization_id}/security/access',
|
|
595
601
|
path_params=_path_params,
|
|
596
602
|
query_params=_query_params,
|
|
597
603
|
header_params=_header_params,
|
|
@@ -608,9 +614,9 @@ class OrganizationApi:
|
|
|
608
614
|
|
|
609
615
|
|
|
610
616
|
@validate_call
|
|
611
|
-
def
|
|
617
|
+
def delete_organization(
|
|
612
618
|
self,
|
|
613
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
619
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
614
620
|
_request_timeout: Union[
|
|
615
621
|
None,
|
|
616
622
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -623,11 +629,11 @@ class OrganizationApi:
|
|
|
623
629
|
_content_type: Optional[StrictStr] = None,
|
|
624
630
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
625
631
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
626
|
-
) ->
|
|
627
|
-
"""
|
|
632
|
+
) -> None:
|
|
633
|
+
"""Delete an organization
|
|
628
634
|
|
|
629
635
|
|
|
630
|
-
:param organization_id:
|
|
636
|
+
:param organization_id: The Organization identifier (required)
|
|
631
637
|
:type organization_id: str
|
|
632
638
|
:param _request_timeout: timeout setting for this request. If one
|
|
633
639
|
number provided, it will be total request
|
|
@@ -651,7 +657,7 @@ class OrganizationApi:
|
|
|
651
657
|
:return: Returns the result object.
|
|
652
658
|
""" # noqa: E501
|
|
653
659
|
|
|
654
|
-
_param = self.
|
|
660
|
+
_param = self._delete_organization_serialize(
|
|
655
661
|
organization_id=organization_id,
|
|
656
662
|
_request_auth=_request_auth,
|
|
657
663
|
_content_type=_content_type,
|
|
@@ -660,7 +666,7 @@ class OrganizationApi:
|
|
|
660
666
|
)
|
|
661
667
|
|
|
662
668
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
663
|
-
'
|
|
669
|
+
'204': None,
|
|
664
670
|
'404': None,
|
|
665
671
|
}
|
|
666
672
|
response_data = self.api_client.call_api(
|
|
@@ -675,9 +681,9 @@ class OrganizationApi:
|
|
|
675
681
|
|
|
676
682
|
|
|
677
683
|
@validate_call
|
|
678
|
-
def
|
|
684
|
+
def delete_organization_with_http_info(
|
|
679
685
|
self,
|
|
680
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
686
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
681
687
|
_request_timeout: Union[
|
|
682
688
|
None,
|
|
683
689
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -690,11 +696,11 @@ class OrganizationApi:
|
|
|
690
696
|
_content_type: Optional[StrictStr] = None,
|
|
691
697
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
692
698
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
693
|
-
) -> ApiResponse[
|
|
694
|
-
"""
|
|
699
|
+
) -> ApiResponse[None]:
|
|
700
|
+
"""Delete an organization
|
|
695
701
|
|
|
696
702
|
|
|
697
|
-
:param organization_id:
|
|
703
|
+
:param organization_id: The Organization identifier (required)
|
|
698
704
|
:type organization_id: str
|
|
699
705
|
:param _request_timeout: timeout setting for this request. If one
|
|
700
706
|
number provided, it will be total request
|
|
@@ -718,7 +724,7 @@ class OrganizationApi:
|
|
|
718
724
|
:return: Returns the result object.
|
|
719
725
|
""" # noqa: E501
|
|
720
726
|
|
|
721
|
-
_param = self.
|
|
727
|
+
_param = self._delete_organization_serialize(
|
|
722
728
|
organization_id=organization_id,
|
|
723
729
|
_request_auth=_request_auth,
|
|
724
730
|
_content_type=_content_type,
|
|
@@ -727,7 +733,7 @@ class OrganizationApi:
|
|
|
727
733
|
)
|
|
728
734
|
|
|
729
735
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
730
|
-
'
|
|
736
|
+
'204': None,
|
|
731
737
|
'404': None,
|
|
732
738
|
}
|
|
733
739
|
response_data = self.api_client.call_api(
|
|
@@ -742,9 +748,9 @@ class OrganizationApi:
|
|
|
742
748
|
|
|
743
749
|
|
|
744
750
|
@validate_call
|
|
745
|
-
def
|
|
751
|
+
def delete_organization_without_preload_content(
|
|
746
752
|
self,
|
|
747
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
753
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
748
754
|
_request_timeout: Union[
|
|
749
755
|
None,
|
|
750
756
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -758,10 +764,10 @@ class OrganizationApi:
|
|
|
758
764
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
759
765
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
760
766
|
) -> RESTResponseType:
|
|
761
|
-
"""
|
|
767
|
+
"""Delete an organization
|
|
762
768
|
|
|
763
769
|
|
|
764
|
-
:param organization_id:
|
|
770
|
+
:param organization_id: The Organization identifier (required)
|
|
765
771
|
:type organization_id: str
|
|
766
772
|
:param _request_timeout: timeout setting for this request. If one
|
|
767
773
|
number provided, it will be total request
|
|
@@ -785,7 +791,7 @@ class OrganizationApi:
|
|
|
785
791
|
:return: Returns the result object.
|
|
786
792
|
""" # noqa: E501
|
|
787
793
|
|
|
788
|
-
_param = self.
|
|
794
|
+
_param = self._delete_organization_serialize(
|
|
789
795
|
organization_id=organization_id,
|
|
790
796
|
_request_auth=_request_auth,
|
|
791
797
|
_content_type=_content_type,
|
|
@@ -794,7 +800,7 @@ class OrganizationApi:
|
|
|
794
800
|
)
|
|
795
801
|
|
|
796
802
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
797
|
-
'
|
|
803
|
+
'204': None,
|
|
798
804
|
'404': None,
|
|
799
805
|
}
|
|
800
806
|
response_data = self.api_client.call_api(
|
|
@@ -804,7 +810,7 @@ class OrganizationApi:
|
|
|
804
810
|
return response_data.response
|
|
805
811
|
|
|
806
812
|
|
|
807
|
-
def
|
|
813
|
+
def _delete_organization_serialize(
|
|
808
814
|
self,
|
|
809
815
|
organization_id,
|
|
810
816
|
_request_auth,
|
|
@@ -822,7 +828,9 @@ class OrganizationApi:
|
|
|
822
828
|
_query_params: List[Tuple[str, str]] = []
|
|
823
829
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
824
830
|
_form_params: List[Tuple[str, str]] = []
|
|
825
|
-
_files: Dict[
|
|
831
|
+
_files: Dict[
|
|
832
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
833
|
+
] = {}
|
|
826
834
|
_body_params: Optional[bytes] = None
|
|
827
835
|
|
|
828
836
|
# process the path parameters
|
|
@@ -834,13 +842,6 @@ class OrganizationApi:
|
|
|
834
842
|
# process the body parameter
|
|
835
843
|
|
|
836
844
|
|
|
837
|
-
# set the HTTP header `Accept`
|
|
838
|
-
if 'Accept' not in _header_params:
|
|
839
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
840
|
-
[
|
|
841
|
-
'application/json'
|
|
842
|
-
]
|
|
843
|
-
)
|
|
844
845
|
|
|
845
846
|
|
|
846
847
|
# authentication setting
|
|
@@ -849,7 +850,7 @@ class OrganizationApi:
|
|
|
849
850
|
]
|
|
850
851
|
|
|
851
852
|
return self.api_client.param_serialize(
|
|
852
|
-
method='
|
|
853
|
+
method='DELETE',
|
|
853
854
|
resource_path='/organizations/{organization_id}',
|
|
854
855
|
path_params=_path_params,
|
|
855
856
|
query_params=_query_params,
|
|
@@ -867,8 +868,10 @@ class OrganizationApi:
|
|
|
867
868
|
|
|
868
869
|
|
|
869
870
|
@validate_call
|
|
870
|
-
def
|
|
871
|
+
def delete_organization_access_control(
|
|
871
872
|
self,
|
|
873
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
874
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
872
875
|
_request_timeout: Union[
|
|
873
876
|
None,
|
|
874
877
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -881,10 +884,14 @@ class OrganizationApi:
|
|
|
881
884
|
_content_type: Optional[StrictStr] = None,
|
|
882
885
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
883
886
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
884
|
-
) ->
|
|
885
|
-
"""
|
|
887
|
+
) -> None:
|
|
888
|
+
"""Remove the specified access from the given Organization
|
|
886
889
|
|
|
887
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
|
|
888
895
|
:param _request_timeout: timeout setting for this request. If one
|
|
889
896
|
number provided, it will be total request
|
|
890
897
|
timeout. It can also be a pair (tuple) of
|
|
@@ -907,7 +914,9 @@ class OrganizationApi:
|
|
|
907
914
|
:return: Returns the result object.
|
|
908
915
|
""" # noqa: E501
|
|
909
916
|
|
|
910
|
-
_param = self.
|
|
917
|
+
_param = self._delete_organization_access_control_serialize(
|
|
918
|
+
organization_id=organization_id,
|
|
919
|
+
identity_id=identity_id,
|
|
911
920
|
_request_auth=_request_auth,
|
|
912
921
|
_content_type=_content_type,
|
|
913
922
|
_headers=_headers,
|
|
@@ -915,7 +924,8 @@ class OrganizationApi:
|
|
|
915
924
|
)
|
|
916
925
|
|
|
917
926
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
918
|
-
'
|
|
927
|
+
'204': None,
|
|
928
|
+
'404': None,
|
|
919
929
|
}
|
|
920
930
|
response_data = self.api_client.call_api(
|
|
921
931
|
*_param,
|
|
@@ -929,8 +939,10 @@ class OrganizationApi:
|
|
|
929
939
|
|
|
930
940
|
|
|
931
941
|
@validate_call
|
|
932
|
-
def
|
|
942
|
+
def delete_organization_access_control_with_http_info(
|
|
933
943
|
self,
|
|
944
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
945
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
934
946
|
_request_timeout: Union[
|
|
935
947
|
None,
|
|
936
948
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -943,10 +955,14 @@ class OrganizationApi:
|
|
|
943
955
|
_content_type: Optional[StrictStr] = None,
|
|
944
956
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
945
957
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
946
|
-
) -> ApiResponse[
|
|
947
|
-
"""
|
|
958
|
+
) -> ApiResponse[None]:
|
|
959
|
+
"""Remove the specified access from the given Organization
|
|
948
960
|
|
|
949
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
|
|
950
966
|
:param _request_timeout: timeout setting for this request. If one
|
|
951
967
|
number provided, it will be total request
|
|
952
968
|
timeout. It can also be a pair (tuple) of
|
|
@@ -969,7 +985,9 @@ class OrganizationApi:
|
|
|
969
985
|
:return: Returns the result object.
|
|
970
986
|
""" # noqa: E501
|
|
971
987
|
|
|
972
|
-
_param = self.
|
|
988
|
+
_param = self._delete_organization_access_control_serialize(
|
|
989
|
+
organization_id=organization_id,
|
|
990
|
+
identity_id=identity_id,
|
|
973
991
|
_request_auth=_request_auth,
|
|
974
992
|
_content_type=_content_type,
|
|
975
993
|
_headers=_headers,
|
|
@@ -977,7 +995,8 @@ class OrganizationApi:
|
|
|
977
995
|
)
|
|
978
996
|
|
|
979
997
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
980
|
-
'
|
|
998
|
+
'204': None,
|
|
999
|
+
'404': None,
|
|
981
1000
|
}
|
|
982
1001
|
response_data = self.api_client.call_api(
|
|
983
1002
|
*_param,
|
|
@@ -991,8 +1010,10 @@ class OrganizationApi:
|
|
|
991
1010
|
|
|
992
1011
|
|
|
993
1012
|
@validate_call
|
|
994
|
-
def
|
|
1013
|
+
def delete_organization_access_control_without_preload_content(
|
|
995
1014
|
self,
|
|
1015
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1016
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
996
1017
|
_request_timeout: Union[
|
|
997
1018
|
None,
|
|
998
1019
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1006,9 +1027,13 @@ class OrganizationApi:
|
|
|
1006
1027
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1007
1028
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1008
1029
|
) -> RESTResponseType:
|
|
1009
|
-
"""
|
|
1030
|
+
"""Remove the specified access from the given Organization
|
|
1010
1031
|
|
|
1011
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
|
|
1012
1037
|
:param _request_timeout: timeout setting for this request. If one
|
|
1013
1038
|
number provided, it will be total request
|
|
1014
1039
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1031,7 +1056,9 @@ class OrganizationApi:
|
|
|
1031
1056
|
:return: Returns the result object.
|
|
1032
1057
|
""" # noqa: E501
|
|
1033
1058
|
|
|
1034
|
-
_param = self.
|
|
1059
|
+
_param = self._delete_organization_access_control_serialize(
|
|
1060
|
+
organization_id=organization_id,
|
|
1061
|
+
identity_id=identity_id,
|
|
1035
1062
|
_request_auth=_request_auth,
|
|
1036
1063
|
_content_type=_content_type,
|
|
1037
1064
|
_headers=_headers,
|
|
@@ -1039,7 +1066,8 @@ class OrganizationApi:
|
|
|
1039
1066
|
)
|
|
1040
1067
|
|
|
1041
1068
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1042
|
-
'
|
|
1069
|
+
'204': None,
|
|
1070
|
+
'404': None,
|
|
1043
1071
|
}
|
|
1044
1072
|
response_data = self.api_client.call_api(
|
|
1045
1073
|
*_param,
|
|
@@ -1048,8 +1076,10 @@ class OrganizationApi:
|
|
|
1048
1076
|
return response_data.response
|
|
1049
1077
|
|
|
1050
1078
|
|
|
1051
|
-
def
|
|
1079
|
+
def _delete_organization_access_control_serialize(
|
|
1052
1080
|
self,
|
|
1081
|
+
organization_id,
|
|
1082
|
+
identity_id,
|
|
1053
1083
|
_request_auth,
|
|
1054
1084
|
_content_type,
|
|
1055
1085
|
_headers,
|
|
@@ -1065,23 +1095,22 @@ class OrganizationApi:
|
|
|
1065
1095
|
_query_params: List[Tuple[str, str]] = []
|
|
1066
1096
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1067
1097
|
_form_params: List[Tuple[str, str]] = []
|
|
1068
|
-
_files: Dict[
|
|
1098
|
+
_files: Dict[
|
|
1099
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1100
|
+
] = {}
|
|
1069
1101
|
_body_params: Optional[bytes] = None
|
|
1070
1102
|
|
|
1071
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
|
|
1072
1108
|
# process the query parameters
|
|
1073
1109
|
# process the header parameters
|
|
1074
1110
|
# process the form parameters
|
|
1075
1111
|
# process the body parameter
|
|
1076
1112
|
|
|
1077
1113
|
|
|
1078
|
-
# set the HTTP header `Accept`
|
|
1079
|
-
if 'Accept' not in _header_params:
|
|
1080
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1081
|
-
[
|
|
1082
|
-
'application/json'
|
|
1083
|
-
]
|
|
1084
|
-
)
|
|
1085
1114
|
|
|
1086
1115
|
|
|
1087
1116
|
# authentication setting
|
|
@@ -1090,8 +1119,8 @@ class OrganizationApi:
|
|
|
1090
1119
|
]
|
|
1091
1120
|
|
|
1092
1121
|
return self.api_client.param_serialize(
|
|
1093
|
-
method='
|
|
1094
|
-
resource_path='/organizations/
|
|
1122
|
+
method='DELETE',
|
|
1123
|
+
resource_path='/organizations/{organization_id}/security/access/{identity_id}',
|
|
1095
1124
|
path_params=_path_params,
|
|
1096
1125
|
query_params=_query_params,
|
|
1097
1126
|
header_params=_header_params,
|
|
@@ -1108,10 +1137,9 @@ class OrganizationApi:
|
|
|
1108
1137
|
|
|
1109
1138
|
|
|
1110
1139
|
@validate_call
|
|
1111
|
-
def
|
|
1140
|
+
def get_organization(
|
|
1112
1141
|
self,
|
|
1113
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1114
|
-
identity_id: Annotated[StrictStr, Field(description="the User identifier")],
|
|
1142
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1115
1143
|
_request_timeout: Union[
|
|
1116
1144
|
None,
|
|
1117
1145
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1124,14 +1152,12 @@ class OrganizationApi:
|
|
|
1124
1152
|
_content_type: Optional[StrictStr] = None,
|
|
1125
1153
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1126
1154
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1127
|
-
) ->
|
|
1128
|
-
"""Get
|
|
1155
|
+
) -> Organization:
|
|
1156
|
+
"""Get the details of an Organization
|
|
1129
1157
|
|
|
1130
1158
|
|
|
1131
|
-
:param organization_id:
|
|
1159
|
+
:param organization_id: The Organization identifier (required)
|
|
1132
1160
|
:type organization_id: str
|
|
1133
|
-
:param identity_id: the User identifier (required)
|
|
1134
|
-
:type identity_id: str
|
|
1135
1161
|
:param _request_timeout: timeout setting for this request. If one
|
|
1136
1162
|
number provided, it will be total request
|
|
1137
1163
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1154,9 +1180,8 @@ class OrganizationApi:
|
|
|
1154
1180
|
:return: Returns the result object.
|
|
1155
1181
|
""" # noqa: E501
|
|
1156
1182
|
|
|
1157
|
-
_param = self.
|
|
1183
|
+
_param = self._get_organization_serialize(
|
|
1158
1184
|
organization_id=organization_id,
|
|
1159
|
-
identity_id=identity_id,
|
|
1160
1185
|
_request_auth=_request_auth,
|
|
1161
1186
|
_content_type=_content_type,
|
|
1162
1187
|
_headers=_headers,
|
|
@@ -1164,7 +1189,7 @@ class OrganizationApi:
|
|
|
1164
1189
|
)
|
|
1165
1190
|
|
|
1166
1191
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1167
|
-
'200': "
|
|
1192
|
+
'200': "Organization",
|
|
1168
1193
|
'404': None,
|
|
1169
1194
|
}
|
|
1170
1195
|
response_data = self.api_client.call_api(
|
|
@@ -1179,10 +1204,9 @@ class OrganizationApi:
|
|
|
1179
1204
|
|
|
1180
1205
|
|
|
1181
1206
|
@validate_call
|
|
1182
|
-
def
|
|
1207
|
+
def get_organization_with_http_info(
|
|
1183
1208
|
self,
|
|
1184
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1185
|
-
identity_id: Annotated[StrictStr, Field(description="the User identifier")],
|
|
1209
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1186
1210
|
_request_timeout: Union[
|
|
1187
1211
|
None,
|
|
1188
1212
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1195,14 +1219,12 @@ class OrganizationApi:
|
|
|
1195
1219
|
_content_type: Optional[StrictStr] = None,
|
|
1196
1220
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1197
1221
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1198
|
-
) -> ApiResponse[
|
|
1199
|
-
"""Get
|
|
1222
|
+
) -> ApiResponse[Organization]:
|
|
1223
|
+
"""Get the details of an Organization
|
|
1200
1224
|
|
|
1201
1225
|
|
|
1202
|
-
:param organization_id:
|
|
1226
|
+
:param organization_id: The Organization identifier (required)
|
|
1203
1227
|
:type organization_id: str
|
|
1204
|
-
:param identity_id: the User identifier (required)
|
|
1205
|
-
:type identity_id: str
|
|
1206
1228
|
:param _request_timeout: timeout setting for this request. If one
|
|
1207
1229
|
number provided, it will be total request
|
|
1208
1230
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1225,9 +1247,8 @@ class OrganizationApi:
|
|
|
1225
1247
|
:return: Returns the result object.
|
|
1226
1248
|
""" # noqa: E501
|
|
1227
1249
|
|
|
1228
|
-
_param = self.
|
|
1250
|
+
_param = self._get_organization_serialize(
|
|
1229
1251
|
organization_id=organization_id,
|
|
1230
|
-
identity_id=identity_id,
|
|
1231
1252
|
_request_auth=_request_auth,
|
|
1232
1253
|
_content_type=_content_type,
|
|
1233
1254
|
_headers=_headers,
|
|
@@ -1235,7 +1256,7 @@ class OrganizationApi:
|
|
|
1235
1256
|
)
|
|
1236
1257
|
|
|
1237
1258
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1238
|
-
'200': "
|
|
1259
|
+
'200': "Organization",
|
|
1239
1260
|
'404': None,
|
|
1240
1261
|
}
|
|
1241
1262
|
response_data = self.api_client.call_api(
|
|
@@ -1250,10 +1271,9 @@ class OrganizationApi:
|
|
|
1250
1271
|
|
|
1251
1272
|
|
|
1252
1273
|
@validate_call
|
|
1253
|
-
def
|
|
1274
|
+
def get_organization_without_preload_content(
|
|
1254
1275
|
self,
|
|
1255
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1256
|
-
identity_id: Annotated[StrictStr, Field(description="the User identifier")],
|
|
1276
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1257
1277
|
_request_timeout: Union[
|
|
1258
1278
|
None,
|
|
1259
1279
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1267,13 +1287,11 @@ class OrganizationApi:
|
|
|
1267
1287
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1268
1288
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1269
1289
|
) -> RESTResponseType:
|
|
1270
|
-
"""Get
|
|
1290
|
+
"""Get the details of an Organization
|
|
1271
1291
|
|
|
1272
1292
|
|
|
1273
|
-
:param organization_id:
|
|
1293
|
+
:param organization_id: The Organization identifier (required)
|
|
1274
1294
|
:type organization_id: str
|
|
1275
|
-
:param identity_id: the User identifier (required)
|
|
1276
|
-
:type identity_id: str
|
|
1277
1295
|
:param _request_timeout: timeout setting for this request. If one
|
|
1278
1296
|
number provided, it will be total request
|
|
1279
1297
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1296,9 +1314,8 @@ class OrganizationApi:
|
|
|
1296
1314
|
:return: Returns the result object.
|
|
1297
1315
|
""" # noqa: E501
|
|
1298
1316
|
|
|
1299
|
-
_param = self.
|
|
1317
|
+
_param = self._get_organization_serialize(
|
|
1300
1318
|
organization_id=organization_id,
|
|
1301
|
-
identity_id=identity_id,
|
|
1302
1319
|
_request_auth=_request_auth,
|
|
1303
1320
|
_content_type=_content_type,
|
|
1304
1321
|
_headers=_headers,
|
|
@@ -1306,7 +1323,7 @@ class OrganizationApi:
|
|
|
1306
1323
|
)
|
|
1307
1324
|
|
|
1308
1325
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1309
|
-
'200': "
|
|
1326
|
+
'200': "Organization",
|
|
1310
1327
|
'404': None,
|
|
1311
1328
|
}
|
|
1312
1329
|
response_data = self.api_client.call_api(
|
|
@@ -1316,10 +1333,9 @@ class OrganizationApi:
|
|
|
1316
1333
|
return response_data.response
|
|
1317
1334
|
|
|
1318
1335
|
|
|
1319
|
-
def
|
|
1336
|
+
def _get_organization_serialize(
|
|
1320
1337
|
self,
|
|
1321
1338
|
organization_id,
|
|
1322
|
-
identity_id,
|
|
1323
1339
|
_request_auth,
|
|
1324
1340
|
_content_type,
|
|
1325
1341
|
_headers,
|
|
@@ -1335,14 +1351,14 @@ class OrganizationApi:
|
|
|
1335
1351
|
_query_params: List[Tuple[str, str]] = []
|
|
1336
1352
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1337
1353
|
_form_params: List[Tuple[str, str]] = []
|
|
1338
|
-
_files: Dict[
|
|
1354
|
+
_files: Dict[
|
|
1355
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1356
|
+
] = {}
|
|
1339
1357
|
_body_params: Optional[bytes] = None
|
|
1340
1358
|
|
|
1341
1359
|
# process the path parameters
|
|
1342
1360
|
if organization_id is not None:
|
|
1343
1361
|
_path_params['organization_id'] = organization_id
|
|
1344
|
-
if identity_id is not None:
|
|
1345
|
-
_path_params['identity_id'] = identity_id
|
|
1346
1362
|
# process the query parameters
|
|
1347
1363
|
# process the header parameters
|
|
1348
1364
|
# process the form parameters
|
|
@@ -1353,7 +1369,8 @@ class OrganizationApi:
|
|
|
1353
1369
|
if 'Accept' not in _header_params:
|
|
1354
1370
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1355
1371
|
[
|
|
1356
|
-
'application/json'
|
|
1372
|
+
'application/json',
|
|
1373
|
+
'application/yaml'
|
|
1357
1374
|
]
|
|
1358
1375
|
)
|
|
1359
1376
|
|
|
@@ -1365,7 +1382,7 @@ class OrganizationApi:
|
|
|
1365
1382
|
|
|
1366
1383
|
return self.api_client.param_serialize(
|
|
1367
1384
|
method='GET',
|
|
1368
|
-
resource_path='/organizations/{organization_id}
|
|
1385
|
+
resource_path='/organizations/{organization_id}',
|
|
1369
1386
|
path_params=_path_params,
|
|
1370
1387
|
query_params=_query_params,
|
|
1371
1388
|
header_params=_header_params,
|
|
@@ -1382,10 +1399,10 @@ class OrganizationApi:
|
|
|
1382
1399
|
|
|
1383
1400
|
|
|
1384
1401
|
@validate_call
|
|
1385
|
-
def
|
|
1402
|
+
def get_organization_access_control(
|
|
1386
1403
|
self,
|
|
1387
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1388
|
-
|
|
1404
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1405
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
1389
1406
|
_request_timeout: Union[
|
|
1390
1407
|
None,
|
|
1391
1408
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1398,14 +1415,14 @@ class OrganizationApi:
|
|
|
1398
1415
|
_content_type: Optional[StrictStr] = None,
|
|
1399
1416
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1400
1417
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1401
|
-
) ->
|
|
1402
|
-
"""Get
|
|
1418
|
+
) -> OrganizationAccessControl:
|
|
1419
|
+
"""Get a control access for the Organization
|
|
1403
1420
|
|
|
1404
1421
|
|
|
1405
|
-
:param organization_id:
|
|
1422
|
+
:param organization_id: The Organization identifier (required)
|
|
1406
1423
|
:type organization_id: str
|
|
1407
|
-
:param
|
|
1408
|
-
:type
|
|
1424
|
+
:param identity_id: The User identifier (required)
|
|
1425
|
+
:type identity_id: str
|
|
1409
1426
|
:param _request_timeout: timeout setting for this request. If one
|
|
1410
1427
|
number provided, it will be total request
|
|
1411
1428
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1428,9 +1445,9 @@ class OrganizationApi:
|
|
|
1428
1445
|
:return: Returns the result object.
|
|
1429
1446
|
""" # noqa: E501
|
|
1430
1447
|
|
|
1431
|
-
_param = self.
|
|
1448
|
+
_param = self._get_organization_access_control_serialize(
|
|
1432
1449
|
organization_id=organization_id,
|
|
1433
|
-
|
|
1450
|
+
identity_id=identity_id,
|
|
1434
1451
|
_request_auth=_request_auth,
|
|
1435
1452
|
_content_type=_content_type,
|
|
1436
1453
|
_headers=_headers,
|
|
@@ -1438,7 +1455,8 @@ class OrganizationApi:
|
|
|
1438
1455
|
)
|
|
1439
1456
|
|
|
1440
1457
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1441
|
-
'200': "
|
|
1458
|
+
'200': "OrganizationAccessControl",
|
|
1459
|
+
'404': None,
|
|
1442
1460
|
}
|
|
1443
1461
|
response_data = self.api_client.call_api(
|
|
1444
1462
|
*_param,
|
|
@@ -1452,10 +1470,10 @@ class OrganizationApi:
|
|
|
1452
1470
|
|
|
1453
1471
|
|
|
1454
1472
|
@validate_call
|
|
1455
|
-
def
|
|
1473
|
+
def get_organization_access_control_with_http_info(
|
|
1456
1474
|
self,
|
|
1457
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1458
|
-
|
|
1475
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1476
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
1459
1477
|
_request_timeout: Union[
|
|
1460
1478
|
None,
|
|
1461
1479
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1468,14 +1486,14 @@ class OrganizationApi:
|
|
|
1468
1486
|
_content_type: Optional[StrictStr] = None,
|
|
1469
1487
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1470
1488
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1471
|
-
) -> ApiResponse[
|
|
1472
|
-
"""Get
|
|
1489
|
+
) -> ApiResponse[OrganizationAccessControl]:
|
|
1490
|
+
"""Get a control access for the Organization
|
|
1473
1491
|
|
|
1474
1492
|
|
|
1475
|
-
:param organization_id:
|
|
1493
|
+
:param organization_id: The Organization identifier (required)
|
|
1476
1494
|
:type organization_id: str
|
|
1477
|
-
:param
|
|
1478
|
-
:type
|
|
1495
|
+
:param identity_id: The User identifier (required)
|
|
1496
|
+
:type identity_id: str
|
|
1479
1497
|
:param _request_timeout: timeout setting for this request. If one
|
|
1480
1498
|
number provided, it will be total request
|
|
1481
1499
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1498,9 +1516,9 @@ class OrganizationApi:
|
|
|
1498
1516
|
:return: Returns the result object.
|
|
1499
1517
|
""" # noqa: E501
|
|
1500
1518
|
|
|
1501
|
-
_param = self.
|
|
1519
|
+
_param = self._get_organization_access_control_serialize(
|
|
1502
1520
|
organization_id=organization_id,
|
|
1503
|
-
|
|
1521
|
+
identity_id=identity_id,
|
|
1504
1522
|
_request_auth=_request_auth,
|
|
1505
1523
|
_content_type=_content_type,
|
|
1506
1524
|
_headers=_headers,
|
|
@@ -1508,7 +1526,8 @@ class OrganizationApi:
|
|
|
1508
1526
|
)
|
|
1509
1527
|
|
|
1510
1528
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1511
|
-
'200': "
|
|
1529
|
+
'200': "OrganizationAccessControl",
|
|
1530
|
+
'404': None,
|
|
1512
1531
|
}
|
|
1513
1532
|
response_data = self.api_client.call_api(
|
|
1514
1533
|
*_param,
|
|
@@ -1522,10 +1541,10 @@ class OrganizationApi:
|
|
|
1522
1541
|
|
|
1523
1542
|
|
|
1524
1543
|
@validate_call
|
|
1525
|
-
def
|
|
1544
|
+
def get_organization_access_control_without_preload_content(
|
|
1526
1545
|
self,
|
|
1527
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1528
|
-
|
|
1546
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1547
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
1529
1548
|
_request_timeout: Union[
|
|
1530
1549
|
None,
|
|
1531
1550
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1539,13 +1558,13 @@ class OrganizationApi:
|
|
|
1539
1558
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1540
1559
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1541
1560
|
) -> RESTResponseType:
|
|
1542
|
-
"""Get
|
|
1561
|
+
"""Get a control access for the Organization
|
|
1543
1562
|
|
|
1544
1563
|
|
|
1545
|
-
:param organization_id:
|
|
1564
|
+
:param organization_id: The Organization identifier (required)
|
|
1546
1565
|
:type organization_id: str
|
|
1547
|
-
:param
|
|
1548
|
-
:type
|
|
1566
|
+
:param identity_id: The User identifier (required)
|
|
1567
|
+
:type identity_id: str
|
|
1549
1568
|
:param _request_timeout: timeout setting for this request. If one
|
|
1550
1569
|
number provided, it will be total request
|
|
1551
1570
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1568,9 +1587,9 @@ class OrganizationApi:
|
|
|
1568
1587
|
:return: Returns the result object.
|
|
1569
1588
|
""" # noqa: E501
|
|
1570
1589
|
|
|
1571
|
-
_param = self.
|
|
1590
|
+
_param = self._get_organization_access_control_serialize(
|
|
1572
1591
|
organization_id=organization_id,
|
|
1573
|
-
|
|
1592
|
+
identity_id=identity_id,
|
|
1574
1593
|
_request_auth=_request_auth,
|
|
1575
1594
|
_content_type=_content_type,
|
|
1576
1595
|
_headers=_headers,
|
|
@@ -1578,7 +1597,8 @@ class OrganizationApi:
|
|
|
1578
1597
|
)
|
|
1579
1598
|
|
|
1580
1599
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1581
|
-
'200': "
|
|
1600
|
+
'200': "OrganizationAccessControl",
|
|
1601
|
+
'404': None,
|
|
1582
1602
|
}
|
|
1583
1603
|
response_data = self.api_client.call_api(
|
|
1584
1604
|
*_param,
|
|
@@ -1587,10 +1607,10 @@ class OrganizationApi:
|
|
|
1587
1607
|
return response_data.response
|
|
1588
1608
|
|
|
1589
1609
|
|
|
1590
|
-
def
|
|
1610
|
+
def _get_organization_access_control_serialize(
|
|
1591
1611
|
self,
|
|
1592
1612
|
organization_id,
|
|
1593
|
-
|
|
1613
|
+
identity_id,
|
|
1594
1614
|
_request_auth,
|
|
1595
1615
|
_content_type,
|
|
1596
1616
|
_headers,
|
|
@@ -1606,14 +1626,16 @@ class OrganizationApi:
|
|
|
1606
1626
|
_query_params: List[Tuple[str, str]] = []
|
|
1607
1627
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1608
1628
|
_form_params: List[Tuple[str, str]] = []
|
|
1609
|
-
_files: Dict[
|
|
1629
|
+
_files: Dict[
|
|
1630
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1631
|
+
] = {}
|
|
1610
1632
|
_body_params: Optional[bytes] = None
|
|
1611
1633
|
|
|
1612
1634
|
# process the path parameters
|
|
1613
1635
|
if organization_id is not None:
|
|
1614
1636
|
_path_params['organization_id'] = organization_id
|
|
1615
|
-
if
|
|
1616
|
-
_path_params['
|
|
1637
|
+
if identity_id is not None:
|
|
1638
|
+
_path_params['identity_id'] = identity_id
|
|
1617
1639
|
# process the query parameters
|
|
1618
1640
|
# process the header parameters
|
|
1619
1641
|
# process the form parameters
|
|
@@ -1624,7 +1646,8 @@ class OrganizationApi:
|
|
|
1624
1646
|
if 'Accept' not in _header_params:
|
|
1625
1647
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1626
1648
|
[
|
|
1627
|
-
'application/json'
|
|
1649
|
+
'application/json',
|
|
1650
|
+
'application/yaml'
|
|
1628
1651
|
]
|
|
1629
1652
|
)
|
|
1630
1653
|
|
|
@@ -1636,7 +1659,7 @@ class OrganizationApi:
|
|
|
1636
1659
|
|
|
1637
1660
|
return self.api_client.param_serialize(
|
|
1638
1661
|
method='GET',
|
|
1639
|
-
resource_path='/organizations/{organization_id}/
|
|
1662
|
+
resource_path='/organizations/{organization_id}/security/access/{identity_id}',
|
|
1640
1663
|
path_params=_path_params,
|
|
1641
1664
|
query_params=_query_params,
|
|
1642
1665
|
header_params=_header_params,
|
|
@@ -1653,9 +1676,10 @@ class OrganizationApi:
|
|
|
1653
1676
|
|
|
1654
1677
|
|
|
1655
1678
|
@validate_call
|
|
1656
|
-
def
|
|
1679
|
+
def get_organization_permissions(
|
|
1657
1680
|
self,
|
|
1658
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1681
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1682
|
+
role: Annotated[StrictStr, Field(description="The Role")],
|
|
1659
1683
|
_request_timeout: Union[
|
|
1660
1684
|
None,
|
|
1661
1685
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1668,12 +1692,14 @@ class OrganizationApi:
|
|
|
1668
1692
|
_content_type: Optional[StrictStr] = None,
|
|
1669
1693
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1670
1694
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1671
|
-
) ->
|
|
1672
|
-
"""Get the Organization
|
|
1695
|
+
) -> List[str]:
|
|
1696
|
+
"""Get the Organization permissions by given role
|
|
1673
1697
|
|
|
1674
1698
|
|
|
1675
|
-
:param organization_id:
|
|
1699
|
+
:param organization_id: The Organization identifier (required)
|
|
1676
1700
|
:type organization_id: str
|
|
1701
|
+
:param role: The Role (required)
|
|
1702
|
+
:type role: str
|
|
1677
1703
|
:param _request_timeout: timeout setting for this request. If one
|
|
1678
1704
|
number provided, it will be total request
|
|
1679
1705
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1696,8 +1722,9 @@ class OrganizationApi:
|
|
|
1696
1722
|
:return: Returns the result object.
|
|
1697
1723
|
""" # noqa: E501
|
|
1698
1724
|
|
|
1699
|
-
_param = self.
|
|
1725
|
+
_param = self._get_organization_permissions_serialize(
|
|
1700
1726
|
organization_id=organization_id,
|
|
1727
|
+
role=role,
|
|
1701
1728
|
_request_auth=_request_auth,
|
|
1702
1729
|
_content_type=_content_type,
|
|
1703
1730
|
_headers=_headers,
|
|
@@ -1705,8 +1732,7 @@ class OrganizationApi:
|
|
|
1705
1732
|
)
|
|
1706
1733
|
|
|
1707
1734
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1708
|
-
'200': "
|
|
1709
|
-
'404': None,
|
|
1735
|
+
'200': "List[str]",
|
|
1710
1736
|
}
|
|
1711
1737
|
response_data = self.api_client.call_api(
|
|
1712
1738
|
*_param,
|
|
@@ -1720,9 +1746,10 @@ class OrganizationApi:
|
|
|
1720
1746
|
|
|
1721
1747
|
|
|
1722
1748
|
@validate_call
|
|
1723
|
-
def
|
|
1749
|
+
def get_organization_permissions_with_http_info(
|
|
1724
1750
|
self,
|
|
1725
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1751
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1752
|
+
role: Annotated[StrictStr, Field(description="The Role")],
|
|
1726
1753
|
_request_timeout: Union[
|
|
1727
1754
|
None,
|
|
1728
1755
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1735,12 +1762,14 @@ class OrganizationApi:
|
|
|
1735
1762
|
_content_type: Optional[StrictStr] = None,
|
|
1736
1763
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1737
1764
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1738
|
-
) -> ApiResponse[
|
|
1739
|
-
"""Get the Organization
|
|
1765
|
+
) -> ApiResponse[List[str]]:
|
|
1766
|
+
"""Get the Organization permissions by given role
|
|
1740
1767
|
|
|
1741
1768
|
|
|
1742
|
-
:param organization_id:
|
|
1769
|
+
:param organization_id: The Organization identifier (required)
|
|
1743
1770
|
:type organization_id: str
|
|
1771
|
+
:param role: The Role (required)
|
|
1772
|
+
:type role: str
|
|
1744
1773
|
:param _request_timeout: timeout setting for this request. If one
|
|
1745
1774
|
number provided, it will be total request
|
|
1746
1775
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1763,8 +1792,9 @@ class OrganizationApi:
|
|
|
1763
1792
|
:return: Returns the result object.
|
|
1764
1793
|
""" # noqa: E501
|
|
1765
1794
|
|
|
1766
|
-
_param = self.
|
|
1795
|
+
_param = self._get_organization_permissions_serialize(
|
|
1767
1796
|
organization_id=organization_id,
|
|
1797
|
+
role=role,
|
|
1768
1798
|
_request_auth=_request_auth,
|
|
1769
1799
|
_content_type=_content_type,
|
|
1770
1800
|
_headers=_headers,
|
|
@@ -1772,8 +1802,7 @@ class OrganizationApi:
|
|
|
1772
1802
|
)
|
|
1773
1803
|
|
|
1774
1804
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1775
|
-
'200': "
|
|
1776
|
-
'404': None,
|
|
1805
|
+
'200': "List[str]",
|
|
1777
1806
|
}
|
|
1778
1807
|
response_data = self.api_client.call_api(
|
|
1779
1808
|
*_param,
|
|
@@ -1787,9 +1816,10 @@ class OrganizationApi:
|
|
|
1787
1816
|
|
|
1788
1817
|
|
|
1789
1818
|
@validate_call
|
|
1790
|
-
def
|
|
1819
|
+
def get_organization_permissions_without_preload_content(
|
|
1791
1820
|
self,
|
|
1792
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1821
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1822
|
+
role: Annotated[StrictStr, Field(description="The Role")],
|
|
1793
1823
|
_request_timeout: Union[
|
|
1794
1824
|
None,
|
|
1795
1825
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1803,11 +1833,13 @@ class OrganizationApi:
|
|
|
1803
1833
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1804
1834
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1805
1835
|
) -> RESTResponseType:
|
|
1806
|
-
"""Get the Organization
|
|
1836
|
+
"""Get the Organization permissions by given role
|
|
1807
1837
|
|
|
1808
1838
|
|
|
1809
|
-
:param organization_id:
|
|
1839
|
+
:param organization_id: The Organization identifier (required)
|
|
1810
1840
|
:type organization_id: str
|
|
1841
|
+
:param role: The Role (required)
|
|
1842
|
+
:type role: str
|
|
1811
1843
|
:param _request_timeout: timeout setting for this request. If one
|
|
1812
1844
|
number provided, it will be total request
|
|
1813
1845
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1830,8 +1862,9 @@ class OrganizationApi:
|
|
|
1830
1862
|
:return: Returns the result object.
|
|
1831
1863
|
""" # noqa: E501
|
|
1832
1864
|
|
|
1833
|
-
_param = self.
|
|
1865
|
+
_param = self._get_organization_permissions_serialize(
|
|
1834
1866
|
organization_id=organization_id,
|
|
1867
|
+
role=role,
|
|
1835
1868
|
_request_auth=_request_auth,
|
|
1836
1869
|
_content_type=_content_type,
|
|
1837
1870
|
_headers=_headers,
|
|
@@ -1839,8 +1872,7 @@ class OrganizationApi:
|
|
|
1839
1872
|
)
|
|
1840
1873
|
|
|
1841
1874
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1842
|
-
'200': "
|
|
1843
|
-
'404': None,
|
|
1875
|
+
'200': "List[str]",
|
|
1844
1876
|
}
|
|
1845
1877
|
response_data = self.api_client.call_api(
|
|
1846
1878
|
*_param,
|
|
@@ -1849,9 +1881,10 @@ class OrganizationApi:
|
|
|
1849
1881
|
return response_data.response
|
|
1850
1882
|
|
|
1851
1883
|
|
|
1852
|
-
def
|
|
1884
|
+
def _get_organization_permissions_serialize(
|
|
1853
1885
|
self,
|
|
1854
1886
|
organization_id,
|
|
1887
|
+
role,
|
|
1855
1888
|
_request_auth,
|
|
1856
1889
|
_content_type,
|
|
1857
1890
|
_headers,
|
|
@@ -1867,12 +1900,16 @@ class OrganizationApi:
|
|
|
1867
1900
|
_query_params: List[Tuple[str, str]] = []
|
|
1868
1901
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1869
1902
|
_form_params: List[Tuple[str, str]] = []
|
|
1870
|
-
_files: Dict[
|
|
1903
|
+
_files: Dict[
|
|
1904
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1905
|
+
] = {}
|
|
1871
1906
|
_body_params: Optional[bytes] = None
|
|
1872
1907
|
|
|
1873
1908
|
# process the path parameters
|
|
1874
1909
|
if organization_id is not None:
|
|
1875
1910
|
_path_params['organization_id'] = organization_id
|
|
1911
|
+
if role is not None:
|
|
1912
|
+
_path_params['role'] = role
|
|
1876
1913
|
# process the query parameters
|
|
1877
1914
|
# process the header parameters
|
|
1878
1915
|
# process the form parameters
|
|
@@ -1883,7 +1920,8 @@ class OrganizationApi:
|
|
|
1883
1920
|
if 'Accept' not in _header_params:
|
|
1884
1921
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1885
1922
|
[
|
|
1886
|
-
'application/json'
|
|
1923
|
+
'application/json',
|
|
1924
|
+
'application/yaml'
|
|
1887
1925
|
]
|
|
1888
1926
|
)
|
|
1889
1927
|
|
|
@@ -1895,7 +1933,7 @@ class OrganizationApi:
|
|
|
1895
1933
|
|
|
1896
1934
|
return self.api_client.param_serialize(
|
|
1897
1935
|
method='GET',
|
|
1898
|
-
resource_path='/organizations/{organization_id}/
|
|
1936
|
+
resource_path='/organizations/{organization_id}/permissions/{role}',
|
|
1899
1937
|
path_params=_path_params,
|
|
1900
1938
|
query_params=_query_params,
|
|
1901
1939
|
header_params=_header_params,
|
|
@@ -1912,7 +1950,7 @@ class OrganizationApi:
|
|
|
1912
1950
|
|
|
1913
1951
|
|
|
1914
1952
|
@validate_call
|
|
1915
|
-
def
|
|
1953
|
+
def get_organization_security(
|
|
1916
1954
|
self,
|
|
1917
1955
|
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1918
1956
|
_request_timeout: Union[
|
|
@@ -1927,8 +1965,8 @@ class OrganizationApi:
|
|
|
1927
1965
|
_content_type: Optional[StrictStr] = None,
|
|
1928
1966
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1929
1967
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1930
|
-
) ->
|
|
1931
|
-
"""Get the Organization security
|
|
1968
|
+
) -> OrganizationSecurity:
|
|
1969
|
+
"""Get the Organization security information
|
|
1932
1970
|
|
|
1933
1971
|
|
|
1934
1972
|
:param organization_id: The Organization identifier (required)
|
|
@@ -1955,7 +1993,7 @@ class OrganizationApi:
|
|
|
1955
1993
|
:return: Returns the result object.
|
|
1956
1994
|
""" # noqa: E501
|
|
1957
1995
|
|
|
1958
|
-
_param = self.
|
|
1996
|
+
_param = self._get_organization_security_serialize(
|
|
1959
1997
|
organization_id=organization_id,
|
|
1960
1998
|
_request_auth=_request_auth,
|
|
1961
1999
|
_content_type=_content_type,
|
|
@@ -1964,7 +2002,7 @@ class OrganizationApi:
|
|
|
1964
2002
|
)
|
|
1965
2003
|
|
|
1966
2004
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1967
|
-
'200': "
|
|
2005
|
+
'200': "OrganizationSecurity",
|
|
1968
2006
|
'404': None,
|
|
1969
2007
|
}
|
|
1970
2008
|
response_data = self.api_client.call_api(
|
|
@@ -1979,7 +2017,7 @@ class OrganizationApi:
|
|
|
1979
2017
|
|
|
1980
2018
|
|
|
1981
2019
|
@validate_call
|
|
1982
|
-
def
|
|
2020
|
+
def get_organization_security_with_http_info(
|
|
1983
2021
|
self,
|
|
1984
2022
|
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1985
2023
|
_request_timeout: Union[
|
|
@@ -1994,8 +2032,8 @@ class OrganizationApi:
|
|
|
1994
2032
|
_content_type: Optional[StrictStr] = None,
|
|
1995
2033
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1996
2034
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1997
|
-
) -> ApiResponse[
|
|
1998
|
-
"""Get the Organization security
|
|
2035
|
+
) -> ApiResponse[OrganizationSecurity]:
|
|
2036
|
+
"""Get the Organization security information
|
|
1999
2037
|
|
|
2000
2038
|
|
|
2001
2039
|
:param organization_id: The Organization identifier (required)
|
|
@@ -2022,7 +2060,7 @@ class OrganizationApi:
|
|
|
2022
2060
|
:return: Returns the result object.
|
|
2023
2061
|
""" # noqa: E501
|
|
2024
2062
|
|
|
2025
|
-
_param = self.
|
|
2063
|
+
_param = self._get_organization_security_serialize(
|
|
2026
2064
|
organization_id=organization_id,
|
|
2027
2065
|
_request_auth=_request_auth,
|
|
2028
2066
|
_content_type=_content_type,
|
|
@@ -2031,7 +2069,7 @@ class OrganizationApi:
|
|
|
2031
2069
|
)
|
|
2032
2070
|
|
|
2033
2071
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2034
|
-
'200': "
|
|
2072
|
+
'200': "OrganizationSecurity",
|
|
2035
2073
|
'404': None,
|
|
2036
2074
|
}
|
|
2037
2075
|
response_data = self.api_client.call_api(
|
|
@@ -2046,7 +2084,7 @@ class OrganizationApi:
|
|
|
2046
2084
|
|
|
2047
2085
|
|
|
2048
2086
|
@validate_call
|
|
2049
|
-
def
|
|
2087
|
+
def get_organization_security_without_preload_content(
|
|
2050
2088
|
self,
|
|
2051
2089
|
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
2052
2090
|
_request_timeout: Union[
|
|
@@ -2062,7 +2100,7 @@ class OrganizationApi:
|
|
|
2062
2100
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2063
2101
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2064
2102
|
) -> RESTResponseType:
|
|
2065
|
-
"""Get the Organization security
|
|
2103
|
+
"""Get the Organization security information
|
|
2066
2104
|
|
|
2067
2105
|
|
|
2068
2106
|
:param organization_id: The Organization identifier (required)
|
|
@@ -2089,7 +2127,7 @@ class OrganizationApi:
|
|
|
2089
2127
|
:return: Returns the result object.
|
|
2090
2128
|
""" # noqa: E501
|
|
2091
2129
|
|
|
2092
|
-
_param = self.
|
|
2130
|
+
_param = self._get_organization_security_serialize(
|
|
2093
2131
|
organization_id=organization_id,
|
|
2094
2132
|
_request_auth=_request_auth,
|
|
2095
2133
|
_content_type=_content_type,
|
|
@@ -2098,7 +2136,7 @@ class OrganizationApi:
|
|
|
2098
2136
|
)
|
|
2099
2137
|
|
|
2100
2138
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2101
|
-
'200': "
|
|
2139
|
+
'200': "OrganizationSecurity",
|
|
2102
2140
|
'404': None,
|
|
2103
2141
|
}
|
|
2104
2142
|
response_data = self.api_client.call_api(
|
|
@@ -2108,7 +2146,7 @@ class OrganizationApi:
|
|
|
2108
2146
|
return response_data.response
|
|
2109
2147
|
|
|
2110
2148
|
|
|
2111
|
-
def
|
|
2149
|
+
def _get_organization_security_serialize(
|
|
2112
2150
|
self,
|
|
2113
2151
|
organization_id,
|
|
2114
2152
|
_request_auth,
|
|
@@ -2126,7 +2164,9 @@ class OrganizationApi:
|
|
|
2126
2164
|
_query_params: List[Tuple[str, str]] = []
|
|
2127
2165
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2128
2166
|
_form_params: List[Tuple[str, str]] = []
|
|
2129
|
-
_files: Dict[
|
|
2167
|
+
_files: Dict[
|
|
2168
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2169
|
+
] = {}
|
|
2130
2170
|
_body_params: Optional[bytes] = None
|
|
2131
2171
|
|
|
2132
2172
|
# process the path parameters
|
|
@@ -2142,7 +2182,8 @@ class OrganizationApi:
|
|
|
2142
2182
|
if 'Accept' not in _header_params:
|
|
2143
2183
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2144
2184
|
[
|
|
2145
|
-
'application/json'
|
|
2185
|
+
'application/json',
|
|
2186
|
+
'application/yaml'
|
|
2146
2187
|
]
|
|
2147
2188
|
)
|
|
2148
2189
|
|
|
@@ -2154,7 +2195,7 @@ class OrganizationApi:
|
|
|
2154
2195
|
|
|
2155
2196
|
return self.api_client.param_serialize(
|
|
2156
2197
|
method='GET',
|
|
2157
|
-
resource_path='/organizations/{organization_id}/security
|
|
2198
|
+
resource_path='/organizations/{organization_id}/security',
|
|
2158
2199
|
path_params=_path_params,
|
|
2159
2200
|
query_params=_query_params,
|
|
2160
2201
|
header_params=_header_params,
|
|
@@ -2171,9 +2212,9 @@ class OrganizationApi:
|
|
|
2171
2212
|
|
|
2172
2213
|
|
|
2173
2214
|
@validate_call
|
|
2174
|
-
def
|
|
2215
|
+
def list_organization_security_users(
|
|
2175
2216
|
self,
|
|
2176
|
-
|
|
2217
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
2177
2218
|
_request_timeout: Union[
|
|
2178
2219
|
None,
|
|
2179
2220
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2186,12 +2227,12 @@ class OrganizationApi:
|
|
|
2186
2227
|
_content_type: Optional[StrictStr] = None,
|
|
2187
2228
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2188
2229
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2189
|
-
) ->
|
|
2190
|
-
"""
|
|
2230
|
+
) -> List[str]:
|
|
2231
|
+
"""Get the Organization security users list
|
|
2191
2232
|
|
|
2192
2233
|
|
|
2193
|
-
:param
|
|
2194
|
-
:type
|
|
2234
|
+
:param organization_id: The Organization identifier (required)
|
|
2235
|
+
:type organization_id: str
|
|
2195
2236
|
:param _request_timeout: timeout setting for this request. If one
|
|
2196
2237
|
number provided, it will be total request
|
|
2197
2238
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2214,8 +2255,8 @@ class OrganizationApi:
|
|
|
2214
2255
|
:return: Returns the result object.
|
|
2215
2256
|
""" # noqa: E501
|
|
2216
2257
|
|
|
2217
|
-
_param = self.
|
|
2218
|
-
|
|
2258
|
+
_param = self._list_organization_security_users_serialize(
|
|
2259
|
+
organization_id=organization_id,
|
|
2219
2260
|
_request_auth=_request_auth,
|
|
2220
2261
|
_content_type=_content_type,
|
|
2221
2262
|
_headers=_headers,
|
|
@@ -2223,8 +2264,8 @@ class OrganizationApi:
|
|
|
2223
2264
|
)
|
|
2224
2265
|
|
|
2225
2266
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2226
|
-
'
|
|
2227
|
-
'
|
|
2267
|
+
'200': "List[str]",
|
|
2268
|
+
'404': None,
|
|
2228
2269
|
}
|
|
2229
2270
|
response_data = self.api_client.call_api(
|
|
2230
2271
|
*_param,
|
|
@@ -2238,9 +2279,9 @@ class OrganizationApi:
|
|
|
2238
2279
|
|
|
2239
2280
|
|
|
2240
2281
|
@validate_call
|
|
2241
|
-
def
|
|
2282
|
+
def list_organization_security_users_with_http_info(
|
|
2242
2283
|
self,
|
|
2243
|
-
|
|
2284
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
2244
2285
|
_request_timeout: Union[
|
|
2245
2286
|
None,
|
|
2246
2287
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2253,12 +2294,12 @@ class OrganizationApi:
|
|
|
2253
2294
|
_content_type: Optional[StrictStr] = None,
|
|
2254
2295
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2255
2296
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2256
|
-
) -> ApiResponse[
|
|
2257
|
-
"""
|
|
2297
|
+
) -> ApiResponse[List[str]]:
|
|
2298
|
+
"""Get the Organization security users list
|
|
2258
2299
|
|
|
2259
2300
|
|
|
2260
|
-
:param
|
|
2261
|
-
:type
|
|
2301
|
+
:param organization_id: The Organization identifier (required)
|
|
2302
|
+
:type organization_id: str
|
|
2262
2303
|
:param _request_timeout: timeout setting for this request. If one
|
|
2263
2304
|
number provided, it will be total request
|
|
2264
2305
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2281,8 +2322,8 @@ class OrganizationApi:
|
|
|
2281
2322
|
:return: Returns the result object.
|
|
2282
2323
|
""" # noqa: E501
|
|
2283
2324
|
|
|
2284
|
-
_param = self.
|
|
2285
|
-
|
|
2325
|
+
_param = self._list_organization_security_users_serialize(
|
|
2326
|
+
organization_id=organization_id,
|
|
2286
2327
|
_request_auth=_request_auth,
|
|
2287
2328
|
_content_type=_content_type,
|
|
2288
2329
|
_headers=_headers,
|
|
@@ -2290,8 +2331,8 @@ class OrganizationApi:
|
|
|
2290
2331
|
)
|
|
2291
2332
|
|
|
2292
2333
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2293
|
-
'
|
|
2294
|
-
'
|
|
2334
|
+
'200': "List[str]",
|
|
2335
|
+
'404': None,
|
|
2295
2336
|
}
|
|
2296
2337
|
response_data = self.api_client.call_api(
|
|
2297
2338
|
*_param,
|
|
@@ -2305,9 +2346,9 @@ class OrganizationApi:
|
|
|
2305
2346
|
|
|
2306
2347
|
|
|
2307
2348
|
@validate_call
|
|
2308
|
-
def
|
|
2349
|
+
def list_organization_security_users_without_preload_content(
|
|
2309
2350
|
self,
|
|
2310
|
-
|
|
2351
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
2311
2352
|
_request_timeout: Union[
|
|
2312
2353
|
None,
|
|
2313
2354
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2321,11 +2362,11 @@ class OrganizationApi:
|
|
|
2321
2362
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2322
2363
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2323
2364
|
) -> RESTResponseType:
|
|
2324
|
-
"""
|
|
2365
|
+
"""Get the Organization security users list
|
|
2325
2366
|
|
|
2326
2367
|
|
|
2327
|
-
:param
|
|
2328
|
-
:type
|
|
2368
|
+
:param organization_id: The Organization identifier (required)
|
|
2369
|
+
:type organization_id: str
|
|
2329
2370
|
:param _request_timeout: timeout setting for this request. If one
|
|
2330
2371
|
number provided, it will be total request
|
|
2331
2372
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2348,8 +2389,8 @@ class OrganizationApi:
|
|
|
2348
2389
|
:return: Returns the result object.
|
|
2349
2390
|
""" # noqa: E501
|
|
2350
2391
|
|
|
2351
|
-
_param = self.
|
|
2352
|
-
|
|
2392
|
+
_param = self._list_organization_security_users_serialize(
|
|
2393
|
+
organization_id=organization_id,
|
|
2353
2394
|
_request_auth=_request_auth,
|
|
2354
2395
|
_content_type=_content_type,
|
|
2355
2396
|
_headers=_headers,
|
|
@@ -2357,8 +2398,8 @@ class OrganizationApi:
|
|
|
2357
2398
|
)
|
|
2358
2399
|
|
|
2359
2400
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2360
|
-
'
|
|
2361
|
-
'
|
|
2401
|
+
'200': "List[str]",
|
|
2402
|
+
'404': None,
|
|
2362
2403
|
}
|
|
2363
2404
|
response_data = self.api_client.call_api(
|
|
2364
2405
|
*_param,
|
|
@@ -2367,9 +2408,9 @@ class OrganizationApi:
|
|
|
2367
2408
|
return response_data.response
|
|
2368
2409
|
|
|
2369
2410
|
|
|
2370
|
-
def
|
|
2411
|
+
def _list_organization_security_users_serialize(
|
|
2371
2412
|
self,
|
|
2372
|
-
|
|
2413
|
+
organization_id,
|
|
2373
2414
|
_request_auth,
|
|
2374
2415
|
_content_type,
|
|
2375
2416
|
_headers,
|
|
@@ -2385,40 +2426,29 @@ class OrganizationApi:
|
|
|
2385
2426
|
_query_params: List[Tuple[str, str]] = []
|
|
2386
2427
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2387
2428
|
_form_params: List[Tuple[str, str]] = []
|
|
2388
|
-
_files: Dict[
|
|
2429
|
+
_files: Dict[
|
|
2430
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2431
|
+
] = {}
|
|
2389
2432
|
_body_params: Optional[bytes] = None
|
|
2390
2433
|
|
|
2391
2434
|
# process the path parameters
|
|
2435
|
+
if organization_id is not None:
|
|
2436
|
+
_path_params['organization_id'] = organization_id
|
|
2392
2437
|
# process the query parameters
|
|
2393
2438
|
# process the header parameters
|
|
2394
2439
|
# process the form parameters
|
|
2395
2440
|
# process the body parameter
|
|
2396
|
-
if organization is not None:
|
|
2397
|
-
_body_params = organization
|
|
2398
2441
|
|
|
2399
2442
|
|
|
2400
2443
|
# set the HTTP header `Accept`
|
|
2401
2444
|
if 'Accept' not in _header_params:
|
|
2402
2445
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2403
2446
|
[
|
|
2404
|
-
'application/json'
|
|
2447
|
+
'application/json',
|
|
2448
|
+
'application/yaml'
|
|
2405
2449
|
]
|
|
2406
2450
|
)
|
|
2407
2451
|
|
|
2408
|
-
# set the HTTP header `Content-Type`
|
|
2409
|
-
if _content_type:
|
|
2410
|
-
_header_params['Content-Type'] = _content_type
|
|
2411
|
-
else:
|
|
2412
|
-
_default_content_type = (
|
|
2413
|
-
self.api_client.select_header_content_type(
|
|
2414
|
-
[
|
|
2415
|
-
'application/json',
|
|
2416
|
-
'application/yaml'
|
|
2417
|
-
]
|
|
2418
|
-
)
|
|
2419
|
-
)
|
|
2420
|
-
if _default_content_type is not None:
|
|
2421
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2422
2452
|
|
|
2423
2453
|
# authentication setting
|
|
2424
2454
|
_auth_settings: List[str] = [
|
|
@@ -2426,8 +2456,8 @@ class OrganizationApi:
|
|
|
2426
2456
|
]
|
|
2427
2457
|
|
|
2428
2458
|
return self.api_client.param_serialize(
|
|
2429
|
-
method='
|
|
2430
|
-
resource_path='/organizations',
|
|
2459
|
+
method='GET',
|
|
2460
|
+
resource_path='/organizations/{organization_id}/security/users',
|
|
2431
2461
|
path_params=_path_params,
|
|
2432
2462
|
query_params=_query_params,
|
|
2433
2463
|
header_params=_header_params,
|
|
@@ -2444,10 +2474,10 @@ class OrganizationApi:
|
|
|
2444
2474
|
|
|
2445
2475
|
|
|
2446
2476
|
@validate_call
|
|
2447
|
-
def
|
|
2477
|
+
def list_organizations(
|
|
2448
2478
|
self,
|
|
2449
|
-
|
|
2450
|
-
|
|
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,
|
|
2451
2481
|
_request_timeout: Union[
|
|
2452
2482
|
None,
|
|
2453
2483
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2460,14 +2490,14 @@ class OrganizationApi:
|
|
|
2460
2490
|
_content_type: Optional[StrictStr] = None,
|
|
2461
2491
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2462
2492
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2463
|
-
) ->
|
|
2464
|
-
"""
|
|
2493
|
+
) -> List[Organization]:
|
|
2494
|
+
"""List all Organizations
|
|
2465
2495
|
|
|
2466
2496
|
|
|
2467
|
-
:param
|
|
2468
|
-
:type
|
|
2469
|
-
:param
|
|
2470
|
-
: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
|
|
2471
2501
|
:param _request_timeout: timeout setting for this request. If one
|
|
2472
2502
|
number provided, it will be total request
|
|
2473
2503
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2490,9 +2520,9 @@ class OrganizationApi:
|
|
|
2490
2520
|
:return: Returns the result object.
|
|
2491
2521
|
""" # noqa: E501
|
|
2492
2522
|
|
|
2493
|
-
_param = self.
|
|
2494
|
-
|
|
2495
|
-
|
|
2523
|
+
_param = self._list_organizations_serialize(
|
|
2524
|
+
page=page,
|
|
2525
|
+
size=size,
|
|
2496
2526
|
_request_auth=_request_auth,
|
|
2497
2527
|
_content_type=_content_type,
|
|
2498
2528
|
_headers=_headers,
|
|
@@ -2500,8 +2530,7 @@ class OrganizationApi:
|
|
|
2500
2530
|
)
|
|
2501
2531
|
|
|
2502
2532
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2503
|
-
'
|
|
2504
|
-
'404': None,
|
|
2533
|
+
'200': "List[Organization]",
|
|
2505
2534
|
}
|
|
2506
2535
|
response_data = self.api_client.call_api(
|
|
2507
2536
|
*_param,
|
|
@@ -2515,10 +2544,10 @@ class OrganizationApi:
|
|
|
2515
2544
|
|
|
2516
2545
|
|
|
2517
2546
|
@validate_call
|
|
2518
|
-
def
|
|
2547
|
+
def list_organizations_with_http_info(
|
|
2519
2548
|
self,
|
|
2520
|
-
|
|
2521
|
-
|
|
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,
|
|
2522
2551
|
_request_timeout: Union[
|
|
2523
2552
|
None,
|
|
2524
2553
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2531,14 +2560,14 @@ class OrganizationApi:
|
|
|
2531
2560
|
_content_type: Optional[StrictStr] = None,
|
|
2532
2561
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2533
2562
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2534
|
-
) -> ApiResponse[
|
|
2535
|
-
"""
|
|
2563
|
+
) -> ApiResponse[List[Organization]]:
|
|
2564
|
+
"""List all Organizations
|
|
2536
2565
|
|
|
2537
2566
|
|
|
2538
|
-
:param
|
|
2539
|
-
:type
|
|
2540
|
-
:param
|
|
2541
|
-
: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
|
|
2542
2571
|
:param _request_timeout: timeout setting for this request. If one
|
|
2543
2572
|
number provided, it will be total request
|
|
2544
2573
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2561,9 +2590,9 @@ class OrganizationApi:
|
|
|
2561
2590
|
:return: Returns the result object.
|
|
2562
2591
|
""" # noqa: E501
|
|
2563
2592
|
|
|
2564
|
-
_param = self.
|
|
2565
|
-
|
|
2566
|
-
|
|
2593
|
+
_param = self._list_organizations_serialize(
|
|
2594
|
+
page=page,
|
|
2595
|
+
size=size,
|
|
2567
2596
|
_request_auth=_request_auth,
|
|
2568
2597
|
_content_type=_content_type,
|
|
2569
2598
|
_headers=_headers,
|
|
@@ -2571,8 +2600,7 @@ class OrganizationApi:
|
|
|
2571
2600
|
)
|
|
2572
2601
|
|
|
2573
2602
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2574
|
-
'
|
|
2575
|
-
'404': None,
|
|
2603
|
+
'200': "List[Organization]",
|
|
2576
2604
|
}
|
|
2577
2605
|
response_data = self.api_client.call_api(
|
|
2578
2606
|
*_param,
|
|
@@ -2586,10 +2614,10 @@ class OrganizationApi:
|
|
|
2586
2614
|
|
|
2587
2615
|
|
|
2588
2616
|
@validate_call
|
|
2589
|
-
def
|
|
2617
|
+
def list_organizations_without_preload_content(
|
|
2590
2618
|
self,
|
|
2591
|
-
|
|
2592
|
-
|
|
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,
|
|
2593
2621
|
_request_timeout: Union[
|
|
2594
2622
|
None,
|
|
2595
2623
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2603,13 +2631,13 @@ class OrganizationApi:
|
|
|
2603
2631
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2604
2632
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2605
2633
|
) -> RESTResponseType:
|
|
2606
|
-
"""
|
|
2634
|
+
"""List all Organizations
|
|
2607
2635
|
|
|
2608
2636
|
|
|
2609
|
-
:param
|
|
2610
|
-
:type
|
|
2611
|
-
:param
|
|
2612
|
-
: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
|
|
2613
2641
|
:param _request_timeout: timeout setting for this request. If one
|
|
2614
2642
|
number provided, it will be total request
|
|
2615
2643
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2632,9 +2660,9 @@ class OrganizationApi:
|
|
|
2632
2660
|
:return: Returns the result object.
|
|
2633
2661
|
""" # noqa: E501
|
|
2634
2662
|
|
|
2635
|
-
_param = self.
|
|
2636
|
-
|
|
2637
|
-
|
|
2663
|
+
_param = self._list_organizations_serialize(
|
|
2664
|
+
page=page,
|
|
2665
|
+
size=size,
|
|
2638
2666
|
_request_auth=_request_auth,
|
|
2639
2667
|
_content_type=_content_type,
|
|
2640
2668
|
_headers=_headers,
|
|
@@ -2642,8 +2670,7 @@ class OrganizationApi:
|
|
|
2642
2670
|
)
|
|
2643
2671
|
|
|
2644
2672
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2645
|
-
'
|
|
2646
|
-
'404': None,
|
|
2673
|
+
'200': "List[Organization]",
|
|
2647
2674
|
}
|
|
2648
2675
|
response_data = self.api_client.call_api(
|
|
2649
2676
|
*_param,
|
|
@@ -2652,10 +2679,10 @@ class OrganizationApi:
|
|
|
2652
2679
|
return response_data.response
|
|
2653
2680
|
|
|
2654
2681
|
|
|
2655
|
-
def
|
|
2682
|
+
def _list_organizations_serialize(
|
|
2656
2683
|
self,
|
|
2657
|
-
|
|
2658
|
-
|
|
2684
|
+
page,
|
|
2685
|
+
size,
|
|
2659
2686
|
_request_auth,
|
|
2660
2687
|
_content_type,
|
|
2661
2688
|
_headers,
|
|
@@ -2671,20 +2698,34 @@ class OrganizationApi:
|
|
|
2671
2698
|
_query_params: List[Tuple[str, str]] = []
|
|
2672
2699
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2673
2700
|
_form_params: List[Tuple[str, str]] = []
|
|
2674
|
-
_files: Dict[
|
|
2701
|
+
_files: Dict[
|
|
2702
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2703
|
+
] = {}
|
|
2675
2704
|
_body_params: Optional[bytes] = None
|
|
2676
2705
|
|
|
2677
2706
|
# process the path parameters
|
|
2678
|
-
if organization_id is not None:
|
|
2679
|
-
_path_params['organization_id'] = organization_id
|
|
2680
|
-
if identity_id is not None:
|
|
2681
|
-
_path_params['identity_id'] = identity_id
|
|
2682
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
|
+
|
|
2683
2716
|
# process the header parameters
|
|
2684
2717
|
# process the form parameters
|
|
2685
2718
|
# process the body parameter
|
|
2686
2719
|
|
|
2687
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
|
+
)
|
|
2688
2729
|
|
|
2689
2730
|
|
|
2690
2731
|
# authentication setting
|
|
@@ -2693,8 +2734,8 @@ class OrganizationApi:
|
|
|
2693
2734
|
]
|
|
2694
2735
|
|
|
2695
2736
|
return self.api_client.param_serialize(
|
|
2696
|
-
method='
|
|
2697
|
-
resource_path='/organizations
|
|
2737
|
+
method='GET',
|
|
2738
|
+
resource_path='/organizations',
|
|
2698
2739
|
path_params=_path_params,
|
|
2699
2740
|
query_params=_query_params,
|
|
2700
2741
|
header_params=_header_params,
|
|
@@ -2711,10 +2752,8 @@ class OrganizationApi:
|
|
|
2711
2752
|
|
|
2712
2753
|
|
|
2713
2754
|
@validate_call
|
|
2714
|
-
def
|
|
2755
|
+
def list_permissions(
|
|
2715
2756
|
self,
|
|
2716
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2717
|
-
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.")],
|
|
2718
2757
|
_request_timeout: Union[
|
|
2719
2758
|
None,
|
|
2720
2759
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2727,14 +2766,10 @@ class OrganizationApi:
|
|
|
2727
2766
|
_content_type: Optional[StrictStr] = None,
|
|
2728
2767
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2729
2768
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2730
|
-
) ->
|
|
2731
|
-
"""
|
|
2769
|
+
) -> List[ComponentRolePermissions]:
|
|
2770
|
+
"""Get all permissions per components
|
|
2732
2771
|
|
|
2733
2772
|
|
|
2734
|
-
:param organization_id: the Organization identifier (required)
|
|
2735
|
-
:type organization_id: str
|
|
2736
|
-
: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)
|
|
2737
|
-
:type organization_role: OrganizationRole
|
|
2738
2773
|
:param _request_timeout: timeout setting for this request. If one
|
|
2739
2774
|
number provided, it will be total request
|
|
2740
2775
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2757,9 +2792,7 @@ class OrganizationApi:
|
|
|
2757
2792
|
:return: Returns the result object.
|
|
2758
2793
|
""" # noqa: E501
|
|
2759
2794
|
|
|
2760
|
-
_param = self.
|
|
2761
|
-
organization_id=organization_id,
|
|
2762
|
-
organization_role=organization_role,
|
|
2795
|
+
_param = self._list_permissions_serialize(
|
|
2763
2796
|
_request_auth=_request_auth,
|
|
2764
2797
|
_content_type=_content_type,
|
|
2765
2798
|
_headers=_headers,
|
|
@@ -2767,8 +2800,7 @@ class OrganizationApi:
|
|
|
2767
2800
|
)
|
|
2768
2801
|
|
|
2769
2802
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2770
|
-
'
|
|
2771
|
-
'404': None,
|
|
2803
|
+
'200': "List[ComponentRolePermissions]",
|
|
2772
2804
|
}
|
|
2773
2805
|
response_data = self.api_client.call_api(
|
|
2774
2806
|
*_param,
|
|
@@ -2782,10 +2814,8 @@ class OrganizationApi:
|
|
|
2782
2814
|
|
|
2783
2815
|
|
|
2784
2816
|
@validate_call
|
|
2785
|
-
def
|
|
2817
|
+
def list_permissions_with_http_info(
|
|
2786
2818
|
self,
|
|
2787
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2788
|
-
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.")],
|
|
2789
2819
|
_request_timeout: Union[
|
|
2790
2820
|
None,
|
|
2791
2821
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2798,14 +2828,10 @@ class OrganizationApi:
|
|
|
2798
2828
|
_content_type: Optional[StrictStr] = None,
|
|
2799
2829
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2800
2830
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2801
|
-
) -> ApiResponse[
|
|
2802
|
-
"""
|
|
2831
|
+
) -> ApiResponse[List[ComponentRolePermissions]]:
|
|
2832
|
+
"""Get all permissions per components
|
|
2803
2833
|
|
|
2804
2834
|
|
|
2805
|
-
:param organization_id: the Organization identifier (required)
|
|
2806
|
-
:type organization_id: str
|
|
2807
|
-
: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)
|
|
2808
|
-
:type organization_role: OrganizationRole
|
|
2809
2835
|
:param _request_timeout: timeout setting for this request. If one
|
|
2810
2836
|
number provided, it will be total request
|
|
2811
2837
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2828,9 +2854,7 @@ class OrganizationApi:
|
|
|
2828
2854
|
:return: Returns the result object.
|
|
2829
2855
|
""" # noqa: E501
|
|
2830
2856
|
|
|
2831
|
-
_param = self.
|
|
2832
|
-
organization_id=organization_id,
|
|
2833
|
-
organization_role=organization_role,
|
|
2857
|
+
_param = self._list_permissions_serialize(
|
|
2834
2858
|
_request_auth=_request_auth,
|
|
2835
2859
|
_content_type=_content_type,
|
|
2836
2860
|
_headers=_headers,
|
|
@@ -2838,8 +2862,7 @@ class OrganizationApi:
|
|
|
2838
2862
|
)
|
|
2839
2863
|
|
|
2840
2864
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2841
|
-
'
|
|
2842
|
-
'404': None,
|
|
2865
|
+
'200': "List[ComponentRolePermissions]",
|
|
2843
2866
|
}
|
|
2844
2867
|
response_data = self.api_client.call_api(
|
|
2845
2868
|
*_param,
|
|
@@ -2853,10 +2876,8 @@ class OrganizationApi:
|
|
|
2853
2876
|
|
|
2854
2877
|
|
|
2855
2878
|
@validate_call
|
|
2856
|
-
def
|
|
2879
|
+
def list_permissions_without_preload_content(
|
|
2857
2880
|
self,
|
|
2858
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2859
|
-
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.")],
|
|
2860
2881
|
_request_timeout: Union[
|
|
2861
2882
|
None,
|
|
2862
2883
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2870,13 +2891,9 @@ class OrganizationApi:
|
|
|
2870
2891
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2871
2892
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2872
2893
|
) -> RESTResponseType:
|
|
2873
|
-
"""
|
|
2894
|
+
"""Get all permissions per components
|
|
2874
2895
|
|
|
2875
2896
|
|
|
2876
|
-
:param organization_id: the Organization identifier (required)
|
|
2877
|
-
:type organization_id: str
|
|
2878
|
-
: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)
|
|
2879
|
-
:type organization_role: OrganizationRole
|
|
2880
2897
|
:param _request_timeout: timeout setting for this request. If one
|
|
2881
2898
|
number provided, it will be total request
|
|
2882
2899
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2899,9 +2916,7 @@ class OrganizationApi:
|
|
|
2899
2916
|
:return: Returns the result object.
|
|
2900
2917
|
""" # noqa: E501
|
|
2901
2918
|
|
|
2902
|
-
_param = self.
|
|
2903
|
-
organization_id=organization_id,
|
|
2904
|
-
organization_role=organization_role,
|
|
2919
|
+
_param = self._list_permissions_serialize(
|
|
2905
2920
|
_request_auth=_request_auth,
|
|
2906
2921
|
_content_type=_content_type,
|
|
2907
2922
|
_headers=_headers,
|
|
@@ -2909,8 +2924,7 @@ class OrganizationApi:
|
|
|
2909
2924
|
)
|
|
2910
2925
|
|
|
2911
2926
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2912
|
-
'
|
|
2913
|
-
'404': None,
|
|
2927
|
+
'200': "List[ComponentRolePermissions]",
|
|
2914
2928
|
}
|
|
2915
2929
|
response_data = self.api_client.call_api(
|
|
2916
2930
|
*_param,
|
|
@@ -2919,10 +2933,8 @@ class OrganizationApi:
|
|
|
2919
2933
|
return response_data.response
|
|
2920
2934
|
|
|
2921
2935
|
|
|
2922
|
-
def
|
|
2936
|
+
def _list_permissions_serialize(
|
|
2923
2937
|
self,
|
|
2924
|
-
organization_id,
|
|
2925
|
-
organization_role,
|
|
2926
2938
|
_request_auth,
|
|
2927
2939
|
_content_type,
|
|
2928
2940
|
_headers,
|
|
@@ -2938,42 +2950,27 @@ class OrganizationApi:
|
|
|
2938
2950
|
_query_params: List[Tuple[str, str]] = []
|
|
2939
2951
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2940
2952
|
_form_params: List[Tuple[str, str]] = []
|
|
2941
|
-
_files: Dict[
|
|
2953
|
+
_files: Dict[
|
|
2954
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2955
|
+
] = {}
|
|
2942
2956
|
_body_params: Optional[bytes] = None
|
|
2943
2957
|
|
|
2944
2958
|
# process the path parameters
|
|
2945
|
-
if organization_id is not None:
|
|
2946
|
-
_path_params['organization_id'] = organization_id
|
|
2947
2959
|
# process the query parameters
|
|
2948
2960
|
# process the header parameters
|
|
2949
2961
|
# process the form parameters
|
|
2950
2962
|
# process the body parameter
|
|
2951
|
-
if organization_role is not None:
|
|
2952
|
-
_body_params = organization_role
|
|
2953
2963
|
|
|
2954
2964
|
|
|
2955
2965
|
# set the HTTP header `Accept`
|
|
2956
2966
|
if 'Accept' not in _header_params:
|
|
2957
2967
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2958
2968
|
[
|
|
2959
|
-
'application/json'
|
|
2969
|
+
'application/json',
|
|
2970
|
+
'application/yaml'
|
|
2960
2971
|
]
|
|
2961
2972
|
)
|
|
2962
2973
|
|
|
2963
|
-
# set the HTTP header `Content-Type`
|
|
2964
|
-
if _content_type:
|
|
2965
|
-
_header_params['Content-Type'] = _content_type
|
|
2966
|
-
else:
|
|
2967
|
-
_default_content_type = (
|
|
2968
|
-
self.api_client.select_header_content_type(
|
|
2969
|
-
[
|
|
2970
|
-
'application/json',
|
|
2971
|
-
'application/yaml'
|
|
2972
|
-
]
|
|
2973
|
-
)
|
|
2974
|
-
)
|
|
2975
|
-
if _default_content_type is not None:
|
|
2976
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2977
2974
|
|
|
2978
2975
|
# authentication setting
|
|
2979
2976
|
_auth_settings: List[str] = [
|
|
@@ -2981,8 +2978,8 @@ class OrganizationApi:
|
|
|
2981
2978
|
]
|
|
2982
2979
|
|
|
2983
2980
|
return self.api_client.param_serialize(
|
|
2984
|
-
method='
|
|
2985
|
-
resource_path='/organizations/
|
|
2981
|
+
method='GET',
|
|
2982
|
+
resource_path='/organizations/permissions',
|
|
2986
2983
|
path_params=_path_params,
|
|
2987
2984
|
query_params=_query_params,
|
|
2988
2985
|
header_params=_header_params,
|
|
@@ -2999,9 +2996,10 @@ class OrganizationApi:
|
|
|
2999
2996
|
|
|
3000
2997
|
|
|
3001
2998
|
@validate_call
|
|
3002
|
-
def
|
|
2999
|
+
def update_organization(
|
|
3003
3000
|
self,
|
|
3004
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3001
|
+
organization_id: Annotated[StrictStr, Field(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")],
|
|
3005
3003
|
_request_timeout: Union[
|
|
3006
3004
|
None,
|
|
3007
3005
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3014,12 +3012,14 @@ class OrganizationApi:
|
|
|
3014
3012
|
_content_type: Optional[StrictStr] = None,
|
|
3015
3013
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3016
3014
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3017
|
-
) ->
|
|
3018
|
-
"""
|
|
3015
|
+
) -> Organization:
|
|
3016
|
+
"""Update an Organization
|
|
3019
3017
|
|
|
3020
3018
|
|
|
3021
|
-
:param organization_id:
|
|
3019
|
+
:param organization_id: The Organization identifier (required)
|
|
3022
3020
|
:type organization_id: str
|
|
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
|
|
3023
3023
|
:param _request_timeout: timeout setting for this request. If one
|
|
3024
3024
|
number provided, it will be total request
|
|
3025
3025
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3042,8 +3042,9 @@ class OrganizationApi:
|
|
|
3042
3042
|
:return: Returns the result object.
|
|
3043
3043
|
""" # noqa: E501
|
|
3044
3044
|
|
|
3045
|
-
_param = self.
|
|
3045
|
+
_param = self._update_organization_serialize(
|
|
3046
3046
|
organization_id=organization_id,
|
|
3047
|
+
organization_update_request=organization_update_request,
|
|
3047
3048
|
_request_auth=_request_auth,
|
|
3048
3049
|
_content_type=_content_type,
|
|
3049
3050
|
_headers=_headers,
|
|
@@ -3051,7 +3052,8 @@ class OrganizationApi:
|
|
|
3051
3052
|
)
|
|
3052
3053
|
|
|
3053
3054
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3054
|
-
'
|
|
3055
|
+
'200': "Organization",
|
|
3056
|
+
'400': None,
|
|
3055
3057
|
'404': None,
|
|
3056
3058
|
}
|
|
3057
3059
|
response_data = self.api_client.call_api(
|
|
@@ -3066,9 +3068,10 @@ class OrganizationApi:
|
|
|
3066
3068
|
|
|
3067
3069
|
|
|
3068
3070
|
@validate_call
|
|
3069
|
-
def
|
|
3071
|
+
def update_organization_with_http_info(
|
|
3070
3072
|
self,
|
|
3071
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3073
|
+
organization_id: Annotated[StrictStr, Field(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")],
|
|
3072
3075
|
_request_timeout: Union[
|
|
3073
3076
|
None,
|
|
3074
3077
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3081,12 +3084,14 @@ class OrganizationApi:
|
|
|
3081
3084
|
_content_type: Optional[StrictStr] = None,
|
|
3082
3085
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3083
3086
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3084
|
-
) -> ApiResponse[
|
|
3085
|
-
"""
|
|
3087
|
+
) -> ApiResponse[Organization]:
|
|
3088
|
+
"""Update an Organization
|
|
3086
3089
|
|
|
3087
3090
|
|
|
3088
|
-
:param organization_id:
|
|
3091
|
+
:param organization_id: The Organization identifier (required)
|
|
3089
3092
|
:type organization_id: str
|
|
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
|
|
3090
3095
|
:param _request_timeout: timeout setting for this request. If one
|
|
3091
3096
|
number provided, it will be total request
|
|
3092
3097
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3109,8 +3114,9 @@ class OrganizationApi:
|
|
|
3109
3114
|
:return: Returns the result object.
|
|
3110
3115
|
""" # noqa: E501
|
|
3111
3116
|
|
|
3112
|
-
_param = self.
|
|
3117
|
+
_param = self._update_organization_serialize(
|
|
3113
3118
|
organization_id=organization_id,
|
|
3119
|
+
organization_update_request=organization_update_request,
|
|
3114
3120
|
_request_auth=_request_auth,
|
|
3115
3121
|
_content_type=_content_type,
|
|
3116
3122
|
_headers=_headers,
|
|
@@ -3118,7 +3124,8 @@ class OrganizationApi:
|
|
|
3118
3124
|
)
|
|
3119
3125
|
|
|
3120
3126
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3121
|
-
'
|
|
3127
|
+
'200': "Organization",
|
|
3128
|
+
'400': None,
|
|
3122
3129
|
'404': None,
|
|
3123
3130
|
}
|
|
3124
3131
|
response_data = self.api_client.call_api(
|
|
@@ -3133,9 +3140,10 @@ class OrganizationApi:
|
|
|
3133
3140
|
|
|
3134
3141
|
|
|
3135
3142
|
@validate_call
|
|
3136
|
-
def
|
|
3143
|
+
def update_organization_without_preload_content(
|
|
3137
3144
|
self,
|
|
3138
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3145
|
+
organization_id: Annotated[StrictStr, Field(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")],
|
|
3139
3147
|
_request_timeout: Union[
|
|
3140
3148
|
None,
|
|
3141
3149
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3149,11 +3157,13 @@ class OrganizationApi:
|
|
|
3149
3157
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3150
3158
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3151
3159
|
) -> RESTResponseType:
|
|
3152
|
-
"""
|
|
3160
|
+
"""Update an Organization
|
|
3153
3161
|
|
|
3154
3162
|
|
|
3155
|
-
:param organization_id:
|
|
3163
|
+
:param organization_id: The Organization identifier (required)
|
|
3156
3164
|
:type organization_id: str
|
|
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
|
|
3157
3167
|
:param _request_timeout: timeout setting for this request. If one
|
|
3158
3168
|
number provided, it will be total request
|
|
3159
3169
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3176,8 +3186,9 @@ class OrganizationApi:
|
|
|
3176
3186
|
:return: Returns the result object.
|
|
3177
3187
|
""" # noqa: E501
|
|
3178
3188
|
|
|
3179
|
-
_param = self.
|
|
3189
|
+
_param = self._update_organization_serialize(
|
|
3180
3190
|
organization_id=organization_id,
|
|
3191
|
+
organization_update_request=organization_update_request,
|
|
3181
3192
|
_request_auth=_request_auth,
|
|
3182
3193
|
_content_type=_content_type,
|
|
3183
3194
|
_headers=_headers,
|
|
@@ -3185,7 +3196,8 @@ class OrganizationApi:
|
|
|
3185
3196
|
)
|
|
3186
3197
|
|
|
3187
3198
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3188
|
-
'
|
|
3199
|
+
'200': "Organization",
|
|
3200
|
+
'400': None,
|
|
3189
3201
|
'404': None,
|
|
3190
3202
|
}
|
|
3191
3203
|
response_data = self.api_client.call_api(
|
|
@@ -3195,9 +3207,10 @@ class OrganizationApi:
|
|
|
3195
3207
|
return response_data.response
|
|
3196
3208
|
|
|
3197
3209
|
|
|
3198
|
-
def
|
|
3210
|
+
def _update_organization_serialize(
|
|
3199
3211
|
self,
|
|
3200
3212
|
organization_id,
|
|
3213
|
+
organization_update_request,
|
|
3201
3214
|
_request_auth,
|
|
3202
3215
|
_content_type,
|
|
3203
3216
|
_headers,
|
|
@@ -3213,7 +3226,9 @@ class OrganizationApi:
|
|
|
3213
3226
|
_query_params: List[Tuple[str, str]] = []
|
|
3214
3227
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3215
3228
|
_form_params: List[Tuple[str, str]] = []
|
|
3216
|
-
_files: Dict[
|
|
3229
|
+
_files: Dict[
|
|
3230
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3231
|
+
] = {}
|
|
3217
3232
|
_body_params: Optional[bytes] = None
|
|
3218
3233
|
|
|
3219
3234
|
# process the path parameters
|
|
@@ -3223,9 +3238,33 @@ class OrganizationApi:
|
|
|
3223
3238
|
# process the header parameters
|
|
3224
3239
|
# process the form parameters
|
|
3225
3240
|
# process the body parameter
|
|
3241
|
+
if organization_update_request is not None:
|
|
3242
|
+
_body_params = organization_update_request
|
|
3226
3243
|
|
|
3227
3244
|
|
|
3245
|
+
# set the HTTP header `Accept`
|
|
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
|
+
)
|
|
3228
3253
|
|
|
3254
|
+
# set the HTTP header `Content-Type`
|
|
3255
|
+
if _content_type:
|
|
3256
|
+
_header_params['Content-Type'] = _content_type
|
|
3257
|
+
else:
|
|
3258
|
+
_default_content_type = (
|
|
3259
|
+
self.api_client.select_header_content_type(
|
|
3260
|
+
[
|
|
3261
|
+
'application/json',
|
|
3262
|
+
'application/yaml'
|
|
3263
|
+
]
|
|
3264
|
+
)
|
|
3265
|
+
)
|
|
3266
|
+
if _default_content_type is not None:
|
|
3267
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3229
3268
|
|
|
3230
3269
|
# authentication setting
|
|
3231
3270
|
_auth_settings: List[str] = [
|
|
@@ -3233,7 +3272,7 @@ class OrganizationApi:
|
|
|
3233
3272
|
]
|
|
3234
3273
|
|
|
3235
3274
|
return self.api_client.param_serialize(
|
|
3236
|
-
method='
|
|
3275
|
+
method='PATCH',
|
|
3237
3276
|
resource_path='/organizations/{organization_id}',
|
|
3238
3277
|
path_params=_path_params,
|
|
3239
3278
|
query_params=_query_params,
|
|
@@ -3251,10 +3290,11 @@ class OrganizationApi:
|
|
|
3251
3290
|
|
|
3252
3291
|
|
|
3253
3292
|
@validate_call
|
|
3254
|
-
def
|
|
3293
|
+
def update_organization_access_control(
|
|
3255
3294
|
self,
|
|
3256
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3257
|
-
|
|
3295
|
+
organization_id: Annotated[StrictStr, Field(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")],
|
|
3258
3298
|
_request_timeout: Union[
|
|
3259
3299
|
None,
|
|
3260
3300
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3267,14 +3307,16 @@ class OrganizationApi:
|
|
|
3267
3307
|
_content_type: Optional[StrictStr] = None,
|
|
3268
3308
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3269
3309
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3270
|
-
) ->
|
|
3271
|
-
"""Update an Organization
|
|
3310
|
+
) -> OrganizationAccessControl:
|
|
3311
|
+
"""Update the specified access to User for an Organization
|
|
3272
3312
|
|
|
3273
3313
|
|
|
3274
|
-
:param organization_id:
|
|
3314
|
+
:param organization_id: The Organization identifier (required)
|
|
3275
3315
|
:type organization_id: str
|
|
3276
|
-
:param
|
|
3277
|
-
: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
|
|
3278
3320
|
:param _request_timeout: timeout setting for this request. If one
|
|
3279
3321
|
number provided, it will be total request
|
|
3280
3322
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3297,9 +3339,10 @@ class OrganizationApi:
|
|
|
3297
3339
|
:return: Returns the result object.
|
|
3298
3340
|
""" # noqa: E501
|
|
3299
3341
|
|
|
3300
|
-
_param = self.
|
|
3342
|
+
_param = self._update_organization_access_control_serialize(
|
|
3301
3343
|
organization_id=organization_id,
|
|
3302
|
-
|
|
3344
|
+
identity_id=identity_id,
|
|
3345
|
+
organization_role=organization_role,
|
|
3303
3346
|
_request_auth=_request_auth,
|
|
3304
3347
|
_content_type=_content_type,
|
|
3305
3348
|
_headers=_headers,
|
|
@@ -3307,8 +3350,7 @@ class OrganizationApi:
|
|
|
3307
3350
|
)
|
|
3308
3351
|
|
|
3309
3352
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3310
|
-
'200': "
|
|
3311
|
-
'400': None,
|
|
3353
|
+
'200': "OrganizationAccessControl",
|
|
3312
3354
|
'404': None,
|
|
3313
3355
|
}
|
|
3314
3356
|
response_data = self.api_client.call_api(
|
|
@@ -3323,10 +3365,11 @@ class OrganizationApi:
|
|
|
3323
3365
|
|
|
3324
3366
|
|
|
3325
3367
|
@validate_call
|
|
3326
|
-
def
|
|
3368
|
+
def update_organization_access_control_with_http_info(
|
|
3327
3369
|
self,
|
|
3328
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3329
|
-
|
|
3370
|
+
organization_id: Annotated[StrictStr, Field(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")],
|
|
3330
3373
|
_request_timeout: Union[
|
|
3331
3374
|
None,
|
|
3332
3375
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3339,14 +3382,16 @@ class OrganizationApi:
|
|
|
3339
3382
|
_content_type: Optional[StrictStr] = None,
|
|
3340
3383
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3341
3384
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3342
|
-
) -> ApiResponse[
|
|
3343
|
-
"""Update an Organization
|
|
3385
|
+
) -> ApiResponse[OrganizationAccessControl]:
|
|
3386
|
+
"""Update the specified access to User for an Organization
|
|
3344
3387
|
|
|
3345
3388
|
|
|
3346
|
-
:param organization_id:
|
|
3389
|
+
:param organization_id: The Organization identifier (required)
|
|
3347
3390
|
:type organization_id: str
|
|
3348
|
-
:param
|
|
3349
|
-
: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
|
|
3350
3395
|
:param _request_timeout: timeout setting for this request. If one
|
|
3351
3396
|
number provided, it will be total request
|
|
3352
3397
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3369,9 +3414,10 @@ class OrganizationApi:
|
|
|
3369
3414
|
:return: Returns the result object.
|
|
3370
3415
|
""" # noqa: E501
|
|
3371
3416
|
|
|
3372
|
-
_param = self.
|
|
3417
|
+
_param = self._update_organization_access_control_serialize(
|
|
3373
3418
|
organization_id=organization_id,
|
|
3374
|
-
|
|
3419
|
+
identity_id=identity_id,
|
|
3420
|
+
organization_role=organization_role,
|
|
3375
3421
|
_request_auth=_request_auth,
|
|
3376
3422
|
_content_type=_content_type,
|
|
3377
3423
|
_headers=_headers,
|
|
@@ -3379,8 +3425,7 @@ class OrganizationApi:
|
|
|
3379
3425
|
)
|
|
3380
3426
|
|
|
3381
3427
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3382
|
-
'200': "
|
|
3383
|
-
'400': None,
|
|
3428
|
+
'200': "OrganizationAccessControl",
|
|
3384
3429
|
'404': None,
|
|
3385
3430
|
}
|
|
3386
3431
|
response_data = self.api_client.call_api(
|
|
@@ -3395,10 +3440,11 @@ class OrganizationApi:
|
|
|
3395
3440
|
|
|
3396
3441
|
|
|
3397
3442
|
@validate_call
|
|
3398
|
-
def
|
|
3443
|
+
def update_organization_access_control_without_preload_content(
|
|
3399
3444
|
self,
|
|
3400
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3401
|
-
|
|
3445
|
+
organization_id: Annotated[StrictStr, Field(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")],
|
|
3402
3448
|
_request_timeout: Union[
|
|
3403
3449
|
None,
|
|
3404
3450
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3412,13 +3458,15 @@ class OrganizationApi:
|
|
|
3412
3458
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3413
3459
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3414
3460
|
) -> RESTResponseType:
|
|
3415
|
-
"""Update an Organization
|
|
3461
|
+
"""Update the specified access to User for an Organization
|
|
3416
3462
|
|
|
3417
3463
|
|
|
3418
|
-
:param organization_id:
|
|
3464
|
+
:param organization_id: The Organization identifier (required)
|
|
3419
3465
|
:type organization_id: str
|
|
3420
|
-
:param
|
|
3421
|
-
: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
|
|
3422
3470
|
:param _request_timeout: timeout setting for this request. If one
|
|
3423
3471
|
number provided, it will be total request
|
|
3424
3472
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3441,9 +3489,10 @@ class OrganizationApi:
|
|
|
3441
3489
|
:return: Returns the result object.
|
|
3442
3490
|
""" # noqa: E501
|
|
3443
3491
|
|
|
3444
|
-
_param = self.
|
|
3492
|
+
_param = self._update_organization_access_control_serialize(
|
|
3445
3493
|
organization_id=organization_id,
|
|
3446
|
-
|
|
3494
|
+
identity_id=identity_id,
|
|
3495
|
+
organization_role=organization_role,
|
|
3447
3496
|
_request_auth=_request_auth,
|
|
3448
3497
|
_content_type=_content_type,
|
|
3449
3498
|
_headers=_headers,
|
|
@@ -3451,8 +3500,7 @@ class OrganizationApi:
|
|
|
3451
3500
|
)
|
|
3452
3501
|
|
|
3453
3502
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3454
|
-
'200': "
|
|
3455
|
-
'400': None,
|
|
3503
|
+
'200': "OrganizationAccessControl",
|
|
3456
3504
|
'404': None,
|
|
3457
3505
|
}
|
|
3458
3506
|
response_data = self.api_client.call_api(
|
|
@@ -3462,10 +3510,11 @@ class OrganizationApi:
|
|
|
3462
3510
|
return response_data.response
|
|
3463
3511
|
|
|
3464
3512
|
|
|
3465
|
-
def
|
|
3513
|
+
def _update_organization_access_control_serialize(
|
|
3466
3514
|
self,
|
|
3467
3515
|
organization_id,
|
|
3468
|
-
|
|
3516
|
+
identity_id,
|
|
3517
|
+
organization_role,
|
|
3469
3518
|
_request_auth,
|
|
3470
3519
|
_content_type,
|
|
3471
3520
|
_headers,
|
|
@@ -3481,25 +3530,30 @@ class OrganizationApi:
|
|
|
3481
3530
|
_query_params: List[Tuple[str, str]] = []
|
|
3482
3531
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3483
3532
|
_form_params: List[Tuple[str, str]] = []
|
|
3484
|
-
_files: Dict[
|
|
3533
|
+
_files: Dict[
|
|
3534
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3535
|
+
] = {}
|
|
3485
3536
|
_body_params: Optional[bytes] = None
|
|
3486
3537
|
|
|
3487
3538
|
# process the path parameters
|
|
3488
3539
|
if organization_id is not None:
|
|
3489
3540
|
_path_params['organization_id'] = organization_id
|
|
3541
|
+
if identity_id is not None:
|
|
3542
|
+
_path_params['identity_id'] = identity_id
|
|
3490
3543
|
# process the query parameters
|
|
3491
3544
|
# process the header parameters
|
|
3492
3545
|
# process the form parameters
|
|
3493
3546
|
# process the body parameter
|
|
3494
|
-
if
|
|
3495
|
-
_body_params =
|
|
3547
|
+
if organization_role is not None:
|
|
3548
|
+
_body_params = organization_role
|
|
3496
3549
|
|
|
3497
3550
|
|
|
3498
3551
|
# set the HTTP header `Accept`
|
|
3499
3552
|
if 'Accept' not in _header_params:
|
|
3500
3553
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3501
3554
|
[
|
|
3502
|
-
'application/json'
|
|
3555
|
+
'application/json',
|
|
3556
|
+
'application/yaml'
|
|
3503
3557
|
]
|
|
3504
3558
|
)
|
|
3505
3559
|
|
|
@@ -3525,7 +3579,7 @@ class OrganizationApi:
|
|
|
3525
3579
|
|
|
3526
3580
|
return self.api_client.param_serialize(
|
|
3527
3581
|
method='PATCH',
|
|
3528
|
-
resource_path='/organizations/{organization_id}',
|
|
3582
|
+
resource_path='/organizations/{organization_id}/security/access/{identity_id}',
|
|
3529
3583
|
path_params=_path_params,
|
|
3530
3584
|
query_params=_query_params,
|
|
3531
3585
|
header_params=_header_params,
|
|
@@ -3542,11 +3596,10 @@ class OrganizationApi:
|
|
|
3542
3596
|
|
|
3543
3597
|
|
|
3544
3598
|
@validate_call
|
|
3545
|
-
def
|
|
3599
|
+
def update_organization_default_security(
|
|
3546
3600
|
self,
|
|
3547
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3548
|
-
|
|
3549
|
-
organization_role: Annotated[OrganizationRole, Field(description="The new Organization Access Control")],
|
|
3601
|
+
organization_id: Annotated[StrictStr, Field(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.")],
|
|
3550
3603
|
_request_timeout: Union[
|
|
3551
3604
|
None,
|
|
3552
3605
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3559,15 +3612,13 @@ class OrganizationApi:
|
|
|
3559
3612
|
_content_type: Optional[StrictStr] = None,
|
|
3560
3613
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3561
3614
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3562
|
-
) ->
|
|
3563
|
-
"""Update the
|
|
3615
|
+
) -> OrganizationSecurity:
|
|
3616
|
+
"""Update the Organization default security
|
|
3564
3617
|
|
|
3565
3618
|
|
|
3566
|
-
:param organization_id:
|
|
3619
|
+
:param organization_id: The Organization identifier (required)
|
|
3567
3620
|
:type organization_id: str
|
|
3568
|
-
:param
|
|
3569
|
-
:type identity_id: str
|
|
3570
|
-
:param organization_role: The new Organization Access Control (required)
|
|
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)
|
|
3571
3622
|
:type organization_role: OrganizationRole
|
|
3572
3623
|
:param _request_timeout: timeout setting for this request. If one
|
|
3573
3624
|
number provided, it will be total request
|
|
@@ -3591,9 +3642,8 @@ class OrganizationApi:
|
|
|
3591
3642
|
:return: Returns the result object.
|
|
3592
3643
|
""" # noqa: E501
|
|
3593
3644
|
|
|
3594
|
-
_param = self.
|
|
3645
|
+
_param = self._update_organization_default_security_serialize(
|
|
3595
3646
|
organization_id=organization_id,
|
|
3596
|
-
identity_id=identity_id,
|
|
3597
3647
|
organization_role=organization_role,
|
|
3598
3648
|
_request_auth=_request_auth,
|
|
3599
3649
|
_content_type=_content_type,
|
|
@@ -3602,7 +3652,7 @@ class OrganizationApi:
|
|
|
3602
3652
|
)
|
|
3603
3653
|
|
|
3604
3654
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3605
|
-
'
|
|
3655
|
+
'201': "OrganizationSecurity",
|
|
3606
3656
|
'404': None,
|
|
3607
3657
|
}
|
|
3608
3658
|
response_data = self.api_client.call_api(
|
|
@@ -3617,11 +3667,10 @@ class OrganizationApi:
|
|
|
3617
3667
|
|
|
3618
3668
|
|
|
3619
3669
|
@validate_call
|
|
3620
|
-
def
|
|
3670
|
+
def update_organization_default_security_with_http_info(
|
|
3621
3671
|
self,
|
|
3622
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3623
|
-
|
|
3624
|
-
organization_role: Annotated[OrganizationRole, Field(description="The new Organization Access Control")],
|
|
3672
|
+
organization_id: Annotated[StrictStr, Field(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.")],
|
|
3625
3674
|
_request_timeout: Union[
|
|
3626
3675
|
None,
|
|
3627
3676
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3634,15 +3683,13 @@ class OrganizationApi:
|
|
|
3634
3683
|
_content_type: Optional[StrictStr] = None,
|
|
3635
3684
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3636
3685
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3637
|
-
) -> ApiResponse[
|
|
3638
|
-
"""Update the
|
|
3686
|
+
) -> ApiResponse[OrganizationSecurity]:
|
|
3687
|
+
"""Update the Organization default security
|
|
3639
3688
|
|
|
3640
3689
|
|
|
3641
|
-
:param organization_id:
|
|
3690
|
+
:param organization_id: The Organization identifier (required)
|
|
3642
3691
|
:type organization_id: str
|
|
3643
|
-
:param
|
|
3644
|
-
:type identity_id: str
|
|
3645
|
-
:param organization_role: The new Organization Access Control (required)
|
|
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)
|
|
3646
3693
|
:type organization_role: OrganizationRole
|
|
3647
3694
|
:param _request_timeout: timeout setting for this request. If one
|
|
3648
3695
|
number provided, it will be total request
|
|
@@ -3666,9 +3713,8 @@ class OrganizationApi:
|
|
|
3666
3713
|
:return: Returns the result object.
|
|
3667
3714
|
""" # noqa: E501
|
|
3668
3715
|
|
|
3669
|
-
_param = self.
|
|
3716
|
+
_param = self._update_organization_default_security_serialize(
|
|
3670
3717
|
organization_id=organization_id,
|
|
3671
|
-
identity_id=identity_id,
|
|
3672
3718
|
organization_role=organization_role,
|
|
3673
3719
|
_request_auth=_request_auth,
|
|
3674
3720
|
_content_type=_content_type,
|
|
@@ -3677,7 +3723,7 @@ class OrganizationApi:
|
|
|
3677
3723
|
)
|
|
3678
3724
|
|
|
3679
3725
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3680
|
-
'
|
|
3726
|
+
'201': "OrganizationSecurity",
|
|
3681
3727
|
'404': None,
|
|
3682
3728
|
}
|
|
3683
3729
|
response_data = self.api_client.call_api(
|
|
@@ -3692,11 +3738,10 @@ class OrganizationApi:
|
|
|
3692
3738
|
|
|
3693
3739
|
|
|
3694
3740
|
@validate_call
|
|
3695
|
-
def
|
|
3741
|
+
def update_organization_default_security_without_preload_content(
|
|
3696
3742
|
self,
|
|
3697
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3698
|
-
|
|
3699
|
-
organization_role: Annotated[OrganizationRole, Field(description="The new Organization Access Control")],
|
|
3743
|
+
organization_id: Annotated[StrictStr, Field(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.")],
|
|
3700
3745
|
_request_timeout: Union[
|
|
3701
3746
|
None,
|
|
3702
3747
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3710,14 +3755,12 @@ class OrganizationApi:
|
|
|
3710
3755
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3711
3756
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3712
3757
|
) -> RESTResponseType:
|
|
3713
|
-
"""Update the
|
|
3758
|
+
"""Update the Organization default security
|
|
3714
3759
|
|
|
3715
3760
|
|
|
3716
|
-
:param organization_id:
|
|
3761
|
+
:param organization_id: The Organization identifier (required)
|
|
3717
3762
|
:type organization_id: str
|
|
3718
|
-
:param
|
|
3719
|
-
:type identity_id: str
|
|
3720
|
-
:param organization_role: The new Organization Access Control (required)
|
|
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)
|
|
3721
3764
|
:type organization_role: OrganizationRole
|
|
3722
3765
|
:param _request_timeout: timeout setting for this request. If one
|
|
3723
3766
|
number provided, it will be total request
|
|
@@ -3741,9 +3784,8 @@ class OrganizationApi:
|
|
|
3741
3784
|
:return: Returns the result object.
|
|
3742
3785
|
""" # noqa: E501
|
|
3743
3786
|
|
|
3744
|
-
_param = self.
|
|
3787
|
+
_param = self._update_organization_default_security_serialize(
|
|
3745
3788
|
organization_id=organization_id,
|
|
3746
|
-
identity_id=identity_id,
|
|
3747
3789
|
organization_role=organization_role,
|
|
3748
3790
|
_request_auth=_request_auth,
|
|
3749
3791
|
_content_type=_content_type,
|
|
@@ -3752,7 +3794,7 @@ class OrganizationApi:
|
|
|
3752
3794
|
)
|
|
3753
3795
|
|
|
3754
3796
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3755
|
-
'
|
|
3797
|
+
'201': "OrganizationSecurity",
|
|
3756
3798
|
'404': None,
|
|
3757
3799
|
}
|
|
3758
3800
|
response_data = self.api_client.call_api(
|
|
@@ -3762,10 +3804,9 @@ class OrganizationApi:
|
|
|
3762
3804
|
return response_data.response
|
|
3763
3805
|
|
|
3764
3806
|
|
|
3765
|
-
def
|
|
3807
|
+
def _update_organization_default_security_serialize(
|
|
3766
3808
|
self,
|
|
3767
3809
|
organization_id,
|
|
3768
|
-
identity_id,
|
|
3769
3810
|
organization_role,
|
|
3770
3811
|
_request_auth,
|
|
3771
3812
|
_content_type,
|
|
@@ -3782,14 +3823,14 @@ class OrganizationApi:
|
|
|
3782
3823
|
_query_params: List[Tuple[str, str]] = []
|
|
3783
3824
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3784
3825
|
_form_params: List[Tuple[str, str]] = []
|
|
3785
|
-
_files: Dict[
|
|
3826
|
+
_files: Dict[
|
|
3827
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3828
|
+
] = {}
|
|
3786
3829
|
_body_params: Optional[bytes] = None
|
|
3787
3830
|
|
|
3788
3831
|
# process the path parameters
|
|
3789
3832
|
if organization_id is not None:
|
|
3790
3833
|
_path_params['organization_id'] = organization_id
|
|
3791
|
-
if identity_id is not None:
|
|
3792
|
-
_path_params['identity_id'] = identity_id
|
|
3793
3834
|
# process the query parameters
|
|
3794
3835
|
# process the header parameters
|
|
3795
3836
|
# process the form parameters
|
|
@@ -3802,7 +3843,8 @@ class OrganizationApi:
|
|
|
3802
3843
|
if 'Accept' not in _header_params:
|
|
3803
3844
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3804
3845
|
[
|
|
3805
|
-
'application/json'
|
|
3846
|
+
'application/json',
|
|
3847
|
+
'application/yaml'
|
|
3806
3848
|
]
|
|
3807
3849
|
)
|
|
3808
3850
|
|
|
@@ -3813,7 +3855,8 @@ class OrganizationApi:
|
|
|
3813
3855
|
_default_content_type = (
|
|
3814
3856
|
self.api_client.select_header_content_type(
|
|
3815
3857
|
[
|
|
3816
|
-
'application/json'
|
|
3858
|
+
'application/json',
|
|
3859
|
+
'application/yaml'
|
|
3817
3860
|
]
|
|
3818
3861
|
)
|
|
3819
3862
|
)
|
|
@@ -3827,7 +3870,7 @@ class OrganizationApi:
|
|
|
3827
3870
|
|
|
3828
3871
|
return self.api_client.param_serialize(
|
|
3829
3872
|
method='PATCH',
|
|
3830
|
-
resource_path='/organizations/{organization_id}/security/
|
|
3873
|
+
resource_path='/organizations/{organization_id}/security/default',
|
|
3831
3874
|
path_params=_path_params,
|
|
3832
3875
|
query_params=_query_params,
|
|
3833
3876
|
header_params=_header_params,
|