cosmotech-api 4.0.0.dev8__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.dev8.dist-info → cosmotech_api-5.0.0b3.dist-info}/WHEEL +1 -1
- {cosmotech_api-4.0.0.dev8.dist-info → cosmotech_api-5.0.0b3.dist-info/licenses}/LICENSE +1 -1
- cosmotech_api-4.0.0.dev8.dist-info/METADATA +0 -18
- cosmotech_api-4.0.0.dev8.dist-info/RECORD +0 -262
- {cosmotech_api-4.0.0.dev8.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
|
|
|
@@ -18,13 +18,15 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
|
18
18
|
from typing_extensions import Annotated
|
|
19
19
|
|
|
20
20
|
from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr
|
|
21
|
-
from typing import List, Optional, Union
|
|
21
|
+
from typing import List, Optional, Tuple, Union
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
23
|
from cosmotech_api.models.workspace import Workspace
|
|
24
24
|
from cosmotech_api.models.workspace_access_control import WorkspaceAccessControl
|
|
25
|
+
from cosmotech_api.models.workspace_create_request import WorkspaceCreateRequest
|
|
25
26
|
from cosmotech_api.models.workspace_file import WorkspaceFile
|
|
26
27
|
from cosmotech_api.models.workspace_role import WorkspaceRole
|
|
27
28
|
from cosmotech_api.models.workspace_security import WorkspaceSecurity
|
|
29
|
+
from cosmotech_api.models.workspace_update_request import WorkspaceUpdateRequest
|
|
28
30
|
|
|
29
31
|
from cosmotech_api.api_client import ApiClient, RequestSerialized
|
|
30
32
|
from cosmotech_api.api_response import ApiResponse
|
|
@@ -45,11 +47,10 @@ class WorkspaceApi:
|
|
|
45
47
|
|
|
46
48
|
|
|
47
49
|
@validate_call
|
|
48
|
-
def
|
|
50
|
+
def create_workspace(
|
|
49
51
|
self,
|
|
50
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
51
|
-
|
|
52
|
-
workspace_access_control: Annotated[WorkspaceAccessControl, Field(description="the new Workspace security access to add.")],
|
|
52
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
53
|
+
workspace_create_request: Annotated[WorkspaceCreateRequest, Field(description="The Workspace to create")],
|
|
53
54
|
_request_timeout: Union[
|
|
54
55
|
None,
|
|
55
56
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -62,16 +63,14 @@ class WorkspaceApi:
|
|
|
62
63
|
_content_type: Optional[StrictStr] = None,
|
|
63
64
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
64
65
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
65
|
-
) ->
|
|
66
|
-
"""
|
|
66
|
+
) -> Workspace:
|
|
67
|
+
"""Create a new workspace
|
|
67
68
|
|
|
68
69
|
|
|
69
|
-
:param organization_id:
|
|
70
|
+
:param organization_id: The Organization identifier (required)
|
|
70
71
|
:type organization_id: str
|
|
71
|
-
:param
|
|
72
|
-
:type
|
|
73
|
-
:param workspace_access_control: the new Workspace security access to add. (required)
|
|
74
|
-
:type workspace_access_control: WorkspaceAccessControl
|
|
72
|
+
:param workspace_create_request: The Workspace to create (required)
|
|
73
|
+
:type workspace_create_request: WorkspaceCreateRequest
|
|
75
74
|
:param _request_timeout: timeout setting for this request. If one
|
|
76
75
|
number provided, it will be total request
|
|
77
76
|
timeout. It can also be a pair (tuple) of
|
|
@@ -94,10 +93,9 @@ class WorkspaceApi:
|
|
|
94
93
|
:return: Returns the result object.
|
|
95
94
|
""" # noqa: E501
|
|
96
95
|
|
|
97
|
-
_param = self.
|
|
96
|
+
_param = self._create_workspace_serialize(
|
|
98
97
|
organization_id=organization_id,
|
|
99
|
-
|
|
100
|
-
workspace_access_control=workspace_access_control,
|
|
98
|
+
workspace_create_request=workspace_create_request,
|
|
101
99
|
_request_auth=_request_auth,
|
|
102
100
|
_content_type=_content_type,
|
|
103
101
|
_headers=_headers,
|
|
@@ -105,8 +103,8 @@ class WorkspaceApi:
|
|
|
105
103
|
)
|
|
106
104
|
|
|
107
105
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
108
|
-
'201': "
|
|
109
|
-
'
|
|
106
|
+
'201': "Workspace",
|
|
107
|
+
'400': None,
|
|
110
108
|
}
|
|
111
109
|
response_data = self.api_client.call_api(
|
|
112
110
|
*_param,
|
|
@@ -120,11 +118,10 @@ class WorkspaceApi:
|
|
|
120
118
|
|
|
121
119
|
|
|
122
120
|
@validate_call
|
|
123
|
-
def
|
|
121
|
+
def create_workspace_with_http_info(
|
|
124
122
|
self,
|
|
125
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
126
|
-
|
|
127
|
-
workspace_access_control: Annotated[WorkspaceAccessControl, Field(description="the new Workspace security access to add.")],
|
|
123
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
124
|
+
workspace_create_request: Annotated[WorkspaceCreateRequest, Field(description="The Workspace to create")],
|
|
128
125
|
_request_timeout: Union[
|
|
129
126
|
None,
|
|
130
127
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -137,16 +134,14 @@ class WorkspaceApi:
|
|
|
137
134
|
_content_type: Optional[StrictStr] = None,
|
|
138
135
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
139
136
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
140
|
-
) -> ApiResponse[
|
|
141
|
-
"""
|
|
137
|
+
) -> ApiResponse[Workspace]:
|
|
138
|
+
"""Create a new workspace
|
|
142
139
|
|
|
143
140
|
|
|
144
|
-
:param organization_id:
|
|
141
|
+
:param organization_id: The Organization identifier (required)
|
|
145
142
|
:type organization_id: str
|
|
146
|
-
:param
|
|
147
|
-
:type
|
|
148
|
-
:param workspace_access_control: the new Workspace security access to add. (required)
|
|
149
|
-
:type workspace_access_control: WorkspaceAccessControl
|
|
143
|
+
:param workspace_create_request: The Workspace to create (required)
|
|
144
|
+
:type workspace_create_request: WorkspaceCreateRequest
|
|
150
145
|
:param _request_timeout: timeout setting for this request. If one
|
|
151
146
|
number provided, it will be total request
|
|
152
147
|
timeout. It can also be a pair (tuple) of
|
|
@@ -169,10 +164,9 @@ class WorkspaceApi:
|
|
|
169
164
|
:return: Returns the result object.
|
|
170
165
|
""" # noqa: E501
|
|
171
166
|
|
|
172
|
-
_param = self.
|
|
167
|
+
_param = self._create_workspace_serialize(
|
|
173
168
|
organization_id=organization_id,
|
|
174
|
-
|
|
175
|
-
workspace_access_control=workspace_access_control,
|
|
169
|
+
workspace_create_request=workspace_create_request,
|
|
176
170
|
_request_auth=_request_auth,
|
|
177
171
|
_content_type=_content_type,
|
|
178
172
|
_headers=_headers,
|
|
@@ -180,8 +174,8 @@ class WorkspaceApi:
|
|
|
180
174
|
)
|
|
181
175
|
|
|
182
176
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
183
|
-
'201': "
|
|
184
|
-
'
|
|
177
|
+
'201': "Workspace",
|
|
178
|
+
'400': None,
|
|
185
179
|
}
|
|
186
180
|
response_data = self.api_client.call_api(
|
|
187
181
|
*_param,
|
|
@@ -195,11 +189,10 @@ class WorkspaceApi:
|
|
|
195
189
|
|
|
196
190
|
|
|
197
191
|
@validate_call
|
|
198
|
-
def
|
|
192
|
+
def create_workspace_without_preload_content(
|
|
199
193
|
self,
|
|
200
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
201
|
-
|
|
202
|
-
workspace_access_control: Annotated[WorkspaceAccessControl, Field(description="the new Workspace security access to add.")],
|
|
194
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
195
|
+
workspace_create_request: Annotated[WorkspaceCreateRequest, Field(description="The Workspace to create")],
|
|
203
196
|
_request_timeout: Union[
|
|
204
197
|
None,
|
|
205
198
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -213,15 +206,13 @@ class WorkspaceApi:
|
|
|
213
206
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
214
207
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
215
208
|
) -> RESTResponseType:
|
|
216
|
-
"""
|
|
209
|
+
"""Create a new workspace
|
|
217
210
|
|
|
218
211
|
|
|
219
|
-
:param organization_id:
|
|
212
|
+
:param organization_id: The Organization identifier (required)
|
|
220
213
|
:type organization_id: str
|
|
221
|
-
:param
|
|
222
|
-
:type
|
|
223
|
-
:param workspace_access_control: the new Workspace security access to add. (required)
|
|
224
|
-
:type workspace_access_control: WorkspaceAccessControl
|
|
214
|
+
:param workspace_create_request: The Workspace to create (required)
|
|
215
|
+
:type workspace_create_request: WorkspaceCreateRequest
|
|
225
216
|
:param _request_timeout: timeout setting for this request. If one
|
|
226
217
|
number provided, it will be total request
|
|
227
218
|
timeout. It can also be a pair (tuple) of
|
|
@@ -244,10 +235,9 @@ class WorkspaceApi:
|
|
|
244
235
|
:return: Returns the result object.
|
|
245
236
|
""" # noqa: E501
|
|
246
237
|
|
|
247
|
-
_param = self.
|
|
238
|
+
_param = self._create_workspace_serialize(
|
|
248
239
|
organization_id=organization_id,
|
|
249
|
-
|
|
250
|
-
workspace_access_control=workspace_access_control,
|
|
240
|
+
workspace_create_request=workspace_create_request,
|
|
251
241
|
_request_auth=_request_auth,
|
|
252
242
|
_content_type=_content_type,
|
|
253
243
|
_headers=_headers,
|
|
@@ -255,8 +245,8 @@ class WorkspaceApi:
|
|
|
255
245
|
)
|
|
256
246
|
|
|
257
247
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
258
|
-
'201': "
|
|
259
|
-
'
|
|
248
|
+
'201': "Workspace",
|
|
249
|
+
'400': None,
|
|
260
250
|
}
|
|
261
251
|
response_data = self.api_client.call_api(
|
|
262
252
|
*_param,
|
|
@@ -265,11 +255,10 @@ class WorkspaceApi:
|
|
|
265
255
|
return response_data.response
|
|
266
256
|
|
|
267
257
|
|
|
268
|
-
def
|
|
258
|
+
def _create_workspace_serialize(
|
|
269
259
|
self,
|
|
270
260
|
organization_id,
|
|
271
|
-
|
|
272
|
-
workspace_access_control,
|
|
261
|
+
workspace_create_request,
|
|
273
262
|
_request_auth,
|
|
274
263
|
_content_type,
|
|
275
264
|
_headers,
|
|
@@ -285,27 +274,28 @@ class WorkspaceApi:
|
|
|
285
274
|
_query_params: List[Tuple[str, str]] = []
|
|
286
275
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
287
276
|
_form_params: List[Tuple[str, str]] = []
|
|
288
|
-
_files: Dict[
|
|
277
|
+
_files: Dict[
|
|
278
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
279
|
+
] = {}
|
|
289
280
|
_body_params: Optional[bytes] = None
|
|
290
281
|
|
|
291
282
|
# process the path parameters
|
|
292
283
|
if organization_id is not None:
|
|
293
284
|
_path_params['organization_id'] = organization_id
|
|
294
|
-
if workspace_id is not None:
|
|
295
|
-
_path_params['workspace_id'] = workspace_id
|
|
296
285
|
# process the query parameters
|
|
297
286
|
# process the header parameters
|
|
298
287
|
# process the form parameters
|
|
299
288
|
# process the body parameter
|
|
300
|
-
if
|
|
301
|
-
_body_params =
|
|
289
|
+
if workspace_create_request is not None:
|
|
290
|
+
_body_params = workspace_create_request
|
|
302
291
|
|
|
303
292
|
|
|
304
293
|
# set the HTTP header `Accept`
|
|
305
294
|
if 'Accept' not in _header_params:
|
|
306
295
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
307
296
|
[
|
|
308
|
-
'application/json'
|
|
297
|
+
'application/json',
|
|
298
|
+
'application/yaml'
|
|
309
299
|
]
|
|
310
300
|
)
|
|
311
301
|
|
|
@@ -331,7 +321,7 @@ class WorkspaceApi:
|
|
|
331
321
|
|
|
332
322
|
return self.api_client.param_serialize(
|
|
333
323
|
method='POST',
|
|
334
|
-
resource_path='/organizations/{organization_id}/workspaces
|
|
324
|
+
resource_path='/organizations/{organization_id}/workspaces',
|
|
335
325
|
path_params=_path_params,
|
|
336
326
|
query_params=_query_params,
|
|
337
327
|
header_params=_header_params,
|
|
@@ -348,10 +338,11 @@ class WorkspaceApi:
|
|
|
348
338
|
|
|
349
339
|
|
|
350
340
|
@validate_call
|
|
351
|
-
def
|
|
341
|
+
def create_workspace_access_control(
|
|
352
342
|
self,
|
|
353
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
354
|
-
|
|
343
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
344
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
345
|
+
workspace_access_control: Annotated[WorkspaceAccessControl, Field(description="The new Workspace security access to add.")],
|
|
355
346
|
_request_timeout: Union[
|
|
356
347
|
None,
|
|
357
348
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -364,14 +355,16 @@ class WorkspaceApi:
|
|
|
364
355
|
_content_type: Optional[StrictStr] = None,
|
|
365
356
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
366
357
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
367
|
-
) ->
|
|
368
|
-
"""
|
|
358
|
+
) -> WorkspaceAccessControl:
|
|
359
|
+
"""Add a control access to the Workspace
|
|
369
360
|
|
|
370
361
|
|
|
371
|
-
:param organization_id:
|
|
362
|
+
:param organization_id: The Organization identifier (required)
|
|
372
363
|
:type organization_id: str
|
|
373
|
-
:param
|
|
374
|
-
:type
|
|
364
|
+
:param workspace_id: The Workspace identifier (required)
|
|
365
|
+
:type workspace_id: str
|
|
366
|
+
:param workspace_access_control: The new Workspace security access to add. (required)
|
|
367
|
+
:type workspace_access_control: WorkspaceAccessControl
|
|
375
368
|
:param _request_timeout: timeout setting for this request. If one
|
|
376
369
|
number provided, it will be total request
|
|
377
370
|
timeout. It can also be a pair (tuple) of
|
|
@@ -394,9 +387,10 @@ class WorkspaceApi:
|
|
|
394
387
|
:return: Returns the result object.
|
|
395
388
|
""" # noqa: E501
|
|
396
389
|
|
|
397
|
-
_param = self.
|
|
390
|
+
_param = self._create_workspace_access_control_serialize(
|
|
398
391
|
organization_id=organization_id,
|
|
399
|
-
|
|
392
|
+
workspace_id=workspace_id,
|
|
393
|
+
workspace_access_control=workspace_access_control,
|
|
400
394
|
_request_auth=_request_auth,
|
|
401
395
|
_content_type=_content_type,
|
|
402
396
|
_headers=_headers,
|
|
@@ -404,8 +398,8 @@ class WorkspaceApi:
|
|
|
404
398
|
)
|
|
405
399
|
|
|
406
400
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
407
|
-
'201': "
|
|
408
|
-
'
|
|
401
|
+
'201': "WorkspaceAccessControl",
|
|
402
|
+
'404': None,
|
|
409
403
|
}
|
|
410
404
|
response_data = self.api_client.call_api(
|
|
411
405
|
*_param,
|
|
@@ -419,10 +413,11 @@ class WorkspaceApi:
|
|
|
419
413
|
|
|
420
414
|
|
|
421
415
|
@validate_call
|
|
422
|
-
def
|
|
416
|
+
def create_workspace_access_control_with_http_info(
|
|
423
417
|
self,
|
|
424
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
425
|
-
|
|
418
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
419
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
420
|
+
workspace_access_control: Annotated[WorkspaceAccessControl, Field(description="The new Workspace security access to add.")],
|
|
426
421
|
_request_timeout: Union[
|
|
427
422
|
None,
|
|
428
423
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -435,14 +430,16 @@ class WorkspaceApi:
|
|
|
435
430
|
_content_type: Optional[StrictStr] = None,
|
|
436
431
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
437
432
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
438
|
-
) -> ApiResponse[
|
|
439
|
-
"""
|
|
433
|
+
) -> ApiResponse[WorkspaceAccessControl]:
|
|
434
|
+
"""Add a control access to the Workspace
|
|
440
435
|
|
|
441
436
|
|
|
442
|
-
:param organization_id:
|
|
437
|
+
:param organization_id: The Organization identifier (required)
|
|
443
438
|
:type organization_id: str
|
|
444
|
-
:param
|
|
445
|
-
:type
|
|
439
|
+
:param workspace_id: The Workspace identifier (required)
|
|
440
|
+
:type workspace_id: str
|
|
441
|
+
:param workspace_access_control: The new Workspace security access to add. (required)
|
|
442
|
+
:type workspace_access_control: WorkspaceAccessControl
|
|
446
443
|
:param _request_timeout: timeout setting for this request. If one
|
|
447
444
|
number provided, it will be total request
|
|
448
445
|
timeout. It can also be a pair (tuple) of
|
|
@@ -465,9 +462,10 @@ class WorkspaceApi:
|
|
|
465
462
|
:return: Returns the result object.
|
|
466
463
|
""" # noqa: E501
|
|
467
464
|
|
|
468
|
-
_param = self.
|
|
465
|
+
_param = self._create_workspace_access_control_serialize(
|
|
469
466
|
organization_id=organization_id,
|
|
470
|
-
|
|
467
|
+
workspace_id=workspace_id,
|
|
468
|
+
workspace_access_control=workspace_access_control,
|
|
471
469
|
_request_auth=_request_auth,
|
|
472
470
|
_content_type=_content_type,
|
|
473
471
|
_headers=_headers,
|
|
@@ -475,8 +473,8 @@ class WorkspaceApi:
|
|
|
475
473
|
)
|
|
476
474
|
|
|
477
475
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
478
|
-
'201': "
|
|
479
|
-
'
|
|
476
|
+
'201': "WorkspaceAccessControl",
|
|
477
|
+
'404': None,
|
|
480
478
|
}
|
|
481
479
|
response_data = self.api_client.call_api(
|
|
482
480
|
*_param,
|
|
@@ -490,10 +488,11 @@ class WorkspaceApi:
|
|
|
490
488
|
|
|
491
489
|
|
|
492
490
|
@validate_call
|
|
493
|
-
def
|
|
491
|
+
def create_workspace_access_control_without_preload_content(
|
|
494
492
|
self,
|
|
495
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
496
|
-
|
|
493
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
494
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
495
|
+
workspace_access_control: Annotated[WorkspaceAccessControl, Field(description="The new Workspace security access to add.")],
|
|
497
496
|
_request_timeout: Union[
|
|
498
497
|
None,
|
|
499
498
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -507,13 +506,15 @@ class WorkspaceApi:
|
|
|
507
506
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
508
507
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
509
508
|
) -> RESTResponseType:
|
|
510
|
-
"""
|
|
509
|
+
"""Add a control access to the Workspace
|
|
511
510
|
|
|
512
511
|
|
|
513
|
-
:param organization_id:
|
|
512
|
+
:param organization_id: The Organization identifier (required)
|
|
514
513
|
:type organization_id: str
|
|
515
|
-
:param
|
|
516
|
-
:type
|
|
514
|
+
:param workspace_id: The Workspace identifier (required)
|
|
515
|
+
:type workspace_id: str
|
|
516
|
+
:param workspace_access_control: The new Workspace security access to add. (required)
|
|
517
|
+
:type workspace_access_control: WorkspaceAccessControl
|
|
517
518
|
:param _request_timeout: timeout setting for this request. If one
|
|
518
519
|
number provided, it will be total request
|
|
519
520
|
timeout. It can also be a pair (tuple) of
|
|
@@ -536,9 +537,10 @@ class WorkspaceApi:
|
|
|
536
537
|
:return: Returns the result object.
|
|
537
538
|
""" # noqa: E501
|
|
538
539
|
|
|
539
|
-
_param = self.
|
|
540
|
+
_param = self._create_workspace_access_control_serialize(
|
|
540
541
|
organization_id=organization_id,
|
|
541
|
-
|
|
542
|
+
workspace_id=workspace_id,
|
|
543
|
+
workspace_access_control=workspace_access_control,
|
|
542
544
|
_request_auth=_request_auth,
|
|
543
545
|
_content_type=_content_type,
|
|
544
546
|
_headers=_headers,
|
|
@@ -546,8 +548,8 @@ class WorkspaceApi:
|
|
|
546
548
|
)
|
|
547
549
|
|
|
548
550
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
549
|
-
'201': "
|
|
550
|
-
'
|
|
551
|
+
'201': "WorkspaceAccessControl",
|
|
552
|
+
'404': None,
|
|
551
553
|
}
|
|
552
554
|
response_data = self.api_client.call_api(
|
|
553
555
|
*_param,
|
|
@@ -556,10 +558,11 @@ class WorkspaceApi:
|
|
|
556
558
|
return response_data.response
|
|
557
559
|
|
|
558
560
|
|
|
559
|
-
def
|
|
561
|
+
def _create_workspace_access_control_serialize(
|
|
560
562
|
self,
|
|
561
563
|
organization_id,
|
|
562
|
-
|
|
564
|
+
workspace_id,
|
|
565
|
+
workspace_access_control,
|
|
563
566
|
_request_auth,
|
|
564
567
|
_content_type,
|
|
565
568
|
_headers,
|
|
@@ -575,25 +578,30 @@ class WorkspaceApi:
|
|
|
575
578
|
_query_params: List[Tuple[str, str]] = []
|
|
576
579
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
577
580
|
_form_params: List[Tuple[str, str]] = []
|
|
578
|
-
_files: Dict[
|
|
581
|
+
_files: Dict[
|
|
582
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
583
|
+
] = {}
|
|
579
584
|
_body_params: Optional[bytes] = None
|
|
580
585
|
|
|
581
586
|
# process the path parameters
|
|
582
587
|
if organization_id is not None:
|
|
583
588
|
_path_params['organization_id'] = organization_id
|
|
589
|
+
if workspace_id is not None:
|
|
590
|
+
_path_params['workspace_id'] = workspace_id
|
|
584
591
|
# process the query parameters
|
|
585
592
|
# process the header parameters
|
|
586
593
|
# process the form parameters
|
|
587
594
|
# process the body parameter
|
|
588
|
-
if
|
|
589
|
-
_body_params =
|
|
595
|
+
if workspace_access_control is not None:
|
|
596
|
+
_body_params = workspace_access_control
|
|
590
597
|
|
|
591
598
|
|
|
592
599
|
# set the HTTP header `Accept`
|
|
593
600
|
if 'Accept' not in _header_params:
|
|
594
601
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
595
602
|
[
|
|
596
|
-
'application/json'
|
|
603
|
+
'application/json',
|
|
604
|
+
'application/yaml'
|
|
597
605
|
]
|
|
598
606
|
)
|
|
599
607
|
|
|
@@ -619,7 +627,7 @@ class WorkspaceApi:
|
|
|
619
627
|
|
|
620
628
|
return self.api_client.param_serialize(
|
|
621
629
|
method='POST',
|
|
622
|
-
resource_path='/organizations/{organization_id}/workspaces',
|
|
630
|
+
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/access',
|
|
623
631
|
path_params=_path_params,
|
|
624
632
|
query_params=_query_params,
|
|
625
633
|
header_params=_header_params,
|
|
@@ -636,10 +644,13 @@ class WorkspaceApi:
|
|
|
636
644
|
|
|
637
645
|
|
|
638
646
|
@validate_call
|
|
639
|
-
def
|
|
647
|
+
def create_workspace_file(
|
|
640
648
|
self,
|
|
641
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
642
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
649
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
650
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
651
|
+
file: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="The file to upload")],
|
|
652
|
+
overwrite: Annotated[Optional[StrictBool], Field(description="Whether to overwrite an existing file")] = None,
|
|
653
|
+
destination: Annotated[Optional[StrictStr], Field(description="Destination path. Must end with a '/' if specifying a folder. Note that paths may or may not start with a '/', but they are always treated as relative to the Workspace root location. ")] = None,
|
|
643
654
|
_request_timeout: Union[
|
|
644
655
|
None,
|
|
645
656
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -652,14 +663,20 @@ class WorkspaceApi:
|
|
|
652
663
|
_content_type: Optional[StrictStr] = None,
|
|
653
664
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
654
665
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
655
|
-
) ->
|
|
656
|
-
"""
|
|
666
|
+
) -> WorkspaceFile:
|
|
667
|
+
"""Upload a file for the Workspace
|
|
657
668
|
|
|
658
669
|
|
|
659
|
-
:param organization_id:
|
|
670
|
+
:param organization_id: The Organization identifier (required)
|
|
660
671
|
:type organization_id: str
|
|
661
|
-
:param workspace_id:
|
|
672
|
+
:param workspace_id: The Workspace identifier (required)
|
|
662
673
|
:type workspace_id: str
|
|
674
|
+
:param file: The file to upload (required)
|
|
675
|
+
:type file: bytearray
|
|
676
|
+
:param overwrite: Whether to overwrite an existing file
|
|
677
|
+
:type overwrite: bool
|
|
678
|
+
:param destination: Destination path. Must end with a '/' if specifying a folder. Note that paths may or may not start with a '/', but they are always treated as relative to the Workspace root location.
|
|
679
|
+
:type destination: str
|
|
663
680
|
:param _request_timeout: timeout setting for this request. If one
|
|
664
681
|
number provided, it will be total request
|
|
665
682
|
timeout. It can also be a pair (tuple) of
|
|
@@ -682,9 +699,12 @@ class WorkspaceApi:
|
|
|
682
699
|
:return: Returns the result object.
|
|
683
700
|
""" # noqa: E501
|
|
684
701
|
|
|
685
|
-
_param = self.
|
|
702
|
+
_param = self._create_workspace_file_serialize(
|
|
686
703
|
organization_id=organization_id,
|
|
687
704
|
workspace_id=workspace_id,
|
|
705
|
+
file=file,
|
|
706
|
+
overwrite=overwrite,
|
|
707
|
+
destination=destination,
|
|
688
708
|
_request_auth=_request_auth,
|
|
689
709
|
_content_type=_content_type,
|
|
690
710
|
_headers=_headers,
|
|
@@ -692,8 +712,8 @@ class WorkspaceApi:
|
|
|
692
712
|
)
|
|
693
713
|
|
|
694
714
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
695
|
-
'
|
|
696
|
-
'
|
|
715
|
+
'201': "WorkspaceFile",
|
|
716
|
+
'400': None,
|
|
697
717
|
}
|
|
698
718
|
response_data = self.api_client.call_api(
|
|
699
719
|
*_param,
|
|
@@ -707,10 +727,13 @@ class WorkspaceApi:
|
|
|
707
727
|
|
|
708
728
|
|
|
709
729
|
@validate_call
|
|
710
|
-
def
|
|
730
|
+
def create_workspace_file_with_http_info(
|
|
711
731
|
self,
|
|
712
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
713
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
732
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
733
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
734
|
+
file: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="The file to upload")],
|
|
735
|
+
overwrite: Annotated[Optional[StrictBool], Field(description="Whether to overwrite an existing file")] = None,
|
|
736
|
+
destination: Annotated[Optional[StrictStr], Field(description="Destination path. Must end with a '/' if specifying a folder. Note that paths may or may not start with a '/', but they are always treated as relative to the Workspace root location. ")] = None,
|
|
714
737
|
_request_timeout: Union[
|
|
715
738
|
None,
|
|
716
739
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -723,14 +746,20 @@ class WorkspaceApi:
|
|
|
723
746
|
_content_type: Optional[StrictStr] = None,
|
|
724
747
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
725
748
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
726
|
-
) -> ApiResponse[
|
|
727
|
-
"""
|
|
749
|
+
) -> ApiResponse[WorkspaceFile]:
|
|
750
|
+
"""Upload a file for the Workspace
|
|
728
751
|
|
|
729
752
|
|
|
730
|
-
:param organization_id:
|
|
753
|
+
:param organization_id: The Organization identifier (required)
|
|
731
754
|
:type organization_id: str
|
|
732
|
-
:param workspace_id:
|
|
755
|
+
:param workspace_id: The Workspace identifier (required)
|
|
733
756
|
:type workspace_id: str
|
|
757
|
+
:param file: The file to upload (required)
|
|
758
|
+
:type file: bytearray
|
|
759
|
+
:param overwrite: Whether to overwrite an existing file
|
|
760
|
+
:type overwrite: bool
|
|
761
|
+
:param destination: Destination path. Must end with a '/' if specifying a folder. Note that paths may or may not start with a '/', but they are always treated as relative to the Workspace root location.
|
|
762
|
+
:type destination: str
|
|
734
763
|
:param _request_timeout: timeout setting for this request. If one
|
|
735
764
|
number provided, it will be total request
|
|
736
765
|
timeout. It can also be a pair (tuple) of
|
|
@@ -753,9 +782,12 @@ class WorkspaceApi:
|
|
|
753
782
|
:return: Returns the result object.
|
|
754
783
|
""" # noqa: E501
|
|
755
784
|
|
|
756
|
-
_param = self.
|
|
785
|
+
_param = self._create_workspace_file_serialize(
|
|
757
786
|
organization_id=organization_id,
|
|
758
787
|
workspace_id=workspace_id,
|
|
788
|
+
file=file,
|
|
789
|
+
overwrite=overwrite,
|
|
790
|
+
destination=destination,
|
|
759
791
|
_request_auth=_request_auth,
|
|
760
792
|
_content_type=_content_type,
|
|
761
793
|
_headers=_headers,
|
|
@@ -763,8 +795,8 @@ class WorkspaceApi:
|
|
|
763
795
|
)
|
|
764
796
|
|
|
765
797
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
766
|
-
'
|
|
767
|
-
'
|
|
798
|
+
'201': "WorkspaceFile",
|
|
799
|
+
'400': None,
|
|
768
800
|
}
|
|
769
801
|
response_data = self.api_client.call_api(
|
|
770
802
|
*_param,
|
|
@@ -778,10 +810,13 @@ class WorkspaceApi:
|
|
|
778
810
|
|
|
779
811
|
|
|
780
812
|
@validate_call
|
|
781
|
-
def
|
|
813
|
+
def create_workspace_file_without_preload_content(
|
|
782
814
|
self,
|
|
783
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
784
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
815
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
816
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
817
|
+
file: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="The file to upload")],
|
|
818
|
+
overwrite: Annotated[Optional[StrictBool], Field(description="Whether to overwrite an existing file")] = None,
|
|
819
|
+
destination: Annotated[Optional[StrictStr], Field(description="Destination path. Must end with a '/' if specifying a folder. Note that paths may or may not start with a '/', but they are always treated as relative to the Workspace root location. ")] = None,
|
|
785
820
|
_request_timeout: Union[
|
|
786
821
|
None,
|
|
787
822
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -795,13 +830,19 @@ class WorkspaceApi:
|
|
|
795
830
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
796
831
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
797
832
|
) -> RESTResponseType:
|
|
798
|
-
"""
|
|
833
|
+
"""Upload a file for the Workspace
|
|
799
834
|
|
|
800
835
|
|
|
801
|
-
:param organization_id:
|
|
836
|
+
:param organization_id: The Organization identifier (required)
|
|
802
837
|
:type organization_id: str
|
|
803
|
-
:param workspace_id:
|
|
838
|
+
:param workspace_id: The Workspace identifier (required)
|
|
804
839
|
:type workspace_id: str
|
|
840
|
+
:param file: The file to upload (required)
|
|
841
|
+
:type file: bytearray
|
|
842
|
+
:param overwrite: Whether to overwrite an existing file
|
|
843
|
+
:type overwrite: bool
|
|
844
|
+
:param destination: Destination path. Must end with a '/' if specifying a folder. Note that paths may or may not start with a '/', but they are always treated as relative to the Workspace root location.
|
|
845
|
+
:type destination: str
|
|
805
846
|
:param _request_timeout: timeout setting for this request. If one
|
|
806
847
|
number provided, it will be total request
|
|
807
848
|
timeout. It can also be a pair (tuple) of
|
|
@@ -824,9 +865,12 @@ class WorkspaceApi:
|
|
|
824
865
|
:return: Returns the result object.
|
|
825
866
|
""" # noqa: E501
|
|
826
867
|
|
|
827
|
-
_param = self.
|
|
868
|
+
_param = self._create_workspace_file_serialize(
|
|
828
869
|
organization_id=organization_id,
|
|
829
870
|
workspace_id=workspace_id,
|
|
871
|
+
file=file,
|
|
872
|
+
overwrite=overwrite,
|
|
873
|
+
destination=destination,
|
|
830
874
|
_request_auth=_request_auth,
|
|
831
875
|
_content_type=_content_type,
|
|
832
876
|
_headers=_headers,
|
|
@@ -834,8 +878,8 @@ class WorkspaceApi:
|
|
|
834
878
|
)
|
|
835
879
|
|
|
836
880
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
837
|
-
'
|
|
838
|
-
'
|
|
881
|
+
'201': "WorkspaceFile",
|
|
882
|
+
'400': None,
|
|
839
883
|
}
|
|
840
884
|
response_data = self.api_client.call_api(
|
|
841
885
|
*_param,
|
|
@@ -844,10 +888,13 @@ class WorkspaceApi:
|
|
|
844
888
|
return response_data.response
|
|
845
889
|
|
|
846
890
|
|
|
847
|
-
def
|
|
891
|
+
def _create_workspace_file_serialize(
|
|
848
892
|
self,
|
|
849
893
|
organization_id,
|
|
850
894
|
workspace_id,
|
|
895
|
+
file,
|
|
896
|
+
overwrite,
|
|
897
|
+
destination,
|
|
851
898
|
_request_auth,
|
|
852
899
|
_content_type,
|
|
853
900
|
_headers,
|
|
@@ -863,7 +910,9 @@ class WorkspaceApi:
|
|
|
863
910
|
_query_params: List[Tuple[str, str]] = []
|
|
864
911
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
865
912
|
_form_params: List[Tuple[str, str]] = []
|
|
866
|
-
_files: Dict[
|
|
913
|
+
_files: Dict[
|
|
914
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
915
|
+
] = {}
|
|
867
916
|
_body_params: Optional[bytes] = None
|
|
868
917
|
|
|
869
918
|
# process the path parameters
|
|
@@ -874,10 +923,37 @@ class WorkspaceApi:
|
|
|
874
923
|
# process the query parameters
|
|
875
924
|
# process the header parameters
|
|
876
925
|
# process the form parameters
|
|
926
|
+
if overwrite is not None:
|
|
927
|
+
_form_params.append(('overwrite', overwrite))
|
|
928
|
+
if destination is not None:
|
|
929
|
+
_form_params.append(('destination', destination))
|
|
930
|
+
if file is not None:
|
|
931
|
+
_files['file'] = file
|
|
877
932
|
# process the body parameter
|
|
878
933
|
|
|
879
934
|
|
|
935
|
+
# set the HTTP header `Accept`
|
|
936
|
+
if 'Accept' not in _header_params:
|
|
937
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
938
|
+
[
|
|
939
|
+
'application/json',
|
|
940
|
+
'application/yaml'
|
|
941
|
+
]
|
|
942
|
+
)
|
|
880
943
|
|
|
944
|
+
# set the HTTP header `Content-Type`
|
|
945
|
+
if _content_type:
|
|
946
|
+
_header_params['Content-Type'] = _content_type
|
|
947
|
+
else:
|
|
948
|
+
_default_content_type = (
|
|
949
|
+
self.api_client.select_header_content_type(
|
|
950
|
+
[
|
|
951
|
+
'multipart/form-data'
|
|
952
|
+
]
|
|
953
|
+
)
|
|
954
|
+
)
|
|
955
|
+
if _default_content_type is not None:
|
|
956
|
+
_header_params['Content-Type'] = _default_content_type
|
|
881
957
|
|
|
882
958
|
# authentication setting
|
|
883
959
|
_auth_settings: List[str] = [
|
|
@@ -885,7 +961,7 @@ class WorkspaceApi:
|
|
|
885
961
|
]
|
|
886
962
|
|
|
887
963
|
return self.api_client.param_serialize(
|
|
888
|
-
method='
|
|
964
|
+
method='POST',
|
|
889
965
|
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/files',
|
|
890
966
|
path_params=_path_params,
|
|
891
967
|
query_params=_query_params,
|
|
@@ -905,8 +981,8 @@ class WorkspaceApi:
|
|
|
905
981
|
@validate_call
|
|
906
982
|
def delete_workspace(
|
|
907
983
|
self,
|
|
908
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
909
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
984
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
985
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
910
986
|
_request_timeout: Union[
|
|
911
987
|
None,
|
|
912
988
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -923,9 +999,9 @@ class WorkspaceApi:
|
|
|
923
999
|
"""Delete a workspace
|
|
924
1000
|
|
|
925
1001
|
|
|
926
|
-
:param organization_id:
|
|
1002
|
+
:param organization_id: The Organization identifier (required)
|
|
927
1003
|
:type organization_id: str
|
|
928
|
-
:param workspace_id:
|
|
1004
|
+
:param workspace_id: The Workspace identifier (required)
|
|
929
1005
|
:type workspace_id: str
|
|
930
1006
|
:param _request_timeout: timeout setting for this request. If one
|
|
931
1007
|
number provided, it will be total request
|
|
@@ -977,8 +1053,8 @@ class WorkspaceApi:
|
|
|
977
1053
|
@validate_call
|
|
978
1054
|
def delete_workspace_with_http_info(
|
|
979
1055
|
self,
|
|
980
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
981
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
1056
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1057
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
982
1058
|
_request_timeout: Union[
|
|
983
1059
|
None,
|
|
984
1060
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -995,9 +1071,9 @@ class WorkspaceApi:
|
|
|
995
1071
|
"""Delete a workspace
|
|
996
1072
|
|
|
997
1073
|
|
|
998
|
-
:param organization_id:
|
|
1074
|
+
:param organization_id: The Organization identifier (required)
|
|
999
1075
|
:type organization_id: str
|
|
1000
|
-
:param workspace_id:
|
|
1076
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1001
1077
|
:type workspace_id: str
|
|
1002
1078
|
:param _request_timeout: timeout setting for this request. If one
|
|
1003
1079
|
number provided, it will be total request
|
|
@@ -1049,8 +1125,8 @@ class WorkspaceApi:
|
|
|
1049
1125
|
@validate_call
|
|
1050
1126
|
def delete_workspace_without_preload_content(
|
|
1051
1127
|
self,
|
|
1052
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1053
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
1128
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1129
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
1054
1130
|
_request_timeout: Union[
|
|
1055
1131
|
None,
|
|
1056
1132
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1067,9 +1143,9 @@ class WorkspaceApi:
|
|
|
1067
1143
|
"""Delete a workspace
|
|
1068
1144
|
|
|
1069
1145
|
|
|
1070
|
-
:param organization_id:
|
|
1146
|
+
:param organization_id: The Organization identifier (required)
|
|
1071
1147
|
:type organization_id: str
|
|
1072
|
-
:param workspace_id:
|
|
1148
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1073
1149
|
:type workspace_id: str
|
|
1074
1150
|
:param _request_timeout: timeout setting for this request. If one
|
|
1075
1151
|
number provided, it will be total request
|
|
@@ -1133,7 +1209,9 @@ class WorkspaceApi:
|
|
|
1133
1209
|
_query_params: List[Tuple[str, str]] = []
|
|
1134
1210
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1135
1211
|
_form_params: List[Tuple[str, str]] = []
|
|
1136
|
-
_files: Dict[
|
|
1212
|
+
_files: Dict[
|
|
1213
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1214
|
+
] = {}
|
|
1137
1215
|
_body_params: Optional[bytes] = None
|
|
1138
1216
|
|
|
1139
1217
|
# process the path parameters
|
|
@@ -1173,11 +1251,11 @@ class WorkspaceApi:
|
|
|
1173
1251
|
|
|
1174
1252
|
|
|
1175
1253
|
@validate_call
|
|
1176
|
-
def
|
|
1254
|
+
def delete_workspace_access_control(
|
|
1177
1255
|
self,
|
|
1178
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1179
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
1180
|
-
|
|
1256
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1257
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
1258
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
1181
1259
|
_request_timeout: Union[
|
|
1182
1260
|
None,
|
|
1183
1261
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1191,15 +1269,15 @@ class WorkspaceApi:
|
|
|
1191
1269
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1192
1270
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1193
1271
|
) -> None:
|
|
1194
|
-
"""
|
|
1272
|
+
"""Remove the specified access from the given Workspace
|
|
1195
1273
|
|
|
1196
1274
|
|
|
1197
|
-
:param organization_id:
|
|
1275
|
+
:param organization_id: The Organization identifier (required)
|
|
1198
1276
|
:type organization_id: str
|
|
1199
|
-
:param workspace_id:
|
|
1277
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1200
1278
|
:type workspace_id: str
|
|
1201
|
-
:param
|
|
1202
|
-
:type
|
|
1279
|
+
:param identity_id: The User identifier (required)
|
|
1280
|
+
:type identity_id: str
|
|
1203
1281
|
:param _request_timeout: timeout setting for this request. If one
|
|
1204
1282
|
number provided, it will be total request
|
|
1205
1283
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1222,10 +1300,10 @@ class WorkspaceApi:
|
|
|
1222
1300
|
:return: Returns the result object.
|
|
1223
1301
|
""" # noqa: E501
|
|
1224
1302
|
|
|
1225
|
-
_param = self.
|
|
1303
|
+
_param = self._delete_workspace_access_control_serialize(
|
|
1226
1304
|
organization_id=organization_id,
|
|
1227
1305
|
workspace_id=workspace_id,
|
|
1228
|
-
|
|
1306
|
+
identity_id=identity_id,
|
|
1229
1307
|
_request_auth=_request_auth,
|
|
1230
1308
|
_content_type=_content_type,
|
|
1231
1309
|
_headers=_headers,
|
|
@@ -1248,11 +1326,11 @@ class WorkspaceApi:
|
|
|
1248
1326
|
|
|
1249
1327
|
|
|
1250
1328
|
@validate_call
|
|
1251
|
-
def
|
|
1329
|
+
def delete_workspace_access_control_with_http_info(
|
|
1252
1330
|
self,
|
|
1253
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1254
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
1255
|
-
|
|
1331
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1332
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
1333
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
1256
1334
|
_request_timeout: Union[
|
|
1257
1335
|
None,
|
|
1258
1336
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1266,15 +1344,15 @@ class WorkspaceApi:
|
|
|
1266
1344
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1267
1345
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1268
1346
|
) -> ApiResponse[None]:
|
|
1269
|
-
"""
|
|
1347
|
+
"""Remove the specified access from the given Workspace
|
|
1270
1348
|
|
|
1271
1349
|
|
|
1272
|
-
:param organization_id:
|
|
1350
|
+
:param organization_id: The Organization identifier (required)
|
|
1273
1351
|
:type organization_id: str
|
|
1274
|
-
:param workspace_id:
|
|
1352
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1275
1353
|
:type workspace_id: str
|
|
1276
|
-
:param
|
|
1277
|
-
:type
|
|
1354
|
+
:param identity_id: The User identifier (required)
|
|
1355
|
+
:type identity_id: str
|
|
1278
1356
|
:param _request_timeout: timeout setting for this request. If one
|
|
1279
1357
|
number provided, it will be total request
|
|
1280
1358
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1297,10 +1375,10 @@ class WorkspaceApi:
|
|
|
1297
1375
|
:return: Returns the result object.
|
|
1298
1376
|
""" # noqa: E501
|
|
1299
1377
|
|
|
1300
|
-
_param = self.
|
|
1378
|
+
_param = self._delete_workspace_access_control_serialize(
|
|
1301
1379
|
organization_id=organization_id,
|
|
1302
1380
|
workspace_id=workspace_id,
|
|
1303
|
-
|
|
1381
|
+
identity_id=identity_id,
|
|
1304
1382
|
_request_auth=_request_auth,
|
|
1305
1383
|
_content_type=_content_type,
|
|
1306
1384
|
_headers=_headers,
|
|
@@ -1323,11 +1401,11 @@ class WorkspaceApi:
|
|
|
1323
1401
|
|
|
1324
1402
|
|
|
1325
1403
|
@validate_call
|
|
1326
|
-
def
|
|
1404
|
+
def delete_workspace_access_control_without_preload_content(
|
|
1327
1405
|
self,
|
|
1328
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1329
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
1330
|
-
|
|
1406
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1407
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
1408
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
1331
1409
|
_request_timeout: Union[
|
|
1332
1410
|
None,
|
|
1333
1411
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1341,15 +1419,15 @@ class WorkspaceApi:
|
|
|
1341
1419
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1342
1420
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1343
1421
|
) -> RESTResponseType:
|
|
1344
|
-
"""
|
|
1422
|
+
"""Remove the specified access from the given Workspace
|
|
1345
1423
|
|
|
1346
1424
|
|
|
1347
|
-
:param organization_id:
|
|
1425
|
+
:param organization_id: The Organization identifier (required)
|
|
1348
1426
|
:type organization_id: str
|
|
1349
|
-
:param workspace_id:
|
|
1427
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1350
1428
|
:type workspace_id: str
|
|
1351
|
-
:param
|
|
1352
|
-
:type
|
|
1429
|
+
:param identity_id: The User identifier (required)
|
|
1430
|
+
:type identity_id: str
|
|
1353
1431
|
:param _request_timeout: timeout setting for this request. If one
|
|
1354
1432
|
number provided, it will be total request
|
|
1355
1433
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1372,10 +1450,10 @@ class WorkspaceApi:
|
|
|
1372
1450
|
:return: Returns the result object.
|
|
1373
1451
|
""" # noqa: E501
|
|
1374
1452
|
|
|
1375
|
-
_param = self.
|
|
1453
|
+
_param = self._delete_workspace_access_control_serialize(
|
|
1376
1454
|
organization_id=organization_id,
|
|
1377
1455
|
workspace_id=workspace_id,
|
|
1378
|
-
|
|
1456
|
+
identity_id=identity_id,
|
|
1379
1457
|
_request_auth=_request_auth,
|
|
1380
1458
|
_content_type=_content_type,
|
|
1381
1459
|
_headers=_headers,
|
|
@@ -1393,11 +1471,11 @@ class WorkspaceApi:
|
|
|
1393
1471
|
return response_data.response
|
|
1394
1472
|
|
|
1395
1473
|
|
|
1396
|
-
def
|
|
1474
|
+
def _delete_workspace_access_control_serialize(
|
|
1397
1475
|
self,
|
|
1398
1476
|
organization_id,
|
|
1399
1477
|
workspace_id,
|
|
1400
|
-
|
|
1478
|
+
identity_id,
|
|
1401
1479
|
_request_auth,
|
|
1402
1480
|
_content_type,
|
|
1403
1481
|
_headers,
|
|
@@ -1413,7 +1491,9 @@ class WorkspaceApi:
|
|
|
1413
1491
|
_query_params: List[Tuple[str, str]] = []
|
|
1414
1492
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1415
1493
|
_form_params: List[Tuple[str, str]] = []
|
|
1416
|
-
_files: Dict[
|
|
1494
|
+
_files: Dict[
|
|
1495
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1496
|
+
] = {}
|
|
1417
1497
|
_body_params: Optional[bytes] = None
|
|
1418
1498
|
|
|
1419
1499
|
# process the path parameters
|
|
@@ -1421,11 +1501,9 @@ class WorkspaceApi:
|
|
|
1421
1501
|
_path_params['organization_id'] = organization_id
|
|
1422
1502
|
if workspace_id is not None:
|
|
1423
1503
|
_path_params['workspace_id'] = workspace_id
|
|
1504
|
+
if identity_id is not None:
|
|
1505
|
+
_path_params['identity_id'] = identity_id
|
|
1424
1506
|
# process the query parameters
|
|
1425
|
-
if file_name is not None:
|
|
1426
|
-
|
|
1427
|
-
_query_params.append(('file_name', file_name))
|
|
1428
|
-
|
|
1429
1507
|
# process the header parameters
|
|
1430
1508
|
# process the form parameters
|
|
1431
1509
|
# process the body parameter
|
|
@@ -1440,7 +1518,7 @@ class WorkspaceApi:
|
|
|
1440
1518
|
|
|
1441
1519
|
return self.api_client.param_serialize(
|
|
1442
1520
|
method='DELETE',
|
|
1443
|
-
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/
|
|
1521
|
+
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}',
|
|
1444
1522
|
path_params=_path_params,
|
|
1445
1523
|
query_params=_query_params,
|
|
1446
1524
|
header_params=_header_params,
|
|
@@ -1457,11 +1535,11 @@ class WorkspaceApi:
|
|
|
1457
1535
|
|
|
1458
1536
|
|
|
1459
1537
|
@validate_call
|
|
1460
|
-
def
|
|
1538
|
+
def delete_workspace_file(
|
|
1461
1539
|
self,
|
|
1462
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1463
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
1464
|
-
file_name: Annotated[StrictStr, Field(description="
|
|
1540
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1541
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
1542
|
+
file_name: Annotated[StrictStr, Field(description="The file name")],
|
|
1465
1543
|
_request_timeout: Union[
|
|
1466
1544
|
None,
|
|
1467
1545
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1474,15 +1552,15 @@ class WorkspaceApi:
|
|
|
1474
1552
|
_content_type: Optional[StrictStr] = None,
|
|
1475
1553
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1476
1554
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1477
|
-
) ->
|
|
1478
|
-
"""
|
|
1555
|
+
) -> None:
|
|
1556
|
+
"""Delete a workspace file
|
|
1479
1557
|
|
|
1480
1558
|
|
|
1481
|
-
:param organization_id:
|
|
1559
|
+
:param organization_id: The Organization identifier (required)
|
|
1482
1560
|
:type organization_id: str
|
|
1483
|
-
:param workspace_id:
|
|
1561
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1484
1562
|
:type workspace_id: str
|
|
1485
|
-
:param file_name:
|
|
1563
|
+
:param file_name: The file name (required)
|
|
1486
1564
|
:type file_name: str
|
|
1487
1565
|
:param _request_timeout: timeout setting for this request. If one
|
|
1488
1566
|
number provided, it will be total request
|
|
@@ -1506,7 +1584,7 @@ class WorkspaceApi:
|
|
|
1506
1584
|
:return: Returns the result object.
|
|
1507
1585
|
""" # noqa: E501
|
|
1508
1586
|
|
|
1509
|
-
_param = self.
|
|
1587
|
+
_param = self._delete_workspace_file_serialize(
|
|
1510
1588
|
organization_id=organization_id,
|
|
1511
1589
|
workspace_id=workspace_id,
|
|
1512
1590
|
file_name=file_name,
|
|
@@ -1517,7 +1595,7 @@ class WorkspaceApi:
|
|
|
1517
1595
|
)
|
|
1518
1596
|
|
|
1519
1597
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1520
|
-
'
|
|
1598
|
+
'204': None,
|
|
1521
1599
|
'404': None,
|
|
1522
1600
|
}
|
|
1523
1601
|
response_data = self.api_client.call_api(
|
|
@@ -1532,11 +1610,11 @@ class WorkspaceApi:
|
|
|
1532
1610
|
|
|
1533
1611
|
|
|
1534
1612
|
@validate_call
|
|
1535
|
-
def
|
|
1613
|
+
def delete_workspace_file_with_http_info(
|
|
1536
1614
|
self,
|
|
1537
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1538
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
1539
|
-
file_name: Annotated[StrictStr, Field(description="
|
|
1615
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1616
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
1617
|
+
file_name: Annotated[StrictStr, Field(description="The file name")],
|
|
1540
1618
|
_request_timeout: Union[
|
|
1541
1619
|
None,
|
|
1542
1620
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1549,15 +1627,15 @@ class WorkspaceApi:
|
|
|
1549
1627
|
_content_type: Optional[StrictStr] = None,
|
|
1550
1628
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1551
1629
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1552
|
-
) -> ApiResponse[
|
|
1553
|
-
"""
|
|
1630
|
+
) -> ApiResponse[None]:
|
|
1631
|
+
"""Delete a workspace file
|
|
1554
1632
|
|
|
1555
1633
|
|
|
1556
|
-
:param organization_id:
|
|
1634
|
+
:param organization_id: The Organization identifier (required)
|
|
1557
1635
|
:type organization_id: str
|
|
1558
|
-
:param workspace_id:
|
|
1636
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1559
1637
|
:type workspace_id: str
|
|
1560
|
-
:param file_name:
|
|
1638
|
+
:param file_name: The file name (required)
|
|
1561
1639
|
:type file_name: str
|
|
1562
1640
|
:param _request_timeout: timeout setting for this request. If one
|
|
1563
1641
|
number provided, it will be total request
|
|
@@ -1581,7 +1659,7 @@ class WorkspaceApi:
|
|
|
1581
1659
|
:return: Returns the result object.
|
|
1582
1660
|
""" # noqa: E501
|
|
1583
1661
|
|
|
1584
|
-
_param = self.
|
|
1662
|
+
_param = self._delete_workspace_file_serialize(
|
|
1585
1663
|
organization_id=organization_id,
|
|
1586
1664
|
workspace_id=workspace_id,
|
|
1587
1665
|
file_name=file_name,
|
|
@@ -1592,7 +1670,7 @@ class WorkspaceApi:
|
|
|
1592
1670
|
)
|
|
1593
1671
|
|
|
1594
1672
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1595
|
-
'
|
|
1673
|
+
'204': None,
|
|
1596
1674
|
'404': None,
|
|
1597
1675
|
}
|
|
1598
1676
|
response_data = self.api_client.call_api(
|
|
@@ -1607,11 +1685,11 @@ class WorkspaceApi:
|
|
|
1607
1685
|
|
|
1608
1686
|
|
|
1609
1687
|
@validate_call
|
|
1610
|
-
def
|
|
1688
|
+
def delete_workspace_file_without_preload_content(
|
|
1611
1689
|
self,
|
|
1612
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1613
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
1614
|
-
file_name: Annotated[StrictStr, Field(description="
|
|
1690
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1691
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
1692
|
+
file_name: Annotated[StrictStr, Field(description="The file name")],
|
|
1615
1693
|
_request_timeout: Union[
|
|
1616
1694
|
None,
|
|
1617
1695
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1625,14 +1703,14 @@ class WorkspaceApi:
|
|
|
1625
1703
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1626
1704
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1627
1705
|
) -> RESTResponseType:
|
|
1628
|
-
"""
|
|
1706
|
+
"""Delete a workspace file
|
|
1629
1707
|
|
|
1630
1708
|
|
|
1631
|
-
:param organization_id:
|
|
1709
|
+
:param organization_id: The Organization identifier (required)
|
|
1632
1710
|
:type organization_id: str
|
|
1633
|
-
:param workspace_id:
|
|
1711
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1634
1712
|
:type workspace_id: str
|
|
1635
|
-
:param file_name:
|
|
1713
|
+
:param file_name: The file name (required)
|
|
1636
1714
|
:type file_name: str
|
|
1637
1715
|
:param _request_timeout: timeout setting for this request. If one
|
|
1638
1716
|
number provided, it will be total request
|
|
@@ -1656,7 +1734,7 @@ class WorkspaceApi:
|
|
|
1656
1734
|
:return: Returns the result object.
|
|
1657
1735
|
""" # noqa: E501
|
|
1658
1736
|
|
|
1659
|
-
_param = self.
|
|
1737
|
+
_param = self._delete_workspace_file_serialize(
|
|
1660
1738
|
organization_id=organization_id,
|
|
1661
1739
|
workspace_id=workspace_id,
|
|
1662
1740
|
file_name=file_name,
|
|
@@ -1667,7 +1745,7 @@ class WorkspaceApi:
|
|
|
1667
1745
|
)
|
|
1668
1746
|
|
|
1669
1747
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1670
|
-
'
|
|
1748
|
+
'204': None,
|
|
1671
1749
|
'404': None,
|
|
1672
1750
|
}
|
|
1673
1751
|
response_data = self.api_client.call_api(
|
|
@@ -1677,7 +1755,7 @@ class WorkspaceApi:
|
|
|
1677
1755
|
return response_data.response
|
|
1678
1756
|
|
|
1679
1757
|
|
|
1680
|
-
def
|
|
1758
|
+
def _delete_workspace_file_serialize(
|
|
1681
1759
|
self,
|
|
1682
1760
|
organization_id,
|
|
1683
1761
|
workspace_id,
|
|
@@ -1697,7 +1775,9 @@ class WorkspaceApi:
|
|
|
1697
1775
|
_query_params: List[Tuple[str, str]] = []
|
|
1698
1776
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1699
1777
|
_form_params: List[Tuple[str, str]] = []
|
|
1700
|
-
_files: Dict[
|
|
1778
|
+
_files: Dict[
|
|
1779
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1780
|
+
] = {}
|
|
1701
1781
|
_body_params: Optional[bytes] = None
|
|
1702
1782
|
|
|
1703
1783
|
# process the path parameters
|
|
@@ -1715,13 +1795,6 @@ class WorkspaceApi:
|
|
|
1715
1795
|
# process the body parameter
|
|
1716
1796
|
|
|
1717
1797
|
|
|
1718
|
-
# set the HTTP header `Accept`
|
|
1719
|
-
if 'Accept' not in _header_params:
|
|
1720
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1721
|
-
[
|
|
1722
|
-
'application/octet-stream'
|
|
1723
|
-
]
|
|
1724
|
-
)
|
|
1725
1798
|
|
|
1726
1799
|
|
|
1727
1800
|
# authentication setting
|
|
@@ -1730,8 +1803,8 @@ class WorkspaceApi:
|
|
|
1730
1803
|
]
|
|
1731
1804
|
|
|
1732
1805
|
return self.api_client.param_serialize(
|
|
1733
|
-
method='
|
|
1734
|
-
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/files/
|
|
1806
|
+
method='DELETE',
|
|
1807
|
+
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/files/delete',
|
|
1735
1808
|
path_params=_path_params,
|
|
1736
1809
|
query_params=_query_params,
|
|
1737
1810
|
header_params=_header_params,
|
|
@@ -1748,10 +1821,10 @@ class WorkspaceApi:
|
|
|
1748
1821
|
|
|
1749
1822
|
|
|
1750
1823
|
@validate_call
|
|
1751
|
-
def
|
|
1824
|
+
def delete_workspace_files(
|
|
1752
1825
|
self,
|
|
1753
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1754
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
1826
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1827
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
1755
1828
|
_request_timeout: Union[
|
|
1756
1829
|
None,
|
|
1757
1830
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1764,13 +1837,13 @@ class WorkspaceApi:
|
|
|
1764
1837
|
_content_type: Optional[StrictStr] = None,
|
|
1765
1838
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1766
1839
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1767
|
-
) ->
|
|
1768
|
-
"""
|
|
1840
|
+
) -> None:
|
|
1841
|
+
"""Delete all Workspace files
|
|
1769
1842
|
|
|
1770
1843
|
|
|
1771
|
-
:param organization_id:
|
|
1844
|
+
:param organization_id: The Organization identifier (required)
|
|
1772
1845
|
:type organization_id: str
|
|
1773
|
-
:param workspace_id:
|
|
1846
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1774
1847
|
:type workspace_id: str
|
|
1775
1848
|
:param _request_timeout: timeout setting for this request. If one
|
|
1776
1849
|
number provided, it will be total request
|
|
@@ -1794,7 +1867,7 @@ class WorkspaceApi:
|
|
|
1794
1867
|
:return: Returns the result object.
|
|
1795
1868
|
""" # noqa: E501
|
|
1796
1869
|
|
|
1797
|
-
_param = self.
|
|
1870
|
+
_param = self._delete_workspace_files_serialize(
|
|
1798
1871
|
organization_id=organization_id,
|
|
1799
1872
|
workspace_id=workspace_id,
|
|
1800
1873
|
_request_auth=_request_auth,
|
|
@@ -1804,7 +1877,7 @@ class WorkspaceApi:
|
|
|
1804
1877
|
)
|
|
1805
1878
|
|
|
1806
1879
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1807
|
-
'
|
|
1880
|
+
'204': None,
|
|
1808
1881
|
'404': None,
|
|
1809
1882
|
}
|
|
1810
1883
|
response_data = self.api_client.call_api(
|
|
@@ -1819,10 +1892,10 @@ class WorkspaceApi:
|
|
|
1819
1892
|
|
|
1820
1893
|
|
|
1821
1894
|
@validate_call
|
|
1822
|
-
def
|
|
1895
|
+
def delete_workspace_files_with_http_info(
|
|
1823
1896
|
self,
|
|
1824
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1825
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
1897
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1898
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
1826
1899
|
_request_timeout: Union[
|
|
1827
1900
|
None,
|
|
1828
1901
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1835,13 +1908,13 @@ class WorkspaceApi:
|
|
|
1835
1908
|
_content_type: Optional[StrictStr] = None,
|
|
1836
1909
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1837
1910
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1838
|
-
) -> ApiResponse[
|
|
1839
|
-
"""
|
|
1911
|
+
) -> ApiResponse[None]:
|
|
1912
|
+
"""Delete all Workspace files
|
|
1840
1913
|
|
|
1841
1914
|
|
|
1842
|
-
:param organization_id:
|
|
1915
|
+
:param organization_id: The Organization identifier (required)
|
|
1843
1916
|
:type organization_id: str
|
|
1844
|
-
:param workspace_id:
|
|
1917
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1845
1918
|
:type workspace_id: str
|
|
1846
1919
|
:param _request_timeout: timeout setting for this request. If one
|
|
1847
1920
|
number provided, it will be total request
|
|
@@ -1865,7 +1938,7 @@ class WorkspaceApi:
|
|
|
1865
1938
|
:return: Returns the result object.
|
|
1866
1939
|
""" # noqa: E501
|
|
1867
1940
|
|
|
1868
|
-
_param = self.
|
|
1941
|
+
_param = self._delete_workspace_files_serialize(
|
|
1869
1942
|
organization_id=organization_id,
|
|
1870
1943
|
workspace_id=workspace_id,
|
|
1871
1944
|
_request_auth=_request_auth,
|
|
@@ -1875,7 +1948,7 @@ class WorkspaceApi:
|
|
|
1875
1948
|
)
|
|
1876
1949
|
|
|
1877
1950
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1878
|
-
'
|
|
1951
|
+
'204': None,
|
|
1879
1952
|
'404': None,
|
|
1880
1953
|
}
|
|
1881
1954
|
response_data = self.api_client.call_api(
|
|
@@ -1890,10 +1963,10 @@ class WorkspaceApi:
|
|
|
1890
1963
|
|
|
1891
1964
|
|
|
1892
1965
|
@validate_call
|
|
1893
|
-
def
|
|
1966
|
+
def delete_workspace_files_without_preload_content(
|
|
1894
1967
|
self,
|
|
1895
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
1896
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
1968
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
1969
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
1897
1970
|
_request_timeout: Union[
|
|
1898
1971
|
None,
|
|
1899
1972
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1907,12 +1980,12 @@ class WorkspaceApi:
|
|
|
1907
1980
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1908
1981
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1909
1982
|
) -> RESTResponseType:
|
|
1910
|
-
"""
|
|
1983
|
+
"""Delete all Workspace files
|
|
1911
1984
|
|
|
1912
1985
|
|
|
1913
|
-
:param organization_id:
|
|
1986
|
+
:param organization_id: The Organization identifier (required)
|
|
1914
1987
|
:type organization_id: str
|
|
1915
|
-
:param workspace_id:
|
|
1988
|
+
:param workspace_id: The Workspace identifier (required)
|
|
1916
1989
|
:type workspace_id: str
|
|
1917
1990
|
:param _request_timeout: timeout setting for this request. If one
|
|
1918
1991
|
number provided, it will be total request
|
|
@@ -1936,7 +2009,7 @@ class WorkspaceApi:
|
|
|
1936
2009
|
:return: Returns the result object.
|
|
1937
2010
|
""" # noqa: E501
|
|
1938
2011
|
|
|
1939
|
-
_param = self.
|
|
2012
|
+
_param = self._delete_workspace_files_serialize(
|
|
1940
2013
|
organization_id=organization_id,
|
|
1941
2014
|
workspace_id=workspace_id,
|
|
1942
2015
|
_request_auth=_request_auth,
|
|
@@ -1946,7 +2019,7 @@ class WorkspaceApi:
|
|
|
1946
2019
|
)
|
|
1947
2020
|
|
|
1948
2021
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1949
|
-
'
|
|
2022
|
+
'204': None,
|
|
1950
2023
|
'404': None,
|
|
1951
2024
|
}
|
|
1952
2025
|
response_data = self.api_client.call_api(
|
|
@@ -1956,7 +2029,7 @@ class WorkspaceApi:
|
|
|
1956
2029
|
return response_data.response
|
|
1957
2030
|
|
|
1958
2031
|
|
|
1959
|
-
def
|
|
2032
|
+
def _delete_workspace_files_serialize(
|
|
1960
2033
|
self,
|
|
1961
2034
|
organization_id,
|
|
1962
2035
|
workspace_id,
|
|
@@ -1975,7 +2048,9 @@ class WorkspaceApi:
|
|
|
1975
2048
|
_query_params: List[Tuple[str, str]] = []
|
|
1976
2049
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1977
2050
|
_form_params: List[Tuple[str, str]] = []
|
|
1978
|
-
_files: Dict[
|
|
2051
|
+
_files: Dict[
|
|
2052
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2053
|
+
] = {}
|
|
1979
2054
|
_body_params: Optional[bytes] = None
|
|
1980
2055
|
|
|
1981
2056
|
# process the path parameters
|
|
@@ -1989,577 +2064,6 @@ class WorkspaceApi:
|
|
|
1989
2064
|
# process the body parameter
|
|
1990
2065
|
|
|
1991
2066
|
|
|
1992
|
-
# set the HTTP header `Accept`
|
|
1993
|
-
if 'Accept' not in _header_params:
|
|
1994
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1995
|
-
[
|
|
1996
|
-
'application/json'
|
|
1997
|
-
]
|
|
1998
|
-
)
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
# authentication setting
|
|
2002
|
-
_auth_settings: List[str] = [
|
|
2003
|
-
'oAuth2AuthCode'
|
|
2004
|
-
]
|
|
2005
|
-
|
|
2006
|
-
return self.api_client.param_serialize(
|
|
2007
|
-
method='GET',
|
|
2008
|
-
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/files',
|
|
2009
|
-
path_params=_path_params,
|
|
2010
|
-
query_params=_query_params,
|
|
2011
|
-
header_params=_header_params,
|
|
2012
|
-
body=_body_params,
|
|
2013
|
-
post_params=_form_params,
|
|
2014
|
-
files=_files,
|
|
2015
|
-
auth_settings=_auth_settings,
|
|
2016
|
-
collection_formats=_collection_formats,
|
|
2017
|
-
_host=_host,
|
|
2018
|
-
_request_auth=_request_auth
|
|
2019
|
-
)
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
@validate_call
|
|
2025
|
-
def find_all_workspaces(
|
|
2026
|
-
self,
|
|
2027
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2028
|
-
page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
|
|
2029
|
-
size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
|
|
2030
|
-
_request_timeout: Union[
|
|
2031
|
-
None,
|
|
2032
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2033
|
-
Tuple[
|
|
2034
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2035
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2036
|
-
]
|
|
2037
|
-
] = None,
|
|
2038
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2039
|
-
_content_type: Optional[StrictStr] = None,
|
|
2040
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2041
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2042
|
-
) -> List[Workspace]:
|
|
2043
|
-
"""List all Workspaces
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
:param organization_id: the Organization identifier (required)
|
|
2047
|
-
:type organization_id: str
|
|
2048
|
-
:param page: page number to query (first page is at index 0)
|
|
2049
|
-
:type page: int
|
|
2050
|
-
:param size: amount of result by page
|
|
2051
|
-
:type size: int
|
|
2052
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2053
|
-
number provided, it will be total request
|
|
2054
|
-
timeout. It can also be a pair (tuple) of
|
|
2055
|
-
(connection, read) timeouts.
|
|
2056
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2057
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2058
|
-
request; this effectively ignores the
|
|
2059
|
-
authentication in the spec for a single request.
|
|
2060
|
-
:type _request_auth: dict, optional
|
|
2061
|
-
:param _content_type: force content-type for the request.
|
|
2062
|
-
:type _content_type: str, Optional
|
|
2063
|
-
:param _headers: set to override the headers for a single
|
|
2064
|
-
request; this effectively ignores the headers
|
|
2065
|
-
in the spec for a single request.
|
|
2066
|
-
:type _headers: dict, optional
|
|
2067
|
-
:param _host_index: set to override the host_index for a single
|
|
2068
|
-
request; this effectively ignores the host_index
|
|
2069
|
-
in the spec for a single request.
|
|
2070
|
-
:type _host_index: int, optional
|
|
2071
|
-
:return: Returns the result object.
|
|
2072
|
-
""" # noqa: E501
|
|
2073
|
-
|
|
2074
|
-
_param = self._find_all_workspaces_serialize(
|
|
2075
|
-
organization_id=organization_id,
|
|
2076
|
-
page=page,
|
|
2077
|
-
size=size,
|
|
2078
|
-
_request_auth=_request_auth,
|
|
2079
|
-
_content_type=_content_type,
|
|
2080
|
-
_headers=_headers,
|
|
2081
|
-
_host_index=_host_index
|
|
2082
|
-
)
|
|
2083
|
-
|
|
2084
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2085
|
-
'200': "List[Workspace]",
|
|
2086
|
-
}
|
|
2087
|
-
response_data = self.api_client.call_api(
|
|
2088
|
-
*_param,
|
|
2089
|
-
_request_timeout=_request_timeout
|
|
2090
|
-
)
|
|
2091
|
-
response_data.read()
|
|
2092
|
-
return self.api_client.response_deserialize(
|
|
2093
|
-
response_data=response_data,
|
|
2094
|
-
response_types_map=_response_types_map,
|
|
2095
|
-
).data
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
@validate_call
|
|
2099
|
-
def find_all_workspaces_with_http_info(
|
|
2100
|
-
self,
|
|
2101
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2102
|
-
page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
|
|
2103
|
-
size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
|
|
2104
|
-
_request_timeout: Union[
|
|
2105
|
-
None,
|
|
2106
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2107
|
-
Tuple[
|
|
2108
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2109
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2110
|
-
]
|
|
2111
|
-
] = None,
|
|
2112
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2113
|
-
_content_type: Optional[StrictStr] = None,
|
|
2114
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2115
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2116
|
-
) -> ApiResponse[List[Workspace]]:
|
|
2117
|
-
"""List all Workspaces
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
:param organization_id: the Organization identifier (required)
|
|
2121
|
-
:type organization_id: str
|
|
2122
|
-
:param page: page number to query (first page is at index 0)
|
|
2123
|
-
:type page: int
|
|
2124
|
-
:param size: amount of result by page
|
|
2125
|
-
:type size: int
|
|
2126
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2127
|
-
number provided, it will be total request
|
|
2128
|
-
timeout. It can also be a pair (tuple) of
|
|
2129
|
-
(connection, read) timeouts.
|
|
2130
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2131
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2132
|
-
request; this effectively ignores the
|
|
2133
|
-
authentication in the spec for a single request.
|
|
2134
|
-
:type _request_auth: dict, optional
|
|
2135
|
-
:param _content_type: force content-type for the request.
|
|
2136
|
-
:type _content_type: str, Optional
|
|
2137
|
-
:param _headers: set to override the headers for a single
|
|
2138
|
-
request; this effectively ignores the headers
|
|
2139
|
-
in the spec for a single request.
|
|
2140
|
-
:type _headers: dict, optional
|
|
2141
|
-
:param _host_index: set to override the host_index for a single
|
|
2142
|
-
request; this effectively ignores the host_index
|
|
2143
|
-
in the spec for a single request.
|
|
2144
|
-
:type _host_index: int, optional
|
|
2145
|
-
:return: Returns the result object.
|
|
2146
|
-
""" # noqa: E501
|
|
2147
|
-
|
|
2148
|
-
_param = self._find_all_workspaces_serialize(
|
|
2149
|
-
organization_id=organization_id,
|
|
2150
|
-
page=page,
|
|
2151
|
-
size=size,
|
|
2152
|
-
_request_auth=_request_auth,
|
|
2153
|
-
_content_type=_content_type,
|
|
2154
|
-
_headers=_headers,
|
|
2155
|
-
_host_index=_host_index
|
|
2156
|
-
)
|
|
2157
|
-
|
|
2158
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2159
|
-
'200': "List[Workspace]",
|
|
2160
|
-
}
|
|
2161
|
-
response_data = self.api_client.call_api(
|
|
2162
|
-
*_param,
|
|
2163
|
-
_request_timeout=_request_timeout
|
|
2164
|
-
)
|
|
2165
|
-
response_data.read()
|
|
2166
|
-
return self.api_client.response_deserialize(
|
|
2167
|
-
response_data=response_data,
|
|
2168
|
-
response_types_map=_response_types_map,
|
|
2169
|
-
)
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
@validate_call
|
|
2173
|
-
def find_all_workspaces_without_preload_content(
|
|
2174
|
-
self,
|
|
2175
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2176
|
-
page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
|
|
2177
|
-
size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
|
|
2178
|
-
_request_timeout: Union[
|
|
2179
|
-
None,
|
|
2180
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2181
|
-
Tuple[
|
|
2182
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2183
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2184
|
-
]
|
|
2185
|
-
] = None,
|
|
2186
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2187
|
-
_content_type: Optional[StrictStr] = None,
|
|
2188
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2189
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2190
|
-
) -> RESTResponseType:
|
|
2191
|
-
"""List all Workspaces
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
:param organization_id: the Organization identifier (required)
|
|
2195
|
-
:type organization_id: str
|
|
2196
|
-
:param page: page number to query (first page is at index 0)
|
|
2197
|
-
:type page: int
|
|
2198
|
-
:param size: amount of result by page
|
|
2199
|
-
:type size: int
|
|
2200
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2201
|
-
number provided, it will be total request
|
|
2202
|
-
timeout. It can also be a pair (tuple) of
|
|
2203
|
-
(connection, read) timeouts.
|
|
2204
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2205
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2206
|
-
request; this effectively ignores the
|
|
2207
|
-
authentication in the spec for a single request.
|
|
2208
|
-
:type _request_auth: dict, optional
|
|
2209
|
-
:param _content_type: force content-type for the request.
|
|
2210
|
-
:type _content_type: str, Optional
|
|
2211
|
-
:param _headers: set to override the headers for a single
|
|
2212
|
-
request; this effectively ignores the headers
|
|
2213
|
-
in the spec for a single request.
|
|
2214
|
-
:type _headers: dict, optional
|
|
2215
|
-
:param _host_index: set to override the host_index for a single
|
|
2216
|
-
request; this effectively ignores the host_index
|
|
2217
|
-
in the spec for a single request.
|
|
2218
|
-
:type _host_index: int, optional
|
|
2219
|
-
:return: Returns the result object.
|
|
2220
|
-
""" # noqa: E501
|
|
2221
|
-
|
|
2222
|
-
_param = self._find_all_workspaces_serialize(
|
|
2223
|
-
organization_id=organization_id,
|
|
2224
|
-
page=page,
|
|
2225
|
-
size=size,
|
|
2226
|
-
_request_auth=_request_auth,
|
|
2227
|
-
_content_type=_content_type,
|
|
2228
|
-
_headers=_headers,
|
|
2229
|
-
_host_index=_host_index
|
|
2230
|
-
)
|
|
2231
|
-
|
|
2232
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2233
|
-
'200': "List[Workspace]",
|
|
2234
|
-
}
|
|
2235
|
-
response_data = self.api_client.call_api(
|
|
2236
|
-
*_param,
|
|
2237
|
-
_request_timeout=_request_timeout
|
|
2238
|
-
)
|
|
2239
|
-
return response_data.response
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
def _find_all_workspaces_serialize(
|
|
2243
|
-
self,
|
|
2244
|
-
organization_id,
|
|
2245
|
-
page,
|
|
2246
|
-
size,
|
|
2247
|
-
_request_auth,
|
|
2248
|
-
_content_type,
|
|
2249
|
-
_headers,
|
|
2250
|
-
_host_index,
|
|
2251
|
-
) -> RequestSerialized:
|
|
2252
|
-
|
|
2253
|
-
_host = None
|
|
2254
|
-
|
|
2255
|
-
_collection_formats: Dict[str, str] = {
|
|
2256
|
-
}
|
|
2257
|
-
|
|
2258
|
-
_path_params: Dict[str, str] = {}
|
|
2259
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2260
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2261
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2262
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
|
2263
|
-
_body_params: Optional[bytes] = None
|
|
2264
|
-
|
|
2265
|
-
# process the path parameters
|
|
2266
|
-
if organization_id is not None:
|
|
2267
|
-
_path_params['organization_id'] = organization_id
|
|
2268
|
-
# process the query parameters
|
|
2269
|
-
if page is not None:
|
|
2270
|
-
|
|
2271
|
-
_query_params.append(('page', page))
|
|
2272
|
-
|
|
2273
|
-
if size is not None:
|
|
2274
|
-
|
|
2275
|
-
_query_params.append(('size', size))
|
|
2276
|
-
|
|
2277
|
-
# process the header parameters
|
|
2278
|
-
# process the form parameters
|
|
2279
|
-
# process the body parameter
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
# set the HTTP header `Accept`
|
|
2283
|
-
if 'Accept' not in _header_params:
|
|
2284
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2285
|
-
[
|
|
2286
|
-
'application/json'
|
|
2287
|
-
]
|
|
2288
|
-
)
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
# authentication setting
|
|
2292
|
-
_auth_settings: List[str] = [
|
|
2293
|
-
'oAuth2AuthCode'
|
|
2294
|
-
]
|
|
2295
|
-
|
|
2296
|
-
return self.api_client.param_serialize(
|
|
2297
|
-
method='GET',
|
|
2298
|
-
resource_path='/organizations/{organization_id}/workspaces',
|
|
2299
|
-
path_params=_path_params,
|
|
2300
|
-
query_params=_query_params,
|
|
2301
|
-
header_params=_header_params,
|
|
2302
|
-
body=_body_params,
|
|
2303
|
-
post_params=_form_params,
|
|
2304
|
-
files=_files,
|
|
2305
|
-
auth_settings=_auth_settings,
|
|
2306
|
-
collection_formats=_collection_formats,
|
|
2307
|
-
_host=_host,
|
|
2308
|
-
_request_auth=_request_auth
|
|
2309
|
-
)
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
@validate_call
|
|
2315
|
-
def find_workspace_by_id(
|
|
2316
|
-
self,
|
|
2317
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2318
|
-
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
2319
|
-
_request_timeout: Union[
|
|
2320
|
-
None,
|
|
2321
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2322
|
-
Tuple[
|
|
2323
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2324
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2325
|
-
]
|
|
2326
|
-
] = None,
|
|
2327
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2328
|
-
_content_type: Optional[StrictStr] = None,
|
|
2329
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2330
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2331
|
-
) -> Workspace:
|
|
2332
|
-
"""Get the details of an workspace
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
:param organization_id: the Organization identifier (required)
|
|
2336
|
-
:type organization_id: str
|
|
2337
|
-
:param workspace_id: the Workspace identifier (required)
|
|
2338
|
-
:type workspace_id: str
|
|
2339
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2340
|
-
number provided, it will be total request
|
|
2341
|
-
timeout. It can also be a pair (tuple) of
|
|
2342
|
-
(connection, read) timeouts.
|
|
2343
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2344
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2345
|
-
request; this effectively ignores the
|
|
2346
|
-
authentication in the spec for a single request.
|
|
2347
|
-
:type _request_auth: dict, optional
|
|
2348
|
-
:param _content_type: force content-type for the request.
|
|
2349
|
-
:type _content_type: str, Optional
|
|
2350
|
-
:param _headers: set to override the headers for a single
|
|
2351
|
-
request; this effectively ignores the headers
|
|
2352
|
-
in the spec for a single request.
|
|
2353
|
-
:type _headers: dict, optional
|
|
2354
|
-
:param _host_index: set to override the host_index for a single
|
|
2355
|
-
request; this effectively ignores the host_index
|
|
2356
|
-
in the spec for a single request.
|
|
2357
|
-
:type _host_index: int, optional
|
|
2358
|
-
:return: Returns the result object.
|
|
2359
|
-
""" # noqa: E501
|
|
2360
|
-
|
|
2361
|
-
_param = self._find_workspace_by_id_serialize(
|
|
2362
|
-
organization_id=organization_id,
|
|
2363
|
-
workspace_id=workspace_id,
|
|
2364
|
-
_request_auth=_request_auth,
|
|
2365
|
-
_content_type=_content_type,
|
|
2366
|
-
_headers=_headers,
|
|
2367
|
-
_host_index=_host_index
|
|
2368
|
-
)
|
|
2369
|
-
|
|
2370
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2371
|
-
'200': "Workspace",
|
|
2372
|
-
'404': None,
|
|
2373
|
-
}
|
|
2374
|
-
response_data = self.api_client.call_api(
|
|
2375
|
-
*_param,
|
|
2376
|
-
_request_timeout=_request_timeout
|
|
2377
|
-
)
|
|
2378
|
-
response_data.read()
|
|
2379
|
-
return self.api_client.response_deserialize(
|
|
2380
|
-
response_data=response_data,
|
|
2381
|
-
response_types_map=_response_types_map,
|
|
2382
|
-
).data
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
@validate_call
|
|
2386
|
-
def find_workspace_by_id_with_http_info(
|
|
2387
|
-
self,
|
|
2388
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2389
|
-
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
2390
|
-
_request_timeout: Union[
|
|
2391
|
-
None,
|
|
2392
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2393
|
-
Tuple[
|
|
2394
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2395
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2396
|
-
]
|
|
2397
|
-
] = None,
|
|
2398
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2399
|
-
_content_type: Optional[StrictStr] = None,
|
|
2400
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2401
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2402
|
-
) -> ApiResponse[Workspace]:
|
|
2403
|
-
"""Get the details of an workspace
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
:param organization_id: the Organization identifier (required)
|
|
2407
|
-
:type organization_id: str
|
|
2408
|
-
:param workspace_id: the Workspace identifier (required)
|
|
2409
|
-
:type workspace_id: str
|
|
2410
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2411
|
-
number provided, it will be total request
|
|
2412
|
-
timeout. It can also be a pair (tuple) of
|
|
2413
|
-
(connection, read) timeouts.
|
|
2414
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2415
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2416
|
-
request; this effectively ignores the
|
|
2417
|
-
authentication in the spec for a single request.
|
|
2418
|
-
:type _request_auth: dict, optional
|
|
2419
|
-
:param _content_type: force content-type for the request.
|
|
2420
|
-
:type _content_type: str, Optional
|
|
2421
|
-
:param _headers: set to override the headers for a single
|
|
2422
|
-
request; this effectively ignores the headers
|
|
2423
|
-
in the spec for a single request.
|
|
2424
|
-
:type _headers: dict, optional
|
|
2425
|
-
:param _host_index: set to override the host_index for a single
|
|
2426
|
-
request; this effectively ignores the host_index
|
|
2427
|
-
in the spec for a single request.
|
|
2428
|
-
:type _host_index: int, optional
|
|
2429
|
-
:return: Returns the result object.
|
|
2430
|
-
""" # noqa: E501
|
|
2431
|
-
|
|
2432
|
-
_param = self._find_workspace_by_id_serialize(
|
|
2433
|
-
organization_id=organization_id,
|
|
2434
|
-
workspace_id=workspace_id,
|
|
2435
|
-
_request_auth=_request_auth,
|
|
2436
|
-
_content_type=_content_type,
|
|
2437
|
-
_headers=_headers,
|
|
2438
|
-
_host_index=_host_index
|
|
2439
|
-
)
|
|
2440
|
-
|
|
2441
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2442
|
-
'200': "Workspace",
|
|
2443
|
-
'404': None,
|
|
2444
|
-
}
|
|
2445
|
-
response_data = self.api_client.call_api(
|
|
2446
|
-
*_param,
|
|
2447
|
-
_request_timeout=_request_timeout
|
|
2448
|
-
)
|
|
2449
|
-
response_data.read()
|
|
2450
|
-
return self.api_client.response_deserialize(
|
|
2451
|
-
response_data=response_data,
|
|
2452
|
-
response_types_map=_response_types_map,
|
|
2453
|
-
)
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
@validate_call
|
|
2457
|
-
def find_workspace_by_id_without_preload_content(
|
|
2458
|
-
self,
|
|
2459
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2460
|
-
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
2461
|
-
_request_timeout: Union[
|
|
2462
|
-
None,
|
|
2463
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2464
|
-
Tuple[
|
|
2465
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2466
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2467
|
-
]
|
|
2468
|
-
] = None,
|
|
2469
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2470
|
-
_content_type: Optional[StrictStr] = None,
|
|
2471
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2472
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2473
|
-
) -> RESTResponseType:
|
|
2474
|
-
"""Get the details of an workspace
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
:param organization_id: the Organization identifier (required)
|
|
2478
|
-
:type organization_id: str
|
|
2479
|
-
:param workspace_id: the Workspace identifier (required)
|
|
2480
|
-
:type workspace_id: str
|
|
2481
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2482
|
-
number provided, it will be total request
|
|
2483
|
-
timeout. It can also be a pair (tuple) of
|
|
2484
|
-
(connection, read) timeouts.
|
|
2485
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2486
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2487
|
-
request; this effectively ignores the
|
|
2488
|
-
authentication in the spec for a single request.
|
|
2489
|
-
:type _request_auth: dict, optional
|
|
2490
|
-
:param _content_type: force content-type for the request.
|
|
2491
|
-
:type _content_type: str, Optional
|
|
2492
|
-
:param _headers: set to override the headers for a single
|
|
2493
|
-
request; this effectively ignores the headers
|
|
2494
|
-
in the spec for a single request.
|
|
2495
|
-
:type _headers: dict, optional
|
|
2496
|
-
:param _host_index: set to override the host_index for a single
|
|
2497
|
-
request; this effectively ignores the host_index
|
|
2498
|
-
in the spec for a single request.
|
|
2499
|
-
:type _host_index: int, optional
|
|
2500
|
-
:return: Returns the result object.
|
|
2501
|
-
""" # noqa: E501
|
|
2502
|
-
|
|
2503
|
-
_param = self._find_workspace_by_id_serialize(
|
|
2504
|
-
organization_id=organization_id,
|
|
2505
|
-
workspace_id=workspace_id,
|
|
2506
|
-
_request_auth=_request_auth,
|
|
2507
|
-
_content_type=_content_type,
|
|
2508
|
-
_headers=_headers,
|
|
2509
|
-
_host_index=_host_index
|
|
2510
|
-
)
|
|
2511
|
-
|
|
2512
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2513
|
-
'200': "Workspace",
|
|
2514
|
-
'404': None,
|
|
2515
|
-
}
|
|
2516
|
-
response_data = self.api_client.call_api(
|
|
2517
|
-
*_param,
|
|
2518
|
-
_request_timeout=_request_timeout
|
|
2519
|
-
)
|
|
2520
|
-
return response_data.response
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
def _find_workspace_by_id_serialize(
|
|
2524
|
-
self,
|
|
2525
|
-
organization_id,
|
|
2526
|
-
workspace_id,
|
|
2527
|
-
_request_auth,
|
|
2528
|
-
_content_type,
|
|
2529
|
-
_headers,
|
|
2530
|
-
_host_index,
|
|
2531
|
-
) -> RequestSerialized:
|
|
2532
|
-
|
|
2533
|
-
_host = None
|
|
2534
|
-
|
|
2535
|
-
_collection_formats: Dict[str, str] = {
|
|
2536
|
-
}
|
|
2537
|
-
|
|
2538
|
-
_path_params: Dict[str, str] = {}
|
|
2539
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2540
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2541
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2542
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
|
2543
|
-
_body_params: Optional[bytes] = None
|
|
2544
|
-
|
|
2545
|
-
# process the path parameters
|
|
2546
|
-
if organization_id is not None:
|
|
2547
|
-
_path_params['organization_id'] = organization_id
|
|
2548
|
-
if workspace_id is not None:
|
|
2549
|
-
_path_params['workspace_id'] = workspace_id
|
|
2550
|
-
# process the query parameters
|
|
2551
|
-
# process the header parameters
|
|
2552
|
-
# process the form parameters
|
|
2553
|
-
# process the body parameter
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
# set the HTTP header `Accept`
|
|
2557
|
-
if 'Accept' not in _header_params:
|
|
2558
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2559
|
-
[
|
|
2560
|
-
'application/json'
|
|
2561
|
-
]
|
|
2562
|
-
)
|
|
2563
2067
|
|
|
2564
2068
|
|
|
2565
2069
|
# authentication setting
|
|
@@ -2568,8 +2072,8 @@ class WorkspaceApi:
|
|
|
2568
2072
|
]
|
|
2569
2073
|
|
|
2570
2074
|
return self.api_client.param_serialize(
|
|
2571
|
-
method='
|
|
2572
|
-
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}',
|
|
2075
|
+
method='DELETE',
|
|
2076
|
+
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/files',
|
|
2573
2077
|
path_params=_path_params,
|
|
2574
2078
|
query_params=_query_params,
|
|
2575
2079
|
header_params=_header_params,
|
|
@@ -2586,11 +2090,10 @@ class WorkspaceApi:
|
|
|
2586
2090
|
|
|
2587
2091
|
|
|
2588
2092
|
@validate_call
|
|
2589
|
-
def
|
|
2093
|
+
def get_workspace(
|
|
2590
2094
|
self,
|
|
2591
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
2592
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
2593
|
-
identity_id: Annotated[StrictStr, Field(description="the User identifier")],
|
|
2095
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
2096
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
2594
2097
|
_request_timeout: Union[
|
|
2595
2098
|
None,
|
|
2596
2099
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2603,16 +2106,14 @@ class WorkspaceApi:
|
|
|
2603
2106
|
_content_type: Optional[StrictStr] = None,
|
|
2604
2107
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2605
2108
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2606
|
-
) ->
|
|
2607
|
-
"""Get
|
|
2109
|
+
) -> Workspace:
|
|
2110
|
+
"""Get the details of a workspace
|
|
2608
2111
|
|
|
2609
2112
|
|
|
2610
|
-
:param organization_id:
|
|
2113
|
+
:param organization_id: The Organization identifier (required)
|
|
2611
2114
|
:type organization_id: str
|
|
2612
|
-
:param workspace_id:
|
|
2115
|
+
:param workspace_id: The Workspace identifier (required)
|
|
2613
2116
|
:type workspace_id: str
|
|
2614
|
-
:param identity_id: the User identifier (required)
|
|
2615
|
-
:type identity_id: str
|
|
2616
2117
|
:param _request_timeout: timeout setting for this request. If one
|
|
2617
2118
|
number provided, it will be total request
|
|
2618
2119
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2635,10 +2136,9 @@ class WorkspaceApi:
|
|
|
2635
2136
|
:return: Returns the result object.
|
|
2636
2137
|
""" # noqa: E501
|
|
2637
2138
|
|
|
2638
|
-
_param = self.
|
|
2139
|
+
_param = self._get_workspace_serialize(
|
|
2639
2140
|
organization_id=organization_id,
|
|
2640
2141
|
workspace_id=workspace_id,
|
|
2641
|
-
identity_id=identity_id,
|
|
2642
2142
|
_request_auth=_request_auth,
|
|
2643
2143
|
_content_type=_content_type,
|
|
2644
2144
|
_headers=_headers,
|
|
@@ -2646,7 +2146,7 @@ class WorkspaceApi:
|
|
|
2646
2146
|
)
|
|
2647
2147
|
|
|
2648
2148
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2649
|
-
'200': "
|
|
2149
|
+
'200': "Workspace",
|
|
2650
2150
|
'404': None,
|
|
2651
2151
|
}
|
|
2652
2152
|
response_data = self.api_client.call_api(
|
|
@@ -2661,11 +2161,10 @@ class WorkspaceApi:
|
|
|
2661
2161
|
|
|
2662
2162
|
|
|
2663
2163
|
@validate_call
|
|
2664
|
-
def
|
|
2164
|
+
def get_workspace_with_http_info(
|
|
2665
2165
|
self,
|
|
2666
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
2667
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
2668
|
-
identity_id: Annotated[StrictStr, Field(description="the User identifier")],
|
|
2166
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
2167
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
2669
2168
|
_request_timeout: Union[
|
|
2670
2169
|
None,
|
|
2671
2170
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2678,16 +2177,14 @@ class WorkspaceApi:
|
|
|
2678
2177
|
_content_type: Optional[StrictStr] = None,
|
|
2679
2178
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2680
2179
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2681
|
-
) -> ApiResponse[
|
|
2682
|
-
"""Get
|
|
2180
|
+
) -> ApiResponse[Workspace]:
|
|
2181
|
+
"""Get the details of a workspace
|
|
2683
2182
|
|
|
2684
2183
|
|
|
2685
|
-
:param organization_id:
|
|
2184
|
+
:param organization_id: The Organization identifier (required)
|
|
2686
2185
|
:type organization_id: str
|
|
2687
|
-
:param workspace_id:
|
|
2186
|
+
:param workspace_id: The Workspace identifier (required)
|
|
2688
2187
|
:type workspace_id: str
|
|
2689
|
-
:param identity_id: the User identifier (required)
|
|
2690
|
-
:type identity_id: str
|
|
2691
2188
|
:param _request_timeout: timeout setting for this request. If one
|
|
2692
2189
|
number provided, it will be total request
|
|
2693
2190
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2710,10 +2207,9 @@ class WorkspaceApi:
|
|
|
2710
2207
|
:return: Returns the result object.
|
|
2711
2208
|
""" # noqa: E501
|
|
2712
2209
|
|
|
2713
|
-
_param = self.
|
|
2210
|
+
_param = self._get_workspace_serialize(
|
|
2714
2211
|
organization_id=organization_id,
|
|
2715
2212
|
workspace_id=workspace_id,
|
|
2716
|
-
identity_id=identity_id,
|
|
2717
2213
|
_request_auth=_request_auth,
|
|
2718
2214
|
_content_type=_content_type,
|
|
2719
2215
|
_headers=_headers,
|
|
@@ -2721,7 +2217,7 @@ class WorkspaceApi:
|
|
|
2721
2217
|
)
|
|
2722
2218
|
|
|
2723
2219
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2724
|
-
'200': "
|
|
2220
|
+
'200': "Workspace",
|
|
2725
2221
|
'404': None,
|
|
2726
2222
|
}
|
|
2727
2223
|
response_data = self.api_client.call_api(
|
|
@@ -2736,11 +2232,10 @@ class WorkspaceApi:
|
|
|
2736
2232
|
|
|
2737
2233
|
|
|
2738
2234
|
@validate_call
|
|
2739
|
-
def
|
|
2235
|
+
def get_workspace_without_preload_content(
|
|
2740
2236
|
self,
|
|
2741
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
2742
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
2743
|
-
identity_id: Annotated[StrictStr, Field(description="the User identifier")],
|
|
2237
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
2238
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
2744
2239
|
_request_timeout: Union[
|
|
2745
2240
|
None,
|
|
2746
2241
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2754,15 +2249,13 @@ class WorkspaceApi:
|
|
|
2754
2249
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2755
2250
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2756
2251
|
) -> RESTResponseType:
|
|
2757
|
-
"""Get
|
|
2252
|
+
"""Get the details of a workspace
|
|
2758
2253
|
|
|
2759
2254
|
|
|
2760
|
-
:param organization_id:
|
|
2255
|
+
:param organization_id: The Organization identifier (required)
|
|
2761
2256
|
:type organization_id: str
|
|
2762
|
-
:param workspace_id:
|
|
2257
|
+
:param workspace_id: The Workspace identifier (required)
|
|
2763
2258
|
:type workspace_id: str
|
|
2764
|
-
:param identity_id: the User identifier (required)
|
|
2765
|
-
:type identity_id: str
|
|
2766
2259
|
:param _request_timeout: timeout setting for this request. If one
|
|
2767
2260
|
number provided, it will be total request
|
|
2768
2261
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2785,10 +2278,9 @@ class WorkspaceApi:
|
|
|
2785
2278
|
:return: Returns the result object.
|
|
2786
2279
|
""" # noqa: E501
|
|
2787
2280
|
|
|
2788
|
-
_param = self.
|
|
2281
|
+
_param = self._get_workspace_serialize(
|
|
2789
2282
|
organization_id=organization_id,
|
|
2790
2283
|
workspace_id=workspace_id,
|
|
2791
|
-
identity_id=identity_id,
|
|
2792
2284
|
_request_auth=_request_auth,
|
|
2793
2285
|
_content_type=_content_type,
|
|
2794
2286
|
_headers=_headers,
|
|
@@ -2796,7 +2288,7 @@ class WorkspaceApi:
|
|
|
2796
2288
|
)
|
|
2797
2289
|
|
|
2798
2290
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2799
|
-
'200': "
|
|
2291
|
+
'200': "Workspace",
|
|
2800
2292
|
'404': None,
|
|
2801
2293
|
}
|
|
2802
2294
|
response_data = self.api_client.call_api(
|
|
@@ -2806,11 +2298,10 @@ class WorkspaceApi:
|
|
|
2806
2298
|
return response_data.response
|
|
2807
2299
|
|
|
2808
2300
|
|
|
2809
|
-
def
|
|
2301
|
+
def _get_workspace_serialize(
|
|
2810
2302
|
self,
|
|
2811
2303
|
organization_id,
|
|
2812
2304
|
workspace_id,
|
|
2813
|
-
identity_id,
|
|
2814
2305
|
_request_auth,
|
|
2815
2306
|
_content_type,
|
|
2816
2307
|
_headers,
|
|
@@ -2826,7 +2317,9 @@ class WorkspaceApi:
|
|
|
2826
2317
|
_query_params: List[Tuple[str, str]] = []
|
|
2827
2318
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2828
2319
|
_form_params: List[Tuple[str, str]] = []
|
|
2829
|
-
_files: Dict[
|
|
2320
|
+
_files: Dict[
|
|
2321
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2322
|
+
] = {}
|
|
2830
2323
|
_body_params: Optional[bytes] = None
|
|
2831
2324
|
|
|
2832
2325
|
# process the path parameters
|
|
@@ -2834,8 +2327,6 @@ class WorkspaceApi:
|
|
|
2834
2327
|
_path_params['organization_id'] = organization_id
|
|
2835
2328
|
if workspace_id is not None:
|
|
2836
2329
|
_path_params['workspace_id'] = workspace_id
|
|
2837
|
-
if identity_id is not None:
|
|
2838
|
-
_path_params['identity_id'] = identity_id
|
|
2839
2330
|
# process the query parameters
|
|
2840
2331
|
# process the header parameters
|
|
2841
2332
|
# process the form parameters
|
|
@@ -2846,7 +2337,8 @@ class WorkspaceApi:
|
|
|
2846
2337
|
if 'Accept' not in _header_params:
|
|
2847
2338
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2848
2339
|
[
|
|
2849
|
-
'application/json'
|
|
2340
|
+
'application/json',
|
|
2341
|
+
'application/yaml'
|
|
2850
2342
|
]
|
|
2851
2343
|
)
|
|
2852
2344
|
|
|
@@ -2858,7 +2350,7 @@ class WorkspaceApi:
|
|
|
2858
2350
|
|
|
2859
2351
|
return self.api_client.param_serialize(
|
|
2860
2352
|
method='GET',
|
|
2861
|
-
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}
|
|
2353
|
+
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}',
|
|
2862
2354
|
path_params=_path_params,
|
|
2863
2355
|
query_params=_query_params,
|
|
2864
2356
|
header_params=_header_params,
|
|
@@ -2875,11 +2367,11 @@ class WorkspaceApi:
|
|
|
2875
2367
|
|
|
2876
2368
|
|
|
2877
2369
|
@validate_call
|
|
2878
|
-
def
|
|
2370
|
+
def get_workspace_access_control(
|
|
2879
2371
|
self,
|
|
2880
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
2881
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
2882
|
-
|
|
2372
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
2373
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
2374
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
2883
2375
|
_request_timeout: Union[
|
|
2884
2376
|
None,
|
|
2885
2377
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2892,16 +2384,16 @@ class WorkspaceApi:
|
|
|
2892
2384
|
_content_type: Optional[StrictStr] = None,
|
|
2893
2385
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2894
2386
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2895
|
-
) ->
|
|
2896
|
-
"""Get
|
|
2387
|
+
) -> WorkspaceAccessControl:
|
|
2388
|
+
"""Get a control access for the Workspace
|
|
2897
2389
|
|
|
2898
2390
|
|
|
2899
|
-
:param organization_id:
|
|
2391
|
+
:param organization_id: The Organization identifier (required)
|
|
2900
2392
|
:type organization_id: str
|
|
2901
|
-
:param workspace_id:
|
|
2393
|
+
:param workspace_id: The Workspace identifier (required)
|
|
2902
2394
|
:type workspace_id: str
|
|
2903
|
-
:param
|
|
2904
|
-
:type
|
|
2395
|
+
:param identity_id: The User identifier (required)
|
|
2396
|
+
:type identity_id: str
|
|
2905
2397
|
:param _request_timeout: timeout setting for this request. If one
|
|
2906
2398
|
number provided, it will be total request
|
|
2907
2399
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2924,10 +2416,10 @@ class WorkspaceApi:
|
|
|
2924
2416
|
:return: Returns the result object.
|
|
2925
2417
|
""" # noqa: E501
|
|
2926
2418
|
|
|
2927
|
-
_param = self.
|
|
2419
|
+
_param = self._get_workspace_access_control_serialize(
|
|
2928
2420
|
organization_id=organization_id,
|
|
2929
2421
|
workspace_id=workspace_id,
|
|
2930
|
-
|
|
2422
|
+
identity_id=identity_id,
|
|
2931
2423
|
_request_auth=_request_auth,
|
|
2932
2424
|
_content_type=_content_type,
|
|
2933
2425
|
_headers=_headers,
|
|
@@ -2935,7 +2427,8 @@ class WorkspaceApi:
|
|
|
2935
2427
|
)
|
|
2936
2428
|
|
|
2937
2429
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2938
|
-
'200': "
|
|
2430
|
+
'200': "WorkspaceAccessControl",
|
|
2431
|
+
'404': None,
|
|
2939
2432
|
}
|
|
2940
2433
|
response_data = self.api_client.call_api(
|
|
2941
2434
|
*_param,
|
|
@@ -2949,11 +2442,11 @@ class WorkspaceApi:
|
|
|
2949
2442
|
|
|
2950
2443
|
|
|
2951
2444
|
@validate_call
|
|
2952
|
-
def
|
|
2445
|
+
def get_workspace_access_control_with_http_info(
|
|
2953
2446
|
self,
|
|
2954
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
2955
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
2956
|
-
|
|
2447
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
2448
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
2449
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
2957
2450
|
_request_timeout: Union[
|
|
2958
2451
|
None,
|
|
2959
2452
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2966,16 +2459,16 @@ class WorkspaceApi:
|
|
|
2966
2459
|
_content_type: Optional[StrictStr] = None,
|
|
2967
2460
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2968
2461
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2969
|
-
) -> ApiResponse[
|
|
2970
|
-
"""Get
|
|
2462
|
+
) -> ApiResponse[WorkspaceAccessControl]:
|
|
2463
|
+
"""Get a control access for the Workspace
|
|
2971
2464
|
|
|
2972
2465
|
|
|
2973
|
-
:param organization_id:
|
|
2466
|
+
:param organization_id: The Organization identifier (required)
|
|
2974
2467
|
:type organization_id: str
|
|
2975
|
-
:param workspace_id:
|
|
2468
|
+
:param workspace_id: The Workspace identifier (required)
|
|
2976
2469
|
:type workspace_id: str
|
|
2977
|
-
:param
|
|
2978
|
-
:type
|
|
2470
|
+
:param identity_id: The User identifier (required)
|
|
2471
|
+
:type identity_id: str
|
|
2979
2472
|
:param _request_timeout: timeout setting for this request. If one
|
|
2980
2473
|
number provided, it will be total request
|
|
2981
2474
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2998,10 +2491,10 @@ class WorkspaceApi:
|
|
|
2998
2491
|
:return: Returns the result object.
|
|
2999
2492
|
""" # noqa: E501
|
|
3000
2493
|
|
|
3001
|
-
_param = self.
|
|
2494
|
+
_param = self._get_workspace_access_control_serialize(
|
|
3002
2495
|
organization_id=organization_id,
|
|
3003
2496
|
workspace_id=workspace_id,
|
|
3004
|
-
|
|
2497
|
+
identity_id=identity_id,
|
|
3005
2498
|
_request_auth=_request_auth,
|
|
3006
2499
|
_content_type=_content_type,
|
|
3007
2500
|
_headers=_headers,
|
|
@@ -3009,7 +2502,8 @@ class WorkspaceApi:
|
|
|
3009
2502
|
)
|
|
3010
2503
|
|
|
3011
2504
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3012
|
-
'200': "
|
|
2505
|
+
'200': "WorkspaceAccessControl",
|
|
2506
|
+
'404': None,
|
|
3013
2507
|
}
|
|
3014
2508
|
response_data = self.api_client.call_api(
|
|
3015
2509
|
*_param,
|
|
@@ -3023,11 +2517,11 @@ class WorkspaceApi:
|
|
|
3023
2517
|
|
|
3024
2518
|
|
|
3025
2519
|
@validate_call
|
|
3026
|
-
def
|
|
2520
|
+
def get_workspace_access_control_without_preload_content(
|
|
3027
2521
|
self,
|
|
3028
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3029
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
3030
|
-
|
|
2522
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
2523
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
2524
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
3031
2525
|
_request_timeout: Union[
|
|
3032
2526
|
None,
|
|
3033
2527
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3041,15 +2535,15 @@ class WorkspaceApi:
|
|
|
3041
2535
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3042
2536
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3043
2537
|
) -> RESTResponseType:
|
|
3044
|
-
"""Get
|
|
2538
|
+
"""Get a control access for the Workspace
|
|
3045
2539
|
|
|
3046
2540
|
|
|
3047
|
-
:param organization_id:
|
|
2541
|
+
:param organization_id: The Organization identifier (required)
|
|
3048
2542
|
:type organization_id: str
|
|
3049
|
-
:param workspace_id:
|
|
2543
|
+
:param workspace_id: The Workspace identifier (required)
|
|
3050
2544
|
:type workspace_id: str
|
|
3051
|
-
:param
|
|
3052
|
-
:type
|
|
2545
|
+
:param identity_id: The User identifier (required)
|
|
2546
|
+
:type identity_id: str
|
|
3053
2547
|
:param _request_timeout: timeout setting for this request. If one
|
|
3054
2548
|
number provided, it will be total request
|
|
3055
2549
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3072,10 +2566,10 @@ class WorkspaceApi:
|
|
|
3072
2566
|
:return: Returns the result object.
|
|
3073
2567
|
""" # noqa: E501
|
|
3074
2568
|
|
|
3075
|
-
_param = self.
|
|
2569
|
+
_param = self._get_workspace_access_control_serialize(
|
|
3076
2570
|
organization_id=organization_id,
|
|
3077
2571
|
workspace_id=workspace_id,
|
|
3078
|
-
|
|
2572
|
+
identity_id=identity_id,
|
|
3079
2573
|
_request_auth=_request_auth,
|
|
3080
2574
|
_content_type=_content_type,
|
|
3081
2575
|
_headers=_headers,
|
|
@@ -3083,7 +2577,8 @@ class WorkspaceApi:
|
|
|
3083
2577
|
)
|
|
3084
2578
|
|
|
3085
2579
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3086
|
-
'200': "
|
|
2580
|
+
'200': "WorkspaceAccessControl",
|
|
2581
|
+
'404': None,
|
|
3087
2582
|
}
|
|
3088
2583
|
response_data = self.api_client.call_api(
|
|
3089
2584
|
*_param,
|
|
@@ -3092,11 +2587,11 @@ class WorkspaceApi:
|
|
|
3092
2587
|
return response_data.response
|
|
3093
2588
|
|
|
3094
2589
|
|
|
3095
|
-
def
|
|
2590
|
+
def _get_workspace_access_control_serialize(
|
|
3096
2591
|
self,
|
|
3097
2592
|
organization_id,
|
|
3098
2593
|
workspace_id,
|
|
3099
|
-
|
|
2594
|
+
identity_id,
|
|
3100
2595
|
_request_auth,
|
|
3101
2596
|
_content_type,
|
|
3102
2597
|
_headers,
|
|
@@ -3112,7 +2607,9 @@ class WorkspaceApi:
|
|
|
3112
2607
|
_query_params: List[Tuple[str, str]] = []
|
|
3113
2608
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3114
2609
|
_form_params: List[Tuple[str, str]] = []
|
|
3115
|
-
_files: Dict[
|
|
2610
|
+
_files: Dict[
|
|
2611
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2612
|
+
] = {}
|
|
3116
2613
|
_body_params: Optional[bytes] = None
|
|
3117
2614
|
|
|
3118
2615
|
# process the path parameters
|
|
@@ -3120,8 +2617,8 @@ class WorkspaceApi:
|
|
|
3120
2617
|
_path_params['organization_id'] = organization_id
|
|
3121
2618
|
if workspace_id is not None:
|
|
3122
2619
|
_path_params['workspace_id'] = workspace_id
|
|
3123
|
-
if
|
|
3124
|
-
_path_params['
|
|
2620
|
+
if identity_id is not None:
|
|
2621
|
+
_path_params['identity_id'] = identity_id
|
|
3125
2622
|
# process the query parameters
|
|
3126
2623
|
# process the header parameters
|
|
3127
2624
|
# process the form parameters
|
|
@@ -3132,7 +2629,8 @@ class WorkspaceApi:
|
|
|
3132
2629
|
if 'Accept' not in _header_params:
|
|
3133
2630
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3134
2631
|
[
|
|
3135
|
-
'application/json'
|
|
2632
|
+
'application/json',
|
|
2633
|
+
'application/yaml'
|
|
3136
2634
|
]
|
|
3137
2635
|
)
|
|
3138
2636
|
|
|
@@ -3144,7 +2642,7 @@ class WorkspaceApi:
|
|
|
3144
2642
|
|
|
3145
2643
|
return self.api_client.param_serialize(
|
|
3146
2644
|
method='GET',
|
|
3147
|
-
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/
|
|
2645
|
+
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}',
|
|
3148
2646
|
path_params=_path_params,
|
|
3149
2647
|
query_params=_query_params,
|
|
3150
2648
|
header_params=_header_params,
|
|
@@ -3161,10 +2659,11 @@ class WorkspaceApi:
|
|
|
3161
2659
|
|
|
3162
2660
|
|
|
3163
2661
|
@validate_call
|
|
3164
|
-
def
|
|
2662
|
+
def get_workspace_file(
|
|
3165
2663
|
self,
|
|
3166
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3167
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
2664
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
2665
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
2666
|
+
file_name: Annotated[StrictStr, Field(description="The file name")],
|
|
3168
2667
|
_request_timeout: Union[
|
|
3169
2668
|
None,
|
|
3170
2669
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3177,14 +2676,16 @@ class WorkspaceApi:
|
|
|
3177
2676
|
_content_type: Optional[StrictStr] = None,
|
|
3178
2677
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3179
2678
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3180
|
-
) ->
|
|
3181
|
-
"""
|
|
2679
|
+
) -> bytearray:
|
|
2680
|
+
"""Download the Workspace File specified
|
|
3182
2681
|
|
|
3183
2682
|
|
|
3184
|
-
:param organization_id:
|
|
2683
|
+
:param organization_id: The Organization identifier (required)
|
|
3185
2684
|
:type organization_id: str
|
|
3186
|
-
:param workspace_id:
|
|
2685
|
+
:param workspace_id: The Workspace identifier (required)
|
|
3187
2686
|
:type workspace_id: str
|
|
2687
|
+
:param file_name: The file name (required)
|
|
2688
|
+
:type file_name: str
|
|
3188
2689
|
:param _request_timeout: timeout setting for this request. If one
|
|
3189
2690
|
number provided, it will be total request
|
|
3190
2691
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3207,9 +2708,10 @@ class WorkspaceApi:
|
|
|
3207
2708
|
:return: Returns the result object.
|
|
3208
2709
|
""" # noqa: E501
|
|
3209
2710
|
|
|
3210
|
-
_param = self.
|
|
2711
|
+
_param = self._get_workspace_file_serialize(
|
|
3211
2712
|
organization_id=organization_id,
|
|
3212
2713
|
workspace_id=workspace_id,
|
|
2714
|
+
file_name=file_name,
|
|
3213
2715
|
_request_auth=_request_auth,
|
|
3214
2716
|
_content_type=_content_type,
|
|
3215
2717
|
_headers=_headers,
|
|
@@ -3217,7 +2719,7 @@ class WorkspaceApi:
|
|
|
3217
2719
|
)
|
|
3218
2720
|
|
|
3219
2721
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3220
|
-
'200': "
|
|
2722
|
+
'200': "bytearray",
|
|
3221
2723
|
'404': None,
|
|
3222
2724
|
}
|
|
3223
2725
|
response_data = self.api_client.call_api(
|
|
@@ -3232,10 +2734,11 @@ class WorkspaceApi:
|
|
|
3232
2734
|
|
|
3233
2735
|
|
|
3234
2736
|
@validate_call
|
|
3235
|
-
def
|
|
2737
|
+
def get_workspace_file_with_http_info(
|
|
3236
2738
|
self,
|
|
3237
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3238
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
2739
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
2740
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
2741
|
+
file_name: Annotated[StrictStr, Field(description="The file name")],
|
|
3239
2742
|
_request_timeout: Union[
|
|
3240
2743
|
None,
|
|
3241
2744
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3248,14 +2751,16 @@ class WorkspaceApi:
|
|
|
3248
2751
|
_content_type: Optional[StrictStr] = None,
|
|
3249
2752
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3250
2753
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3251
|
-
) -> ApiResponse[
|
|
3252
|
-
"""
|
|
2754
|
+
) -> ApiResponse[bytearray]:
|
|
2755
|
+
"""Download the Workspace File specified
|
|
3253
2756
|
|
|
3254
2757
|
|
|
3255
|
-
:param organization_id:
|
|
2758
|
+
:param organization_id: The Organization identifier (required)
|
|
3256
2759
|
:type organization_id: str
|
|
3257
|
-
:param workspace_id:
|
|
2760
|
+
:param workspace_id: The Workspace identifier (required)
|
|
3258
2761
|
:type workspace_id: str
|
|
2762
|
+
:param file_name: The file name (required)
|
|
2763
|
+
:type file_name: str
|
|
3259
2764
|
:param _request_timeout: timeout setting for this request. If one
|
|
3260
2765
|
number provided, it will be total request
|
|
3261
2766
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3278,9 +2783,10 @@ class WorkspaceApi:
|
|
|
3278
2783
|
:return: Returns the result object.
|
|
3279
2784
|
""" # noqa: E501
|
|
3280
2785
|
|
|
3281
|
-
_param = self.
|
|
2786
|
+
_param = self._get_workspace_file_serialize(
|
|
3282
2787
|
organization_id=organization_id,
|
|
3283
2788
|
workspace_id=workspace_id,
|
|
2789
|
+
file_name=file_name,
|
|
3284
2790
|
_request_auth=_request_auth,
|
|
3285
2791
|
_content_type=_content_type,
|
|
3286
2792
|
_headers=_headers,
|
|
@@ -3288,7 +2794,7 @@ class WorkspaceApi:
|
|
|
3288
2794
|
)
|
|
3289
2795
|
|
|
3290
2796
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3291
|
-
'200': "
|
|
2797
|
+
'200': "bytearray",
|
|
3292
2798
|
'404': None,
|
|
3293
2799
|
}
|
|
3294
2800
|
response_data = self.api_client.call_api(
|
|
@@ -3303,10 +2809,11 @@ class WorkspaceApi:
|
|
|
3303
2809
|
|
|
3304
2810
|
|
|
3305
2811
|
@validate_call
|
|
3306
|
-
def
|
|
2812
|
+
def get_workspace_file_without_preload_content(
|
|
3307
2813
|
self,
|
|
3308
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3309
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
2814
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
2815
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
2816
|
+
file_name: Annotated[StrictStr, Field(description="The file name")],
|
|
3310
2817
|
_request_timeout: Union[
|
|
3311
2818
|
None,
|
|
3312
2819
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3320,13 +2827,15 @@ class WorkspaceApi:
|
|
|
3320
2827
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3321
2828
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3322
2829
|
) -> RESTResponseType:
|
|
3323
|
-
"""
|
|
2830
|
+
"""Download the Workspace File specified
|
|
3324
2831
|
|
|
3325
2832
|
|
|
3326
|
-
:param organization_id:
|
|
2833
|
+
:param organization_id: The Organization identifier (required)
|
|
3327
2834
|
:type organization_id: str
|
|
3328
|
-
:param workspace_id:
|
|
2835
|
+
:param workspace_id: The Workspace identifier (required)
|
|
3329
2836
|
:type workspace_id: str
|
|
2837
|
+
:param file_name: The file name (required)
|
|
2838
|
+
:type file_name: str
|
|
3330
2839
|
:param _request_timeout: timeout setting for this request. If one
|
|
3331
2840
|
number provided, it will be total request
|
|
3332
2841
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3349,9 +2858,10 @@ class WorkspaceApi:
|
|
|
3349
2858
|
:return: Returns the result object.
|
|
3350
2859
|
""" # noqa: E501
|
|
3351
2860
|
|
|
3352
|
-
_param = self.
|
|
2861
|
+
_param = self._get_workspace_file_serialize(
|
|
3353
2862
|
organization_id=organization_id,
|
|
3354
2863
|
workspace_id=workspace_id,
|
|
2864
|
+
file_name=file_name,
|
|
3355
2865
|
_request_auth=_request_auth,
|
|
3356
2866
|
_content_type=_content_type,
|
|
3357
2867
|
_headers=_headers,
|
|
@@ -3359,7 +2869,7 @@ class WorkspaceApi:
|
|
|
3359
2869
|
)
|
|
3360
2870
|
|
|
3361
2871
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3362
|
-
'200': "
|
|
2872
|
+
'200': "bytearray",
|
|
3363
2873
|
'404': None,
|
|
3364
2874
|
}
|
|
3365
2875
|
response_data = self.api_client.call_api(
|
|
@@ -3369,10 +2879,11 @@ class WorkspaceApi:
|
|
|
3369
2879
|
return response_data.response
|
|
3370
2880
|
|
|
3371
2881
|
|
|
3372
|
-
def
|
|
2882
|
+
def _get_workspace_file_serialize(
|
|
3373
2883
|
self,
|
|
3374
2884
|
organization_id,
|
|
3375
2885
|
workspace_id,
|
|
2886
|
+
file_name,
|
|
3376
2887
|
_request_auth,
|
|
3377
2888
|
_content_type,
|
|
3378
2889
|
_headers,
|
|
@@ -3388,7 +2899,9 @@ class WorkspaceApi:
|
|
|
3388
2899
|
_query_params: List[Tuple[str, str]] = []
|
|
3389
2900
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3390
2901
|
_form_params: List[Tuple[str, str]] = []
|
|
3391
|
-
_files: Dict[
|
|
2902
|
+
_files: Dict[
|
|
2903
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2904
|
+
] = {}
|
|
3392
2905
|
_body_params: Optional[bytes] = None
|
|
3393
2906
|
|
|
3394
2907
|
# process the path parameters
|
|
@@ -3397,6 +2910,10 @@ class WorkspaceApi:
|
|
|
3397
2910
|
if workspace_id is not None:
|
|
3398
2911
|
_path_params['workspace_id'] = workspace_id
|
|
3399
2912
|
# process the query parameters
|
|
2913
|
+
if file_name is not None:
|
|
2914
|
+
|
|
2915
|
+
_query_params.append(('file_name', file_name))
|
|
2916
|
+
|
|
3400
2917
|
# process the header parameters
|
|
3401
2918
|
# process the form parameters
|
|
3402
2919
|
# process the body parameter
|
|
@@ -3406,7 +2923,7 @@ class WorkspaceApi:
|
|
|
3406
2923
|
if 'Accept' not in _header_params:
|
|
3407
2924
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3408
2925
|
[
|
|
3409
|
-
'application/
|
|
2926
|
+
'application/octet-stream'
|
|
3410
2927
|
]
|
|
3411
2928
|
)
|
|
3412
2929
|
|
|
@@ -3418,7 +2935,7 @@ class WorkspaceApi:
|
|
|
3418
2935
|
|
|
3419
2936
|
return self.api_client.param_serialize(
|
|
3420
2937
|
method='GET',
|
|
3421
|
-
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/
|
|
2938
|
+
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/files/download',
|
|
3422
2939
|
path_params=_path_params,
|
|
3423
2940
|
query_params=_query_params,
|
|
3424
2941
|
header_params=_header_params,
|
|
@@ -3435,10 +2952,10 @@ class WorkspaceApi:
|
|
|
3435
2952
|
|
|
3436
2953
|
|
|
3437
2954
|
@validate_call
|
|
3438
|
-
def
|
|
2955
|
+
def get_workspace_security(
|
|
3439
2956
|
self,
|
|
3440
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3441
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
2957
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
2958
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
3442
2959
|
_request_timeout: Union[
|
|
3443
2960
|
None,
|
|
3444
2961
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3451,13 +2968,13 @@ class WorkspaceApi:
|
|
|
3451
2968
|
_content_type: Optional[StrictStr] = None,
|
|
3452
2969
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3453
2970
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3454
|
-
) ->
|
|
3455
|
-
"""Get the Workspace security
|
|
2971
|
+
) -> WorkspaceSecurity:
|
|
2972
|
+
"""Get the Workspace security information
|
|
3456
2973
|
|
|
3457
2974
|
|
|
3458
|
-
:param organization_id:
|
|
2975
|
+
:param organization_id: The Organization identifier (required)
|
|
3459
2976
|
:type organization_id: str
|
|
3460
|
-
:param workspace_id:
|
|
2977
|
+
:param workspace_id: The Workspace identifier (required)
|
|
3461
2978
|
:type workspace_id: str
|
|
3462
2979
|
:param _request_timeout: timeout setting for this request. If one
|
|
3463
2980
|
number provided, it will be total request
|
|
@@ -3481,7 +2998,7 @@ class WorkspaceApi:
|
|
|
3481
2998
|
:return: Returns the result object.
|
|
3482
2999
|
""" # noqa: E501
|
|
3483
3000
|
|
|
3484
|
-
_param = self.
|
|
3001
|
+
_param = self._get_workspace_security_serialize(
|
|
3485
3002
|
organization_id=organization_id,
|
|
3486
3003
|
workspace_id=workspace_id,
|
|
3487
3004
|
_request_auth=_request_auth,
|
|
@@ -3491,7 +3008,7 @@ class WorkspaceApi:
|
|
|
3491
3008
|
)
|
|
3492
3009
|
|
|
3493
3010
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3494
|
-
'200': "
|
|
3011
|
+
'200': "WorkspaceSecurity",
|
|
3495
3012
|
'404': None,
|
|
3496
3013
|
}
|
|
3497
3014
|
response_data = self.api_client.call_api(
|
|
@@ -3506,10 +3023,10 @@ class WorkspaceApi:
|
|
|
3506
3023
|
|
|
3507
3024
|
|
|
3508
3025
|
@validate_call
|
|
3509
|
-
def
|
|
3026
|
+
def get_workspace_security_with_http_info(
|
|
3510
3027
|
self,
|
|
3511
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3512
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
3028
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
3029
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
3513
3030
|
_request_timeout: Union[
|
|
3514
3031
|
None,
|
|
3515
3032
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3522,13 +3039,13 @@ class WorkspaceApi:
|
|
|
3522
3039
|
_content_type: Optional[StrictStr] = None,
|
|
3523
3040
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3524
3041
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3525
|
-
) -> ApiResponse[
|
|
3526
|
-
"""Get the Workspace security
|
|
3042
|
+
) -> ApiResponse[WorkspaceSecurity]:
|
|
3043
|
+
"""Get the Workspace security information
|
|
3527
3044
|
|
|
3528
3045
|
|
|
3529
|
-
:param organization_id:
|
|
3046
|
+
:param organization_id: The Organization identifier (required)
|
|
3530
3047
|
:type organization_id: str
|
|
3531
|
-
:param workspace_id:
|
|
3048
|
+
:param workspace_id: The Workspace identifier (required)
|
|
3532
3049
|
:type workspace_id: str
|
|
3533
3050
|
:param _request_timeout: timeout setting for this request. If one
|
|
3534
3051
|
number provided, it will be total request
|
|
@@ -3552,7 +3069,7 @@ class WorkspaceApi:
|
|
|
3552
3069
|
:return: Returns the result object.
|
|
3553
3070
|
""" # noqa: E501
|
|
3554
3071
|
|
|
3555
|
-
_param = self.
|
|
3072
|
+
_param = self._get_workspace_security_serialize(
|
|
3556
3073
|
organization_id=organization_id,
|
|
3557
3074
|
workspace_id=workspace_id,
|
|
3558
3075
|
_request_auth=_request_auth,
|
|
@@ -3562,7 +3079,7 @@ class WorkspaceApi:
|
|
|
3562
3079
|
)
|
|
3563
3080
|
|
|
3564
3081
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3565
|
-
'200': "
|
|
3082
|
+
'200': "WorkspaceSecurity",
|
|
3566
3083
|
'404': None,
|
|
3567
3084
|
}
|
|
3568
3085
|
response_data = self.api_client.call_api(
|
|
@@ -3577,10 +3094,10 @@ class WorkspaceApi:
|
|
|
3577
3094
|
|
|
3578
3095
|
|
|
3579
3096
|
@validate_call
|
|
3580
|
-
def
|
|
3097
|
+
def get_workspace_security_without_preload_content(
|
|
3581
3098
|
self,
|
|
3582
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3583
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
3099
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
3100
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
3584
3101
|
_request_timeout: Union[
|
|
3585
3102
|
None,
|
|
3586
3103
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3594,12 +3111,12 @@ class WorkspaceApi:
|
|
|
3594
3111
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3595
3112
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3596
3113
|
) -> RESTResponseType:
|
|
3597
|
-
"""Get the Workspace security
|
|
3114
|
+
"""Get the Workspace security information
|
|
3598
3115
|
|
|
3599
3116
|
|
|
3600
|
-
:param organization_id:
|
|
3117
|
+
:param organization_id: The Organization identifier (required)
|
|
3601
3118
|
:type organization_id: str
|
|
3602
|
-
:param workspace_id:
|
|
3119
|
+
:param workspace_id: The Workspace identifier (required)
|
|
3603
3120
|
:type workspace_id: str
|
|
3604
3121
|
:param _request_timeout: timeout setting for this request. If one
|
|
3605
3122
|
number provided, it will be total request
|
|
@@ -3623,7 +3140,7 @@ class WorkspaceApi:
|
|
|
3623
3140
|
:return: Returns the result object.
|
|
3624
3141
|
""" # noqa: E501
|
|
3625
3142
|
|
|
3626
|
-
_param = self.
|
|
3143
|
+
_param = self._get_workspace_security_serialize(
|
|
3627
3144
|
organization_id=organization_id,
|
|
3628
3145
|
workspace_id=workspace_id,
|
|
3629
3146
|
_request_auth=_request_auth,
|
|
@@ -3633,7 +3150,7 @@ class WorkspaceApi:
|
|
|
3633
3150
|
)
|
|
3634
3151
|
|
|
3635
3152
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3636
|
-
'200': "
|
|
3153
|
+
'200': "WorkspaceSecurity",
|
|
3637
3154
|
'404': None,
|
|
3638
3155
|
}
|
|
3639
3156
|
response_data = self.api_client.call_api(
|
|
@@ -3643,7 +3160,7 @@ class WorkspaceApi:
|
|
|
3643
3160
|
return response_data.response
|
|
3644
3161
|
|
|
3645
3162
|
|
|
3646
|
-
def
|
|
3163
|
+
def _get_workspace_security_serialize(
|
|
3647
3164
|
self,
|
|
3648
3165
|
organization_id,
|
|
3649
3166
|
workspace_id,
|
|
@@ -3662,7 +3179,9 @@ class WorkspaceApi:
|
|
|
3662
3179
|
_query_params: List[Tuple[str, str]] = []
|
|
3663
3180
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3664
3181
|
_form_params: List[Tuple[str, str]] = []
|
|
3665
|
-
_files: Dict[
|
|
3182
|
+
_files: Dict[
|
|
3183
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3184
|
+
] = {}
|
|
3666
3185
|
_body_params: Optional[bytes] = None
|
|
3667
3186
|
|
|
3668
3187
|
# process the path parameters
|
|
@@ -3680,7 +3199,8 @@ class WorkspaceApi:
|
|
|
3680
3199
|
if 'Accept' not in _header_params:
|
|
3681
3200
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3682
3201
|
[
|
|
3683
|
-
'application/json'
|
|
3202
|
+
'application/json',
|
|
3203
|
+
'application/yaml'
|
|
3684
3204
|
]
|
|
3685
3205
|
)
|
|
3686
3206
|
|
|
@@ -3692,7 +3212,7 @@ class WorkspaceApi:
|
|
|
3692
3212
|
|
|
3693
3213
|
return self.api_client.param_serialize(
|
|
3694
3214
|
method='GET',
|
|
3695
|
-
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security
|
|
3215
|
+
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security',
|
|
3696
3216
|
path_params=_path_params,
|
|
3697
3217
|
query_params=_query_params,
|
|
3698
3218
|
header_params=_header_params,
|
|
@@ -3709,11 +3229,10 @@ class WorkspaceApi:
|
|
|
3709
3229
|
|
|
3710
3230
|
|
|
3711
3231
|
@validate_call
|
|
3712
|
-
def
|
|
3232
|
+
def list_workspace_files(
|
|
3713
3233
|
self,
|
|
3714
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3715
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
3716
|
-
dataset_id: Annotated[StrictStr, Field(description="dataset id to be linked to")],
|
|
3234
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
3235
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
3717
3236
|
_request_timeout: Union[
|
|
3718
3237
|
None,
|
|
3719
3238
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3726,16 +3245,14 @@ class WorkspaceApi:
|
|
|
3726
3245
|
_content_type: Optional[StrictStr] = None,
|
|
3727
3246
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3728
3247
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3729
|
-
) ->
|
|
3730
|
-
"""
|
|
3248
|
+
) -> List[WorkspaceFile]:
|
|
3249
|
+
"""List all Workspace files
|
|
3731
3250
|
|
|
3732
3251
|
|
|
3733
|
-
:param organization_id:
|
|
3252
|
+
:param organization_id: The Organization identifier (required)
|
|
3734
3253
|
:type organization_id: str
|
|
3735
|
-
:param workspace_id:
|
|
3254
|
+
:param workspace_id: The Workspace identifier (required)
|
|
3736
3255
|
:type workspace_id: str
|
|
3737
|
-
:param dataset_id: dataset id to be linked to (required)
|
|
3738
|
-
:type dataset_id: str
|
|
3739
3256
|
:param _request_timeout: timeout setting for this request. If one
|
|
3740
3257
|
number provided, it will be total request
|
|
3741
3258
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3758,10 +3275,9 @@ class WorkspaceApi:
|
|
|
3758
3275
|
:return: Returns the result object.
|
|
3759
3276
|
""" # noqa: E501
|
|
3760
3277
|
|
|
3761
|
-
_param = self.
|
|
3278
|
+
_param = self._list_workspace_files_serialize(
|
|
3762
3279
|
organization_id=organization_id,
|
|
3763
3280
|
workspace_id=workspace_id,
|
|
3764
|
-
dataset_id=dataset_id,
|
|
3765
3281
|
_request_auth=_request_auth,
|
|
3766
3282
|
_content_type=_content_type,
|
|
3767
3283
|
_headers=_headers,
|
|
@@ -3769,8 +3285,7 @@ class WorkspaceApi:
|
|
|
3769
3285
|
)
|
|
3770
3286
|
|
|
3771
3287
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3772
|
-
'200': "
|
|
3773
|
-
'400': None,
|
|
3288
|
+
'200': "List[WorkspaceFile]",
|
|
3774
3289
|
'404': None,
|
|
3775
3290
|
}
|
|
3776
3291
|
response_data = self.api_client.call_api(
|
|
@@ -3785,11 +3300,10 @@ class WorkspaceApi:
|
|
|
3785
3300
|
|
|
3786
3301
|
|
|
3787
3302
|
@validate_call
|
|
3788
|
-
def
|
|
3303
|
+
def list_workspace_files_with_http_info(
|
|
3789
3304
|
self,
|
|
3790
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3791
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
3792
|
-
dataset_id: Annotated[StrictStr, Field(description="dataset id to be linked to")],
|
|
3305
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
3306
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
3793
3307
|
_request_timeout: Union[
|
|
3794
3308
|
None,
|
|
3795
3309
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3802,16 +3316,14 @@ class WorkspaceApi:
|
|
|
3802
3316
|
_content_type: Optional[StrictStr] = None,
|
|
3803
3317
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3804
3318
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3805
|
-
) -> ApiResponse[
|
|
3806
|
-
"""
|
|
3319
|
+
) -> ApiResponse[List[WorkspaceFile]]:
|
|
3320
|
+
"""List all Workspace files
|
|
3807
3321
|
|
|
3808
3322
|
|
|
3809
|
-
:param organization_id:
|
|
3323
|
+
:param organization_id: The Organization identifier (required)
|
|
3810
3324
|
:type organization_id: str
|
|
3811
|
-
:param workspace_id:
|
|
3325
|
+
:param workspace_id: The Workspace identifier (required)
|
|
3812
3326
|
:type workspace_id: str
|
|
3813
|
-
:param dataset_id: dataset id to be linked to (required)
|
|
3814
|
-
:type dataset_id: str
|
|
3815
3327
|
:param _request_timeout: timeout setting for this request. If one
|
|
3816
3328
|
number provided, it will be total request
|
|
3817
3329
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3834,10 +3346,9 @@ class WorkspaceApi:
|
|
|
3834
3346
|
:return: Returns the result object.
|
|
3835
3347
|
""" # noqa: E501
|
|
3836
3348
|
|
|
3837
|
-
_param = self.
|
|
3349
|
+
_param = self._list_workspace_files_serialize(
|
|
3838
3350
|
organization_id=organization_id,
|
|
3839
3351
|
workspace_id=workspace_id,
|
|
3840
|
-
dataset_id=dataset_id,
|
|
3841
3352
|
_request_auth=_request_auth,
|
|
3842
3353
|
_content_type=_content_type,
|
|
3843
3354
|
_headers=_headers,
|
|
@@ -3845,8 +3356,7 @@ class WorkspaceApi:
|
|
|
3845
3356
|
)
|
|
3846
3357
|
|
|
3847
3358
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3848
|
-
'200': "
|
|
3849
|
-
'400': None,
|
|
3359
|
+
'200': "List[WorkspaceFile]",
|
|
3850
3360
|
'404': None,
|
|
3851
3361
|
}
|
|
3852
3362
|
response_data = self.api_client.call_api(
|
|
@@ -3861,11 +3371,10 @@ class WorkspaceApi:
|
|
|
3861
3371
|
|
|
3862
3372
|
|
|
3863
3373
|
@validate_call
|
|
3864
|
-
def
|
|
3374
|
+
def list_workspace_files_without_preload_content(
|
|
3865
3375
|
self,
|
|
3866
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
3867
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
3868
|
-
dataset_id: Annotated[StrictStr, Field(description="dataset id to be linked to")],
|
|
3376
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
3377
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
3869
3378
|
_request_timeout: Union[
|
|
3870
3379
|
None,
|
|
3871
3380
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3879,15 +3388,13 @@ class WorkspaceApi:
|
|
|
3879
3388
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3880
3389
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3881
3390
|
) -> RESTResponseType:
|
|
3882
|
-
"""
|
|
3391
|
+
"""List all Workspace files
|
|
3883
3392
|
|
|
3884
3393
|
|
|
3885
|
-
:param organization_id:
|
|
3394
|
+
:param organization_id: The Organization identifier (required)
|
|
3886
3395
|
:type organization_id: str
|
|
3887
|
-
:param workspace_id:
|
|
3396
|
+
:param workspace_id: The Workspace identifier (required)
|
|
3888
3397
|
:type workspace_id: str
|
|
3889
|
-
:param dataset_id: dataset id to be linked to (required)
|
|
3890
|
-
:type dataset_id: str
|
|
3891
3398
|
:param _request_timeout: timeout setting for this request. If one
|
|
3892
3399
|
number provided, it will be total request
|
|
3893
3400
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3910,10 +3417,9 @@ class WorkspaceApi:
|
|
|
3910
3417
|
:return: Returns the result object.
|
|
3911
3418
|
""" # noqa: E501
|
|
3912
3419
|
|
|
3913
|
-
_param = self.
|
|
3420
|
+
_param = self._list_workspace_files_serialize(
|
|
3914
3421
|
organization_id=organization_id,
|
|
3915
3422
|
workspace_id=workspace_id,
|
|
3916
|
-
dataset_id=dataset_id,
|
|
3917
3423
|
_request_auth=_request_auth,
|
|
3918
3424
|
_content_type=_content_type,
|
|
3919
3425
|
_headers=_headers,
|
|
@@ -3921,8 +3427,7 @@ class WorkspaceApi:
|
|
|
3921
3427
|
)
|
|
3922
3428
|
|
|
3923
3429
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3924
|
-
'200': "
|
|
3925
|
-
'400': None,
|
|
3430
|
+
'200': "List[WorkspaceFile]",
|
|
3926
3431
|
'404': None,
|
|
3927
3432
|
}
|
|
3928
3433
|
response_data = self.api_client.call_api(
|
|
@@ -3932,11 +3437,10 @@ class WorkspaceApi:
|
|
|
3932
3437
|
return response_data.response
|
|
3933
3438
|
|
|
3934
3439
|
|
|
3935
|
-
def
|
|
3440
|
+
def _list_workspace_files_serialize(
|
|
3936
3441
|
self,
|
|
3937
3442
|
organization_id,
|
|
3938
3443
|
workspace_id,
|
|
3939
|
-
dataset_id,
|
|
3940
3444
|
_request_auth,
|
|
3941
3445
|
_content_type,
|
|
3942
3446
|
_headers,
|
|
@@ -3952,7 +3456,9 @@ class WorkspaceApi:
|
|
|
3952
3456
|
_query_params: List[Tuple[str, str]] = []
|
|
3953
3457
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3954
3458
|
_form_params: List[Tuple[str, str]] = []
|
|
3955
|
-
_files: Dict[
|
|
3459
|
+
_files: Dict[
|
|
3460
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3461
|
+
] = {}
|
|
3956
3462
|
_body_params: Optional[bytes] = None
|
|
3957
3463
|
|
|
3958
3464
|
# process the path parameters
|
|
@@ -3961,10 +3467,6 @@ class WorkspaceApi:
|
|
|
3961
3467
|
if workspace_id is not None:
|
|
3962
3468
|
_path_params['workspace_id'] = workspace_id
|
|
3963
3469
|
# process the query parameters
|
|
3964
|
-
if dataset_id is not None:
|
|
3965
|
-
|
|
3966
|
-
_query_params.append(('datasetId', dataset_id))
|
|
3967
|
-
|
|
3968
3470
|
# process the header parameters
|
|
3969
3471
|
# process the form parameters
|
|
3970
3472
|
# process the body parameter
|
|
@@ -3974,7 +3476,8 @@ class WorkspaceApi:
|
|
|
3974
3476
|
if 'Accept' not in _header_params:
|
|
3975
3477
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3976
3478
|
[
|
|
3977
|
-
'application/json'
|
|
3479
|
+
'application/json',
|
|
3480
|
+
'application/yaml'
|
|
3978
3481
|
]
|
|
3979
3482
|
)
|
|
3980
3483
|
|
|
@@ -3985,8 +3488,8 @@ class WorkspaceApi:
|
|
|
3985
3488
|
]
|
|
3986
3489
|
|
|
3987
3490
|
return self.api_client.param_serialize(
|
|
3988
|
-
method='
|
|
3989
|
-
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/
|
|
3491
|
+
method='GET',
|
|
3492
|
+
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/files',
|
|
3990
3493
|
path_params=_path_params,
|
|
3991
3494
|
query_params=_query_params,
|
|
3992
3495
|
header_params=_header_params,
|
|
@@ -4003,11 +3506,11 @@ class WorkspaceApi:
|
|
|
4003
3506
|
|
|
4004
3507
|
|
|
4005
3508
|
@validate_call
|
|
4006
|
-
def
|
|
3509
|
+
def list_workspace_role_permissions(
|
|
4007
3510
|
self,
|
|
4008
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
4009
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
4010
|
-
|
|
3511
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
3512
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
3513
|
+
role: Annotated[StrictStr, Field(description="The Role")],
|
|
4011
3514
|
_request_timeout: Union[
|
|
4012
3515
|
None,
|
|
4013
3516
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4020,16 +3523,16 @@ class WorkspaceApi:
|
|
|
4020
3523
|
_content_type: Optional[StrictStr] = None,
|
|
4021
3524
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4022
3525
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4023
|
-
) ->
|
|
4024
|
-
"""
|
|
3526
|
+
) -> List[str]:
|
|
3527
|
+
"""Get the Workspace permission by given role
|
|
4025
3528
|
|
|
4026
3529
|
|
|
4027
|
-
:param organization_id:
|
|
3530
|
+
:param organization_id: The Organization identifier (required)
|
|
4028
3531
|
:type organization_id: str
|
|
4029
|
-
:param workspace_id:
|
|
3532
|
+
:param workspace_id: The Workspace identifier (required)
|
|
4030
3533
|
:type workspace_id: str
|
|
4031
|
-
:param
|
|
4032
|
-
:type
|
|
3534
|
+
:param role: The Role (required)
|
|
3535
|
+
:type role: str
|
|
4033
3536
|
:param _request_timeout: timeout setting for this request. If one
|
|
4034
3537
|
number provided, it will be total request
|
|
4035
3538
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4052,10 +3555,10 @@ class WorkspaceApi:
|
|
|
4052
3555
|
:return: Returns the result object.
|
|
4053
3556
|
""" # noqa: E501
|
|
4054
3557
|
|
|
4055
|
-
_param = self.
|
|
3558
|
+
_param = self._list_workspace_role_permissions_serialize(
|
|
4056
3559
|
organization_id=organization_id,
|
|
4057
3560
|
workspace_id=workspace_id,
|
|
4058
|
-
|
|
3561
|
+
role=role,
|
|
4059
3562
|
_request_auth=_request_auth,
|
|
4060
3563
|
_content_type=_content_type,
|
|
4061
3564
|
_headers=_headers,
|
|
@@ -4063,8 +3566,7 @@ class WorkspaceApi:
|
|
|
4063
3566
|
)
|
|
4064
3567
|
|
|
4065
3568
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4066
|
-
'
|
|
4067
|
-
'404': None,
|
|
3569
|
+
'200': "List[str]",
|
|
4068
3570
|
}
|
|
4069
3571
|
response_data = self.api_client.call_api(
|
|
4070
3572
|
*_param,
|
|
@@ -4078,11 +3580,11 @@ class WorkspaceApi:
|
|
|
4078
3580
|
|
|
4079
3581
|
|
|
4080
3582
|
@validate_call
|
|
4081
|
-
def
|
|
3583
|
+
def list_workspace_role_permissions_with_http_info(
|
|
4082
3584
|
self,
|
|
4083
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
4084
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
4085
|
-
|
|
3585
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
3586
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
3587
|
+
role: Annotated[StrictStr, Field(description="The Role")],
|
|
4086
3588
|
_request_timeout: Union[
|
|
4087
3589
|
None,
|
|
4088
3590
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4095,16 +3597,16 @@ class WorkspaceApi:
|
|
|
4095
3597
|
_content_type: Optional[StrictStr] = None,
|
|
4096
3598
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4097
3599
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4098
|
-
) -> ApiResponse[
|
|
4099
|
-
"""
|
|
3600
|
+
) -> ApiResponse[List[str]]:
|
|
3601
|
+
"""Get the Workspace permission by given role
|
|
4100
3602
|
|
|
4101
3603
|
|
|
4102
|
-
:param organization_id:
|
|
3604
|
+
:param organization_id: The Organization identifier (required)
|
|
4103
3605
|
:type organization_id: str
|
|
4104
|
-
:param workspace_id:
|
|
3606
|
+
:param workspace_id: The Workspace identifier (required)
|
|
4105
3607
|
:type workspace_id: str
|
|
4106
|
-
:param
|
|
4107
|
-
:type
|
|
3608
|
+
:param role: The Role (required)
|
|
3609
|
+
:type role: str
|
|
4108
3610
|
:param _request_timeout: timeout setting for this request. If one
|
|
4109
3611
|
number provided, it will be total request
|
|
4110
3612
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4127,10 +3629,10 @@ class WorkspaceApi:
|
|
|
4127
3629
|
:return: Returns the result object.
|
|
4128
3630
|
""" # noqa: E501
|
|
4129
3631
|
|
|
4130
|
-
_param = self.
|
|
3632
|
+
_param = self._list_workspace_role_permissions_serialize(
|
|
4131
3633
|
organization_id=organization_id,
|
|
4132
3634
|
workspace_id=workspace_id,
|
|
4133
|
-
|
|
3635
|
+
role=role,
|
|
4134
3636
|
_request_auth=_request_auth,
|
|
4135
3637
|
_content_type=_content_type,
|
|
4136
3638
|
_headers=_headers,
|
|
@@ -4138,8 +3640,7 @@ class WorkspaceApi:
|
|
|
4138
3640
|
)
|
|
4139
3641
|
|
|
4140
3642
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4141
|
-
'
|
|
4142
|
-
'404': None,
|
|
3643
|
+
'200': "List[str]",
|
|
4143
3644
|
}
|
|
4144
3645
|
response_data = self.api_client.call_api(
|
|
4145
3646
|
*_param,
|
|
@@ -4153,11 +3654,11 @@ class WorkspaceApi:
|
|
|
4153
3654
|
|
|
4154
3655
|
|
|
4155
3656
|
@validate_call
|
|
4156
|
-
def
|
|
3657
|
+
def list_workspace_role_permissions_without_preload_content(
|
|
4157
3658
|
self,
|
|
4158
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
4159
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
4160
|
-
|
|
3659
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
3660
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
3661
|
+
role: Annotated[StrictStr, Field(description="The Role")],
|
|
4161
3662
|
_request_timeout: Union[
|
|
4162
3663
|
None,
|
|
4163
3664
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4171,15 +3672,15 @@ class WorkspaceApi:
|
|
|
4171
3672
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4172
3673
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4173
3674
|
) -> RESTResponseType:
|
|
4174
|
-
"""
|
|
3675
|
+
"""Get the Workspace permission by given role
|
|
4175
3676
|
|
|
4176
3677
|
|
|
4177
|
-
:param organization_id:
|
|
3678
|
+
:param organization_id: The Organization identifier (required)
|
|
4178
3679
|
:type organization_id: str
|
|
4179
|
-
:param workspace_id:
|
|
3680
|
+
:param workspace_id: The Workspace identifier (required)
|
|
4180
3681
|
:type workspace_id: str
|
|
4181
|
-
:param
|
|
4182
|
-
:type
|
|
3682
|
+
:param role: The Role (required)
|
|
3683
|
+
:type role: str
|
|
4183
3684
|
:param _request_timeout: timeout setting for this request. If one
|
|
4184
3685
|
number provided, it will be total request
|
|
4185
3686
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4202,10 +3703,10 @@ class WorkspaceApi:
|
|
|
4202
3703
|
:return: Returns the result object.
|
|
4203
3704
|
""" # noqa: E501
|
|
4204
3705
|
|
|
4205
|
-
_param = self.
|
|
3706
|
+
_param = self._list_workspace_role_permissions_serialize(
|
|
4206
3707
|
organization_id=organization_id,
|
|
4207
3708
|
workspace_id=workspace_id,
|
|
4208
|
-
|
|
3709
|
+
role=role,
|
|
4209
3710
|
_request_auth=_request_auth,
|
|
4210
3711
|
_content_type=_content_type,
|
|
4211
3712
|
_headers=_headers,
|
|
@@ -4213,8 +3714,7 @@ class WorkspaceApi:
|
|
|
4213
3714
|
)
|
|
4214
3715
|
|
|
4215
3716
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4216
|
-
'
|
|
4217
|
-
'404': None,
|
|
3717
|
+
'200': "List[str]",
|
|
4218
3718
|
}
|
|
4219
3719
|
response_data = self.api_client.call_api(
|
|
4220
3720
|
*_param,
|
|
@@ -4223,11 +3723,11 @@ class WorkspaceApi:
|
|
|
4223
3723
|
return response_data.response
|
|
4224
3724
|
|
|
4225
3725
|
|
|
4226
|
-
def
|
|
3726
|
+
def _list_workspace_role_permissions_serialize(
|
|
4227
3727
|
self,
|
|
4228
3728
|
organization_id,
|
|
4229
3729
|
workspace_id,
|
|
4230
|
-
|
|
3730
|
+
role,
|
|
4231
3731
|
_request_auth,
|
|
4232
3732
|
_content_type,
|
|
4233
3733
|
_headers,
|
|
@@ -4243,7 +3743,9 @@ class WorkspaceApi:
|
|
|
4243
3743
|
_query_params: List[Tuple[str, str]] = []
|
|
4244
3744
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4245
3745
|
_form_params: List[Tuple[str, str]] = []
|
|
4246
|
-
_files: Dict[
|
|
3746
|
+
_files: Dict[
|
|
3747
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3748
|
+
] = {}
|
|
4247
3749
|
_body_params: Optional[bytes] = None
|
|
4248
3750
|
|
|
4249
3751
|
# process the path parameters
|
|
@@ -4251,14 +3753,22 @@ class WorkspaceApi:
|
|
|
4251
3753
|
_path_params['organization_id'] = organization_id
|
|
4252
3754
|
if workspace_id is not None:
|
|
4253
3755
|
_path_params['workspace_id'] = workspace_id
|
|
4254
|
-
if
|
|
4255
|
-
_path_params['
|
|
3756
|
+
if role is not None:
|
|
3757
|
+
_path_params['role'] = role
|
|
4256
3758
|
# process the query parameters
|
|
4257
3759
|
# process the header parameters
|
|
4258
3760
|
# process the form parameters
|
|
4259
3761
|
# process the body parameter
|
|
4260
3762
|
|
|
4261
3763
|
|
|
3764
|
+
# set the HTTP header `Accept`
|
|
3765
|
+
if 'Accept' not in _header_params:
|
|
3766
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3767
|
+
[
|
|
3768
|
+
'application/json',
|
|
3769
|
+
'application/yaml'
|
|
3770
|
+
]
|
|
3771
|
+
)
|
|
4262
3772
|
|
|
4263
3773
|
|
|
4264
3774
|
# authentication setting
|
|
@@ -4267,8 +3777,8 @@ class WorkspaceApi:
|
|
|
4267
3777
|
]
|
|
4268
3778
|
|
|
4269
3779
|
return self.api_client.param_serialize(
|
|
4270
|
-
method='
|
|
4271
|
-
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/
|
|
3780
|
+
method='GET',
|
|
3781
|
+
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/permissions/{role}',
|
|
4272
3782
|
path_params=_path_params,
|
|
4273
3783
|
query_params=_query_params,
|
|
4274
3784
|
header_params=_header_params,
|
|
@@ -4285,11 +3795,10 @@ class WorkspaceApi:
|
|
|
4285
3795
|
|
|
4286
3796
|
|
|
4287
3797
|
@validate_call
|
|
4288
|
-
def
|
|
3798
|
+
def list_workspace_security_users(
|
|
4289
3799
|
self,
|
|
4290
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
4291
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
4292
|
-
workspace_role: Annotated[WorkspaceRole, Field(description="This change the workspace 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 workspace.")],
|
|
3800
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
3801
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
4293
3802
|
_request_timeout: Union[
|
|
4294
3803
|
None,
|
|
4295
3804
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4302,16 +3811,14 @@ class WorkspaceApi:
|
|
|
4302
3811
|
_content_type: Optional[StrictStr] = None,
|
|
4303
3812
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4304
3813
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4305
|
-
) ->
|
|
4306
|
-
"""
|
|
3814
|
+
) -> List[str]:
|
|
3815
|
+
"""Get the Workspace security users list
|
|
4307
3816
|
|
|
4308
3817
|
|
|
4309
|
-
:param organization_id:
|
|
3818
|
+
:param organization_id: The Organization identifier (required)
|
|
4310
3819
|
:type organization_id: str
|
|
4311
|
-
:param workspace_id:
|
|
3820
|
+
:param workspace_id: The Workspace identifier (required)
|
|
4312
3821
|
:type workspace_id: str
|
|
4313
|
-
:param workspace_role: This change the workspace 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 workspace. (required)
|
|
4314
|
-
:type workspace_role: WorkspaceRole
|
|
4315
3822
|
:param _request_timeout: timeout setting for this request. If one
|
|
4316
3823
|
number provided, it will be total request
|
|
4317
3824
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4334,10 +3841,9 @@ class WorkspaceApi:
|
|
|
4334
3841
|
:return: Returns the result object.
|
|
4335
3842
|
""" # noqa: E501
|
|
4336
3843
|
|
|
4337
|
-
_param = self.
|
|
3844
|
+
_param = self._list_workspace_security_users_serialize(
|
|
4338
3845
|
organization_id=organization_id,
|
|
4339
3846
|
workspace_id=workspace_id,
|
|
4340
|
-
workspace_role=workspace_role,
|
|
4341
3847
|
_request_auth=_request_auth,
|
|
4342
3848
|
_content_type=_content_type,
|
|
4343
3849
|
_headers=_headers,
|
|
@@ -4345,7 +3851,7 @@ class WorkspaceApi:
|
|
|
4345
3851
|
)
|
|
4346
3852
|
|
|
4347
3853
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4348
|
-
'
|
|
3854
|
+
'200': "List[str]",
|
|
4349
3855
|
'404': None,
|
|
4350
3856
|
}
|
|
4351
3857
|
response_data = self.api_client.call_api(
|
|
@@ -4360,11 +3866,10 @@ class WorkspaceApi:
|
|
|
4360
3866
|
|
|
4361
3867
|
|
|
4362
3868
|
@validate_call
|
|
4363
|
-
def
|
|
3869
|
+
def list_workspace_security_users_with_http_info(
|
|
4364
3870
|
self,
|
|
4365
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
4366
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
4367
|
-
workspace_role: Annotated[WorkspaceRole, Field(description="This change the workspace 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 workspace.")],
|
|
3871
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
3872
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
4368
3873
|
_request_timeout: Union[
|
|
4369
3874
|
None,
|
|
4370
3875
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4377,16 +3882,14 @@ class WorkspaceApi:
|
|
|
4377
3882
|
_content_type: Optional[StrictStr] = None,
|
|
4378
3883
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4379
3884
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4380
|
-
) -> ApiResponse[
|
|
4381
|
-
"""
|
|
3885
|
+
) -> ApiResponse[List[str]]:
|
|
3886
|
+
"""Get the Workspace security users list
|
|
4382
3887
|
|
|
4383
3888
|
|
|
4384
|
-
:param organization_id:
|
|
3889
|
+
:param organization_id: The Organization identifier (required)
|
|
4385
3890
|
:type organization_id: str
|
|
4386
|
-
:param workspace_id:
|
|
3891
|
+
:param workspace_id: The Workspace identifier (required)
|
|
4387
3892
|
:type workspace_id: str
|
|
4388
|
-
:param workspace_role: This change the workspace 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 workspace. (required)
|
|
4389
|
-
:type workspace_role: WorkspaceRole
|
|
4390
3893
|
:param _request_timeout: timeout setting for this request. If one
|
|
4391
3894
|
number provided, it will be total request
|
|
4392
3895
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4409,10 +3912,9 @@ class WorkspaceApi:
|
|
|
4409
3912
|
:return: Returns the result object.
|
|
4410
3913
|
""" # noqa: E501
|
|
4411
3914
|
|
|
4412
|
-
_param = self.
|
|
3915
|
+
_param = self._list_workspace_security_users_serialize(
|
|
4413
3916
|
organization_id=organization_id,
|
|
4414
3917
|
workspace_id=workspace_id,
|
|
4415
|
-
workspace_role=workspace_role,
|
|
4416
3918
|
_request_auth=_request_auth,
|
|
4417
3919
|
_content_type=_content_type,
|
|
4418
3920
|
_headers=_headers,
|
|
@@ -4420,7 +3922,7 @@ class WorkspaceApi:
|
|
|
4420
3922
|
)
|
|
4421
3923
|
|
|
4422
3924
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4423
|
-
'
|
|
3925
|
+
'200': "List[str]",
|
|
4424
3926
|
'404': None,
|
|
4425
3927
|
}
|
|
4426
3928
|
response_data = self.api_client.call_api(
|
|
@@ -4435,11 +3937,10 @@ class WorkspaceApi:
|
|
|
4435
3937
|
|
|
4436
3938
|
|
|
4437
3939
|
@validate_call
|
|
4438
|
-
def
|
|
3940
|
+
def list_workspace_security_users_without_preload_content(
|
|
4439
3941
|
self,
|
|
4440
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
4441
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
4442
|
-
workspace_role: Annotated[WorkspaceRole, Field(description="This change the workspace 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 workspace.")],
|
|
3942
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
3943
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
4443
3944
|
_request_timeout: Union[
|
|
4444
3945
|
None,
|
|
4445
3946
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4453,15 +3954,13 @@ class WorkspaceApi:
|
|
|
4453
3954
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4454
3955
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4455
3956
|
) -> RESTResponseType:
|
|
4456
|
-
"""
|
|
3957
|
+
"""Get the Workspace security users list
|
|
4457
3958
|
|
|
4458
3959
|
|
|
4459
|
-
:param organization_id:
|
|
3960
|
+
:param organization_id: The Organization identifier (required)
|
|
4460
3961
|
:type organization_id: str
|
|
4461
|
-
:param workspace_id:
|
|
3962
|
+
:param workspace_id: The Workspace identifier (required)
|
|
4462
3963
|
:type workspace_id: str
|
|
4463
|
-
:param workspace_role: This change the workspace 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 workspace. (required)
|
|
4464
|
-
:type workspace_role: WorkspaceRole
|
|
4465
3964
|
:param _request_timeout: timeout setting for this request. If one
|
|
4466
3965
|
number provided, it will be total request
|
|
4467
3966
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4484,10 +3983,9 @@ class WorkspaceApi:
|
|
|
4484
3983
|
:return: Returns the result object.
|
|
4485
3984
|
""" # noqa: E501
|
|
4486
3985
|
|
|
4487
|
-
_param = self.
|
|
3986
|
+
_param = self._list_workspace_security_users_serialize(
|
|
4488
3987
|
organization_id=organization_id,
|
|
4489
3988
|
workspace_id=workspace_id,
|
|
4490
|
-
workspace_role=workspace_role,
|
|
4491
3989
|
_request_auth=_request_auth,
|
|
4492
3990
|
_content_type=_content_type,
|
|
4493
3991
|
_headers=_headers,
|
|
@@ -4495,7 +3993,7 @@ class WorkspaceApi:
|
|
|
4495
3993
|
)
|
|
4496
3994
|
|
|
4497
3995
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4498
|
-
'
|
|
3996
|
+
'200': "List[str]",
|
|
4499
3997
|
'404': None,
|
|
4500
3998
|
}
|
|
4501
3999
|
response_data = self.api_client.call_api(
|
|
@@ -4505,11 +4003,10 @@ class WorkspaceApi:
|
|
|
4505
4003
|
return response_data.response
|
|
4506
4004
|
|
|
4507
4005
|
|
|
4508
|
-
def
|
|
4006
|
+
def _list_workspace_security_users_serialize(
|
|
4509
4007
|
self,
|
|
4510
4008
|
organization_id,
|
|
4511
4009
|
workspace_id,
|
|
4512
|
-
workspace_role,
|
|
4513
4010
|
_request_auth,
|
|
4514
4011
|
_content_type,
|
|
4515
4012
|
_headers,
|
|
@@ -4525,7 +4022,9 @@ class WorkspaceApi:
|
|
|
4525
4022
|
_query_params: List[Tuple[str, str]] = []
|
|
4526
4023
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4527
4024
|
_form_params: List[Tuple[str, str]] = []
|
|
4528
|
-
_files: Dict[
|
|
4025
|
+
_files: Dict[
|
|
4026
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4027
|
+
] = {}
|
|
4529
4028
|
_body_params: Optional[bytes] = None
|
|
4530
4029
|
|
|
4531
4030
|
# process the path parameters
|
|
@@ -4537,32 +4036,17 @@ class WorkspaceApi:
|
|
|
4537
4036
|
# process the header parameters
|
|
4538
4037
|
# process the form parameters
|
|
4539
4038
|
# process the body parameter
|
|
4540
|
-
if workspace_role is not None:
|
|
4541
|
-
_body_params = workspace_role
|
|
4542
4039
|
|
|
4543
4040
|
|
|
4544
4041
|
# set the HTTP header `Accept`
|
|
4545
4042
|
if 'Accept' not in _header_params:
|
|
4546
4043
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4547
4044
|
[
|
|
4548
|
-
'application/json'
|
|
4045
|
+
'application/json',
|
|
4046
|
+
'application/yaml'
|
|
4549
4047
|
]
|
|
4550
4048
|
)
|
|
4551
4049
|
|
|
4552
|
-
# set the HTTP header `Content-Type`
|
|
4553
|
-
if _content_type:
|
|
4554
|
-
_header_params['Content-Type'] = _content_type
|
|
4555
|
-
else:
|
|
4556
|
-
_default_content_type = (
|
|
4557
|
-
self.api_client.select_header_content_type(
|
|
4558
|
-
[
|
|
4559
|
-
'application/json',
|
|
4560
|
-
'application/yaml'
|
|
4561
|
-
]
|
|
4562
|
-
)
|
|
4563
|
-
)
|
|
4564
|
-
if _default_content_type is not None:
|
|
4565
|
-
_header_params['Content-Type'] = _default_content_type
|
|
4566
4050
|
|
|
4567
4051
|
# authentication setting
|
|
4568
4052
|
_auth_settings: List[str] = [
|
|
@@ -4570,8 +4054,8 @@ class WorkspaceApi:
|
|
|
4570
4054
|
]
|
|
4571
4055
|
|
|
4572
4056
|
return self.api_client.param_serialize(
|
|
4573
|
-
method='
|
|
4574
|
-
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/
|
|
4057
|
+
method='GET',
|
|
4058
|
+
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/users',
|
|
4575
4059
|
path_params=_path_params,
|
|
4576
4060
|
query_params=_query_params,
|
|
4577
4061
|
header_params=_header_params,
|
|
@@ -4588,11 +4072,11 @@ class WorkspaceApi:
|
|
|
4588
4072
|
|
|
4589
4073
|
|
|
4590
4074
|
@validate_call
|
|
4591
|
-
def
|
|
4075
|
+
def list_workspaces(
|
|
4592
4076
|
self,
|
|
4593
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
4594
|
-
|
|
4595
|
-
|
|
4077
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
4078
|
+
page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
|
|
4079
|
+
size: Annotated[Optional[StrictInt], Field(description="Amount of result by page")] = None,
|
|
4596
4080
|
_request_timeout: Union[
|
|
4597
4081
|
None,
|
|
4598
4082
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4605,16 +4089,16 @@ class WorkspaceApi:
|
|
|
4605
4089
|
_content_type: Optional[StrictStr] = None,
|
|
4606
4090
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4607
4091
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4608
|
-
) -> Workspace:
|
|
4609
|
-
"""
|
|
4092
|
+
) -> List[Workspace]:
|
|
4093
|
+
"""List all Workspaces
|
|
4610
4094
|
|
|
4611
4095
|
|
|
4612
|
-
:param organization_id:
|
|
4096
|
+
:param organization_id: The Organization identifier (required)
|
|
4613
4097
|
:type organization_id: str
|
|
4614
|
-
:param
|
|
4615
|
-
:type
|
|
4616
|
-
:param
|
|
4617
|
-
:type
|
|
4098
|
+
:param page: page number to query (first page is at index 0)
|
|
4099
|
+
:type page: int
|
|
4100
|
+
:param size: Amount of result by page
|
|
4101
|
+
:type size: int
|
|
4618
4102
|
:param _request_timeout: timeout setting for this request. If one
|
|
4619
4103
|
number provided, it will be total request
|
|
4620
4104
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4637,10 +4121,10 @@ class WorkspaceApi:
|
|
|
4637
4121
|
:return: Returns the result object.
|
|
4638
4122
|
""" # noqa: E501
|
|
4639
4123
|
|
|
4640
|
-
_param = self.
|
|
4124
|
+
_param = self._list_workspaces_serialize(
|
|
4641
4125
|
organization_id=organization_id,
|
|
4642
|
-
|
|
4643
|
-
|
|
4126
|
+
page=page,
|
|
4127
|
+
size=size,
|
|
4644
4128
|
_request_auth=_request_auth,
|
|
4645
4129
|
_content_type=_content_type,
|
|
4646
4130
|
_headers=_headers,
|
|
@@ -4648,9 +4132,7 @@ class WorkspaceApi:
|
|
|
4648
4132
|
)
|
|
4649
4133
|
|
|
4650
4134
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4651
|
-
'200': "Workspace",
|
|
4652
|
-
'400': None,
|
|
4653
|
-
'404': None,
|
|
4135
|
+
'200': "List[Workspace]",
|
|
4654
4136
|
}
|
|
4655
4137
|
response_data = self.api_client.call_api(
|
|
4656
4138
|
*_param,
|
|
@@ -4664,11 +4146,11 @@ class WorkspaceApi:
|
|
|
4664
4146
|
|
|
4665
4147
|
|
|
4666
4148
|
@validate_call
|
|
4667
|
-
def
|
|
4149
|
+
def list_workspaces_with_http_info(
|
|
4668
4150
|
self,
|
|
4669
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
4670
|
-
|
|
4671
|
-
|
|
4151
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
4152
|
+
page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
|
|
4153
|
+
size: Annotated[Optional[StrictInt], Field(description="Amount of result by page")] = None,
|
|
4672
4154
|
_request_timeout: Union[
|
|
4673
4155
|
None,
|
|
4674
4156
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4681,16 +4163,16 @@ class WorkspaceApi:
|
|
|
4681
4163
|
_content_type: Optional[StrictStr] = None,
|
|
4682
4164
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4683
4165
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4684
|
-
) -> ApiResponse[Workspace]:
|
|
4685
|
-
"""
|
|
4166
|
+
) -> ApiResponse[List[Workspace]]:
|
|
4167
|
+
"""List all Workspaces
|
|
4686
4168
|
|
|
4687
4169
|
|
|
4688
|
-
:param organization_id:
|
|
4170
|
+
:param organization_id: The Organization identifier (required)
|
|
4689
4171
|
:type organization_id: str
|
|
4690
|
-
:param
|
|
4691
|
-
:type
|
|
4692
|
-
:param
|
|
4693
|
-
:type
|
|
4172
|
+
:param page: page number to query (first page is at index 0)
|
|
4173
|
+
:type page: int
|
|
4174
|
+
:param size: Amount of result by page
|
|
4175
|
+
:type size: int
|
|
4694
4176
|
:param _request_timeout: timeout setting for this request. If one
|
|
4695
4177
|
number provided, it will be total request
|
|
4696
4178
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4713,10 +4195,10 @@ class WorkspaceApi:
|
|
|
4713
4195
|
:return: Returns the result object.
|
|
4714
4196
|
""" # noqa: E501
|
|
4715
4197
|
|
|
4716
|
-
_param = self.
|
|
4198
|
+
_param = self._list_workspaces_serialize(
|
|
4717
4199
|
organization_id=organization_id,
|
|
4718
|
-
|
|
4719
|
-
|
|
4200
|
+
page=page,
|
|
4201
|
+
size=size,
|
|
4720
4202
|
_request_auth=_request_auth,
|
|
4721
4203
|
_content_type=_content_type,
|
|
4722
4204
|
_headers=_headers,
|
|
@@ -4724,9 +4206,7 @@ class WorkspaceApi:
|
|
|
4724
4206
|
)
|
|
4725
4207
|
|
|
4726
4208
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4727
|
-
'200': "Workspace",
|
|
4728
|
-
'400': None,
|
|
4729
|
-
'404': None,
|
|
4209
|
+
'200': "List[Workspace]",
|
|
4730
4210
|
}
|
|
4731
4211
|
response_data = self.api_client.call_api(
|
|
4732
4212
|
*_param,
|
|
@@ -4740,11 +4220,11 @@ class WorkspaceApi:
|
|
|
4740
4220
|
|
|
4741
4221
|
|
|
4742
4222
|
@validate_call
|
|
4743
|
-
def
|
|
4223
|
+
def list_workspaces_without_preload_content(
|
|
4744
4224
|
self,
|
|
4745
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
4746
|
-
|
|
4747
|
-
|
|
4225
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
4226
|
+
page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
|
|
4227
|
+
size: Annotated[Optional[StrictInt], Field(description="Amount of result by page")] = None,
|
|
4748
4228
|
_request_timeout: Union[
|
|
4749
4229
|
None,
|
|
4750
4230
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4758,15 +4238,15 @@ class WorkspaceApi:
|
|
|
4758
4238
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4759
4239
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4760
4240
|
) -> RESTResponseType:
|
|
4761
|
-
"""
|
|
4241
|
+
"""List all Workspaces
|
|
4762
4242
|
|
|
4763
4243
|
|
|
4764
|
-
:param organization_id:
|
|
4244
|
+
:param organization_id: The Organization identifier (required)
|
|
4765
4245
|
:type organization_id: str
|
|
4766
|
-
:param
|
|
4767
|
-
:type
|
|
4768
|
-
:param
|
|
4769
|
-
:type
|
|
4246
|
+
:param page: page number to query (first page is at index 0)
|
|
4247
|
+
:type page: int
|
|
4248
|
+
:param size: Amount of result by page
|
|
4249
|
+
:type size: int
|
|
4770
4250
|
:param _request_timeout: timeout setting for this request. If one
|
|
4771
4251
|
number provided, it will be total request
|
|
4772
4252
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4789,10 +4269,10 @@ class WorkspaceApi:
|
|
|
4789
4269
|
:return: Returns the result object.
|
|
4790
4270
|
""" # noqa: E501
|
|
4791
4271
|
|
|
4792
|
-
_param = self.
|
|
4272
|
+
_param = self._list_workspaces_serialize(
|
|
4793
4273
|
organization_id=organization_id,
|
|
4794
|
-
|
|
4795
|
-
|
|
4274
|
+
page=page,
|
|
4275
|
+
size=size,
|
|
4796
4276
|
_request_auth=_request_auth,
|
|
4797
4277
|
_content_type=_content_type,
|
|
4798
4278
|
_headers=_headers,
|
|
@@ -4800,9 +4280,7 @@ class WorkspaceApi:
|
|
|
4800
4280
|
)
|
|
4801
4281
|
|
|
4802
4282
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4803
|
-
'200': "Workspace",
|
|
4804
|
-
'400': None,
|
|
4805
|
-
'404': None,
|
|
4283
|
+
'200': "List[Workspace]",
|
|
4806
4284
|
}
|
|
4807
4285
|
response_data = self.api_client.call_api(
|
|
4808
4286
|
*_param,
|
|
@@ -4811,11 +4289,11 @@ class WorkspaceApi:
|
|
|
4811
4289
|
return response_data.response
|
|
4812
4290
|
|
|
4813
4291
|
|
|
4814
|
-
def
|
|
4292
|
+
def _list_workspaces_serialize(
|
|
4815
4293
|
self,
|
|
4816
4294
|
organization_id,
|
|
4817
|
-
|
|
4818
|
-
|
|
4295
|
+
page,
|
|
4296
|
+
size,
|
|
4819
4297
|
_request_auth,
|
|
4820
4298
|
_content_type,
|
|
4821
4299
|
_headers,
|
|
@@ -4831,18 +4309,22 @@ class WorkspaceApi:
|
|
|
4831
4309
|
_query_params: List[Tuple[str, str]] = []
|
|
4832
4310
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4833
4311
|
_form_params: List[Tuple[str, str]] = []
|
|
4834
|
-
_files: Dict[
|
|
4312
|
+
_files: Dict[
|
|
4313
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4314
|
+
] = {}
|
|
4835
4315
|
_body_params: Optional[bytes] = None
|
|
4836
4316
|
|
|
4837
4317
|
# process the path parameters
|
|
4838
4318
|
if organization_id is not None:
|
|
4839
4319
|
_path_params['organization_id'] = organization_id
|
|
4840
|
-
if workspace_id is not None:
|
|
4841
|
-
_path_params['workspace_id'] = workspace_id
|
|
4842
4320
|
# process the query parameters
|
|
4843
|
-
if
|
|
4321
|
+
if page is not None:
|
|
4322
|
+
|
|
4323
|
+
_query_params.append(('page', page))
|
|
4324
|
+
|
|
4325
|
+
if size is not None:
|
|
4844
4326
|
|
|
4845
|
-
_query_params.append(('
|
|
4327
|
+
_query_params.append(('size', size))
|
|
4846
4328
|
|
|
4847
4329
|
# process the header parameters
|
|
4848
4330
|
# process the form parameters
|
|
@@ -4853,7 +4335,8 @@ class WorkspaceApi:
|
|
|
4853
4335
|
if 'Accept' not in _header_params:
|
|
4854
4336
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4855
4337
|
[
|
|
4856
|
-
'application/json'
|
|
4338
|
+
'application/json',
|
|
4339
|
+
'application/yaml'
|
|
4857
4340
|
]
|
|
4858
4341
|
)
|
|
4859
4342
|
|
|
@@ -4864,8 +4347,8 @@ class WorkspaceApi:
|
|
|
4864
4347
|
]
|
|
4865
4348
|
|
|
4866
4349
|
return self.api_client.param_serialize(
|
|
4867
|
-
method='
|
|
4868
|
-
resource_path='/organizations/{organization_id}/workspaces
|
|
4350
|
+
method='GET',
|
|
4351
|
+
resource_path='/organizations/{organization_id}/workspaces',
|
|
4869
4352
|
path_params=_path_params,
|
|
4870
4353
|
query_params=_query_params,
|
|
4871
4354
|
header_params=_header_params,
|
|
@@ -4884,9 +4367,9 @@ class WorkspaceApi:
|
|
|
4884
4367
|
@validate_call
|
|
4885
4368
|
def update_workspace(
|
|
4886
4369
|
self,
|
|
4887
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
4888
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
4889
|
-
|
|
4370
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
4371
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
4372
|
+
workspace_update_request: Annotated[WorkspaceUpdateRequest, Field(description="The new Workspace details. This endpoint can't be used to update security")],
|
|
4890
4373
|
_request_timeout: Union[
|
|
4891
4374
|
None,
|
|
4892
4375
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4903,12 +4386,12 @@ class WorkspaceApi:
|
|
|
4903
4386
|
"""Update a workspace
|
|
4904
4387
|
|
|
4905
4388
|
|
|
4906
|
-
:param organization_id:
|
|
4389
|
+
:param organization_id: The Organization identifier (required)
|
|
4907
4390
|
:type organization_id: str
|
|
4908
|
-
:param workspace_id:
|
|
4391
|
+
:param workspace_id: The Workspace identifier (required)
|
|
4909
4392
|
:type workspace_id: str
|
|
4910
|
-
:param
|
|
4911
|
-
:type
|
|
4393
|
+
:param workspace_update_request: The new Workspace details. This endpoint can't be used to update security (required)
|
|
4394
|
+
:type workspace_update_request: WorkspaceUpdateRequest
|
|
4912
4395
|
:param _request_timeout: timeout setting for this request. If one
|
|
4913
4396
|
number provided, it will be total request
|
|
4914
4397
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4934,7 +4417,7 @@ class WorkspaceApi:
|
|
|
4934
4417
|
_param = self._update_workspace_serialize(
|
|
4935
4418
|
organization_id=organization_id,
|
|
4936
4419
|
workspace_id=workspace_id,
|
|
4937
|
-
|
|
4420
|
+
workspace_update_request=workspace_update_request,
|
|
4938
4421
|
_request_auth=_request_auth,
|
|
4939
4422
|
_content_type=_content_type,
|
|
4940
4423
|
_headers=_headers,
|
|
@@ -4960,9 +4443,9 @@ class WorkspaceApi:
|
|
|
4960
4443
|
@validate_call
|
|
4961
4444
|
def update_workspace_with_http_info(
|
|
4962
4445
|
self,
|
|
4963
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
4964
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
4965
|
-
|
|
4446
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
4447
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
4448
|
+
workspace_update_request: Annotated[WorkspaceUpdateRequest, Field(description="The new Workspace details. This endpoint can't be used to update security")],
|
|
4966
4449
|
_request_timeout: Union[
|
|
4967
4450
|
None,
|
|
4968
4451
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4979,12 +4462,12 @@ class WorkspaceApi:
|
|
|
4979
4462
|
"""Update a workspace
|
|
4980
4463
|
|
|
4981
4464
|
|
|
4982
|
-
:param organization_id:
|
|
4465
|
+
:param organization_id: The Organization identifier (required)
|
|
4983
4466
|
:type organization_id: str
|
|
4984
|
-
:param workspace_id:
|
|
4467
|
+
:param workspace_id: The Workspace identifier (required)
|
|
4985
4468
|
:type workspace_id: str
|
|
4986
|
-
:param
|
|
4987
|
-
:type
|
|
4469
|
+
:param workspace_update_request: The new Workspace details. This endpoint can't be used to update security (required)
|
|
4470
|
+
:type workspace_update_request: WorkspaceUpdateRequest
|
|
4988
4471
|
:param _request_timeout: timeout setting for this request. If one
|
|
4989
4472
|
number provided, it will be total request
|
|
4990
4473
|
timeout. It can also be a pair (tuple) of
|
|
@@ -5010,7 +4493,7 @@ class WorkspaceApi:
|
|
|
5010
4493
|
_param = self._update_workspace_serialize(
|
|
5011
4494
|
organization_id=organization_id,
|
|
5012
4495
|
workspace_id=workspace_id,
|
|
5013
|
-
|
|
4496
|
+
workspace_update_request=workspace_update_request,
|
|
5014
4497
|
_request_auth=_request_auth,
|
|
5015
4498
|
_content_type=_content_type,
|
|
5016
4499
|
_headers=_headers,
|
|
@@ -5036,9 +4519,9 @@ class WorkspaceApi:
|
|
|
5036
4519
|
@validate_call
|
|
5037
4520
|
def update_workspace_without_preload_content(
|
|
5038
4521
|
self,
|
|
5039
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
5040
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
5041
|
-
|
|
4522
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
4523
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
4524
|
+
workspace_update_request: Annotated[WorkspaceUpdateRequest, Field(description="The new Workspace details. This endpoint can't be used to update security")],
|
|
5042
4525
|
_request_timeout: Union[
|
|
5043
4526
|
None,
|
|
5044
4527
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5055,12 +4538,12 @@ class WorkspaceApi:
|
|
|
5055
4538
|
"""Update a workspace
|
|
5056
4539
|
|
|
5057
4540
|
|
|
5058
|
-
:param organization_id:
|
|
4541
|
+
:param organization_id: The Organization identifier (required)
|
|
5059
4542
|
:type organization_id: str
|
|
5060
|
-
:param workspace_id:
|
|
4543
|
+
:param workspace_id: The Workspace identifier (required)
|
|
5061
4544
|
:type workspace_id: str
|
|
5062
|
-
:param
|
|
5063
|
-
:type
|
|
4545
|
+
:param workspace_update_request: The new Workspace details. This endpoint can't be used to update security (required)
|
|
4546
|
+
:type workspace_update_request: WorkspaceUpdateRequest
|
|
5064
4547
|
:param _request_timeout: timeout setting for this request. If one
|
|
5065
4548
|
number provided, it will be total request
|
|
5066
4549
|
timeout. It can also be a pair (tuple) of
|
|
@@ -5086,7 +4569,7 @@ class WorkspaceApi:
|
|
|
5086
4569
|
_param = self._update_workspace_serialize(
|
|
5087
4570
|
organization_id=organization_id,
|
|
5088
4571
|
workspace_id=workspace_id,
|
|
5089
|
-
|
|
4572
|
+
workspace_update_request=workspace_update_request,
|
|
5090
4573
|
_request_auth=_request_auth,
|
|
5091
4574
|
_content_type=_content_type,
|
|
5092
4575
|
_headers=_headers,
|
|
@@ -5109,7 +4592,7 @@ class WorkspaceApi:
|
|
|
5109
4592
|
self,
|
|
5110
4593
|
organization_id,
|
|
5111
4594
|
workspace_id,
|
|
5112
|
-
|
|
4595
|
+
workspace_update_request,
|
|
5113
4596
|
_request_auth,
|
|
5114
4597
|
_content_type,
|
|
5115
4598
|
_headers,
|
|
@@ -5125,7 +4608,9 @@ class WorkspaceApi:
|
|
|
5125
4608
|
_query_params: List[Tuple[str, str]] = []
|
|
5126
4609
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
5127
4610
|
_form_params: List[Tuple[str, str]] = []
|
|
5128
|
-
_files: Dict[
|
|
4611
|
+
_files: Dict[
|
|
4612
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4613
|
+
] = {}
|
|
5129
4614
|
_body_params: Optional[bytes] = None
|
|
5130
4615
|
|
|
5131
4616
|
# process the path parameters
|
|
@@ -5137,15 +4622,16 @@ class WorkspaceApi:
|
|
|
5137
4622
|
# process the header parameters
|
|
5138
4623
|
# process the form parameters
|
|
5139
4624
|
# process the body parameter
|
|
5140
|
-
if
|
|
5141
|
-
_body_params =
|
|
4625
|
+
if workspace_update_request is not None:
|
|
4626
|
+
_body_params = workspace_update_request
|
|
5142
4627
|
|
|
5143
4628
|
|
|
5144
4629
|
# set the HTTP header `Accept`
|
|
5145
4630
|
if 'Accept' not in _header_params:
|
|
5146
4631
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
5147
4632
|
[
|
|
5148
|
-
'application/json'
|
|
4633
|
+
'application/json',
|
|
4634
|
+
'application/yaml'
|
|
5149
4635
|
]
|
|
5150
4636
|
)
|
|
5151
4637
|
|
|
@@ -5190,9 +4676,9 @@ class WorkspaceApi:
|
|
|
5190
4676
|
@validate_call
|
|
5191
4677
|
def update_workspace_access_control(
|
|
5192
4678
|
self,
|
|
5193
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
5194
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
5195
|
-
identity_id: Annotated[StrictStr, Field(description="
|
|
4679
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
4680
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
4681
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
5196
4682
|
workspace_role: Annotated[WorkspaceRole, Field(description="The new Workspace Access Control")],
|
|
5197
4683
|
_request_timeout: Union[
|
|
5198
4684
|
None,
|
|
@@ -5210,11 +4696,11 @@ class WorkspaceApi:
|
|
|
5210
4696
|
"""Update the specified access to User for a Workspace
|
|
5211
4697
|
|
|
5212
4698
|
|
|
5213
|
-
:param organization_id:
|
|
4699
|
+
:param organization_id: The Organization identifier (required)
|
|
5214
4700
|
:type organization_id: str
|
|
5215
|
-
:param workspace_id:
|
|
4701
|
+
:param workspace_id: The Workspace identifier (required)
|
|
5216
4702
|
:type workspace_id: str
|
|
5217
|
-
:param identity_id:
|
|
4703
|
+
:param identity_id: The User identifier (required)
|
|
5218
4704
|
:type identity_id: str
|
|
5219
4705
|
:param workspace_role: The new Workspace Access Control (required)
|
|
5220
4706
|
:type workspace_role: WorkspaceRole
|
|
@@ -5269,9 +4755,9 @@ class WorkspaceApi:
|
|
|
5269
4755
|
@validate_call
|
|
5270
4756
|
def update_workspace_access_control_with_http_info(
|
|
5271
4757
|
self,
|
|
5272
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
5273
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
5274
|
-
identity_id: Annotated[StrictStr, Field(description="
|
|
4758
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
4759
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
4760
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
5275
4761
|
workspace_role: Annotated[WorkspaceRole, Field(description="The new Workspace Access Control")],
|
|
5276
4762
|
_request_timeout: Union[
|
|
5277
4763
|
None,
|
|
@@ -5289,11 +4775,11 @@ class WorkspaceApi:
|
|
|
5289
4775
|
"""Update the specified access to User for a Workspace
|
|
5290
4776
|
|
|
5291
4777
|
|
|
5292
|
-
:param organization_id:
|
|
4778
|
+
:param organization_id: The Organization identifier (required)
|
|
5293
4779
|
:type organization_id: str
|
|
5294
|
-
:param workspace_id:
|
|
4780
|
+
:param workspace_id: The Workspace identifier (required)
|
|
5295
4781
|
:type workspace_id: str
|
|
5296
|
-
:param identity_id:
|
|
4782
|
+
:param identity_id: The User identifier (required)
|
|
5297
4783
|
:type identity_id: str
|
|
5298
4784
|
:param workspace_role: The new Workspace Access Control (required)
|
|
5299
4785
|
:type workspace_role: WorkspaceRole
|
|
@@ -5348,9 +4834,9 @@ class WorkspaceApi:
|
|
|
5348
4834
|
@validate_call
|
|
5349
4835
|
def update_workspace_access_control_without_preload_content(
|
|
5350
4836
|
self,
|
|
5351
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
5352
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
5353
|
-
identity_id: Annotated[StrictStr, Field(description="
|
|
4837
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
4838
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
4839
|
+
identity_id: Annotated[StrictStr, Field(description="The User identifier")],
|
|
5354
4840
|
workspace_role: Annotated[WorkspaceRole, Field(description="The new Workspace Access Control")],
|
|
5355
4841
|
_request_timeout: Union[
|
|
5356
4842
|
None,
|
|
@@ -5368,11 +4854,11 @@ class WorkspaceApi:
|
|
|
5368
4854
|
"""Update the specified access to User for a Workspace
|
|
5369
4855
|
|
|
5370
4856
|
|
|
5371
|
-
:param organization_id:
|
|
4857
|
+
:param organization_id: The Organization identifier (required)
|
|
5372
4858
|
:type organization_id: str
|
|
5373
|
-
:param workspace_id:
|
|
4859
|
+
:param workspace_id: The Workspace identifier (required)
|
|
5374
4860
|
:type workspace_id: str
|
|
5375
|
-
:param identity_id:
|
|
4861
|
+
:param identity_id: The User identifier (required)
|
|
5376
4862
|
:type identity_id: str
|
|
5377
4863
|
:param workspace_role: The new Workspace Access Control (required)
|
|
5378
4864
|
:type workspace_role: WorkspaceRole
|
|
@@ -5441,7 +4927,9 @@ class WorkspaceApi:
|
|
|
5441
4927
|
_query_params: List[Tuple[str, str]] = []
|
|
5442
4928
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
5443
4929
|
_form_params: List[Tuple[str, str]] = []
|
|
5444
|
-
_files: Dict[
|
|
4930
|
+
_files: Dict[
|
|
4931
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4932
|
+
] = {}
|
|
5445
4933
|
_body_params: Optional[bytes] = None
|
|
5446
4934
|
|
|
5447
4935
|
# process the path parameters
|
|
@@ -5463,7 +4951,8 @@ class WorkspaceApi:
|
|
|
5463
4951
|
if 'Accept' not in _header_params:
|
|
5464
4952
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
5465
4953
|
[
|
|
5466
|
-
'application/json'
|
|
4954
|
+
'application/json',
|
|
4955
|
+
'application/yaml'
|
|
5467
4956
|
]
|
|
5468
4957
|
)
|
|
5469
4958
|
|
|
@@ -5474,7 +4963,8 @@ class WorkspaceApi:
|
|
|
5474
4963
|
_default_content_type = (
|
|
5475
4964
|
self.api_client.select_header_content_type(
|
|
5476
4965
|
[
|
|
5477
|
-
'application/json'
|
|
4966
|
+
'application/json',
|
|
4967
|
+
'application/yaml'
|
|
5478
4968
|
]
|
|
5479
4969
|
)
|
|
5480
4970
|
)
|
|
@@ -5505,13 +4995,11 @@ class WorkspaceApi:
|
|
|
5505
4995
|
|
|
5506
4996
|
|
|
5507
4997
|
@validate_call
|
|
5508
|
-
def
|
|
4998
|
+
def update_workspace_default_security(
|
|
5509
4999
|
self,
|
|
5510
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
5511
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
5512
|
-
|
|
5513
|
-
overwrite: Optional[StrictBool] = None,
|
|
5514
|
-
destination: Annotated[Optional[StrictStr], Field(description="Destination path. Must end with a '/' if specifying a folder. Note that paths may or may not start with a '/', but they are always treated as relative to the Workspace root location. ")] = None,
|
|
5000
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
5001
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
5002
|
+
workspace_role: Annotated[WorkspaceRole, Field(description="This change the workspace 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 workspace.")],
|
|
5515
5003
|
_request_timeout: Union[
|
|
5516
5004
|
None,
|
|
5517
5005
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5524,20 +5012,16 @@ class WorkspaceApi:
|
|
|
5524
5012
|
_content_type: Optional[StrictStr] = None,
|
|
5525
5013
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5526
5014
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5527
|
-
) ->
|
|
5528
|
-
"""
|
|
5015
|
+
) -> WorkspaceSecurity:
|
|
5016
|
+
"""Update the Workspace default security
|
|
5529
5017
|
|
|
5530
5018
|
|
|
5531
|
-
:param organization_id:
|
|
5019
|
+
:param organization_id: The Organization identifier (required)
|
|
5532
5020
|
:type organization_id: str
|
|
5533
|
-
:param workspace_id:
|
|
5021
|
+
:param workspace_id: The Workspace identifier (required)
|
|
5534
5022
|
:type workspace_id: str
|
|
5535
|
-
:param
|
|
5536
|
-
:type
|
|
5537
|
-
:param overwrite:
|
|
5538
|
-
:type overwrite: bool
|
|
5539
|
-
:param destination: Destination path. Must end with a '/' if specifying a folder. Note that paths may or may not start with a '/', but they are always treated as relative to the Workspace root location.
|
|
5540
|
-
:type destination: str
|
|
5023
|
+
:param workspace_role: This change the workspace 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 workspace. (required)
|
|
5024
|
+
:type workspace_role: WorkspaceRole
|
|
5541
5025
|
:param _request_timeout: timeout setting for this request. If one
|
|
5542
5026
|
number provided, it will be total request
|
|
5543
5027
|
timeout. It can also be a pair (tuple) of
|
|
@@ -5560,12 +5044,10 @@ class WorkspaceApi:
|
|
|
5560
5044
|
:return: Returns the result object.
|
|
5561
5045
|
""" # noqa: E501
|
|
5562
5046
|
|
|
5563
|
-
_param = self.
|
|
5047
|
+
_param = self._update_workspace_default_security_serialize(
|
|
5564
5048
|
organization_id=organization_id,
|
|
5565
5049
|
workspace_id=workspace_id,
|
|
5566
|
-
|
|
5567
|
-
overwrite=overwrite,
|
|
5568
|
-
destination=destination,
|
|
5050
|
+
workspace_role=workspace_role,
|
|
5569
5051
|
_request_auth=_request_auth,
|
|
5570
5052
|
_content_type=_content_type,
|
|
5571
5053
|
_headers=_headers,
|
|
@@ -5573,8 +5055,8 @@ class WorkspaceApi:
|
|
|
5573
5055
|
)
|
|
5574
5056
|
|
|
5575
5057
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
5576
|
-
'201': "
|
|
5577
|
-
'
|
|
5058
|
+
'201': "WorkspaceSecurity",
|
|
5059
|
+
'404': None,
|
|
5578
5060
|
}
|
|
5579
5061
|
response_data = self.api_client.call_api(
|
|
5580
5062
|
*_param,
|
|
@@ -5588,13 +5070,11 @@ class WorkspaceApi:
|
|
|
5588
5070
|
|
|
5589
5071
|
|
|
5590
5072
|
@validate_call
|
|
5591
|
-
def
|
|
5073
|
+
def update_workspace_default_security_with_http_info(
|
|
5592
5074
|
self,
|
|
5593
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
5594
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
5595
|
-
|
|
5596
|
-
overwrite: Optional[StrictBool] = None,
|
|
5597
|
-
destination: Annotated[Optional[StrictStr], Field(description="Destination path. Must end with a '/' if specifying a folder. Note that paths may or may not start with a '/', but they are always treated as relative to the Workspace root location. ")] = None,
|
|
5075
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
5076
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
5077
|
+
workspace_role: Annotated[WorkspaceRole, Field(description="This change the workspace 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 workspace.")],
|
|
5598
5078
|
_request_timeout: Union[
|
|
5599
5079
|
None,
|
|
5600
5080
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5607,20 +5087,16 @@ class WorkspaceApi:
|
|
|
5607
5087
|
_content_type: Optional[StrictStr] = None,
|
|
5608
5088
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5609
5089
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5610
|
-
) -> ApiResponse[
|
|
5611
|
-
"""
|
|
5090
|
+
) -> ApiResponse[WorkspaceSecurity]:
|
|
5091
|
+
"""Update the Workspace default security
|
|
5612
5092
|
|
|
5613
5093
|
|
|
5614
|
-
:param organization_id:
|
|
5094
|
+
:param organization_id: The Organization identifier (required)
|
|
5615
5095
|
:type organization_id: str
|
|
5616
|
-
:param workspace_id:
|
|
5096
|
+
:param workspace_id: The Workspace identifier (required)
|
|
5617
5097
|
:type workspace_id: str
|
|
5618
|
-
:param
|
|
5619
|
-
:type
|
|
5620
|
-
:param overwrite:
|
|
5621
|
-
:type overwrite: bool
|
|
5622
|
-
:param destination: Destination path. Must end with a '/' if specifying a folder. Note that paths may or may not start with a '/', but they are always treated as relative to the Workspace root location.
|
|
5623
|
-
:type destination: str
|
|
5098
|
+
:param workspace_role: This change the workspace 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 workspace. (required)
|
|
5099
|
+
:type workspace_role: WorkspaceRole
|
|
5624
5100
|
:param _request_timeout: timeout setting for this request. If one
|
|
5625
5101
|
number provided, it will be total request
|
|
5626
5102
|
timeout. It can also be a pair (tuple) of
|
|
@@ -5643,12 +5119,10 @@ class WorkspaceApi:
|
|
|
5643
5119
|
:return: Returns the result object.
|
|
5644
5120
|
""" # noqa: E501
|
|
5645
5121
|
|
|
5646
|
-
_param = self.
|
|
5122
|
+
_param = self._update_workspace_default_security_serialize(
|
|
5647
5123
|
organization_id=organization_id,
|
|
5648
5124
|
workspace_id=workspace_id,
|
|
5649
|
-
|
|
5650
|
-
overwrite=overwrite,
|
|
5651
|
-
destination=destination,
|
|
5125
|
+
workspace_role=workspace_role,
|
|
5652
5126
|
_request_auth=_request_auth,
|
|
5653
5127
|
_content_type=_content_type,
|
|
5654
5128
|
_headers=_headers,
|
|
@@ -5656,8 +5130,8 @@ class WorkspaceApi:
|
|
|
5656
5130
|
)
|
|
5657
5131
|
|
|
5658
5132
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
5659
|
-
'201': "
|
|
5660
|
-
'
|
|
5133
|
+
'201': "WorkspaceSecurity",
|
|
5134
|
+
'404': None,
|
|
5661
5135
|
}
|
|
5662
5136
|
response_data = self.api_client.call_api(
|
|
5663
5137
|
*_param,
|
|
@@ -5671,13 +5145,11 @@ class WorkspaceApi:
|
|
|
5671
5145
|
|
|
5672
5146
|
|
|
5673
5147
|
@validate_call
|
|
5674
|
-
def
|
|
5148
|
+
def update_workspace_default_security_without_preload_content(
|
|
5675
5149
|
self,
|
|
5676
|
-
organization_id: Annotated[StrictStr, Field(description="
|
|
5677
|
-
workspace_id: Annotated[StrictStr, Field(description="
|
|
5678
|
-
|
|
5679
|
-
overwrite: Optional[StrictBool] = None,
|
|
5680
|
-
destination: Annotated[Optional[StrictStr], Field(description="Destination path. Must end with a '/' if specifying a folder. Note that paths may or may not start with a '/', but they are always treated as relative to the Workspace root location. ")] = None,
|
|
5150
|
+
organization_id: Annotated[StrictStr, Field(description="The Organization identifier")],
|
|
5151
|
+
workspace_id: Annotated[StrictStr, Field(description="The Workspace identifier")],
|
|
5152
|
+
workspace_role: Annotated[WorkspaceRole, Field(description="This change the workspace 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 workspace.")],
|
|
5681
5153
|
_request_timeout: Union[
|
|
5682
5154
|
None,
|
|
5683
5155
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5691,19 +5163,15 @@ class WorkspaceApi:
|
|
|
5691
5163
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5692
5164
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5693
5165
|
) -> RESTResponseType:
|
|
5694
|
-
"""
|
|
5166
|
+
"""Update the Workspace default security
|
|
5695
5167
|
|
|
5696
5168
|
|
|
5697
|
-
:param organization_id:
|
|
5169
|
+
:param organization_id: The Organization identifier (required)
|
|
5698
5170
|
:type organization_id: str
|
|
5699
|
-
:param workspace_id:
|
|
5171
|
+
:param workspace_id: The Workspace identifier (required)
|
|
5700
5172
|
:type workspace_id: str
|
|
5701
|
-
:param
|
|
5702
|
-
:type
|
|
5703
|
-
:param overwrite:
|
|
5704
|
-
:type overwrite: bool
|
|
5705
|
-
:param destination: Destination path. Must end with a '/' if specifying a folder. Note that paths may or may not start with a '/', but they are always treated as relative to the Workspace root location.
|
|
5706
|
-
:type destination: str
|
|
5173
|
+
:param workspace_role: This change the workspace 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 workspace. (required)
|
|
5174
|
+
:type workspace_role: WorkspaceRole
|
|
5707
5175
|
:param _request_timeout: timeout setting for this request. If one
|
|
5708
5176
|
number provided, it will be total request
|
|
5709
5177
|
timeout. It can also be a pair (tuple) of
|
|
@@ -5726,12 +5194,10 @@ class WorkspaceApi:
|
|
|
5726
5194
|
:return: Returns the result object.
|
|
5727
5195
|
""" # noqa: E501
|
|
5728
5196
|
|
|
5729
|
-
_param = self.
|
|
5197
|
+
_param = self._update_workspace_default_security_serialize(
|
|
5730
5198
|
organization_id=organization_id,
|
|
5731
5199
|
workspace_id=workspace_id,
|
|
5732
|
-
|
|
5733
|
-
overwrite=overwrite,
|
|
5734
|
-
destination=destination,
|
|
5200
|
+
workspace_role=workspace_role,
|
|
5735
5201
|
_request_auth=_request_auth,
|
|
5736
5202
|
_content_type=_content_type,
|
|
5737
5203
|
_headers=_headers,
|
|
@@ -5739,8 +5205,8 @@ class WorkspaceApi:
|
|
|
5739
5205
|
)
|
|
5740
5206
|
|
|
5741
5207
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
5742
|
-
'201': "
|
|
5743
|
-
'
|
|
5208
|
+
'201': "WorkspaceSecurity",
|
|
5209
|
+
'404': None,
|
|
5744
5210
|
}
|
|
5745
5211
|
response_data = self.api_client.call_api(
|
|
5746
5212
|
*_param,
|
|
@@ -5749,13 +5215,11 @@ class WorkspaceApi:
|
|
|
5749
5215
|
return response_data.response
|
|
5750
5216
|
|
|
5751
5217
|
|
|
5752
|
-
def
|
|
5218
|
+
def _update_workspace_default_security_serialize(
|
|
5753
5219
|
self,
|
|
5754
5220
|
organization_id,
|
|
5755
5221
|
workspace_id,
|
|
5756
|
-
|
|
5757
|
-
overwrite,
|
|
5758
|
-
destination,
|
|
5222
|
+
workspace_role,
|
|
5759
5223
|
_request_auth,
|
|
5760
5224
|
_content_type,
|
|
5761
5225
|
_headers,
|
|
@@ -5771,7 +5235,9 @@ class WorkspaceApi:
|
|
|
5771
5235
|
_query_params: List[Tuple[str, str]] = []
|
|
5772
5236
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
5773
5237
|
_form_params: List[Tuple[str, str]] = []
|
|
5774
|
-
_files: Dict[
|
|
5238
|
+
_files: Dict[
|
|
5239
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
5240
|
+
] = {}
|
|
5775
5241
|
_body_params: Optional[bytes] = None
|
|
5776
5242
|
|
|
5777
5243
|
# process the path parameters
|
|
@@ -5782,20 +5248,17 @@ class WorkspaceApi:
|
|
|
5782
5248
|
# process the query parameters
|
|
5783
5249
|
# process the header parameters
|
|
5784
5250
|
# process the form parameters
|
|
5785
|
-
if overwrite is not None:
|
|
5786
|
-
_form_params.append(('overwrite', overwrite))
|
|
5787
|
-
if destination is not None:
|
|
5788
|
-
_form_params.append(('destination', destination))
|
|
5789
|
-
if file is not None:
|
|
5790
|
-
_files['file'] = file
|
|
5791
5251
|
# process the body parameter
|
|
5252
|
+
if workspace_role is not None:
|
|
5253
|
+
_body_params = workspace_role
|
|
5792
5254
|
|
|
5793
5255
|
|
|
5794
5256
|
# set the HTTP header `Accept`
|
|
5795
5257
|
if 'Accept' not in _header_params:
|
|
5796
5258
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
5797
5259
|
[
|
|
5798
|
-
'application/json'
|
|
5260
|
+
'application/json',
|
|
5261
|
+
'application/yaml'
|
|
5799
5262
|
]
|
|
5800
5263
|
)
|
|
5801
5264
|
|
|
@@ -5806,7 +5269,8 @@ class WorkspaceApi:
|
|
|
5806
5269
|
_default_content_type = (
|
|
5807
5270
|
self.api_client.select_header_content_type(
|
|
5808
5271
|
[
|
|
5809
|
-
'
|
|
5272
|
+
'application/json',
|
|
5273
|
+
'application/yaml'
|
|
5810
5274
|
]
|
|
5811
5275
|
)
|
|
5812
5276
|
)
|
|
@@ -5819,8 +5283,8 @@ class WorkspaceApi:
|
|
|
5819
5283
|
]
|
|
5820
5284
|
|
|
5821
5285
|
return self.api_client.param_serialize(
|
|
5822
|
-
method='
|
|
5823
|
-
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/
|
|
5286
|
+
method='PATCH',
|
|
5287
|
+
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/default',
|
|
5824
5288
|
path_params=_path_params,
|
|
5825
5289
|
query_params=_query_params,
|
|
5826
5290
|
header_params=_header_params,
|