cosmotech-api 3.2.6.dev0__py3-none-any.whl → 3.3.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cosmotech-api might be problematic. Click here for more details.

Files changed (259) hide show
  1. cosmotech_api/__init__.py +49 -3
  2. cosmotech_api/api/__init__.py +3 -0
  3. cosmotech_api/api/connector_api.py +285 -26
  4. cosmotech_api/api/dataset_api.py +264 -233
  5. cosmotech_api/api/meta_api.py +281 -0
  6. cosmotech_api/api/organization_api.py +968 -89
  7. cosmotech_api/api/run_api.py +55 -47
  8. cosmotech_api/api/runner_api.py +109 -96
  9. cosmotech_api/api/scenario_api.py +6558 -3259
  10. cosmotech_api/api/scenariorun_api.py +4044 -1987
  11. cosmotech_api/api/scenariorunresult_api.py +1 -1
  12. cosmotech_api/api/solution_api.py +1143 -473
  13. cosmotech_api/api/twingraph_api.py +4152 -2084
  14. cosmotech_api/api/validator_api.py +1 -1
  15. cosmotech_api/api/workspace_api.py +428 -114
  16. cosmotech_api/api_client.py +59 -29
  17. cosmotech_api/configuration.py +29 -7
  18. cosmotech_api/exceptions.py +1 -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 +46 -3
  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 +7 -7
  130. cosmotech_api/models/connector.py +15 -11
  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/created_run.py +7 -7
  136. cosmotech_api/models/dataset.py +10 -10
  137. cosmotech_api/models/dataset_access_control.py +7 -7
  138. cosmotech_api/models/dataset_compatibility.py +7 -7
  139. cosmotech_api/models/dataset_connector.py +7 -7
  140. cosmotech_api/models/dataset_copy_parameters.py +7 -7
  141. cosmotech_api/models/dataset_role.py +7 -7
  142. cosmotech_api/models/dataset_search.py +7 -7
  143. cosmotech_api/models/dataset_security.py +10 -10
  144. cosmotech_api/models/dataset_source_type.py +1 -1
  145. cosmotech_api/models/dataset_twin_graph_hash.py +7 -7
  146. cosmotech_api/models/dataset_twin_graph_info.py +7 -7
  147. cosmotech_api/models/dataset_twin_graph_query.py +7 -7
  148. cosmotech_api/models/delete_historical_data.py +7 -7
  149. cosmotech_api/models/file_upload_metadata.py +7 -7
  150. cosmotech_api/models/file_upload_validation.py +13 -13
  151. cosmotech_api/models/graph_properties.py +7 -7
  152. cosmotech_api/models/ingestion_status_enum.py +1 -1
  153. cosmotech_api/models/io_types_enum.py +1 -1
  154. cosmotech_api/models/organization.py +14 -8
  155. cosmotech_api/models/organization_access_control.py +7 -7
  156. cosmotech_api/models/organization_create_request.py +95 -0
  157. cosmotech_api/models/organization_role.py +7 -7
  158. cosmotech_api/models/organization_security.py +10 -10
  159. cosmotech_api/models/organization_service.py +7 -7
  160. cosmotech_api/models/organization_services.py +7 -7
  161. cosmotech_api/models/organization_update_request.py +89 -0
  162. cosmotech_api/models/query_result.py +7 -7
  163. cosmotech_api/models/resource_size_info.py +7 -7
  164. cosmotech_api/models/run.py +13 -13
  165. cosmotech_api/models/run_container.py +19 -9
  166. cosmotech_api/models/run_container_artifact.py +7 -7
  167. cosmotech_api/models/run_container_logs.py +7 -7
  168. cosmotech_api/models/run_data.py +7 -7
  169. cosmotech_api/models/run_data_query.py +7 -7
  170. cosmotech_api/models/run_logs.py +27 -22
  171. cosmotech_api/models/run_logs_entry.py +7 -7
  172. cosmotech_api/models/run_resource_requested.py +7 -7
  173. cosmotech_api/models/run_search.py +7 -7
  174. cosmotech_api/models/run_search_state.py +1 -1
  175. cosmotech_api/models/run_start_containers.py +10 -10
  176. cosmotech_api/models/run_state.py +1 -1
  177. cosmotech_api/models/run_status.py +10 -10
  178. cosmotech_api/models/run_status_node.py +7 -7
  179. cosmotech_api/models/run_template.py +7 -7
  180. cosmotech_api/models/run_template_handler_id.py +1 -1
  181. cosmotech_api/models/run_template_orchestrator.py +1 -1
  182. cosmotech_api/models/run_template_parameter.py +7 -7
  183. cosmotech_api/models/run_template_parameter_group.py +7 -7
  184. cosmotech_api/models/run_template_parameter_value.py +7 -7
  185. cosmotech_api/models/run_template_resource_sizing.py +7 -7
  186. cosmotech_api/models/run_template_step_source.py +1 -1
  187. cosmotech_api/models/runner.py +33 -14
  188. cosmotech_api/models/runner_access_control.py +7 -7
  189. cosmotech_api/models/runner_changed_parameter_value.py +7 -7
  190. cosmotech_api/models/runner_comparison_result.py +10 -10
  191. cosmotech_api/models/runner_create_request.py +154 -0
  192. cosmotech_api/models/runner_data_download_info.py +12 -9
  193. cosmotech_api/models/runner_data_download_job.py +7 -7
  194. cosmotech_api/models/runner_job_state.py +1 -1
  195. cosmotech_api/models/runner_last_run.py +7 -7
  196. cosmotech_api/models/runner_parent_last_run.py +7 -7
  197. cosmotech_api/models/runner_resource_sizing.py +7 -7
  198. cosmotech_api/models/runner_role.py +7 -7
  199. cosmotech_api/models/runner_root_last_run.py +7 -7
  200. cosmotech_api/models/runner_run_template_parameter_value.py +7 -7
  201. cosmotech_api/models/runner_security.py +10 -10
  202. cosmotech_api/models/runner_update_request.py +123 -0
  203. cosmotech_api/models/runner_validation_status.py +1 -1
  204. cosmotech_api/models/scenario.py +11 -11
  205. cosmotech_api/models/scenario_access_control.py +7 -7
  206. cosmotech_api/models/scenario_changed_parameter_value.py +7 -7
  207. cosmotech_api/models/scenario_comparison_result.py +10 -10
  208. cosmotech_api/models/scenario_data_download_info.py +7 -7
  209. cosmotech_api/models/scenario_data_download_job.py +7 -7
  210. cosmotech_api/models/scenario_job_state.py +1 -1
  211. cosmotech_api/models/scenario_last_run.py +7 -7
  212. cosmotech_api/models/scenario_resource_sizing.py +7 -7
  213. cosmotech_api/models/scenario_role.py +7 -7
  214. cosmotech_api/models/scenario_run.py +13 -13
  215. cosmotech_api/models/scenario_run_container.py +10 -10
  216. cosmotech_api/models/scenario_run_container_artifact.py +7 -7
  217. cosmotech_api/models/scenario_run_container_logs.py +7 -7
  218. cosmotech_api/models/scenario_run_logs.py +10 -10
  219. cosmotech_api/models/scenario_run_resource_requested.py +7 -7
  220. cosmotech_api/models/scenario_run_search.py +7 -7
  221. cosmotech_api/models/scenario_run_search_state.py +1 -1
  222. cosmotech_api/models/scenario_run_start_containers.py +10 -10
  223. cosmotech_api/models/scenario_run_state.py +1 -1
  224. cosmotech_api/models/scenario_run_status.py +10 -10
  225. cosmotech_api/models/scenario_run_status_node.py +7 -7
  226. cosmotech_api/models/scenario_run_template_parameter_value.py +7 -7
  227. cosmotech_api/models/scenario_security.py +10 -10
  228. cosmotech_api/models/scenario_validation_status.py +1 -1
  229. cosmotech_api/models/send_run_data_request.py +7 -7
  230. cosmotech_api/models/solution.py +17 -17
  231. cosmotech_api/models/solution_access_control.py +7 -7
  232. cosmotech_api/models/solution_create_request.py +143 -0
  233. cosmotech_api/models/solution_role.py +7 -7
  234. cosmotech_api/models/solution_security.py +10 -10
  235. cosmotech_api/models/solution_update_request.py +107 -0
  236. cosmotech_api/models/source_info.py +7 -7
  237. cosmotech_api/models/sub_dataset_graph_query.py +7 -7
  238. cosmotech_api/models/twin_graph_batch_result.py +7 -7
  239. cosmotech_api/models/twin_graph_hash.py +7 -7
  240. cosmotech_api/models/twin_graph_query.py +7 -7
  241. cosmotech_api/models/twincache_status_enum.py +1 -1
  242. cosmotech_api/models/validator.py +7 -7
  243. cosmotech_api/models/workspace.py +8 -8
  244. cosmotech_api/models/workspace_access_control.py +7 -7
  245. cosmotech_api/models/workspace_create_request.py +117 -0
  246. cosmotech_api/models/workspace_file.py +7 -7
  247. cosmotech_api/models/workspace_role.py +7 -7
  248. cosmotech_api/models/workspace_secret.py +11 -13
  249. cosmotech_api/models/workspace_security.py +10 -10
  250. cosmotech_api/models/workspace_solution.py +7 -7
  251. cosmotech_api/models/workspace_update_request.py +109 -0
  252. cosmotech_api/models/workspace_web_app.py +7 -7
  253. cosmotech_api/rest.py +3 -1
  254. {cosmotech_api-3.2.6.dev0.dist-info → cosmotech_api-3.3.4.dist-info}/METADATA +13 -5
  255. cosmotech_api-3.3.4.dist-info/RECORD +273 -0
  256. {cosmotech_api-3.2.6.dev0.dist-info → cosmotech_api-3.3.4.dist-info}/WHEEL +1 -1
  257. cosmotech_api-3.2.6.dev0.dist-info/RECORD +0 -262
  258. {cosmotech_api-3.2.6.dev0.dist-info → cosmotech_api-3.3.4.dist-info}/LICENSE +0 -0
  259. {cosmotech_api-3.2.6.dev0.dist-info → cosmotech_api-3.3.4.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: 4.0.0-onprem.7
8
+ The version of the OpenAPI document: 3.3.4
9
9
  Contact: platform@cosmotech.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -18,12 +18,13 @@ from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
20
  from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr
21
- from typing import Optional, Union
21
+ from typing import List, Optional, 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
25
  from cosmotech_api.models.workspace_file import WorkspaceFile
26
26
  from cosmotech_api.models.workspace_role import WorkspaceRole
27
+ from cosmotech_api.models.workspace_secret import WorkspaceSecret
27
28
  from cosmotech_api.models.workspace_security import WorkspaceSecurity
28
29
 
29
30
  from cosmotech_api.api_client import ApiClient, RequestSerialized
@@ -285,7 +286,7 @@ class WorkspaceApi:
285
286
  _query_params: List[Tuple[str, str]] = []
286
287
  _header_params: Dict[str, Optional[str]] = _headers or {}
287
288
  _form_params: List[Tuple[str, str]] = []
288
- _files: Dict[str, str] = {}
289
+ _files: Dict[str, Union[str, bytes]] = {}
289
290
  _body_params: Optional[bytes] = None
290
291
 
291
292
  # process the path parameters
@@ -302,12 +303,309 @@ class WorkspaceApi:
302
303
 
303
304
 
304
305
  # set the HTTP header `Accept`
305
- _header_params['Accept'] = self.api_client.select_header_accept(
306
- [
307
- 'application/json'
306
+ if 'Accept' not in _header_params:
307
+ _header_params['Accept'] = self.api_client.select_header_accept(
308
+ [
309
+ 'application/json'
310
+ ]
311
+ )
312
+
313
+ # set the HTTP header `Content-Type`
314
+ if _content_type:
315
+ _header_params['Content-Type'] = _content_type
316
+ else:
317
+ _default_content_type = (
318
+ self.api_client.select_header_content_type(
319
+ [
320
+ 'application/json',
321
+ 'application/yaml'
322
+ ]
323
+ )
324
+ )
325
+ if _default_content_type is not None:
326
+ _header_params['Content-Type'] = _default_content_type
327
+
328
+ # authentication setting
329
+ _auth_settings: List[str] = [
330
+ 'oAuth2AuthCode'
331
+ ]
332
+
333
+ return self.api_client.param_serialize(
334
+ method='POST',
335
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/access',
336
+ path_params=_path_params,
337
+ query_params=_query_params,
338
+ header_params=_header_params,
339
+ body=_body_params,
340
+ post_params=_form_params,
341
+ files=_files,
342
+ auth_settings=_auth_settings,
343
+ collection_formats=_collection_formats,
344
+ _host=_host,
345
+ _request_auth=_request_auth
346
+ )
347
+
348
+
349
+
350
+
351
+ @validate_call
352
+ def create_secret(
353
+ self,
354
+ organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
355
+ workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
356
+ workspace_secret: Annotated[WorkspaceSecret, Field(description="the definition of the secret")],
357
+ _request_timeout: Union[
358
+ None,
359
+ Annotated[StrictFloat, Field(gt=0)],
360
+ Tuple[
361
+ Annotated[StrictFloat, Field(gt=0)],
362
+ Annotated[StrictFloat, Field(gt=0)]
363
+ ]
364
+ ] = None,
365
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
366
+ _content_type: Optional[StrictStr] = None,
367
+ _headers: Optional[Dict[StrictStr, Any]] = None,
368
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
369
+ ) -> None:
370
+ """Create a secret for the Workspace
371
+
372
+
373
+ :param organization_id: the Organization identifier (required)
374
+ :type organization_id: str
375
+ :param workspace_id: the Workspace identifier (required)
376
+ :type workspace_id: str
377
+ :param workspace_secret: the definition of the secret (required)
378
+ :type workspace_secret: WorkspaceSecret
379
+ :param _request_timeout: timeout setting for this request. If one
380
+ number provided, it will be total request
381
+ timeout. It can also be a pair (tuple) of
382
+ (connection, read) timeouts.
383
+ :type _request_timeout: int, tuple(int, int), optional
384
+ :param _request_auth: set to override the auth_settings for an a single
385
+ request; this effectively ignores the
386
+ authentication in the spec for a single request.
387
+ :type _request_auth: dict, optional
388
+ :param _content_type: force content-type for the request.
389
+ :type _content_type: str, Optional
390
+ :param _headers: set to override the headers for a single
391
+ request; this effectively ignores the headers
392
+ in the spec for a single request.
393
+ :type _headers: dict, optional
394
+ :param _host_index: set to override the host_index for a single
395
+ request; this effectively ignores the host_index
396
+ in the spec for a single request.
397
+ :type _host_index: int, optional
398
+ :return: Returns the result object.
399
+ """ # noqa: E501
400
+
401
+ _param = self._create_secret_serialize(
402
+ organization_id=organization_id,
403
+ workspace_id=workspace_id,
404
+ workspace_secret=workspace_secret,
405
+ _request_auth=_request_auth,
406
+ _content_type=_content_type,
407
+ _headers=_headers,
408
+ _host_index=_host_index
409
+ )
410
+
411
+ _response_types_map: Dict[str, Optional[str]] = {
412
+ '201': None,
413
+ '404': None,
414
+ }
415
+ response_data = self.api_client.call_api(
416
+ *_param,
417
+ _request_timeout=_request_timeout
418
+ )
419
+ response_data.read()
420
+ return self.api_client.response_deserialize(
421
+ response_data=response_data,
422
+ response_types_map=_response_types_map,
423
+ ).data
424
+
425
+
426
+ @validate_call
427
+ def create_secret_with_http_info(
428
+ self,
429
+ organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
430
+ workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
431
+ workspace_secret: Annotated[WorkspaceSecret, Field(description="the definition of the secret")],
432
+ _request_timeout: Union[
433
+ None,
434
+ Annotated[StrictFloat, Field(gt=0)],
435
+ Tuple[
436
+ Annotated[StrictFloat, Field(gt=0)],
437
+ Annotated[StrictFloat, Field(gt=0)]
438
+ ]
439
+ ] = None,
440
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
441
+ _content_type: Optional[StrictStr] = None,
442
+ _headers: Optional[Dict[StrictStr, Any]] = None,
443
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
444
+ ) -> ApiResponse[None]:
445
+ """Create a secret for the Workspace
446
+
447
+
448
+ :param organization_id: the Organization identifier (required)
449
+ :type organization_id: str
450
+ :param workspace_id: the Workspace identifier (required)
451
+ :type workspace_id: str
452
+ :param workspace_secret: the definition of the secret (required)
453
+ :type workspace_secret: WorkspaceSecret
454
+ :param _request_timeout: timeout setting for this request. If one
455
+ number provided, it will be total request
456
+ timeout. It can also be a pair (tuple) of
457
+ (connection, read) timeouts.
458
+ :type _request_timeout: int, tuple(int, int), optional
459
+ :param _request_auth: set to override the auth_settings for an a single
460
+ request; this effectively ignores the
461
+ authentication in the spec for a single request.
462
+ :type _request_auth: dict, optional
463
+ :param _content_type: force content-type for the request.
464
+ :type _content_type: str, Optional
465
+ :param _headers: set to override the headers for a single
466
+ request; this effectively ignores the headers
467
+ in the spec for a single request.
468
+ :type _headers: dict, optional
469
+ :param _host_index: set to override the host_index for a single
470
+ request; this effectively ignores the host_index
471
+ in the spec for a single request.
472
+ :type _host_index: int, optional
473
+ :return: Returns the result object.
474
+ """ # noqa: E501
475
+
476
+ _param = self._create_secret_serialize(
477
+ organization_id=organization_id,
478
+ workspace_id=workspace_id,
479
+ workspace_secret=workspace_secret,
480
+ _request_auth=_request_auth,
481
+ _content_type=_content_type,
482
+ _headers=_headers,
483
+ _host_index=_host_index
484
+ )
485
+
486
+ _response_types_map: Dict[str, Optional[str]] = {
487
+ '201': None,
488
+ '404': None,
489
+ }
490
+ response_data = self.api_client.call_api(
491
+ *_param,
492
+ _request_timeout=_request_timeout
493
+ )
494
+ response_data.read()
495
+ return self.api_client.response_deserialize(
496
+ response_data=response_data,
497
+ response_types_map=_response_types_map,
498
+ )
499
+
500
+
501
+ @validate_call
502
+ def create_secret_without_preload_content(
503
+ self,
504
+ organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
505
+ workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
506
+ workspace_secret: Annotated[WorkspaceSecret, Field(description="the definition of the secret")],
507
+ _request_timeout: Union[
508
+ None,
509
+ Annotated[StrictFloat, Field(gt=0)],
510
+ Tuple[
511
+ Annotated[StrictFloat, Field(gt=0)],
512
+ Annotated[StrictFloat, Field(gt=0)]
308
513
  ]
514
+ ] = None,
515
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
516
+ _content_type: Optional[StrictStr] = None,
517
+ _headers: Optional[Dict[StrictStr, Any]] = None,
518
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
519
+ ) -> RESTResponseType:
520
+ """Create a secret for the Workspace
521
+
522
+
523
+ :param organization_id: the Organization identifier (required)
524
+ :type organization_id: str
525
+ :param workspace_id: the Workspace identifier (required)
526
+ :type workspace_id: str
527
+ :param workspace_secret: the definition of the secret (required)
528
+ :type workspace_secret: WorkspaceSecret
529
+ :param _request_timeout: timeout setting for this request. If one
530
+ number provided, it will be total request
531
+ timeout. It can also be a pair (tuple) of
532
+ (connection, read) timeouts.
533
+ :type _request_timeout: int, tuple(int, int), optional
534
+ :param _request_auth: set to override the auth_settings for an a single
535
+ request; this effectively ignores the
536
+ authentication in the spec for a single request.
537
+ :type _request_auth: dict, optional
538
+ :param _content_type: force content-type for the request.
539
+ :type _content_type: str, Optional
540
+ :param _headers: set to override the headers for a single
541
+ request; this effectively ignores the headers
542
+ in the spec for a single request.
543
+ :type _headers: dict, optional
544
+ :param _host_index: set to override the host_index for a single
545
+ request; this effectively ignores the host_index
546
+ in the spec for a single request.
547
+ :type _host_index: int, optional
548
+ :return: Returns the result object.
549
+ """ # noqa: E501
550
+
551
+ _param = self._create_secret_serialize(
552
+ organization_id=organization_id,
553
+ workspace_id=workspace_id,
554
+ workspace_secret=workspace_secret,
555
+ _request_auth=_request_auth,
556
+ _content_type=_content_type,
557
+ _headers=_headers,
558
+ _host_index=_host_index
309
559
  )
310
560
 
561
+ _response_types_map: Dict[str, Optional[str]] = {
562
+ '201': None,
563
+ '404': None,
564
+ }
565
+ response_data = self.api_client.call_api(
566
+ *_param,
567
+ _request_timeout=_request_timeout
568
+ )
569
+ return response_data.response
570
+
571
+
572
+ def _create_secret_serialize(
573
+ self,
574
+ organization_id,
575
+ workspace_id,
576
+ workspace_secret,
577
+ _request_auth,
578
+ _content_type,
579
+ _headers,
580
+ _host_index,
581
+ ) -> RequestSerialized:
582
+
583
+ _host = None
584
+
585
+ _collection_formats: Dict[str, str] = {
586
+ }
587
+
588
+ _path_params: Dict[str, str] = {}
589
+ _query_params: List[Tuple[str, str]] = []
590
+ _header_params: Dict[str, Optional[str]] = _headers or {}
591
+ _form_params: List[Tuple[str, str]] = []
592
+ _files: Dict[str, Union[str, bytes]] = {}
593
+ _body_params: Optional[bytes] = None
594
+
595
+ # process the path parameters
596
+ if organization_id is not None:
597
+ _path_params['organization_id'] = organization_id
598
+ if workspace_id is not None:
599
+ _path_params['workspace_id'] = workspace_id
600
+ # process the query parameters
601
+ # process the header parameters
602
+ # process the form parameters
603
+ # process the body parameter
604
+ if workspace_secret is not None:
605
+ _body_params = workspace_secret
606
+
607
+
608
+
311
609
  # set the HTTP header `Content-Type`
312
610
  if _content_type:
313
611
  _header_params['Content-Type'] = _content_type
@@ -330,7 +628,7 @@ class WorkspaceApi:
330
628
 
331
629
  return self.api_client.param_serialize(
332
630
  method='POST',
333
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/security/access',
631
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/secret',
334
632
  path_params=_path_params,
335
633
  query_params=_query_params,
336
634
  header_params=_header_params,
@@ -574,7 +872,7 @@ class WorkspaceApi:
574
872
  _query_params: List[Tuple[str, str]] = []
575
873
  _header_params: Dict[str, Optional[str]] = _headers or {}
576
874
  _form_params: List[Tuple[str, str]] = []
577
- _files: Dict[str, str] = {}
875
+ _files: Dict[str, Union[str, bytes]] = {}
578
876
  _body_params: Optional[bytes] = None
579
877
 
580
878
  # process the path parameters
@@ -589,11 +887,12 @@ class WorkspaceApi:
589
887
 
590
888
 
591
889
  # set the HTTP header `Accept`
592
- _header_params['Accept'] = self.api_client.select_header_accept(
593
- [
594
- 'application/json'
595
- ]
596
- )
890
+ if 'Accept' not in _header_params:
891
+ _header_params['Accept'] = self.api_client.select_header_accept(
892
+ [
893
+ 'application/json'
894
+ ]
895
+ )
597
896
 
598
897
  # set the HTTP header `Content-Type`
599
898
  if _content_type:
@@ -861,7 +1160,7 @@ class WorkspaceApi:
861
1160
  _query_params: List[Tuple[str, str]] = []
862
1161
  _header_params: Dict[str, Optional[str]] = _headers or {}
863
1162
  _form_params: List[Tuple[str, str]] = []
864
- _files: Dict[str, str] = {}
1163
+ _files: Dict[str, Union[str, bytes]] = {}
865
1164
  _body_params: Optional[bytes] = None
866
1165
 
867
1166
  # process the path parameters
@@ -1131,7 +1430,7 @@ class WorkspaceApi:
1131
1430
  _query_params: List[Tuple[str, str]] = []
1132
1431
  _header_params: Dict[str, Optional[str]] = _headers or {}
1133
1432
  _form_params: List[Tuple[str, str]] = []
1134
- _files: Dict[str, str] = {}
1433
+ _files: Dict[str, Union[str, bytes]] = {}
1135
1434
  _body_params: Optional[bytes] = None
1136
1435
 
1137
1436
  # process the path parameters
@@ -1411,7 +1710,7 @@ class WorkspaceApi:
1411
1710
  _query_params: List[Tuple[str, str]] = []
1412
1711
  _header_params: Dict[str, Optional[str]] = _headers or {}
1413
1712
  _form_params: List[Tuple[str, str]] = []
1414
- _files: Dict[str, str] = {}
1713
+ _files: Dict[str, Union[str, bytes]] = {}
1415
1714
  _body_params: Optional[bytes] = None
1416
1715
 
1417
1716
  # process the path parameters
@@ -1695,7 +1994,7 @@ class WorkspaceApi:
1695
1994
  _query_params: List[Tuple[str, str]] = []
1696
1995
  _header_params: Dict[str, Optional[str]] = _headers or {}
1697
1996
  _form_params: List[Tuple[str, str]] = []
1698
- _files: Dict[str, str] = {}
1997
+ _files: Dict[str, Union[str, bytes]] = {}
1699
1998
  _body_params: Optional[bytes] = None
1700
1999
 
1701
2000
  # process the path parameters
@@ -1714,11 +2013,12 @@ class WorkspaceApi:
1714
2013
 
1715
2014
 
1716
2015
  # set the HTTP header `Accept`
1717
- _header_params['Accept'] = self.api_client.select_header_accept(
1718
- [
1719
- 'application/octet-stream'
1720
- ]
1721
- )
2016
+ if 'Accept' not in _header_params:
2017
+ _header_params['Accept'] = self.api_client.select_header_accept(
2018
+ [
2019
+ 'application/octet-stream'
2020
+ ]
2021
+ )
1722
2022
 
1723
2023
 
1724
2024
  # authentication setting
@@ -1972,7 +2272,7 @@ class WorkspaceApi:
1972
2272
  _query_params: List[Tuple[str, str]] = []
1973
2273
  _header_params: Dict[str, Optional[str]] = _headers or {}
1974
2274
  _form_params: List[Tuple[str, str]] = []
1975
- _files: Dict[str, str] = {}
2275
+ _files: Dict[str, Union[str, bytes]] = {}
1976
2276
  _body_params: Optional[bytes] = None
1977
2277
 
1978
2278
  # process the path parameters
@@ -1987,11 +2287,12 @@ class WorkspaceApi:
1987
2287
 
1988
2288
 
1989
2289
  # set the HTTP header `Accept`
1990
- _header_params['Accept'] = self.api_client.select_header_accept(
1991
- [
1992
- 'application/json'
1993
- ]
1994
- )
2290
+ if 'Accept' not in _header_params:
2291
+ _header_params['Accept'] = self.api_client.select_header_accept(
2292
+ [
2293
+ 'application/json'
2294
+ ]
2295
+ )
1995
2296
 
1996
2297
 
1997
2298
  # authentication setting
@@ -2021,7 +2322,7 @@ class WorkspaceApi:
2021
2322
  def find_all_workspaces(
2022
2323
  self,
2023
2324
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2024
- page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
2325
+ page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
2025
2326
  size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
2026
2327
  _request_timeout: Union[
2027
2328
  None,
@@ -2041,7 +2342,7 @@ class WorkspaceApi:
2041
2342
 
2042
2343
  :param organization_id: the Organization identifier (required)
2043
2344
  :type organization_id: str
2044
- :param page: page number to query (first page is at index 0)
2345
+ :param page: page number to query
2045
2346
  :type page: int
2046
2347
  :param size: amount of result by page
2047
2348
  :type size: int
@@ -2095,7 +2396,7 @@ class WorkspaceApi:
2095
2396
  def find_all_workspaces_with_http_info(
2096
2397
  self,
2097
2398
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2098
- page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
2399
+ page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
2099
2400
  size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
2100
2401
  _request_timeout: Union[
2101
2402
  None,
@@ -2115,7 +2416,7 @@ class WorkspaceApi:
2115
2416
 
2116
2417
  :param organization_id: the Organization identifier (required)
2117
2418
  :type organization_id: str
2118
- :param page: page number to query (first page is at index 0)
2419
+ :param page: page number to query
2119
2420
  :type page: int
2120
2421
  :param size: amount of result by page
2121
2422
  :type size: int
@@ -2169,7 +2470,7 @@ class WorkspaceApi:
2169
2470
  def find_all_workspaces_without_preload_content(
2170
2471
  self,
2171
2472
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2172
- page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
2473
+ page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
2173
2474
  size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
2174
2475
  _request_timeout: Union[
2175
2476
  None,
@@ -2189,7 +2490,7 @@ class WorkspaceApi:
2189
2490
 
2190
2491
  :param organization_id: the Organization identifier (required)
2191
2492
  :type organization_id: str
2192
- :param page: page number to query (first page is at index 0)
2493
+ :param page: page number to query
2193
2494
  :type page: int
2194
2495
  :param size: amount of result by page
2195
2496
  :type size: int
@@ -2255,7 +2556,7 @@ class WorkspaceApi:
2255
2556
  _query_params: List[Tuple[str, str]] = []
2256
2557
  _header_params: Dict[str, Optional[str]] = _headers or {}
2257
2558
  _form_params: List[Tuple[str, str]] = []
2258
- _files: Dict[str, str] = {}
2559
+ _files: Dict[str, Union[str, bytes]] = {}
2259
2560
  _body_params: Optional[bytes] = None
2260
2561
 
2261
2562
  # process the path parameters
@@ -2276,11 +2577,12 @@ class WorkspaceApi:
2276
2577
 
2277
2578
 
2278
2579
  # set the HTTP header `Accept`
2279
- _header_params['Accept'] = self.api_client.select_header_accept(
2280
- [
2281
- 'application/json'
2282
- ]
2283
- )
2580
+ if 'Accept' not in _header_params:
2581
+ _header_params['Accept'] = self.api_client.select_header_accept(
2582
+ [
2583
+ 'application/json'
2584
+ ]
2585
+ )
2284
2586
 
2285
2587
 
2286
2588
  # authentication setting
@@ -2534,7 +2836,7 @@ class WorkspaceApi:
2534
2836
  _query_params: List[Tuple[str, str]] = []
2535
2837
  _header_params: Dict[str, Optional[str]] = _headers or {}
2536
2838
  _form_params: List[Tuple[str, str]] = []
2537
- _files: Dict[str, str] = {}
2839
+ _files: Dict[str, Union[str, bytes]] = {}
2538
2840
  _body_params: Optional[bytes] = None
2539
2841
 
2540
2842
  # process the path parameters
@@ -2549,11 +2851,12 @@ class WorkspaceApi:
2549
2851
 
2550
2852
 
2551
2853
  # set the HTTP header `Accept`
2552
- _header_params['Accept'] = self.api_client.select_header_accept(
2553
- [
2554
- 'application/json'
2555
- ]
2556
- )
2854
+ if 'Accept' not in _header_params:
2855
+ _header_params['Accept'] = self.api_client.select_header_accept(
2856
+ [
2857
+ 'application/json'
2858
+ ]
2859
+ )
2557
2860
 
2558
2861
 
2559
2862
  # authentication setting
@@ -2820,7 +3123,7 @@ class WorkspaceApi:
2820
3123
  _query_params: List[Tuple[str, str]] = []
2821
3124
  _header_params: Dict[str, Optional[str]] = _headers or {}
2822
3125
  _form_params: List[Tuple[str, str]] = []
2823
- _files: Dict[str, str] = {}
3126
+ _files: Dict[str, Union[str, bytes]] = {}
2824
3127
  _body_params: Optional[bytes] = None
2825
3128
 
2826
3129
  # process the path parameters
@@ -2837,11 +3140,12 @@ class WorkspaceApi:
2837
3140
 
2838
3141
 
2839
3142
  # set the HTTP header `Accept`
2840
- _header_params['Accept'] = self.api_client.select_header_accept(
2841
- [
2842
- 'application/json'
2843
- ]
2844
- )
3143
+ if 'Accept' not in _header_params:
3144
+ _header_params['Accept'] = self.api_client.select_header_accept(
3145
+ [
3146
+ 'application/json'
3147
+ ]
3148
+ )
2845
3149
 
2846
3150
 
2847
3151
  # authentication setting
@@ -3105,7 +3409,7 @@ class WorkspaceApi:
3105
3409
  _query_params: List[Tuple[str, str]] = []
3106
3410
  _header_params: Dict[str, Optional[str]] = _headers or {}
3107
3411
  _form_params: List[Tuple[str, str]] = []
3108
- _files: Dict[str, str] = {}
3412
+ _files: Dict[str, Union[str, bytes]] = {}
3109
3413
  _body_params: Optional[bytes] = None
3110
3414
 
3111
3415
  # process the path parameters
@@ -3122,11 +3426,12 @@ class WorkspaceApi:
3122
3426
 
3123
3427
 
3124
3428
  # set the HTTP header `Accept`
3125
- _header_params['Accept'] = self.api_client.select_header_accept(
3126
- [
3127
- 'application/json'
3128
- ]
3129
- )
3429
+ if 'Accept' not in _header_params:
3430
+ _header_params['Accept'] = self.api_client.select_header_accept(
3431
+ [
3432
+ 'application/json'
3433
+ ]
3434
+ )
3130
3435
 
3131
3436
 
3132
3437
  # authentication setting
@@ -3380,7 +3685,7 @@ class WorkspaceApi:
3380
3685
  _query_params: List[Tuple[str, str]] = []
3381
3686
  _header_params: Dict[str, Optional[str]] = _headers or {}
3382
3687
  _form_params: List[Tuple[str, str]] = []
3383
- _files: Dict[str, str] = {}
3688
+ _files: Dict[str, Union[str, bytes]] = {}
3384
3689
  _body_params: Optional[bytes] = None
3385
3690
 
3386
3691
  # process the path parameters
@@ -3395,11 +3700,12 @@ class WorkspaceApi:
3395
3700
 
3396
3701
 
3397
3702
  # set the HTTP header `Accept`
3398
- _header_params['Accept'] = self.api_client.select_header_accept(
3399
- [
3400
- 'application/json'
3401
- ]
3402
- )
3703
+ if 'Accept' not in _header_params:
3704
+ _header_params['Accept'] = self.api_client.select_header_accept(
3705
+ [
3706
+ 'application/json'
3707
+ ]
3708
+ )
3403
3709
 
3404
3710
 
3405
3711
  # authentication setting
@@ -3653,7 +3959,7 @@ class WorkspaceApi:
3653
3959
  _query_params: List[Tuple[str, str]] = []
3654
3960
  _header_params: Dict[str, Optional[str]] = _headers or {}
3655
3961
  _form_params: List[Tuple[str, str]] = []
3656
- _files: Dict[str, str] = {}
3962
+ _files: Dict[str, Union[str, bytes]] = {}
3657
3963
  _body_params: Optional[bytes] = None
3658
3964
 
3659
3965
  # process the path parameters
@@ -3668,11 +3974,12 @@ class WorkspaceApi:
3668
3974
 
3669
3975
 
3670
3976
  # set the HTTP header `Accept`
3671
- _header_params['Accept'] = self.api_client.select_header_accept(
3672
- [
3673
- 'application/json'
3674
- ]
3675
- )
3977
+ if 'Accept' not in _header_params:
3978
+ _header_params['Accept'] = self.api_client.select_header_accept(
3979
+ [
3980
+ 'application/json'
3981
+ ]
3982
+ )
3676
3983
 
3677
3984
 
3678
3985
  # authentication setting
@@ -3942,7 +4249,7 @@ class WorkspaceApi:
3942
4249
  _query_params: List[Tuple[str, str]] = []
3943
4250
  _header_params: Dict[str, Optional[str]] = _headers or {}
3944
4251
  _form_params: List[Tuple[str, str]] = []
3945
- _files: Dict[str, str] = {}
4252
+ _files: Dict[str, Union[str, bytes]] = {}
3946
4253
  _body_params: Optional[bytes] = None
3947
4254
 
3948
4255
  # process the path parameters
@@ -3961,11 +4268,12 @@ class WorkspaceApi:
3961
4268
 
3962
4269
 
3963
4270
  # set the HTTP header `Accept`
3964
- _header_params['Accept'] = self.api_client.select_header_accept(
3965
- [
3966
- 'application/json'
3967
- ]
3968
- )
4271
+ if 'Accept' not in _header_params:
4272
+ _header_params['Accept'] = self.api_client.select_header_accept(
4273
+ [
4274
+ 'application/json'
4275
+ ]
4276
+ )
3969
4277
 
3970
4278
 
3971
4279
  # authentication setting
@@ -4232,7 +4540,7 @@ class WorkspaceApi:
4232
4540
  _query_params: List[Tuple[str, str]] = []
4233
4541
  _header_params: Dict[str, Optional[str]] = _headers or {}
4234
4542
  _form_params: List[Tuple[str, str]] = []
4235
- _files: Dict[str, str] = {}
4543
+ _files: Dict[str, Union[str, bytes]] = {}
4236
4544
  _body_params: Optional[bytes] = None
4237
4545
 
4238
4546
  # process the path parameters
@@ -4514,7 +4822,7 @@ class WorkspaceApi:
4514
4822
  _query_params: List[Tuple[str, str]] = []
4515
4823
  _header_params: Dict[str, Optional[str]] = _headers or {}
4516
4824
  _form_params: List[Tuple[str, str]] = []
4517
- _files: Dict[str, str] = {}
4825
+ _files: Dict[str, Union[str, bytes]] = {}
4518
4826
  _body_params: Optional[bytes] = None
4519
4827
 
4520
4828
  # process the path parameters
@@ -4531,11 +4839,12 @@ class WorkspaceApi:
4531
4839
 
4532
4840
 
4533
4841
  # set the HTTP header `Accept`
4534
- _header_params['Accept'] = self.api_client.select_header_accept(
4535
- [
4536
- 'application/json'
4537
- ]
4538
- )
4842
+ if 'Accept' not in _header_params:
4843
+ _header_params['Accept'] = self.api_client.select_header_accept(
4844
+ [
4845
+ 'application/json'
4846
+ ]
4847
+ )
4539
4848
 
4540
4849
  # set the HTTP header `Content-Type`
4541
4850
  if _content_type:
@@ -4819,7 +5128,7 @@ class WorkspaceApi:
4819
5128
  _query_params: List[Tuple[str, str]] = []
4820
5129
  _header_params: Dict[str, Optional[str]] = _headers or {}
4821
5130
  _form_params: List[Tuple[str, str]] = []
4822
- _files: Dict[str, str] = {}
5131
+ _files: Dict[str, Union[str, bytes]] = {}
4823
5132
  _body_params: Optional[bytes] = None
4824
5133
 
4825
5134
  # process the path parameters
@@ -4838,11 +5147,12 @@ class WorkspaceApi:
4838
5147
 
4839
5148
 
4840
5149
  # set the HTTP header `Accept`
4841
- _header_params['Accept'] = self.api_client.select_header_accept(
4842
- [
4843
- 'application/json'
4844
- ]
4845
- )
5150
+ if 'Accept' not in _header_params:
5151
+ _header_params['Accept'] = self.api_client.select_header_accept(
5152
+ [
5153
+ 'application/json'
5154
+ ]
5155
+ )
4846
5156
 
4847
5157
 
4848
5158
  # authentication setting
@@ -4873,7 +5183,7 @@ class WorkspaceApi:
4873
5183
  self,
4874
5184
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4875
5185
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4876
- workspace: Annotated[Workspace, Field(description="The new Workspace details. This endpoint can't be used to update security")],
5186
+ workspace: Annotated[Workspace, Field(description="The new Workspace details. This endpoint can't be used to update : - id - ownerId - security ")],
4877
5187
  _request_timeout: Union[
4878
5188
  None,
4879
5189
  Annotated[StrictFloat, Field(gt=0)],
@@ -4894,7 +5204,7 @@ class WorkspaceApi:
4894
5204
  :type organization_id: str
4895
5205
  :param workspace_id: the Workspace identifier (required)
4896
5206
  :type workspace_id: str
4897
- :param workspace: The new Workspace details. This endpoint can't be used to update security (required)
5207
+ :param workspace: The new Workspace details. This endpoint can't be used to update : - id - ownerId - security (required)
4898
5208
  :type workspace: Workspace
4899
5209
  :param _request_timeout: timeout setting for this request. If one
4900
5210
  number provided, it will be total request
@@ -4949,7 +5259,7 @@ class WorkspaceApi:
4949
5259
  self,
4950
5260
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4951
5261
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4952
- workspace: Annotated[Workspace, Field(description="The new Workspace details. This endpoint can't be used to update security")],
5262
+ workspace: Annotated[Workspace, Field(description="The new Workspace details. This endpoint can't be used to update : - id - ownerId - security ")],
4953
5263
  _request_timeout: Union[
4954
5264
  None,
4955
5265
  Annotated[StrictFloat, Field(gt=0)],
@@ -4970,7 +5280,7 @@ class WorkspaceApi:
4970
5280
  :type organization_id: str
4971
5281
  :param workspace_id: the Workspace identifier (required)
4972
5282
  :type workspace_id: str
4973
- :param workspace: The new Workspace details. This endpoint can't be used to update security (required)
5283
+ :param workspace: The new Workspace details. This endpoint can't be used to update : - id - ownerId - security (required)
4974
5284
  :type workspace: Workspace
4975
5285
  :param _request_timeout: timeout setting for this request. If one
4976
5286
  number provided, it will be total request
@@ -5025,7 +5335,7 @@ class WorkspaceApi:
5025
5335
  self,
5026
5336
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
5027
5337
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
5028
- workspace: Annotated[Workspace, Field(description="The new Workspace details. This endpoint can't be used to update security")],
5338
+ workspace: Annotated[Workspace, Field(description="The new Workspace details. This endpoint can't be used to update : - id - ownerId - security ")],
5029
5339
  _request_timeout: Union[
5030
5340
  None,
5031
5341
  Annotated[StrictFloat, Field(gt=0)],
@@ -5046,7 +5356,7 @@ class WorkspaceApi:
5046
5356
  :type organization_id: str
5047
5357
  :param workspace_id: the Workspace identifier (required)
5048
5358
  :type workspace_id: str
5049
- :param workspace: The new Workspace details. This endpoint can't be used to update security (required)
5359
+ :param workspace: The new Workspace details. This endpoint can't be used to update : - id - ownerId - security (required)
5050
5360
  :type workspace: Workspace
5051
5361
  :param _request_timeout: timeout setting for this request. If one
5052
5362
  number provided, it will be total request
@@ -5112,7 +5422,7 @@ class WorkspaceApi:
5112
5422
  _query_params: List[Tuple[str, str]] = []
5113
5423
  _header_params: Dict[str, Optional[str]] = _headers or {}
5114
5424
  _form_params: List[Tuple[str, str]] = []
5115
- _files: Dict[str, str] = {}
5425
+ _files: Dict[str, Union[str, bytes]] = {}
5116
5426
  _body_params: Optional[bytes] = None
5117
5427
 
5118
5428
  # process the path parameters
@@ -5129,11 +5439,12 @@ class WorkspaceApi:
5129
5439
 
5130
5440
 
5131
5441
  # set the HTTP header `Accept`
5132
- _header_params['Accept'] = self.api_client.select_header_accept(
5133
- [
5134
- 'application/json'
5135
- ]
5136
- )
5442
+ if 'Accept' not in _header_params:
5443
+ _header_params['Accept'] = self.api_client.select_header_accept(
5444
+ [
5445
+ 'application/json'
5446
+ ]
5447
+ )
5137
5448
 
5138
5449
  # set the HTTP header `Content-Type`
5139
5450
  if _content_type:
@@ -5427,7 +5738,7 @@ class WorkspaceApi:
5427
5738
  _query_params: List[Tuple[str, str]] = []
5428
5739
  _header_params: Dict[str, Optional[str]] = _headers or {}
5429
5740
  _form_params: List[Tuple[str, str]] = []
5430
- _files: Dict[str, str] = {}
5741
+ _files: Dict[str, Union[str, bytes]] = {}
5431
5742
  _body_params: Optional[bytes] = None
5432
5743
 
5433
5744
  # process the path parameters
@@ -5446,11 +5757,12 @@ class WorkspaceApi:
5446
5757
 
5447
5758
 
5448
5759
  # set the HTTP header `Accept`
5449
- _header_params['Accept'] = self.api_client.select_header_accept(
5450
- [
5451
- 'application/json'
5452
- ]
5453
- )
5760
+ if 'Accept' not in _header_params:
5761
+ _header_params['Accept'] = self.api_client.select_header_accept(
5762
+ [
5763
+ 'application/json'
5764
+ ]
5765
+ )
5454
5766
 
5455
5767
  # set the HTTP header `Content-Type`
5456
5768
  if _content_type:
@@ -5459,7 +5771,8 @@ class WorkspaceApi:
5459
5771
  _default_content_type = (
5460
5772
  self.api_client.select_header_content_type(
5461
5773
  [
5462
- 'application/json'
5774
+ 'application/json',
5775
+ 'application/yaml'
5463
5776
  ]
5464
5777
  )
5465
5778
  )
@@ -5756,7 +6069,7 @@ class WorkspaceApi:
5756
6069
  _query_params: List[Tuple[str, str]] = []
5757
6070
  _header_params: Dict[str, Optional[str]] = _headers or {}
5758
6071
  _form_params: List[Tuple[str, str]] = []
5759
- _files: Dict[str, str] = {}
6072
+ _files: Dict[str, Union[str, bytes]] = {}
5760
6073
  _body_params: Optional[bytes] = None
5761
6074
 
5762
6075
  # process the path parameters
@@ -5777,11 +6090,12 @@ class WorkspaceApi:
5777
6090
 
5778
6091
 
5779
6092
  # set the HTTP header `Accept`
5780
- _header_params['Accept'] = self.api_client.select_header_accept(
5781
- [
5782
- 'application/json'
5783
- ]
5784
- )
6093
+ if 'Accept' not in _header_params:
6094
+ _header_params['Accept'] = self.api_client.select_header_accept(
6095
+ [
6096
+ 'application/json'
6097
+ ]
6098
+ )
5785
6099
 
5786
6100
  # set the HTTP header `Content-Type`
5787
6101
  if _content_type: