cosmotech-api 3.2.0.post1__py3-none-any.whl → 5.0.0rc3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. cosmotech_api/__init__.py +180 -130
  2. cosmotech_api/api/__init__.py +1 -4
  3. cosmotech_api/api/connector_api.py +31 -27
  4. cosmotech_api/api/dataset_api.py +1762 -3918
  5. cosmotech_api/api/meta_api.py +281 -0
  6. cosmotech_api/api/organization_api.py +654 -1460
  7. cosmotech_api/api/run_api.py +170 -817
  8. cosmotech_api/api/runner_api.py +688 -631
  9. cosmotech_api/api/scenario_api.py +141 -121
  10. cosmotech_api/api/scenariorun_api.py +76 -66
  11. cosmotech_api/api/scenariorunresult_api.py +341 -659
  12. cosmotech_api/api/solution_api.py +2504 -956
  13. cosmotech_api/api/twingraph_api.py +83 -72
  14. cosmotech_api/api/validator_api.py +1249 -2501
  15. cosmotech_api/api/workspace_api.py +835 -1658
  16. cosmotech_api/api_client.py +79 -33
  17. cosmotech_api/configuration.py +185 -48
  18. cosmotech_api/exceptions.py +18 -1
  19. cosmotech_api/model/component_role_permissions.py +1 -1
  20. cosmotech_api/model/connector.py +1 -1
  21. cosmotech_api/model/connector_parameter.py +1 -1
  22. cosmotech_api/model/connector_parameter_group.py +1 -1
  23. cosmotech_api/model/container_resource_size_info.py +1 -1
  24. cosmotech_api/model/container_resource_sizing.py +1 -1
  25. cosmotech_api/model/dataset.py +1 -1
  26. cosmotech_api/model/dataset_access_control.py +1 -1
  27. cosmotech_api/model/dataset_compatibility.py +1 -1
  28. cosmotech_api/model/dataset_connector.py +1 -1
  29. cosmotech_api/model/dataset_copy_parameters.py +1 -1
  30. cosmotech_api/model/dataset_role.py +1 -1
  31. cosmotech_api/model/dataset_search.py +1 -1
  32. cosmotech_api/model/dataset_security.py +1 -1
  33. cosmotech_api/model/dataset_source_type.py +1 -1
  34. cosmotech_api/model/dataset_twin_graph_hash.py +1 -1
  35. cosmotech_api/model/dataset_twin_graph_info.py +1 -1
  36. cosmotech_api/model/dataset_twin_graph_query.py +1 -1
  37. cosmotech_api/model/delete_historical_data.py +1 -1
  38. cosmotech_api/model/file_upload_metadata.py +1 -1
  39. cosmotech_api/model/file_upload_validation.py +1 -1
  40. cosmotech_api/model/graph_properties.py +1 -1
  41. cosmotech_api/model/organization.py +1 -1
  42. cosmotech_api/model/organization_access_control.py +1 -1
  43. cosmotech_api/model/organization_role.py +1 -1
  44. cosmotech_api/model/organization_security.py +1 -1
  45. cosmotech_api/model/organization_service.py +1 -1
  46. cosmotech_api/model/organization_services.py +1 -1
  47. cosmotech_api/model/resource_size_info.py +1 -1
  48. cosmotech_api/model/run.py +1 -1
  49. cosmotech_api/model/run_container.py +1 -1
  50. cosmotech_api/model/run_container_artifact.py +1 -1
  51. cosmotech_api/model/run_container_logs.py +1 -1
  52. cosmotech_api/model/run_logs.py +1 -1
  53. cosmotech_api/model/run_resource_requested.py +1 -1
  54. cosmotech_api/model/run_search.py +1 -1
  55. cosmotech_api/model/run_start_containers.py +1 -1
  56. cosmotech_api/model/run_state.py +1 -1
  57. cosmotech_api/model/run_status.py +1 -1
  58. cosmotech_api/model/run_status_node.py +1 -1
  59. cosmotech_api/model/run_template.py +1 -1
  60. cosmotech_api/model/run_template_handler_id.py +1 -1
  61. cosmotech_api/model/run_template_orchestrator.py +1 -1
  62. cosmotech_api/model/run_template_parameter.py +1 -1
  63. cosmotech_api/model/run_template_parameter_group.py +1 -1
  64. cosmotech_api/model/run_template_parameter_value.py +1 -1
  65. cosmotech_api/model/run_template_resource_sizing.py +1 -1
  66. cosmotech_api/model/run_template_step_source.py +1 -1
  67. cosmotech_api/model/runner.py +1 -1
  68. cosmotech_api/model/runner_access_control.py +1 -1
  69. cosmotech_api/model/runner_changed_parameter_value.py +1 -1
  70. cosmotech_api/model/runner_comparison_result.py +1 -1
  71. cosmotech_api/model/runner_data_download_info.py +1 -1
  72. cosmotech_api/model/runner_data_download_job.py +1 -1
  73. cosmotech_api/model/runner_job_state.py +1 -1
  74. cosmotech_api/model/runner_last_run.py +1 -1
  75. cosmotech_api/model/runner_resource_sizing.py +1 -1
  76. cosmotech_api/model/runner_role.py +1 -1
  77. cosmotech_api/model/runner_run_template_parameter_value.py +1 -1
  78. cosmotech_api/model/runner_security.py +1 -1
  79. cosmotech_api/model/runner_validation_status.py +1 -1
  80. cosmotech_api/model/scenario.py +1 -1
  81. cosmotech_api/model/scenario_access_control.py +1 -1
  82. cosmotech_api/model/scenario_changed_parameter_value.py +1 -1
  83. cosmotech_api/model/scenario_comparison_result.py +1 -1
  84. cosmotech_api/model/scenario_data_download_info.py +1 -1
  85. cosmotech_api/model/scenario_data_download_job.py +1 -1
  86. cosmotech_api/model/scenario_job_state.py +1 -1
  87. cosmotech_api/model/scenario_last_run.py +1 -1
  88. cosmotech_api/model/scenario_resource_sizing.py +1 -1
  89. cosmotech_api/model/scenario_role.py +1 -1
  90. cosmotech_api/model/scenario_run.py +1 -1
  91. cosmotech_api/model/scenario_run_container.py +1 -1
  92. cosmotech_api/model/scenario_run_container_artifact.py +1 -1
  93. cosmotech_api/model/scenario_run_container_logs.py +1 -1
  94. cosmotech_api/model/scenario_run_logs.py +1 -1
  95. cosmotech_api/model/scenario_run_resource_requested.py +1 -1
  96. cosmotech_api/model/scenario_run_result.py +1 -1
  97. cosmotech_api/model/scenario_run_search.py +1 -1
  98. cosmotech_api/model/scenario_run_start_containers.py +1 -1
  99. cosmotech_api/model/scenario_run_state.py +1 -1
  100. cosmotech_api/model/scenario_run_status.py +1 -1
  101. cosmotech_api/model/scenario_run_status_node.py +1 -1
  102. cosmotech_api/model/scenario_run_template_parameter_value.py +1 -1
  103. cosmotech_api/model/scenario_security.py +1 -1
  104. cosmotech_api/model/scenario_validation_status.py +1 -1
  105. cosmotech_api/model/solution.py +1 -1
  106. cosmotech_api/model/solution_access_control.py +1 -1
  107. cosmotech_api/model/solution_role.py +1 -1
  108. cosmotech_api/model/solution_security.py +1 -1
  109. cosmotech_api/model/source_info.py +1 -1
  110. cosmotech_api/model/sub_dataset_graph_query.py +1 -1
  111. cosmotech_api/model/translated_labels.py +1 -1
  112. cosmotech_api/model/twin_graph_batch_result.py +1 -1
  113. cosmotech_api/model/twin_graph_hash.py +1 -1
  114. cosmotech_api/model/twin_graph_query.py +1 -1
  115. cosmotech_api/model/validator.py +1 -1
  116. cosmotech_api/model/validator_run.py +1 -1
  117. cosmotech_api/model/workspace.py +1 -1
  118. cosmotech_api/model/workspace_access_control.py +1 -1
  119. cosmotech_api/model/workspace_file.py +1 -1
  120. cosmotech_api/model/workspace_role.py +1 -1
  121. cosmotech_api/model/workspace_secret.py +1 -1
  122. cosmotech_api/model/workspace_security.py +1 -1
  123. cosmotech_api/model/workspace_solution.py +1 -1
  124. cosmotech_api/model/workspace_web_app.py +1 -1
  125. cosmotech_api/model_utils.py +1 -1
  126. cosmotech_api/models/__init__.py +33 -72
  127. cosmotech_api/models/about_info.py +92 -0
  128. cosmotech_api/models/about_info_version.py +100 -0
  129. cosmotech_api/models/component_role_permissions.py +11 -11
  130. cosmotech_api/models/connector.py +12 -22
  131. cosmotech_api/models/connector_parameter.py +7 -7
  132. cosmotech_api/models/connector_parameter_group.py +10 -10
  133. cosmotech_api/models/container_resource_size_info.py +7 -7
  134. cosmotech_api/models/container_resource_sizing.py +7 -7
  135. cosmotech_api/models/create_info.py +103 -0
  136. cosmotech_api/models/created_run.py +88 -0
  137. cosmotech_api/models/dataset.py +47 -103
  138. cosmotech_api/models/dataset_access_control.py +7 -7
  139. cosmotech_api/models/dataset_compatibility.py +7 -7
  140. cosmotech_api/models/dataset_connector.py +7 -7
  141. cosmotech_api/models/dataset_copy_parameters.py +7 -7
  142. cosmotech_api/models/dataset_create_info.py +103 -0
  143. cosmotech_api/models/dataset_create_request.py +111 -0
  144. cosmotech_api/models/dataset_edit_info.py +90 -0
  145. cosmotech_api/models/dataset_part.py +132 -0
  146. cosmotech_api/models/dataset_part_create_request.py +100 -0
  147. cosmotech_api/models/dataset_part_type_enum.py +38 -0
  148. cosmotech_api/models/dataset_part_update_request.py +95 -0
  149. cosmotech_api/models/dataset_role.py +7 -7
  150. cosmotech_api/models/dataset_search.py +7 -7
  151. cosmotech_api/models/dataset_security.py +10 -10
  152. cosmotech_api/models/dataset_source_type.py +1 -1
  153. cosmotech_api/models/dataset_twin_graph_hash.py +7 -7
  154. cosmotech_api/models/dataset_twin_graph_info.py +7 -7
  155. cosmotech_api/models/dataset_twin_graph_query.py +7 -7
  156. cosmotech_api/models/dataset_update_request.py +105 -0
  157. cosmotech_api/models/delete_historical_data.py +7 -7
  158. cosmotech_api/models/edit_info.py +90 -0
  159. cosmotech_api/models/file_upload_metadata.py +7 -7
  160. cosmotech_api/models/file_upload_validation.py +13 -13
  161. cosmotech_api/models/graph_properties.py +7 -7
  162. cosmotech_api/models/ingestion_status_enum.py +40 -0
  163. cosmotech_api/models/io_types_enum.py +38 -0
  164. cosmotech_api/models/last_run_info.py +100 -0
  165. cosmotech_api/models/organization.py +24 -23
  166. cosmotech_api/models/organization_access_control.py +10 -10
  167. cosmotech_api/models/organization_create_request.py +95 -0
  168. cosmotech_api/models/organization_edit_info.py +90 -0
  169. cosmotech_api/models/organization_role.py +9 -9
  170. cosmotech_api/models/organization_security.py +13 -13
  171. cosmotech_api/models/organization_service.py +7 -7
  172. cosmotech_api/models/organization_services.py +7 -7
  173. cosmotech_api/models/organization_update_request.py +89 -0
  174. cosmotech_api/models/query_result.py +7 -7
  175. cosmotech_api/models/resource_size_info.py +7 -7
  176. cosmotech_api/models/run.py +20 -22
  177. cosmotech_api/models/run_container.py +9 -19
  178. cosmotech_api/models/run_container_artifact.py +7 -7
  179. cosmotech_api/models/run_container_logs.py +7 -7
  180. cosmotech_api/models/run_data.py +7 -7
  181. cosmotech_api/models/run_data_query.py +7 -7
  182. cosmotech_api/models/run_edit_info.py +90 -0
  183. cosmotech_api/models/run_logs.py +10 -10
  184. cosmotech_api/models/run_logs_entry.py +88 -0
  185. cosmotech_api/models/run_resource_requested.py +7 -7
  186. cosmotech_api/models/run_search.py +9 -18
  187. cosmotech_api/models/run_search_state.py +46 -0
  188. cosmotech_api/models/run_start_containers.py +10 -10
  189. cosmotech_api/models/run_state.py +2 -1
  190. cosmotech_api/models/run_status.py +17 -11
  191. cosmotech_api/models/run_status_node.py +7 -7
  192. cosmotech_api/models/run_template.py +20 -75
  193. cosmotech_api/models/run_template_create_request.py +109 -0
  194. cosmotech_api/models/run_template_handler_id.py +1 -1
  195. cosmotech_api/models/run_template_orchestrator.py +1 -1
  196. cosmotech_api/models/run_template_parameter.py +21 -20
  197. cosmotech_api/models/run_template_parameter_create_request.py +103 -0
  198. cosmotech_api/models/run_template_parameter_group.py +17 -18
  199. cosmotech_api/models/run_template_parameter_group_create_request.py +97 -0
  200. cosmotech_api/models/run_template_parameter_group_update_request.py +94 -0
  201. cosmotech_api/models/run_template_parameter_update_request.py +101 -0
  202. cosmotech_api/models/run_template_parameter_value.py +7 -7
  203. cosmotech_api/models/run_template_resource_sizing.py +8 -8
  204. cosmotech_api/models/run_template_step_source.py +1 -1
  205. cosmotech_api/models/run_template_update_request.py +107 -0
  206. cosmotech_api/models/runner.py +48 -62
  207. cosmotech_api/models/runner_access_control.py +7 -7
  208. cosmotech_api/models/runner_changed_parameter_value.py +7 -7
  209. cosmotech_api/models/runner_comparison_result.py +10 -10
  210. cosmotech_api/models/runner_create_request.py +146 -0
  211. cosmotech_api/models/runner_data_download_info.py +7 -7
  212. cosmotech_api/models/runner_data_download_job.py +7 -7
  213. cosmotech_api/models/runner_datasets.py +92 -0
  214. cosmotech_api/models/runner_edit_info.py +90 -0
  215. cosmotech_api/models/runner_job_state.py +1 -1
  216. cosmotech_api/models/runner_last_run.py +7 -7
  217. cosmotech_api/models/runner_parent_last_run.py +7 -7
  218. cosmotech_api/models/runner_resource_sizing.py +7 -7
  219. cosmotech_api/models/runner_role.py +7 -7
  220. cosmotech_api/models/runner_root_last_run.py +7 -7
  221. cosmotech_api/models/runner_run_template_parameter_value.py +7 -9
  222. cosmotech_api/models/runner_security.py +10 -10
  223. cosmotech_api/models/runner_update_request.py +119 -0
  224. cosmotech_api/models/runner_validation_status.py +1 -1
  225. cosmotech_api/models/scenario.py +10 -10
  226. cosmotech_api/models/scenario_access_control.py +7 -7
  227. cosmotech_api/models/scenario_changed_parameter_value.py +7 -7
  228. cosmotech_api/models/scenario_comparison_result.py +10 -10
  229. cosmotech_api/models/scenario_data_download_info.py +7 -7
  230. cosmotech_api/models/scenario_data_download_job.py +7 -7
  231. cosmotech_api/models/scenario_job_state.py +1 -1
  232. cosmotech_api/models/scenario_last_run.py +7 -7
  233. cosmotech_api/models/scenario_resource_sizing.py +7 -7
  234. cosmotech_api/models/scenario_role.py +7 -7
  235. cosmotech_api/models/scenario_run.py +13 -13
  236. cosmotech_api/models/scenario_run_container.py +10 -10
  237. cosmotech_api/models/scenario_run_container_artifact.py +7 -7
  238. cosmotech_api/models/scenario_run_container_logs.py +7 -7
  239. cosmotech_api/models/scenario_run_logs.py +10 -10
  240. cosmotech_api/models/scenario_run_resource_requested.py +7 -7
  241. cosmotech_api/models/scenario_run_search.py +9 -18
  242. cosmotech_api/models/scenario_run_search_state.py +46 -0
  243. cosmotech_api/models/scenario_run_start_containers.py +10 -10
  244. cosmotech_api/models/scenario_run_state.py +1 -1
  245. cosmotech_api/models/scenario_run_status.py +10 -10
  246. cosmotech_api/models/scenario_run_status_node.py +7 -7
  247. cosmotech_api/models/scenario_run_template_parameter_value.py +7 -7
  248. cosmotech_api/models/scenario_security.py +10 -10
  249. cosmotech_api/models/scenario_validation_status.py +1 -1
  250. cosmotech_api/models/send_run_data_request.py +7 -7
  251. cosmotech_api/models/solution.py +60 -44
  252. cosmotech_api/models/solution_access_control.py +10 -10
  253. cosmotech_api/models/solution_create_request.py +139 -0
  254. cosmotech_api/models/solution_edit_info.py +90 -0
  255. cosmotech_api/models/solution_file.py +88 -0
  256. cosmotech_api/models/solution_role.py +9 -9
  257. cosmotech_api/models/solution_security.py +13 -13
  258. cosmotech_api/models/solution_update_request.py +133 -0
  259. cosmotech_api/models/source_info.py +7 -7
  260. cosmotech_api/models/sub_dataset_graph_query.py +7 -7
  261. cosmotech_api/models/twin_graph_batch_result.py +7 -7
  262. cosmotech_api/models/twin_graph_hash.py +7 -7
  263. cosmotech_api/models/twin_graph_query.py +7 -7
  264. cosmotech_api/models/twincache_status_enum.py +38 -0
  265. cosmotech_api/models/validator.py +7 -7
  266. cosmotech_api/models/workspace.py +46 -42
  267. cosmotech_api/models/workspace_access_control.py +10 -10
  268. cosmotech_api/models/workspace_create_request.py +113 -0
  269. cosmotech_api/models/workspace_edit_info.py +90 -0
  270. cosmotech_api/models/workspace_file.py +10 -10
  271. cosmotech_api/models/workspace_role.py +9 -9
  272. cosmotech_api/models/workspace_secret.py +7 -7
  273. cosmotech_api/models/workspace_security.py +13 -13
  274. cosmotech_api/models/workspace_solution.py +33 -15
  275. cosmotech_api/models/workspace_update_request.py +105 -0
  276. cosmotech_api/models/workspace_web_app.py +7 -7
  277. cosmotech_api/rest.py +5 -2
  278. cosmotech_api-5.0.0rc3.dist-info/METADATA +314 -0
  279. cosmotech_api-5.0.0rc3.dist-info/RECORD +297 -0
  280. {cosmotech_api-3.2.0.post1.dist-info → cosmotech_api-5.0.0rc3.dist-info}/WHEEL +1 -1
  281. {cosmotech_api-3.2.0.post1.dist-info → cosmotech_api-5.0.0rc3.dist-info/licenses}/LICENSE +1 -1
  282. cosmotech_api-3.2.0.post1.dist-info/METADATA +0 -18
  283. cosmotech_api-3.2.0.post1.dist-info/RECORD +0 -255
  284. {cosmotech_api-3.2.0.post1.dist-info → cosmotech_api-5.0.0rc3.dist-info}/top_level.txt +0 -0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Cosmo Tech Platform API
7
7
 
8
- The version of the OpenAPI document: 3.2.0
8
+ The version of the OpenAPI document: 5.0.0-rc3
9
9
  Contact: platform@cosmotech.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -17,15 +17,16 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
17
  from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
- from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr
21
- from typing import Optional, Union
20
+ from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator
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
- from cosmotech_api.models.workspace_secret import WorkspaceSecret
28
28
  from cosmotech_api.models.workspace_security import WorkspaceSecurity
29
+ from cosmotech_api.models.workspace_update_request import WorkspaceUpdateRequest
29
30
 
30
31
  from cosmotech_api.api_client import ApiClient, RequestSerialized
31
32
  from cosmotech_api.api_response import ApiResponse
@@ -46,11 +47,10 @@ class WorkspaceApi:
46
47
 
47
48
 
48
49
  @validate_call
49
- def add_workspace_access_control(
50
+ def create_workspace(
50
51
  self,
51
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
52
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
53
- workspace_access_control: Annotated[WorkspaceAccessControl, Field(description="the new Workspace security access to add.")],
52
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
53
+ workspace_create_request: Annotated[WorkspaceCreateRequest, Field(description="The Workspace to create")],
54
54
  _request_timeout: Union[
55
55
  None,
56
56
  Annotated[StrictFloat, Field(gt=0)],
@@ -63,16 +63,14 @@ class WorkspaceApi:
63
63
  _content_type: Optional[StrictStr] = None,
64
64
  _headers: Optional[Dict[StrictStr, Any]] = None,
65
65
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
66
- ) -> WorkspaceAccessControl:
67
- """Add a control access to the Workspace
66
+ ) -> Workspace:
67
+ """Create a new workspace
68
68
 
69
69
 
70
- :param organization_id: the Organization identifier (required)
70
+ :param organization_id: The Organization identifier (required)
71
71
  :type organization_id: str
72
- :param workspace_id: the Workspace identifier (required)
73
- :type workspace_id: str
74
- :param workspace_access_control: the new Workspace security access to add. (required)
75
- :type workspace_access_control: WorkspaceAccessControl
72
+ :param workspace_create_request: The Workspace to create (required)
73
+ :type workspace_create_request: WorkspaceCreateRequest
76
74
  :param _request_timeout: timeout setting for this request. If one
77
75
  number provided, it will be total request
78
76
  timeout. It can also be a pair (tuple) of
@@ -95,10 +93,9 @@ class WorkspaceApi:
95
93
  :return: Returns the result object.
96
94
  """ # noqa: E501
97
95
 
98
- _param = self._add_workspace_access_control_serialize(
96
+ _param = self._create_workspace_serialize(
99
97
  organization_id=organization_id,
100
- workspace_id=workspace_id,
101
- workspace_access_control=workspace_access_control,
98
+ workspace_create_request=workspace_create_request,
102
99
  _request_auth=_request_auth,
103
100
  _content_type=_content_type,
104
101
  _headers=_headers,
@@ -106,8 +103,8 @@ class WorkspaceApi:
106
103
  )
107
104
 
108
105
  _response_types_map: Dict[str, Optional[str]] = {
109
- '201': "WorkspaceAccessControl",
110
- '404': None,
106
+ '201': "Workspace",
107
+ '400': None,
111
108
  }
112
109
  response_data = self.api_client.call_api(
113
110
  *_param,
@@ -121,11 +118,10 @@ class WorkspaceApi:
121
118
 
122
119
 
123
120
  @validate_call
124
- def add_workspace_access_control_with_http_info(
121
+ def create_workspace_with_http_info(
125
122
  self,
126
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
127
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
128
- workspace_access_control: Annotated[WorkspaceAccessControl, Field(description="the new Workspace security access to add.")],
123
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
124
+ workspace_create_request: Annotated[WorkspaceCreateRequest, Field(description="The Workspace to create")],
129
125
  _request_timeout: Union[
130
126
  None,
131
127
  Annotated[StrictFloat, Field(gt=0)],
@@ -138,16 +134,14 @@ class WorkspaceApi:
138
134
  _content_type: Optional[StrictStr] = None,
139
135
  _headers: Optional[Dict[StrictStr, Any]] = None,
140
136
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
141
- ) -> ApiResponse[WorkspaceAccessControl]:
142
- """Add a control access to the Workspace
137
+ ) -> ApiResponse[Workspace]:
138
+ """Create a new workspace
143
139
 
144
140
 
145
- :param organization_id: the Organization identifier (required)
141
+ :param organization_id: The Organization identifier (required)
146
142
  :type organization_id: str
147
- :param workspace_id: the Workspace identifier (required)
148
- :type workspace_id: str
149
- :param workspace_access_control: the new Workspace security access to add. (required)
150
- :type workspace_access_control: WorkspaceAccessControl
143
+ :param workspace_create_request: The Workspace to create (required)
144
+ :type workspace_create_request: WorkspaceCreateRequest
151
145
  :param _request_timeout: timeout setting for this request. If one
152
146
  number provided, it will be total request
153
147
  timeout. It can also be a pair (tuple) of
@@ -170,10 +164,9 @@ class WorkspaceApi:
170
164
  :return: Returns the result object.
171
165
  """ # noqa: E501
172
166
 
173
- _param = self._add_workspace_access_control_serialize(
167
+ _param = self._create_workspace_serialize(
174
168
  organization_id=organization_id,
175
- workspace_id=workspace_id,
176
- workspace_access_control=workspace_access_control,
169
+ workspace_create_request=workspace_create_request,
177
170
  _request_auth=_request_auth,
178
171
  _content_type=_content_type,
179
172
  _headers=_headers,
@@ -181,8 +174,8 @@ class WorkspaceApi:
181
174
  )
182
175
 
183
176
  _response_types_map: Dict[str, Optional[str]] = {
184
- '201': "WorkspaceAccessControl",
185
- '404': None,
177
+ '201': "Workspace",
178
+ '400': None,
186
179
  }
187
180
  response_data = self.api_client.call_api(
188
181
  *_param,
@@ -196,11 +189,10 @@ class WorkspaceApi:
196
189
 
197
190
 
198
191
  @validate_call
199
- def add_workspace_access_control_without_preload_content(
192
+ def create_workspace_without_preload_content(
200
193
  self,
201
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
202
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
203
- workspace_access_control: Annotated[WorkspaceAccessControl, Field(description="the new Workspace security access to add.")],
194
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
195
+ workspace_create_request: Annotated[WorkspaceCreateRequest, Field(description="The Workspace to create")],
204
196
  _request_timeout: Union[
205
197
  None,
206
198
  Annotated[StrictFloat, Field(gt=0)],
@@ -214,15 +206,13 @@ class WorkspaceApi:
214
206
  _headers: Optional[Dict[StrictStr, Any]] = None,
215
207
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
216
208
  ) -> RESTResponseType:
217
- """Add a control access to the Workspace
209
+ """Create a new workspace
218
210
 
219
211
 
220
- :param organization_id: the Organization identifier (required)
212
+ :param organization_id: The Organization identifier (required)
221
213
  :type organization_id: str
222
- :param workspace_id: the Workspace identifier (required)
223
- :type workspace_id: str
224
- :param workspace_access_control: the new Workspace security access to add. (required)
225
- :type workspace_access_control: WorkspaceAccessControl
214
+ :param workspace_create_request: The Workspace to create (required)
215
+ :type workspace_create_request: WorkspaceCreateRequest
226
216
  :param _request_timeout: timeout setting for this request. If one
227
217
  number provided, it will be total request
228
218
  timeout. It can also be a pair (tuple) of
@@ -245,10 +235,9 @@ class WorkspaceApi:
245
235
  :return: Returns the result object.
246
236
  """ # noqa: E501
247
237
 
248
- _param = self._add_workspace_access_control_serialize(
238
+ _param = self._create_workspace_serialize(
249
239
  organization_id=organization_id,
250
- workspace_id=workspace_id,
251
- workspace_access_control=workspace_access_control,
240
+ workspace_create_request=workspace_create_request,
252
241
  _request_auth=_request_auth,
253
242
  _content_type=_content_type,
254
243
  _headers=_headers,
@@ -256,8 +245,8 @@ class WorkspaceApi:
256
245
  )
257
246
 
258
247
  _response_types_map: Dict[str, Optional[str]] = {
259
- '201': "WorkspaceAccessControl",
260
- '404': None,
248
+ '201': "Workspace",
249
+ '400': None,
261
250
  }
262
251
  response_data = self.api_client.call_api(
263
252
  *_param,
@@ -266,11 +255,10 @@ class WorkspaceApi:
266
255
  return response_data.response
267
256
 
268
257
 
269
- def _add_workspace_access_control_serialize(
258
+ def _create_workspace_serialize(
270
259
  self,
271
260
  organization_id,
272
- workspace_id,
273
- workspace_access_control,
261
+ workspace_create_request,
274
262
  _request_auth,
275
263
  _content_type,
276
264
  _headers,
@@ -286,28 +274,30 @@ class WorkspaceApi:
286
274
  _query_params: List[Tuple[str, str]] = []
287
275
  _header_params: Dict[str, Optional[str]] = _headers or {}
288
276
  _form_params: List[Tuple[str, str]] = []
289
- _files: Dict[str, str] = {}
277
+ _files: Dict[
278
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
279
+ ] = {}
290
280
  _body_params: Optional[bytes] = None
291
281
 
292
282
  # process the path parameters
293
283
  if organization_id is not None:
294
284
  _path_params['organization_id'] = organization_id
295
- if workspace_id is not None:
296
- _path_params['workspace_id'] = workspace_id
297
285
  # process the query parameters
298
286
  # process the header parameters
299
287
  # process the form parameters
300
288
  # process the body parameter
301
- if workspace_access_control is not None:
302
- _body_params = workspace_access_control
289
+ if workspace_create_request is not None:
290
+ _body_params = workspace_create_request
303
291
 
304
292
 
305
293
  # set the HTTP header `Accept`
306
- _header_params['Accept'] = self.api_client.select_header_accept(
307
- [
308
- 'application/json'
309
- ]
310
- )
294
+ if 'Accept' not in _header_params:
295
+ _header_params['Accept'] = self.api_client.select_header_accept(
296
+ [
297
+ 'application/json',
298
+ 'application/yaml'
299
+ ]
300
+ )
311
301
 
312
302
  # set the HTTP header `Content-Type`
313
303
  if _content_type:
@@ -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/{workspace_id}/security/access',
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,11 +338,11 @@ class WorkspaceApi:
348
338
 
349
339
 
350
340
  @validate_call
351
- def create_secret(
341
+ def create_workspace_access_control(
352
342
  self,
353
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
354
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
355
- workspace_secret: Annotated[WorkspaceSecret, Field(description="the definition of the secret")],
343
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
344
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
345
+ workspace_access_control: Annotated[WorkspaceAccessControl, Field(description="The new Workspace security access to add.")],
356
346
  _request_timeout: Union[
357
347
  None,
358
348
  Annotated[StrictFloat, Field(gt=0)],
@@ -365,16 +355,16 @@ class WorkspaceApi:
365
355
  _content_type: Optional[StrictStr] = None,
366
356
  _headers: Optional[Dict[StrictStr, Any]] = None,
367
357
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
368
- ) -> None:
369
- """Create a secret for the Workspace
358
+ ) -> WorkspaceAccessControl:
359
+ """Add a control access to the Workspace
370
360
 
371
361
 
372
- :param organization_id: the Organization identifier (required)
362
+ :param organization_id: The Organization identifier (required)
373
363
  :type organization_id: str
374
- :param workspace_id: the Workspace identifier (required)
364
+ :param workspace_id: The Workspace identifier (required)
375
365
  :type workspace_id: str
376
- :param workspace_secret: the definition of the secret (required)
377
- :type workspace_secret: WorkspaceSecret
366
+ :param workspace_access_control: The new Workspace security access to add. (required)
367
+ :type workspace_access_control: WorkspaceAccessControl
378
368
  :param _request_timeout: timeout setting for this request. If one
379
369
  number provided, it will be total request
380
370
  timeout. It can also be a pair (tuple) of
@@ -397,10 +387,10 @@ class WorkspaceApi:
397
387
  :return: Returns the result object.
398
388
  """ # noqa: E501
399
389
 
400
- _param = self._create_secret_serialize(
390
+ _param = self._create_workspace_access_control_serialize(
401
391
  organization_id=organization_id,
402
392
  workspace_id=workspace_id,
403
- workspace_secret=workspace_secret,
393
+ workspace_access_control=workspace_access_control,
404
394
  _request_auth=_request_auth,
405
395
  _content_type=_content_type,
406
396
  _headers=_headers,
@@ -408,7 +398,7 @@ class WorkspaceApi:
408
398
  )
409
399
 
410
400
  _response_types_map: Dict[str, Optional[str]] = {
411
- '201': None,
401
+ '201': "WorkspaceAccessControl",
412
402
  '404': None,
413
403
  }
414
404
  response_data = self.api_client.call_api(
@@ -423,11 +413,11 @@ class WorkspaceApi:
423
413
 
424
414
 
425
415
  @validate_call
426
- def create_secret_with_http_info(
416
+ def create_workspace_access_control_with_http_info(
427
417
  self,
428
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
429
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
430
- workspace_secret: Annotated[WorkspaceSecret, Field(description="the definition of the secret")],
418
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
419
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
420
+ workspace_access_control: Annotated[WorkspaceAccessControl, Field(description="The new Workspace security access to add.")],
431
421
  _request_timeout: Union[
432
422
  None,
433
423
  Annotated[StrictFloat, Field(gt=0)],
@@ -440,16 +430,16 @@ class WorkspaceApi:
440
430
  _content_type: Optional[StrictStr] = None,
441
431
  _headers: Optional[Dict[StrictStr, Any]] = None,
442
432
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
443
- ) -> ApiResponse[None]:
444
- """Create a secret for the Workspace
433
+ ) -> ApiResponse[WorkspaceAccessControl]:
434
+ """Add a control access to the Workspace
445
435
 
446
436
 
447
- :param organization_id: the Organization identifier (required)
437
+ :param organization_id: The Organization identifier (required)
448
438
  :type organization_id: str
449
- :param workspace_id: the Workspace identifier (required)
439
+ :param workspace_id: The Workspace identifier (required)
450
440
  :type workspace_id: str
451
- :param workspace_secret: the definition of the secret (required)
452
- :type workspace_secret: WorkspaceSecret
441
+ :param workspace_access_control: The new Workspace security access to add. (required)
442
+ :type workspace_access_control: WorkspaceAccessControl
453
443
  :param _request_timeout: timeout setting for this request. If one
454
444
  number provided, it will be total request
455
445
  timeout. It can also be a pair (tuple) of
@@ -472,10 +462,10 @@ class WorkspaceApi:
472
462
  :return: Returns the result object.
473
463
  """ # noqa: E501
474
464
 
475
- _param = self._create_secret_serialize(
465
+ _param = self._create_workspace_access_control_serialize(
476
466
  organization_id=organization_id,
477
467
  workspace_id=workspace_id,
478
- workspace_secret=workspace_secret,
468
+ workspace_access_control=workspace_access_control,
479
469
  _request_auth=_request_auth,
480
470
  _content_type=_content_type,
481
471
  _headers=_headers,
@@ -483,7 +473,7 @@ class WorkspaceApi:
483
473
  )
484
474
 
485
475
  _response_types_map: Dict[str, Optional[str]] = {
486
- '201': None,
476
+ '201': "WorkspaceAccessControl",
487
477
  '404': None,
488
478
  }
489
479
  response_data = self.api_client.call_api(
@@ -498,11 +488,11 @@ class WorkspaceApi:
498
488
 
499
489
 
500
490
  @validate_call
501
- def create_secret_without_preload_content(
491
+ def create_workspace_access_control_without_preload_content(
502
492
  self,
503
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
504
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
505
- workspace_secret: Annotated[WorkspaceSecret, Field(description="the definition of the secret")],
493
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
494
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
495
+ workspace_access_control: Annotated[WorkspaceAccessControl, Field(description="The new Workspace security access to add.")],
506
496
  _request_timeout: Union[
507
497
  None,
508
498
  Annotated[StrictFloat, Field(gt=0)],
@@ -516,15 +506,15 @@ class WorkspaceApi:
516
506
  _headers: Optional[Dict[StrictStr, Any]] = None,
517
507
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
518
508
  ) -> RESTResponseType:
519
- """Create a secret for the Workspace
509
+ """Add a control access to the Workspace
520
510
 
521
511
 
522
- :param organization_id: the Organization identifier (required)
512
+ :param organization_id: The Organization identifier (required)
523
513
  :type organization_id: str
524
- :param workspace_id: the Workspace identifier (required)
514
+ :param workspace_id: The Workspace identifier (required)
525
515
  :type workspace_id: str
526
- :param workspace_secret: the definition of the secret (required)
527
- :type workspace_secret: WorkspaceSecret
516
+ :param workspace_access_control: The new Workspace security access to add. (required)
517
+ :type workspace_access_control: WorkspaceAccessControl
528
518
  :param _request_timeout: timeout setting for this request. If one
529
519
  number provided, it will be total request
530
520
  timeout. It can also be a pair (tuple) of
@@ -547,10 +537,10 @@ class WorkspaceApi:
547
537
  :return: Returns the result object.
548
538
  """ # noqa: E501
549
539
 
550
- _param = self._create_secret_serialize(
540
+ _param = self._create_workspace_access_control_serialize(
551
541
  organization_id=organization_id,
552
542
  workspace_id=workspace_id,
553
- workspace_secret=workspace_secret,
543
+ workspace_access_control=workspace_access_control,
554
544
  _request_auth=_request_auth,
555
545
  _content_type=_content_type,
556
546
  _headers=_headers,
@@ -558,7 +548,7 @@ class WorkspaceApi:
558
548
  )
559
549
 
560
550
  _response_types_map: Dict[str, Optional[str]] = {
561
- '201': None,
551
+ '201': "WorkspaceAccessControl",
562
552
  '404': None,
563
553
  }
564
554
  response_data = self.api_client.call_api(
@@ -568,11 +558,11 @@ class WorkspaceApi:
568
558
  return response_data.response
569
559
 
570
560
 
571
- def _create_secret_serialize(
561
+ def _create_workspace_access_control_serialize(
572
562
  self,
573
563
  organization_id,
574
564
  workspace_id,
575
- workspace_secret,
565
+ workspace_access_control,
576
566
  _request_auth,
577
567
  _content_type,
578
568
  _headers,
@@ -588,7 +578,9 @@ class WorkspaceApi:
588
578
  _query_params: List[Tuple[str, str]] = []
589
579
  _header_params: Dict[str, Optional[str]] = _headers or {}
590
580
  _form_params: List[Tuple[str, str]] = []
591
- _files: Dict[str, str] = {}
581
+ _files: Dict[
582
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
583
+ ] = {}
592
584
  _body_params: Optional[bytes] = None
593
585
 
594
586
  # process the path parameters
@@ -600,10 +592,18 @@ class WorkspaceApi:
600
592
  # process the header parameters
601
593
  # process the form parameters
602
594
  # process the body parameter
603
- if workspace_secret is not None:
604
- _body_params = workspace_secret
595
+ if workspace_access_control is not None:
596
+ _body_params = workspace_access_control
605
597
 
606
598
 
599
+ # set the HTTP header `Accept`
600
+ if 'Accept' not in _header_params:
601
+ _header_params['Accept'] = self.api_client.select_header_accept(
602
+ [
603
+ 'application/json',
604
+ 'application/yaml'
605
+ ]
606
+ )
607
607
 
608
608
  # set the HTTP header `Content-Type`
609
609
  if _content_type:
@@ -627,7 +627,7 @@ class WorkspaceApi:
627
627
 
628
628
  return self.api_client.param_serialize(
629
629
  method='POST',
630
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/secret',
630
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/access',
631
631
  path_params=_path_params,
632
632
  query_params=_query_params,
633
633
  header_params=_header_params,
@@ -644,10 +644,13 @@ class WorkspaceApi:
644
644
 
645
645
 
646
646
  @validate_call
647
- def create_workspace(
647
+ def create_workspace_file(
648
648
  self,
649
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
650
- workspace: Annotated[Workspace, Field(description="the Workspace to create")],
649
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
650
+ workspace_id: Annotated[str, Field(strict=True, 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,
651
654
  _request_timeout: Union[
652
655
  None,
653
656
  Annotated[StrictFloat, Field(gt=0)],
@@ -660,14 +663,20 @@ class WorkspaceApi:
660
663
  _content_type: Optional[StrictStr] = None,
661
664
  _headers: Optional[Dict[StrictStr, Any]] = None,
662
665
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
663
- ) -> Workspace:
664
- """Create a new workspace
666
+ ) -> WorkspaceFile:
667
+ """Upload a file for the Workspace
665
668
 
666
669
 
667
- :param organization_id: the Organization identifier (required)
670
+ :param organization_id: The Organization identifier (required)
668
671
  :type organization_id: str
669
- :param workspace: the Workspace to create (required)
670
- :type workspace: Workspace
672
+ :param workspace_id: The Workspace identifier (required)
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
671
680
  :param _request_timeout: timeout setting for this request. If one
672
681
  number provided, it will be total request
673
682
  timeout. It can also be a pair (tuple) of
@@ -690,9 +699,12 @@ class WorkspaceApi:
690
699
  :return: Returns the result object.
691
700
  """ # noqa: E501
692
701
 
693
- _param = self._create_workspace_serialize(
702
+ _param = self._create_workspace_file_serialize(
694
703
  organization_id=organization_id,
695
- workspace=workspace,
704
+ workspace_id=workspace_id,
705
+ file=file,
706
+ overwrite=overwrite,
707
+ destination=destination,
696
708
  _request_auth=_request_auth,
697
709
  _content_type=_content_type,
698
710
  _headers=_headers,
@@ -700,7 +712,7 @@ class WorkspaceApi:
700
712
  )
701
713
 
702
714
  _response_types_map: Dict[str, Optional[str]] = {
703
- '201': "Workspace",
715
+ '201': "WorkspaceFile",
704
716
  '400': None,
705
717
  }
706
718
  response_data = self.api_client.call_api(
@@ -715,10 +727,13 @@ class WorkspaceApi:
715
727
 
716
728
 
717
729
  @validate_call
718
- def create_workspace_with_http_info(
730
+ def create_workspace_file_with_http_info(
719
731
  self,
720
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
721
- workspace: Annotated[Workspace, Field(description="the Workspace to create")],
732
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
733
+ workspace_id: Annotated[str, Field(strict=True, 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,
722
737
  _request_timeout: Union[
723
738
  None,
724
739
  Annotated[StrictFloat, Field(gt=0)],
@@ -731,14 +746,20 @@ class WorkspaceApi:
731
746
  _content_type: Optional[StrictStr] = None,
732
747
  _headers: Optional[Dict[StrictStr, Any]] = None,
733
748
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
734
- ) -> ApiResponse[Workspace]:
735
- """Create a new workspace
749
+ ) -> ApiResponse[WorkspaceFile]:
750
+ """Upload a file for the Workspace
736
751
 
737
752
 
738
- :param organization_id: the Organization identifier (required)
753
+ :param organization_id: The Organization identifier (required)
739
754
  :type organization_id: str
740
- :param workspace: the Workspace to create (required)
741
- :type workspace: Workspace
755
+ :param workspace_id: The Workspace identifier (required)
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
742
763
  :param _request_timeout: timeout setting for this request. If one
743
764
  number provided, it will be total request
744
765
  timeout. It can also be a pair (tuple) of
@@ -761,9 +782,12 @@ class WorkspaceApi:
761
782
  :return: Returns the result object.
762
783
  """ # noqa: E501
763
784
 
764
- _param = self._create_workspace_serialize(
785
+ _param = self._create_workspace_file_serialize(
765
786
  organization_id=organization_id,
766
- workspace=workspace,
787
+ workspace_id=workspace_id,
788
+ file=file,
789
+ overwrite=overwrite,
790
+ destination=destination,
767
791
  _request_auth=_request_auth,
768
792
  _content_type=_content_type,
769
793
  _headers=_headers,
@@ -771,7 +795,7 @@ class WorkspaceApi:
771
795
  )
772
796
 
773
797
  _response_types_map: Dict[str, Optional[str]] = {
774
- '201': "Workspace",
798
+ '201': "WorkspaceFile",
775
799
  '400': None,
776
800
  }
777
801
  response_data = self.api_client.call_api(
@@ -786,10 +810,13 @@ class WorkspaceApi:
786
810
 
787
811
 
788
812
  @validate_call
789
- def create_workspace_without_preload_content(
813
+ def create_workspace_file_without_preload_content(
790
814
  self,
791
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
792
- workspace: Annotated[Workspace, Field(description="the Workspace to create")],
815
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
816
+ workspace_id: Annotated[str, Field(strict=True, 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,
793
820
  _request_timeout: Union[
794
821
  None,
795
822
  Annotated[StrictFloat, Field(gt=0)],
@@ -803,13 +830,19 @@ class WorkspaceApi:
803
830
  _headers: Optional[Dict[StrictStr, Any]] = None,
804
831
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
805
832
  ) -> RESTResponseType:
806
- """Create a new workspace
833
+ """Upload a file for the Workspace
807
834
 
808
835
 
809
- :param organization_id: the Organization identifier (required)
836
+ :param organization_id: The Organization identifier (required)
810
837
  :type organization_id: str
811
- :param workspace: the Workspace to create (required)
812
- :type workspace: Workspace
838
+ :param workspace_id: The Workspace identifier (required)
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
813
846
  :param _request_timeout: timeout setting for this request. If one
814
847
  number provided, it will be total request
815
848
  timeout. It can also be a pair (tuple) of
@@ -832,9 +865,12 @@ class WorkspaceApi:
832
865
  :return: Returns the result object.
833
866
  """ # noqa: E501
834
867
 
835
- _param = self._create_workspace_serialize(
868
+ _param = self._create_workspace_file_serialize(
836
869
  organization_id=organization_id,
837
- workspace=workspace,
870
+ workspace_id=workspace_id,
871
+ file=file,
872
+ overwrite=overwrite,
873
+ destination=destination,
838
874
  _request_auth=_request_auth,
839
875
  _content_type=_content_type,
840
876
  _headers=_headers,
@@ -842,7 +878,7 @@ class WorkspaceApi:
842
878
  )
843
879
 
844
880
  _response_types_map: Dict[str, Optional[str]] = {
845
- '201': "Workspace",
881
+ '201': "WorkspaceFile",
846
882
  '400': None,
847
883
  }
848
884
  response_data = self.api_client.call_api(
@@ -852,10 +888,13 @@ class WorkspaceApi:
852
888
  return response_data.response
853
889
 
854
890
 
855
- def _create_workspace_serialize(
891
+ def _create_workspace_file_serialize(
856
892
  self,
857
893
  organization_id,
858
- workspace,
894
+ workspace_id,
895
+ file,
896
+ overwrite,
897
+ destination,
859
898
  _request_auth,
860
899
  _content_type,
861
900
  _headers,
@@ -871,26 +910,36 @@ class WorkspaceApi:
871
910
  _query_params: List[Tuple[str, str]] = []
872
911
  _header_params: Dict[str, Optional[str]] = _headers or {}
873
912
  _form_params: List[Tuple[str, str]] = []
874
- _files: Dict[str, str] = {}
913
+ _files: Dict[
914
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
915
+ ] = {}
875
916
  _body_params: Optional[bytes] = None
876
917
 
877
918
  # process the path parameters
878
919
  if organization_id is not None:
879
920
  _path_params['organization_id'] = organization_id
921
+ if workspace_id is not None:
922
+ _path_params['workspace_id'] = workspace_id
880
923
  # process the query parameters
881
924
  # process the header parameters
882
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
883
932
  # process the body parameter
884
- if workspace is not None:
885
- _body_params = workspace
886
933
 
887
934
 
888
935
  # set the HTTP header `Accept`
889
- _header_params['Accept'] = self.api_client.select_header_accept(
890
- [
891
- 'application/json'
892
- ]
893
- )
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
+ )
894
943
 
895
944
  # set the HTTP header `Content-Type`
896
945
  if _content_type:
@@ -899,8 +948,7 @@ class WorkspaceApi:
899
948
  _default_content_type = (
900
949
  self.api_client.select_header_content_type(
901
950
  [
902
- 'application/json',
903
- 'application/yaml'
951
+ 'multipart/form-data'
904
952
  ]
905
953
  )
906
954
  )
@@ -914,7 +962,7 @@ class WorkspaceApi:
914
962
 
915
963
  return self.api_client.param_serialize(
916
964
  method='POST',
917
- resource_path='/organizations/{organization_id}/workspaces',
965
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/files',
918
966
  path_params=_path_params,
919
967
  query_params=_query_params,
920
968
  header_params=_header_params,
@@ -931,10 +979,10 @@ class WorkspaceApi:
931
979
 
932
980
 
933
981
  @validate_call
934
- def delete_all_workspace_files(
982
+ def delete_workspace(
935
983
  self,
936
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
937
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
984
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
985
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
938
986
  _request_timeout: Union[
939
987
  None,
940
988
  Annotated[StrictFloat, Field(gt=0)],
@@ -948,12 +996,12 @@ class WorkspaceApi:
948
996
  _headers: Optional[Dict[StrictStr, Any]] = None,
949
997
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
950
998
  ) -> None:
951
- """Delete all Workspace files
999
+ """Delete a workspace
952
1000
 
953
1001
 
954
- :param organization_id: the Organization identifier (required)
1002
+ :param organization_id: The Organization identifier (required)
955
1003
  :type organization_id: str
956
- :param workspace_id: the Workspace identifier (required)
1004
+ :param workspace_id: The Workspace identifier (required)
957
1005
  :type workspace_id: str
958
1006
  :param _request_timeout: timeout setting for this request. If one
959
1007
  number provided, it will be total request
@@ -977,7 +1025,7 @@ class WorkspaceApi:
977
1025
  :return: Returns the result object.
978
1026
  """ # noqa: E501
979
1027
 
980
- _param = self._delete_all_workspace_files_serialize(
1028
+ _param = self._delete_workspace_serialize(
981
1029
  organization_id=organization_id,
982
1030
  workspace_id=workspace_id,
983
1031
  _request_auth=_request_auth,
@@ -988,6 +1036,7 @@ class WorkspaceApi:
988
1036
 
989
1037
  _response_types_map: Dict[str, Optional[str]] = {
990
1038
  '204': None,
1039
+ '400': None,
991
1040
  '404': None,
992
1041
  }
993
1042
  response_data = self.api_client.call_api(
@@ -1002,10 +1051,10 @@ class WorkspaceApi:
1002
1051
 
1003
1052
 
1004
1053
  @validate_call
1005
- def delete_all_workspace_files_with_http_info(
1054
+ def delete_workspace_with_http_info(
1006
1055
  self,
1007
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1008
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1056
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
1057
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
1009
1058
  _request_timeout: Union[
1010
1059
  None,
1011
1060
  Annotated[StrictFloat, Field(gt=0)],
@@ -1019,12 +1068,12 @@ class WorkspaceApi:
1019
1068
  _headers: Optional[Dict[StrictStr, Any]] = None,
1020
1069
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1021
1070
  ) -> ApiResponse[None]:
1022
- """Delete all Workspace files
1071
+ """Delete a workspace
1023
1072
 
1024
1073
 
1025
- :param organization_id: the Organization identifier (required)
1074
+ :param organization_id: The Organization identifier (required)
1026
1075
  :type organization_id: str
1027
- :param workspace_id: the Workspace identifier (required)
1076
+ :param workspace_id: The Workspace identifier (required)
1028
1077
  :type workspace_id: str
1029
1078
  :param _request_timeout: timeout setting for this request. If one
1030
1079
  number provided, it will be total request
@@ -1048,7 +1097,7 @@ class WorkspaceApi:
1048
1097
  :return: Returns the result object.
1049
1098
  """ # noqa: E501
1050
1099
 
1051
- _param = self._delete_all_workspace_files_serialize(
1100
+ _param = self._delete_workspace_serialize(
1052
1101
  organization_id=organization_id,
1053
1102
  workspace_id=workspace_id,
1054
1103
  _request_auth=_request_auth,
@@ -1059,6 +1108,7 @@ class WorkspaceApi:
1059
1108
 
1060
1109
  _response_types_map: Dict[str, Optional[str]] = {
1061
1110
  '204': None,
1111
+ '400': None,
1062
1112
  '404': None,
1063
1113
  }
1064
1114
  response_data = self.api_client.call_api(
@@ -1073,10 +1123,10 @@ class WorkspaceApi:
1073
1123
 
1074
1124
 
1075
1125
  @validate_call
1076
- def delete_all_workspace_files_without_preload_content(
1126
+ def delete_workspace_without_preload_content(
1077
1127
  self,
1078
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1079
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1128
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
1129
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
1080
1130
  _request_timeout: Union[
1081
1131
  None,
1082
1132
  Annotated[StrictFloat, Field(gt=0)],
@@ -1090,12 +1140,12 @@ class WorkspaceApi:
1090
1140
  _headers: Optional[Dict[StrictStr, Any]] = None,
1091
1141
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1092
1142
  ) -> RESTResponseType:
1093
- """Delete all Workspace files
1143
+ """Delete a workspace
1094
1144
 
1095
1145
 
1096
- :param organization_id: the Organization identifier (required)
1146
+ :param organization_id: The Organization identifier (required)
1097
1147
  :type organization_id: str
1098
- :param workspace_id: the Workspace identifier (required)
1148
+ :param workspace_id: The Workspace identifier (required)
1099
1149
  :type workspace_id: str
1100
1150
  :param _request_timeout: timeout setting for this request. If one
1101
1151
  number provided, it will be total request
@@ -1119,7 +1169,7 @@ class WorkspaceApi:
1119
1169
  :return: Returns the result object.
1120
1170
  """ # noqa: E501
1121
1171
 
1122
- _param = self._delete_all_workspace_files_serialize(
1172
+ _param = self._delete_workspace_serialize(
1123
1173
  organization_id=organization_id,
1124
1174
  workspace_id=workspace_id,
1125
1175
  _request_auth=_request_auth,
@@ -1130,6 +1180,7 @@ class WorkspaceApi:
1130
1180
 
1131
1181
  _response_types_map: Dict[str, Optional[str]] = {
1132
1182
  '204': None,
1183
+ '400': None,
1133
1184
  '404': None,
1134
1185
  }
1135
1186
  response_data = self.api_client.call_api(
@@ -1139,7 +1190,7 @@ class WorkspaceApi:
1139
1190
  return response_data.response
1140
1191
 
1141
1192
 
1142
- def _delete_all_workspace_files_serialize(
1193
+ def _delete_workspace_serialize(
1143
1194
  self,
1144
1195
  organization_id,
1145
1196
  workspace_id,
@@ -1158,7 +1209,9 @@ class WorkspaceApi:
1158
1209
  _query_params: List[Tuple[str, str]] = []
1159
1210
  _header_params: Dict[str, Optional[str]] = _headers or {}
1160
1211
  _form_params: List[Tuple[str, str]] = []
1161
- _files: Dict[str, str] = {}
1212
+ _files: Dict[
1213
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1214
+ ] = {}
1162
1215
  _body_params: Optional[bytes] = None
1163
1216
 
1164
1217
  # process the path parameters
@@ -1181,7 +1234,7 @@ class WorkspaceApi:
1181
1234
 
1182
1235
  return self.api_client.param_serialize(
1183
1236
  method='DELETE',
1184
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/files',
1237
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}',
1185
1238
  path_params=_path_params,
1186
1239
  query_params=_query_params,
1187
1240
  header_params=_header_params,
@@ -1198,10 +1251,11 @@ class WorkspaceApi:
1198
1251
 
1199
1252
 
1200
1253
  @validate_call
1201
- def delete_workspace(
1254
+ def delete_workspace_access_control(
1202
1255
  self,
1203
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1204
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1256
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
1257
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
1258
+ identity_id: Annotated[StrictStr, Field(description="The User identifier")],
1205
1259
  _request_timeout: Union[
1206
1260
  None,
1207
1261
  Annotated[StrictFloat, Field(gt=0)],
@@ -1214,14 +1268,16 @@ class WorkspaceApi:
1214
1268
  _content_type: Optional[StrictStr] = None,
1215
1269
  _headers: Optional[Dict[StrictStr, Any]] = None,
1216
1270
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1217
- ) -> Workspace:
1218
- """Delete a workspace
1271
+ ) -> None:
1272
+ """Remove the specified access from the given Workspace
1219
1273
 
1220
1274
 
1221
- :param organization_id: the Organization identifier (required)
1275
+ :param organization_id: The Organization identifier (required)
1222
1276
  :type organization_id: str
1223
- :param workspace_id: the Workspace identifier (required)
1277
+ :param workspace_id: The Workspace identifier (required)
1224
1278
  :type workspace_id: str
1279
+ :param identity_id: The User identifier (required)
1280
+ :type identity_id: str
1225
1281
  :param _request_timeout: timeout setting for this request. If one
1226
1282
  number provided, it will be total request
1227
1283
  timeout. It can also be a pair (tuple) of
@@ -1244,9 +1300,10 @@ class WorkspaceApi:
1244
1300
  :return: Returns the result object.
1245
1301
  """ # noqa: E501
1246
1302
 
1247
- _param = self._delete_workspace_serialize(
1303
+ _param = self._delete_workspace_access_control_serialize(
1248
1304
  organization_id=organization_id,
1249
1305
  workspace_id=workspace_id,
1306
+ identity_id=identity_id,
1250
1307
  _request_auth=_request_auth,
1251
1308
  _content_type=_content_type,
1252
1309
  _headers=_headers,
@@ -1254,8 +1311,7 @@ class WorkspaceApi:
1254
1311
  )
1255
1312
 
1256
1313
  _response_types_map: Dict[str, Optional[str]] = {
1257
- '200': "Workspace",
1258
- '400': None,
1314
+ '204': None,
1259
1315
  '404': None,
1260
1316
  }
1261
1317
  response_data = self.api_client.call_api(
@@ -1270,10 +1326,11 @@ class WorkspaceApi:
1270
1326
 
1271
1327
 
1272
1328
  @validate_call
1273
- def delete_workspace_with_http_info(
1329
+ def delete_workspace_access_control_with_http_info(
1274
1330
  self,
1275
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1276
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1331
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
1332
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
1333
+ identity_id: Annotated[StrictStr, Field(description="The User identifier")],
1277
1334
  _request_timeout: Union[
1278
1335
  None,
1279
1336
  Annotated[StrictFloat, Field(gt=0)],
@@ -1286,14 +1343,16 @@ class WorkspaceApi:
1286
1343
  _content_type: Optional[StrictStr] = None,
1287
1344
  _headers: Optional[Dict[StrictStr, Any]] = None,
1288
1345
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1289
- ) -> ApiResponse[Workspace]:
1290
- """Delete a workspace
1346
+ ) -> ApiResponse[None]:
1347
+ """Remove the specified access from the given Workspace
1291
1348
 
1292
1349
 
1293
- :param organization_id: the Organization identifier (required)
1350
+ :param organization_id: The Organization identifier (required)
1294
1351
  :type organization_id: str
1295
- :param workspace_id: the Workspace identifier (required)
1352
+ :param workspace_id: The Workspace identifier (required)
1296
1353
  :type workspace_id: str
1354
+ :param identity_id: The User identifier (required)
1355
+ :type identity_id: str
1297
1356
  :param _request_timeout: timeout setting for this request. If one
1298
1357
  number provided, it will be total request
1299
1358
  timeout. It can also be a pair (tuple) of
@@ -1316,9 +1375,10 @@ class WorkspaceApi:
1316
1375
  :return: Returns the result object.
1317
1376
  """ # noqa: E501
1318
1377
 
1319
- _param = self._delete_workspace_serialize(
1378
+ _param = self._delete_workspace_access_control_serialize(
1320
1379
  organization_id=organization_id,
1321
1380
  workspace_id=workspace_id,
1381
+ identity_id=identity_id,
1322
1382
  _request_auth=_request_auth,
1323
1383
  _content_type=_content_type,
1324
1384
  _headers=_headers,
@@ -1326,8 +1386,7 @@ class WorkspaceApi:
1326
1386
  )
1327
1387
 
1328
1388
  _response_types_map: Dict[str, Optional[str]] = {
1329
- '200': "Workspace",
1330
- '400': None,
1389
+ '204': None,
1331
1390
  '404': None,
1332
1391
  }
1333
1392
  response_data = self.api_client.call_api(
@@ -1342,10 +1401,11 @@ class WorkspaceApi:
1342
1401
 
1343
1402
 
1344
1403
  @validate_call
1345
- def delete_workspace_without_preload_content(
1404
+ def delete_workspace_access_control_without_preload_content(
1346
1405
  self,
1347
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1348
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1406
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
1407
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
1408
+ identity_id: Annotated[StrictStr, Field(description="The User identifier")],
1349
1409
  _request_timeout: Union[
1350
1410
  None,
1351
1411
  Annotated[StrictFloat, Field(gt=0)],
@@ -1359,13 +1419,15 @@ class WorkspaceApi:
1359
1419
  _headers: Optional[Dict[StrictStr, Any]] = None,
1360
1420
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1361
1421
  ) -> RESTResponseType:
1362
- """Delete a workspace
1422
+ """Remove the specified access from the given Workspace
1363
1423
 
1364
1424
 
1365
- :param organization_id: the Organization identifier (required)
1425
+ :param organization_id: The Organization identifier (required)
1366
1426
  :type organization_id: str
1367
- :param workspace_id: the Workspace identifier (required)
1427
+ :param workspace_id: The Workspace identifier (required)
1368
1428
  :type workspace_id: str
1429
+ :param identity_id: The User identifier (required)
1430
+ :type identity_id: str
1369
1431
  :param _request_timeout: timeout setting for this request. If one
1370
1432
  number provided, it will be total request
1371
1433
  timeout. It can also be a pair (tuple) of
@@ -1388,9 +1450,10 @@ class WorkspaceApi:
1388
1450
  :return: Returns the result object.
1389
1451
  """ # noqa: E501
1390
1452
 
1391
- _param = self._delete_workspace_serialize(
1453
+ _param = self._delete_workspace_access_control_serialize(
1392
1454
  organization_id=organization_id,
1393
1455
  workspace_id=workspace_id,
1456
+ identity_id=identity_id,
1394
1457
  _request_auth=_request_auth,
1395
1458
  _content_type=_content_type,
1396
1459
  _headers=_headers,
@@ -1398,8 +1461,7 @@ class WorkspaceApi:
1398
1461
  )
1399
1462
 
1400
1463
  _response_types_map: Dict[str, Optional[str]] = {
1401
- '200': "Workspace",
1402
- '400': None,
1464
+ '204': None,
1403
1465
  '404': None,
1404
1466
  }
1405
1467
  response_data = self.api_client.call_api(
@@ -1409,10 +1471,11 @@ class WorkspaceApi:
1409
1471
  return response_data.response
1410
1472
 
1411
1473
 
1412
- def _delete_workspace_serialize(
1474
+ def _delete_workspace_access_control_serialize(
1413
1475
  self,
1414
1476
  organization_id,
1415
1477
  workspace_id,
1478
+ identity_id,
1416
1479
  _request_auth,
1417
1480
  _content_type,
1418
1481
  _headers,
@@ -1428,7 +1491,9 @@ class WorkspaceApi:
1428
1491
  _query_params: List[Tuple[str, str]] = []
1429
1492
  _header_params: Dict[str, Optional[str]] = _headers or {}
1430
1493
  _form_params: List[Tuple[str, str]] = []
1431
- _files: Dict[str, str] = {}
1494
+ _files: Dict[
1495
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1496
+ ] = {}
1432
1497
  _body_params: Optional[bytes] = None
1433
1498
 
1434
1499
  # process the path parameters
@@ -1436,18 +1501,14 @@ class WorkspaceApi:
1436
1501
  _path_params['organization_id'] = organization_id
1437
1502
  if workspace_id is not None:
1438
1503
  _path_params['workspace_id'] = workspace_id
1504
+ if identity_id is not None:
1505
+ _path_params['identity_id'] = identity_id
1439
1506
  # process the query parameters
1440
1507
  # process the header parameters
1441
1508
  # process the form parameters
1442
1509
  # process the body parameter
1443
1510
 
1444
1511
 
1445
- # set the HTTP header `Accept`
1446
- _header_params['Accept'] = self.api_client.select_header_accept(
1447
- [
1448
- 'application/json'
1449
- ]
1450
- )
1451
1512
 
1452
1513
 
1453
1514
  # authentication setting
@@ -1457,7 +1518,7 @@ class WorkspaceApi:
1457
1518
 
1458
1519
  return self.api_client.param_serialize(
1459
1520
  method='DELETE',
1460
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}',
1521
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}',
1461
1522
  path_params=_path_params,
1462
1523
  query_params=_query_params,
1463
1524
  header_params=_header_params,
@@ -1476,9 +1537,9 @@ class WorkspaceApi:
1476
1537
  @validate_call
1477
1538
  def delete_workspace_file(
1478
1539
  self,
1479
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1480
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1481
- file_name: Annotated[StrictStr, Field(description="the file name")],
1540
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
1541
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
1542
+ file_name: Annotated[StrictStr, Field(description="The file name")],
1482
1543
  _request_timeout: Union[
1483
1544
  None,
1484
1545
  Annotated[StrictFloat, Field(gt=0)],
@@ -1495,11 +1556,11 @@ class WorkspaceApi:
1495
1556
  """Delete a workspace file
1496
1557
 
1497
1558
 
1498
- :param organization_id: the Organization identifier (required)
1559
+ :param organization_id: The Organization identifier (required)
1499
1560
  :type organization_id: str
1500
- :param workspace_id: the Workspace identifier (required)
1561
+ :param workspace_id: The Workspace identifier (required)
1501
1562
  :type workspace_id: str
1502
- :param file_name: the file name (required)
1563
+ :param file_name: The file name (required)
1503
1564
  :type file_name: str
1504
1565
  :param _request_timeout: timeout setting for this request. If one
1505
1566
  number provided, it will be total request
@@ -1551,9 +1612,9 @@ class WorkspaceApi:
1551
1612
  @validate_call
1552
1613
  def delete_workspace_file_with_http_info(
1553
1614
  self,
1554
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1555
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1556
- file_name: Annotated[StrictStr, Field(description="the file name")],
1615
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
1616
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
1617
+ file_name: Annotated[StrictStr, Field(description="The file name")],
1557
1618
  _request_timeout: Union[
1558
1619
  None,
1559
1620
  Annotated[StrictFloat, Field(gt=0)],
@@ -1570,11 +1631,11 @@ class WorkspaceApi:
1570
1631
  """Delete a workspace file
1571
1632
 
1572
1633
 
1573
- :param organization_id: the Organization identifier (required)
1634
+ :param organization_id: The Organization identifier (required)
1574
1635
  :type organization_id: str
1575
- :param workspace_id: the Workspace identifier (required)
1636
+ :param workspace_id: The Workspace identifier (required)
1576
1637
  :type workspace_id: str
1577
- :param file_name: the file name (required)
1638
+ :param file_name: The file name (required)
1578
1639
  :type file_name: str
1579
1640
  :param _request_timeout: timeout setting for this request. If one
1580
1641
  number provided, it will be total request
@@ -1626,9 +1687,9 @@ class WorkspaceApi:
1626
1687
  @validate_call
1627
1688
  def delete_workspace_file_without_preload_content(
1628
1689
  self,
1629
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1630
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1631
- file_name: Annotated[StrictStr, Field(description="the file name")],
1690
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
1691
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
1692
+ file_name: Annotated[StrictStr, Field(description="The file name")],
1632
1693
  _request_timeout: Union[
1633
1694
  None,
1634
1695
  Annotated[StrictFloat, Field(gt=0)],
@@ -1645,11 +1706,11 @@ class WorkspaceApi:
1645
1706
  """Delete a workspace file
1646
1707
 
1647
1708
 
1648
- :param organization_id: the Organization identifier (required)
1709
+ :param organization_id: The Organization identifier (required)
1649
1710
  :type organization_id: str
1650
- :param workspace_id: the Workspace identifier (required)
1711
+ :param workspace_id: The Workspace identifier (required)
1651
1712
  :type workspace_id: str
1652
- :param file_name: the file name (required)
1713
+ :param file_name: The file name (required)
1653
1714
  :type file_name: str
1654
1715
  :param _request_timeout: timeout setting for this request. If one
1655
1716
  number provided, it will be total request
@@ -1714,7 +1775,9 @@ class WorkspaceApi:
1714
1775
  _query_params: List[Tuple[str, str]] = []
1715
1776
  _header_params: Dict[str, Optional[str]] = _headers or {}
1716
1777
  _form_params: List[Tuple[str, str]] = []
1717
- _files: Dict[str, str] = {}
1778
+ _files: Dict[
1779
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1780
+ ] = {}
1718
1781
  _body_params: Optional[bytes] = None
1719
1782
 
1720
1783
  # process the path parameters
@@ -1758,11 +1821,10 @@ class WorkspaceApi:
1758
1821
 
1759
1822
 
1760
1823
  @validate_call
1761
- def download_workspace_file(
1824
+ def delete_workspace_files(
1762
1825
  self,
1763
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1764
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1765
- file_name: Annotated[StrictStr, Field(description="the file name")],
1826
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
1827
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
1766
1828
  _request_timeout: Union[
1767
1829
  None,
1768
1830
  Annotated[StrictFloat, Field(gt=0)],
@@ -1775,16 +1837,14 @@ class WorkspaceApi:
1775
1837
  _content_type: Optional[StrictStr] = None,
1776
1838
  _headers: Optional[Dict[StrictStr, Any]] = None,
1777
1839
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1778
- ) -> bytearray:
1779
- """Download the Workspace File specified
1840
+ ) -> None:
1841
+ """Delete all Workspace files
1780
1842
 
1781
1843
 
1782
- :param organization_id: the Organization identifier (required)
1844
+ :param organization_id: The Organization identifier (required)
1783
1845
  :type organization_id: str
1784
- :param workspace_id: the Workspace identifier (required)
1846
+ :param workspace_id: The Workspace identifier (required)
1785
1847
  :type workspace_id: str
1786
- :param file_name: the file name (required)
1787
- :type file_name: str
1788
1848
  :param _request_timeout: timeout setting for this request. If one
1789
1849
  number provided, it will be total request
1790
1850
  timeout. It can also be a pair (tuple) of
@@ -1807,10 +1867,9 @@ class WorkspaceApi:
1807
1867
  :return: Returns the result object.
1808
1868
  """ # noqa: E501
1809
1869
 
1810
- _param = self._download_workspace_file_serialize(
1870
+ _param = self._delete_workspace_files_serialize(
1811
1871
  organization_id=organization_id,
1812
1872
  workspace_id=workspace_id,
1813
- file_name=file_name,
1814
1873
  _request_auth=_request_auth,
1815
1874
  _content_type=_content_type,
1816
1875
  _headers=_headers,
@@ -1818,7 +1877,7 @@ class WorkspaceApi:
1818
1877
  )
1819
1878
 
1820
1879
  _response_types_map: Dict[str, Optional[str]] = {
1821
- '200': "bytearray",
1880
+ '204': None,
1822
1881
  '404': None,
1823
1882
  }
1824
1883
  response_data = self.api_client.call_api(
@@ -1833,11 +1892,10 @@ class WorkspaceApi:
1833
1892
 
1834
1893
 
1835
1894
  @validate_call
1836
- def download_workspace_file_with_http_info(
1895
+ def delete_workspace_files_with_http_info(
1837
1896
  self,
1838
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1839
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1840
- file_name: Annotated[StrictStr, Field(description="the file name")],
1897
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
1898
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
1841
1899
  _request_timeout: Union[
1842
1900
  None,
1843
1901
  Annotated[StrictFloat, Field(gt=0)],
@@ -1850,16 +1908,14 @@ class WorkspaceApi:
1850
1908
  _content_type: Optional[StrictStr] = None,
1851
1909
  _headers: Optional[Dict[StrictStr, Any]] = None,
1852
1910
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1853
- ) -> ApiResponse[bytearray]:
1854
- """Download the Workspace File specified
1911
+ ) -> ApiResponse[None]:
1912
+ """Delete all Workspace files
1855
1913
 
1856
1914
 
1857
- :param organization_id: the Organization identifier (required)
1915
+ :param organization_id: The Organization identifier (required)
1858
1916
  :type organization_id: str
1859
- :param workspace_id: the Workspace identifier (required)
1917
+ :param workspace_id: The Workspace identifier (required)
1860
1918
  :type workspace_id: str
1861
- :param file_name: the file name (required)
1862
- :type file_name: str
1863
1919
  :param _request_timeout: timeout setting for this request. If one
1864
1920
  number provided, it will be total request
1865
1921
  timeout. It can also be a pair (tuple) of
@@ -1882,10 +1938,9 @@ class WorkspaceApi:
1882
1938
  :return: Returns the result object.
1883
1939
  """ # noqa: E501
1884
1940
 
1885
- _param = self._download_workspace_file_serialize(
1941
+ _param = self._delete_workspace_files_serialize(
1886
1942
  organization_id=organization_id,
1887
1943
  workspace_id=workspace_id,
1888
- file_name=file_name,
1889
1944
  _request_auth=_request_auth,
1890
1945
  _content_type=_content_type,
1891
1946
  _headers=_headers,
@@ -1893,7 +1948,7 @@ class WorkspaceApi:
1893
1948
  )
1894
1949
 
1895
1950
  _response_types_map: Dict[str, Optional[str]] = {
1896
- '200': "bytearray",
1951
+ '204': None,
1897
1952
  '404': None,
1898
1953
  }
1899
1954
  response_data = self.api_client.call_api(
@@ -1908,11 +1963,10 @@ class WorkspaceApi:
1908
1963
 
1909
1964
 
1910
1965
  @validate_call
1911
- def download_workspace_file_without_preload_content(
1966
+ def delete_workspace_files_without_preload_content(
1912
1967
  self,
1913
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1914
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1915
- file_name: Annotated[StrictStr, Field(description="the file name")],
1968
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
1969
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
1916
1970
  _request_timeout: Union[
1917
1971
  None,
1918
1972
  Annotated[StrictFloat, Field(gt=0)],
@@ -1926,15 +1980,13 @@ class WorkspaceApi:
1926
1980
  _headers: Optional[Dict[StrictStr, Any]] = None,
1927
1981
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1928
1982
  ) -> RESTResponseType:
1929
- """Download the Workspace File specified
1983
+ """Delete all Workspace files
1930
1984
 
1931
1985
 
1932
- :param organization_id: the Organization identifier (required)
1986
+ :param organization_id: The Organization identifier (required)
1933
1987
  :type organization_id: str
1934
- :param workspace_id: the Workspace identifier (required)
1988
+ :param workspace_id: The Workspace identifier (required)
1935
1989
  :type workspace_id: str
1936
- :param file_name: the file name (required)
1937
- :type file_name: str
1938
1990
  :param _request_timeout: timeout setting for this request. If one
1939
1991
  number provided, it will be total request
1940
1992
  timeout. It can also be a pair (tuple) of
@@ -1957,10 +2009,9 @@ class WorkspaceApi:
1957
2009
  :return: Returns the result object.
1958
2010
  """ # noqa: E501
1959
2011
 
1960
- _param = self._download_workspace_file_serialize(
2012
+ _param = self._delete_workspace_files_serialize(
1961
2013
  organization_id=organization_id,
1962
2014
  workspace_id=workspace_id,
1963
- file_name=file_name,
1964
2015
  _request_auth=_request_auth,
1965
2016
  _content_type=_content_type,
1966
2017
  _headers=_headers,
@@ -1968,7 +2019,7 @@ class WorkspaceApi:
1968
2019
  )
1969
2020
 
1970
2021
  _response_types_map: Dict[str, Optional[str]] = {
1971
- '200': "bytearray",
2022
+ '204': None,
1972
2023
  '404': None,
1973
2024
  }
1974
2025
  response_data = self.api_client.call_api(
@@ -1978,11 +2029,10 @@ class WorkspaceApi:
1978
2029
  return response_data.response
1979
2030
 
1980
2031
 
1981
- def _download_workspace_file_serialize(
2032
+ def _delete_workspace_files_serialize(
1982
2033
  self,
1983
2034
  organization_id,
1984
2035
  workspace_id,
1985
- file_name,
1986
2036
  _request_auth,
1987
2037
  _content_type,
1988
2038
  _headers,
@@ -1998,7 +2048,9 @@ class WorkspaceApi:
1998
2048
  _query_params: List[Tuple[str, str]] = []
1999
2049
  _header_params: Dict[str, Optional[str]] = _headers or {}
2000
2050
  _form_params: List[Tuple[str, str]] = []
2001
- _files: Dict[str, str] = {}
2051
+ _files: Dict[
2052
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2053
+ ] = {}
2002
2054
  _body_params: Optional[bytes] = None
2003
2055
 
2004
2056
  # process the path parameters
@@ -2007,21 +2059,11 @@ class WorkspaceApi:
2007
2059
  if workspace_id is not None:
2008
2060
  _path_params['workspace_id'] = workspace_id
2009
2061
  # process the query parameters
2010
- if file_name is not None:
2011
-
2012
- _query_params.append(('file_name', file_name))
2013
-
2014
2062
  # process the header parameters
2015
2063
  # process the form parameters
2016
2064
  # process the body parameter
2017
2065
 
2018
2066
 
2019
- # set the HTTP header `Accept`
2020
- _header_params['Accept'] = self.api_client.select_header_accept(
2021
- [
2022
- 'application/octet-stream'
2023
- ]
2024
- )
2025
2067
 
2026
2068
 
2027
2069
  # authentication setting
@@ -2030,8 +2072,8 @@ class WorkspaceApi:
2030
2072
  ]
2031
2073
 
2032
2074
  return self.api_client.param_serialize(
2033
- method='GET',
2034
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/files/download',
2075
+ method='DELETE',
2076
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/files',
2035
2077
  path_params=_path_params,
2036
2078
  query_params=_query_params,
2037
2079
  header_params=_header_params,
@@ -2048,10 +2090,10 @@ class WorkspaceApi:
2048
2090
 
2049
2091
 
2050
2092
  @validate_call
2051
- def find_all_workspace_files(
2093
+ def get_workspace(
2052
2094
  self,
2053
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2054
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2095
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
2096
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
2055
2097
  _request_timeout: Union[
2056
2098
  None,
2057
2099
  Annotated[StrictFloat, Field(gt=0)],
@@ -2064,13 +2106,13 @@ class WorkspaceApi:
2064
2106
  _content_type: Optional[StrictStr] = None,
2065
2107
  _headers: Optional[Dict[StrictStr, Any]] = None,
2066
2108
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2067
- ) -> List[WorkspaceFile]:
2068
- """List all Workspace files
2109
+ ) -> Workspace:
2110
+ """Get the details of a workspace
2069
2111
 
2070
2112
 
2071
- :param organization_id: the Organization identifier (required)
2113
+ :param organization_id: The Organization identifier (required)
2072
2114
  :type organization_id: str
2073
- :param workspace_id: the Workspace identifier (required)
2115
+ :param workspace_id: The Workspace identifier (required)
2074
2116
  :type workspace_id: str
2075
2117
  :param _request_timeout: timeout setting for this request. If one
2076
2118
  number provided, it will be total request
@@ -2094,7 +2136,7 @@ class WorkspaceApi:
2094
2136
  :return: Returns the result object.
2095
2137
  """ # noqa: E501
2096
2138
 
2097
- _param = self._find_all_workspace_files_serialize(
2139
+ _param = self._get_workspace_serialize(
2098
2140
  organization_id=organization_id,
2099
2141
  workspace_id=workspace_id,
2100
2142
  _request_auth=_request_auth,
@@ -2104,7 +2146,7 @@ class WorkspaceApi:
2104
2146
  )
2105
2147
 
2106
2148
  _response_types_map: Dict[str, Optional[str]] = {
2107
- '200': "List[WorkspaceFile]",
2149
+ '200': "Workspace",
2108
2150
  '404': None,
2109
2151
  }
2110
2152
  response_data = self.api_client.call_api(
@@ -2119,10 +2161,10 @@ class WorkspaceApi:
2119
2161
 
2120
2162
 
2121
2163
  @validate_call
2122
- def find_all_workspace_files_with_http_info(
2164
+ def get_workspace_with_http_info(
2123
2165
  self,
2124
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2125
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2166
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
2167
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
2126
2168
  _request_timeout: Union[
2127
2169
  None,
2128
2170
  Annotated[StrictFloat, Field(gt=0)],
@@ -2135,13 +2177,13 @@ class WorkspaceApi:
2135
2177
  _content_type: Optional[StrictStr] = None,
2136
2178
  _headers: Optional[Dict[StrictStr, Any]] = None,
2137
2179
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2138
- ) -> ApiResponse[List[WorkspaceFile]]:
2139
- """List all Workspace files
2180
+ ) -> ApiResponse[Workspace]:
2181
+ """Get the details of a workspace
2140
2182
 
2141
2183
 
2142
- :param organization_id: the Organization identifier (required)
2184
+ :param organization_id: The Organization identifier (required)
2143
2185
  :type organization_id: str
2144
- :param workspace_id: the Workspace identifier (required)
2186
+ :param workspace_id: The Workspace identifier (required)
2145
2187
  :type workspace_id: str
2146
2188
  :param _request_timeout: timeout setting for this request. If one
2147
2189
  number provided, it will be total request
@@ -2165,7 +2207,7 @@ class WorkspaceApi:
2165
2207
  :return: Returns the result object.
2166
2208
  """ # noqa: E501
2167
2209
 
2168
- _param = self._find_all_workspace_files_serialize(
2210
+ _param = self._get_workspace_serialize(
2169
2211
  organization_id=organization_id,
2170
2212
  workspace_id=workspace_id,
2171
2213
  _request_auth=_request_auth,
@@ -2175,7 +2217,7 @@ class WorkspaceApi:
2175
2217
  )
2176
2218
 
2177
2219
  _response_types_map: Dict[str, Optional[str]] = {
2178
- '200': "List[WorkspaceFile]",
2220
+ '200': "Workspace",
2179
2221
  '404': None,
2180
2222
  }
2181
2223
  response_data = self.api_client.call_api(
@@ -2190,10 +2232,10 @@ class WorkspaceApi:
2190
2232
 
2191
2233
 
2192
2234
  @validate_call
2193
- def find_all_workspace_files_without_preload_content(
2235
+ def get_workspace_without_preload_content(
2194
2236
  self,
2195
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2196
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2237
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
2238
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
2197
2239
  _request_timeout: Union[
2198
2240
  None,
2199
2241
  Annotated[StrictFloat, Field(gt=0)],
@@ -2207,12 +2249,12 @@ class WorkspaceApi:
2207
2249
  _headers: Optional[Dict[StrictStr, Any]] = None,
2208
2250
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2209
2251
  ) -> RESTResponseType:
2210
- """List all Workspace files
2252
+ """Get the details of a workspace
2211
2253
 
2212
2254
 
2213
- :param organization_id: the Organization identifier (required)
2255
+ :param organization_id: The Organization identifier (required)
2214
2256
  :type organization_id: str
2215
- :param workspace_id: the Workspace identifier (required)
2257
+ :param workspace_id: The Workspace identifier (required)
2216
2258
  :type workspace_id: str
2217
2259
  :param _request_timeout: timeout setting for this request. If one
2218
2260
  number provided, it will be total request
@@ -2236,7 +2278,7 @@ class WorkspaceApi:
2236
2278
  :return: Returns the result object.
2237
2279
  """ # noqa: E501
2238
2280
 
2239
- _param = self._find_all_workspace_files_serialize(
2281
+ _param = self._get_workspace_serialize(
2240
2282
  organization_id=organization_id,
2241
2283
  workspace_id=workspace_id,
2242
2284
  _request_auth=_request_auth,
@@ -2246,7 +2288,7 @@ class WorkspaceApi:
2246
2288
  )
2247
2289
 
2248
2290
  _response_types_map: Dict[str, Optional[str]] = {
2249
- '200': "List[WorkspaceFile]",
2291
+ '200': "Workspace",
2250
2292
  '404': None,
2251
2293
  }
2252
2294
  response_data = self.api_client.call_api(
@@ -2256,7 +2298,7 @@ class WorkspaceApi:
2256
2298
  return response_data.response
2257
2299
 
2258
2300
 
2259
- def _find_all_workspace_files_serialize(
2301
+ def _get_workspace_serialize(
2260
2302
  self,
2261
2303
  organization_id,
2262
2304
  workspace_id,
@@ -2275,7 +2317,9 @@ class WorkspaceApi:
2275
2317
  _query_params: List[Tuple[str, str]] = []
2276
2318
  _header_params: Dict[str, Optional[str]] = _headers or {}
2277
2319
  _form_params: List[Tuple[str, str]] = []
2278
- _files: Dict[str, str] = {}
2320
+ _files: Dict[
2321
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2322
+ ] = {}
2279
2323
  _body_params: Optional[bytes] = None
2280
2324
 
2281
2325
  # process the path parameters
@@ -2290,11 +2334,13 @@ class WorkspaceApi:
2290
2334
 
2291
2335
 
2292
2336
  # set the HTTP header `Accept`
2293
- _header_params['Accept'] = self.api_client.select_header_accept(
2294
- [
2295
- 'application/json'
2296
- ]
2297
- )
2337
+ if 'Accept' not in _header_params:
2338
+ _header_params['Accept'] = self.api_client.select_header_accept(
2339
+ [
2340
+ 'application/json',
2341
+ 'application/yaml'
2342
+ ]
2343
+ )
2298
2344
 
2299
2345
 
2300
2346
  # authentication setting
@@ -2304,7 +2350,7 @@ class WorkspaceApi:
2304
2350
 
2305
2351
  return self.api_client.param_serialize(
2306
2352
  method='GET',
2307
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/files',
2353
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}',
2308
2354
  path_params=_path_params,
2309
2355
  query_params=_query_params,
2310
2356
  header_params=_header_params,
@@ -2321,11 +2367,11 @@ class WorkspaceApi:
2321
2367
 
2322
2368
 
2323
2369
  @validate_call
2324
- def find_all_workspaces(
2370
+ def get_workspace_access_control(
2325
2371
  self,
2326
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2327
- page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
2328
- size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
2372
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
2373
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
2374
+ identity_id: Annotated[StrictStr, Field(description="The User identifier")],
2329
2375
  _request_timeout: Union[
2330
2376
  None,
2331
2377
  Annotated[StrictFloat, Field(gt=0)],
@@ -2338,727 +2384,15 @@ class WorkspaceApi:
2338
2384
  _content_type: Optional[StrictStr] = None,
2339
2385
  _headers: Optional[Dict[StrictStr, Any]] = None,
2340
2386
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2341
- ) -> List[Workspace]:
2342
- """List all Workspaces
2343
-
2344
-
2345
- :param organization_id: the Organization identifier (required)
2346
- :type organization_id: str
2347
- :param page: page number to query
2348
- :type page: int
2349
- :param size: amount of result by page
2350
- :type size: int
2351
- :param _request_timeout: timeout setting for this request. If one
2352
- number provided, it will be total request
2353
- timeout. It can also be a pair (tuple) of
2354
- (connection, read) timeouts.
2355
- :type _request_timeout: int, tuple(int, int), optional
2356
- :param _request_auth: set to override the auth_settings for an a single
2357
- request; this effectively ignores the
2358
- authentication in the spec for a single request.
2359
- :type _request_auth: dict, optional
2360
- :param _content_type: force content-type for the request.
2361
- :type _content_type: str, Optional
2362
- :param _headers: set to override the headers for a single
2363
- request; this effectively ignores the headers
2364
- in the spec for a single request.
2365
- :type _headers: dict, optional
2366
- :param _host_index: set to override the host_index for a single
2367
- request; this effectively ignores the host_index
2368
- in the spec for a single request.
2369
- :type _host_index: int, optional
2370
- :return: Returns the result object.
2371
- """ # noqa: E501
2372
-
2373
- _param = self._find_all_workspaces_serialize(
2374
- organization_id=organization_id,
2375
- page=page,
2376
- size=size,
2377
- _request_auth=_request_auth,
2378
- _content_type=_content_type,
2379
- _headers=_headers,
2380
- _host_index=_host_index
2381
- )
2382
-
2383
- _response_types_map: Dict[str, Optional[str]] = {
2384
- '200': "List[Workspace]",
2385
- }
2386
- response_data = self.api_client.call_api(
2387
- *_param,
2388
- _request_timeout=_request_timeout
2389
- )
2390
- response_data.read()
2391
- return self.api_client.response_deserialize(
2392
- response_data=response_data,
2393
- response_types_map=_response_types_map,
2394
- ).data
2395
-
2396
-
2397
- @validate_call
2398
- def find_all_workspaces_with_http_info(
2399
- self,
2400
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2401
- page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
2402
- size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
2403
- _request_timeout: Union[
2404
- None,
2405
- Annotated[StrictFloat, Field(gt=0)],
2406
- Tuple[
2407
- Annotated[StrictFloat, Field(gt=0)],
2408
- Annotated[StrictFloat, Field(gt=0)]
2409
- ]
2410
- ] = None,
2411
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2412
- _content_type: Optional[StrictStr] = None,
2413
- _headers: Optional[Dict[StrictStr, Any]] = None,
2414
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2415
- ) -> ApiResponse[List[Workspace]]:
2416
- """List all Workspaces
2417
-
2418
-
2419
- :param organization_id: the Organization identifier (required)
2420
- :type organization_id: str
2421
- :param page: page number to query
2422
- :type page: int
2423
- :param size: amount of result by page
2424
- :type size: int
2425
- :param _request_timeout: timeout setting for this request. If one
2426
- number provided, it will be total request
2427
- timeout. It can also be a pair (tuple) of
2428
- (connection, read) timeouts.
2429
- :type _request_timeout: int, tuple(int, int), optional
2430
- :param _request_auth: set to override the auth_settings for an a single
2431
- request; this effectively ignores the
2432
- authentication in the spec for a single request.
2433
- :type _request_auth: dict, optional
2434
- :param _content_type: force content-type for the request.
2435
- :type _content_type: str, Optional
2436
- :param _headers: set to override the headers for a single
2437
- request; this effectively ignores the headers
2438
- in the spec for a single request.
2439
- :type _headers: dict, optional
2440
- :param _host_index: set to override the host_index for a single
2441
- request; this effectively ignores the host_index
2442
- in the spec for a single request.
2443
- :type _host_index: int, optional
2444
- :return: Returns the result object.
2445
- """ # noqa: E501
2446
-
2447
- _param = self._find_all_workspaces_serialize(
2448
- organization_id=organization_id,
2449
- page=page,
2450
- size=size,
2451
- _request_auth=_request_auth,
2452
- _content_type=_content_type,
2453
- _headers=_headers,
2454
- _host_index=_host_index
2455
- )
2456
-
2457
- _response_types_map: Dict[str, Optional[str]] = {
2458
- '200': "List[Workspace]",
2459
- }
2460
- response_data = self.api_client.call_api(
2461
- *_param,
2462
- _request_timeout=_request_timeout
2463
- )
2464
- response_data.read()
2465
- return self.api_client.response_deserialize(
2466
- response_data=response_data,
2467
- response_types_map=_response_types_map,
2468
- )
2469
-
2470
-
2471
- @validate_call
2472
- def find_all_workspaces_without_preload_content(
2473
- self,
2474
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2475
- page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
2476
- size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
2477
- _request_timeout: Union[
2478
- None,
2479
- Annotated[StrictFloat, Field(gt=0)],
2480
- Tuple[
2481
- Annotated[StrictFloat, Field(gt=0)],
2482
- Annotated[StrictFloat, Field(gt=0)]
2483
- ]
2484
- ] = None,
2485
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2486
- _content_type: Optional[StrictStr] = None,
2487
- _headers: Optional[Dict[StrictStr, Any]] = None,
2488
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2489
- ) -> RESTResponseType:
2490
- """List all Workspaces
2491
-
2492
-
2493
- :param organization_id: the Organization identifier (required)
2494
- :type organization_id: str
2495
- :param page: page number to query
2496
- :type page: int
2497
- :param size: amount of result by page
2498
- :type size: int
2499
- :param _request_timeout: timeout setting for this request. If one
2500
- number provided, it will be total request
2501
- timeout. It can also be a pair (tuple) of
2502
- (connection, read) timeouts.
2503
- :type _request_timeout: int, tuple(int, int), optional
2504
- :param _request_auth: set to override the auth_settings for an a single
2505
- request; this effectively ignores the
2506
- authentication in the spec for a single request.
2507
- :type _request_auth: dict, optional
2508
- :param _content_type: force content-type for the request.
2509
- :type _content_type: str, Optional
2510
- :param _headers: set to override the headers for a single
2511
- request; this effectively ignores the headers
2512
- in the spec for a single request.
2513
- :type _headers: dict, optional
2514
- :param _host_index: set to override the host_index for a single
2515
- request; this effectively ignores the host_index
2516
- in the spec for a single request.
2517
- :type _host_index: int, optional
2518
- :return: Returns the result object.
2519
- """ # noqa: E501
2520
-
2521
- _param = self._find_all_workspaces_serialize(
2522
- organization_id=organization_id,
2523
- page=page,
2524
- size=size,
2525
- _request_auth=_request_auth,
2526
- _content_type=_content_type,
2527
- _headers=_headers,
2528
- _host_index=_host_index
2529
- )
2530
-
2531
- _response_types_map: Dict[str, Optional[str]] = {
2532
- '200': "List[Workspace]",
2533
- }
2534
- response_data = self.api_client.call_api(
2535
- *_param,
2536
- _request_timeout=_request_timeout
2537
- )
2538
- return response_data.response
2539
-
2540
-
2541
- def _find_all_workspaces_serialize(
2542
- self,
2543
- organization_id,
2544
- page,
2545
- size,
2546
- _request_auth,
2547
- _content_type,
2548
- _headers,
2549
- _host_index,
2550
- ) -> RequestSerialized:
2551
-
2552
- _host = None
2553
-
2554
- _collection_formats: Dict[str, str] = {
2555
- }
2556
-
2557
- _path_params: Dict[str, str] = {}
2558
- _query_params: List[Tuple[str, str]] = []
2559
- _header_params: Dict[str, Optional[str]] = _headers or {}
2560
- _form_params: List[Tuple[str, str]] = []
2561
- _files: Dict[str, str] = {}
2562
- _body_params: Optional[bytes] = None
2563
-
2564
- # process the path parameters
2565
- if organization_id is not None:
2566
- _path_params['organization_id'] = organization_id
2567
- # process the query parameters
2568
- if page is not None:
2569
-
2570
- _query_params.append(('page', page))
2571
-
2572
- if size is not None:
2573
-
2574
- _query_params.append(('size', size))
2575
-
2576
- # process the header parameters
2577
- # process the form parameters
2578
- # process the body parameter
2579
-
2580
-
2581
- # set the HTTP header `Accept`
2582
- _header_params['Accept'] = self.api_client.select_header_accept(
2583
- [
2584
- 'application/json'
2585
- ]
2586
- )
2587
-
2588
-
2589
- # authentication setting
2590
- _auth_settings: List[str] = [
2591
- 'oAuth2AuthCode'
2592
- ]
2593
-
2594
- return self.api_client.param_serialize(
2595
- method='GET',
2596
- resource_path='/organizations/{organization_id}/workspaces',
2597
- path_params=_path_params,
2598
- query_params=_query_params,
2599
- header_params=_header_params,
2600
- body=_body_params,
2601
- post_params=_form_params,
2602
- files=_files,
2603
- auth_settings=_auth_settings,
2604
- collection_formats=_collection_formats,
2605
- _host=_host,
2606
- _request_auth=_request_auth
2607
- )
2608
-
2609
-
2610
-
2611
-
2612
- @validate_call
2613
- def find_workspace_by_id(
2614
- self,
2615
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2616
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2617
- _request_timeout: Union[
2618
- None,
2619
- Annotated[StrictFloat, Field(gt=0)],
2620
- Tuple[
2621
- Annotated[StrictFloat, Field(gt=0)],
2622
- Annotated[StrictFloat, Field(gt=0)]
2623
- ]
2624
- ] = None,
2625
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2626
- _content_type: Optional[StrictStr] = None,
2627
- _headers: Optional[Dict[StrictStr, Any]] = None,
2628
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2629
- ) -> Workspace:
2630
- """Get the details of an workspace
2631
-
2632
-
2633
- :param organization_id: the Organization identifier (required)
2634
- :type organization_id: str
2635
- :param workspace_id: the Workspace identifier (required)
2636
- :type workspace_id: str
2637
- :param _request_timeout: timeout setting for this request. If one
2638
- number provided, it will be total request
2639
- timeout. It can also be a pair (tuple) of
2640
- (connection, read) timeouts.
2641
- :type _request_timeout: int, tuple(int, int), optional
2642
- :param _request_auth: set to override the auth_settings for an a single
2643
- request; this effectively ignores the
2644
- authentication in the spec for a single request.
2645
- :type _request_auth: dict, optional
2646
- :param _content_type: force content-type for the request.
2647
- :type _content_type: str, Optional
2648
- :param _headers: set to override the headers for a single
2649
- request; this effectively ignores the headers
2650
- in the spec for a single request.
2651
- :type _headers: dict, optional
2652
- :param _host_index: set to override the host_index for a single
2653
- request; this effectively ignores the host_index
2654
- in the spec for a single request.
2655
- :type _host_index: int, optional
2656
- :return: Returns the result object.
2657
- """ # noqa: E501
2658
-
2659
- _param = self._find_workspace_by_id_serialize(
2660
- organization_id=organization_id,
2661
- workspace_id=workspace_id,
2662
- _request_auth=_request_auth,
2663
- _content_type=_content_type,
2664
- _headers=_headers,
2665
- _host_index=_host_index
2666
- )
2667
-
2668
- _response_types_map: Dict[str, Optional[str]] = {
2669
- '200': "Workspace",
2670
- '404': None,
2671
- }
2672
- response_data = self.api_client.call_api(
2673
- *_param,
2674
- _request_timeout=_request_timeout
2675
- )
2676
- response_data.read()
2677
- return self.api_client.response_deserialize(
2678
- response_data=response_data,
2679
- response_types_map=_response_types_map,
2680
- ).data
2681
-
2682
-
2683
- @validate_call
2684
- def find_workspace_by_id_with_http_info(
2685
- self,
2686
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2687
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2688
- _request_timeout: Union[
2689
- None,
2690
- Annotated[StrictFloat, Field(gt=0)],
2691
- Tuple[
2692
- Annotated[StrictFloat, Field(gt=0)],
2693
- Annotated[StrictFloat, Field(gt=0)]
2694
- ]
2695
- ] = None,
2696
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2697
- _content_type: Optional[StrictStr] = None,
2698
- _headers: Optional[Dict[StrictStr, Any]] = None,
2699
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2700
- ) -> ApiResponse[Workspace]:
2701
- """Get the details of an workspace
2702
-
2703
-
2704
- :param organization_id: the Organization identifier (required)
2705
- :type organization_id: str
2706
- :param workspace_id: the Workspace identifier (required)
2707
- :type workspace_id: str
2708
- :param _request_timeout: timeout setting for this request. If one
2709
- number provided, it will be total request
2710
- timeout. It can also be a pair (tuple) of
2711
- (connection, read) timeouts.
2712
- :type _request_timeout: int, tuple(int, int), optional
2713
- :param _request_auth: set to override the auth_settings for an a single
2714
- request; this effectively ignores the
2715
- authentication in the spec for a single request.
2716
- :type _request_auth: dict, optional
2717
- :param _content_type: force content-type for the request.
2718
- :type _content_type: str, Optional
2719
- :param _headers: set to override the headers for a single
2720
- request; this effectively ignores the headers
2721
- in the spec for a single request.
2722
- :type _headers: dict, optional
2723
- :param _host_index: set to override the host_index for a single
2724
- request; this effectively ignores the host_index
2725
- in the spec for a single request.
2726
- :type _host_index: int, optional
2727
- :return: Returns the result object.
2728
- """ # noqa: E501
2729
-
2730
- _param = self._find_workspace_by_id_serialize(
2731
- organization_id=organization_id,
2732
- workspace_id=workspace_id,
2733
- _request_auth=_request_auth,
2734
- _content_type=_content_type,
2735
- _headers=_headers,
2736
- _host_index=_host_index
2737
- )
2738
-
2739
- _response_types_map: Dict[str, Optional[str]] = {
2740
- '200': "Workspace",
2741
- '404': None,
2742
- }
2743
- response_data = self.api_client.call_api(
2744
- *_param,
2745
- _request_timeout=_request_timeout
2746
- )
2747
- response_data.read()
2748
- return self.api_client.response_deserialize(
2749
- response_data=response_data,
2750
- response_types_map=_response_types_map,
2751
- )
2752
-
2753
-
2754
- @validate_call
2755
- def find_workspace_by_id_without_preload_content(
2756
- self,
2757
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2758
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2759
- _request_timeout: Union[
2760
- None,
2761
- Annotated[StrictFloat, Field(gt=0)],
2762
- Tuple[
2763
- Annotated[StrictFloat, Field(gt=0)],
2764
- Annotated[StrictFloat, Field(gt=0)]
2765
- ]
2766
- ] = None,
2767
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2768
- _content_type: Optional[StrictStr] = None,
2769
- _headers: Optional[Dict[StrictStr, Any]] = None,
2770
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2771
- ) -> RESTResponseType:
2772
- """Get the details of an workspace
2773
-
2774
-
2775
- :param organization_id: the Organization identifier (required)
2776
- :type organization_id: str
2777
- :param workspace_id: the Workspace identifier (required)
2778
- :type workspace_id: str
2779
- :param _request_timeout: timeout setting for this request. If one
2780
- number provided, it will be total request
2781
- timeout. It can also be a pair (tuple) of
2782
- (connection, read) timeouts.
2783
- :type _request_timeout: int, tuple(int, int), optional
2784
- :param _request_auth: set to override the auth_settings for an a single
2785
- request; this effectively ignores the
2786
- authentication in the spec for a single request.
2787
- :type _request_auth: dict, optional
2788
- :param _content_type: force content-type for the request.
2789
- :type _content_type: str, Optional
2790
- :param _headers: set to override the headers for a single
2791
- request; this effectively ignores the headers
2792
- in the spec for a single request.
2793
- :type _headers: dict, optional
2794
- :param _host_index: set to override the host_index for a single
2795
- request; this effectively ignores the host_index
2796
- in the spec for a single request.
2797
- :type _host_index: int, optional
2798
- :return: Returns the result object.
2799
- """ # noqa: E501
2800
-
2801
- _param = self._find_workspace_by_id_serialize(
2802
- organization_id=organization_id,
2803
- workspace_id=workspace_id,
2804
- _request_auth=_request_auth,
2805
- _content_type=_content_type,
2806
- _headers=_headers,
2807
- _host_index=_host_index
2808
- )
2809
-
2810
- _response_types_map: Dict[str, Optional[str]] = {
2811
- '200': "Workspace",
2812
- '404': None,
2813
- }
2814
- response_data = self.api_client.call_api(
2815
- *_param,
2816
- _request_timeout=_request_timeout
2817
- )
2818
- return response_data.response
2819
-
2820
-
2821
- def _find_workspace_by_id_serialize(
2822
- self,
2823
- organization_id,
2824
- workspace_id,
2825
- _request_auth,
2826
- _content_type,
2827
- _headers,
2828
- _host_index,
2829
- ) -> RequestSerialized:
2830
-
2831
- _host = None
2832
-
2833
- _collection_formats: Dict[str, str] = {
2834
- }
2835
-
2836
- _path_params: Dict[str, str] = {}
2837
- _query_params: List[Tuple[str, str]] = []
2838
- _header_params: Dict[str, Optional[str]] = _headers or {}
2839
- _form_params: List[Tuple[str, str]] = []
2840
- _files: Dict[str, str] = {}
2841
- _body_params: Optional[bytes] = None
2842
-
2843
- # process the path parameters
2844
- if organization_id is not None:
2845
- _path_params['organization_id'] = organization_id
2846
- if workspace_id is not None:
2847
- _path_params['workspace_id'] = workspace_id
2848
- # process the query parameters
2849
- # process the header parameters
2850
- # process the form parameters
2851
- # process the body parameter
2852
-
2853
-
2854
- # set the HTTP header `Accept`
2855
- _header_params['Accept'] = self.api_client.select_header_accept(
2856
- [
2857
- 'application/json'
2858
- ]
2859
- )
2860
-
2861
-
2862
- # authentication setting
2863
- _auth_settings: List[str] = [
2864
- 'oAuth2AuthCode'
2865
- ]
2866
-
2867
- return self.api_client.param_serialize(
2868
- method='GET',
2869
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}',
2870
- path_params=_path_params,
2871
- query_params=_query_params,
2872
- header_params=_header_params,
2873
- body=_body_params,
2874
- post_params=_form_params,
2875
- files=_files,
2876
- auth_settings=_auth_settings,
2877
- collection_formats=_collection_formats,
2878
- _host=_host,
2879
- _request_auth=_request_auth
2880
- )
2881
-
2882
-
2883
-
2884
-
2885
- @validate_call
2886
- def get_workspace_access_control(
2887
- self,
2888
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2889
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2890
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
2891
- _request_timeout: Union[
2892
- None,
2893
- Annotated[StrictFloat, Field(gt=0)],
2894
- Tuple[
2895
- Annotated[StrictFloat, Field(gt=0)],
2896
- Annotated[StrictFloat, Field(gt=0)]
2897
- ]
2898
- ] = None,
2899
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2900
- _content_type: Optional[StrictStr] = None,
2901
- _headers: Optional[Dict[StrictStr, Any]] = None,
2902
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2903
- ) -> WorkspaceAccessControl:
2904
- """Get a control access for the Workspace
2905
-
2906
-
2907
- :param organization_id: the Organization identifier (required)
2908
- :type organization_id: str
2909
- :param workspace_id: the Workspace identifier (required)
2910
- :type workspace_id: str
2911
- :param identity_id: the User identifier (required)
2912
- :type identity_id: str
2913
- :param _request_timeout: timeout setting for this request. If one
2914
- number provided, it will be total request
2915
- timeout. It can also be a pair (tuple) of
2916
- (connection, read) timeouts.
2917
- :type _request_timeout: int, tuple(int, int), optional
2918
- :param _request_auth: set to override the auth_settings for an a single
2919
- request; this effectively ignores the
2920
- authentication in the spec for a single request.
2921
- :type _request_auth: dict, optional
2922
- :param _content_type: force content-type for the request.
2923
- :type _content_type: str, Optional
2924
- :param _headers: set to override the headers for a single
2925
- request; this effectively ignores the headers
2926
- in the spec for a single request.
2927
- :type _headers: dict, optional
2928
- :param _host_index: set to override the host_index for a single
2929
- request; this effectively ignores the host_index
2930
- in the spec for a single request.
2931
- :type _host_index: int, optional
2932
- :return: Returns the result object.
2933
- """ # noqa: E501
2934
-
2935
- _param = self._get_workspace_access_control_serialize(
2936
- organization_id=organization_id,
2937
- workspace_id=workspace_id,
2938
- identity_id=identity_id,
2939
- _request_auth=_request_auth,
2940
- _content_type=_content_type,
2941
- _headers=_headers,
2942
- _host_index=_host_index
2943
- )
2944
-
2945
- _response_types_map: Dict[str, Optional[str]] = {
2946
- '200': "WorkspaceAccessControl",
2947
- '404': None,
2948
- }
2949
- response_data = self.api_client.call_api(
2950
- *_param,
2951
- _request_timeout=_request_timeout
2952
- )
2953
- response_data.read()
2954
- return self.api_client.response_deserialize(
2955
- response_data=response_data,
2956
- response_types_map=_response_types_map,
2957
- ).data
2958
-
2959
-
2960
- @validate_call
2961
- def get_workspace_access_control_with_http_info(
2962
- self,
2963
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2964
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2965
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
2966
- _request_timeout: Union[
2967
- None,
2968
- Annotated[StrictFloat, Field(gt=0)],
2969
- Tuple[
2970
- Annotated[StrictFloat, Field(gt=0)],
2971
- Annotated[StrictFloat, Field(gt=0)]
2972
- ]
2973
- ] = None,
2974
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2975
- _content_type: Optional[StrictStr] = None,
2976
- _headers: Optional[Dict[StrictStr, Any]] = None,
2977
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2978
- ) -> ApiResponse[WorkspaceAccessControl]:
2979
- """Get a control access for the Workspace
2980
-
2981
-
2982
- :param organization_id: the Organization identifier (required)
2983
- :type organization_id: str
2984
- :param workspace_id: the Workspace identifier (required)
2985
- :type workspace_id: str
2986
- :param identity_id: the User identifier (required)
2987
- :type identity_id: str
2988
- :param _request_timeout: timeout setting for this request. If one
2989
- number provided, it will be total request
2990
- timeout. It can also be a pair (tuple) of
2991
- (connection, read) timeouts.
2992
- :type _request_timeout: int, tuple(int, int), optional
2993
- :param _request_auth: set to override the auth_settings for an a single
2994
- request; this effectively ignores the
2995
- authentication in the spec for a single request.
2996
- :type _request_auth: dict, optional
2997
- :param _content_type: force content-type for the request.
2998
- :type _content_type: str, Optional
2999
- :param _headers: set to override the headers for a single
3000
- request; this effectively ignores the headers
3001
- in the spec for a single request.
3002
- :type _headers: dict, optional
3003
- :param _host_index: set to override the host_index for a single
3004
- request; this effectively ignores the host_index
3005
- in the spec for a single request.
3006
- :type _host_index: int, optional
3007
- :return: Returns the result object.
3008
- """ # noqa: E501
3009
-
3010
- _param = self._get_workspace_access_control_serialize(
3011
- organization_id=organization_id,
3012
- workspace_id=workspace_id,
3013
- identity_id=identity_id,
3014
- _request_auth=_request_auth,
3015
- _content_type=_content_type,
3016
- _headers=_headers,
3017
- _host_index=_host_index
3018
- )
3019
-
3020
- _response_types_map: Dict[str, Optional[str]] = {
3021
- '200': "WorkspaceAccessControl",
3022
- '404': None,
3023
- }
3024
- response_data = self.api_client.call_api(
3025
- *_param,
3026
- _request_timeout=_request_timeout
3027
- )
3028
- response_data.read()
3029
- return self.api_client.response_deserialize(
3030
- response_data=response_data,
3031
- response_types_map=_response_types_map,
3032
- )
3033
-
3034
-
3035
- @validate_call
3036
- def get_workspace_access_control_without_preload_content(
3037
- self,
3038
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3039
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3040
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
3041
- _request_timeout: Union[
3042
- None,
3043
- Annotated[StrictFloat, Field(gt=0)],
3044
- Tuple[
3045
- Annotated[StrictFloat, Field(gt=0)],
3046
- Annotated[StrictFloat, Field(gt=0)]
3047
- ]
3048
- ] = None,
3049
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3050
- _content_type: Optional[StrictStr] = None,
3051
- _headers: Optional[Dict[StrictStr, Any]] = None,
3052
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3053
- ) -> RESTResponseType:
2387
+ ) -> WorkspaceAccessControl:
3054
2388
  """Get a control access for the Workspace
3055
2389
 
3056
2390
 
3057
- :param organization_id: the Organization identifier (required)
2391
+ :param organization_id: The Organization identifier (required)
3058
2392
  :type organization_id: str
3059
- :param workspace_id: the Workspace identifier (required)
2393
+ :param workspace_id: The Workspace identifier (required)
3060
2394
  :type workspace_id: str
3061
- :param identity_id: the User identifier (required)
2395
+ :param identity_id: The User identifier (required)
3062
2396
  :type identity_id: str
3063
2397
  :param _request_timeout: timeout setting for this request. If one
3064
2398
  number provided, it will be total request
@@ -3100,143 +2434,6 @@ class WorkspaceApi:
3100
2434
  *_param,
3101
2435
  _request_timeout=_request_timeout
3102
2436
  )
3103
- return response_data.response
3104
-
3105
-
3106
- def _get_workspace_access_control_serialize(
3107
- self,
3108
- organization_id,
3109
- workspace_id,
3110
- identity_id,
3111
- _request_auth,
3112
- _content_type,
3113
- _headers,
3114
- _host_index,
3115
- ) -> RequestSerialized:
3116
-
3117
- _host = None
3118
-
3119
- _collection_formats: Dict[str, str] = {
3120
- }
3121
-
3122
- _path_params: Dict[str, str] = {}
3123
- _query_params: List[Tuple[str, str]] = []
3124
- _header_params: Dict[str, Optional[str]] = _headers or {}
3125
- _form_params: List[Tuple[str, str]] = []
3126
- _files: Dict[str, str] = {}
3127
- _body_params: Optional[bytes] = None
3128
-
3129
- # process the path parameters
3130
- if organization_id is not None:
3131
- _path_params['organization_id'] = organization_id
3132
- if workspace_id is not None:
3133
- _path_params['workspace_id'] = workspace_id
3134
- if identity_id is not None:
3135
- _path_params['identity_id'] = identity_id
3136
- # process the query parameters
3137
- # process the header parameters
3138
- # process the form parameters
3139
- # process the body parameter
3140
-
3141
-
3142
- # set the HTTP header `Accept`
3143
- _header_params['Accept'] = self.api_client.select_header_accept(
3144
- [
3145
- 'application/json'
3146
- ]
3147
- )
3148
-
3149
-
3150
- # authentication setting
3151
- _auth_settings: List[str] = [
3152
- 'oAuth2AuthCode'
3153
- ]
3154
-
3155
- return self.api_client.param_serialize(
3156
- method='GET',
3157
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}',
3158
- path_params=_path_params,
3159
- query_params=_query_params,
3160
- header_params=_header_params,
3161
- body=_body_params,
3162
- post_params=_form_params,
3163
- files=_files,
3164
- auth_settings=_auth_settings,
3165
- collection_formats=_collection_formats,
3166
- _host=_host,
3167
- _request_auth=_request_auth
3168
- )
3169
-
3170
-
3171
-
3172
-
3173
- @validate_call
3174
- def get_workspace_permissions(
3175
- self,
3176
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3177
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3178
- role: Annotated[StrictStr, Field(description="the Role")],
3179
- _request_timeout: Union[
3180
- None,
3181
- Annotated[StrictFloat, Field(gt=0)],
3182
- Tuple[
3183
- Annotated[StrictFloat, Field(gt=0)],
3184
- Annotated[StrictFloat, Field(gt=0)]
3185
- ]
3186
- ] = None,
3187
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3188
- _content_type: Optional[StrictStr] = None,
3189
- _headers: Optional[Dict[StrictStr, Any]] = None,
3190
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3191
- ) -> List[str]:
3192
- """Get the Workspace permission by given role
3193
-
3194
-
3195
- :param organization_id: the Organization identifier (required)
3196
- :type organization_id: str
3197
- :param workspace_id: the Workspace identifier (required)
3198
- :type workspace_id: str
3199
- :param role: the Role (required)
3200
- :type role: str
3201
- :param _request_timeout: timeout setting for this request. If one
3202
- number provided, it will be total request
3203
- timeout. It can also be a pair (tuple) of
3204
- (connection, read) timeouts.
3205
- :type _request_timeout: int, tuple(int, int), optional
3206
- :param _request_auth: set to override the auth_settings for an a single
3207
- request; this effectively ignores the
3208
- authentication in the spec for a single request.
3209
- :type _request_auth: dict, optional
3210
- :param _content_type: force content-type for the request.
3211
- :type _content_type: str, Optional
3212
- :param _headers: set to override the headers for a single
3213
- request; this effectively ignores the headers
3214
- in the spec for a single request.
3215
- :type _headers: dict, optional
3216
- :param _host_index: set to override the host_index for a single
3217
- request; this effectively ignores the host_index
3218
- in the spec for a single request.
3219
- :type _host_index: int, optional
3220
- :return: Returns the result object.
3221
- """ # noqa: E501
3222
-
3223
- _param = self._get_workspace_permissions_serialize(
3224
- organization_id=organization_id,
3225
- workspace_id=workspace_id,
3226
- role=role,
3227
- _request_auth=_request_auth,
3228
- _content_type=_content_type,
3229
- _headers=_headers,
3230
- _host_index=_host_index
3231
- )
3232
-
3233
- _response_types_map: Dict[str, Optional[str]] = {
3234
- '200': "List[str]",
3235
- }
3236
- response_data = self.api_client.call_api(
3237
- *_param,
3238
- _request_timeout=_request_timeout
3239
- )
3240
2437
  response_data.read()
3241
2438
  return self.api_client.response_deserialize(
3242
2439
  response_data=response_data,
@@ -3245,11 +2442,11 @@ class WorkspaceApi:
3245
2442
 
3246
2443
 
3247
2444
  @validate_call
3248
- def get_workspace_permissions_with_http_info(
2445
+ def get_workspace_access_control_with_http_info(
3249
2446
  self,
3250
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3251
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3252
- role: Annotated[StrictStr, Field(description="the Role")],
2447
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
2448
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
2449
+ identity_id: Annotated[StrictStr, Field(description="The User identifier")],
3253
2450
  _request_timeout: Union[
3254
2451
  None,
3255
2452
  Annotated[StrictFloat, Field(gt=0)],
@@ -3262,16 +2459,16 @@ class WorkspaceApi:
3262
2459
  _content_type: Optional[StrictStr] = None,
3263
2460
  _headers: Optional[Dict[StrictStr, Any]] = None,
3264
2461
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3265
- ) -> ApiResponse[List[str]]:
3266
- """Get the Workspace permission by given role
2462
+ ) -> ApiResponse[WorkspaceAccessControl]:
2463
+ """Get a control access for the Workspace
3267
2464
 
3268
2465
 
3269
- :param organization_id: the Organization identifier (required)
2466
+ :param organization_id: The Organization identifier (required)
3270
2467
  :type organization_id: str
3271
- :param workspace_id: the Workspace identifier (required)
2468
+ :param workspace_id: The Workspace identifier (required)
3272
2469
  :type workspace_id: str
3273
- :param role: the Role (required)
3274
- :type role: str
2470
+ :param identity_id: The User identifier (required)
2471
+ :type identity_id: str
3275
2472
  :param _request_timeout: timeout setting for this request. If one
3276
2473
  number provided, it will be total request
3277
2474
  timeout. It can also be a pair (tuple) of
@@ -3294,10 +2491,10 @@ class WorkspaceApi:
3294
2491
  :return: Returns the result object.
3295
2492
  """ # noqa: E501
3296
2493
 
3297
- _param = self._get_workspace_permissions_serialize(
2494
+ _param = self._get_workspace_access_control_serialize(
3298
2495
  organization_id=organization_id,
3299
2496
  workspace_id=workspace_id,
3300
- role=role,
2497
+ identity_id=identity_id,
3301
2498
  _request_auth=_request_auth,
3302
2499
  _content_type=_content_type,
3303
2500
  _headers=_headers,
@@ -3305,7 +2502,8 @@ class WorkspaceApi:
3305
2502
  )
3306
2503
 
3307
2504
  _response_types_map: Dict[str, Optional[str]] = {
3308
- '200': "List[str]",
2505
+ '200': "WorkspaceAccessControl",
2506
+ '404': None,
3309
2507
  }
3310
2508
  response_data = self.api_client.call_api(
3311
2509
  *_param,
@@ -3319,11 +2517,11 @@ class WorkspaceApi:
3319
2517
 
3320
2518
 
3321
2519
  @validate_call
3322
- def get_workspace_permissions_without_preload_content(
2520
+ def get_workspace_access_control_without_preload_content(
3323
2521
  self,
3324
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3325
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3326
- role: Annotated[StrictStr, Field(description="the Role")],
2522
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
2523
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
2524
+ identity_id: Annotated[StrictStr, Field(description="The User identifier")],
3327
2525
  _request_timeout: Union[
3328
2526
  None,
3329
2527
  Annotated[StrictFloat, Field(gt=0)],
@@ -3337,15 +2535,15 @@ class WorkspaceApi:
3337
2535
  _headers: Optional[Dict[StrictStr, Any]] = None,
3338
2536
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3339
2537
  ) -> RESTResponseType:
3340
- """Get the Workspace permission by given role
2538
+ """Get a control access for the Workspace
3341
2539
 
3342
2540
 
3343
- :param organization_id: the Organization identifier (required)
2541
+ :param organization_id: The Organization identifier (required)
3344
2542
  :type organization_id: str
3345
- :param workspace_id: the Workspace identifier (required)
2543
+ :param workspace_id: The Workspace identifier (required)
3346
2544
  :type workspace_id: str
3347
- :param role: the Role (required)
3348
- :type role: str
2545
+ :param identity_id: The User identifier (required)
2546
+ :type identity_id: str
3349
2547
  :param _request_timeout: timeout setting for this request. If one
3350
2548
  number provided, it will be total request
3351
2549
  timeout. It can also be a pair (tuple) of
@@ -3368,10 +2566,10 @@ class WorkspaceApi:
3368
2566
  :return: Returns the result object.
3369
2567
  """ # noqa: E501
3370
2568
 
3371
- _param = self._get_workspace_permissions_serialize(
2569
+ _param = self._get_workspace_access_control_serialize(
3372
2570
  organization_id=organization_id,
3373
2571
  workspace_id=workspace_id,
3374
- role=role,
2572
+ identity_id=identity_id,
3375
2573
  _request_auth=_request_auth,
3376
2574
  _content_type=_content_type,
3377
2575
  _headers=_headers,
@@ -3379,7 +2577,8 @@ class WorkspaceApi:
3379
2577
  )
3380
2578
 
3381
2579
  _response_types_map: Dict[str, Optional[str]] = {
3382
- '200': "List[str]",
2580
+ '200': "WorkspaceAccessControl",
2581
+ '404': None,
3383
2582
  }
3384
2583
  response_data = self.api_client.call_api(
3385
2584
  *_param,
@@ -3388,11 +2587,11 @@ class WorkspaceApi:
3388
2587
  return response_data.response
3389
2588
 
3390
2589
 
3391
- def _get_workspace_permissions_serialize(
2590
+ def _get_workspace_access_control_serialize(
3392
2591
  self,
3393
2592
  organization_id,
3394
2593
  workspace_id,
3395
- role,
2594
+ identity_id,
3396
2595
  _request_auth,
3397
2596
  _content_type,
3398
2597
  _headers,
@@ -3408,7 +2607,9 @@ class WorkspaceApi:
3408
2607
  _query_params: List[Tuple[str, str]] = []
3409
2608
  _header_params: Dict[str, Optional[str]] = _headers or {}
3410
2609
  _form_params: List[Tuple[str, str]] = []
3411
- _files: Dict[str, str] = {}
2610
+ _files: Dict[
2611
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2612
+ ] = {}
3412
2613
  _body_params: Optional[bytes] = None
3413
2614
 
3414
2615
  # process the path parameters
@@ -3416,8 +2617,8 @@ class WorkspaceApi:
3416
2617
  _path_params['organization_id'] = organization_id
3417
2618
  if workspace_id is not None:
3418
2619
  _path_params['workspace_id'] = workspace_id
3419
- if role is not None:
3420
- _path_params['role'] = role
2620
+ if identity_id is not None:
2621
+ _path_params['identity_id'] = identity_id
3421
2622
  # process the query parameters
3422
2623
  # process the header parameters
3423
2624
  # process the form parameters
@@ -3425,11 +2626,13 @@ class WorkspaceApi:
3425
2626
 
3426
2627
 
3427
2628
  # set the HTTP header `Accept`
3428
- _header_params['Accept'] = self.api_client.select_header_accept(
3429
- [
3430
- 'application/json'
3431
- ]
3432
- )
2629
+ if 'Accept' not in _header_params:
2630
+ _header_params['Accept'] = self.api_client.select_header_accept(
2631
+ [
2632
+ 'application/json',
2633
+ 'application/yaml'
2634
+ ]
2635
+ )
3433
2636
 
3434
2637
 
3435
2638
  # authentication setting
@@ -3439,7 +2642,7 @@ class WorkspaceApi:
3439
2642
 
3440
2643
  return self.api_client.param_serialize(
3441
2644
  method='GET',
3442
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/permissions/{role}',
2645
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}',
3443
2646
  path_params=_path_params,
3444
2647
  query_params=_query_params,
3445
2648
  header_params=_header_params,
@@ -3456,10 +2659,11 @@ class WorkspaceApi:
3456
2659
 
3457
2660
 
3458
2661
  @validate_call
3459
- def get_workspace_security(
2662
+ def get_workspace_file(
3460
2663
  self,
3461
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3462
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2664
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
2665
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
2666
+ file_name: Annotated[StrictStr, Field(description="The file name")],
3463
2667
  _request_timeout: Union[
3464
2668
  None,
3465
2669
  Annotated[StrictFloat, Field(gt=0)],
@@ -3472,14 +2676,16 @@ class WorkspaceApi:
3472
2676
  _content_type: Optional[StrictStr] = None,
3473
2677
  _headers: Optional[Dict[StrictStr, Any]] = None,
3474
2678
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3475
- ) -> WorkspaceSecurity:
3476
- """Get the Workspace security information
2679
+ ) -> bytearray:
2680
+ """Download the Workspace File specified
3477
2681
 
3478
2682
 
3479
- :param organization_id: the Organization identifier (required)
2683
+ :param organization_id: The Organization identifier (required)
3480
2684
  :type organization_id: str
3481
- :param workspace_id: the Workspace identifier (required)
2685
+ :param workspace_id: The Workspace identifier (required)
3482
2686
  :type workspace_id: str
2687
+ :param file_name: The file name (required)
2688
+ :type file_name: str
3483
2689
  :param _request_timeout: timeout setting for this request. If one
3484
2690
  number provided, it will be total request
3485
2691
  timeout. It can also be a pair (tuple) of
@@ -3502,9 +2708,10 @@ class WorkspaceApi:
3502
2708
  :return: Returns the result object.
3503
2709
  """ # noqa: E501
3504
2710
 
3505
- _param = self._get_workspace_security_serialize(
2711
+ _param = self._get_workspace_file_serialize(
3506
2712
  organization_id=organization_id,
3507
2713
  workspace_id=workspace_id,
2714
+ file_name=file_name,
3508
2715
  _request_auth=_request_auth,
3509
2716
  _content_type=_content_type,
3510
2717
  _headers=_headers,
@@ -3512,7 +2719,7 @@ class WorkspaceApi:
3512
2719
  )
3513
2720
 
3514
2721
  _response_types_map: Dict[str, Optional[str]] = {
3515
- '200': "WorkspaceSecurity",
2722
+ '200': "bytearray",
3516
2723
  '404': None,
3517
2724
  }
3518
2725
  response_data = self.api_client.call_api(
@@ -3527,10 +2734,11 @@ class WorkspaceApi:
3527
2734
 
3528
2735
 
3529
2736
  @validate_call
3530
- def get_workspace_security_with_http_info(
2737
+ def get_workspace_file_with_http_info(
3531
2738
  self,
3532
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3533
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2739
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
2740
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
2741
+ file_name: Annotated[StrictStr, Field(description="The file name")],
3534
2742
  _request_timeout: Union[
3535
2743
  None,
3536
2744
  Annotated[StrictFloat, Field(gt=0)],
@@ -3543,14 +2751,16 @@ class WorkspaceApi:
3543
2751
  _content_type: Optional[StrictStr] = None,
3544
2752
  _headers: Optional[Dict[StrictStr, Any]] = None,
3545
2753
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3546
- ) -> ApiResponse[WorkspaceSecurity]:
3547
- """Get the Workspace security information
2754
+ ) -> ApiResponse[bytearray]:
2755
+ """Download the Workspace File specified
3548
2756
 
3549
2757
 
3550
- :param organization_id: the Organization identifier (required)
2758
+ :param organization_id: The Organization identifier (required)
3551
2759
  :type organization_id: str
3552
- :param workspace_id: the Workspace identifier (required)
2760
+ :param workspace_id: The Workspace identifier (required)
3553
2761
  :type workspace_id: str
2762
+ :param file_name: The file name (required)
2763
+ :type file_name: str
3554
2764
  :param _request_timeout: timeout setting for this request. If one
3555
2765
  number provided, it will be total request
3556
2766
  timeout. It can also be a pair (tuple) of
@@ -3573,9 +2783,10 @@ class WorkspaceApi:
3573
2783
  :return: Returns the result object.
3574
2784
  """ # noqa: E501
3575
2785
 
3576
- _param = self._get_workspace_security_serialize(
2786
+ _param = self._get_workspace_file_serialize(
3577
2787
  organization_id=organization_id,
3578
2788
  workspace_id=workspace_id,
2789
+ file_name=file_name,
3579
2790
  _request_auth=_request_auth,
3580
2791
  _content_type=_content_type,
3581
2792
  _headers=_headers,
@@ -3583,7 +2794,7 @@ class WorkspaceApi:
3583
2794
  )
3584
2795
 
3585
2796
  _response_types_map: Dict[str, Optional[str]] = {
3586
- '200': "WorkspaceSecurity",
2797
+ '200': "bytearray",
3587
2798
  '404': None,
3588
2799
  }
3589
2800
  response_data = self.api_client.call_api(
@@ -3598,10 +2809,11 @@ class WorkspaceApi:
3598
2809
 
3599
2810
 
3600
2811
  @validate_call
3601
- def get_workspace_security_without_preload_content(
2812
+ def get_workspace_file_without_preload_content(
3602
2813
  self,
3603
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3604
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2814
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
2815
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
2816
+ file_name: Annotated[StrictStr, Field(description="The file name")],
3605
2817
  _request_timeout: Union[
3606
2818
  None,
3607
2819
  Annotated[StrictFloat, Field(gt=0)],
@@ -3615,13 +2827,15 @@ class WorkspaceApi:
3615
2827
  _headers: Optional[Dict[StrictStr, Any]] = None,
3616
2828
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3617
2829
  ) -> RESTResponseType:
3618
- """Get the Workspace security information
2830
+ """Download the Workspace File specified
3619
2831
 
3620
2832
 
3621
- :param organization_id: the Organization identifier (required)
2833
+ :param organization_id: The Organization identifier (required)
3622
2834
  :type organization_id: str
3623
- :param workspace_id: the Workspace identifier (required)
2835
+ :param workspace_id: The Workspace identifier (required)
3624
2836
  :type workspace_id: str
2837
+ :param file_name: The file name (required)
2838
+ :type file_name: str
3625
2839
  :param _request_timeout: timeout setting for this request. If one
3626
2840
  number provided, it will be total request
3627
2841
  timeout. It can also be a pair (tuple) of
@@ -3644,9 +2858,10 @@ class WorkspaceApi:
3644
2858
  :return: Returns the result object.
3645
2859
  """ # noqa: E501
3646
2860
 
3647
- _param = self._get_workspace_security_serialize(
2861
+ _param = self._get_workspace_file_serialize(
3648
2862
  organization_id=organization_id,
3649
2863
  workspace_id=workspace_id,
2864
+ file_name=file_name,
3650
2865
  _request_auth=_request_auth,
3651
2866
  _content_type=_content_type,
3652
2867
  _headers=_headers,
@@ -3654,7 +2869,7 @@ class WorkspaceApi:
3654
2869
  )
3655
2870
 
3656
2871
  _response_types_map: Dict[str, Optional[str]] = {
3657
- '200': "WorkspaceSecurity",
2872
+ '200': "bytearray",
3658
2873
  '404': None,
3659
2874
  }
3660
2875
  response_data = self.api_client.call_api(
@@ -3664,10 +2879,11 @@ class WorkspaceApi:
3664
2879
  return response_data.response
3665
2880
 
3666
2881
 
3667
- def _get_workspace_security_serialize(
2882
+ def _get_workspace_file_serialize(
3668
2883
  self,
3669
2884
  organization_id,
3670
2885
  workspace_id,
2886
+ file_name,
3671
2887
  _request_auth,
3672
2888
  _content_type,
3673
2889
  _headers,
@@ -3683,7 +2899,9 @@ class WorkspaceApi:
3683
2899
  _query_params: List[Tuple[str, str]] = []
3684
2900
  _header_params: Dict[str, Optional[str]] = _headers or {}
3685
2901
  _form_params: List[Tuple[str, str]] = []
3686
- _files: Dict[str, str] = {}
2902
+ _files: Dict[
2903
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2904
+ ] = {}
3687
2905
  _body_params: Optional[bytes] = None
3688
2906
 
3689
2907
  # process the path parameters
@@ -3692,17 +2910,22 @@ class WorkspaceApi:
3692
2910
  if workspace_id is not None:
3693
2911
  _path_params['workspace_id'] = workspace_id
3694
2912
  # process the query parameters
2913
+ if file_name is not None:
2914
+
2915
+ _query_params.append(('file_name', file_name))
2916
+
3695
2917
  # process the header parameters
3696
2918
  # process the form parameters
3697
2919
  # process the body parameter
3698
2920
 
3699
2921
 
3700
2922
  # set the HTTP header `Accept`
3701
- _header_params['Accept'] = self.api_client.select_header_accept(
3702
- [
3703
- 'application/json'
3704
- ]
3705
- )
2923
+ if 'Accept' not in _header_params:
2924
+ _header_params['Accept'] = self.api_client.select_header_accept(
2925
+ [
2926
+ 'application/octet-stream'
2927
+ ]
2928
+ )
3706
2929
 
3707
2930
 
3708
2931
  # authentication setting
@@ -3712,7 +2935,7 @@ class WorkspaceApi:
3712
2935
 
3713
2936
  return self.api_client.param_serialize(
3714
2937
  method='GET',
3715
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security',
2938
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/files/download',
3716
2939
  path_params=_path_params,
3717
2940
  query_params=_query_params,
3718
2941
  header_params=_header_params,
@@ -3729,10 +2952,10 @@ class WorkspaceApi:
3729
2952
 
3730
2953
 
3731
2954
  @validate_call
3732
- def get_workspace_security_users(
2955
+ def get_workspace_security(
3733
2956
  self,
3734
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3735
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2957
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
2958
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
3736
2959
  _request_timeout: Union[
3737
2960
  None,
3738
2961
  Annotated[StrictFloat, Field(gt=0)],
@@ -3745,13 +2968,13 @@ class WorkspaceApi:
3745
2968
  _content_type: Optional[StrictStr] = None,
3746
2969
  _headers: Optional[Dict[StrictStr, Any]] = None,
3747
2970
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3748
- ) -> List[str]:
3749
- """Get the Workspace security users list
2971
+ ) -> WorkspaceSecurity:
2972
+ """Get the Workspace security information
3750
2973
 
3751
2974
 
3752
- :param organization_id: the Organization identifier (required)
2975
+ :param organization_id: The Organization identifier (required)
3753
2976
  :type organization_id: str
3754
- :param workspace_id: the Workspace identifier (required)
2977
+ :param workspace_id: The Workspace identifier (required)
3755
2978
  :type workspace_id: str
3756
2979
  :param _request_timeout: timeout setting for this request. If one
3757
2980
  number provided, it will be total request
@@ -3775,7 +2998,7 @@ class WorkspaceApi:
3775
2998
  :return: Returns the result object.
3776
2999
  """ # noqa: E501
3777
3000
 
3778
- _param = self._get_workspace_security_users_serialize(
3001
+ _param = self._get_workspace_security_serialize(
3779
3002
  organization_id=organization_id,
3780
3003
  workspace_id=workspace_id,
3781
3004
  _request_auth=_request_auth,
@@ -3785,7 +3008,7 @@ class WorkspaceApi:
3785
3008
  )
3786
3009
 
3787
3010
  _response_types_map: Dict[str, Optional[str]] = {
3788
- '200': "List[str]",
3011
+ '200': "WorkspaceSecurity",
3789
3012
  '404': None,
3790
3013
  }
3791
3014
  response_data = self.api_client.call_api(
@@ -3800,10 +3023,10 @@ class WorkspaceApi:
3800
3023
 
3801
3024
 
3802
3025
  @validate_call
3803
- def get_workspace_security_users_with_http_info(
3026
+ def get_workspace_security_with_http_info(
3804
3027
  self,
3805
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3806
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3028
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
3029
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
3807
3030
  _request_timeout: Union[
3808
3031
  None,
3809
3032
  Annotated[StrictFloat, Field(gt=0)],
@@ -3816,13 +3039,13 @@ class WorkspaceApi:
3816
3039
  _content_type: Optional[StrictStr] = None,
3817
3040
  _headers: Optional[Dict[StrictStr, Any]] = None,
3818
3041
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3819
- ) -> ApiResponse[List[str]]:
3820
- """Get the Workspace security users list
3042
+ ) -> ApiResponse[WorkspaceSecurity]:
3043
+ """Get the Workspace security information
3821
3044
 
3822
3045
 
3823
- :param organization_id: the Organization identifier (required)
3046
+ :param organization_id: The Organization identifier (required)
3824
3047
  :type organization_id: str
3825
- :param workspace_id: the Workspace identifier (required)
3048
+ :param workspace_id: The Workspace identifier (required)
3826
3049
  :type workspace_id: str
3827
3050
  :param _request_timeout: timeout setting for this request. If one
3828
3051
  number provided, it will be total request
@@ -3846,7 +3069,7 @@ class WorkspaceApi:
3846
3069
  :return: Returns the result object.
3847
3070
  """ # noqa: E501
3848
3071
 
3849
- _param = self._get_workspace_security_users_serialize(
3072
+ _param = self._get_workspace_security_serialize(
3850
3073
  organization_id=organization_id,
3851
3074
  workspace_id=workspace_id,
3852
3075
  _request_auth=_request_auth,
@@ -3856,7 +3079,7 @@ class WorkspaceApi:
3856
3079
  )
3857
3080
 
3858
3081
  _response_types_map: Dict[str, Optional[str]] = {
3859
- '200': "List[str]",
3082
+ '200': "WorkspaceSecurity",
3860
3083
  '404': None,
3861
3084
  }
3862
3085
  response_data = self.api_client.call_api(
@@ -3871,10 +3094,10 @@ class WorkspaceApi:
3871
3094
 
3872
3095
 
3873
3096
  @validate_call
3874
- def get_workspace_security_users_without_preload_content(
3097
+ def get_workspace_security_without_preload_content(
3875
3098
  self,
3876
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3877
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3099
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
3100
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
3878
3101
  _request_timeout: Union[
3879
3102
  None,
3880
3103
  Annotated[StrictFloat, Field(gt=0)],
@@ -3888,12 +3111,12 @@ class WorkspaceApi:
3888
3111
  _headers: Optional[Dict[StrictStr, Any]] = None,
3889
3112
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3890
3113
  ) -> RESTResponseType:
3891
- """Get the Workspace security users list
3114
+ """Get the Workspace security information
3892
3115
 
3893
3116
 
3894
- :param organization_id: the Organization identifier (required)
3117
+ :param organization_id: The Organization identifier (required)
3895
3118
  :type organization_id: str
3896
- :param workspace_id: the Workspace identifier (required)
3119
+ :param workspace_id: The Workspace identifier (required)
3897
3120
  :type workspace_id: str
3898
3121
  :param _request_timeout: timeout setting for this request. If one
3899
3122
  number provided, it will be total request
@@ -3917,7 +3140,7 @@ class WorkspaceApi:
3917
3140
  :return: Returns the result object.
3918
3141
  """ # noqa: E501
3919
3142
 
3920
- _param = self._get_workspace_security_users_serialize(
3143
+ _param = self._get_workspace_security_serialize(
3921
3144
  organization_id=organization_id,
3922
3145
  workspace_id=workspace_id,
3923
3146
  _request_auth=_request_auth,
@@ -3927,7 +3150,7 @@ class WorkspaceApi:
3927
3150
  )
3928
3151
 
3929
3152
  _response_types_map: Dict[str, Optional[str]] = {
3930
- '200': "List[str]",
3153
+ '200': "WorkspaceSecurity",
3931
3154
  '404': None,
3932
3155
  }
3933
3156
  response_data = self.api_client.call_api(
@@ -3937,7 +3160,7 @@ class WorkspaceApi:
3937
3160
  return response_data.response
3938
3161
 
3939
3162
 
3940
- def _get_workspace_security_users_serialize(
3163
+ def _get_workspace_security_serialize(
3941
3164
  self,
3942
3165
  organization_id,
3943
3166
  workspace_id,
@@ -3956,7 +3179,9 @@ class WorkspaceApi:
3956
3179
  _query_params: List[Tuple[str, str]] = []
3957
3180
  _header_params: Dict[str, Optional[str]] = _headers or {}
3958
3181
  _form_params: List[Tuple[str, str]] = []
3959
- _files: Dict[str, str] = {}
3182
+ _files: Dict[
3183
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3184
+ ] = {}
3960
3185
  _body_params: Optional[bytes] = None
3961
3186
 
3962
3187
  # process the path parameters
@@ -3970,12 +3195,14 @@ class WorkspaceApi:
3970
3195
  # process the body parameter
3971
3196
 
3972
3197
 
3973
- # set the HTTP header `Accept`
3974
- _header_params['Accept'] = self.api_client.select_header_accept(
3975
- [
3976
- 'application/json'
3977
- ]
3978
- )
3198
+ # set the HTTP header `Accept`
3199
+ if 'Accept' not in _header_params:
3200
+ _header_params['Accept'] = self.api_client.select_header_accept(
3201
+ [
3202
+ 'application/json',
3203
+ 'application/yaml'
3204
+ ]
3205
+ )
3979
3206
 
3980
3207
 
3981
3208
  # authentication setting
@@ -3985,7 +3212,7 @@ class WorkspaceApi:
3985
3212
 
3986
3213
  return self.api_client.param_serialize(
3987
3214
  method='GET',
3988
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/users',
3215
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security',
3989
3216
  path_params=_path_params,
3990
3217
  query_params=_query_params,
3991
3218
  header_params=_header_params,
@@ -4002,11 +3229,10 @@ class WorkspaceApi:
4002
3229
 
4003
3230
 
4004
3231
  @validate_call
4005
- def link_dataset(
3232
+ def list_workspace_files(
4006
3233
  self,
4007
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4008
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4009
- dataset_id: Annotated[StrictStr, Field(description="dataset id to be linked to")],
3234
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
3235
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
4010
3236
  _request_timeout: Union[
4011
3237
  None,
4012
3238
  Annotated[StrictFloat, Field(gt=0)],
@@ -4019,16 +3245,14 @@ class WorkspaceApi:
4019
3245
  _content_type: Optional[StrictStr] = None,
4020
3246
  _headers: Optional[Dict[StrictStr, Any]] = None,
4021
3247
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4022
- ) -> Workspace:
4023
- """link_dataset
3248
+ ) -> List[WorkspaceFile]:
3249
+ """List all Workspace files
4024
3250
 
4025
3251
 
4026
- :param organization_id: the Organization identifier (required)
3252
+ :param organization_id: The Organization identifier (required)
4027
3253
  :type organization_id: str
4028
- :param workspace_id: the Workspace identifier (required)
3254
+ :param workspace_id: The Workspace identifier (required)
4029
3255
  :type workspace_id: str
4030
- :param dataset_id: dataset id to be linked to (required)
4031
- :type dataset_id: str
4032
3256
  :param _request_timeout: timeout setting for this request. If one
4033
3257
  number provided, it will be total request
4034
3258
  timeout. It can also be a pair (tuple) of
@@ -4051,10 +3275,9 @@ class WorkspaceApi:
4051
3275
  :return: Returns the result object.
4052
3276
  """ # noqa: E501
4053
3277
 
4054
- _param = self._link_dataset_serialize(
3278
+ _param = self._list_workspace_files_serialize(
4055
3279
  organization_id=organization_id,
4056
3280
  workspace_id=workspace_id,
4057
- dataset_id=dataset_id,
4058
3281
  _request_auth=_request_auth,
4059
3282
  _content_type=_content_type,
4060
3283
  _headers=_headers,
@@ -4062,8 +3285,7 @@ class WorkspaceApi:
4062
3285
  )
4063
3286
 
4064
3287
  _response_types_map: Dict[str, Optional[str]] = {
4065
- '200': "Workspace",
4066
- '400': None,
3288
+ '200': "List[WorkspaceFile]",
4067
3289
  '404': None,
4068
3290
  }
4069
3291
  response_data = self.api_client.call_api(
@@ -4078,11 +3300,10 @@ class WorkspaceApi:
4078
3300
 
4079
3301
 
4080
3302
  @validate_call
4081
- def link_dataset_with_http_info(
3303
+ def list_workspace_files_with_http_info(
4082
3304
  self,
4083
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4084
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4085
- dataset_id: Annotated[StrictStr, Field(description="dataset id to be linked to")],
3305
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
3306
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
4086
3307
  _request_timeout: Union[
4087
3308
  None,
4088
3309
  Annotated[StrictFloat, Field(gt=0)],
@@ -4095,16 +3316,14 @@ class WorkspaceApi:
4095
3316
  _content_type: Optional[StrictStr] = None,
4096
3317
  _headers: Optional[Dict[StrictStr, Any]] = None,
4097
3318
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4098
- ) -> ApiResponse[Workspace]:
4099
- """link_dataset
3319
+ ) -> ApiResponse[List[WorkspaceFile]]:
3320
+ """List all Workspace files
4100
3321
 
4101
3322
 
4102
- :param organization_id: the Organization identifier (required)
3323
+ :param organization_id: The Organization identifier (required)
4103
3324
  :type organization_id: str
4104
- :param workspace_id: the Workspace identifier (required)
3325
+ :param workspace_id: The Workspace identifier (required)
4105
3326
  :type workspace_id: str
4106
- :param dataset_id: dataset id to be linked to (required)
4107
- :type dataset_id: str
4108
3327
  :param _request_timeout: timeout setting for this request. If one
4109
3328
  number provided, it will be total request
4110
3329
  timeout. It can also be a pair (tuple) of
@@ -4127,10 +3346,9 @@ class WorkspaceApi:
4127
3346
  :return: Returns the result object.
4128
3347
  """ # noqa: E501
4129
3348
 
4130
- _param = self._link_dataset_serialize(
3349
+ _param = self._list_workspace_files_serialize(
4131
3350
  organization_id=organization_id,
4132
3351
  workspace_id=workspace_id,
4133
- dataset_id=dataset_id,
4134
3352
  _request_auth=_request_auth,
4135
3353
  _content_type=_content_type,
4136
3354
  _headers=_headers,
@@ -4138,8 +3356,7 @@ class WorkspaceApi:
4138
3356
  )
4139
3357
 
4140
3358
  _response_types_map: Dict[str, Optional[str]] = {
4141
- '200': "Workspace",
4142
- '400': None,
3359
+ '200': "List[WorkspaceFile]",
4143
3360
  '404': None,
4144
3361
  }
4145
3362
  response_data = self.api_client.call_api(
@@ -4154,11 +3371,10 @@ class WorkspaceApi:
4154
3371
 
4155
3372
 
4156
3373
  @validate_call
4157
- def link_dataset_without_preload_content(
3374
+ def list_workspace_files_without_preload_content(
4158
3375
  self,
4159
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4160
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4161
- dataset_id: Annotated[StrictStr, Field(description="dataset id to be linked to")],
3376
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
3377
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
4162
3378
  _request_timeout: Union[
4163
3379
  None,
4164
3380
  Annotated[StrictFloat, Field(gt=0)],
@@ -4172,15 +3388,13 @@ class WorkspaceApi:
4172
3388
  _headers: Optional[Dict[StrictStr, Any]] = None,
4173
3389
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4174
3390
  ) -> RESTResponseType:
4175
- """link_dataset
3391
+ """List all Workspace files
4176
3392
 
4177
3393
 
4178
- :param organization_id: the Organization identifier (required)
3394
+ :param organization_id: The Organization identifier (required)
4179
3395
  :type organization_id: str
4180
- :param workspace_id: the Workspace identifier (required)
3396
+ :param workspace_id: The Workspace identifier (required)
4181
3397
  :type workspace_id: str
4182
- :param dataset_id: dataset id to be linked to (required)
4183
- :type dataset_id: str
4184
3398
  :param _request_timeout: timeout setting for this request. If one
4185
3399
  number provided, it will be total request
4186
3400
  timeout. It can also be a pair (tuple) of
@@ -4203,10 +3417,9 @@ class WorkspaceApi:
4203
3417
  :return: Returns the result object.
4204
3418
  """ # noqa: E501
4205
3419
 
4206
- _param = self._link_dataset_serialize(
3420
+ _param = self._list_workspace_files_serialize(
4207
3421
  organization_id=organization_id,
4208
3422
  workspace_id=workspace_id,
4209
- dataset_id=dataset_id,
4210
3423
  _request_auth=_request_auth,
4211
3424
  _content_type=_content_type,
4212
3425
  _headers=_headers,
@@ -4214,8 +3427,7 @@ class WorkspaceApi:
4214
3427
  )
4215
3428
 
4216
3429
  _response_types_map: Dict[str, Optional[str]] = {
4217
- '200': "Workspace",
4218
- '400': None,
3430
+ '200': "List[WorkspaceFile]",
4219
3431
  '404': None,
4220
3432
  }
4221
3433
  response_data = self.api_client.call_api(
@@ -4225,11 +3437,10 @@ class WorkspaceApi:
4225
3437
  return response_data.response
4226
3438
 
4227
3439
 
4228
- def _link_dataset_serialize(
3440
+ def _list_workspace_files_serialize(
4229
3441
  self,
4230
3442
  organization_id,
4231
3443
  workspace_id,
4232
- dataset_id,
4233
3444
  _request_auth,
4234
3445
  _content_type,
4235
3446
  _headers,
@@ -4245,7 +3456,9 @@ class WorkspaceApi:
4245
3456
  _query_params: List[Tuple[str, str]] = []
4246
3457
  _header_params: Dict[str, Optional[str]] = _headers or {}
4247
3458
  _form_params: List[Tuple[str, str]] = []
4248
- _files: Dict[str, str] = {}
3459
+ _files: Dict[
3460
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3461
+ ] = {}
4249
3462
  _body_params: Optional[bytes] = None
4250
3463
 
4251
3464
  # process the path parameters
@@ -4254,21 +3467,19 @@ class WorkspaceApi:
4254
3467
  if workspace_id is not None:
4255
3468
  _path_params['workspace_id'] = workspace_id
4256
3469
  # process the query parameters
4257
- if dataset_id is not None:
4258
-
4259
- _query_params.append(('datasetId', dataset_id))
4260
-
4261
3470
  # process the header parameters
4262
3471
  # process the form parameters
4263
3472
  # process the body parameter
4264
3473
 
4265
3474
 
4266
3475
  # set the HTTP header `Accept`
4267
- _header_params['Accept'] = self.api_client.select_header_accept(
4268
- [
4269
- 'application/json'
4270
- ]
4271
- )
3476
+ if 'Accept' not in _header_params:
3477
+ _header_params['Accept'] = self.api_client.select_header_accept(
3478
+ [
3479
+ 'application/json',
3480
+ 'application/yaml'
3481
+ ]
3482
+ )
4272
3483
 
4273
3484
 
4274
3485
  # authentication setting
@@ -4277,8 +3488,8 @@ class WorkspaceApi:
4277
3488
  ]
4278
3489
 
4279
3490
  return self.api_client.param_serialize(
4280
- method='POST',
4281
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/link',
3491
+ method='GET',
3492
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/files',
4282
3493
  path_params=_path_params,
4283
3494
  query_params=_query_params,
4284
3495
  header_params=_header_params,
@@ -4295,11 +3506,11 @@ class WorkspaceApi:
4295
3506
 
4296
3507
 
4297
3508
  @validate_call
4298
- def remove_workspace_access_control(
3509
+ def list_workspace_role_permissions(
4299
3510
  self,
4300
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4301
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4302
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
3511
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
3512
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
3513
+ role: Annotated[StrictStr, Field(description="The Role")],
4303
3514
  _request_timeout: Union[
4304
3515
  None,
4305
3516
  Annotated[StrictFloat, Field(gt=0)],
@@ -4312,16 +3523,16 @@ class WorkspaceApi:
4312
3523
  _content_type: Optional[StrictStr] = None,
4313
3524
  _headers: Optional[Dict[StrictStr, Any]] = None,
4314
3525
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4315
- ) -> None:
4316
- """Remove the specified access from the given Organization Workspace
3526
+ ) -> List[str]:
3527
+ """Get the Workspace permission by given role
4317
3528
 
4318
3529
 
4319
- :param organization_id: the Organization identifier (required)
3530
+ :param organization_id: The Organization identifier (required)
4320
3531
  :type organization_id: str
4321
- :param workspace_id: the Workspace identifier (required)
3532
+ :param workspace_id: The Workspace identifier (required)
4322
3533
  :type workspace_id: str
4323
- :param identity_id: the User identifier (required)
4324
- :type identity_id: str
3534
+ :param role: The Role (required)
3535
+ :type role: str
4325
3536
  :param _request_timeout: timeout setting for this request. If one
4326
3537
  number provided, it will be total request
4327
3538
  timeout. It can also be a pair (tuple) of
@@ -4344,10 +3555,10 @@ class WorkspaceApi:
4344
3555
  :return: Returns the result object.
4345
3556
  """ # noqa: E501
4346
3557
 
4347
- _param = self._remove_workspace_access_control_serialize(
3558
+ _param = self._list_workspace_role_permissions_serialize(
4348
3559
  organization_id=organization_id,
4349
3560
  workspace_id=workspace_id,
4350
- identity_id=identity_id,
3561
+ role=role,
4351
3562
  _request_auth=_request_auth,
4352
3563
  _content_type=_content_type,
4353
3564
  _headers=_headers,
@@ -4355,8 +3566,7 @@ class WorkspaceApi:
4355
3566
  )
4356
3567
 
4357
3568
  _response_types_map: Dict[str, Optional[str]] = {
4358
- '204': None,
4359
- '404': None,
3569
+ '200': "List[str]",
4360
3570
  }
4361
3571
  response_data = self.api_client.call_api(
4362
3572
  *_param,
@@ -4370,11 +3580,11 @@ class WorkspaceApi:
4370
3580
 
4371
3581
 
4372
3582
  @validate_call
4373
- def remove_workspace_access_control_with_http_info(
3583
+ def list_workspace_role_permissions_with_http_info(
4374
3584
  self,
4375
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4376
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4377
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
3585
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
3586
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
3587
+ role: Annotated[StrictStr, Field(description="The Role")],
4378
3588
  _request_timeout: Union[
4379
3589
  None,
4380
3590
  Annotated[StrictFloat, Field(gt=0)],
@@ -4387,16 +3597,16 @@ class WorkspaceApi:
4387
3597
  _content_type: Optional[StrictStr] = None,
4388
3598
  _headers: Optional[Dict[StrictStr, Any]] = None,
4389
3599
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4390
- ) -> ApiResponse[None]:
4391
- """Remove the specified access from the given Organization Workspace
3600
+ ) -> ApiResponse[List[str]]:
3601
+ """Get the Workspace permission by given role
4392
3602
 
4393
3603
 
4394
- :param organization_id: the Organization identifier (required)
3604
+ :param organization_id: The Organization identifier (required)
4395
3605
  :type organization_id: str
4396
- :param workspace_id: the Workspace identifier (required)
3606
+ :param workspace_id: The Workspace identifier (required)
4397
3607
  :type workspace_id: str
4398
- :param identity_id: the User identifier (required)
4399
- :type identity_id: str
3608
+ :param role: The Role (required)
3609
+ :type role: str
4400
3610
  :param _request_timeout: timeout setting for this request. If one
4401
3611
  number provided, it will be total request
4402
3612
  timeout. It can also be a pair (tuple) of
@@ -4419,10 +3629,10 @@ class WorkspaceApi:
4419
3629
  :return: Returns the result object.
4420
3630
  """ # noqa: E501
4421
3631
 
4422
- _param = self._remove_workspace_access_control_serialize(
3632
+ _param = self._list_workspace_role_permissions_serialize(
4423
3633
  organization_id=organization_id,
4424
3634
  workspace_id=workspace_id,
4425
- identity_id=identity_id,
3635
+ role=role,
4426
3636
  _request_auth=_request_auth,
4427
3637
  _content_type=_content_type,
4428
3638
  _headers=_headers,
@@ -4430,8 +3640,7 @@ class WorkspaceApi:
4430
3640
  )
4431
3641
 
4432
3642
  _response_types_map: Dict[str, Optional[str]] = {
4433
- '204': None,
4434
- '404': None,
3643
+ '200': "List[str]",
4435
3644
  }
4436
3645
  response_data = self.api_client.call_api(
4437
3646
  *_param,
@@ -4445,11 +3654,11 @@ class WorkspaceApi:
4445
3654
 
4446
3655
 
4447
3656
  @validate_call
4448
- def remove_workspace_access_control_without_preload_content(
3657
+ def list_workspace_role_permissions_without_preload_content(
4449
3658
  self,
4450
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4451
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4452
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
3659
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
3660
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
3661
+ role: Annotated[StrictStr, Field(description="The Role")],
4453
3662
  _request_timeout: Union[
4454
3663
  None,
4455
3664
  Annotated[StrictFloat, Field(gt=0)],
@@ -4463,15 +3672,15 @@ class WorkspaceApi:
4463
3672
  _headers: Optional[Dict[StrictStr, Any]] = None,
4464
3673
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4465
3674
  ) -> RESTResponseType:
4466
- """Remove the specified access from the given Organization Workspace
3675
+ """Get the Workspace permission by given role
4467
3676
 
4468
3677
 
4469
- :param organization_id: the Organization identifier (required)
3678
+ :param organization_id: The Organization identifier (required)
4470
3679
  :type organization_id: str
4471
- :param workspace_id: the Workspace identifier (required)
3680
+ :param workspace_id: The Workspace identifier (required)
4472
3681
  :type workspace_id: str
4473
- :param identity_id: the User identifier (required)
4474
- :type identity_id: str
3682
+ :param role: The Role (required)
3683
+ :type role: str
4475
3684
  :param _request_timeout: timeout setting for this request. If one
4476
3685
  number provided, it will be total request
4477
3686
  timeout. It can also be a pair (tuple) of
@@ -4494,10 +3703,10 @@ class WorkspaceApi:
4494
3703
  :return: Returns the result object.
4495
3704
  """ # noqa: E501
4496
3705
 
4497
- _param = self._remove_workspace_access_control_serialize(
3706
+ _param = self._list_workspace_role_permissions_serialize(
4498
3707
  organization_id=organization_id,
4499
3708
  workspace_id=workspace_id,
4500
- identity_id=identity_id,
3709
+ role=role,
4501
3710
  _request_auth=_request_auth,
4502
3711
  _content_type=_content_type,
4503
3712
  _headers=_headers,
@@ -4505,8 +3714,7 @@ class WorkspaceApi:
4505
3714
  )
4506
3715
 
4507
3716
  _response_types_map: Dict[str, Optional[str]] = {
4508
- '204': None,
4509
- '404': None,
3717
+ '200': "List[str]",
4510
3718
  }
4511
3719
  response_data = self.api_client.call_api(
4512
3720
  *_param,
@@ -4515,11 +3723,11 @@ class WorkspaceApi:
4515
3723
  return response_data.response
4516
3724
 
4517
3725
 
4518
- def _remove_workspace_access_control_serialize(
3726
+ def _list_workspace_role_permissions_serialize(
4519
3727
  self,
4520
3728
  organization_id,
4521
3729
  workspace_id,
4522
- identity_id,
3730
+ role,
4523
3731
  _request_auth,
4524
3732
  _content_type,
4525
3733
  _headers,
@@ -4535,7 +3743,9 @@ class WorkspaceApi:
4535
3743
  _query_params: List[Tuple[str, str]] = []
4536
3744
  _header_params: Dict[str, Optional[str]] = _headers or {}
4537
3745
  _form_params: List[Tuple[str, str]] = []
4538
- _files: Dict[str, str] = {}
3746
+ _files: Dict[
3747
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3748
+ ] = {}
4539
3749
  _body_params: Optional[bytes] = None
4540
3750
 
4541
3751
  # process the path parameters
@@ -4543,14 +3753,22 @@ class WorkspaceApi:
4543
3753
  _path_params['organization_id'] = organization_id
4544
3754
  if workspace_id is not None:
4545
3755
  _path_params['workspace_id'] = workspace_id
4546
- if identity_id is not None:
4547
- _path_params['identity_id'] = identity_id
3756
+ if role is not None:
3757
+ _path_params['role'] = role
4548
3758
  # process the query parameters
4549
3759
  # process the header parameters
4550
3760
  # process the form parameters
4551
3761
  # process the body parameter
4552
3762
 
4553
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
+ )
4554
3772
 
4555
3773
 
4556
3774
  # authentication setting
@@ -4559,8 +3777,8 @@ class WorkspaceApi:
4559
3777
  ]
4560
3778
 
4561
3779
  return self.api_client.param_serialize(
4562
- method='DELETE',
4563
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}',
3780
+ method='GET',
3781
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/permissions/{role}',
4564
3782
  path_params=_path_params,
4565
3783
  query_params=_query_params,
4566
3784
  header_params=_header_params,
@@ -4577,11 +3795,10 @@ class WorkspaceApi:
4577
3795
 
4578
3796
 
4579
3797
  @validate_call
4580
- def set_workspace_default_security(
3798
+ def list_workspace_security_users(
4581
3799
  self,
4582
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4583
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4584
- 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[str, Field(strict=True, description="The Organization identifier")],
3801
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
4585
3802
  _request_timeout: Union[
4586
3803
  None,
4587
3804
  Annotated[StrictFloat, Field(gt=0)],
@@ -4594,16 +3811,14 @@ class WorkspaceApi:
4594
3811
  _content_type: Optional[StrictStr] = None,
4595
3812
  _headers: Optional[Dict[StrictStr, Any]] = None,
4596
3813
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4597
- ) -> WorkspaceSecurity:
4598
- """Set the Workspace default security
3814
+ ) -> List[str]:
3815
+ """Get the Workspace security users list
4599
3816
 
4600
3817
 
4601
- :param organization_id: the Organization identifier (required)
3818
+ :param organization_id: The Organization identifier (required)
4602
3819
  :type organization_id: str
4603
- :param workspace_id: the Workspace identifier (required)
3820
+ :param workspace_id: The Workspace identifier (required)
4604
3821
  :type workspace_id: str
4605
- :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)
4606
- :type workspace_role: WorkspaceRole
4607
3822
  :param _request_timeout: timeout setting for this request. If one
4608
3823
  number provided, it will be total request
4609
3824
  timeout. It can also be a pair (tuple) of
@@ -4626,10 +3841,9 @@ class WorkspaceApi:
4626
3841
  :return: Returns the result object.
4627
3842
  """ # noqa: E501
4628
3843
 
4629
- _param = self._set_workspace_default_security_serialize(
3844
+ _param = self._list_workspace_security_users_serialize(
4630
3845
  organization_id=organization_id,
4631
3846
  workspace_id=workspace_id,
4632
- workspace_role=workspace_role,
4633
3847
  _request_auth=_request_auth,
4634
3848
  _content_type=_content_type,
4635
3849
  _headers=_headers,
@@ -4637,7 +3851,7 @@ class WorkspaceApi:
4637
3851
  )
4638
3852
 
4639
3853
  _response_types_map: Dict[str, Optional[str]] = {
4640
- '201': "WorkspaceSecurity",
3854
+ '200': "List[str]",
4641
3855
  '404': None,
4642
3856
  }
4643
3857
  response_data = self.api_client.call_api(
@@ -4652,11 +3866,10 @@ class WorkspaceApi:
4652
3866
 
4653
3867
 
4654
3868
  @validate_call
4655
- def set_workspace_default_security_with_http_info(
3869
+ def list_workspace_security_users_with_http_info(
4656
3870
  self,
4657
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4658
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4659
- 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[str, Field(strict=True, description="The Organization identifier")],
3872
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
4660
3873
  _request_timeout: Union[
4661
3874
  None,
4662
3875
  Annotated[StrictFloat, Field(gt=0)],
@@ -4669,16 +3882,14 @@ class WorkspaceApi:
4669
3882
  _content_type: Optional[StrictStr] = None,
4670
3883
  _headers: Optional[Dict[StrictStr, Any]] = None,
4671
3884
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4672
- ) -> ApiResponse[WorkspaceSecurity]:
4673
- """Set the Workspace default security
3885
+ ) -> ApiResponse[List[str]]:
3886
+ """Get the Workspace security users list
4674
3887
 
4675
3888
 
4676
- :param organization_id: the Organization identifier (required)
3889
+ :param organization_id: The Organization identifier (required)
4677
3890
  :type organization_id: str
4678
- :param workspace_id: the Workspace identifier (required)
3891
+ :param workspace_id: The Workspace identifier (required)
4679
3892
  :type workspace_id: str
4680
- :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)
4681
- :type workspace_role: WorkspaceRole
4682
3893
  :param _request_timeout: timeout setting for this request. If one
4683
3894
  number provided, it will be total request
4684
3895
  timeout. It can also be a pair (tuple) of
@@ -4701,10 +3912,9 @@ class WorkspaceApi:
4701
3912
  :return: Returns the result object.
4702
3913
  """ # noqa: E501
4703
3914
 
4704
- _param = self._set_workspace_default_security_serialize(
3915
+ _param = self._list_workspace_security_users_serialize(
4705
3916
  organization_id=organization_id,
4706
3917
  workspace_id=workspace_id,
4707
- workspace_role=workspace_role,
4708
3918
  _request_auth=_request_auth,
4709
3919
  _content_type=_content_type,
4710
3920
  _headers=_headers,
@@ -4712,7 +3922,7 @@ class WorkspaceApi:
4712
3922
  )
4713
3923
 
4714
3924
  _response_types_map: Dict[str, Optional[str]] = {
4715
- '201': "WorkspaceSecurity",
3925
+ '200': "List[str]",
4716
3926
  '404': None,
4717
3927
  }
4718
3928
  response_data = self.api_client.call_api(
@@ -4727,11 +3937,10 @@ class WorkspaceApi:
4727
3937
 
4728
3938
 
4729
3939
  @validate_call
4730
- def set_workspace_default_security_without_preload_content(
3940
+ def list_workspace_security_users_without_preload_content(
4731
3941
  self,
4732
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4733
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4734
- 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[str, Field(strict=True, description="The Organization identifier")],
3943
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
4735
3944
  _request_timeout: Union[
4736
3945
  None,
4737
3946
  Annotated[StrictFloat, Field(gt=0)],
@@ -4745,15 +3954,13 @@ class WorkspaceApi:
4745
3954
  _headers: Optional[Dict[StrictStr, Any]] = None,
4746
3955
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4747
3956
  ) -> RESTResponseType:
4748
- """Set the Workspace default security
3957
+ """Get the Workspace security users list
4749
3958
 
4750
3959
 
4751
- :param organization_id: the Organization identifier (required)
3960
+ :param organization_id: The Organization identifier (required)
4752
3961
  :type organization_id: str
4753
- :param workspace_id: the Workspace identifier (required)
3962
+ :param workspace_id: The Workspace identifier (required)
4754
3963
  :type workspace_id: str
4755
- :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)
4756
- :type workspace_role: WorkspaceRole
4757
3964
  :param _request_timeout: timeout setting for this request. If one
4758
3965
  number provided, it will be total request
4759
3966
  timeout. It can also be a pair (tuple) of
@@ -4776,10 +3983,9 @@ class WorkspaceApi:
4776
3983
  :return: Returns the result object.
4777
3984
  """ # noqa: E501
4778
3985
 
4779
- _param = self._set_workspace_default_security_serialize(
3986
+ _param = self._list_workspace_security_users_serialize(
4780
3987
  organization_id=organization_id,
4781
3988
  workspace_id=workspace_id,
4782
- workspace_role=workspace_role,
4783
3989
  _request_auth=_request_auth,
4784
3990
  _content_type=_content_type,
4785
3991
  _headers=_headers,
@@ -4787,7 +3993,7 @@ class WorkspaceApi:
4787
3993
  )
4788
3994
 
4789
3995
  _response_types_map: Dict[str, Optional[str]] = {
4790
- '201': "WorkspaceSecurity",
3996
+ '200': "List[str]",
4791
3997
  '404': None,
4792
3998
  }
4793
3999
  response_data = self.api_client.call_api(
@@ -4797,11 +4003,10 @@ class WorkspaceApi:
4797
4003
  return response_data.response
4798
4004
 
4799
4005
 
4800
- def _set_workspace_default_security_serialize(
4006
+ def _list_workspace_security_users_serialize(
4801
4007
  self,
4802
4008
  organization_id,
4803
4009
  workspace_id,
4804
- workspace_role,
4805
4010
  _request_auth,
4806
4011
  _content_type,
4807
4012
  _headers,
@@ -4817,7 +4022,9 @@ class WorkspaceApi:
4817
4022
  _query_params: List[Tuple[str, str]] = []
4818
4023
  _header_params: Dict[str, Optional[str]] = _headers or {}
4819
4024
  _form_params: List[Tuple[str, str]] = []
4820
- _files: Dict[str, str] = {}
4025
+ _files: Dict[
4026
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4027
+ ] = {}
4821
4028
  _body_params: Optional[bytes] = None
4822
4029
 
4823
4030
  # process the path parameters
@@ -4829,31 +4036,17 @@ class WorkspaceApi:
4829
4036
  # process the header parameters
4830
4037
  # process the form parameters
4831
4038
  # process the body parameter
4832
- if workspace_role is not None:
4833
- _body_params = workspace_role
4834
4039
 
4835
4040
 
4836
4041
  # set the HTTP header `Accept`
4837
- _header_params['Accept'] = self.api_client.select_header_accept(
4838
- [
4839
- 'application/json'
4840
- ]
4841
- )
4842
-
4843
- # set the HTTP header `Content-Type`
4844
- if _content_type:
4845
- _header_params['Content-Type'] = _content_type
4846
- else:
4847
- _default_content_type = (
4848
- self.api_client.select_header_content_type(
4849
- [
4850
- 'application/json',
4851
- 'application/yaml'
4852
- ]
4853
- )
4042
+ if 'Accept' not in _header_params:
4043
+ _header_params['Accept'] = self.api_client.select_header_accept(
4044
+ [
4045
+ 'application/json',
4046
+ 'application/yaml'
4047
+ ]
4854
4048
  )
4855
- if _default_content_type is not None:
4856
- _header_params['Content-Type'] = _default_content_type
4049
+
4857
4050
 
4858
4051
  # authentication setting
4859
4052
  _auth_settings: List[str] = [
@@ -4861,8 +4054,8 @@ class WorkspaceApi:
4861
4054
  ]
4862
4055
 
4863
4056
  return self.api_client.param_serialize(
4864
- method='POST',
4865
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/default',
4057
+ method='GET',
4058
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/users',
4866
4059
  path_params=_path_params,
4867
4060
  query_params=_query_params,
4868
4061
  header_params=_header_params,
@@ -4879,11 +4072,11 @@ class WorkspaceApi:
4879
4072
 
4880
4073
 
4881
4074
  @validate_call
4882
- def unlink_dataset(
4075
+ def list_workspaces(
4883
4076
  self,
4884
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4885
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4886
- dataset_id: Annotated[StrictStr, Field(description="dataset id to be linked to")],
4077
+ organization_id: Annotated[str, Field(strict=True, 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,
4887
4080
  _request_timeout: Union[
4888
4081
  None,
4889
4082
  Annotated[StrictFloat, Field(gt=0)],
@@ -4896,16 +4089,16 @@ class WorkspaceApi:
4896
4089
  _content_type: Optional[StrictStr] = None,
4897
4090
  _headers: Optional[Dict[StrictStr, Any]] = None,
4898
4091
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4899
- ) -> Workspace:
4900
- """unlink_dataset
4092
+ ) -> List[Workspace]:
4093
+ """List all Workspaces
4901
4094
 
4902
4095
 
4903
- :param organization_id: the Organization identifier (required)
4096
+ :param organization_id: The Organization identifier (required)
4904
4097
  :type organization_id: str
4905
- :param workspace_id: the Workspace identifier (required)
4906
- :type workspace_id: str
4907
- :param dataset_id: dataset id to be linked to (required)
4908
- :type dataset_id: str
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
4909
4102
  :param _request_timeout: timeout setting for this request. If one
4910
4103
  number provided, it will be total request
4911
4104
  timeout. It can also be a pair (tuple) of
@@ -4928,10 +4121,10 @@ class WorkspaceApi:
4928
4121
  :return: Returns the result object.
4929
4122
  """ # noqa: E501
4930
4123
 
4931
- _param = self._unlink_dataset_serialize(
4124
+ _param = self._list_workspaces_serialize(
4932
4125
  organization_id=organization_id,
4933
- workspace_id=workspace_id,
4934
- dataset_id=dataset_id,
4126
+ page=page,
4127
+ size=size,
4935
4128
  _request_auth=_request_auth,
4936
4129
  _content_type=_content_type,
4937
4130
  _headers=_headers,
@@ -4939,9 +4132,7 @@ class WorkspaceApi:
4939
4132
  )
4940
4133
 
4941
4134
  _response_types_map: Dict[str, Optional[str]] = {
4942
- '200': "Workspace",
4943
- '400': None,
4944
- '404': None,
4135
+ '200': "List[Workspace]",
4945
4136
  }
4946
4137
  response_data = self.api_client.call_api(
4947
4138
  *_param,
@@ -4955,11 +4146,11 @@ class WorkspaceApi:
4955
4146
 
4956
4147
 
4957
4148
  @validate_call
4958
- def unlink_dataset_with_http_info(
4149
+ def list_workspaces_with_http_info(
4959
4150
  self,
4960
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4961
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4962
- dataset_id: Annotated[StrictStr, Field(description="dataset id to be linked to")],
4151
+ organization_id: Annotated[str, Field(strict=True, 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,
4963
4154
  _request_timeout: Union[
4964
4155
  None,
4965
4156
  Annotated[StrictFloat, Field(gt=0)],
@@ -4972,16 +4163,16 @@ class WorkspaceApi:
4972
4163
  _content_type: Optional[StrictStr] = None,
4973
4164
  _headers: Optional[Dict[StrictStr, Any]] = None,
4974
4165
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4975
- ) -> ApiResponse[Workspace]:
4976
- """unlink_dataset
4166
+ ) -> ApiResponse[List[Workspace]]:
4167
+ """List all Workspaces
4977
4168
 
4978
4169
 
4979
- :param organization_id: the Organization identifier (required)
4170
+ :param organization_id: The Organization identifier (required)
4980
4171
  :type organization_id: str
4981
- :param workspace_id: the Workspace identifier (required)
4982
- :type workspace_id: str
4983
- :param dataset_id: dataset id to be linked to (required)
4984
- :type dataset_id: str
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
4985
4176
  :param _request_timeout: timeout setting for this request. If one
4986
4177
  number provided, it will be total request
4987
4178
  timeout. It can also be a pair (tuple) of
@@ -5004,10 +4195,10 @@ class WorkspaceApi:
5004
4195
  :return: Returns the result object.
5005
4196
  """ # noqa: E501
5006
4197
 
5007
- _param = self._unlink_dataset_serialize(
4198
+ _param = self._list_workspaces_serialize(
5008
4199
  organization_id=organization_id,
5009
- workspace_id=workspace_id,
5010
- dataset_id=dataset_id,
4200
+ page=page,
4201
+ size=size,
5011
4202
  _request_auth=_request_auth,
5012
4203
  _content_type=_content_type,
5013
4204
  _headers=_headers,
@@ -5015,9 +4206,7 @@ class WorkspaceApi:
5015
4206
  )
5016
4207
 
5017
4208
  _response_types_map: Dict[str, Optional[str]] = {
5018
- '200': "Workspace",
5019
- '400': None,
5020
- '404': None,
4209
+ '200': "List[Workspace]",
5021
4210
  }
5022
4211
  response_data = self.api_client.call_api(
5023
4212
  *_param,
@@ -5031,11 +4220,11 @@ class WorkspaceApi:
5031
4220
 
5032
4221
 
5033
4222
  @validate_call
5034
- def unlink_dataset_without_preload_content(
4223
+ def list_workspaces_without_preload_content(
5035
4224
  self,
5036
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
5037
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
5038
- dataset_id: Annotated[StrictStr, Field(description="dataset id to be linked to")],
4225
+ organization_id: Annotated[str, Field(strict=True, 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,
5039
4228
  _request_timeout: Union[
5040
4229
  None,
5041
4230
  Annotated[StrictFloat, Field(gt=0)],
@@ -5049,15 +4238,15 @@ class WorkspaceApi:
5049
4238
  _headers: Optional[Dict[StrictStr, Any]] = None,
5050
4239
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5051
4240
  ) -> RESTResponseType:
5052
- """unlink_dataset
4241
+ """List all Workspaces
5053
4242
 
5054
4243
 
5055
- :param organization_id: the Organization identifier (required)
4244
+ :param organization_id: The Organization identifier (required)
5056
4245
  :type organization_id: str
5057
- :param workspace_id: the Workspace identifier (required)
5058
- :type workspace_id: str
5059
- :param dataset_id: dataset id to be linked to (required)
5060
- :type dataset_id: str
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
5061
4250
  :param _request_timeout: timeout setting for this request. If one
5062
4251
  number provided, it will be total request
5063
4252
  timeout. It can also be a pair (tuple) of
@@ -5080,10 +4269,10 @@ class WorkspaceApi:
5080
4269
  :return: Returns the result object.
5081
4270
  """ # noqa: E501
5082
4271
 
5083
- _param = self._unlink_dataset_serialize(
4272
+ _param = self._list_workspaces_serialize(
5084
4273
  organization_id=organization_id,
5085
- workspace_id=workspace_id,
5086
- dataset_id=dataset_id,
4274
+ page=page,
4275
+ size=size,
5087
4276
  _request_auth=_request_auth,
5088
4277
  _content_type=_content_type,
5089
4278
  _headers=_headers,
@@ -5091,9 +4280,7 @@ class WorkspaceApi:
5091
4280
  )
5092
4281
 
5093
4282
  _response_types_map: Dict[str, Optional[str]] = {
5094
- '200': "Workspace",
5095
- '400': None,
5096
- '404': None,
4283
+ '200': "List[Workspace]",
5097
4284
  }
5098
4285
  response_data = self.api_client.call_api(
5099
4286
  *_param,
@@ -5102,11 +4289,11 @@ class WorkspaceApi:
5102
4289
  return response_data.response
5103
4290
 
5104
4291
 
5105
- def _unlink_dataset_serialize(
4292
+ def _list_workspaces_serialize(
5106
4293
  self,
5107
4294
  organization_id,
5108
- workspace_id,
5109
- dataset_id,
4295
+ page,
4296
+ size,
5110
4297
  _request_auth,
5111
4298
  _content_type,
5112
4299
  _headers,
@@ -5122,18 +4309,22 @@ class WorkspaceApi:
5122
4309
  _query_params: List[Tuple[str, str]] = []
5123
4310
  _header_params: Dict[str, Optional[str]] = _headers or {}
5124
4311
  _form_params: List[Tuple[str, str]] = []
5125
- _files: Dict[str, str] = {}
4312
+ _files: Dict[
4313
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4314
+ ] = {}
5126
4315
  _body_params: Optional[bytes] = None
5127
4316
 
5128
4317
  # process the path parameters
5129
4318
  if organization_id is not None:
5130
4319
  _path_params['organization_id'] = organization_id
5131
- if workspace_id is not None:
5132
- _path_params['workspace_id'] = workspace_id
5133
4320
  # process the query parameters
5134
- if dataset_id is not None:
4321
+ if page is not None:
5135
4322
 
5136
- _query_params.append(('datasetId', dataset_id))
4323
+ _query_params.append(('page', page))
4324
+
4325
+ if size is not None:
4326
+
4327
+ _query_params.append(('size', size))
5137
4328
 
5138
4329
  # process the header parameters
5139
4330
  # process the form parameters
@@ -5141,11 +4332,13 @@ class WorkspaceApi:
5141
4332
 
5142
4333
 
5143
4334
  # set the HTTP header `Accept`
5144
- _header_params['Accept'] = self.api_client.select_header_accept(
5145
- [
5146
- 'application/json'
5147
- ]
5148
- )
4335
+ if 'Accept' not in _header_params:
4336
+ _header_params['Accept'] = self.api_client.select_header_accept(
4337
+ [
4338
+ 'application/json',
4339
+ 'application/yaml'
4340
+ ]
4341
+ )
5149
4342
 
5150
4343
 
5151
4344
  # authentication setting
@@ -5154,8 +4347,8 @@ class WorkspaceApi:
5154
4347
  ]
5155
4348
 
5156
4349
  return self.api_client.param_serialize(
5157
- method='POST',
5158
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/unlink',
4350
+ method='GET',
4351
+ resource_path='/organizations/{organization_id}/workspaces',
5159
4352
  path_params=_path_params,
5160
4353
  query_params=_query_params,
5161
4354
  header_params=_header_params,
@@ -5174,9 +4367,9 @@ class WorkspaceApi:
5174
4367
  @validate_call
5175
4368
  def update_workspace(
5176
4369
  self,
5177
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
5178
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
5179
- workspace: Annotated[Workspace, Field(description="The new Workspace details. This endpoint can't be used to update security")],
4370
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
4371
+ workspace_id: Annotated[str, Field(strict=True, 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")],
5180
4373
  _request_timeout: Union[
5181
4374
  None,
5182
4375
  Annotated[StrictFloat, Field(gt=0)],
@@ -5193,12 +4386,12 @@ class WorkspaceApi:
5193
4386
  """Update a workspace
5194
4387
 
5195
4388
 
5196
- :param organization_id: the Organization identifier (required)
4389
+ :param organization_id: The Organization identifier (required)
5197
4390
  :type organization_id: str
5198
- :param workspace_id: the Workspace identifier (required)
4391
+ :param workspace_id: The Workspace identifier (required)
5199
4392
  :type workspace_id: str
5200
- :param workspace: The new Workspace details. This endpoint can't be used to update security (required)
5201
- :type workspace: Workspace
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
5202
4395
  :param _request_timeout: timeout setting for this request. If one
5203
4396
  number provided, it will be total request
5204
4397
  timeout. It can also be a pair (tuple) of
@@ -5224,7 +4417,7 @@ class WorkspaceApi:
5224
4417
  _param = self._update_workspace_serialize(
5225
4418
  organization_id=organization_id,
5226
4419
  workspace_id=workspace_id,
5227
- workspace=workspace,
4420
+ workspace_update_request=workspace_update_request,
5228
4421
  _request_auth=_request_auth,
5229
4422
  _content_type=_content_type,
5230
4423
  _headers=_headers,
@@ -5250,9 +4443,9 @@ class WorkspaceApi:
5250
4443
  @validate_call
5251
4444
  def update_workspace_with_http_info(
5252
4445
  self,
5253
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
5254
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
5255
- workspace: Annotated[Workspace, Field(description="The new Workspace details. This endpoint can't be used to update security")],
4446
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
4447
+ workspace_id: Annotated[str, Field(strict=True, 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")],
5256
4449
  _request_timeout: Union[
5257
4450
  None,
5258
4451
  Annotated[StrictFloat, Field(gt=0)],
@@ -5269,12 +4462,12 @@ class WorkspaceApi:
5269
4462
  """Update a workspace
5270
4463
 
5271
4464
 
5272
- :param organization_id: the Organization identifier (required)
4465
+ :param organization_id: The Organization identifier (required)
5273
4466
  :type organization_id: str
5274
- :param workspace_id: the Workspace identifier (required)
4467
+ :param workspace_id: The Workspace identifier (required)
5275
4468
  :type workspace_id: str
5276
- :param workspace: The new Workspace details. This endpoint can't be used to update security (required)
5277
- :type workspace: Workspace
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
5278
4471
  :param _request_timeout: timeout setting for this request. If one
5279
4472
  number provided, it will be total request
5280
4473
  timeout. It can also be a pair (tuple) of
@@ -5300,7 +4493,7 @@ class WorkspaceApi:
5300
4493
  _param = self._update_workspace_serialize(
5301
4494
  organization_id=organization_id,
5302
4495
  workspace_id=workspace_id,
5303
- workspace=workspace,
4496
+ workspace_update_request=workspace_update_request,
5304
4497
  _request_auth=_request_auth,
5305
4498
  _content_type=_content_type,
5306
4499
  _headers=_headers,
@@ -5326,9 +4519,9 @@ class WorkspaceApi:
5326
4519
  @validate_call
5327
4520
  def update_workspace_without_preload_content(
5328
4521
  self,
5329
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
5330
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
5331
- workspace: Annotated[Workspace, Field(description="The new Workspace details. This endpoint can't be used to update security")],
4522
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
4523
+ workspace_id: Annotated[str, Field(strict=True, 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")],
5332
4525
  _request_timeout: Union[
5333
4526
  None,
5334
4527
  Annotated[StrictFloat, Field(gt=0)],
@@ -5345,12 +4538,12 @@ class WorkspaceApi:
5345
4538
  """Update a workspace
5346
4539
 
5347
4540
 
5348
- :param organization_id: the Organization identifier (required)
4541
+ :param organization_id: The Organization identifier (required)
5349
4542
  :type organization_id: str
5350
- :param workspace_id: the Workspace identifier (required)
4543
+ :param workspace_id: The Workspace identifier (required)
5351
4544
  :type workspace_id: str
5352
- :param workspace: The new Workspace details. This endpoint can't be used to update security (required)
5353
- :type workspace: Workspace
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
5354
4547
  :param _request_timeout: timeout setting for this request. If one
5355
4548
  number provided, it will be total request
5356
4549
  timeout. It can also be a pair (tuple) of
@@ -5376,7 +4569,7 @@ class WorkspaceApi:
5376
4569
  _param = self._update_workspace_serialize(
5377
4570
  organization_id=organization_id,
5378
4571
  workspace_id=workspace_id,
5379
- workspace=workspace,
4572
+ workspace_update_request=workspace_update_request,
5380
4573
  _request_auth=_request_auth,
5381
4574
  _content_type=_content_type,
5382
4575
  _headers=_headers,
@@ -5399,7 +4592,7 @@ class WorkspaceApi:
5399
4592
  self,
5400
4593
  organization_id,
5401
4594
  workspace_id,
5402
- workspace,
4595
+ workspace_update_request,
5403
4596
  _request_auth,
5404
4597
  _content_type,
5405
4598
  _headers,
@@ -5415,7 +4608,9 @@ class WorkspaceApi:
5415
4608
  _query_params: List[Tuple[str, str]] = []
5416
4609
  _header_params: Dict[str, Optional[str]] = _headers or {}
5417
4610
  _form_params: List[Tuple[str, str]] = []
5418
- _files: Dict[str, str] = {}
4611
+ _files: Dict[
4612
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4613
+ ] = {}
5419
4614
  _body_params: Optional[bytes] = None
5420
4615
 
5421
4616
  # process the path parameters
@@ -5427,16 +4622,18 @@ class WorkspaceApi:
5427
4622
  # process the header parameters
5428
4623
  # process the form parameters
5429
4624
  # process the body parameter
5430
- if workspace is not None:
5431
- _body_params = workspace
4625
+ if workspace_update_request is not None:
4626
+ _body_params = workspace_update_request
5432
4627
 
5433
4628
 
5434
4629
  # set the HTTP header `Accept`
5435
- _header_params['Accept'] = self.api_client.select_header_accept(
5436
- [
5437
- 'application/json'
5438
- ]
5439
- )
4630
+ if 'Accept' not in _header_params:
4631
+ _header_params['Accept'] = self.api_client.select_header_accept(
4632
+ [
4633
+ 'application/json',
4634
+ 'application/yaml'
4635
+ ]
4636
+ )
5440
4637
 
5441
4638
  # set the HTTP header `Content-Type`
5442
4639
  if _content_type:
@@ -5479,9 +4676,9 @@ class WorkspaceApi:
5479
4676
  @validate_call
5480
4677
  def update_workspace_access_control(
5481
4678
  self,
5482
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
5483
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
5484
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
4679
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
4680
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
4681
+ identity_id: Annotated[StrictStr, Field(description="The User identifier")],
5485
4682
  workspace_role: Annotated[WorkspaceRole, Field(description="The new Workspace Access Control")],
5486
4683
  _request_timeout: Union[
5487
4684
  None,
@@ -5499,11 +4696,11 @@ class WorkspaceApi:
5499
4696
  """Update the specified access to User for a Workspace
5500
4697
 
5501
4698
 
5502
- :param organization_id: the Organization identifier (required)
4699
+ :param organization_id: The Organization identifier (required)
5503
4700
  :type organization_id: str
5504
- :param workspace_id: the Workspace identifier (required)
4701
+ :param workspace_id: The Workspace identifier (required)
5505
4702
  :type workspace_id: str
5506
- :param identity_id: the User identifier (required)
4703
+ :param identity_id: The User identifier (required)
5507
4704
  :type identity_id: str
5508
4705
  :param workspace_role: The new Workspace Access Control (required)
5509
4706
  :type workspace_role: WorkspaceRole
@@ -5558,9 +4755,9 @@ class WorkspaceApi:
5558
4755
  @validate_call
5559
4756
  def update_workspace_access_control_with_http_info(
5560
4757
  self,
5561
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
5562
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
5563
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
4758
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
4759
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
4760
+ identity_id: Annotated[StrictStr, Field(description="The User identifier")],
5564
4761
  workspace_role: Annotated[WorkspaceRole, Field(description="The new Workspace Access Control")],
5565
4762
  _request_timeout: Union[
5566
4763
  None,
@@ -5578,11 +4775,11 @@ class WorkspaceApi:
5578
4775
  """Update the specified access to User for a Workspace
5579
4776
 
5580
4777
 
5581
- :param organization_id: the Organization identifier (required)
4778
+ :param organization_id: The Organization identifier (required)
5582
4779
  :type organization_id: str
5583
- :param workspace_id: the Workspace identifier (required)
4780
+ :param workspace_id: The Workspace identifier (required)
5584
4781
  :type workspace_id: str
5585
- :param identity_id: the User identifier (required)
4782
+ :param identity_id: The User identifier (required)
5586
4783
  :type identity_id: str
5587
4784
  :param workspace_role: The new Workspace Access Control (required)
5588
4785
  :type workspace_role: WorkspaceRole
@@ -5637,9 +4834,9 @@ class WorkspaceApi:
5637
4834
  @validate_call
5638
4835
  def update_workspace_access_control_without_preload_content(
5639
4836
  self,
5640
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
5641
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
5642
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
4837
+ organization_id: Annotated[str, Field(strict=True, description="The Organization identifier")],
4838
+ workspace_id: Annotated[str, Field(strict=True, description="The Workspace identifier")],
4839
+ identity_id: Annotated[StrictStr, Field(description="The User identifier")],
5643
4840
  workspace_role: Annotated[WorkspaceRole, Field(description="The new Workspace Access Control")],
5644
4841
  _request_timeout: Union[
5645
4842
  None,
@@ -5657,11 +4854,11 @@ class WorkspaceApi:
5657
4854
  """Update the specified access to User for a Workspace
5658
4855
 
5659
4856
 
5660
- :param organization_id: the Organization identifier (required)
4857
+ :param organization_id: The Organization identifier (required)
5661
4858
  :type organization_id: str
5662
- :param workspace_id: the Workspace identifier (required)
4859
+ :param workspace_id: The Workspace identifier (required)
5663
4860
  :type workspace_id: str
5664
- :param identity_id: the User identifier (required)
4861
+ :param identity_id: The User identifier (required)
5665
4862
  :type identity_id: str
5666
4863
  :param workspace_role: The new Workspace Access Control (required)
5667
4864
  :type workspace_role: WorkspaceRole
@@ -5730,7 +4927,9 @@ class WorkspaceApi:
5730
4927
  _query_params: List[Tuple[str, str]] = []
5731
4928
  _header_params: Dict[str, Optional[str]] = _headers or {}
5732
4929
  _form_params: List[Tuple[str, str]] = []
5733
- _files: Dict[str, str] = {}
4930
+ _files: Dict[
4931
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4932
+ ] = {}
5734
4933
  _body_params: Optional[bytes] = None
5735
4934
 
5736
4935
  # process the path parameters
@@ -5749,11 +4948,13 @@ class WorkspaceApi:
5749
4948
 
5750
4949
 
5751
4950
  # set the HTTP header `Accept`
5752
- _header_params['Accept'] = self.api_client.select_header_accept(
5753
- [
5754
- 'application/json'
5755
- ]
5756
- )
4951
+ if 'Accept' not in _header_params:
4952
+ _header_params['Accept'] = self.api_client.select_header_accept(
4953
+ [
4954
+ 'application/json',
4955
+ 'application/yaml'
4956
+ ]
4957
+ )
5757
4958
 
5758
4959
  # set the HTTP header `Content-Type`
5759
4960
  if _content_type:
@@ -5762,7 +4963,8 @@ class WorkspaceApi:
5762
4963
  _default_content_type = (
5763
4964
  self.api_client.select_header_content_type(
5764
4965
  [
5765
- 'application/json'
4966
+ 'application/json',
4967
+ 'application/yaml'
5766
4968
  ]
5767
4969
  )
5768
4970
  )
@@ -5793,13 +4995,11 @@ class WorkspaceApi:
5793
4995
 
5794
4996
 
5795
4997
  @validate_call
5796
- def upload_workspace_file(
4998
+ def update_workspace_default_security(
5797
4999
  self,
5798
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
5799
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
5800
- file: Union[StrictBytes, StrictStr],
5801
- overwrite: Optional[StrictBool] = None,
5802
- 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[str, Field(strict=True, description="The Organization identifier")],
5001
+ workspace_id: Annotated[str, Field(strict=True, 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.")],
5803
5003
  _request_timeout: Union[
5804
5004
  None,
5805
5005
  Annotated[StrictFloat, Field(gt=0)],
@@ -5812,20 +5012,16 @@ class WorkspaceApi:
5812
5012
  _content_type: Optional[StrictStr] = None,
5813
5013
  _headers: Optional[Dict[StrictStr, Any]] = None,
5814
5014
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5815
- ) -> WorkspaceFile:
5816
- """Upload a file for the Workspace
5015
+ ) -> WorkspaceSecurity:
5016
+ """Update the Workspace default security
5817
5017
 
5818
5018
 
5819
- :param organization_id: the Organization identifier (required)
5019
+ :param organization_id: The Organization identifier (required)
5820
5020
  :type organization_id: str
5821
- :param workspace_id: the Workspace identifier (required)
5021
+ :param workspace_id: The Workspace identifier (required)
5822
5022
  :type workspace_id: str
5823
- :param file: (required)
5824
- :type file: bytearray
5825
- :param overwrite:
5826
- :type overwrite: bool
5827
- :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.
5828
- :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
5829
5025
  :param _request_timeout: timeout setting for this request. If one
5830
5026
  number provided, it will be total request
5831
5027
  timeout. It can also be a pair (tuple) of
@@ -5848,12 +5044,10 @@ class WorkspaceApi:
5848
5044
  :return: Returns the result object.
5849
5045
  """ # noqa: E501
5850
5046
 
5851
- _param = self._upload_workspace_file_serialize(
5047
+ _param = self._update_workspace_default_security_serialize(
5852
5048
  organization_id=organization_id,
5853
5049
  workspace_id=workspace_id,
5854
- file=file,
5855
- overwrite=overwrite,
5856
- destination=destination,
5050
+ workspace_role=workspace_role,
5857
5051
  _request_auth=_request_auth,
5858
5052
  _content_type=_content_type,
5859
5053
  _headers=_headers,
@@ -5861,8 +5055,8 @@ class WorkspaceApi:
5861
5055
  )
5862
5056
 
5863
5057
  _response_types_map: Dict[str, Optional[str]] = {
5864
- '201': "WorkspaceFile",
5865
- '400': None,
5058
+ '201': "WorkspaceSecurity",
5059
+ '404': None,
5866
5060
  }
5867
5061
  response_data = self.api_client.call_api(
5868
5062
  *_param,
@@ -5876,13 +5070,11 @@ class WorkspaceApi:
5876
5070
 
5877
5071
 
5878
5072
  @validate_call
5879
- def upload_workspace_file_with_http_info(
5073
+ def update_workspace_default_security_with_http_info(
5880
5074
  self,
5881
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
5882
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
5883
- file: Union[StrictBytes, StrictStr],
5884
- overwrite: Optional[StrictBool] = None,
5885
- 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[str, Field(strict=True, description="The Organization identifier")],
5076
+ workspace_id: Annotated[str, Field(strict=True, 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.")],
5886
5078
  _request_timeout: Union[
5887
5079
  None,
5888
5080
  Annotated[StrictFloat, Field(gt=0)],
@@ -5895,20 +5087,16 @@ class WorkspaceApi:
5895
5087
  _content_type: Optional[StrictStr] = None,
5896
5088
  _headers: Optional[Dict[StrictStr, Any]] = None,
5897
5089
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5898
- ) -> ApiResponse[WorkspaceFile]:
5899
- """Upload a file for the Workspace
5090
+ ) -> ApiResponse[WorkspaceSecurity]:
5091
+ """Update the Workspace default security
5900
5092
 
5901
5093
 
5902
- :param organization_id: the Organization identifier (required)
5094
+ :param organization_id: The Organization identifier (required)
5903
5095
  :type organization_id: str
5904
- :param workspace_id: the Workspace identifier (required)
5096
+ :param workspace_id: The Workspace identifier (required)
5905
5097
  :type workspace_id: str
5906
- :param file: (required)
5907
- :type file: bytearray
5908
- :param overwrite:
5909
- :type overwrite: bool
5910
- :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.
5911
- :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
5912
5100
  :param _request_timeout: timeout setting for this request. If one
5913
5101
  number provided, it will be total request
5914
5102
  timeout. It can also be a pair (tuple) of
@@ -5931,12 +5119,10 @@ class WorkspaceApi:
5931
5119
  :return: Returns the result object.
5932
5120
  """ # noqa: E501
5933
5121
 
5934
- _param = self._upload_workspace_file_serialize(
5122
+ _param = self._update_workspace_default_security_serialize(
5935
5123
  organization_id=organization_id,
5936
5124
  workspace_id=workspace_id,
5937
- file=file,
5938
- overwrite=overwrite,
5939
- destination=destination,
5125
+ workspace_role=workspace_role,
5940
5126
  _request_auth=_request_auth,
5941
5127
  _content_type=_content_type,
5942
5128
  _headers=_headers,
@@ -5944,8 +5130,8 @@ class WorkspaceApi:
5944
5130
  )
5945
5131
 
5946
5132
  _response_types_map: Dict[str, Optional[str]] = {
5947
- '201': "WorkspaceFile",
5948
- '400': None,
5133
+ '201': "WorkspaceSecurity",
5134
+ '404': None,
5949
5135
  }
5950
5136
  response_data = self.api_client.call_api(
5951
5137
  *_param,
@@ -5959,13 +5145,11 @@ class WorkspaceApi:
5959
5145
 
5960
5146
 
5961
5147
  @validate_call
5962
- def upload_workspace_file_without_preload_content(
5148
+ def update_workspace_default_security_without_preload_content(
5963
5149
  self,
5964
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
5965
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
5966
- file: Union[StrictBytes, StrictStr],
5967
- overwrite: Optional[StrictBool] = None,
5968
- 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[str, Field(strict=True, description="The Organization identifier")],
5151
+ workspace_id: Annotated[str, Field(strict=True, 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.")],
5969
5153
  _request_timeout: Union[
5970
5154
  None,
5971
5155
  Annotated[StrictFloat, Field(gt=0)],
@@ -5979,19 +5163,15 @@ class WorkspaceApi:
5979
5163
  _headers: Optional[Dict[StrictStr, Any]] = None,
5980
5164
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5981
5165
  ) -> RESTResponseType:
5982
- """Upload a file for the Workspace
5166
+ """Update the Workspace default security
5983
5167
 
5984
5168
 
5985
- :param organization_id: the Organization identifier (required)
5169
+ :param organization_id: The Organization identifier (required)
5986
5170
  :type organization_id: str
5987
- :param workspace_id: the Workspace identifier (required)
5171
+ :param workspace_id: The Workspace identifier (required)
5988
5172
  :type workspace_id: str
5989
- :param file: (required)
5990
- :type file: bytearray
5991
- :param overwrite:
5992
- :type overwrite: bool
5993
- :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.
5994
- :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
5995
5175
  :param _request_timeout: timeout setting for this request. If one
5996
5176
  number provided, it will be total request
5997
5177
  timeout. It can also be a pair (tuple) of
@@ -6014,12 +5194,10 @@ class WorkspaceApi:
6014
5194
  :return: Returns the result object.
6015
5195
  """ # noqa: E501
6016
5196
 
6017
- _param = self._upload_workspace_file_serialize(
5197
+ _param = self._update_workspace_default_security_serialize(
6018
5198
  organization_id=organization_id,
6019
5199
  workspace_id=workspace_id,
6020
- file=file,
6021
- overwrite=overwrite,
6022
- destination=destination,
5200
+ workspace_role=workspace_role,
6023
5201
  _request_auth=_request_auth,
6024
5202
  _content_type=_content_type,
6025
5203
  _headers=_headers,
@@ -6027,8 +5205,8 @@ class WorkspaceApi:
6027
5205
  )
6028
5206
 
6029
5207
  _response_types_map: Dict[str, Optional[str]] = {
6030
- '201': "WorkspaceFile",
6031
- '400': None,
5208
+ '201': "WorkspaceSecurity",
5209
+ '404': None,
6032
5210
  }
6033
5211
  response_data = self.api_client.call_api(
6034
5212
  *_param,
@@ -6037,13 +5215,11 @@ class WorkspaceApi:
6037
5215
  return response_data.response
6038
5216
 
6039
5217
 
6040
- def _upload_workspace_file_serialize(
5218
+ def _update_workspace_default_security_serialize(
6041
5219
  self,
6042
5220
  organization_id,
6043
5221
  workspace_id,
6044
- file,
6045
- overwrite,
6046
- destination,
5222
+ workspace_role,
6047
5223
  _request_auth,
6048
5224
  _content_type,
6049
5225
  _headers,
@@ -6059,7 +5235,9 @@ class WorkspaceApi:
6059
5235
  _query_params: List[Tuple[str, str]] = []
6060
5236
  _header_params: Dict[str, Optional[str]] = _headers or {}
6061
5237
  _form_params: List[Tuple[str, str]] = []
6062
- _files: Dict[str, str] = {}
5238
+ _files: Dict[
5239
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
5240
+ ] = {}
6063
5241
  _body_params: Optional[bytes] = None
6064
5242
 
6065
5243
  # process the path parameters
@@ -6070,21 +5248,19 @@ class WorkspaceApi:
6070
5248
  # process the query parameters
6071
5249
  # process the header parameters
6072
5250
  # process the form parameters
6073
- if overwrite is not None:
6074
- _form_params.append(('overwrite', overwrite))
6075
- if destination is not None:
6076
- _form_params.append(('destination', destination))
6077
- if file is not None:
6078
- _files['file'] = file
6079
5251
  # process the body parameter
5252
+ if workspace_role is not None:
5253
+ _body_params = workspace_role
6080
5254
 
6081
5255
 
6082
5256
  # set the HTTP header `Accept`
6083
- _header_params['Accept'] = self.api_client.select_header_accept(
6084
- [
6085
- 'application/json'
6086
- ]
6087
- )
5257
+ if 'Accept' not in _header_params:
5258
+ _header_params['Accept'] = self.api_client.select_header_accept(
5259
+ [
5260
+ 'application/json',
5261
+ 'application/yaml'
5262
+ ]
5263
+ )
6088
5264
 
6089
5265
  # set the HTTP header `Content-Type`
6090
5266
  if _content_type:
@@ -6093,7 +5269,8 @@ class WorkspaceApi:
6093
5269
  _default_content_type = (
6094
5270
  self.api_client.select_header_content_type(
6095
5271
  [
6096
- 'multipart/form-data'
5272
+ 'application/json',
5273
+ 'application/yaml'
6097
5274
  ]
6098
5275
  )
6099
5276
  )
@@ -6106,8 +5283,8 @@ class WorkspaceApi:
6106
5283
  ]
6107
5284
 
6108
5285
  return self.api_client.param_serialize(
6109
- method='POST',
6110
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/files',
5286
+ method='PATCH',
5287
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/default',
6111
5288
  path_params=_path_params,
6112
5289
  query_params=_query_params,
6113
5290
  header_params=_header_params,