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,14 +17,16 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
17
  from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
- from pydantic import Field, StrictInt, StrictStr
21
- from typing import Optional
20
+ from pydantic import Field, StrictInt, StrictStr, field_validator
21
+ from typing import List, Optional
22
22
  from typing_extensions import Annotated
23
+ from cosmotech_api.models.created_run import CreatedRun
23
24
  from cosmotech_api.models.runner import Runner
24
25
  from cosmotech_api.models.runner_access_control import RunnerAccessControl
25
- from cosmotech_api.models.runner_last_run import RunnerLastRun
26
+ from cosmotech_api.models.runner_create_request import RunnerCreateRequest
26
27
  from cosmotech_api.models.runner_role import RunnerRole
27
28
  from cosmotech_api.models.runner_security import RunnerSecurity
29
+ from cosmotech_api.models.runner_update_request import RunnerUpdateRequest
28
30
 
29
31
  from cosmotech_api.api_client import ApiClient, RequestSerialized
30
32
  from cosmotech_api.api_response import ApiResponse
@@ -45,12 +47,11 @@ class RunnerApi:
45
47
 
46
48
 
47
49
  @validate_call
48
- def add_runner_access_control(
50
+ def create_runner(
49
51
  self,
50
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
51
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
52
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
53
- runner_access_control: Annotated[RunnerAccessControl, Field(description="the new Runner security access to add.")],
52
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
53
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
54
+ runner_create_request: Annotated[RunnerCreateRequest, Field(description="the Runner to create")],
54
55
  _request_timeout: Union[
55
56
  None,
56
57
  Annotated[StrictFloat, Field(gt=0)],
@@ -63,18 +64,16 @@ class RunnerApi:
63
64
  _content_type: Optional[StrictStr] = None,
64
65
  _headers: Optional[Dict[StrictStr, Any]] = None,
65
66
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
66
- ) -> RunnerAccessControl:
67
- """Add a control access to the Runner
67
+ ) -> Runner:
68
+ """Create a new Runner
68
69
 
69
70
 
70
71
  :param organization_id: the Organization identifier (required)
71
72
  :type organization_id: str
72
73
  :param workspace_id: the Workspace identifier (required)
73
74
  :type workspace_id: str
74
- :param runner_id: the Runner identifier (required)
75
- :type runner_id: str
76
- :param runner_access_control: the new Runner security access to add. (required)
77
- :type runner_access_control: RunnerAccessControl
75
+ :param runner_create_request: the Runner to create (required)
76
+ :type runner_create_request: RunnerCreateRequest
78
77
  :param _request_timeout: timeout setting for this request. If one
79
78
  number provided, it will be total request
80
79
  timeout. It can also be a pair (tuple) of
@@ -97,11 +96,10 @@ class RunnerApi:
97
96
  :return: Returns the result object.
98
97
  """ # noqa: E501
99
98
 
100
- _param = self._add_runner_access_control_serialize(
99
+ _param = self._create_runner_serialize(
101
100
  organization_id=organization_id,
102
101
  workspace_id=workspace_id,
103
- runner_id=runner_id,
104
- runner_access_control=runner_access_control,
102
+ runner_create_request=runner_create_request,
105
103
  _request_auth=_request_auth,
106
104
  _content_type=_content_type,
107
105
  _headers=_headers,
@@ -109,8 +107,8 @@ class RunnerApi:
109
107
  )
110
108
 
111
109
  _response_types_map: Dict[str, Optional[str]] = {
112
- '201': "RunnerAccessControl",
113
- '404': None,
110
+ '201': "Runner",
111
+ '400': None,
114
112
  }
115
113
  response_data = self.api_client.call_api(
116
114
  *_param,
@@ -124,12 +122,11 @@ class RunnerApi:
124
122
 
125
123
 
126
124
  @validate_call
127
- def add_runner_access_control_with_http_info(
125
+ def create_runner_with_http_info(
128
126
  self,
129
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
130
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
131
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
132
- runner_access_control: Annotated[RunnerAccessControl, Field(description="the new Runner security access to add.")],
127
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
128
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
129
+ runner_create_request: Annotated[RunnerCreateRequest, Field(description="the Runner to create")],
133
130
  _request_timeout: Union[
134
131
  None,
135
132
  Annotated[StrictFloat, Field(gt=0)],
@@ -142,18 +139,16 @@ class RunnerApi:
142
139
  _content_type: Optional[StrictStr] = None,
143
140
  _headers: Optional[Dict[StrictStr, Any]] = None,
144
141
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
145
- ) -> ApiResponse[RunnerAccessControl]:
146
- """Add a control access to the Runner
142
+ ) -> ApiResponse[Runner]:
143
+ """Create a new Runner
147
144
 
148
145
 
149
146
  :param organization_id: the Organization identifier (required)
150
147
  :type organization_id: str
151
148
  :param workspace_id: the Workspace identifier (required)
152
149
  :type workspace_id: str
153
- :param runner_id: the Runner identifier (required)
154
- :type runner_id: str
155
- :param runner_access_control: the new Runner security access to add. (required)
156
- :type runner_access_control: RunnerAccessControl
150
+ :param runner_create_request: the Runner to create (required)
151
+ :type runner_create_request: RunnerCreateRequest
157
152
  :param _request_timeout: timeout setting for this request. If one
158
153
  number provided, it will be total request
159
154
  timeout. It can also be a pair (tuple) of
@@ -176,11 +171,10 @@ class RunnerApi:
176
171
  :return: Returns the result object.
177
172
  """ # noqa: E501
178
173
 
179
- _param = self._add_runner_access_control_serialize(
174
+ _param = self._create_runner_serialize(
180
175
  organization_id=organization_id,
181
176
  workspace_id=workspace_id,
182
- runner_id=runner_id,
183
- runner_access_control=runner_access_control,
177
+ runner_create_request=runner_create_request,
184
178
  _request_auth=_request_auth,
185
179
  _content_type=_content_type,
186
180
  _headers=_headers,
@@ -188,8 +182,8 @@ class RunnerApi:
188
182
  )
189
183
 
190
184
  _response_types_map: Dict[str, Optional[str]] = {
191
- '201': "RunnerAccessControl",
192
- '404': None,
185
+ '201': "Runner",
186
+ '400': None,
193
187
  }
194
188
  response_data = self.api_client.call_api(
195
189
  *_param,
@@ -203,12 +197,11 @@ class RunnerApi:
203
197
 
204
198
 
205
199
  @validate_call
206
- def add_runner_access_control_without_preload_content(
200
+ def create_runner_without_preload_content(
207
201
  self,
208
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
209
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
210
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
211
- runner_access_control: Annotated[RunnerAccessControl, Field(description="the new Runner security access to add.")],
202
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
203
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
204
+ runner_create_request: Annotated[RunnerCreateRequest, Field(description="the Runner to create")],
212
205
  _request_timeout: Union[
213
206
  None,
214
207
  Annotated[StrictFloat, Field(gt=0)],
@@ -222,17 +215,15 @@ class RunnerApi:
222
215
  _headers: Optional[Dict[StrictStr, Any]] = None,
223
216
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
224
217
  ) -> RESTResponseType:
225
- """Add a control access to the Runner
218
+ """Create a new Runner
226
219
 
227
220
 
228
221
  :param organization_id: the Organization identifier (required)
229
222
  :type organization_id: str
230
223
  :param workspace_id: the Workspace identifier (required)
231
224
  :type workspace_id: str
232
- :param runner_id: the Runner identifier (required)
233
- :type runner_id: str
234
- :param runner_access_control: the new Runner security access to add. (required)
235
- :type runner_access_control: RunnerAccessControl
225
+ :param runner_create_request: the Runner to create (required)
226
+ :type runner_create_request: RunnerCreateRequest
236
227
  :param _request_timeout: timeout setting for this request. If one
237
228
  number provided, it will be total request
238
229
  timeout. It can also be a pair (tuple) of
@@ -255,11 +246,10 @@ class RunnerApi:
255
246
  :return: Returns the result object.
256
247
  """ # noqa: E501
257
248
 
258
- _param = self._add_runner_access_control_serialize(
249
+ _param = self._create_runner_serialize(
259
250
  organization_id=organization_id,
260
251
  workspace_id=workspace_id,
261
- runner_id=runner_id,
262
- runner_access_control=runner_access_control,
252
+ runner_create_request=runner_create_request,
263
253
  _request_auth=_request_auth,
264
254
  _content_type=_content_type,
265
255
  _headers=_headers,
@@ -267,8 +257,8 @@ class RunnerApi:
267
257
  )
268
258
 
269
259
  _response_types_map: Dict[str, Optional[str]] = {
270
- '201': "RunnerAccessControl",
271
- '404': None,
260
+ '201': "Runner",
261
+ '400': None,
272
262
  }
273
263
  response_data = self.api_client.call_api(
274
264
  *_param,
@@ -277,12 +267,11 @@ class RunnerApi:
277
267
  return response_data.response
278
268
 
279
269
 
280
- def _add_runner_access_control_serialize(
270
+ def _create_runner_serialize(
281
271
  self,
282
272
  organization_id,
283
273
  workspace_id,
284
- runner_id,
285
- runner_access_control,
274
+ runner_create_request,
286
275
  _request_auth,
287
276
  _content_type,
288
277
  _headers,
@@ -298,7 +287,9 @@ class RunnerApi:
298
287
  _query_params: List[Tuple[str, str]] = []
299
288
  _header_params: Dict[str, Optional[str]] = _headers or {}
300
289
  _form_params: List[Tuple[str, str]] = []
301
- _files: Dict[str, str] = {}
290
+ _files: Dict[
291
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
292
+ ] = {}
302
293
  _body_params: Optional[bytes] = None
303
294
 
304
295
  # process the path parameters
@@ -306,22 +297,22 @@ class RunnerApi:
306
297
  _path_params['organization_id'] = organization_id
307
298
  if workspace_id is not None:
308
299
  _path_params['workspace_id'] = workspace_id
309
- if runner_id is not None:
310
- _path_params['runner_id'] = runner_id
311
300
  # process the query parameters
312
301
  # process the header parameters
313
302
  # process the form parameters
314
303
  # process the body parameter
315
- if runner_access_control is not None:
316
- _body_params = runner_access_control
304
+ if runner_create_request is not None:
305
+ _body_params = runner_create_request
317
306
 
318
307
 
319
308
  # set the HTTP header `Accept`
320
- _header_params['Accept'] = self.api_client.select_header_accept(
321
- [
322
- 'application/json'
323
- ]
324
- )
309
+ if 'Accept' not in _header_params:
310
+ _header_params['Accept'] = self.api_client.select_header_accept(
311
+ [
312
+ 'application/json',
313
+ 'application/yaml'
314
+ ]
315
+ )
325
316
 
326
317
  # set the HTTP header `Content-Type`
327
318
  if _content_type:
@@ -345,7 +336,7 @@ class RunnerApi:
345
336
 
346
337
  return self.api_client.param_serialize(
347
338
  method='POST',
348
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access',
339
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners',
349
340
  path_params=_path_params,
350
341
  query_params=_query_params,
351
342
  header_params=_header_params,
@@ -362,11 +353,12 @@ class RunnerApi:
362
353
 
363
354
 
364
355
  @validate_call
365
- def create_runner(
356
+ def create_runner_access_control(
366
357
  self,
367
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
368
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
369
- runner: Annotated[Runner, Field(description="the Runner to create")],
358
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
359
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
360
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
361
+ runner_access_control: Annotated[RunnerAccessControl, Field(description="the new Runner security access to add.")],
370
362
  _request_timeout: Union[
371
363
  None,
372
364
  Annotated[StrictFloat, Field(gt=0)],
@@ -379,16 +371,18 @@ class RunnerApi:
379
371
  _content_type: Optional[StrictStr] = None,
380
372
  _headers: Optional[Dict[StrictStr, Any]] = None,
381
373
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
382
- ) -> Runner:
383
- """Create a new Runner
374
+ ) -> RunnerAccessControl:
375
+ """Add a control access to the Runner
384
376
 
385
377
 
386
378
  :param organization_id: the Organization identifier (required)
387
379
  :type organization_id: str
388
380
  :param workspace_id: the Workspace identifier (required)
389
381
  :type workspace_id: str
390
- :param runner: the Runner to create (required)
391
- :type runner: Runner
382
+ :param runner_id: the Runner identifier (required)
383
+ :type runner_id: str
384
+ :param runner_access_control: the new Runner security access to add. (required)
385
+ :type runner_access_control: RunnerAccessControl
392
386
  :param _request_timeout: timeout setting for this request. If one
393
387
  number provided, it will be total request
394
388
  timeout. It can also be a pair (tuple) of
@@ -411,10 +405,11 @@ class RunnerApi:
411
405
  :return: Returns the result object.
412
406
  """ # noqa: E501
413
407
 
414
- _param = self._create_runner_serialize(
408
+ _param = self._create_runner_access_control_serialize(
415
409
  organization_id=organization_id,
416
410
  workspace_id=workspace_id,
417
- runner=runner,
411
+ runner_id=runner_id,
412
+ runner_access_control=runner_access_control,
418
413
  _request_auth=_request_auth,
419
414
  _content_type=_content_type,
420
415
  _headers=_headers,
@@ -422,8 +417,8 @@ class RunnerApi:
422
417
  )
423
418
 
424
419
  _response_types_map: Dict[str, Optional[str]] = {
425
- '201': "Runner",
426
- '400': None,
420
+ '201': "RunnerAccessControl",
421
+ '404': None,
427
422
  }
428
423
  response_data = self.api_client.call_api(
429
424
  *_param,
@@ -437,11 +432,12 @@ class RunnerApi:
437
432
 
438
433
 
439
434
  @validate_call
440
- def create_runner_with_http_info(
435
+ def create_runner_access_control_with_http_info(
441
436
  self,
442
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
443
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
444
- runner: Annotated[Runner, Field(description="the Runner to create")],
437
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
438
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
439
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
440
+ runner_access_control: Annotated[RunnerAccessControl, Field(description="the new Runner security access to add.")],
445
441
  _request_timeout: Union[
446
442
  None,
447
443
  Annotated[StrictFloat, Field(gt=0)],
@@ -454,16 +450,18 @@ class RunnerApi:
454
450
  _content_type: Optional[StrictStr] = None,
455
451
  _headers: Optional[Dict[StrictStr, Any]] = None,
456
452
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
457
- ) -> ApiResponse[Runner]:
458
- """Create a new Runner
453
+ ) -> ApiResponse[RunnerAccessControl]:
454
+ """Add a control access to the Runner
459
455
 
460
456
 
461
457
  :param organization_id: the Organization identifier (required)
462
458
  :type organization_id: str
463
459
  :param workspace_id: the Workspace identifier (required)
464
460
  :type workspace_id: str
465
- :param runner: the Runner to create (required)
466
- :type runner: Runner
461
+ :param runner_id: the Runner identifier (required)
462
+ :type runner_id: str
463
+ :param runner_access_control: the new Runner security access to add. (required)
464
+ :type runner_access_control: RunnerAccessControl
467
465
  :param _request_timeout: timeout setting for this request. If one
468
466
  number provided, it will be total request
469
467
  timeout. It can also be a pair (tuple) of
@@ -486,10 +484,11 @@ class RunnerApi:
486
484
  :return: Returns the result object.
487
485
  """ # noqa: E501
488
486
 
489
- _param = self._create_runner_serialize(
487
+ _param = self._create_runner_access_control_serialize(
490
488
  organization_id=organization_id,
491
489
  workspace_id=workspace_id,
492
- runner=runner,
490
+ runner_id=runner_id,
491
+ runner_access_control=runner_access_control,
493
492
  _request_auth=_request_auth,
494
493
  _content_type=_content_type,
495
494
  _headers=_headers,
@@ -497,8 +496,8 @@ class RunnerApi:
497
496
  )
498
497
 
499
498
  _response_types_map: Dict[str, Optional[str]] = {
500
- '201': "Runner",
501
- '400': None,
499
+ '201': "RunnerAccessControl",
500
+ '404': None,
502
501
  }
503
502
  response_data = self.api_client.call_api(
504
503
  *_param,
@@ -512,11 +511,12 @@ class RunnerApi:
512
511
 
513
512
 
514
513
  @validate_call
515
- def create_runner_without_preload_content(
514
+ def create_runner_access_control_without_preload_content(
516
515
  self,
517
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
518
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
519
- runner: Annotated[Runner, Field(description="the Runner to create")],
516
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
517
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
518
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
519
+ runner_access_control: Annotated[RunnerAccessControl, Field(description="the new Runner security access to add.")],
520
520
  _request_timeout: Union[
521
521
  None,
522
522
  Annotated[StrictFloat, Field(gt=0)],
@@ -530,15 +530,17 @@ class RunnerApi:
530
530
  _headers: Optional[Dict[StrictStr, Any]] = None,
531
531
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
532
532
  ) -> RESTResponseType:
533
- """Create a new Runner
533
+ """Add a control access to the Runner
534
534
 
535
535
 
536
536
  :param organization_id: the Organization identifier (required)
537
537
  :type organization_id: str
538
538
  :param workspace_id: the Workspace identifier (required)
539
539
  :type workspace_id: str
540
- :param runner: the Runner to create (required)
541
- :type runner: Runner
540
+ :param runner_id: the Runner identifier (required)
541
+ :type runner_id: str
542
+ :param runner_access_control: the new Runner security access to add. (required)
543
+ :type runner_access_control: RunnerAccessControl
542
544
  :param _request_timeout: timeout setting for this request. If one
543
545
  number provided, it will be total request
544
546
  timeout. It can also be a pair (tuple) of
@@ -561,10 +563,11 @@ class RunnerApi:
561
563
  :return: Returns the result object.
562
564
  """ # noqa: E501
563
565
 
564
- _param = self._create_runner_serialize(
566
+ _param = self._create_runner_access_control_serialize(
565
567
  organization_id=organization_id,
566
568
  workspace_id=workspace_id,
567
- runner=runner,
569
+ runner_id=runner_id,
570
+ runner_access_control=runner_access_control,
568
571
  _request_auth=_request_auth,
569
572
  _content_type=_content_type,
570
573
  _headers=_headers,
@@ -572,8 +575,8 @@ class RunnerApi:
572
575
  )
573
576
 
574
577
  _response_types_map: Dict[str, Optional[str]] = {
575
- '201': "Runner",
576
- '400': None,
578
+ '201': "RunnerAccessControl",
579
+ '404': None,
577
580
  }
578
581
  response_data = self.api_client.call_api(
579
582
  *_param,
@@ -582,11 +585,12 @@ class RunnerApi:
582
585
  return response_data.response
583
586
 
584
587
 
585
- def _create_runner_serialize(
588
+ def _create_runner_access_control_serialize(
586
589
  self,
587
590
  organization_id,
588
591
  workspace_id,
589
- runner,
592
+ runner_id,
593
+ runner_access_control,
590
594
  _request_auth,
591
595
  _content_type,
592
596
  _headers,
@@ -602,7 +606,9 @@ class RunnerApi:
602
606
  _query_params: List[Tuple[str, str]] = []
603
607
  _header_params: Dict[str, Optional[str]] = _headers or {}
604
608
  _form_params: List[Tuple[str, str]] = []
605
- _files: Dict[str, str] = {}
609
+ _files: Dict[
610
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
611
+ ] = {}
606
612
  _body_params: Optional[bytes] = None
607
613
 
608
614
  # process the path parameters
@@ -610,20 +616,24 @@ class RunnerApi:
610
616
  _path_params['organization_id'] = organization_id
611
617
  if workspace_id is not None:
612
618
  _path_params['workspace_id'] = workspace_id
619
+ if runner_id is not None:
620
+ _path_params['runner_id'] = runner_id
613
621
  # process the query parameters
614
622
  # process the header parameters
615
623
  # process the form parameters
616
624
  # process the body parameter
617
- if runner is not None:
618
- _body_params = runner
625
+ if runner_access_control is not None:
626
+ _body_params = runner_access_control
619
627
 
620
628
 
621
629
  # set the HTTP header `Accept`
622
- _header_params['Accept'] = self.api_client.select_header_accept(
623
- [
624
- 'application/json'
625
- ]
626
- )
630
+ if 'Accept' not in _header_params:
631
+ _header_params['Accept'] = self.api_client.select_header_accept(
632
+ [
633
+ 'application/json',
634
+ 'application/yaml'
635
+ ]
636
+ )
627
637
 
628
638
  # set the HTTP header `Content-Type`
629
639
  if _content_type:
@@ -647,7 +657,7 @@ class RunnerApi:
647
657
 
648
658
  return self.api_client.param_serialize(
649
659
  method='POST',
650
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners',
660
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access',
651
661
  path_params=_path_params,
652
662
  query_params=_query_params,
653
663
  header_params=_header_params,
@@ -666,9 +676,9 @@ class RunnerApi:
666
676
  @validate_call
667
677
  def delete_runner(
668
678
  self,
669
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
670
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
671
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
679
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
680
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
681
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
672
682
  _request_timeout: Union[
673
683
  None,
674
684
  Annotated[StrictFloat, Field(gt=0)],
@@ -741,9 +751,9 @@ class RunnerApi:
741
751
  @validate_call
742
752
  def delete_runner_with_http_info(
743
753
  self,
744
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
745
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
746
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
754
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
755
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
756
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
747
757
  _request_timeout: Union[
748
758
  None,
749
759
  Annotated[StrictFloat, Field(gt=0)],
@@ -816,9 +826,9 @@ class RunnerApi:
816
826
  @validate_call
817
827
  def delete_runner_without_preload_content(
818
828
  self,
819
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
820
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
821
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
829
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
830
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
831
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
822
832
  _request_timeout: Union[
823
833
  None,
824
834
  Annotated[StrictFloat, Field(gt=0)],
@@ -904,7 +914,9 @@ class RunnerApi:
904
914
  _query_params: List[Tuple[str, str]] = []
905
915
  _header_params: Dict[str, Optional[str]] = _headers or {}
906
916
  _form_params: List[Tuple[str, str]] = []
907
- _files: Dict[str, str] = {}
917
+ _files: Dict[
918
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
919
+ ] = {}
908
920
  _body_params: Optional[bytes] = None
909
921
 
910
922
  # process the path parameters
@@ -946,11 +958,12 @@ class RunnerApi:
946
958
 
947
959
 
948
960
  @validate_call
949
- def get_runner(
961
+ def delete_runner_access_control(
950
962
  self,
951
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
952
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
953
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
963
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
964
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
965
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
966
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
954
967
  _request_timeout: Union[
955
968
  None,
956
969
  Annotated[StrictFloat, Field(gt=0)],
@@ -963,8 +976,8 @@ class RunnerApi:
963
976
  _content_type: Optional[StrictStr] = None,
964
977
  _headers: Optional[Dict[StrictStr, Any]] = None,
965
978
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
966
- ) -> Runner:
967
- """Get the details of an runner
979
+ ) -> None:
980
+ """Remove the specified access from the given Runner
968
981
 
969
982
 
970
983
  :param organization_id: the Organization identifier (required)
@@ -973,6 +986,8 @@ class RunnerApi:
973
986
  :type workspace_id: str
974
987
  :param runner_id: the Runner identifier (required)
975
988
  :type runner_id: str
989
+ :param identity_id: the User identifier (required)
990
+ :type identity_id: str
976
991
  :param _request_timeout: timeout setting for this request. If one
977
992
  number provided, it will be total request
978
993
  timeout. It can also be a pair (tuple) of
@@ -995,10 +1010,11 @@ class RunnerApi:
995
1010
  :return: Returns the result object.
996
1011
  """ # noqa: E501
997
1012
 
998
- _param = self._get_runner_serialize(
1013
+ _param = self._delete_runner_access_control_serialize(
999
1014
  organization_id=organization_id,
1000
1015
  workspace_id=workspace_id,
1001
1016
  runner_id=runner_id,
1017
+ identity_id=identity_id,
1002
1018
  _request_auth=_request_auth,
1003
1019
  _content_type=_content_type,
1004
1020
  _headers=_headers,
@@ -1006,7 +1022,7 @@ class RunnerApi:
1006
1022
  )
1007
1023
 
1008
1024
  _response_types_map: Dict[str, Optional[str]] = {
1009
- '200': "Runner",
1025
+ '204': None,
1010
1026
  '404': None,
1011
1027
  }
1012
1028
  response_data = self.api_client.call_api(
@@ -1021,11 +1037,12 @@ class RunnerApi:
1021
1037
 
1022
1038
 
1023
1039
  @validate_call
1024
- def get_runner_with_http_info(
1040
+ def delete_runner_access_control_with_http_info(
1025
1041
  self,
1026
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1027
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1028
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1042
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
1043
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
1044
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
1045
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1029
1046
  _request_timeout: Union[
1030
1047
  None,
1031
1048
  Annotated[StrictFloat, Field(gt=0)],
@@ -1038,8 +1055,8 @@ class RunnerApi:
1038
1055
  _content_type: Optional[StrictStr] = None,
1039
1056
  _headers: Optional[Dict[StrictStr, Any]] = None,
1040
1057
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1041
- ) -> ApiResponse[Runner]:
1042
- """Get the details of an runner
1058
+ ) -> ApiResponse[None]:
1059
+ """Remove the specified access from the given Runner
1043
1060
 
1044
1061
 
1045
1062
  :param organization_id: the Organization identifier (required)
@@ -1048,6 +1065,8 @@ class RunnerApi:
1048
1065
  :type workspace_id: str
1049
1066
  :param runner_id: the Runner identifier (required)
1050
1067
  :type runner_id: str
1068
+ :param identity_id: the User identifier (required)
1069
+ :type identity_id: str
1051
1070
  :param _request_timeout: timeout setting for this request. If one
1052
1071
  number provided, it will be total request
1053
1072
  timeout. It can also be a pair (tuple) of
@@ -1070,10 +1089,11 @@ class RunnerApi:
1070
1089
  :return: Returns the result object.
1071
1090
  """ # noqa: E501
1072
1091
 
1073
- _param = self._get_runner_serialize(
1092
+ _param = self._delete_runner_access_control_serialize(
1074
1093
  organization_id=organization_id,
1075
1094
  workspace_id=workspace_id,
1076
1095
  runner_id=runner_id,
1096
+ identity_id=identity_id,
1077
1097
  _request_auth=_request_auth,
1078
1098
  _content_type=_content_type,
1079
1099
  _headers=_headers,
@@ -1081,7 +1101,7 @@ class RunnerApi:
1081
1101
  )
1082
1102
 
1083
1103
  _response_types_map: Dict[str, Optional[str]] = {
1084
- '200': "Runner",
1104
+ '204': None,
1085
1105
  '404': None,
1086
1106
  }
1087
1107
  response_data = self.api_client.call_api(
@@ -1096,11 +1116,12 @@ class RunnerApi:
1096
1116
 
1097
1117
 
1098
1118
  @validate_call
1099
- def get_runner_without_preload_content(
1119
+ def delete_runner_access_control_without_preload_content(
1100
1120
  self,
1101
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1102
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1103
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1121
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
1122
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
1123
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
1124
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1104
1125
  _request_timeout: Union[
1105
1126
  None,
1106
1127
  Annotated[StrictFloat, Field(gt=0)],
@@ -1114,7 +1135,7 @@ class RunnerApi:
1114
1135
  _headers: Optional[Dict[StrictStr, Any]] = None,
1115
1136
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1116
1137
  ) -> RESTResponseType:
1117
- """Get the details of an runner
1138
+ """Remove the specified access from the given Runner
1118
1139
 
1119
1140
 
1120
1141
  :param organization_id: the Organization identifier (required)
@@ -1123,6 +1144,8 @@ class RunnerApi:
1123
1144
  :type workspace_id: str
1124
1145
  :param runner_id: the Runner identifier (required)
1125
1146
  :type runner_id: str
1147
+ :param identity_id: the User identifier (required)
1148
+ :type identity_id: str
1126
1149
  :param _request_timeout: timeout setting for this request. If one
1127
1150
  number provided, it will be total request
1128
1151
  timeout. It can also be a pair (tuple) of
@@ -1145,10 +1168,11 @@ class RunnerApi:
1145
1168
  :return: Returns the result object.
1146
1169
  """ # noqa: E501
1147
1170
 
1148
- _param = self._get_runner_serialize(
1171
+ _param = self._delete_runner_access_control_serialize(
1149
1172
  organization_id=organization_id,
1150
1173
  workspace_id=workspace_id,
1151
1174
  runner_id=runner_id,
1175
+ identity_id=identity_id,
1152
1176
  _request_auth=_request_auth,
1153
1177
  _content_type=_content_type,
1154
1178
  _headers=_headers,
@@ -1156,7 +1180,7 @@ class RunnerApi:
1156
1180
  )
1157
1181
 
1158
1182
  _response_types_map: Dict[str, Optional[str]] = {
1159
- '200': "Runner",
1183
+ '204': None,
1160
1184
  '404': None,
1161
1185
  }
1162
1186
  response_data = self.api_client.call_api(
@@ -1166,11 +1190,12 @@ class RunnerApi:
1166
1190
  return response_data.response
1167
1191
 
1168
1192
 
1169
- def _get_runner_serialize(
1193
+ def _delete_runner_access_control_serialize(
1170
1194
  self,
1171
1195
  organization_id,
1172
1196
  workspace_id,
1173
1197
  runner_id,
1198
+ identity_id,
1174
1199
  _request_auth,
1175
1200
  _content_type,
1176
1201
  _headers,
@@ -1186,7 +1211,9 @@ class RunnerApi:
1186
1211
  _query_params: List[Tuple[str, str]] = []
1187
1212
  _header_params: Dict[str, Optional[str]] = _headers or {}
1188
1213
  _form_params: List[Tuple[str, str]] = []
1189
- _files: Dict[str, str] = {}
1214
+ _files: Dict[
1215
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1216
+ ] = {}
1190
1217
  _body_params: Optional[bytes] = None
1191
1218
 
1192
1219
  # process the path parameters
@@ -1196,18 +1223,14 @@ class RunnerApi:
1196
1223
  _path_params['workspace_id'] = workspace_id
1197
1224
  if runner_id is not None:
1198
1225
  _path_params['runner_id'] = runner_id
1226
+ if identity_id is not None:
1227
+ _path_params['identity_id'] = identity_id
1199
1228
  # process the query parameters
1200
1229
  # process the header parameters
1201
1230
  # process the form parameters
1202
1231
  # process the body parameter
1203
1232
 
1204
1233
 
1205
- # set the HTTP header `Accept`
1206
- _header_params['Accept'] = self.api_client.select_header_accept(
1207
- [
1208
- 'application/json'
1209
- ]
1210
- )
1211
1234
 
1212
1235
 
1213
1236
  # authentication setting
@@ -1216,8 +1239,8 @@ class RunnerApi:
1216
1239
  ]
1217
1240
 
1218
1241
  return self.api_client.param_serialize(
1219
- method='GET',
1220
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}',
1242
+ method='DELETE',
1243
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id}',
1221
1244
  path_params=_path_params,
1222
1245
  query_params=_query_params,
1223
1246
  header_params=_header_params,
@@ -1234,12 +1257,11 @@ class RunnerApi:
1234
1257
 
1235
1258
 
1236
1259
  @validate_call
1237
- def get_runner_access_control(
1260
+ def get_runner(
1238
1261
  self,
1239
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1240
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1241
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1242
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1262
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
1263
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
1264
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
1243
1265
  _request_timeout: Union[
1244
1266
  None,
1245
1267
  Annotated[StrictFloat, Field(gt=0)],
@@ -1252,8 +1274,8 @@ class RunnerApi:
1252
1274
  _content_type: Optional[StrictStr] = None,
1253
1275
  _headers: Optional[Dict[StrictStr, Any]] = None,
1254
1276
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1255
- ) -> RunnerAccessControl:
1256
- """Get a control access for the Runner
1277
+ ) -> Runner:
1278
+ """Get the details of a runner
1257
1279
 
1258
1280
 
1259
1281
  :param organization_id: the Organization identifier (required)
@@ -1262,8 +1284,6 @@ class RunnerApi:
1262
1284
  :type workspace_id: str
1263
1285
  :param runner_id: the Runner identifier (required)
1264
1286
  :type runner_id: str
1265
- :param identity_id: the User identifier (required)
1266
- :type identity_id: str
1267
1287
  :param _request_timeout: timeout setting for this request. If one
1268
1288
  number provided, it will be total request
1269
1289
  timeout. It can also be a pair (tuple) of
@@ -1286,11 +1306,10 @@ class RunnerApi:
1286
1306
  :return: Returns the result object.
1287
1307
  """ # noqa: E501
1288
1308
 
1289
- _param = self._get_runner_access_control_serialize(
1309
+ _param = self._get_runner_serialize(
1290
1310
  organization_id=organization_id,
1291
1311
  workspace_id=workspace_id,
1292
1312
  runner_id=runner_id,
1293
- identity_id=identity_id,
1294
1313
  _request_auth=_request_auth,
1295
1314
  _content_type=_content_type,
1296
1315
  _headers=_headers,
@@ -1298,7 +1317,7 @@ class RunnerApi:
1298
1317
  )
1299
1318
 
1300
1319
  _response_types_map: Dict[str, Optional[str]] = {
1301
- '200': "RunnerAccessControl",
1320
+ '200': "Runner",
1302
1321
  '404': None,
1303
1322
  }
1304
1323
  response_data = self.api_client.call_api(
@@ -1313,12 +1332,11 @@ class RunnerApi:
1313
1332
 
1314
1333
 
1315
1334
  @validate_call
1316
- def get_runner_access_control_with_http_info(
1335
+ def get_runner_with_http_info(
1317
1336
  self,
1318
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1319
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1320
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1321
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1337
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
1338
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
1339
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
1322
1340
  _request_timeout: Union[
1323
1341
  None,
1324
1342
  Annotated[StrictFloat, Field(gt=0)],
@@ -1331,8 +1349,8 @@ class RunnerApi:
1331
1349
  _content_type: Optional[StrictStr] = None,
1332
1350
  _headers: Optional[Dict[StrictStr, Any]] = None,
1333
1351
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1334
- ) -> ApiResponse[RunnerAccessControl]:
1335
- """Get a control access for the Runner
1352
+ ) -> ApiResponse[Runner]:
1353
+ """Get the details of a runner
1336
1354
 
1337
1355
 
1338
1356
  :param organization_id: the Organization identifier (required)
@@ -1341,8 +1359,6 @@ class RunnerApi:
1341
1359
  :type workspace_id: str
1342
1360
  :param runner_id: the Runner identifier (required)
1343
1361
  :type runner_id: str
1344
- :param identity_id: the User identifier (required)
1345
- :type identity_id: str
1346
1362
  :param _request_timeout: timeout setting for this request. If one
1347
1363
  number provided, it will be total request
1348
1364
  timeout. It can also be a pair (tuple) of
@@ -1365,11 +1381,10 @@ class RunnerApi:
1365
1381
  :return: Returns the result object.
1366
1382
  """ # noqa: E501
1367
1383
 
1368
- _param = self._get_runner_access_control_serialize(
1384
+ _param = self._get_runner_serialize(
1369
1385
  organization_id=organization_id,
1370
1386
  workspace_id=workspace_id,
1371
1387
  runner_id=runner_id,
1372
- identity_id=identity_id,
1373
1388
  _request_auth=_request_auth,
1374
1389
  _content_type=_content_type,
1375
1390
  _headers=_headers,
@@ -1377,7 +1392,7 @@ class RunnerApi:
1377
1392
  )
1378
1393
 
1379
1394
  _response_types_map: Dict[str, Optional[str]] = {
1380
- '200': "RunnerAccessControl",
1395
+ '200': "Runner",
1381
1396
  '404': None,
1382
1397
  }
1383
1398
  response_data = self.api_client.call_api(
@@ -1392,12 +1407,11 @@ class RunnerApi:
1392
1407
 
1393
1408
 
1394
1409
  @validate_call
1395
- def get_runner_access_control_without_preload_content(
1410
+ def get_runner_without_preload_content(
1396
1411
  self,
1397
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1398
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1399
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1400
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1412
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
1413
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
1414
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
1401
1415
  _request_timeout: Union[
1402
1416
  None,
1403
1417
  Annotated[StrictFloat, Field(gt=0)],
@@ -1411,7 +1425,7 @@ class RunnerApi:
1411
1425
  _headers: Optional[Dict[StrictStr, Any]] = None,
1412
1426
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1413
1427
  ) -> RESTResponseType:
1414
- """Get a control access for the Runner
1428
+ """Get the details of a runner
1415
1429
 
1416
1430
 
1417
1431
  :param organization_id: the Organization identifier (required)
@@ -1420,8 +1434,6 @@ class RunnerApi:
1420
1434
  :type workspace_id: str
1421
1435
  :param runner_id: the Runner identifier (required)
1422
1436
  :type runner_id: str
1423
- :param identity_id: the User identifier (required)
1424
- :type identity_id: str
1425
1437
  :param _request_timeout: timeout setting for this request. If one
1426
1438
  number provided, it will be total request
1427
1439
  timeout. It can also be a pair (tuple) of
@@ -1444,11 +1456,10 @@ class RunnerApi:
1444
1456
  :return: Returns the result object.
1445
1457
  """ # noqa: E501
1446
1458
 
1447
- _param = self._get_runner_access_control_serialize(
1459
+ _param = self._get_runner_serialize(
1448
1460
  organization_id=organization_id,
1449
1461
  workspace_id=workspace_id,
1450
1462
  runner_id=runner_id,
1451
- identity_id=identity_id,
1452
1463
  _request_auth=_request_auth,
1453
1464
  _content_type=_content_type,
1454
1465
  _headers=_headers,
@@ -1456,7 +1467,7 @@ class RunnerApi:
1456
1467
  )
1457
1468
 
1458
1469
  _response_types_map: Dict[str, Optional[str]] = {
1459
- '200': "RunnerAccessControl",
1470
+ '200': "Runner",
1460
1471
  '404': None,
1461
1472
  }
1462
1473
  response_data = self.api_client.call_api(
@@ -1466,12 +1477,11 @@ class RunnerApi:
1466
1477
  return response_data.response
1467
1478
 
1468
1479
 
1469
- def _get_runner_access_control_serialize(
1480
+ def _get_runner_serialize(
1470
1481
  self,
1471
1482
  organization_id,
1472
1483
  workspace_id,
1473
1484
  runner_id,
1474
- identity_id,
1475
1485
  _request_auth,
1476
1486
  _content_type,
1477
1487
  _headers,
@@ -1487,7 +1497,9 @@ class RunnerApi:
1487
1497
  _query_params: List[Tuple[str, str]] = []
1488
1498
  _header_params: Dict[str, Optional[str]] = _headers or {}
1489
1499
  _form_params: List[Tuple[str, str]] = []
1490
- _files: Dict[str, str] = {}
1500
+ _files: Dict[
1501
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1502
+ ] = {}
1491
1503
  _body_params: Optional[bytes] = None
1492
1504
 
1493
1505
  # process the path parameters
@@ -1497,8 +1509,6 @@ class RunnerApi:
1497
1509
  _path_params['workspace_id'] = workspace_id
1498
1510
  if runner_id is not None:
1499
1511
  _path_params['runner_id'] = runner_id
1500
- if identity_id is not None:
1501
- _path_params['identity_id'] = identity_id
1502
1512
  # process the query parameters
1503
1513
  # process the header parameters
1504
1514
  # process the form parameters
@@ -1506,11 +1516,13 @@ class RunnerApi:
1506
1516
 
1507
1517
 
1508
1518
  # set the HTTP header `Accept`
1509
- _header_params['Accept'] = self.api_client.select_header_accept(
1510
- [
1511
- 'application/json'
1512
- ]
1513
- )
1519
+ if 'Accept' not in _header_params:
1520
+ _header_params['Accept'] = self.api_client.select_header_accept(
1521
+ [
1522
+ 'application/json',
1523
+ 'application/yaml'
1524
+ ]
1525
+ )
1514
1526
 
1515
1527
 
1516
1528
  # authentication setting
@@ -1520,7 +1532,7 @@ class RunnerApi:
1520
1532
 
1521
1533
  return self.api_client.param_serialize(
1522
1534
  method='GET',
1523
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id}',
1535
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}',
1524
1536
  path_params=_path_params,
1525
1537
  query_params=_query_params,
1526
1538
  header_params=_header_params,
@@ -1537,12 +1549,12 @@ class RunnerApi:
1537
1549
 
1538
1550
 
1539
1551
  @validate_call
1540
- def get_runner_permissions(
1552
+ def get_runner_access_control(
1541
1553
  self,
1542
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1543
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1544
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1545
- role: Annotated[StrictStr, Field(description="the Role")],
1554
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
1555
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
1556
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
1557
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1546
1558
  _request_timeout: Union[
1547
1559
  None,
1548
1560
  Annotated[StrictFloat, Field(gt=0)],
@@ -1555,8 +1567,8 @@ class RunnerApi:
1555
1567
  _content_type: Optional[StrictStr] = None,
1556
1568
  _headers: Optional[Dict[StrictStr, Any]] = None,
1557
1569
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1558
- ) -> List[str]:
1559
- """Get the Runner permission by given role
1570
+ ) -> RunnerAccessControl:
1571
+ """Get a control access for the Runner
1560
1572
 
1561
1573
 
1562
1574
  :param organization_id: the Organization identifier (required)
@@ -1565,8 +1577,8 @@ class RunnerApi:
1565
1577
  :type workspace_id: str
1566
1578
  :param runner_id: the Runner identifier (required)
1567
1579
  :type runner_id: str
1568
- :param role: the Role (required)
1569
- :type role: str
1580
+ :param identity_id: the User identifier (required)
1581
+ :type identity_id: str
1570
1582
  :param _request_timeout: timeout setting for this request. If one
1571
1583
  number provided, it will be total request
1572
1584
  timeout. It can also be a pair (tuple) of
@@ -1589,11 +1601,11 @@ class RunnerApi:
1589
1601
  :return: Returns the result object.
1590
1602
  """ # noqa: E501
1591
1603
 
1592
- _param = self._get_runner_permissions_serialize(
1604
+ _param = self._get_runner_access_control_serialize(
1593
1605
  organization_id=organization_id,
1594
1606
  workspace_id=workspace_id,
1595
1607
  runner_id=runner_id,
1596
- role=role,
1608
+ identity_id=identity_id,
1597
1609
  _request_auth=_request_auth,
1598
1610
  _content_type=_content_type,
1599
1611
  _headers=_headers,
@@ -1601,7 +1613,8 @@ class RunnerApi:
1601
1613
  )
1602
1614
 
1603
1615
  _response_types_map: Dict[str, Optional[str]] = {
1604
- '200': "List[str]",
1616
+ '200': "RunnerAccessControl",
1617
+ '404': None,
1605
1618
  }
1606
1619
  response_data = self.api_client.call_api(
1607
1620
  *_param,
@@ -1615,12 +1628,12 @@ class RunnerApi:
1615
1628
 
1616
1629
 
1617
1630
  @validate_call
1618
- def get_runner_permissions_with_http_info(
1631
+ def get_runner_access_control_with_http_info(
1619
1632
  self,
1620
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1621
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1622
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1623
- role: Annotated[StrictStr, Field(description="the Role")],
1633
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
1634
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
1635
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
1636
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1624
1637
  _request_timeout: Union[
1625
1638
  None,
1626
1639
  Annotated[StrictFloat, Field(gt=0)],
@@ -1633,8 +1646,8 @@ class RunnerApi:
1633
1646
  _content_type: Optional[StrictStr] = None,
1634
1647
  _headers: Optional[Dict[StrictStr, Any]] = None,
1635
1648
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1636
- ) -> ApiResponse[List[str]]:
1637
- """Get the Runner permission by given role
1649
+ ) -> ApiResponse[RunnerAccessControl]:
1650
+ """Get a control access for the Runner
1638
1651
 
1639
1652
 
1640
1653
  :param organization_id: the Organization identifier (required)
@@ -1643,8 +1656,8 @@ class RunnerApi:
1643
1656
  :type workspace_id: str
1644
1657
  :param runner_id: the Runner identifier (required)
1645
1658
  :type runner_id: str
1646
- :param role: the Role (required)
1647
- :type role: str
1659
+ :param identity_id: the User identifier (required)
1660
+ :type identity_id: str
1648
1661
  :param _request_timeout: timeout setting for this request. If one
1649
1662
  number provided, it will be total request
1650
1663
  timeout. It can also be a pair (tuple) of
@@ -1667,11 +1680,11 @@ class RunnerApi:
1667
1680
  :return: Returns the result object.
1668
1681
  """ # noqa: E501
1669
1682
 
1670
- _param = self._get_runner_permissions_serialize(
1683
+ _param = self._get_runner_access_control_serialize(
1671
1684
  organization_id=organization_id,
1672
1685
  workspace_id=workspace_id,
1673
1686
  runner_id=runner_id,
1674
- role=role,
1687
+ identity_id=identity_id,
1675
1688
  _request_auth=_request_auth,
1676
1689
  _content_type=_content_type,
1677
1690
  _headers=_headers,
@@ -1679,7 +1692,8 @@ class RunnerApi:
1679
1692
  )
1680
1693
 
1681
1694
  _response_types_map: Dict[str, Optional[str]] = {
1682
- '200': "List[str]",
1695
+ '200': "RunnerAccessControl",
1696
+ '404': None,
1683
1697
  }
1684
1698
  response_data = self.api_client.call_api(
1685
1699
  *_param,
@@ -1693,12 +1707,12 @@ class RunnerApi:
1693
1707
 
1694
1708
 
1695
1709
  @validate_call
1696
- def get_runner_permissions_without_preload_content(
1710
+ def get_runner_access_control_without_preload_content(
1697
1711
  self,
1698
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1699
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1700
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1701
- role: Annotated[StrictStr, Field(description="the Role")],
1712
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
1713
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
1714
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
1715
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1702
1716
  _request_timeout: Union[
1703
1717
  None,
1704
1718
  Annotated[StrictFloat, Field(gt=0)],
@@ -1712,7 +1726,7 @@ class RunnerApi:
1712
1726
  _headers: Optional[Dict[StrictStr, Any]] = None,
1713
1727
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1714
1728
  ) -> RESTResponseType:
1715
- """Get the Runner permission by given role
1729
+ """Get a control access for the Runner
1716
1730
 
1717
1731
 
1718
1732
  :param organization_id: the Organization identifier (required)
@@ -1721,8 +1735,8 @@ class RunnerApi:
1721
1735
  :type workspace_id: str
1722
1736
  :param runner_id: the Runner identifier (required)
1723
1737
  :type runner_id: str
1724
- :param role: the Role (required)
1725
- :type role: str
1738
+ :param identity_id: the User identifier (required)
1739
+ :type identity_id: str
1726
1740
  :param _request_timeout: timeout setting for this request. If one
1727
1741
  number provided, it will be total request
1728
1742
  timeout. It can also be a pair (tuple) of
@@ -1745,11 +1759,11 @@ class RunnerApi:
1745
1759
  :return: Returns the result object.
1746
1760
  """ # noqa: E501
1747
1761
 
1748
- _param = self._get_runner_permissions_serialize(
1762
+ _param = self._get_runner_access_control_serialize(
1749
1763
  organization_id=organization_id,
1750
1764
  workspace_id=workspace_id,
1751
1765
  runner_id=runner_id,
1752
- role=role,
1766
+ identity_id=identity_id,
1753
1767
  _request_auth=_request_auth,
1754
1768
  _content_type=_content_type,
1755
1769
  _headers=_headers,
@@ -1757,8 +1771,9 @@ class RunnerApi:
1757
1771
  )
1758
1772
 
1759
1773
  _response_types_map: Dict[str, Optional[str]] = {
1760
- '200': "List[str]",
1761
- }
1774
+ '200': "RunnerAccessControl",
1775
+ '404': None,
1776
+ }
1762
1777
  response_data = self.api_client.call_api(
1763
1778
  *_param,
1764
1779
  _request_timeout=_request_timeout
@@ -1766,12 +1781,12 @@ class RunnerApi:
1766
1781
  return response_data.response
1767
1782
 
1768
1783
 
1769
- def _get_runner_permissions_serialize(
1784
+ def _get_runner_access_control_serialize(
1770
1785
  self,
1771
1786
  organization_id,
1772
1787
  workspace_id,
1773
1788
  runner_id,
1774
- role,
1789
+ identity_id,
1775
1790
  _request_auth,
1776
1791
  _content_type,
1777
1792
  _headers,
@@ -1787,7 +1802,9 @@ class RunnerApi:
1787
1802
  _query_params: List[Tuple[str, str]] = []
1788
1803
  _header_params: Dict[str, Optional[str]] = _headers or {}
1789
1804
  _form_params: List[Tuple[str, str]] = []
1790
- _files: Dict[str, str] = {}
1805
+ _files: Dict[
1806
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1807
+ ] = {}
1791
1808
  _body_params: Optional[bytes] = None
1792
1809
 
1793
1810
  # process the path parameters
@@ -1797,8 +1814,8 @@ class RunnerApi:
1797
1814
  _path_params['workspace_id'] = workspace_id
1798
1815
  if runner_id is not None:
1799
1816
  _path_params['runner_id'] = runner_id
1800
- if role is not None:
1801
- _path_params['role'] = role
1817
+ if identity_id is not None:
1818
+ _path_params['identity_id'] = identity_id
1802
1819
  # process the query parameters
1803
1820
  # process the header parameters
1804
1821
  # process the form parameters
@@ -1806,11 +1823,13 @@ class RunnerApi:
1806
1823
 
1807
1824
 
1808
1825
  # set the HTTP header `Accept`
1809
- _header_params['Accept'] = self.api_client.select_header_accept(
1810
- [
1811
- 'application/json'
1812
- ]
1813
- )
1826
+ if 'Accept' not in _header_params:
1827
+ _header_params['Accept'] = self.api_client.select_header_accept(
1828
+ [
1829
+ 'application/json',
1830
+ 'application/yaml'
1831
+ ]
1832
+ )
1814
1833
 
1815
1834
 
1816
1835
  # authentication setting
@@ -1820,7 +1839,7 @@ class RunnerApi:
1820
1839
 
1821
1840
  return self.api_client.param_serialize(
1822
1841
  method='GET',
1823
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/permissions/{role}',
1842
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id}',
1824
1843
  path_params=_path_params,
1825
1844
  query_params=_query_params,
1826
1845
  header_params=_header_params,
@@ -1839,9 +1858,9 @@ class RunnerApi:
1839
1858
  @validate_call
1840
1859
  def get_runner_security(
1841
1860
  self,
1842
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1843
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1844
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1861
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
1862
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
1863
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
1845
1864
  _request_timeout: Union[
1846
1865
  None,
1847
1866
  Annotated[StrictFloat, Field(gt=0)],
@@ -1914,9 +1933,9 @@ class RunnerApi:
1914
1933
  @validate_call
1915
1934
  def get_runner_security_with_http_info(
1916
1935
  self,
1917
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1918
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1919
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1936
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
1937
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
1938
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
1920
1939
  _request_timeout: Union[
1921
1940
  None,
1922
1941
  Annotated[StrictFloat, Field(gt=0)],
@@ -1989,9 +2008,9 @@ class RunnerApi:
1989
2008
  @validate_call
1990
2009
  def get_runner_security_without_preload_content(
1991
2010
  self,
1992
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1993
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1994
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2011
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
2012
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
2013
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
1995
2014
  _request_timeout: Union[
1996
2015
  None,
1997
2016
  Annotated[StrictFloat, Field(gt=0)],
@@ -2077,7 +2096,9 @@ class RunnerApi:
2077
2096
  _query_params: List[Tuple[str, str]] = []
2078
2097
  _header_params: Dict[str, Optional[str]] = _headers or {}
2079
2098
  _form_params: List[Tuple[str, str]] = []
2080
- _files: Dict[str, str] = {}
2099
+ _files: Dict[
2100
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2101
+ ] = {}
2081
2102
  _body_params: Optional[bytes] = None
2082
2103
 
2083
2104
  # process the path parameters
@@ -2094,11 +2115,13 @@ class RunnerApi:
2094
2115
 
2095
2116
 
2096
2117
  # set the HTTP header `Accept`
2097
- _header_params['Accept'] = self.api_client.select_header_accept(
2098
- [
2099
- 'application/json'
2100
- ]
2101
- )
2118
+ if 'Accept' not in _header_params:
2119
+ _header_params['Accept'] = self.api_client.select_header_accept(
2120
+ [
2121
+ 'application/json',
2122
+ 'application/yaml'
2123
+ ]
2124
+ )
2102
2125
 
2103
2126
 
2104
2127
  # authentication setting
@@ -2125,11 +2148,12 @@ class RunnerApi:
2125
2148
 
2126
2149
 
2127
2150
  @validate_call
2128
- def get_runner_security_users(
2151
+ def list_runner_permissions(
2129
2152
  self,
2130
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2131
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2132
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2153
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
2154
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
2155
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
2156
+ role: Annotated[StrictStr, Field(description="the Role")],
2133
2157
  _request_timeout: Union[
2134
2158
  None,
2135
2159
  Annotated[StrictFloat, Field(gt=0)],
@@ -2143,7 +2167,7 @@ class RunnerApi:
2143
2167
  _headers: Optional[Dict[StrictStr, Any]] = None,
2144
2168
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2145
2169
  ) -> List[str]:
2146
- """Get the Runner security users list
2170
+ """Get the Runner permission by given role
2147
2171
 
2148
2172
 
2149
2173
  :param organization_id: the Organization identifier (required)
@@ -2152,6 +2176,8 @@ class RunnerApi:
2152
2176
  :type workspace_id: str
2153
2177
  :param runner_id: the Runner identifier (required)
2154
2178
  :type runner_id: str
2179
+ :param role: the Role (required)
2180
+ :type role: str
2155
2181
  :param _request_timeout: timeout setting for this request. If one
2156
2182
  number provided, it will be total request
2157
2183
  timeout. It can also be a pair (tuple) of
@@ -2174,10 +2200,11 @@ class RunnerApi:
2174
2200
  :return: Returns the result object.
2175
2201
  """ # noqa: E501
2176
2202
 
2177
- _param = self._get_runner_security_users_serialize(
2203
+ _param = self._list_runner_permissions_serialize(
2178
2204
  organization_id=organization_id,
2179
2205
  workspace_id=workspace_id,
2180
2206
  runner_id=runner_id,
2207
+ role=role,
2181
2208
  _request_auth=_request_auth,
2182
2209
  _content_type=_content_type,
2183
2210
  _headers=_headers,
@@ -2186,7 +2213,6 @@ class RunnerApi:
2186
2213
 
2187
2214
  _response_types_map: Dict[str, Optional[str]] = {
2188
2215
  '200': "List[str]",
2189
- '404': None,
2190
2216
  }
2191
2217
  response_data = self.api_client.call_api(
2192
2218
  *_param,
@@ -2200,11 +2226,12 @@ class RunnerApi:
2200
2226
 
2201
2227
 
2202
2228
  @validate_call
2203
- def get_runner_security_users_with_http_info(
2229
+ def list_runner_permissions_with_http_info(
2204
2230
  self,
2205
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2206
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2207
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2231
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
2232
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
2233
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
2234
+ role: Annotated[StrictStr, Field(description="the Role")],
2208
2235
  _request_timeout: Union[
2209
2236
  None,
2210
2237
  Annotated[StrictFloat, Field(gt=0)],
@@ -2218,7 +2245,7 @@ class RunnerApi:
2218
2245
  _headers: Optional[Dict[StrictStr, Any]] = None,
2219
2246
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2220
2247
  ) -> ApiResponse[List[str]]:
2221
- """Get the Runner security users list
2248
+ """Get the Runner permission by given role
2222
2249
 
2223
2250
 
2224
2251
  :param organization_id: the Organization identifier (required)
@@ -2227,6 +2254,8 @@ class RunnerApi:
2227
2254
  :type workspace_id: str
2228
2255
  :param runner_id: the Runner identifier (required)
2229
2256
  :type runner_id: str
2257
+ :param role: the Role (required)
2258
+ :type role: str
2230
2259
  :param _request_timeout: timeout setting for this request. If one
2231
2260
  number provided, it will be total request
2232
2261
  timeout. It can also be a pair (tuple) of
@@ -2249,10 +2278,11 @@ class RunnerApi:
2249
2278
  :return: Returns the result object.
2250
2279
  """ # noqa: E501
2251
2280
 
2252
- _param = self._get_runner_security_users_serialize(
2281
+ _param = self._list_runner_permissions_serialize(
2253
2282
  organization_id=organization_id,
2254
2283
  workspace_id=workspace_id,
2255
2284
  runner_id=runner_id,
2285
+ role=role,
2256
2286
  _request_auth=_request_auth,
2257
2287
  _content_type=_content_type,
2258
2288
  _headers=_headers,
@@ -2261,7 +2291,6 @@ class RunnerApi:
2261
2291
 
2262
2292
  _response_types_map: Dict[str, Optional[str]] = {
2263
2293
  '200': "List[str]",
2264
- '404': None,
2265
2294
  }
2266
2295
  response_data = self.api_client.call_api(
2267
2296
  *_param,
@@ -2275,11 +2304,12 @@ class RunnerApi:
2275
2304
 
2276
2305
 
2277
2306
  @validate_call
2278
- def get_runner_security_users_without_preload_content(
2307
+ def list_runner_permissions_without_preload_content(
2279
2308
  self,
2280
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2281
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2282
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2309
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
2310
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
2311
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
2312
+ role: Annotated[StrictStr, Field(description="the Role")],
2283
2313
  _request_timeout: Union[
2284
2314
  None,
2285
2315
  Annotated[StrictFloat, Field(gt=0)],
@@ -2293,7 +2323,7 @@ class RunnerApi:
2293
2323
  _headers: Optional[Dict[StrictStr, Any]] = None,
2294
2324
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2295
2325
  ) -> RESTResponseType:
2296
- """Get the Runner security users list
2326
+ """Get the Runner permission by given role
2297
2327
 
2298
2328
 
2299
2329
  :param organization_id: the Organization identifier (required)
@@ -2302,6 +2332,8 @@ class RunnerApi:
2302
2332
  :type workspace_id: str
2303
2333
  :param runner_id: the Runner identifier (required)
2304
2334
  :type runner_id: str
2335
+ :param role: the Role (required)
2336
+ :type role: str
2305
2337
  :param _request_timeout: timeout setting for this request. If one
2306
2338
  number provided, it will be total request
2307
2339
  timeout. It can also be a pair (tuple) of
@@ -2324,10 +2356,11 @@ class RunnerApi:
2324
2356
  :return: Returns the result object.
2325
2357
  """ # noqa: E501
2326
2358
 
2327
- _param = self._get_runner_security_users_serialize(
2359
+ _param = self._list_runner_permissions_serialize(
2328
2360
  organization_id=organization_id,
2329
2361
  workspace_id=workspace_id,
2330
2362
  runner_id=runner_id,
2363
+ role=role,
2331
2364
  _request_auth=_request_auth,
2332
2365
  _content_type=_content_type,
2333
2366
  _headers=_headers,
@@ -2336,7 +2369,6 @@ class RunnerApi:
2336
2369
 
2337
2370
  _response_types_map: Dict[str, Optional[str]] = {
2338
2371
  '200': "List[str]",
2339
- '404': None,
2340
2372
  }
2341
2373
  response_data = self.api_client.call_api(
2342
2374
  *_param,
@@ -2345,11 +2377,12 @@ class RunnerApi:
2345
2377
  return response_data.response
2346
2378
 
2347
2379
 
2348
- def _get_runner_security_users_serialize(
2380
+ def _list_runner_permissions_serialize(
2349
2381
  self,
2350
2382
  organization_id,
2351
2383
  workspace_id,
2352
2384
  runner_id,
2385
+ role,
2353
2386
  _request_auth,
2354
2387
  _content_type,
2355
2388
  _headers,
@@ -2365,7 +2398,9 @@ class RunnerApi:
2365
2398
  _query_params: List[Tuple[str, str]] = []
2366
2399
  _header_params: Dict[str, Optional[str]] = _headers or {}
2367
2400
  _form_params: List[Tuple[str, str]] = []
2368
- _files: Dict[str, str] = {}
2401
+ _files: Dict[
2402
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2403
+ ] = {}
2369
2404
  _body_params: Optional[bytes] = None
2370
2405
 
2371
2406
  # process the path parameters
@@ -2375,6 +2410,8 @@ class RunnerApi:
2375
2410
  _path_params['workspace_id'] = workspace_id
2376
2411
  if runner_id is not None:
2377
2412
  _path_params['runner_id'] = runner_id
2413
+ if role is not None:
2414
+ _path_params['role'] = role
2378
2415
  # process the query parameters
2379
2416
  # process the header parameters
2380
2417
  # process the form parameters
@@ -2382,11 +2419,13 @@ class RunnerApi:
2382
2419
 
2383
2420
 
2384
2421
  # set the HTTP header `Accept`
2385
- _header_params['Accept'] = self.api_client.select_header_accept(
2386
- [
2387
- 'application/json'
2388
- ]
2389
- )
2422
+ if 'Accept' not in _header_params:
2423
+ _header_params['Accept'] = self.api_client.select_header_accept(
2424
+ [
2425
+ 'application/json',
2426
+ 'application/yaml'
2427
+ ]
2428
+ )
2390
2429
 
2391
2430
 
2392
2431
  # authentication setting
@@ -2396,7 +2435,7 @@ class RunnerApi:
2396
2435
 
2397
2436
  return self.api_client.param_serialize(
2398
2437
  method='GET',
2399
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/users',
2438
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/permissions/{role}',
2400
2439
  path_params=_path_params,
2401
2440
  query_params=_query_params,
2402
2441
  header_params=_header_params,
@@ -2413,12 +2452,11 @@ class RunnerApi:
2413
2452
 
2414
2453
 
2415
2454
  @validate_call
2416
- def list_runners(
2455
+ def list_runner_security_users(
2417
2456
  self,
2418
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2419
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2420
- page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
2421
- size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
2457
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
2458
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
2459
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
2422
2460
  _request_timeout: Union[
2423
2461
  None,
2424
2462
  Annotated[StrictFloat, Field(gt=0)],
@@ -2431,18 +2469,16 @@ class RunnerApi:
2431
2469
  _content_type: Optional[StrictStr] = None,
2432
2470
  _headers: Optional[Dict[StrictStr, Any]] = None,
2433
2471
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2434
- ) -> List[Runner]:
2435
- """List all Runners
2472
+ ) -> List[str]:
2473
+ """Get the Runner security users list
2436
2474
 
2437
2475
 
2438
2476
  :param organization_id: the Organization identifier (required)
2439
2477
  :type organization_id: str
2440
2478
  :param workspace_id: the Workspace identifier (required)
2441
2479
  :type workspace_id: str
2442
- :param page: page number to query
2443
- :type page: int
2444
- :param size: amount of result by page
2445
- :type size: int
2480
+ :param runner_id: the Runner identifier (required)
2481
+ :type runner_id: str
2446
2482
  :param _request_timeout: timeout setting for this request. If one
2447
2483
  number provided, it will be total request
2448
2484
  timeout. It can also be a pair (tuple) of
@@ -2465,11 +2501,10 @@ class RunnerApi:
2465
2501
  :return: Returns the result object.
2466
2502
  """ # noqa: E501
2467
2503
 
2468
- _param = self._list_runners_serialize(
2504
+ _param = self._list_runner_security_users_serialize(
2469
2505
  organization_id=organization_id,
2470
2506
  workspace_id=workspace_id,
2471
- page=page,
2472
- size=size,
2507
+ runner_id=runner_id,
2473
2508
  _request_auth=_request_auth,
2474
2509
  _content_type=_content_type,
2475
2510
  _headers=_headers,
@@ -2477,7 +2512,8 @@ class RunnerApi:
2477
2512
  )
2478
2513
 
2479
2514
  _response_types_map: Dict[str, Optional[str]] = {
2480
- '200': "List[Runner]",
2515
+ '200': "List[str]",
2516
+ '404': None,
2481
2517
  }
2482
2518
  response_data = self.api_client.call_api(
2483
2519
  *_param,
@@ -2491,12 +2527,11 @@ class RunnerApi:
2491
2527
 
2492
2528
 
2493
2529
  @validate_call
2494
- def list_runners_with_http_info(
2530
+ def list_runner_security_users_with_http_info(
2495
2531
  self,
2496
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2497
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2498
- page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
2499
- size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
2532
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
2533
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
2534
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
2500
2535
  _request_timeout: Union[
2501
2536
  None,
2502
2537
  Annotated[StrictFloat, Field(gt=0)],
@@ -2509,18 +2544,16 @@ class RunnerApi:
2509
2544
  _content_type: Optional[StrictStr] = None,
2510
2545
  _headers: Optional[Dict[StrictStr, Any]] = None,
2511
2546
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2512
- ) -> ApiResponse[List[Runner]]:
2513
- """List all Runners
2547
+ ) -> ApiResponse[List[str]]:
2548
+ """Get the Runner security users list
2514
2549
 
2515
2550
 
2516
2551
  :param organization_id: the Organization identifier (required)
2517
2552
  :type organization_id: str
2518
2553
  :param workspace_id: the Workspace identifier (required)
2519
2554
  :type workspace_id: str
2520
- :param page: page number to query
2521
- :type page: int
2522
- :param size: amount of result by page
2523
- :type size: int
2555
+ :param runner_id: the Runner identifier (required)
2556
+ :type runner_id: str
2524
2557
  :param _request_timeout: timeout setting for this request. If one
2525
2558
  number provided, it will be total request
2526
2559
  timeout. It can also be a pair (tuple) of
@@ -2543,11 +2576,10 @@ class RunnerApi:
2543
2576
  :return: Returns the result object.
2544
2577
  """ # noqa: E501
2545
2578
 
2546
- _param = self._list_runners_serialize(
2579
+ _param = self._list_runner_security_users_serialize(
2547
2580
  organization_id=organization_id,
2548
2581
  workspace_id=workspace_id,
2549
- page=page,
2550
- size=size,
2582
+ runner_id=runner_id,
2551
2583
  _request_auth=_request_auth,
2552
2584
  _content_type=_content_type,
2553
2585
  _headers=_headers,
@@ -2555,7 +2587,8 @@ class RunnerApi:
2555
2587
  )
2556
2588
 
2557
2589
  _response_types_map: Dict[str, Optional[str]] = {
2558
- '200': "List[Runner]",
2590
+ '200': "List[str]",
2591
+ '404': None,
2559
2592
  }
2560
2593
  response_data = self.api_client.call_api(
2561
2594
  *_param,
@@ -2569,12 +2602,11 @@ class RunnerApi:
2569
2602
 
2570
2603
 
2571
2604
  @validate_call
2572
- def list_runners_without_preload_content(
2605
+ def list_runner_security_users_without_preload_content(
2573
2606
  self,
2574
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2575
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2576
- page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
2577
- size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
2607
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
2608
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
2609
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
2578
2610
  _request_timeout: Union[
2579
2611
  None,
2580
2612
  Annotated[StrictFloat, Field(gt=0)],
@@ -2588,17 +2620,15 @@ class RunnerApi:
2588
2620
  _headers: Optional[Dict[StrictStr, Any]] = None,
2589
2621
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2590
2622
  ) -> RESTResponseType:
2591
- """List all Runners
2623
+ """Get the Runner security users list
2592
2624
 
2593
2625
 
2594
2626
  :param organization_id: the Organization identifier (required)
2595
2627
  :type organization_id: str
2596
2628
  :param workspace_id: the Workspace identifier (required)
2597
2629
  :type workspace_id: str
2598
- :param page: page number to query
2599
- :type page: int
2600
- :param size: amount of result by page
2601
- :type size: int
2630
+ :param runner_id: the Runner identifier (required)
2631
+ :type runner_id: str
2602
2632
  :param _request_timeout: timeout setting for this request. If one
2603
2633
  number provided, it will be total request
2604
2634
  timeout. It can also be a pair (tuple) of
@@ -2621,11 +2651,10 @@ class RunnerApi:
2621
2651
  :return: Returns the result object.
2622
2652
  """ # noqa: E501
2623
2653
 
2624
- _param = self._list_runners_serialize(
2654
+ _param = self._list_runner_security_users_serialize(
2625
2655
  organization_id=organization_id,
2626
2656
  workspace_id=workspace_id,
2627
- page=page,
2628
- size=size,
2657
+ runner_id=runner_id,
2629
2658
  _request_auth=_request_auth,
2630
2659
  _content_type=_content_type,
2631
2660
  _headers=_headers,
@@ -2633,7 +2662,8 @@ class RunnerApi:
2633
2662
  )
2634
2663
 
2635
2664
  _response_types_map: Dict[str, Optional[str]] = {
2636
- '200': "List[Runner]",
2665
+ '200': "List[str]",
2666
+ '404': None,
2637
2667
  }
2638
2668
  response_data = self.api_client.call_api(
2639
2669
  *_param,
@@ -2642,12 +2672,11 @@ class RunnerApi:
2642
2672
  return response_data.response
2643
2673
 
2644
2674
 
2645
- def _list_runners_serialize(
2675
+ def _list_runner_security_users_serialize(
2646
2676
  self,
2647
2677
  organization_id,
2648
2678
  workspace_id,
2649
- page,
2650
- size,
2679
+ runner_id,
2651
2680
  _request_auth,
2652
2681
  _content_type,
2653
2682
  _headers,
@@ -2663,7 +2692,9 @@ class RunnerApi:
2663
2692
  _query_params: List[Tuple[str, str]] = []
2664
2693
  _header_params: Dict[str, Optional[str]] = _headers or {}
2665
2694
  _form_params: List[Tuple[str, str]] = []
2666
- _files: Dict[str, str] = {}
2695
+ _files: Dict[
2696
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2697
+ ] = {}
2667
2698
  _body_params: Optional[bytes] = None
2668
2699
 
2669
2700
  # process the path parameters
@@ -2671,26 +2702,22 @@ class RunnerApi:
2671
2702
  _path_params['organization_id'] = organization_id
2672
2703
  if workspace_id is not None:
2673
2704
  _path_params['workspace_id'] = workspace_id
2705
+ if runner_id is not None:
2706
+ _path_params['runner_id'] = runner_id
2674
2707
  # process the query parameters
2675
- if page is not None:
2676
-
2677
- _query_params.append(('page', page))
2678
-
2679
- if size is not None:
2680
-
2681
- _query_params.append(('size', size))
2682
-
2683
2708
  # process the header parameters
2684
2709
  # process the form parameters
2685
2710
  # process the body parameter
2686
2711
 
2687
2712
 
2688
2713
  # set the HTTP header `Accept`
2689
- _header_params['Accept'] = self.api_client.select_header_accept(
2690
- [
2691
- 'application/json'
2692
- ]
2693
- )
2714
+ if 'Accept' not in _header_params:
2715
+ _header_params['Accept'] = self.api_client.select_header_accept(
2716
+ [
2717
+ 'application/json',
2718
+ 'application/yaml'
2719
+ ]
2720
+ )
2694
2721
 
2695
2722
 
2696
2723
  # authentication setting
@@ -2700,7 +2727,7 @@ class RunnerApi:
2700
2727
 
2701
2728
  return self.api_client.param_serialize(
2702
2729
  method='GET',
2703
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners',
2730
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/users',
2704
2731
  path_params=_path_params,
2705
2732
  query_params=_query_params,
2706
2733
  header_params=_header_params,
@@ -2717,12 +2744,12 @@ class RunnerApi:
2717
2744
 
2718
2745
 
2719
2746
  @validate_call
2720
- def remove_runner_access_control(
2747
+ def list_runners(
2721
2748
  self,
2722
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2723
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2724
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2725
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
2749
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
2750
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
2751
+ page: Annotated[Optional[StrictInt], Field(description="Page number to query (first page is at index 0)")] = None,
2752
+ size: Annotated[Optional[StrictInt], Field(description="Amount of result by page")] = None,
2726
2753
  _request_timeout: Union[
2727
2754
  None,
2728
2755
  Annotated[StrictFloat, Field(gt=0)],
@@ -2735,18 +2762,18 @@ class RunnerApi:
2735
2762
  _content_type: Optional[StrictStr] = None,
2736
2763
  _headers: Optional[Dict[StrictStr, Any]] = None,
2737
2764
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2738
- ) -> None:
2739
- """Remove the specified access from the given Organization Runner
2765
+ ) -> List[Runner]:
2766
+ """List all Runners
2740
2767
 
2741
2768
 
2742
2769
  :param organization_id: the Organization identifier (required)
2743
2770
  :type organization_id: str
2744
2771
  :param workspace_id: the Workspace identifier (required)
2745
2772
  :type workspace_id: str
2746
- :param runner_id: the Runner identifier (required)
2747
- :type runner_id: str
2748
- :param identity_id: the User identifier (required)
2749
- :type identity_id: str
2773
+ :param page: Page number to query (first page is at index 0)
2774
+ :type page: int
2775
+ :param size: Amount of result by page
2776
+ :type size: int
2750
2777
  :param _request_timeout: timeout setting for this request. If one
2751
2778
  number provided, it will be total request
2752
2779
  timeout. It can also be a pair (tuple) of
@@ -2769,11 +2796,11 @@ class RunnerApi:
2769
2796
  :return: Returns the result object.
2770
2797
  """ # noqa: E501
2771
2798
 
2772
- _param = self._remove_runner_access_control_serialize(
2799
+ _param = self._list_runners_serialize(
2773
2800
  organization_id=organization_id,
2774
2801
  workspace_id=workspace_id,
2775
- runner_id=runner_id,
2776
- identity_id=identity_id,
2802
+ page=page,
2803
+ size=size,
2777
2804
  _request_auth=_request_auth,
2778
2805
  _content_type=_content_type,
2779
2806
  _headers=_headers,
@@ -2781,8 +2808,7 @@ class RunnerApi:
2781
2808
  )
2782
2809
 
2783
2810
  _response_types_map: Dict[str, Optional[str]] = {
2784
- '204': None,
2785
- '404': None,
2811
+ '200': "List[Runner]",
2786
2812
  }
2787
2813
  response_data = self.api_client.call_api(
2788
2814
  *_param,
@@ -2796,12 +2822,12 @@ class RunnerApi:
2796
2822
 
2797
2823
 
2798
2824
  @validate_call
2799
- def remove_runner_access_control_with_http_info(
2825
+ def list_runners_with_http_info(
2800
2826
  self,
2801
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2802
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2803
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2804
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
2827
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
2828
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
2829
+ page: Annotated[Optional[StrictInt], Field(description="Page number to query (first page is at index 0)")] = None,
2830
+ size: Annotated[Optional[StrictInt], Field(description="Amount of result by page")] = None,
2805
2831
  _request_timeout: Union[
2806
2832
  None,
2807
2833
  Annotated[StrictFloat, Field(gt=0)],
@@ -2814,18 +2840,18 @@ class RunnerApi:
2814
2840
  _content_type: Optional[StrictStr] = None,
2815
2841
  _headers: Optional[Dict[StrictStr, Any]] = None,
2816
2842
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2817
- ) -> ApiResponse[None]:
2818
- """Remove the specified access from the given Organization Runner
2843
+ ) -> ApiResponse[List[Runner]]:
2844
+ """List all Runners
2819
2845
 
2820
2846
 
2821
2847
  :param organization_id: the Organization identifier (required)
2822
2848
  :type organization_id: str
2823
2849
  :param workspace_id: the Workspace identifier (required)
2824
2850
  :type workspace_id: str
2825
- :param runner_id: the Runner identifier (required)
2826
- :type runner_id: str
2827
- :param identity_id: the User identifier (required)
2828
- :type identity_id: str
2851
+ :param page: Page number to query (first page is at index 0)
2852
+ :type page: int
2853
+ :param size: Amount of result by page
2854
+ :type size: int
2829
2855
  :param _request_timeout: timeout setting for this request. If one
2830
2856
  number provided, it will be total request
2831
2857
  timeout. It can also be a pair (tuple) of
@@ -2848,11 +2874,11 @@ class RunnerApi:
2848
2874
  :return: Returns the result object.
2849
2875
  """ # noqa: E501
2850
2876
 
2851
- _param = self._remove_runner_access_control_serialize(
2877
+ _param = self._list_runners_serialize(
2852
2878
  organization_id=organization_id,
2853
2879
  workspace_id=workspace_id,
2854
- runner_id=runner_id,
2855
- identity_id=identity_id,
2880
+ page=page,
2881
+ size=size,
2856
2882
  _request_auth=_request_auth,
2857
2883
  _content_type=_content_type,
2858
2884
  _headers=_headers,
@@ -2860,8 +2886,7 @@ class RunnerApi:
2860
2886
  )
2861
2887
 
2862
2888
  _response_types_map: Dict[str, Optional[str]] = {
2863
- '204': None,
2864
- '404': None,
2889
+ '200': "List[Runner]",
2865
2890
  }
2866
2891
  response_data = self.api_client.call_api(
2867
2892
  *_param,
@@ -2875,12 +2900,12 @@ class RunnerApi:
2875
2900
 
2876
2901
 
2877
2902
  @validate_call
2878
- def remove_runner_access_control_without_preload_content(
2903
+ def list_runners_without_preload_content(
2879
2904
  self,
2880
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2881
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2882
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2883
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
2905
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
2906
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
2907
+ page: Annotated[Optional[StrictInt], Field(description="Page number to query (first page is at index 0)")] = None,
2908
+ size: Annotated[Optional[StrictInt], Field(description="Amount of result by page")] = None,
2884
2909
  _request_timeout: Union[
2885
2910
  None,
2886
2911
  Annotated[StrictFloat, Field(gt=0)],
@@ -2894,17 +2919,17 @@ class RunnerApi:
2894
2919
  _headers: Optional[Dict[StrictStr, Any]] = None,
2895
2920
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2896
2921
  ) -> RESTResponseType:
2897
- """Remove the specified access from the given Organization Runner
2922
+ """List all Runners
2898
2923
 
2899
2924
 
2900
2925
  :param organization_id: the Organization identifier (required)
2901
2926
  :type organization_id: str
2902
2927
  :param workspace_id: the Workspace identifier (required)
2903
2928
  :type workspace_id: str
2904
- :param runner_id: the Runner identifier (required)
2905
- :type runner_id: str
2906
- :param identity_id: the User identifier (required)
2907
- :type identity_id: str
2929
+ :param page: Page number to query (first page is at index 0)
2930
+ :type page: int
2931
+ :param size: Amount of result by page
2932
+ :type size: int
2908
2933
  :param _request_timeout: timeout setting for this request. If one
2909
2934
  number provided, it will be total request
2910
2935
  timeout. It can also be a pair (tuple) of
@@ -2927,11 +2952,11 @@ class RunnerApi:
2927
2952
  :return: Returns the result object.
2928
2953
  """ # noqa: E501
2929
2954
 
2930
- _param = self._remove_runner_access_control_serialize(
2955
+ _param = self._list_runners_serialize(
2931
2956
  organization_id=organization_id,
2932
2957
  workspace_id=workspace_id,
2933
- runner_id=runner_id,
2934
- identity_id=identity_id,
2958
+ page=page,
2959
+ size=size,
2935
2960
  _request_auth=_request_auth,
2936
2961
  _content_type=_content_type,
2937
2962
  _headers=_headers,
@@ -2939,8 +2964,7 @@ class RunnerApi:
2939
2964
  )
2940
2965
 
2941
2966
  _response_types_map: Dict[str, Optional[str]] = {
2942
- '204': None,
2943
- '404': None,
2967
+ '200': "List[Runner]",
2944
2968
  }
2945
2969
  response_data = self.api_client.call_api(
2946
2970
  *_param,
@@ -2949,12 +2973,12 @@ class RunnerApi:
2949
2973
  return response_data.response
2950
2974
 
2951
2975
 
2952
- def _remove_runner_access_control_serialize(
2976
+ def _list_runners_serialize(
2953
2977
  self,
2954
2978
  organization_id,
2955
2979
  workspace_id,
2956
- runner_id,
2957
- identity_id,
2980
+ page,
2981
+ size,
2958
2982
  _request_auth,
2959
2983
  _content_type,
2960
2984
  _headers,
@@ -2970,7 +2994,9 @@ class RunnerApi:
2970
2994
  _query_params: List[Tuple[str, str]] = []
2971
2995
  _header_params: Dict[str, Optional[str]] = _headers or {}
2972
2996
  _form_params: List[Tuple[str, str]] = []
2973
- _files: Dict[str, str] = {}
2997
+ _files: Dict[
2998
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2999
+ ] = {}
2974
3000
  _body_params: Optional[bytes] = None
2975
3001
 
2976
3002
  # process the path parameters
@@ -2978,16 +3004,28 @@ class RunnerApi:
2978
3004
  _path_params['organization_id'] = organization_id
2979
3005
  if workspace_id is not None:
2980
3006
  _path_params['workspace_id'] = workspace_id
2981
- if runner_id is not None:
2982
- _path_params['runner_id'] = runner_id
2983
- if identity_id is not None:
2984
- _path_params['identity_id'] = identity_id
2985
3007
  # process the query parameters
3008
+ if page is not None:
3009
+
3010
+ _query_params.append(('page', page))
3011
+
3012
+ if size is not None:
3013
+
3014
+ _query_params.append(('size', size))
3015
+
2986
3016
  # process the header parameters
2987
3017
  # process the form parameters
2988
3018
  # process the body parameter
2989
3019
 
2990
3020
 
3021
+ # set the HTTP header `Accept`
3022
+ if 'Accept' not in _header_params:
3023
+ _header_params['Accept'] = self.api_client.select_header_accept(
3024
+ [
3025
+ 'application/json',
3026
+ 'application/yaml'
3027
+ ]
3028
+ )
2991
3029
 
2992
3030
 
2993
3031
  # authentication setting
@@ -2996,8 +3034,8 @@ class RunnerApi:
2996
3034
  ]
2997
3035
 
2998
3036
  return self.api_client.param_serialize(
2999
- method='DELETE',
3000
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id}',
3037
+ method='GET',
3038
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners',
3001
3039
  path_params=_path_params,
3002
3040
  query_params=_query_params,
3003
3041
  header_params=_header_params,
@@ -3014,12 +3052,11 @@ class RunnerApi:
3014
3052
 
3015
3053
 
3016
3054
  @validate_call
3017
- def set_runner_default_security(
3055
+ def start_run(
3018
3056
  self,
3019
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3020
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3021
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3022
- runner_role: Annotated[RunnerRole, Field(description="This change the runner 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 runner.")],
3057
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
3058
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
3059
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
3023
3060
  _request_timeout: Union[
3024
3061
  None,
3025
3062
  Annotated[StrictFloat, Field(gt=0)],
@@ -3032,8 +3069,8 @@ class RunnerApi:
3032
3069
  _content_type: Optional[StrictStr] = None,
3033
3070
  _headers: Optional[Dict[StrictStr, Any]] = None,
3034
3071
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3035
- ) -> RunnerSecurity:
3036
- """Set the Runner default security
3072
+ ) -> CreatedRun:
3073
+ """Start a run with runner parameters
3037
3074
 
3038
3075
 
3039
3076
  :param organization_id: the Organization identifier (required)
@@ -3042,8 +3079,6 @@ class RunnerApi:
3042
3079
  :type workspace_id: str
3043
3080
  :param runner_id: the Runner identifier (required)
3044
3081
  :type runner_id: str
3045
- :param runner_role: This change the runner 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 runner. (required)
3046
- :type runner_role: RunnerRole
3047
3082
  :param _request_timeout: timeout setting for this request. If one
3048
3083
  number provided, it will be total request
3049
3084
  timeout. It can also be a pair (tuple) of
@@ -3066,11 +3101,10 @@ class RunnerApi:
3066
3101
  :return: Returns the result object.
3067
3102
  """ # noqa: E501
3068
3103
 
3069
- _param = self._set_runner_default_security_serialize(
3104
+ _param = self._start_run_serialize(
3070
3105
  organization_id=organization_id,
3071
3106
  workspace_id=workspace_id,
3072
3107
  runner_id=runner_id,
3073
- runner_role=runner_role,
3074
3108
  _request_auth=_request_auth,
3075
3109
  _content_type=_content_type,
3076
3110
  _headers=_headers,
@@ -3078,7 +3112,7 @@ class RunnerApi:
3078
3112
  )
3079
3113
 
3080
3114
  _response_types_map: Dict[str, Optional[str]] = {
3081
- '201': "RunnerSecurity",
3115
+ '202': "CreatedRun",
3082
3116
  '404': None,
3083
3117
  }
3084
3118
  response_data = self.api_client.call_api(
@@ -3093,12 +3127,11 @@ class RunnerApi:
3093
3127
 
3094
3128
 
3095
3129
  @validate_call
3096
- def set_runner_default_security_with_http_info(
3130
+ def start_run_with_http_info(
3097
3131
  self,
3098
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3099
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3100
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3101
- runner_role: Annotated[RunnerRole, Field(description="This change the runner 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 runner.")],
3132
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
3133
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
3134
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
3102
3135
  _request_timeout: Union[
3103
3136
  None,
3104
3137
  Annotated[StrictFloat, Field(gt=0)],
@@ -3111,8 +3144,8 @@ class RunnerApi:
3111
3144
  _content_type: Optional[StrictStr] = None,
3112
3145
  _headers: Optional[Dict[StrictStr, Any]] = None,
3113
3146
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3114
- ) -> ApiResponse[RunnerSecurity]:
3115
- """Set the Runner default security
3147
+ ) -> ApiResponse[CreatedRun]:
3148
+ """Start a run with runner parameters
3116
3149
 
3117
3150
 
3118
3151
  :param organization_id: the Organization identifier (required)
@@ -3121,8 +3154,6 @@ class RunnerApi:
3121
3154
  :type workspace_id: str
3122
3155
  :param runner_id: the Runner identifier (required)
3123
3156
  :type runner_id: str
3124
- :param runner_role: This change the runner 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 runner. (required)
3125
- :type runner_role: RunnerRole
3126
3157
  :param _request_timeout: timeout setting for this request. If one
3127
3158
  number provided, it will be total request
3128
3159
  timeout. It can also be a pair (tuple) of
@@ -3145,11 +3176,10 @@ class RunnerApi:
3145
3176
  :return: Returns the result object.
3146
3177
  """ # noqa: E501
3147
3178
 
3148
- _param = self._set_runner_default_security_serialize(
3179
+ _param = self._start_run_serialize(
3149
3180
  organization_id=organization_id,
3150
3181
  workspace_id=workspace_id,
3151
3182
  runner_id=runner_id,
3152
- runner_role=runner_role,
3153
3183
  _request_auth=_request_auth,
3154
3184
  _content_type=_content_type,
3155
3185
  _headers=_headers,
@@ -3157,7 +3187,7 @@ class RunnerApi:
3157
3187
  )
3158
3188
 
3159
3189
  _response_types_map: Dict[str, Optional[str]] = {
3160
- '201': "RunnerSecurity",
3190
+ '202': "CreatedRun",
3161
3191
  '404': None,
3162
3192
  }
3163
3193
  response_data = self.api_client.call_api(
@@ -3172,12 +3202,11 @@ class RunnerApi:
3172
3202
 
3173
3203
 
3174
3204
  @validate_call
3175
- def set_runner_default_security_without_preload_content(
3205
+ def start_run_without_preload_content(
3176
3206
  self,
3177
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3178
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3179
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3180
- runner_role: Annotated[RunnerRole, Field(description="This change the runner 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 runner.")],
3207
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
3208
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
3209
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
3181
3210
  _request_timeout: Union[
3182
3211
  None,
3183
3212
  Annotated[StrictFloat, Field(gt=0)],
@@ -3191,7 +3220,7 @@ class RunnerApi:
3191
3220
  _headers: Optional[Dict[StrictStr, Any]] = None,
3192
3221
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3193
3222
  ) -> RESTResponseType:
3194
- """Set the Runner default security
3223
+ """Start a run with runner parameters
3195
3224
 
3196
3225
 
3197
3226
  :param organization_id: the Organization identifier (required)
@@ -3200,8 +3229,6 @@ class RunnerApi:
3200
3229
  :type workspace_id: str
3201
3230
  :param runner_id: the Runner identifier (required)
3202
3231
  :type runner_id: str
3203
- :param runner_role: This change the runner 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 runner. (required)
3204
- :type runner_role: RunnerRole
3205
3232
  :param _request_timeout: timeout setting for this request. If one
3206
3233
  number provided, it will be total request
3207
3234
  timeout. It can also be a pair (tuple) of
@@ -3224,11 +3251,10 @@ class RunnerApi:
3224
3251
  :return: Returns the result object.
3225
3252
  """ # noqa: E501
3226
3253
 
3227
- _param = self._set_runner_default_security_serialize(
3254
+ _param = self._start_run_serialize(
3228
3255
  organization_id=organization_id,
3229
3256
  workspace_id=workspace_id,
3230
3257
  runner_id=runner_id,
3231
- runner_role=runner_role,
3232
3258
  _request_auth=_request_auth,
3233
3259
  _content_type=_content_type,
3234
3260
  _headers=_headers,
@@ -3236,7 +3262,7 @@ class RunnerApi:
3236
3262
  )
3237
3263
 
3238
3264
  _response_types_map: Dict[str, Optional[str]] = {
3239
- '201': "RunnerSecurity",
3265
+ '202': "CreatedRun",
3240
3266
  '404': None,
3241
3267
  }
3242
3268
  response_data = self.api_client.call_api(
@@ -3246,12 +3272,11 @@ class RunnerApi:
3246
3272
  return response_data.response
3247
3273
 
3248
3274
 
3249
- def _set_runner_default_security_serialize(
3275
+ def _start_run_serialize(
3250
3276
  self,
3251
3277
  organization_id,
3252
3278
  workspace_id,
3253
3279
  runner_id,
3254
- runner_role,
3255
3280
  _request_auth,
3256
3281
  _content_type,
3257
3282
  _headers,
@@ -3267,7 +3292,9 @@ class RunnerApi:
3267
3292
  _query_params: List[Tuple[str, str]] = []
3268
3293
  _header_params: Dict[str, Optional[str]] = _headers or {}
3269
3294
  _form_params: List[Tuple[str, str]] = []
3270
- _files: Dict[str, str] = {}
3295
+ _files: Dict[
3296
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3297
+ ] = {}
3271
3298
  _body_params: Optional[bytes] = None
3272
3299
 
3273
3300
  # process the path parameters
@@ -3281,31 +3308,17 @@ class RunnerApi:
3281
3308
  # process the header parameters
3282
3309
  # process the form parameters
3283
3310
  # process the body parameter
3284
- if runner_role is not None:
3285
- _body_params = runner_role
3286
3311
 
3287
3312
 
3288
3313
  # set the HTTP header `Accept`
3289
- _header_params['Accept'] = self.api_client.select_header_accept(
3290
- [
3291
- 'application/json'
3292
- ]
3293
- )
3294
-
3295
- # set the HTTP header `Content-Type`
3296
- if _content_type:
3297
- _header_params['Content-Type'] = _content_type
3298
- else:
3299
- _default_content_type = (
3300
- self.api_client.select_header_content_type(
3301
- [
3302
- 'application/json',
3303
- 'application/yaml'
3304
- ]
3305
- )
3314
+ if 'Accept' not in _header_params:
3315
+ _header_params['Accept'] = self.api_client.select_header_accept(
3316
+ [
3317
+ 'application/json',
3318
+ 'application/yaml'
3319
+ ]
3306
3320
  )
3307
- if _default_content_type is not None:
3308
- _header_params['Content-Type'] = _default_content_type
3321
+
3309
3322
 
3310
3323
  # authentication setting
3311
3324
  _auth_settings: List[str] = [
@@ -3314,7 +3327,7 @@ class RunnerApi:
3314
3327
 
3315
3328
  return self.api_client.param_serialize(
3316
3329
  method='POST',
3317
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/default',
3330
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/start',
3318
3331
  path_params=_path_params,
3319
3332
  query_params=_query_params,
3320
3333
  header_params=_header_params,
@@ -3331,11 +3344,11 @@ class RunnerApi:
3331
3344
 
3332
3345
 
3333
3346
  @validate_call
3334
- def start_run(
3347
+ def stop_run(
3335
3348
  self,
3336
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3337
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3338
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3349
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
3350
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
3351
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
3339
3352
  _request_timeout: Union[
3340
3353
  None,
3341
3354
  Annotated[StrictFloat, Field(gt=0)],
@@ -3348,8 +3361,8 @@ class RunnerApi:
3348
3361
  _content_type: Optional[StrictStr] = None,
3349
3362
  _headers: Optional[Dict[StrictStr, Any]] = None,
3350
3363
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3351
- ) -> RunnerLastRun:
3352
- """Start a run with runner parameters
3364
+ ) -> None:
3365
+ """Stop the last run
3353
3366
 
3354
3367
 
3355
3368
  :param organization_id: the Organization identifier (required)
@@ -3380,7 +3393,7 @@ class RunnerApi:
3380
3393
  :return: Returns the result object.
3381
3394
  """ # noqa: E501
3382
3395
 
3383
- _param = self._start_run_serialize(
3396
+ _param = self._stop_run_serialize(
3384
3397
  organization_id=organization_id,
3385
3398
  workspace_id=workspace_id,
3386
3399
  runner_id=runner_id,
@@ -3391,7 +3404,7 @@ class RunnerApi:
3391
3404
  )
3392
3405
 
3393
3406
  _response_types_map: Dict[str, Optional[str]] = {
3394
- '202': "RunnerLastRun",
3407
+ '202': None,
3395
3408
  '404': None,
3396
3409
  }
3397
3410
  response_data = self.api_client.call_api(
@@ -3406,11 +3419,11 @@ class RunnerApi:
3406
3419
 
3407
3420
 
3408
3421
  @validate_call
3409
- def start_run_with_http_info(
3422
+ def stop_run_with_http_info(
3410
3423
  self,
3411
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3412
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3413
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3424
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
3425
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
3426
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
3414
3427
  _request_timeout: Union[
3415
3428
  None,
3416
3429
  Annotated[StrictFloat, Field(gt=0)],
@@ -3423,8 +3436,8 @@ class RunnerApi:
3423
3436
  _content_type: Optional[StrictStr] = None,
3424
3437
  _headers: Optional[Dict[StrictStr, Any]] = None,
3425
3438
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3426
- ) -> ApiResponse[RunnerLastRun]:
3427
- """Start a run with runner parameters
3439
+ ) -> ApiResponse[None]:
3440
+ """Stop the last run
3428
3441
 
3429
3442
 
3430
3443
  :param organization_id: the Organization identifier (required)
@@ -3455,7 +3468,7 @@ class RunnerApi:
3455
3468
  :return: Returns the result object.
3456
3469
  """ # noqa: E501
3457
3470
 
3458
- _param = self._start_run_serialize(
3471
+ _param = self._stop_run_serialize(
3459
3472
  organization_id=organization_id,
3460
3473
  workspace_id=workspace_id,
3461
3474
  runner_id=runner_id,
@@ -3466,7 +3479,7 @@ class RunnerApi:
3466
3479
  )
3467
3480
 
3468
3481
  _response_types_map: Dict[str, Optional[str]] = {
3469
- '202': "RunnerLastRun",
3482
+ '202': None,
3470
3483
  '404': None,
3471
3484
  }
3472
3485
  response_data = self.api_client.call_api(
@@ -3481,11 +3494,11 @@ class RunnerApi:
3481
3494
 
3482
3495
 
3483
3496
  @validate_call
3484
- def start_run_without_preload_content(
3497
+ def stop_run_without_preload_content(
3485
3498
  self,
3486
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3487
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3488
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3499
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
3500
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
3501
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
3489
3502
  _request_timeout: Union[
3490
3503
  None,
3491
3504
  Annotated[StrictFloat, Field(gt=0)],
@@ -3499,7 +3512,7 @@ class RunnerApi:
3499
3512
  _headers: Optional[Dict[StrictStr, Any]] = None,
3500
3513
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3501
3514
  ) -> RESTResponseType:
3502
- """Start a run with runner parameters
3515
+ """Stop the last run
3503
3516
 
3504
3517
 
3505
3518
  :param organization_id: the Organization identifier (required)
@@ -3530,7 +3543,7 @@ class RunnerApi:
3530
3543
  :return: Returns the result object.
3531
3544
  """ # noqa: E501
3532
3545
 
3533
- _param = self._start_run_serialize(
3546
+ _param = self._stop_run_serialize(
3534
3547
  organization_id=organization_id,
3535
3548
  workspace_id=workspace_id,
3536
3549
  runner_id=runner_id,
@@ -3541,7 +3554,7 @@ class RunnerApi:
3541
3554
  )
3542
3555
 
3543
3556
  _response_types_map: Dict[str, Optional[str]] = {
3544
- '202': "RunnerLastRun",
3557
+ '202': None,
3545
3558
  '404': None,
3546
3559
  }
3547
3560
  response_data = self.api_client.call_api(
@@ -3551,7 +3564,7 @@ class RunnerApi:
3551
3564
  return response_data.response
3552
3565
 
3553
3566
 
3554
- def _start_run_serialize(
3567
+ def _stop_run_serialize(
3555
3568
  self,
3556
3569
  organization_id,
3557
3570
  workspace_id,
@@ -3571,7 +3584,9 @@ class RunnerApi:
3571
3584
  _query_params: List[Tuple[str, str]] = []
3572
3585
  _header_params: Dict[str, Optional[str]] = _headers or {}
3573
3586
  _form_params: List[Tuple[str, str]] = []
3574
- _files: Dict[str, str] = {}
3587
+ _files: Dict[
3588
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3589
+ ] = {}
3575
3590
  _body_params: Optional[bytes] = None
3576
3591
 
3577
3592
  # process the path parameters
@@ -3587,12 +3602,6 @@ class RunnerApi:
3587
3602
  # process the body parameter
3588
3603
 
3589
3604
 
3590
- # set the HTTP header `Accept`
3591
- _header_params['Accept'] = self.api_client.select_header_accept(
3592
- [
3593
- 'application/json'
3594
- ]
3595
- )
3596
3605
 
3597
3606
 
3598
3607
  # authentication setting
@@ -3602,7 +3611,7 @@ class RunnerApi:
3602
3611
 
3603
3612
  return self.api_client.param_serialize(
3604
3613
  method='POST',
3605
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/start',
3614
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/stop',
3606
3615
  path_params=_path_params,
3607
3616
  query_params=_query_params,
3608
3617
  header_params=_header_params,
@@ -3619,11 +3628,12 @@ class RunnerApi:
3619
3628
 
3620
3629
 
3621
3630
  @validate_call
3622
- def stop_run(
3631
+ def update_runner(
3623
3632
  self,
3624
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3625
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3626
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3633
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
3634
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
3635
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
3636
+ runner_update_request: Annotated[RunnerUpdateRequest, Field(description="the new Runner details. This endpoint can't be used to update security")],
3627
3637
  _request_timeout: Union[
3628
3638
  None,
3629
3639
  Annotated[StrictFloat, Field(gt=0)],
@@ -3636,8 +3646,8 @@ class RunnerApi:
3636
3646
  _content_type: Optional[StrictStr] = None,
3637
3647
  _headers: Optional[Dict[StrictStr, Any]] = None,
3638
3648
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3639
- ) -> None:
3640
- """Stop the last run
3649
+ ) -> Runner:
3650
+ """Update a runner
3641
3651
 
3642
3652
 
3643
3653
  :param organization_id: the Organization identifier (required)
@@ -3646,6 +3656,8 @@ class RunnerApi:
3646
3656
  :type workspace_id: str
3647
3657
  :param runner_id: the Runner identifier (required)
3648
3658
  :type runner_id: str
3659
+ :param runner_update_request: the new Runner details. This endpoint can't be used to update security (required)
3660
+ :type runner_update_request: RunnerUpdateRequest
3649
3661
  :param _request_timeout: timeout setting for this request. If one
3650
3662
  number provided, it will be total request
3651
3663
  timeout. It can also be a pair (tuple) of
@@ -3668,10 +3680,11 @@ class RunnerApi:
3668
3680
  :return: Returns the result object.
3669
3681
  """ # noqa: E501
3670
3682
 
3671
- _param = self._stop_run_serialize(
3683
+ _param = self._update_runner_serialize(
3672
3684
  organization_id=organization_id,
3673
3685
  workspace_id=workspace_id,
3674
3686
  runner_id=runner_id,
3687
+ runner_update_request=runner_update_request,
3675
3688
  _request_auth=_request_auth,
3676
3689
  _content_type=_content_type,
3677
3690
  _headers=_headers,
@@ -3679,7 +3692,8 @@ class RunnerApi:
3679
3692
  )
3680
3693
 
3681
3694
  _response_types_map: Dict[str, Optional[str]] = {
3682
- '202': None,
3695
+ '200': "Runner",
3696
+ '400': None,
3683
3697
  '404': None,
3684
3698
  }
3685
3699
  response_data = self.api_client.call_api(
@@ -3694,11 +3708,12 @@ class RunnerApi:
3694
3708
 
3695
3709
 
3696
3710
  @validate_call
3697
- def stop_run_with_http_info(
3711
+ def update_runner_with_http_info(
3698
3712
  self,
3699
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3700
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3701
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3713
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
3714
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
3715
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
3716
+ runner_update_request: Annotated[RunnerUpdateRequest, Field(description="the new Runner details. This endpoint can't be used to update security")],
3702
3717
  _request_timeout: Union[
3703
3718
  None,
3704
3719
  Annotated[StrictFloat, Field(gt=0)],
@@ -3711,8 +3726,8 @@ class RunnerApi:
3711
3726
  _content_type: Optional[StrictStr] = None,
3712
3727
  _headers: Optional[Dict[StrictStr, Any]] = None,
3713
3728
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3714
- ) -> ApiResponse[None]:
3715
- """Stop the last run
3729
+ ) -> ApiResponse[Runner]:
3730
+ """Update a runner
3716
3731
 
3717
3732
 
3718
3733
  :param organization_id: the Organization identifier (required)
@@ -3721,6 +3736,8 @@ class RunnerApi:
3721
3736
  :type workspace_id: str
3722
3737
  :param runner_id: the Runner identifier (required)
3723
3738
  :type runner_id: str
3739
+ :param runner_update_request: the new Runner details. This endpoint can't be used to update security (required)
3740
+ :type runner_update_request: RunnerUpdateRequest
3724
3741
  :param _request_timeout: timeout setting for this request. If one
3725
3742
  number provided, it will be total request
3726
3743
  timeout. It can also be a pair (tuple) of
@@ -3743,10 +3760,11 @@ class RunnerApi:
3743
3760
  :return: Returns the result object.
3744
3761
  """ # noqa: E501
3745
3762
 
3746
- _param = self._stop_run_serialize(
3763
+ _param = self._update_runner_serialize(
3747
3764
  organization_id=organization_id,
3748
3765
  workspace_id=workspace_id,
3749
3766
  runner_id=runner_id,
3767
+ runner_update_request=runner_update_request,
3750
3768
  _request_auth=_request_auth,
3751
3769
  _content_type=_content_type,
3752
3770
  _headers=_headers,
@@ -3754,7 +3772,8 @@ class RunnerApi:
3754
3772
  )
3755
3773
 
3756
3774
  _response_types_map: Dict[str, Optional[str]] = {
3757
- '202': None,
3775
+ '200': "Runner",
3776
+ '400': None,
3758
3777
  '404': None,
3759
3778
  }
3760
3779
  response_data = self.api_client.call_api(
@@ -3769,11 +3788,12 @@ class RunnerApi:
3769
3788
 
3770
3789
 
3771
3790
  @validate_call
3772
- def stop_run_without_preload_content(
3791
+ def update_runner_without_preload_content(
3773
3792
  self,
3774
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3775
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3776
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3793
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
3794
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
3795
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
3796
+ runner_update_request: Annotated[RunnerUpdateRequest, Field(description="the new Runner details. This endpoint can't be used to update security")],
3777
3797
  _request_timeout: Union[
3778
3798
  None,
3779
3799
  Annotated[StrictFloat, Field(gt=0)],
@@ -3787,7 +3807,7 @@ class RunnerApi:
3787
3807
  _headers: Optional[Dict[StrictStr, Any]] = None,
3788
3808
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3789
3809
  ) -> RESTResponseType:
3790
- """Stop the last run
3810
+ """Update a runner
3791
3811
 
3792
3812
 
3793
3813
  :param organization_id: the Organization identifier (required)
@@ -3796,6 +3816,8 @@ class RunnerApi:
3796
3816
  :type workspace_id: str
3797
3817
  :param runner_id: the Runner identifier (required)
3798
3818
  :type runner_id: str
3819
+ :param runner_update_request: the new Runner details. This endpoint can't be used to update security (required)
3820
+ :type runner_update_request: RunnerUpdateRequest
3799
3821
  :param _request_timeout: timeout setting for this request. If one
3800
3822
  number provided, it will be total request
3801
3823
  timeout. It can also be a pair (tuple) of
@@ -3818,10 +3840,11 @@ class RunnerApi:
3818
3840
  :return: Returns the result object.
3819
3841
  """ # noqa: E501
3820
3842
 
3821
- _param = self._stop_run_serialize(
3843
+ _param = self._update_runner_serialize(
3822
3844
  organization_id=organization_id,
3823
3845
  workspace_id=workspace_id,
3824
3846
  runner_id=runner_id,
3847
+ runner_update_request=runner_update_request,
3825
3848
  _request_auth=_request_auth,
3826
3849
  _content_type=_content_type,
3827
3850
  _headers=_headers,
@@ -3829,7 +3852,8 @@ class RunnerApi:
3829
3852
  )
3830
3853
 
3831
3854
  _response_types_map: Dict[str, Optional[str]] = {
3832
- '202': None,
3855
+ '200': "Runner",
3856
+ '400': None,
3833
3857
  '404': None,
3834
3858
  }
3835
3859
  response_data = self.api_client.call_api(
@@ -3839,11 +3863,12 @@ class RunnerApi:
3839
3863
  return response_data.response
3840
3864
 
3841
3865
 
3842
- def _stop_run_serialize(
3866
+ def _update_runner_serialize(
3843
3867
  self,
3844
3868
  organization_id,
3845
3869
  workspace_id,
3846
3870
  runner_id,
3871
+ runner_update_request,
3847
3872
  _request_auth,
3848
3873
  _content_type,
3849
3874
  _headers,
@@ -3859,7 +3884,9 @@ class RunnerApi:
3859
3884
  _query_params: List[Tuple[str, str]] = []
3860
3885
  _header_params: Dict[str, Optional[str]] = _headers or {}
3861
3886
  _form_params: List[Tuple[str, str]] = []
3862
- _files: Dict[str, str] = {}
3887
+ _files: Dict[
3888
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3889
+ ] = {}
3863
3890
  _body_params: Optional[bytes] = None
3864
3891
 
3865
3892
  # process the path parameters
@@ -3873,9 +3900,33 @@ class RunnerApi:
3873
3900
  # process the header parameters
3874
3901
  # process the form parameters
3875
3902
  # process the body parameter
3903
+ if runner_update_request is not None:
3904
+ _body_params = runner_update_request
3876
3905
 
3877
3906
 
3907
+ # set the HTTP header `Accept`
3908
+ if 'Accept' not in _header_params:
3909
+ _header_params['Accept'] = self.api_client.select_header_accept(
3910
+ [
3911
+ 'application/json',
3912
+ 'application/yaml'
3913
+ ]
3914
+ )
3878
3915
 
3916
+ # set the HTTP header `Content-Type`
3917
+ if _content_type:
3918
+ _header_params['Content-Type'] = _content_type
3919
+ else:
3920
+ _default_content_type = (
3921
+ self.api_client.select_header_content_type(
3922
+ [
3923
+ 'application/json',
3924
+ 'application/yaml'
3925
+ ]
3926
+ )
3927
+ )
3928
+ if _default_content_type is not None:
3929
+ _header_params['Content-Type'] = _default_content_type
3879
3930
 
3880
3931
  # authentication setting
3881
3932
  _auth_settings: List[str] = [
@@ -3883,8 +3934,8 @@ class RunnerApi:
3883
3934
  ]
3884
3935
 
3885
3936
  return self.api_client.param_serialize(
3886
- method='POST',
3887
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/stop',
3937
+ method='PATCH',
3938
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}',
3888
3939
  path_params=_path_params,
3889
3940
  query_params=_query_params,
3890
3941
  header_params=_header_params,
@@ -3901,12 +3952,13 @@ class RunnerApi:
3901
3952
 
3902
3953
 
3903
3954
  @validate_call
3904
- def update_runner(
3955
+ def update_runner_access_control(
3905
3956
  self,
3906
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3907
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3908
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3909
- runner: Annotated[Runner, Field(description="the new Runner details. This endpoint can't be used to update security")],
3957
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
3958
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
3959
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
3960
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
3961
+ runner_role: Annotated[RunnerRole, Field(description="The new Runner Access Control")],
3910
3962
  _request_timeout: Union[
3911
3963
  None,
3912
3964
  Annotated[StrictFloat, Field(gt=0)],
@@ -3919,8 +3971,8 @@ class RunnerApi:
3919
3971
  _content_type: Optional[StrictStr] = None,
3920
3972
  _headers: Optional[Dict[StrictStr, Any]] = None,
3921
3973
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3922
- ) -> Runner:
3923
- """Update a runner
3974
+ ) -> RunnerAccessControl:
3975
+ """Update the specified access to User for a Runner
3924
3976
 
3925
3977
 
3926
3978
  :param organization_id: the Organization identifier (required)
@@ -3929,8 +3981,10 @@ class RunnerApi:
3929
3981
  :type workspace_id: str
3930
3982
  :param runner_id: the Runner identifier (required)
3931
3983
  :type runner_id: str
3932
- :param runner: the new Runner details. This endpoint can't be used to update security (required)
3933
- :type runner: Runner
3984
+ :param identity_id: the User identifier (required)
3985
+ :type identity_id: str
3986
+ :param runner_role: The new Runner Access Control (required)
3987
+ :type runner_role: RunnerRole
3934
3988
  :param _request_timeout: timeout setting for this request. If one
3935
3989
  number provided, it will be total request
3936
3990
  timeout. It can also be a pair (tuple) of
@@ -3953,11 +4007,12 @@ class RunnerApi:
3953
4007
  :return: Returns the result object.
3954
4008
  """ # noqa: E501
3955
4009
 
3956
- _param = self._update_runner_serialize(
4010
+ _param = self._update_runner_access_control_serialize(
3957
4011
  organization_id=organization_id,
3958
4012
  workspace_id=workspace_id,
3959
4013
  runner_id=runner_id,
3960
- runner=runner,
4014
+ identity_id=identity_id,
4015
+ runner_role=runner_role,
3961
4016
  _request_auth=_request_auth,
3962
4017
  _content_type=_content_type,
3963
4018
  _headers=_headers,
@@ -3965,8 +4020,7 @@ class RunnerApi:
3965
4020
  )
3966
4021
 
3967
4022
  _response_types_map: Dict[str, Optional[str]] = {
3968
- '200': "Runner",
3969
- '400': None,
4023
+ '200': "RunnerAccessControl",
3970
4024
  '404': None,
3971
4025
  }
3972
4026
  response_data = self.api_client.call_api(
@@ -3981,12 +4035,13 @@ class RunnerApi:
3981
4035
 
3982
4036
 
3983
4037
  @validate_call
3984
- def update_runner_with_http_info(
4038
+ def update_runner_access_control_with_http_info(
3985
4039
  self,
3986
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3987
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3988
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3989
- runner: Annotated[Runner, Field(description="the new Runner details. This endpoint can't be used to update security")],
4040
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
4041
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
4042
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
4043
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
4044
+ runner_role: Annotated[RunnerRole, Field(description="The new Runner Access Control")],
3990
4045
  _request_timeout: Union[
3991
4046
  None,
3992
4047
  Annotated[StrictFloat, Field(gt=0)],
@@ -3999,8 +4054,8 @@ class RunnerApi:
3999
4054
  _content_type: Optional[StrictStr] = None,
4000
4055
  _headers: Optional[Dict[StrictStr, Any]] = None,
4001
4056
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4002
- ) -> ApiResponse[Runner]:
4003
- """Update a runner
4057
+ ) -> ApiResponse[RunnerAccessControl]:
4058
+ """Update the specified access to User for a Runner
4004
4059
 
4005
4060
 
4006
4061
  :param organization_id: the Organization identifier (required)
@@ -4009,8 +4064,10 @@ class RunnerApi:
4009
4064
  :type workspace_id: str
4010
4065
  :param runner_id: the Runner identifier (required)
4011
4066
  :type runner_id: str
4012
- :param runner: the new Runner details. This endpoint can't be used to update security (required)
4013
- :type runner: Runner
4067
+ :param identity_id: the User identifier (required)
4068
+ :type identity_id: str
4069
+ :param runner_role: The new Runner Access Control (required)
4070
+ :type runner_role: RunnerRole
4014
4071
  :param _request_timeout: timeout setting for this request. If one
4015
4072
  number provided, it will be total request
4016
4073
  timeout. It can also be a pair (tuple) of
@@ -4033,11 +4090,12 @@ class RunnerApi:
4033
4090
  :return: Returns the result object.
4034
4091
  """ # noqa: E501
4035
4092
 
4036
- _param = self._update_runner_serialize(
4093
+ _param = self._update_runner_access_control_serialize(
4037
4094
  organization_id=organization_id,
4038
4095
  workspace_id=workspace_id,
4039
4096
  runner_id=runner_id,
4040
- runner=runner,
4097
+ identity_id=identity_id,
4098
+ runner_role=runner_role,
4041
4099
  _request_auth=_request_auth,
4042
4100
  _content_type=_content_type,
4043
4101
  _headers=_headers,
@@ -4045,8 +4103,7 @@ class RunnerApi:
4045
4103
  )
4046
4104
 
4047
4105
  _response_types_map: Dict[str, Optional[str]] = {
4048
- '200': "Runner",
4049
- '400': None,
4106
+ '200': "RunnerAccessControl",
4050
4107
  '404': None,
4051
4108
  }
4052
4109
  response_data = self.api_client.call_api(
@@ -4061,12 +4118,13 @@ class RunnerApi:
4061
4118
 
4062
4119
 
4063
4120
  @validate_call
4064
- def update_runner_without_preload_content(
4121
+ def update_runner_access_control_without_preload_content(
4065
4122
  self,
4066
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4067
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4068
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
4069
- runner: Annotated[Runner, Field(description="the new Runner details. This endpoint can't be used to update security")],
4123
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
4124
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
4125
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
4126
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
4127
+ runner_role: Annotated[RunnerRole, Field(description="The new Runner Access Control")],
4070
4128
  _request_timeout: Union[
4071
4129
  None,
4072
4130
  Annotated[StrictFloat, Field(gt=0)],
@@ -4080,7 +4138,7 @@ class RunnerApi:
4080
4138
  _headers: Optional[Dict[StrictStr, Any]] = None,
4081
4139
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4082
4140
  ) -> RESTResponseType:
4083
- """Update a runner
4141
+ """Update the specified access to User for a Runner
4084
4142
 
4085
4143
 
4086
4144
  :param organization_id: the Organization identifier (required)
@@ -4089,8 +4147,10 @@ class RunnerApi:
4089
4147
  :type workspace_id: str
4090
4148
  :param runner_id: the Runner identifier (required)
4091
4149
  :type runner_id: str
4092
- :param runner: the new Runner details. This endpoint can't be used to update security (required)
4093
- :type runner: Runner
4150
+ :param identity_id: the User identifier (required)
4151
+ :type identity_id: str
4152
+ :param runner_role: The new Runner Access Control (required)
4153
+ :type runner_role: RunnerRole
4094
4154
  :param _request_timeout: timeout setting for this request. If one
4095
4155
  number provided, it will be total request
4096
4156
  timeout. It can also be a pair (tuple) of
@@ -4113,11 +4173,12 @@ class RunnerApi:
4113
4173
  :return: Returns the result object.
4114
4174
  """ # noqa: E501
4115
4175
 
4116
- _param = self._update_runner_serialize(
4176
+ _param = self._update_runner_access_control_serialize(
4117
4177
  organization_id=organization_id,
4118
4178
  workspace_id=workspace_id,
4119
4179
  runner_id=runner_id,
4120
- runner=runner,
4180
+ identity_id=identity_id,
4181
+ runner_role=runner_role,
4121
4182
  _request_auth=_request_auth,
4122
4183
  _content_type=_content_type,
4123
4184
  _headers=_headers,
@@ -4125,8 +4186,7 @@ class RunnerApi:
4125
4186
  )
4126
4187
 
4127
4188
  _response_types_map: Dict[str, Optional[str]] = {
4128
- '200': "Runner",
4129
- '400': None,
4189
+ '200': "RunnerAccessControl",
4130
4190
  '404': None,
4131
4191
  }
4132
4192
  response_data = self.api_client.call_api(
@@ -4136,12 +4196,13 @@ class RunnerApi:
4136
4196
  return response_data.response
4137
4197
 
4138
4198
 
4139
- def _update_runner_serialize(
4199
+ def _update_runner_access_control_serialize(
4140
4200
  self,
4141
4201
  organization_id,
4142
4202
  workspace_id,
4143
4203
  runner_id,
4144
- runner,
4204
+ identity_id,
4205
+ runner_role,
4145
4206
  _request_auth,
4146
4207
  _content_type,
4147
4208
  _headers,
@@ -4157,7 +4218,9 @@ class RunnerApi:
4157
4218
  _query_params: List[Tuple[str, str]] = []
4158
4219
  _header_params: Dict[str, Optional[str]] = _headers or {}
4159
4220
  _form_params: List[Tuple[str, str]] = []
4160
- _files: Dict[str, str] = {}
4221
+ _files: Dict[
4222
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4223
+ ] = {}
4161
4224
  _body_params: Optional[bytes] = None
4162
4225
 
4163
4226
  # process the path parameters
@@ -4167,20 +4230,24 @@ class RunnerApi:
4167
4230
  _path_params['workspace_id'] = workspace_id
4168
4231
  if runner_id is not None:
4169
4232
  _path_params['runner_id'] = runner_id
4233
+ if identity_id is not None:
4234
+ _path_params['identity_id'] = identity_id
4170
4235
  # process the query parameters
4171
4236
  # process the header parameters
4172
4237
  # process the form parameters
4173
4238
  # process the body parameter
4174
- if runner is not None:
4175
- _body_params = runner
4239
+ if runner_role is not None:
4240
+ _body_params = runner_role
4176
4241
 
4177
4242
 
4178
4243
  # set the HTTP header `Accept`
4179
- _header_params['Accept'] = self.api_client.select_header_accept(
4180
- [
4181
- 'application/json'
4182
- ]
4183
- )
4244
+ if 'Accept' not in _header_params:
4245
+ _header_params['Accept'] = self.api_client.select_header_accept(
4246
+ [
4247
+ 'application/json',
4248
+ 'application/yaml'
4249
+ ]
4250
+ )
4184
4251
 
4185
4252
  # set the HTTP header `Content-Type`
4186
4253
  if _content_type:
@@ -4204,7 +4271,7 @@ class RunnerApi:
4204
4271
 
4205
4272
  return self.api_client.param_serialize(
4206
4273
  method='PATCH',
4207
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}',
4274
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id}',
4208
4275
  path_params=_path_params,
4209
4276
  query_params=_query_params,
4210
4277
  header_params=_header_params,
@@ -4221,13 +4288,12 @@ class RunnerApi:
4221
4288
 
4222
4289
 
4223
4290
  @validate_call
4224
- def update_runner_access_control(
4291
+ def update_runner_default_security(
4225
4292
  self,
4226
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4227
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4228
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
4229
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
4230
- runner_role: Annotated[RunnerRole, Field(description="The new Runner Access Control")],
4293
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
4294
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
4295
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
4296
+ runner_role: Annotated[RunnerRole, Field(description="This change the runner 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 runner.")],
4231
4297
  _request_timeout: Union[
4232
4298
  None,
4233
4299
  Annotated[StrictFloat, Field(gt=0)],
@@ -4240,8 +4306,8 @@ class RunnerApi:
4240
4306
  _content_type: Optional[StrictStr] = None,
4241
4307
  _headers: Optional[Dict[StrictStr, Any]] = None,
4242
4308
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4243
- ) -> RunnerAccessControl:
4244
- """Update the specified access to User for a Runner
4309
+ ) -> RunnerSecurity:
4310
+ """Set the Runner default security
4245
4311
 
4246
4312
 
4247
4313
  :param organization_id: the Organization identifier (required)
@@ -4250,9 +4316,7 @@ class RunnerApi:
4250
4316
  :type workspace_id: str
4251
4317
  :param runner_id: the Runner identifier (required)
4252
4318
  :type runner_id: str
4253
- :param identity_id: the User identifier (required)
4254
- :type identity_id: str
4255
- :param runner_role: The new Runner Access Control (required)
4319
+ :param runner_role: This change the runner 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 runner. (required)
4256
4320
  :type runner_role: RunnerRole
4257
4321
  :param _request_timeout: timeout setting for this request. If one
4258
4322
  number provided, it will be total request
@@ -4276,11 +4340,10 @@ class RunnerApi:
4276
4340
  :return: Returns the result object.
4277
4341
  """ # noqa: E501
4278
4342
 
4279
- _param = self._update_runner_access_control_serialize(
4343
+ _param = self._update_runner_default_security_serialize(
4280
4344
  organization_id=organization_id,
4281
4345
  workspace_id=workspace_id,
4282
4346
  runner_id=runner_id,
4283
- identity_id=identity_id,
4284
4347
  runner_role=runner_role,
4285
4348
  _request_auth=_request_auth,
4286
4349
  _content_type=_content_type,
@@ -4289,7 +4352,7 @@ class RunnerApi:
4289
4352
  )
4290
4353
 
4291
4354
  _response_types_map: Dict[str, Optional[str]] = {
4292
- '200': "RunnerAccessControl",
4355
+ '201': "RunnerSecurity",
4293
4356
  '404': None,
4294
4357
  }
4295
4358
  response_data = self.api_client.call_api(
@@ -4304,13 +4367,12 @@ class RunnerApi:
4304
4367
 
4305
4368
 
4306
4369
  @validate_call
4307
- def update_runner_access_control_with_http_info(
4370
+ def update_runner_default_security_with_http_info(
4308
4371
  self,
4309
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4310
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4311
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
4312
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
4313
- runner_role: Annotated[RunnerRole, Field(description="The new Runner Access Control")],
4372
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
4373
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
4374
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
4375
+ runner_role: Annotated[RunnerRole, Field(description="This change the runner 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 runner.")],
4314
4376
  _request_timeout: Union[
4315
4377
  None,
4316
4378
  Annotated[StrictFloat, Field(gt=0)],
@@ -4323,8 +4385,8 @@ class RunnerApi:
4323
4385
  _content_type: Optional[StrictStr] = None,
4324
4386
  _headers: Optional[Dict[StrictStr, Any]] = None,
4325
4387
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4326
- ) -> ApiResponse[RunnerAccessControl]:
4327
- """Update the specified access to User for a Runner
4388
+ ) -> ApiResponse[RunnerSecurity]:
4389
+ """Set the Runner default security
4328
4390
 
4329
4391
 
4330
4392
  :param organization_id: the Organization identifier (required)
@@ -4333,9 +4395,7 @@ class RunnerApi:
4333
4395
  :type workspace_id: str
4334
4396
  :param runner_id: the Runner identifier (required)
4335
4397
  :type runner_id: str
4336
- :param identity_id: the User identifier (required)
4337
- :type identity_id: str
4338
- :param runner_role: The new Runner Access Control (required)
4398
+ :param runner_role: This change the runner 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 runner. (required)
4339
4399
  :type runner_role: RunnerRole
4340
4400
  :param _request_timeout: timeout setting for this request. If one
4341
4401
  number provided, it will be total request
@@ -4359,11 +4419,10 @@ class RunnerApi:
4359
4419
  :return: Returns the result object.
4360
4420
  """ # noqa: E501
4361
4421
 
4362
- _param = self._update_runner_access_control_serialize(
4422
+ _param = self._update_runner_default_security_serialize(
4363
4423
  organization_id=organization_id,
4364
4424
  workspace_id=workspace_id,
4365
4425
  runner_id=runner_id,
4366
- identity_id=identity_id,
4367
4426
  runner_role=runner_role,
4368
4427
  _request_auth=_request_auth,
4369
4428
  _content_type=_content_type,
@@ -4372,7 +4431,7 @@ class RunnerApi:
4372
4431
  )
4373
4432
 
4374
4433
  _response_types_map: Dict[str, Optional[str]] = {
4375
- '200': "RunnerAccessControl",
4434
+ '201': "RunnerSecurity",
4376
4435
  '404': None,
4377
4436
  }
4378
4437
  response_data = self.api_client.call_api(
@@ -4387,13 +4446,12 @@ class RunnerApi:
4387
4446
 
4388
4447
 
4389
4448
  @validate_call
4390
- def update_runner_access_control_without_preload_content(
4449
+ def update_runner_default_security_without_preload_content(
4391
4450
  self,
4392
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4393
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4394
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
4395
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
4396
- runner_role: Annotated[RunnerRole, Field(description="The new Runner Access Control")],
4451
+ organization_id: Annotated[str, Field(strict=True, description="the Organization identifier")],
4452
+ workspace_id: Annotated[str, Field(strict=True, description="the Workspace identifier")],
4453
+ runner_id: Annotated[str, Field(strict=True, description="the Runner identifier")],
4454
+ runner_role: Annotated[RunnerRole, Field(description="This change the runner 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 runner.")],
4397
4455
  _request_timeout: Union[
4398
4456
  None,
4399
4457
  Annotated[StrictFloat, Field(gt=0)],
@@ -4407,7 +4465,7 @@ class RunnerApi:
4407
4465
  _headers: Optional[Dict[StrictStr, Any]] = None,
4408
4466
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4409
4467
  ) -> RESTResponseType:
4410
- """Update the specified access to User for a Runner
4468
+ """Set the Runner default security
4411
4469
 
4412
4470
 
4413
4471
  :param organization_id: the Organization identifier (required)
@@ -4416,9 +4474,7 @@ class RunnerApi:
4416
4474
  :type workspace_id: str
4417
4475
  :param runner_id: the Runner identifier (required)
4418
4476
  :type runner_id: str
4419
- :param identity_id: the User identifier (required)
4420
- :type identity_id: str
4421
- :param runner_role: The new Runner Access Control (required)
4477
+ :param runner_role: This change the runner 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 runner. (required)
4422
4478
  :type runner_role: RunnerRole
4423
4479
  :param _request_timeout: timeout setting for this request. If one
4424
4480
  number provided, it will be total request
@@ -4442,11 +4498,10 @@ class RunnerApi:
4442
4498
  :return: Returns the result object.
4443
4499
  """ # noqa: E501
4444
4500
 
4445
- _param = self._update_runner_access_control_serialize(
4501
+ _param = self._update_runner_default_security_serialize(
4446
4502
  organization_id=organization_id,
4447
4503
  workspace_id=workspace_id,
4448
4504
  runner_id=runner_id,
4449
- identity_id=identity_id,
4450
4505
  runner_role=runner_role,
4451
4506
  _request_auth=_request_auth,
4452
4507
  _content_type=_content_type,
@@ -4455,7 +4510,7 @@ class RunnerApi:
4455
4510
  )
4456
4511
 
4457
4512
  _response_types_map: Dict[str, Optional[str]] = {
4458
- '200': "RunnerAccessControl",
4513
+ '201': "RunnerSecurity",
4459
4514
  '404': None,
4460
4515
  }
4461
4516
  response_data = self.api_client.call_api(
@@ -4465,12 +4520,11 @@ class RunnerApi:
4465
4520
  return response_data.response
4466
4521
 
4467
4522
 
4468
- def _update_runner_access_control_serialize(
4523
+ def _update_runner_default_security_serialize(
4469
4524
  self,
4470
4525
  organization_id,
4471
4526
  workspace_id,
4472
4527
  runner_id,
4473
- identity_id,
4474
4528
  runner_role,
4475
4529
  _request_auth,
4476
4530
  _content_type,
@@ -4487,7 +4541,9 @@ class RunnerApi:
4487
4541
  _query_params: List[Tuple[str, str]] = []
4488
4542
  _header_params: Dict[str, Optional[str]] = _headers or {}
4489
4543
  _form_params: List[Tuple[str, str]] = []
4490
- _files: Dict[str, str] = {}
4544
+ _files: Dict[
4545
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4546
+ ] = {}
4491
4547
  _body_params: Optional[bytes] = None
4492
4548
 
4493
4549
  # process the path parameters
@@ -4497,8 +4553,6 @@ class RunnerApi:
4497
4553
  _path_params['workspace_id'] = workspace_id
4498
4554
  if runner_id is not None:
4499
4555
  _path_params['runner_id'] = runner_id
4500
- if identity_id is not None:
4501
- _path_params['identity_id'] = identity_id
4502
4556
  # process the query parameters
4503
4557
  # process the header parameters
4504
4558
  # process the form parameters
@@ -4508,11 +4562,13 @@ class RunnerApi:
4508
4562
 
4509
4563
 
4510
4564
  # set the HTTP header `Accept`
4511
- _header_params['Accept'] = self.api_client.select_header_accept(
4512
- [
4513
- 'application/json'
4514
- ]
4515
- )
4565
+ if 'Accept' not in _header_params:
4566
+ _header_params['Accept'] = self.api_client.select_header_accept(
4567
+ [
4568
+ 'application/json',
4569
+ 'application/yaml'
4570
+ ]
4571
+ )
4516
4572
 
4517
4573
  # set the HTTP header `Content-Type`
4518
4574
  if _content_type:
@@ -4521,7 +4577,8 @@ class RunnerApi:
4521
4577
  _default_content_type = (
4522
4578
  self.api_client.select_header_content_type(
4523
4579
  [
4524
- 'application/json'
4580
+ 'application/json',
4581
+ 'application/yaml'
4525
4582
  ]
4526
4583
  )
4527
4584
  )
@@ -4535,7 +4592,7 @@ class RunnerApi:
4535
4592
 
4536
4593
  return self.api_client.param_serialize(
4537
4594
  method='PATCH',
4538
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id}',
4595
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/default',
4539
4596
  path_params=_path_params,
4540
4597
  query_params=_query_params,
4541
4598
  header_params=_header_params,