cosmotech-api 4.0.0.dev8__py3-none-any.whl → 5.0.0b3__py3-none-any.whl

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

Potentially problematic release.


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

Files changed (280) hide show
  1. cosmotech_api/__init__.py +32 -27
  2. cosmotech_api/api/__init__.py +1 -1
  3. cosmotech_api/api/connector_api.py +19 -8
  4. cosmotech_api/api/dataset_api.py +1496 -4126
  5. cosmotech_api/api/meta_api.py +281 -0
  6. cosmotech_api/api/organization_api.py +605 -562
  7. cosmotech_api/api/run_api.py +42 -22
  8. cosmotech_api/api/runner_api.py +512 -467
  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 +1 -1
  12. cosmotech_api/api/solution_api.py +2980 -795
  13. cosmotech_api/api/twingraph_api.py +83 -72
  14. cosmotech_api/api/validator_api.py +1 -1
  15. cosmotech_api/api/workspace_api.py +795 -1331
  16. cosmotech_api/api_client.py +14 -5
  17. cosmotech_api/configuration.py +167 -40
  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 +31 -26
  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 +5 -5
  130. cosmotech_api/models/connector.py +1 -1
  131. cosmotech_api/models/connector_parameter.py +1 -1
  132. cosmotech_api/models/connector_parameter_group.py +1 -1
  133. cosmotech_api/models/container_resource_size_info.py +1 -1
  134. cosmotech_api/models/container_resource_sizing.py +1 -1
  135. cosmotech_api/models/create_info.py +103 -0
  136. cosmotech_api/models/created_run.py +2 -2
  137. cosmotech_api/models/dataset.py +42 -81
  138. cosmotech_api/models/dataset_access_control.py +1 -1
  139. cosmotech_api/models/dataset_compatibility.py +1 -1
  140. cosmotech_api/models/dataset_connector.py +1 -1
  141. cosmotech_api/models/dataset_copy_parameters.py +1 -1
  142. cosmotech_api/models/dataset_create_request.py +121 -0
  143. cosmotech_api/models/dataset_part.py +130 -0
  144. cosmotech_api/models/dataset_part_create_request.py +98 -0
  145. cosmotech_api/models/dataset_part_type_enum.py +38 -0
  146. cosmotech_api/models/dataset_part_update_request.py +90 -0
  147. cosmotech_api/models/dataset_role.py +1 -1
  148. cosmotech_api/models/dataset_search.py +1 -1
  149. cosmotech_api/models/dataset_security.py +1 -1
  150. cosmotech_api/models/dataset_source_type.py +1 -1
  151. cosmotech_api/models/dataset_twin_graph_hash.py +1 -1
  152. cosmotech_api/models/dataset_twin_graph_info.py +1 -1
  153. cosmotech_api/models/dataset_twin_graph_query.py +1 -1
  154. cosmotech_api/models/dataset_update_request.py +109 -0
  155. cosmotech_api/models/delete_historical_data.py +1 -1
  156. cosmotech_api/models/edit_info.py +90 -0
  157. cosmotech_api/models/file_upload_metadata.py +1 -1
  158. cosmotech_api/models/file_upload_validation.py +1 -1
  159. cosmotech_api/models/graph_properties.py +1 -1
  160. cosmotech_api/models/ingestion_status_enum.py +1 -1
  161. cosmotech_api/models/io_types_enum.py +1 -1
  162. cosmotech_api/models/last_run_info.py +100 -0
  163. cosmotech_api/models/organization.py +18 -11
  164. cosmotech_api/models/organization_access_control.py +4 -4
  165. cosmotech_api/models/organization_create_request.py +95 -0
  166. cosmotech_api/models/organization_edit_info.py +90 -0
  167. cosmotech_api/models/organization_role.py +3 -3
  168. cosmotech_api/models/organization_security.py +4 -4
  169. cosmotech_api/models/organization_service.py +7 -7
  170. cosmotech_api/models/organization_services.py +7 -7
  171. cosmotech_api/models/organization_update_request.py +89 -0
  172. cosmotech_api/models/query_result.py +1 -1
  173. cosmotech_api/models/resource_size_info.py +1 -1
  174. cosmotech_api/models/run.py +8 -10
  175. cosmotech_api/models/run_container.py +1 -1
  176. cosmotech_api/models/run_container_artifact.py +7 -7
  177. cosmotech_api/models/run_container_logs.py +7 -7
  178. cosmotech_api/models/run_data.py +2 -2
  179. cosmotech_api/models/run_data_query.py +1 -1
  180. cosmotech_api/models/run_edit_info.py +90 -0
  181. cosmotech_api/models/run_logs.py +1 -1
  182. cosmotech_api/models/run_logs_entry.py +1 -1
  183. cosmotech_api/models/run_resource_requested.py +1 -1
  184. cosmotech_api/models/run_search.py +7 -7
  185. cosmotech_api/models/run_search_state.py +1 -1
  186. cosmotech_api/models/run_start_containers.py +10 -10
  187. cosmotech_api/models/run_state.py +2 -1
  188. cosmotech_api/models/run_status.py +8 -2
  189. cosmotech_api/models/run_status_node.py +1 -1
  190. cosmotech_api/models/run_template.py +14 -69
  191. cosmotech_api/models/run_template_create_request.py +109 -0
  192. cosmotech_api/models/run_template_handler_id.py +1 -1
  193. cosmotech_api/models/run_template_orchestrator.py +1 -1
  194. cosmotech_api/models/run_template_parameter.py +14 -11
  195. cosmotech_api/models/run_template_parameter_create_request.py +105 -0
  196. cosmotech_api/models/run_template_parameter_group.py +12 -9
  197. cosmotech_api/models/run_template_parameter_group_create_request.py +101 -0
  198. cosmotech_api/models/run_template_parameter_group_update_request.py +98 -0
  199. cosmotech_api/models/run_template_parameter_update_request.py +103 -0
  200. cosmotech_api/models/run_template_parameter_value.py +1 -1
  201. cosmotech_api/models/run_template_resource_sizing.py +2 -2
  202. cosmotech_api/models/run_template_step_source.py +1 -1
  203. cosmotech_api/models/run_template_update_request.py +107 -0
  204. cosmotech_api/models/runner.py +31 -28
  205. cosmotech_api/models/runner_access_control.py +1 -1
  206. cosmotech_api/models/runner_changed_parameter_value.py +7 -7
  207. cosmotech_api/models/runner_comparison_result.py +10 -10
  208. cosmotech_api/models/runner_create_request.py +154 -0
  209. cosmotech_api/models/runner_data_download_info.py +12 -9
  210. cosmotech_api/models/runner_data_download_job.py +7 -7
  211. cosmotech_api/models/runner_edit_info.py +90 -0
  212. cosmotech_api/models/runner_job_state.py +1 -1
  213. cosmotech_api/models/runner_last_run.py +7 -7
  214. cosmotech_api/models/runner_parent_last_run.py +7 -7
  215. cosmotech_api/models/runner_resource_sizing.py +1 -1
  216. cosmotech_api/models/runner_role.py +1 -1
  217. cosmotech_api/models/runner_root_last_run.py +7 -7
  218. cosmotech_api/models/runner_run_template_parameter_value.py +1 -1
  219. cosmotech_api/models/runner_security.py +1 -1
  220. cosmotech_api/models/runner_update_request.py +123 -0
  221. cosmotech_api/models/runner_validation_status.py +1 -1
  222. cosmotech_api/models/scenario.py +10 -10
  223. cosmotech_api/models/scenario_access_control.py +7 -7
  224. cosmotech_api/models/scenario_changed_parameter_value.py +7 -7
  225. cosmotech_api/models/scenario_comparison_result.py +10 -10
  226. cosmotech_api/models/scenario_data_download_info.py +7 -7
  227. cosmotech_api/models/scenario_data_download_job.py +7 -7
  228. cosmotech_api/models/scenario_job_state.py +1 -1
  229. cosmotech_api/models/scenario_last_run.py +7 -7
  230. cosmotech_api/models/scenario_resource_sizing.py +7 -7
  231. cosmotech_api/models/scenario_role.py +7 -7
  232. cosmotech_api/models/scenario_run.py +13 -13
  233. cosmotech_api/models/scenario_run_container.py +10 -10
  234. cosmotech_api/models/scenario_run_container_artifact.py +7 -7
  235. cosmotech_api/models/scenario_run_container_logs.py +7 -7
  236. cosmotech_api/models/scenario_run_logs.py +10 -10
  237. cosmotech_api/models/scenario_run_resource_requested.py +7 -7
  238. cosmotech_api/models/scenario_run_search.py +7 -7
  239. cosmotech_api/models/scenario_run_search_state.py +1 -1
  240. cosmotech_api/models/scenario_run_start_containers.py +10 -10
  241. cosmotech_api/models/scenario_run_state.py +1 -1
  242. cosmotech_api/models/scenario_run_status.py +10 -10
  243. cosmotech_api/models/scenario_run_status_node.py +7 -7
  244. cosmotech_api/models/scenario_run_template_parameter_value.py +7 -7
  245. cosmotech_api/models/scenario_security.py +10 -10
  246. cosmotech_api/models/scenario_validation_status.py +1 -1
  247. cosmotech_api/models/send_run_data_request.py +5 -5
  248. cosmotech_api/models/solution.py +45 -29
  249. cosmotech_api/models/solution_access_control.py +4 -4
  250. cosmotech_api/models/solution_create_request.py +139 -0
  251. cosmotech_api/models/solution_edit_info.py +90 -0
  252. cosmotech_api/models/solution_role.py +3 -3
  253. cosmotech_api/models/solution_security.py +4 -4
  254. cosmotech_api/models/solution_update_request.py +133 -0
  255. cosmotech_api/models/source_info.py +1 -1
  256. cosmotech_api/models/sub_dataset_graph_query.py +1 -1
  257. cosmotech_api/models/twin_graph_batch_result.py +1 -1
  258. cosmotech_api/models/twin_graph_hash.py +7 -7
  259. cosmotech_api/models/twin_graph_query.py +7 -7
  260. cosmotech_api/models/twincache_status_enum.py +1 -1
  261. cosmotech_api/models/validator.py +7 -7
  262. cosmotech_api/models/workspace.py +38 -30
  263. cosmotech_api/models/workspace_access_control.py +4 -4
  264. cosmotech_api/models/workspace_create_request.py +117 -0
  265. cosmotech_api/models/workspace_edit_info.py +90 -0
  266. cosmotech_api/models/workspace_file.py +4 -4
  267. cosmotech_api/models/workspace_role.py +3 -3
  268. cosmotech_api/models/workspace_secret.py +7 -7
  269. cosmotech_api/models/workspace_security.py +4 -4
  270. cosmotech_api/models/workspace_solution.py +14 -6
  271. cosmotech_api/models/workspace_update_request.py +109 -0
  272. cosmotech_api/models/workspace_web_app.py +4 -4
  273. cosmotech_api/rest.py +3 -2
  274. cosmotech_api-5.0.0b3.dist-info/METADATA +27 -0
  275. cosmotech_api-5.0.0b3.dist-info/RECORD +293 -0
  276. {cosmotech_api-4.0.0.dev8.dist-info → cosmotech_api-5.0.0b3.dist-info}/WHEEL +1 -1
  277. {cosmotech_api-4.0.0.dev8.dist-info → cosmotech_api-5.0.0b3.dist-info/licenses}/LICENSE +1 -1
  278. cosmotech_api-4.0.0.dev8.dist-info/METADATA +0 -18
  279. cosmotech_api-4.0.0.dev8.dist-info/RECORD +0 -262
  280. {cosmotech_api-4.0.0.dev8.dist-info → cosmotech_api-5.0.0b3.dist-info}/top_level.txt +0 -0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Cosmo Tech Platform API
7
7
 
8
- The version of the OpenAPI document: 4.0.0-onprem.8
8
+ The version of the OpenAPI document: 5.0.0-beta3
9
9
  Contact: platform@cosmotech.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -23,8 +23,10 @@ from typing_extensions import Annotated
23
23
  from cosmotech_api.models.created_run import CreatedRun
24
24
  from cosmotech_api.models.runner import Runner
25
25
  from cosmotech_api.models.runner_access_control import RunnerAccessControl
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
52
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
51
53
  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.")],
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
127
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
130
128
  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.")],
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
202
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
209
203
  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.")],
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, Union[str, bytes]] = {}
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,21 +297,20 @@ 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
309
  if 'Accept' not in _header_params:
321
310
  _header_params['Accept'] = self.api_client.select_header_accept(
322
311
  [
323
- 'application/json'
312
+ 'application/json',
313
+ 'application/yaml'
324
314
  ]
325
315
  )
326
316
 
@@ -346,7 +336,7 @@ class RunnerApi:
346
336
 
347
337
  return self.api_client.param_serialize(
348
338
  method='POST',
349
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access',
339
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners',
350
340
  path_params=_path_params,
351
341
  query_params=_query_params,
352
342
  header_params=_header_params,
@@ -363,11 +353,12 @@ class RunnerApi:
363
353
 
364
354
 
365
355
  @validate_call
366
- def create_runner(
356
+ def create_runner_access_control(
367
357
  self,
368
358
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
369
359
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
370
- runner: Annotated[Runner, Field(description="the Runner to create")],
360
+ runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
361
+ runner_access_control: Annotated[RunnerAccessControl, Field(description="the new Runner security access to add.")],
371
362
  _request_timeout: Union[
372
363
  None,
373
364
  Annotated[StrictFloat, Field(gt=0)],
@@ -380,16 +371,18 @@ class RunnerApi:
380
371
  _content_type: Optional[StrictStr] = None,
381
372
  _headers: Optional[Dict[StrictStr, Any]] = None,
382
373
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
383
- ) -> Runner:
384
- """Create a new Runner
374
+ ) -> RunnerAccessControl:
375
+ """Add a control access to the Runner
385
376
 
386
377
 
387
378
  :param organization_id: the Organization identifier (required)
388
379
  :type organization_id: str
389
380
  :param workspace_id: the Workspace identifier (required)
390
381
  :type workspace_id: str
391
- :param runner: the Runner to create (required)
392
- :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
393
386
  :param _request_timeout: timeout setting for this request. If one
394
387
  number provided, it will be total request
395
388
  timeout. It can also be a pair (tuple) of
@@ -412,10 +405,11 @@ class RunnerApi:
412
405
  :return: Returns the result object.
413
406
  """ # noqa: E501
414
407
 
415
- _param = self._create_runner_serialize(
408
+ _param = self._create_runner_access_control_serialize(
416
409
  organization_id=organization_id,
417
410
  workspace_id=workspace_id,
418
- runner=runner,
411
+ runner_id=runner_id,
412
+ runner_access_control=runner_access_control,
419
413
  _request_auth=_request_auth,
420
414
  _content_type=_content_type,
421
415
  _headers=_headers,
@@ -423,8 +417,8 @@ class RunnerApi:
423
417
  )
424
418
 
425
419
  _response_types_map: Dict[str, Optional[str]] = {
426
- '201': "Runner",
427
- '400': None,
420
+ '201': "RunnerAccessControl",
421
+ '404': None,
428
422
  }
429
423
  response_data = self.api_client.call_api(
430
424
  *_param,
@@ -438,11 +432,12 @@ class RunnerApi:
438
432
 
439
433
 
440
434
  @validate_call
441
- def create_runner_with_http_info(
435
+ def create_runner_access_control_with_http_info(
442
436
  self,
443
437
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
444
438
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
445
- runner: Annotated[Runner, Field(description="the Runner to create")],
439
+ runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
440
+ runner_access_control: Annotated[RunnerAccessControl, Field(description="the new Runner security access to add.")],
446
441
  _request_timeout: Union[
447
442
  None,
448
443
  Annotated[StrictFloat, Field(gt=0)],
@@ -455,16 +450,18 @@ class RunnerApi:
455
450
  _content_type: Optional[StrictStr] = None,
456
451
  _headers: Optional[Dict[StrictStr, Any]] = None,
457
452
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
458
- ) -> ApiResponse[Runner]:
459
- """Create a new Runner
453
+ ) -> ApiResponse[RunnerAccessControl]:
454
+ """Add a control access to the Runner
460
455
 
461
456
 
462
457
  :param organization_id: the Organization identifier (required)
463
458
  :type organization_id: str
464
459
  :param workspace_id: the Workspace identifier (required)
465
460
  :type workspace_id: str
466
- :param runner: the Runner to create (required)
467
- :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
468
465
  :param _request_timeout: timeout setting for this request. If one
469
466
  number provided, it will be total request
470
467
  timeout. It can also be a pair (tuple) of
@@ -487,10 +484,11 @@ class RunnerApi:
487
484
  :return: Returns the result object.
488
485
  """ # noqa: E501
489
486
 
490
- _param = self._create_runner_serialize(
487
+ _param = self._create_runner_access_control_serialize(
491
488
  organization_id=organization_id,
492
489
  workspace_id=workspace_id,
493
- runner=runner,
490
+ runner_id=runner_id,
491
+ runner_access_control=runner_access_control,
494
492
  _request_auth=_request_auth,
495
493
  _content_type=_content_type,
496
494
  _headers=_headers,
@@ -498,8 +496,8 @@ class RunnerApi:
498
496
  )
499
497
 
500
498
  _response_types_map: Dict[str, Optional[str]] = {
501
- '201': "Runner",
502
- '400': None,
499
+ '201': "RunnerAccessControl",
500
+ '404': None,
503
501
  }
504
502
  response_data = self.api_client.call_api(
505
503
  *_param,
@@ -513,11 +511,12 @@ class RunnerApi:
513
511
 
514
512
 
515
513
  @validate_call
516
- def create_runner_without_preload_content(
514
+ def create_runner_access_control_without_preload_content(
517
515
  self,
518
516
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
519
517
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
520
- runner: Annotated[Runner, Field(description="the Runner to create")],
518
+ runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
519
+ runner_access_control: Annotated[RunnerAccessControl, Field(description="the new Runner security access to add.")],
521
520
  _request_timeout: Union[
522
521
  None,
523
522
  Annotated[StrictFloat, Field(gt=0)],
@@ -531,15 +530,17 @@ class RunnerApi:
531
530
  _headers: Optional[Dict[StrictStr, Any]] = None,
532
531
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
533
532
  ) -> RESTResponseType:
534
- """Create a new Runner
533
+ """Add a control access to the Runner
535
534
 
536
535
 
537
536
  :param organization_id: the Organization identifier (required)
538
537
  :type organization_id: str
539
538
  :param workspace_id: the Workspace identifier (required)
540
539
  :type workspace_id: str
541
- :param runner: the Runner to create (required)
542
- :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
543
544
  :param _request_timeout: timeout setting for this request. If one
544
545
  number provided, it will be total request
545
546
  timeout. It can also be a pair (tuple) of
@@ -562,10 +563,11 @@ class RunnerApi:
562
563
  :return: Returns the result object.
563
564
  """ # noqa: E501
564
565
 
565
- _param = self._create_runner_serialize(
566
+ _param = self._create_runner_access_control_serialize(
566
567
  organization_id=organization_id,
567
568
  workspace_id=workspace_id,
568
- runner=runner,
569
+ runner_id=runner_id,
570
+ runner_access_control=runner_access_control,
569
571
  _request_auth=_request_auth,
570
572
  _content_type=_content_type,
571
573
  _headers=_headers,
@@ -573,8 +575,8 @@ class RunnerApi:
573
575
  )
574
576
 
575
577
  _response_types_map: Dict[str, Optional[str]] = {
576
- '201': "Runner",
577
- '400': None,
578
+ '201': "RunnerAccessControl",
579
+ '404': None,
578
580
  }
579
581
  response_data = self.api_client.call_api(
580
582
  *_param,
@@ -583,11 +585,12 @@ class RunnerApi:
583
585
  return response_data.response
584
586
 
585
587
 
586
- def _create_runner_serialize(
588
+ def _create_runner_access_control_serialize(
587
589
  self,
588
590
  organization_id,
589
591
  workspace_id,
590
- runner,
592
+ runner_id,
593
+ runner_access_control,
591
594
  _request_auth,
592
595
  _content_type,
593
596
  _headers,
@@ -603,7 +606,9 @@ class RunnerApi:
603
606
  _query_params: List[Tuple[str, str]] = []
604
607
  _header_params: Dict[str, Optional[str]] = _headers or {}
605
608
  _form_params: List[Tuple[str, str]] = []
606
- _files: Dict[str, Union[str, bytes]] = {}
609
+ _files: Dict[
610
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
611
+ ] = {}
607
612
  _body_params: Optional[bytes] = None
608
613
 
609
614
  # process the path parameters
@@ -611,19 +616,22 @@ class RunnerApi:
611
616
  _path_params['organization_id'] = organization_id
612
617
  if workspace_id is not None:
613
618
  _path_params['workspace_id'] = workspace_id
619
+ if runner_id is not None:
620
+ _path_params['runner_id'] = runner_id
614
621
  # process the query parameters
615
622
  # process the header parameters
616
623
  # process the form parameters
617
624
  # process the body parameter
618
- if runner is not None:
619
- _body_params = runner
625
+ if runner_access_control is not None:
626
+ _body_params = runner_access_control
620
627
 
621
628
 
622
629
  # set the HTTP header `Accept`
623
630
  if 'Accept' not in _header_params:
624
631
  _header_params['Accept'] = self.api_client.select_header_accept(
625
632
  [
626
- 'application/json'
633
+ 'application/json',
634
+ 'application/yaml'
627
635
  ]
628
636
  )
629
637
 
@@ -649,7 +657,7 @@ class RunnerApi:
649
657
 
650
658
  return self.api_client.param_serialize(
651
659
  method='POST',
652
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners',
660
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access',
653
661
  path_params=_path_params,
654
662
  query_params=_query_params,
655
663
  header_params=_header_params,
@@ -906,7 +914,9 @@ class RunnerApi:
906
914
  _query_params: List[Tuple[str, str]] = []
907
915
  _header_params: Dict[str, Optional[str]] = _headers or {}
908
916
  _form_params: List[Tuple[str, str]] = []
909
- _files: Dict[str, Union[str, bytes]] = {}
917
+ _files: Dict[
918
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
919
+ ] = {}
910
920
  _body_params: Optional[bytes] = None
911
921
 
912
922
  # process the path parameters
@@ -948,11 +958,12 @@ class RunnerApi:
948
958
 
949
959
 
950
960
  @validate_call
951
- def get_runner(
961
+ def delete_runner_access_control(
952
962
  self,
953
963
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
954
964
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
955
965
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
966
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
956
967
  _request_timeout: Union[
957
968
  None,
958
969
  Annotated[StrictFloat, Field(gt=0)],
@@ -965,8 +976,8 @@ class RunnerApi:
965
976
  _content_type: Optional[StrictStr] = None,
966
977
  _headers: Optional[Dict[StrictStr, Any]] = None,
967
978
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
968
- ) -> Runner:
969
- """Get the details of an runner
979
+ ) -> None:
980
+ """Remove the specified access from the given Runner
970
981
 
971
982
 
972
983
  :param organization_id: the Organization identifier (required)
@@ -975,6 +986,8 @@ class RunnerApi:
975
986
  :type workspace_id: str
976
987
  :param runner_id: the Runner identifier (required)
977
988
  :type runner_id: str
989
+ :param identity_id: the User identifier (required)
990
+ :type identity_id: str
978
991
  :param _request_timeout: timeout setting for this request. If one
979
992
  number provided, it will be total request
980
993
  timeout. It can also be a pair (tuple) of
@@ -997,10 +1010,11 @@ class RunnerApi:
997
1010
  :return: Returns the result object.
998
1011
  """ # noqa: E501
999
1012
 
1000
- _param = self._get_runner_serialize(
1013
+ _param = self._delete_runner_access_control_serialize(
1001
1014
  organization_id=organization_id,
1002
1015
  workspace_id=workspace_id,
1003
1016
  runner_id=runner_id,
1017
+ identity_id=identity_id,
1004
1018
  _request_auth=_request_auth,
1005
1019
  _content_type=_content_type,
1006
1020
  _headers=_headers,
@@ -1008,7 +1022,7 @@ class RunnerApi:
1008
1022
  )
1009
1023
 
1010
1024
  _response_types_map: Dict[str, Optional[str]] = {
1011
- '200': "Runner",
1025
+ '204': None,
1012
1026
  '404': None,
1013
1027
  }
1014
1028
  response_data = self.api_client.call_api(
@@ -1023,11 +1037,12 @@ class RunnerApi:
1023
1037
 
1024
1038
 
1025
1039
  @validate_call
1026
- def get_runner_with_http_info(
1040
+ def delete_runner_access_control_with_http_info(
1027
1041
  self,
1028
1042
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1029
1043
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1030
1044
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1045
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1031
1046
  _request_timeout: Union[
1032
1047
  None,
1033
1048
  Annotated[StrictFloat, Field(gt=0)],
@@ -1040,8 +1055,8 @@ class RunnerApi:
1040
1055
  _content_type: Optional[StrictStr] = None,
1041
1056
  _headers: Optional[Dict[StrictStr, Any]] = None,
1042
1057
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1043
- ) -> ApiResponse[Runner]:
1044
- """Get the details of an runner
1058
+ ) -> ApiResponse[None]:
1059
+ """Remove the specified access from the given Runner
1045
1060
 
1046
1061
 
1047
1062
  :param organization_id: the Organization identifier (required)
@@ -1050,6 +1065,8 @@ class RunnerApi:
1050
1065
  :type workspace_id: str
1051
1066
  :param runner_id: the Runner identifier (required)
1052
1067
  :type runner_id: str
1068
+ :param identity_id: the User identifier (required)
1069
+ :type identity_id: str
1053
1070
  :param _request_timeout: timeout setting for this request. If one
1054
1071
  number provided, it will be total request
1055
1072
  timeout. It can also be a pair (tuple) of
@@ -1072,10 +1089,11 @@ class RunnerApi:
1072
1089
  :return: Returns the result object.
1073
1090
  """ # noqa: E501
1074
1091
 
1075
- _param = self._get_runner_serialize(
1092
+ _param = self._delete_runner_access_control_serialize(
1076
1093
  organization_id=organization_id,
1077
1094
  workspace_id=workspace_id,
1078
1095
  runner_id=runner_id,
1096
+ identity_id=identity_id,
1079
1097
  _request_auth=_request_auth,
1080
1098
  _content_type=_content_type,
1081
1099
  _headers=_headers,
@@ -1083,7 +1101,7 @@ class RunnerApi:
1083
1101
  )
1084
1102
 
1085
1103
  _response_types_map: Dict[str, Optional[str]] = {
1086
- '200': "Runner",
1104
+ '204': None,
1087
1105
  '404': None,
1088
1106
  }
1089
1107
  response_data = self.api_client.call_api(
@@ -1098,11 +1116,12 @@ class RunnerApi:
1098
1116
 
1099
1117
 
1100
1118
  @validate_call
1101
- def get_runner_without_preload_content(
1119
+ def delete_runner_access_control_without_preload_content(
1102
1120
  self,
1103
1121
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1104
1122
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1105
1123
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1124
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1106
1125
  _request_timeout: Union[
1107
1126
  None,
1108
1127
  Annotated[StrictFloat, Field(gt=0)],
@@ -1116,7 +1135,7 @@ class RunnerApi:
1116
1135
  _headers: Optional[Dict[StrictStr, Any]] = None,
1117
1136
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1118
1137
  ) -> RESTResponseType:
1119
- """Get the details of an runner
1138
+ """Remove the specified access from the given Runner
1120
1139
 
1121
1140
 
1122
1141
  :param organization_id: the Organization identifier (required)
@@ -1125,6 +1144,8 @@ class RunnerApi:
1125
1144
  :type workspace_id: str
1126
1145
  :param runner_id: the Runner identifier (required)
1127
1146
  :type runner_id: str
1147
+ :param identity_id: the User identifier (required)
1148
+ :type identity_id: str
1128
1149
  :param _request_timeout: timeout setting for this request. If one
1129
1150
  number provided, it will be total request
1130
1151
  timeout. It can also be a pair (tuple) of
@@ -1147,10 +1168,11 @@ class RunnerApi:
1147
1168
  :return: Returns the result object.
1148
1169
  """ # noqa: E501
1149
1170
 
1150
- _param = self._get_runner_serialize(
1171
+ _param = self._delete_runner_access_control_serialize(
1151
1172
  organization_id=organization_id,
1152
1173
  workspace_id=workspace_id,
1153
1174
  runner_id=runner_id,
1175
+ identity_id=identity_id,
1154
1176
  _request_auth=_request_auth,
1155
1177
  _content_type=_content_type,
1156
1178
  _headers=_headers,
@@ -1158,7 +1180,7 @@ class RunnerApi:
1158
1180
  )
1159
1181
 
1160
1182
  _response_types_map: Dict[str, Optional[str]] = {
1161
- '200': "Runner",
1183
+ '204': None,
1162
1184
  '404': None,
1163
1185
  }
1164
1186
  response_data = self.api_client.call_api(
@@ -1168,11 +1190,12 @@ class RunnerApi:
1168
1190
  return response_data.response
1169
1191
 
1170
1192
 
1171
- def _get_runner_serialize(
1193
+ def _delete_runner_access_control_serialize(
1172
1194
  self,
1173
1195
  organization_id,
1174
1196
  workspace_id,
1175
1197
  runner_id,
1198
+ identity_id,
1176
1199
  _request_auth,
1177
1200
  _content_type,
1178
1201
  _headers,
@@ -1188,7 +1211,9 @@ class RunnerApi:
1188
1211
  _query_params: List[Tuple[str, str]] = []
1189
1212
  _header_params: Dict[str, Optional[str]] = _headers or {}
1190
1213
  _form_params: List[Tuple[str, str]] = []
1191
- _files: Dict[str, Union[str, bytes]] = {}
1214
+ _files: Dict[
1215
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1216
+ ] = {}
1192
1217
  _body_params: Optional[bytes] = None
1193
1218
 
1194
1219
  # process the path parameters
@@ -1198,19 +1223,14 @@ class RunnerApi:
1198
1223
  _path_params['workspace_id'] = workspace_id
1199
1224
  if runner_id is not None:
1200
1225
  _path_params['runner_id'] = runner_id
1226
+ if identity_id is not None:
1227
+ _path_params['identity_id'] = identity_id
1201
1228
  # process the query parameters
1202
1229
  # process the header parameters
1203
1230
  # process the form parameters
1204
1231
  # process the body parameter
1205
1232
 
1206
1233
 
1207
- # set the HTTP header `Accept`
1208
- if 'Accept' not in _header_params:
1209
- _header_params['Accept'] = self.api_client.select_header_accept(
1210
- [
1211
- 'application/json'
1212
- ]
1213
- )
1214
1234
 
1215
1235
 
1216
1236
  # authentication setting
@@ -1219,8 +1239,8 @@ class RunnerApi:
1219
1239
  ]
1220
1240
 
1221
1241
  return self.api_client.param_serialize(
1222
- method='GET',
1223
- 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}',
1224
1244
  path_params=_path_params,
1225
1245
  query_params=_query_params,
1226
1246
  header_params=_header_params,
@@ -1237,12 +1257,11 @@ class RunnerApi:
1237
1257
 
1238
1258
 
1239
1259
  @validate_call
1240
- def get_runner_access_control(
1260
+ def get_runner(
1241
1261
  self,
1242
1262
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1243
1263
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1244
1264
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1245
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1246
1265
  _request_timeout: Union[
1247
1266
  None,
1248
1267
  Annotated[StrictFloat, Field(gt=0)],
@@ -1255,8 +1274,8 @@ class RunnerApi:
1255
1274
  _content_type: Optional[StrictStr] = None,
1256
1275
  _headers: Optional[Dict[StrictStr, Any]] = None,
1257
1276
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1258
- ) -> RunnerAccessControl:
1259
- """Get a control access for the Runner
1277
+ ) -> Runner:
1278
+ """Get the details of a runner
1260
1279
 
1261
1280
 
1262
1281
  :param organization_id: the Organization identifier (required)
@@ -1265,8 +1284,6 @@ class RunnerApi:
1265
1284
  :type workspace_id: str
1266
1285
  :param runner_id: the Runner identifier (required)
1267
1286
  :type runner_id: str
1268
- :param identity_id: the User identifier (required)
1269
- :type identity_id: str
1270
1287
  :param _request_timeout: timeout setting for this request. If one
1271
1288
  number provided, it will be total request
1272
1289
  timeout. It can also be a pair (tuple) of
@@ -1289,11 +1306,10 @@ class RunnerApi:
1289
1306
  :return: Returns the result object.
1290
1307
  """ # noqa: E501
1291
1308
 
1292
- _param = self._get_runner_access_control_serialize(
1309
+ _param = self._get_runner_serialize(
1293
1310
  organization_id=organization_id,
1294
1311
  workspace_id=workspace_id,
1295
1312
  runner_id=runner_id,
1296
- identity_id=identity_id,
1297
1313
  _request_auth=_request_auth,
1298
1314
  _content_type=_content_type,
1299
1315
  _headers=_headers,
@@ -1301,7 +1317,7 @@ class RunnerApi:
1301
1317
  )
1302
1318
 
1303
1319
  _response_types_map: Dict[str, Optional[str]] = {
1304
- '200': "RunnerAccessControl",
1320
+ '200': "Runner",
1305
1321
  '404': None,
1306
1322
  }
1307
1323
  response_data = self.api_client.call_api(
@@ -1316,12 +1332,11 @@ class RunnerApi:
1316
1332
 
1317
1333
 
1318
1334
  @validate_call
1319
- def get_runner_access_control_with_http_info(
1335
+ def get_runner_with_http_info(
1320
1336
  self,
1321
1337
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1322
1338
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1323
1339
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1324
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1325
1340
  _request_timeout: Union[
1326
1341
  None,
1327
1342
  Annotated[StrictFloat, Field(gt=0)],
@@ -1334,8 +1349,8 @@ class RunnerApi:
1334
1349
  _content_type: Optional[StrictStr] = None,
1335
1350
  _headers: Optional[Dict[StrictStr, Any]] = None,
1336
1351
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1337
- ) -> ApiResponse[RunnerAccessControl]:
1338
- """Get a control access for the Runner
1352
+ ) -> ApiResponse[Runner]:
1353
+ """Get the details of a runner
1339
1354
 
1340
1355
 
1341
1356
  :param organization_id: the Organization identifier (required)
@@ -1344,8 +1359,6 @@ class RunnerApi:
1344
1359
  :type workspace_id: str
1345
1360
  :param runner_id: the Runner identifier (required)
1346
1361
  :type runner_id: str
1347
- :param identity_id: the User identifier (required)
1348
- :type identity_id: str
1349
1362
  :param _request_timeout: timeout setting for this request. If one
1350
1363
  number provided, it will be total request
1351
1364
  timeout. It can also be a pair (tuple) of
@@ -1368,11 +1381,10 @@ class RunnerApi:
1368
1381
  :return: Returns the result object.
1369
1382
  """ # noqa: E501
1370
1383
 
1371
- _param = self._get_runner_access_control_serialize(
1384
+ _param = self._get_runner_serialize(
1372
1385
  organization_id=organization_id,
1373
1386
  workspace_id=workspace_id,
1374
1387
  runner_id=runner_id,
1375
- identity_id=identity_id,
1376
1388
  _request_auth=_request_auth,
1377
1389
  _content_type=_content_type,
1378
1390
  _headers=_headers,
@@ -1380,7 +1392,7 @@ class RunnerApi:
1380
1392
  )
1381
1393
 
1382
1394
  _response_types_map: Dict[str, Optional[str]] = {
1383
- '200': "RunnerAccessControl",
1395
+ '200': "Runner",
1384
1396
  '404': None,
1385
1397
  }
1386
1398
  response_data = self.api_client.call_api(
@@ -1395,12 +1407,11 @@ class RunnerApi:
1395
1407
 
1396
1408
 
1397
1409
  @validate_call
1398
- def get_runner_access_control_without_preload_content(
1410
+ def get_runner_without_preload_content(
1399
1411
  self,
1400
1412
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1401
1413
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1402
1414
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1403
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1404
1415
  _request_timeout: Union[
1405
1416
  None,
1406
1417
  Annotated[StrictFloat, Field(gt=0)],
@@ -1414,7 +1425,7 @@ class RunnerApi:
1414
1425
  _headers: Optional[Dict[StrictStr, Any]] = None,
1415
1426
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1416
1427
  ) -> RESTResponseType:
1417
- """Get a control access for the Runner
1428
+ """Get the details of a runner
1418
1429
 
1419
1430
 
1420
1431
  :param organization_id: the Organization identifier (required)
@@ -1423,8 +1434,6 @@ class RunnerApi:
1423
1434
  :type workspace_id: str
1424
1435
  :param runner_id: the Runner identifier (required)
1425
1436
  :type runner_id: str
1426
- :param identity_id: the User identifier (required)
1427
- :type identity_id: str
1428
1437
  :param _request_timeout: timeout setting for this request. If one
1429
1438
  number provided, it will be total request
1430
1439
  timeout. It can also be a pair (tuple) of
@@ -1447,11 +1456,10 @@ class RunnerApi:
1447
1456
  :return: Returns the result object.
1448
1457
  """ # noqa: E501
1449
1458
 
1450
- _param = self._get_runner_access_control_serialize(
1459
+ _param = self._get_runner_serialize(
1451
1460
  organization_id=organization_id,
1452
1461
  workspace_id=workspace_id,
1453
1462
  runner_id=runner_id,
1454
- identity_id=identity_id,
1455
1463
  _request_auth=_request_auth,
1456
1464
  _content_type=_content_type,
1457
1465
  _headers=_headers,
@@ -1459,7 +1467,7 @@ class RunnerApi:
1459
1467
  )
1460
1468
 
1461
1469
  _response_types_map: Dict[str, Optional[str]] = {
1462
- '200': "RunnerAccessControl",
1470
+ '200': "Runner",
1463
1471
  '404': None,
1464
1472
  }
1465
1473
  response_data = self.api_client.call_api(
@@ -1469,12 +1477,11 @@ class RunnerApi:
1469
1477
  return response_data.response
1470
1478
 
1471
1479
 
1472
- def _get_runner_access_control_serialize(
1480
+ def _get_runner_serialize(
1473
1481
  self,
1474
1482
  organization_id,
1475
1483
  workspace_id,
1476
1484
  runner_id,
1477
- identity_id,
1478
1485
  _request_auth,
1479
1486
  _content_type,
1480
1487
  _headers,
@@ -1490,7 +1497,9 @@ class RunnerApi:
1490
1497
  _query_params: List[Tuple[str, str]] = []
1491
1498
  _header_params: Dict[str, Optional[str]] = _headers or {}
1492
1499
  _form_params: List[Tuple[str, str]] = []
1493
- _files: Dict[str, Union[str, bytes]] = {}
1500
+ _files: Dict[
1501
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1502
+ ] = {}
1494
1503
  _body_params: Optional[bytes] = None
1495
1504
 
1496
1505
  # process the path parameters
@@ -1500,8 +1509,6 @@ class RunnerApi:
1500
1509
  _path_params['workspace_id'] = workspace_id
1501
1510
  if runner_id is not None:
1502
1511
  _path_params['runner_id'] = runner_id
1503
- if identity_id is not None:
1504
- _path_params['identity_id'] = identity_id
1505
1512
  # process the query parameters
1506
1513
  # process the header parameters
1507
1514
  # process the form parameters
@@ -1512,7 +1519,8 @@ class RunnerApi:
1512
1519
  if 'Accept' not in _header_params:
1513
1520
  _header_params['Accept'] = self.api_client.select_header_accept(
1514
1521
  [
1515
- 'application/json'
1522
+ 'application/json',
1523
+ 'application/yaml'
1516
1524
  ]
1517
1525
  )
1518
1526
 
@@ -1524,7 +1532,7 @@ class RunnerApi:
1524
1532
 
1525
1533
  return self.api_client.param_serialize(
1526
1534
  method='GET',
1527
- 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}',
1528
1536
  path_params=_path_params,
1529
1537
  query_params=_query_params,
1530
1538
  header_params=_header_params,
@@ -1541,12 +1549,12 @@ class RunnerApi:
1541
1549
 
1542
1550
 
1543
1551
  @validate_call
1544
- def get_runner_permissions(
1552
+ def get_runner_access_control(
1545
1553
  self,
1546
1554
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1547
1555
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1548
1556
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1549
- role: Annotated[StrictStr, Field(description="the Role")],
1557
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1550
1558
  _request_timeout: Union[
1551
1559
  None,
1552
1560
  Annotated[StrictFloat, Field(gt=0)],
@@ -1559,8 +1567,8 @@ class RunnerApi:
1559
1567
  _content_type: Optional[StrictStr] = None,
1560
1568
  _headers: Optional[Dict[StrictStr, Any]] = None,
1561
1569
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1562
- ) -> List[str]:
1563
- """Get the Runner permission by given role
1570
+ ) -> RunnerAccessControl:
1571
+ """Get a control access for the Runner
1564
1572
 
1565
1573
 
1566
1574
  :param organization_id: the Organization identifier (required)
@@ -1569,8 +1577,8 @@ class RunnerApi:
1569
1577
  :type workspace_id: str
1570
1578
  :param runner_id: the Runner identifier (required)
1571
1579
  :type runner_id: str
1572
- :param role: the Role (required)
1573
- :type role: str
1580
+ :param identity_id: the User identifier (required)
1581
+ :type identity_id: str
1574
1582
  :param _request_timeout: timeout setting for this request. If one
1575
1583
  number provided, it will be total request
1576
1584
  timeout. It can also be a pair (tuple) of
@@ -1593,11 +1601,11 @@ class RunnerApi:
1593
1601
  :return: Returns the result object.
1594
1602
  """ # noqa: E501
1595
1603
 
1596
- _param = self._get_runner_permissions_serialize(
1604
+ _param = self._get_runner_access_control_serialize(
1597
1605
  organization_id=organization_id,
1598
1606
  workspace_id=workspace_id,
1599
1607
  runner_id=runner_id,
1600
- role=role,
1608
+ identity_id=identity_id,
1601
1609
  _request_auth=_request_auth,
1602
1610
  _content_type=_content_type,
1603
1611
  _headers=_headers,
@@ -1605,7 +1613,8 @@ class RunnerApi:
1605
1613
  )
1606
1614
 
1607
1615
  _response_types_map: Dict[str, Optional[str]] = {
1608
- '200': "List[str]",
1616
+ '200': "RunnerAccessControl",
1617
+ '404': None,
1609
1618
  }
1610
1619
  response_data = self.api_client.call_api(
1611
1620
  *_param,
@@ -1619,12 +1628,12 @@ class RunnerApi:
1619
1628
 
1620
1629
 
1621
1630
  @validate_call
1622
- def get_runner_permissions_with_http_info(
1631
+ def get_runner_access_control_with_http_info(
1623
1632
  self,
1624
1633
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1625
1634
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1626
1635
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1627
- role: Annotated[StrictStr, Field(description="the Role")],
1636
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1628
1637
  _request_timeout: Union[
1629
1638
  None,
1630
1639
  Annotated[StrictFloat, Field(gt=0)],
@@ -1637,8 +1646,8 @@ class RunnerApi:
1637
1646
  _content_type: Optional[StrictStr] = None,
1638
1647
  _headers: Optional[Dict[StrictStr, Any]] = None,
1639
1648
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1640
- ) -> ApiResponse[List[str]]:
1641
- """Get the Runner permission by given role
1649
+ ) -> ApiResponse[RunnerAccessControl]:
1650
+ """Get a control access for the Runner
1642
1651
 
1643
1652
 
1644
1653
  :param organization_id: the Organization identifier (required)
@@ -1647,8 +1656,8 @@ class RunnerApi:
1647
1656
  :type workspace_id: str
1648
1657
  :param runner_id: the Runner identifier (required)
1649
1658
  :type runner_id: str
1650
- :param role: the Role (required)
1651
- :type role: str
1659
+ :param identity_id: the User identifier (required)
1660
+ :type identity_id: str
1652
1661
  :param _request_timeout: timeout setting for this request. If one
1653
1662
  number provided, it will be total request
1654
1663
  timeout. It can also be a pair (tuple) of
@@ -1671,11 +1680,11 @@ class RunnerApi:
1671
1680
  :return: Returns the result object.
1672
1681
  """ # noqa: E501
1673
1682
 
1674
- _param = self._get_runner_permissions_serialize(
1683
+ _param = self._get_runner_access_control_serialize(
1675
1684
  organization_id=organization_id,
1676
1685
  workspace_id=workspace_id,
1677
1686
  runner_id=runner_id,
1678
- role=role,
1687
+ identity_id=identity_id,
1679
1688
  _request_auth=_request_auth,
1680
1689
  _content_type=_content_type,
1681
1690
  _headers=_headers,
@@ -1683,7 +1692,8 @@ class RunnerApi:
1683
1692
  )
1684
1693
 
1685
1694
  _response_types_map: Dict[str, Optional[str]] = {
1686
- '200': "List[str]",
1695
+ '200': "RunnerAccessControl",
1696
+ '404': None,
1687
1697
  }
1688
1698
  response_data = self.api_client.call_api(
1689
1699
  *_param,
@@ -1697,12 +1707,12 @@ class RunnerApi:
1697
1707
 
1698
1708
 
1699
1709
  @validate_call
1700
- def get_runner_permissions_without_preload_content(
1710
+ def get_runner_access_control_without_preload_content(
1701
1711
  self,
1702
1712
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1703
1713
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1704
1714
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1705
- role: Annotated[StrictStr, Field(description="the Role")],
1715
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
1706
1716
  _request_timeout: Union[
1707
1717
  None,
1708
1718
  Annotated[StrictFloat, Field(gt=0)],
@@ -1716,7 +1726,7 @@ class RunnerApi:
1716
1726
  _headers: Optional[Dict[StrictStr, Any]] = None,
1717
1727
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1718
1728
  ) -> RESTResponseType:
1719
- """Get the Runner permission by given role
1729
+ """Get a control access for the Runner
1720
1730
 
1721
1731
 
1722
1732
  :param organization_id: the Organization identifier (required)
@@ -1725,8 +1735,8 @@ class RunnerApi:
1725
1735
  :type workspace_id: str
1726
1736
  :param runner_id: the Runner identifier (required)
1727
1737
  :type runner_id: str
1728
- :param role: the Role (required)
1729
- :type role: str
1738
+ :param identity_id: the User identifier (required)
1739
+ :type identity_id: str
1730
1740
  :param _request_timeout: timeout setting for this request. If one
1731
1741
  number provided, it will be total request
1732
1742
  timeout. It can also be a pair (tuple) of
@@ -1749,11 +1759,11 @@ class RunnerApi:
1749
1759
  :return: Returns the result object.
1750
1760
  """ # noqa: E501
1751
1761
 
1752
- _param = self._get_runner_permissions_serialize(
1762
+ _param = self._get_runner_access_control_serialize(
1753
1763
  organization_id=organization_id,
1754
1764
  workspace_id=workspace_id,
1755
1765
  runner_id=runner_id,
1756
- role=role,
1766
+ identity_id=identity_id,
1757
1767
  _request_auth=_request_auth,
1758
1768
  _content_type=_content_type,
1759
1769
  _headers=_headers,
@@ -1761,8 +1771,9 @@ class RunnerApi:
1761
1771
  )
1762
1772
 
1763
1773
  _response_types_map: Dict[str, Optional[str]] = {
1764
- '200': "List[str]",
1765
- }
1774
+ '200': "RunnerAccessControl",
1775
+ '404': None,
1776
+ }
1766
1777
  response_data = self.api_client.call_api(
1767
1778
  *_param,
1768
1779
  _request_timeout=_request_timeout
@@ -1770,12 +1781,12 @@ class RunnerApi:
1770
1781
  return response_data.response
1771
1782
 
1772
1783
 
1773
- def _get_runner_permissions_serialize(
1784
+ def _get_runner_access_control_serialize(
1774
1785
  self,
1775
1786
  organization_id,
1776
1787
  workspace_id,
1777
1788
  runner_id,
1778
- role,
1789
+ identity_id,
1779
1790
  _request_auth,
1780
1791
  _content_type,
1781
1792
  _headers,
@@ -1791,7 +1802,9 @@ class RunnerApi:
1791
1802
  _query_params: List[Tuple[str, str]] = []
1792
1803
  _header_params: Dict[str, Optional[str]] = _headers or {}
1793
1804
  _form_params: List[Tuple[str, str]] = []
1794
- _files: Dict[str, Union[str, bytes]] = {}
1805
+ _files: Dict[
1806
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1807
+ ] = {}
1795
1808
  _body_params: Optional[bytes] = None
1796
1809
 
1797
1810
  # process the path parameters
@@ -1801,8 +1814,8 @@ class RunnerApi:
1801
1814
  _path_params['workspace_id'] = workspace_id
1802
1815
  if runner_id is not None:
1803
1816
  _path_params['runner_id'] = runner_id
1804
- if role is not None:
1805
- _path_params['role'] = role
1817
+ if identity_id is not None:
1818
+ _path_params['identity_id'] = identity_id
1806
1819
  # process the query parameters
1807
1820
  # process the header parameters
1808
1821
  # process the form parameters
@@ -1813,7 +1826,8 @@ class RunnerApi:
1813
1826
  if 'Accept' not in _header_params:
1814
1827
  _header_params['Accept'] = self.api_client.select_header_accept(
1815
1828
  [
1816
- 'application/json'
1829
+ 'application/json',
1830
+ 'application/yaml'
1817
1831
  ]
1818
1832
  )
1819
1833
 
@@ -1825,7 +1839,7 @@ class RunnerApi:
1825
1839
 
1826
1840
  return self.api_client.param_serialize(
1827
1841
  method='GET',
1828
- 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}',
1829
1843
  path_params=_path_params,
1830
1844
  query_params=_query_params,
1831
1845
  header_params=_header_params,
@@ -2082,7 +2096,9 @@ class RunnerApi:
2082
2096
  _query_params: List[Tuple[str, str]] = []
2083
2097
  _header_params: Dict[str, Optional[str]] = _headers or {}
2084
2098
  _form_params: List[Tuple[str, str]] = []
2085
- _files: Dict[str, Union[str, bytes]] = {}
2099
+ _files: Dict[
2100
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2101
+ ] = {}
2086
2102
  _body_params: Optional[bytes] = None
2087
2103
 
2088
2104
  # process the path parameters
@@ -2102,7 +2118,8 @@ class RunnerApi:
2102
2118
  if 'Accept' not in _header_params:
2103
2119
  _header_params['Accept'] = self.api_client.select_header_accept(
2104
2120
  [
2105
- 'application/json'
2121
+ 'application/json',
2122
+ 'application/yaml'
2106
2123
  ]
2107
2124
  )
2108
2125
 
@@ -2131,11 +2148,12 @@ class RunnerApi:
2131
2148
 
2132
2149
 
2133
2150
  @validate_call
2134
- def get_runner_security_users(
2151
+ def list_runner_permissions(
2135
2152
  self,
2136
2153
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2137
2154
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2138
2155
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2156
+ role: Annotated[StrictStr, Field(description="the Role")],
2139
2157
  _request_timeout: Union[
2140
2158
  None,
2141
2159
  Annotated[StrictFloat, Field(gt=0)],
@@ -2149,7 +2167,7 @@ class RunnerApi:
2149
2167
  _headers: Optional[Dict[StrictStr, Any]] = None,
2150
2168
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2151
2169
  ) -> List[str]:
2152
- """Get the Runner security users list
2170
+ """Get the Runner permission by given role
2153
2171
 
2154
2172
 
2155
2173
  :param organization_id: the Organization identifier (required)
@@ -2158,6 +2176,8 @@ class RunnerApi:
2158
2176
  :type workspace_id: str
2159
2177
  :param runner_id: the Runner identifier (required)
2160
2178
  :type runner_id: str
2179
+ :param role: the Role (required)
2180
+ :type role: str
2161
2181
  :param _request_timeout: timeout setting for this request. If one
2162
2182
  number provided, it will be total request
2163
2183
  timeout. It can also be a pair (tuple) of
@@ -2180,10 +2200,11 @@ class RunnerApi:
2180
2200
  :return: Returns the result object.
2181
2201
  """ # noqa: E501
2182
2202
 
2183
- _param = self._get_runner_security_users_serialize(
2203
+ _param = self._list_runner_permissions_serialize(
2184
2204
  organization_id=organization_id,
2185
2205
  workspace_id=workspace_id,
2186
2206
  runner_id=runner_id,
2207
+ role=role,
2187
2208
  _request_auth=_request_auth,
2188
2209
  _content_type=_content_type,
2189
2210
  _headers=_headers,
@@ -2192,7 +2213,6 @@ class RunnerApi:
2192
2213
 
2193
2214
  _response_types_map: Dict[str, Optional[str]] = {
2194
2215
  '200': "List[str]",
2195
- '404': None,
2196
2216
  }
2197
2217
  response_data = self.api_client.call_api(
2198
2218
  *_param,
@@ -2206,11 +2226,12 @@ class RunnerApi:
2206
2226
 
2207
2227
 
2208
2228
  @validate_call
2209
- def get_runner_security_users_with_http_info(
2229
+ def list_runner_permissions_with_http_info(
2210
2230
  self,
2211
2231
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2212
2232
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2213
2233
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2234
+ role: Annotated[StrictStr, Field(description="the Role")],
2214
2235
  _request_timeout: Union[
2215
2236
  None,
2216
2237
  Annotated[StrictFloat, Field(gt=0)],
@@ -2224,7 +2245,7 @@ class RunnerApi:
2224
2245
  _headers: Optional[Dict[StrictStr, Any]] = None,
2225
2246
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2226
2247
  ) -> ApiResponse[List[str]]:
2227
- """Get the Runner security users list
2248
+ """Get the Runner permission by given role
2228
2249
 
2229
2250
 
2230
2251
  :param organization_id: the Organization identifier (required)
@@ -2233,6 +2254,8 @@ class RunnerApi:
2233
2254
  :type workspace_id: str
2234
2255
  :param runner_id: the Runner identifier (required)
2235
2256
  :type runner_id: str
2257
+ :param role: the Role (required)
2258
+ :type role: str
2236
2259
  :param _request_timeout: timeout setting for this request. If one
2237
2260
  number provided, it will be total request
2238
2261
  timeout. It can also be a pair (tuple) of
@@ -2255,10 +2278,11 @@ class RunnerApi:
2255
2278
  :return: Returns the result object.
2256
2279
  """ # noqa: E501
2257
2280
 
2258
- _param = self._get_runner_security_users_serialize(
2281
+ _param = self._list_runner_permissions_serialize(
2259
2282
  organization_id=organization_id,
2260
2283
  workspace_id=workspace_id,
2261
2284
  runner_id=runner_id,
2285
+ role=role,
2262
2286
  _request_auth=_request_auth,
2263
2287
  _content_type=_content_type,
2264
2288
  _headers=_headers,
@@ -2267,7 +2291,6 @@ class RunnerApi:
2267
2291
 
2268
2292
  _response_types_map: Dict[str, Optional[str]] = {
2269
2293
  '200': "List[str]",
2270
- '404': None,
2271
2294
  }
2272
2295
  response_data = self.api_client.call_api(
2273
2296
  *_param,
@@ -2281,11 +2304,12 @@ class RunnerApi:
2281
2304
 
2282
2305
 
2283
2306
  @validate_call
2284
- def get_runner_security_users_without_preload_content(
2307
+ def list_runner_permissions_without_preload_content(
2285
2308
  self,
2286
2309
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2287
2310
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2288
2311
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2312
+ role: Annotated[StrictStr, Field(description="the Role")],
2289
2313
  _request_timeout: Union[
2290
2314
  None,
2291
2315
  Annotated[StrictFloat, Field(gt=0)],
@@ -2299,7 +2323,7 @@ class RunnerApi:
2299
2323
  _headers: Optional[Dict[StrictStr, Any]] = None,
2300
2324
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2301
2325
  ) -> RESTResponseType:
2302
- """Get the Runner security users list
2326
+ """Get the Runner permission by given role
2303
2327
 
2304
2328
 
2305
2329
  :param organization_id: the Organization identifier (required)
@@ -2308,6 +2332,8 @@ class RunnerApi:
2308
2332
  :type workspace_id: str
2309
2333
  :param runner_id: the Runner identifier (required)
2310
2334
  :type runner_id: str
2335
+ :param role: the Role (required)
2336
+ :type role: str
2311
2337
  :param _request_timeout: timeout setting for this request. If one
2312
2338
  number provided, it will be total request
2313
2339
  timeout. It can also be a pair (tuple) of
@@ -2330,10 +2356,11 @@ class RunnerApi:
2330
2356
  :return: Returns the result object.
2331
2357
  """ # noqa: E501
2332
2358
 
2333
- _param = self._get_runner_security_users_serialize(
2359
+ _param = self._list_runner_permissions_serialize(
2334
2360
  organization_id=organization_id,
2335
2361
  workspace_id=workspace_id,
2336
2362
  runner_id=runner_id,
2363
+ role=role,
2337
2364
  _request_auth=_request_auth,
2338
2365
  _content_type=_content_type,
2339
2366
  _headers=_headers,
@@ -2342,7 +2369,6 @@ class RunnerApi:
2342
2369
 
2343
2370
  _response_types_map: Dict[str, Optional[str]] = {
2344
2371
  '200': "List[str]",
2345
- '404': None,
2346
2372
  }
2347
2373
  response_data = self.api_client.call_api(
2348
2374
  *_param,
@@ -2351,11 +2377,12 @@ class RunnerApi:
2351
2377
  return response_data.response
2352
2378
 
2353
2379
 
2354
- def _get_runner_security_users_serialize(
2380
+ def _list_runner_permissions_serialize(
2355
2381
  self,
2356
2382
  organization_id,
2357
2383
  workspace_id,
2358
2384
  runner_id,
2385
+ role,
2359
2386
  _request_auth,
2360
2387
  _content_type,
2361
2388
  _headers,
@@ -2371,7 +2398,9 @@ class RunnerApi:
2371
2398
  _query_params: List[Tuple[str, str]] = []
2372
2399
  _header_params: Dict[str, Optional[str]] = _headers or {}
2373
2400
  _form_params: List[Tuple[str, str]] = []
2374
- _files: Dict[str, Union[str, bytes]] = {}
2401
+ _files: Dict[
2402
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2403
+ ] = {}
2375
2404
  _body_params: Optional[bytes] = None
2376
2405
 
2377
2406
  # process the path parameters
@@ -2381,6 +2410,8 @@ class RunnerApi:
2381
2410
  _path_params['workspace_id'] = workspace_id
2382
2411
  if runner_id is not None:
2383
2412
  _path_params['runner_id'] = runner_id
2413
+ if role is not None:
2414
+ _path_params['role'] = role
2384
2415
  # process the query parameters
2385
2416
  # process the header parameters
2386
2417
  # process the form parameters
@@ -2391,7 +2422,8 @@ class RunnerApi:
2391
2422
  if 'Accept' not in _header_params:
2392
2423
  _header_params['Accept'] = self.api_client.select_header_accept(
2393
2424
  [
2394
- 'application/json'
2425
+ 'application/json',
2426
+ 'application/yaml'
2395
2427
  ]
2396
2428
  )
2397
2429
 
@@ -2403,7 +2435,7 @@ class RunnerApi:
2403
2435
 
2404
2436
  return self.api_client.param_serialize(
2405
2437
  method='GET',
2406
- 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}',
2407
2439
  path_params=_path_params,
2408
2440
  query_params=_query_params,
2409
2441
  header_params=_header_params,
@@ -2420,12 +2452,11 @@ class RunnerApi:
2420
2452
 
2421
2453
 
2422
2454
  @validate_call
2423
- def list_runners(
2455
+ def list_runner_security_users(
2424
2456
  self,
2425
2457
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2426
2458
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2427
- page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
2428
- size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
2459
+ runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2429
2460
  _request_timeout: Union[
2430
2461
  None,
2431
2462
  Annotated[StrictFloat, Field(gt=0)],
@@ -2438,18 +2469,16 @@ class RunnerApi:
2438
2469
  _content_type: Optional[StrictStr] = None,
2439
2470
  _headers: Optional[Dict[StrictStr, Any]] = None,
2440
2471
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2441
- ) -> List[Runner]:
2442
- """List all Runners
2472
+ ) -> List[str]:
2473
+ """Get the Runner security users list
2443
2474
 
2444
2475
 
2445
2476
  :param organization_id: the Organization identifier (required)
2446
2477
  :type organization_id: str
2447
2478
  :param workspace_id: the Workspace identifier (required)
2448
2479
  :type workspace_id: str
2449
- :param page: page number to query (first page is at index 0)
2450
- :type page: int
2451
- :param size: amount of result by page
2452
- :type size: int
2480
+ :param runner_id: the Runner identifier (required)
2481
+ :type runner_id: str
2453
2482
  :param _request_timeout: timeout setting for this request. If one
2454
2483
  number provided, it will be total request
2455
2484
  timeout. It can also be a pair (tuple) of
@@ -2472,11 +2501,10 @@ class RunnerApi:
2472
2501
  :return: Returns the result object.
2473
2502
  """ # noqa: E501
2474
2503
 
2475
- _param = self._list_runners_serialize(
2504
+ _param = self._list_runner_security_users_serialize(
2476
2505
  organization_id=organization_id,
2477
2506
  workspace_id=workspace_id,
2478
- page=page,
2479
- size=size,
2507
+ runner_id=runner_id,
2480
2508
  _request_auth=_request_auth,
2481
2509
  _content_type=_content_type,
2482
2510
  _headers=_headers,
@@ -2484,7 +2512,8 @@ class RunnerApi:
2484
2512
  )
2485
2513
 
2486
2514
  _response_types_map: Dict[str, Optional[str]] = {
2487
- '200': "List[Runner]",
2515
+ '200': "List[str]",
2516
+ '404': None,
2488
2517
  }
2489
2518
  response_data = self.api_client.call_api(
2490
2519
  *_param,
@@ -2498,12 +2527,11 @@ class RunnerApi:
2498
2527
 
2499
2528
 
2500
2529
  @validate_call
2501
- def list_runners_with_http_info(
2530
+ def list_runner_security_users_with_http_info(
2502
2531
  self,
2503
2532
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2504
2533
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2505
- page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
2506
- size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
2534
+ runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2507
2535
  _request_timeout: Union[
2508
2536
  None,
2509
2537
  Annotated[StrictFloat, Field(gt=0)],
@@ -2516,18 +2544,16 @@ class RunnerApi:
2516
2544
  _content_type: Optional[StrictStr] = None,
2517
2545
  _headers: Optional[Dict[StrictStr, Any]] = None,
2518
2546
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2519
- ) -> ApiResponse[List[Runner]]:
2520
- """List all Runners
2547
+ ) -> ApiResponse[List[str]]:
2548
+ """Get the Runner security users list
2521
2549
 
2522
2550
 
2523
2551
  :param organization_id: the Organization identifier (required)
2524
2552
  :type organization_id: str
2525
2553
  :param workspace_id: the Workspace identifier (required)
2526
2554
  :type workspace_id: str
2527
- :param page: page number to query (first page is at index 0)
2528
- :type page: int
2529
- :param size: amount of result by page
2530
- :type size: int
2555
+ :param runner_id: the Runner identifier (required)
2556
+ :type runner_id: str
2531
2557
  :param _request_timeout: timeout setting for this request. If one
2532
2558
  number provided, it will be total request
2533
2559
  timeout. It can also be a pair (tuple) of
@@ -2550,11 +2576,10 @@ class RunnerApi:
2550
2576
  :return: Returns the result object.
2551
2577
  """ # noqa: E501
2552
2578
 
2553
- _param = self._list_runners_serialize(
2579
+ _param = self._list_runner_security_users_serialize(
2554
2580
  organization_id=organization_id,
2555
2581
  workspace_id=workspace_id,
2556
- page=page,
2557
- size=size,
2582
+ runner_id=runner_id,
2558
2583
  _request_auth=_request_auth,
2559
2584
  _content_type=_content_type,
2560
2585
  _headers=_headers,
@@ -2562,7 +2587,8 @@ class RunnerApi:
2562
2587
  )
2563
2588
 
2564
2589
  _response_types_map: Dict[str, Optional[str]] = {
2565
- '200': "List[Runner]",
2590
+ '200': "List[str]",
2591
+ '404': None,
2566
2592
  }
2567
2593
  response_data = self.api_client.call_api(
2568
2594
  *_param,
@@ -2576,12 +2602,11 @@ class RunnerApi:
2576
2602
 
2577
2603
 
2578
2604
  @validate_call
2579
- def list_runners_without_preload_content(
2605
+ def list_runner_security_users_without_preload_content(
2580
2606
  self,
2581
2607
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2582
2608
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2583
- page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
2584
- size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
2609
+ runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2585
2610
  _request_timeout: Union[
2586
2611
  None,
2587
2612
  Annotated[StrictFloat, Field(gt=0)],
@@ -2595,17 +2620,15 @@ class RunnerApi:
2595
2620
  _headers: Optional[Dict[StrictStr, Any]] = None,
2596
2621
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2597
2622
  ) -> RESTResponseType:
2598
- """List all Runners
2623
+ """Get the Runner security users list
2599
2624
 
2600
2625
 
2601
2626
  :param organization_id: the Organization identifier (required)
2602
2627
  :type organization_id: str
2603
2628
  :param workspace_id: the Workspace identifier (required)
2604
2629
  :type workspace_id: str
2605
- :param page: page number to query (first page is at index 0)
2606
- :type page: int
2607
- :param size: amount of result by page
2608
- :type size: int
2630
+ :param runner_id: the Runner identifier (required)
2631
+ :type runner_id: str
2609
2632
  :param _request_timeout: timeout setting for this request. If one
2610
2633
  number provided, it will be total request
2611
2634
  timeout. It can also be a pair (tuple) of
@@ -2628,11 +2651,10 @@ class RunnerApi:
2628
2651
  :return: Returns the result object.
2629
2652
  """ # noqa: E501
2630
2653
 
2631
- _param = self._list_runners_serialize(
2654
+ _param = self._list_runner_security_users_serialize(
2632
2655
  organization_id=organization_id,
2633
2656
  workspace_id=workspace_id,
2634
- page=page,
2635
- size=size,
2657
+ runner_id=runner_id,
2636
2658
  _request_auth=_request_auth,
2637
2659
  _content_type=_content_type,
2638
2660
  _headers=_headers,
@@ -2640,7 +2662,8 @@ class RunnerApi:
2640
2662
  )
2641
2663
 
2642
2664
  _response_types_map: Dict[str, Optional[str]] = {
2643
- '200': "List[Runner]",
2665
+ '200': "List[str]",
2666
+ '404': None,
2644
2667
  }
2645
2668
  response_data = self.api_client.call_api(
2646
2669
  *_param,
@@ -2649,12 +2672,11 @@ class RunnerApi:
2649
2672
  return response_data.response
2650
2673
 
2651
2674
 
2652
- def _list_runners_serialize(
2675
+ def _list_runner_security_users_serialize(
2653
2676
  self,
2654
2677
  organization_id,
2655
2678
  workspace_id,
2656
- page,
2657
- size,
2679
+ runner_id,
2658
2680
  _request_auth,
2659
2681
  _content_type,
2660
2682
  _headers,
@@ -2670,7 +2692,9 @@ class RunnerApi:
2670
2692
  _query_params: List[Tuple[str, str]] = []
2671
2693
  _header_params: Dict[str, Optional[str]] = _headers or {}
2672
2694
  _form_params: List[Tuple[str, str]] = []
2673
- _files: Dict[str, Union[str, bytes]] = {}
2695
+ _files: Dict[
2696
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2697
+ ] = {}
2674
2698
  _body_params: Optional[bytes] = None
2675
2699
 
2676
2700
  # process the path parameters
@@ -2678,15 +2702,9 @@ class RunnerApi:
2678
2702
  _path_params['organization_id'] = organization_id
2679
2703
  if workspace_id is not None:
2680
2704
  _path_params['workspace_id'] = workspace_id
2705
+ if runner_id is not None:
2706
+ _path_params['runner_id'] = runner_id
2681
2707
  # process the query parameters
2682
- if page is not None:
2683
-
2684
- _query_params.append(('page', page))
2685
-
2686
- if size is not None:
2687
-
2688
- _query_params.append(('size', size))
2689
-
2690
2708
  # process the header parameters
2691
2709
  # process the form parameters
2692
2710
  # process the body parameter
@@ -2696,7 +2714,8 @@ class RunnerApi:
2696
2714
  if 'Accept' not in _header_params:
2697
2715
  _header_params['Accept'] = self.api_client.select_header_accept(
2698
2716
  [
2699
- 'application/json'
2717
+ 'application/json',
2718
+ 'application/yaml'
2700
2719
  ]
2701
2720
  )
2702
2721
 
@@ -2708,7 +2727,7 @@ class RunnerApi:
2708
2727
 
2709
2728
  return self.api_client.param_serialize(
2710
2729
  method='GET',
2711
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners',
2730
+ resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/users',
2712
2731
  path_params=_path_params,
2713
2732
  query_params=_query_params,
2714
2733
  header_params=_header_params,
@@ -2725,12 +2744,12 @@ class RunnerApi:
2725
2744
 
2726
2745
 
2727
2746
  @validate_call
2728
- def remove_runner_access_control(
2747
+ def list_runners(
2729
2748
  self,
2730
2749
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2731
2750
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2732
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2733
- identity_id: Annotated[StrictStr, Field(description="the User 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,
2734
2753
  _request_timeout: Union[
2735
2754
  None,
2736
2755
  Annotated[StrictFloat, Field(gt=0)],
@@ -2743,18 +2762,18 @@ class RunnerApi:
2743
2762
  _content_type: Optional[StrictStr] = None,
2744
2763
  _headers: Optional[Dict[StrictStr, Any]] = None,
2745
2764
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2746
- ) -> None:
2747
- """Remove the specified access from the given Organization Runner
2765
+ ) -> List[Runner]:
2766
+ """List all Runners
2748
2767
 
2749
2768
 
2750
2769
  :param organization_id: the Organization identifier (required)
2751
2770
  :type organization_id: str
2752
2771
  :param workspace_id: the Workspace identifier (required)
2753
2772
  :type workspace_id: str
2754
- :param runner_id: the Runner identifier (required)
2755
- :type runner_id: str
2756
- :param identity_id: the User identifier (required)
2757
- :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
2758
2777
  :param _request_timeout: timeout setting for this request. If one
2759
2778
  number provided, it will be total request
2760
2779
  timeout. It can also be a pair (tuple) of
@@ -2777,11 +2796,11 @@ class RunnerApi:
2777
2796
  :return: Returns the result object.
2778
2797
  """ # noqa: E501
2779
2798
 
2780
- _param = self._remove_runner_access_control_serialize(
2799
+ _param = self._list_runners_serialize(
2781
2800
  organization_id=organization_id,
2782
2801
  workspace_id=workspace_id,
2783
- runner_id=runner_id,
2784
- identity_id=identity_id,
2802
+ page=page,
2803
+ size=size,
2785
2804
  _request_auth=_request_auth,
2786
2805
  _content_type=_content_type,
2787
2806
  _headers=_headers,
@@ -2789,8 +2808,7 @@ class RunnerApi:
2789
2808
  )
2790
2809
 
2791
2810
  _response_types_map: Dict[str, Optional[str]] = {
2792
- '204': None,
2793
- '404': None,
2811
+ '200': "List[Runner]",
2794
2812
  }
2795
2813
  response_data = self.api_client.call_api(
2796
2814
  *_param,
@@ -2804,12 +2822,12 @@ class RunnerApi:
2804
2822
 
2805
2823
 
2806
2824
  @validate_call
2807
- def remove_runner_access_control_with_http_info(
2825
+ def list_runners_with_http_info(
2808
2826
  self,
2809
2827
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2810
2828
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2811
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2812
- identity_id: Annotated[StrictStr, Field(description="the User 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,
2813
2831
  _request_timeout: Union[
2814
2832
  None,
2815
2833
  Annotated[StrictFloat, Field(gt=0)],
@@ -2822,18 +2840,18 @@ class RunnerApi:
2822
2840
  _content_type: Optional[StrictStr] = None,
2823
2841
  _headers: Optional[Dict[StrictStr, Any]] = None,
2824
2842
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2825
- ) -> ApiResponse[None]:
2826
- """Remove the specified access from the given Organization Runner
2843
+ ) -> ApiResponse[List[Runner]]:
2844
+ """List all Runners
2827
2845
 
2828
2846
 
2829
2847
  :param organization_id: the Organization identifier (required)
2830
2848
  :type organization_id: str
2831
2849
  :param workspace_id: the Workspace identifier (required)
2832
2850
  :type workspace_id: str
2833
- :param runner_id: the Runner identifier (required)
2834
- :type runner_id: str
2835
- :param identity_id: the User identifier (required)
2836
- :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
2837
2855
  :param _request_timeout: timeout setting for this request. If one
2838
2856
  number provided, it will be total request
2839
2857
  timeout. It can also be a pair (tuple) of
@@ -2856,11 +2874,11 @@ class RunnerApi:
2856
2874
  :return: Returns the result object.
2857
2875
  """ # noqa: E501
2858
2876
 
2859
- _param = self._remove_runner_access_control_serialize(
2877
+ _param = self._list_runners_serialize(
2860
2878
  organization_id=organization_id,
2861
2879
  workspace_id=workspace_id,
2862
- runner_id=runner_id,
2863
- identity_id=identity_id,
2880
+ page=page,
2881
+ size=size,
2864
2882
  _request_auth=_request_auth,
2865
2883
  _content_type=_content_type,
2866
2884
  _headers=_headers,
@@ -2868,8 +2886,7 @@ class RunnerApi:
2868
2886
  )
2869
2887
 
2870
2888
  _response_types_map: Dict[str, Optional[str]] = {
2871
- '204': None,
2872
- '404': None,
2889
+ '200': "List[Runner]",
2873
2890
  }
2874
2891
  response_data = self.api_client.call_api(
2875
2892
  *_param,
@@ -2883,12 +2900,12 @@ class RunnerApi:
2883
2900
 
2884
2901
 
2885
2902
  @validate_call
2886
- def remove_runner_access_control_without_preload_content(
2903
+ def list_runners_without_preload_content(
2887
2904
  self,
2888
2905
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2889
2906
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2890
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2891
- identity_id: Annotated[StrictStr, Field(description="the User 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,
2892
2909
  _request_timeout: Union[
2893
2910
  None,
2894
2911
  Annotated[StrictFloat, Field(gt=0)],
@@ -2902,17 +2919,17 @@ class RunnerApi:
2902
2919
  _headers: Optional[Dict[StrictStr, Any]] = None,
2903
2920
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2904
2921
  ) -> RESTResponseType:
2905
- """Remove the specified access from the given Organization Runner
2922
+ """List all Runners
2906
2923
 
2907
2924
 
2908
2925
  :param organization_id: the Organization identifier (required)
2909
2926
  :type organization_id: str
2910
2927
  :param workspace_id: the Workspace identifier (required)
2911
2928
  :type workspace_id: str
2912
- :param runner_id: the Runner identifier (required)
2913
- :type runner_id: str
2914
- :param identity_id: the User identifier (required)
2915
- :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
2916
2933
  :param _request_timeout: timeout setting for this request. If one
2917
2934
  number provided, it will be total request
2918
2935
  timeout. It can also be a pair (tuple) of
@@ -2935,11 +2952,11 @@ class RunnerApi:
2935
2952
  :return: Returns the result object.
2936
2953
  """ # noqa: E501
2937
2954
 
2938
- _param = self._remove_runner_access_control_serialize(
2955
+ _param = self._list_runners_serialize(
2939
2956
  organization_id=organization_id,
2940
2957
  workspace_id=workspace_id,
2941
- runner_id=runner_id,
2942
- identity_id=identity_id,
2958
+ page=page,
2959
+ size=size,
2943
2960
  _request_auth=_request_auth,
2944
2961
  _content_type=_content_type,
2945
2962
  _headers=_headers,
@@ -2947,8 +2964,7 @@ class RunnerApi:
2947
2964
  )
2948
2965
 
2949
2966
  _response_types_map: Dict[str, Optional[str]] = {
2950
- '204': None,
2951
- '404': None,
2967
+ '200': "List[Runner]",
2952
2968
  }
2953
2969
  response_data = self.api_client.call_api(
2954
2970
  *_param,
@@ -2957,12 +2973,12 @@ class RunnerApi:
2957
2973
  return response_data.response
2958
2974
 
2959
2975
 
2960
- def _remove_runner_access_control_serialize(
2976
+ def _list_runners_serialize(
2961
2977
  self,
2962
2978
  organization_id,
2963
2979
  workspace_id,
2964
- runner_id,
2965
- identity_id,
2980
+ page,
2981
+ size,
2966
2982
  _request_auth,
2967
2983
  _content_type,
2968
2984
  _headers,
@@ -2978,7 +2994,9 @@ class RunnerApi:
2978
2994
  _query_params: List[Tuple[str, str]] = []
2979
2995
  _header_params: Dict[str, Optional[str]] = _headers or {}
2980
2996
  _form_params: List[Tuple[str, str]] = []
2981
- _files: Dict[str, Union[str, bytes]] = {}
2997
+ _files: Dict[
2998
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2999
+ ] = {}
2982
3000
  _body_params: Optional[bytes] = None
2983
3001
 
2984
3002
  # process the path parameters
@@ -2986,16 +3004,28 @@ class RunnerApi:
2986
3004
  _path_params['organization_id'] = organization_id
2987
3005
  if workspace_id is not None:
2988
3006
  _path_params['workspace_id'] = workspace_id
2989
- if runner_id is not None:
2990
- _path_params['runner_id'] = runner_id
2991
- if identity_id is not None:
2992
- _path_params['identity_id'] = identity_id
2993
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
+
2994
3016
  # process the header parameters
2995
3017
  # process the form parameters
2996
3018
  # process the body parameter
2997
3019
 
2998
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
+ )
2999
3029
 
3000
3030
 
3001
3031
  # authentication setting
@@ -3004,8 +3034,8 @@ class RunnerApi:
3004
3034
  ]
3005
3035
 
3006
3036
  return self.api_client.param_serialize(
3007
- method='DELETE',
3008
- 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',
3009
3039
  path_params=_path_params,
3010
3040
  query_params=_query_params,
3011
3041
  header_params=_header_params,
@@ -3022,12 +3052,11 @@ class RunnerApi:
3022
3052
 
3023
3053
 
3024
3054
  @validate_call
3025
- def set_runner_default_security(
3055
+ def start_run(
3026
3056
  self,
3027
3057
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3028
3058
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3029
3059
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3030
- 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.")],
3031
3060
  _request_timeout: Union[
3032
3061
  None,
3033
3062
  Annotated[StrictFloat, Field(gt=0)],
@@ -3040,8 +3069,8 @@ class RunnerApi:
3040
3069
  _content_type: Optional[StrictStr] = None,
3041
3070
  _headers: Optional[Dict[StrictStr, Any]] = None,
3042
3071
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3043
- ) -> RunnerSecurity:
3044
- """Set the Runner default security
3072
+ ) -> CreatedRun:
3073
+ """Start a run with runner parameters
3045
3074
 
3046
3075
 
3047
3076
  :param organization_id: the Organization identifier (required)
@@ -3050,8 +3079,6 @@ class RunnerApi:
3050
3079
  :type workspace_id: str
3051
3080
  :param runner_id: the Runner identifier (required)
3052
3081
  :type runner_id: str
3053
- :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)
3054
- :type runner_role: RunnerRole
3055
3082
  :param _request_timeout: timeout setting for this request. If one
3056
3083
  number provided, it will be total request
3057
3084
  timeout. It can also be a pair (tuple) of
@@ -3074,11 +3101,10 @@ class RunnerApi:
3074
3101
  :return: Returns the result object.
3075
3102
  """ # noqa: E501
3076
3103
 
3077
- _param = self._set_runner_default_security_serialize(
3104
+ _param = self._start_run_serialize(
3078
3105
  organization_id=organization_id,
3079
3106
  workspace_id=workspace_id,
3080
3107
  runner_id=runner_id,
3081
- runner_role=runner_role,
3082
3108
  _request_auth=_request_auth,
3083
3109
  _content_type=_content_type,
3084
3110
  _headers=_headers,
@@ -3086,7 +3112,7 @@ class RunnerApi:
3086
3112
  )
3087
3113
 
3088
3114
  _response_types_map: Dict[str, Optional[str]] = {
3089
- '201': "RunnerSecurity",
3115
+ '202': "CreatedRun",
3090
3116
  '404': None,
3091
3117
  }
3092
3118
  response_data = self.api_client.call_api(
@@ -3101,12 +3127,11 @@ class RunnerApi:
3101
3127
 
3102
3128
 
3103
3129
  @validate_call
3104
- def set_runner_default_security_with_http_info(
3130
+ def start_run_with_http_info(
3105
3131
  self,
3106
3132
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3107
3133
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3108
3134
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3109
- 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.")],
3110
3135
  _request_timeout: Union[
3111
3136
  None,
3112
3137
  Annotated[StrictFloat, Field(gt=0)],
@@ -3119,8 +3144,8 @@ class RunnerApi:
3119
3144
  _content_type: Optional[StrictStr] = None,
3120
3145
  _headers: Optional[Dict[StrictStr, Any]] = None,
3121
3146
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3122
- ) -> ApiResponse[RunnerSecurity]:
3123
- """Set the Runner default security
3147
+ ) -> ApiResponse[CreatedRun]:
3148
+ """Start a run with runner parameters
3124
3149
 
3125
3150
 
3126
3151
  :param organization_id: the Organization identifier (required)
@@ -3129,8 +3154,6 @@ class RunnerApi:
3129
3154
  :type workspace_id: str
3130
3155
  :param runner_id: the Runner identifier (required)
3131
3156
  :type runner_id: str
3132
- :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)
3133
- :type runner_role: RunnerRole
3134
3157
  :param _request_timeout: timeout setting for this request. If one
3135
3158
  number provided, it will be total request
3136
3159
  timeout. It can also be a pair (tuple) of
@@ -3153,11 +3176,10 @@ class RunnerApi:
3153
3176
  :return: Returns the result object.
3154
3177
  """ # noqa: E501
3155
3178
 
3156
- _param = self._set_runner_default_security_serialize(
3179
+ _param = self._start_run_serialize(
3157
3180
  organization_id=organization_id,
3158
3181
  workspace_id=workspace_id,
3159
3182
  runner_id=runner_id,
3160
- runner_role=runner_role,
3161
3183
  _request_auth=_request_auth,
3162
3184
  _content_type=_content_type,
3163
3185
  _headers=_headers,
@@ -3165,7 +3187,7 @@ class RunnerApi:
3165
3187
  )
3166
3188
 
3167
3189
  _response_types_map: Dict[str, Optional[str]] = {
3168
- '201': "RunnerSecurity",
3190
+ '202': "CreatedRun",
3169
3191
  '404': None,
3170
3192
  }
3171
3193
  response_data = self.api_client.call_api(
@@ -3180,12 +3202,11 @@ class RunnerApi:
3180
3202
 
3181
3203
 
3182
3204
  @validate_call
3183
- def set_runner_default_security_without_preload_content(
3205
+ def start_run_without_preload_content(
3184
3206
  self,
3185
3207
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3186
3208
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3187
3209
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3188
- 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.")],
3189
3210
  _request_timeout: Union[
3190
3211
  None,
3191
3212
  Annotated[StrictFloat, Field(gt=0)],
@@ -3199,7 +3220,7 @@ class RunnerApi:
3199
3220
  _headers: Optional[Dict[StrictStr, Any]] = None,
3200
3221
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3201
3222
  ) -> RESTResponseType:
3202
- """Set the Runner default security
3223
+ """Start a run with runner parameters
3203
3224
 
3204
3225
 
3205
3226
  :param organization_id: the Organization identifier (required)
@@ -3208,8 +3229,6 @@ class RunnerApi:
3208
3229
  :type workspace_id: str
3209
3230
  :param runner_id: the Runner identifier (required)
3210
3231
  :type runner_id: str
3211
- :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)
3212
- :type runner_role: RunnerRole
3213
3232
  :param _request_timeout: timeout setting for this request. If one
3214
3233
  number provided, it will be total request
3215
3234
  timeout. It can also be a pair (tuple) of
@@ -3232,11 +3251,10 @@ class RunnerApi:
3232
3251
  :return: Returns the result object.
3233
3252
  """ # noqa: E501
3234
3253
 
3235
- _param = self._set_runner_default_security_serialize(
3254
+ _param = self._start_run_serialize(
3236
3255
  organization_id=organization_id,
3237
3256
  workspace_id=workspace_id,
3238
3257
  runner_id=runner_id,
3239
- runner_role=runner_role,
3240
3258
  _request_auth=_request_auth,
3241
3259
  _content_type=_content_type,
3242
3260
  _headers=_headers,
@@ -3244,7 +3262,7 @@ class RunnerApi:
3244
3262
  )
3245
3263
 
3246
3264
  _response_types_map: Dict[str, Optional[str]] = {
3247
- '201': "RunnerSecurity",
3265
+ '202': "CreatedRun",
3248
3266
  '404': None,
3249
3267
  }
3250
3268
  response_data = self.api_client.call_api(
@@ -3254,12 +3272,11 @@ class RunnerApi:
3254
3272
  return response_data.response
3255
3273
 
3256
3274
 
3257
- def _set_runner_default_security_serialize(
3275
+ def _start_run_serialize(
3258
3276
  self,
3259
3277
  organization_id,
3260
3278
  workspace_id,
3261
3279
  runner_id,
3262
- runner_role,
3263
3280
  _request_auth,
3264
3281
  _content_type,
3265
3282
  _headers,
@@ -3275,7 +3292,9 @@ class RunnerApi:
3275
3292
  _query_params: List[Tuple[str, str]] = []
3276
3293
  _header_params: Dict[str, Optional[str]] = _headers or {}
3277
3294
  _form_params: List[Tuple[str, str]] = []
3278
- _files: Dict[str, Union[str, bytes]] = {}
3295
+ _files: Dict[
3296
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3297
+ ] = {}
3279
3298
  _body_params: Optional[bytes] = None
3280
3299
 
3281
3300
  # process the path parameters
@@ -3289,32 +3308,17 @@ class RunnerApi:
3289
3308
  # process the header parameters
3290
3309
  # process the form parameters
3291
3310
  # process the body parameter
3292
- if runner_role is not None:
3293
- _body_params = runner_role
3294
3311
 
3295
3312
 
3296
3313
  # set the HTTP header `Accept`
3297
3314
  if 'Accept' not in _header_params:
3298
3315
  _header_params['Accept'] = self.api_client.select_header_accept(
3299
3316
  [
3300
- 'application/json'
3317
+ 'application/json',
3318
+ 'application/yaml'
3301
3319
  ]
3302
3320
  )
3303
3321
 
3304
- # set the HTTP header `Content-Type`
3305
- if _content_type:
3306
- _header_params['Content-Type'] = _content_type
3307
- else:
3308
- _default_content_type = (
3309
- self.api_client.select_header_content_type(
3310
- [
3311
- 'application/json',
3312
- 'application/yaml'
3313
- ]
3314
- )
3315
- )
3316
- if _default_content_type is not None:
3317
- _header_params['Content-Type'] = _default_content_type
3318
3322
 
3319
3323
  # authentication setting
3320
3324
  _auth_settings: List[str] = [
@@ -3323,7 +3327,7 @@ class RunnerApi:
3323
3327
 
3324
3328
  return self.api_client.param_serialize(
3325
3329
  method='POST',
3326
- 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',
3327
3331
  path_params=_path_params,
3328
3332
  query_params=_query_params,
3329
3333
  header_params=_header_params,
@@ -3340,7 +3344,7 @@ class RunnerApi:
3340
3344
 
3341
3345
 
3342
3346
  @validate_call
3343
- def start_run(
3347
+ def stop_run(
3344
3348
  self,
3345
3349
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3346
3350
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
@@ -3357,8 +3361,8 @@ class RunnerApi:
3357
3361
  _content_type: Optional[StrictStr] = None,
3358
3362
  _headers: Optional[Dict[StrictStr, Any]] = None,
3359
3363
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3360
- ) -> CreatedRun:
3361
- """Start a run with runner parameters
3364
+ ) -> None:
3365
+ """Stop the last run
3362
3366
 
3363
3367
 
3364
3368
  :param organization_id: the Organization identifier (required)
@@ -3389,7 +3393,7 @@ class RunnerApi:
3389
3393
  :return: Returns the result object.
3390
3394
  """ # noqa: E501
3391
3395
 
3392
- _param = self._start_run_serialize(
3396
+ _param = self._stop_run_serialize(
3393
3397
  organization_id=organization_id,
3394
3398
  workspace_id=workspace_id,
3395
3399
  runner_id=runner_id,
@@ -3400,7 +3404,7 @@ class RunnerApi:
3400
3404
  )
3401
3405
 
3402
3406
  _response_types_map: Dict[str, Optional[str]] = {
3403
- '202': "CreatedRun",
3407
+ '202': None,
3404
3408
  '404': None,
3405
3409
  }
3406
3410
  response_data = self.api_client.call_api(
@@ -3415,7 +3419,7 @@ class RunnerApi:
3415
3419
 
3416
3420
 
3417
3421
  @validate_call
3418
- def start_run_with_http_info(
3422
+ def stop_run_with_http_info(
3419
3423
  self,
3420
3424
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3421
3425
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
@@ -3432,8 +3436,8 @@ class RunnerApi:
3432
3436
  _content_type: Optional[StrictStr] = None,
3433
3437
  _headers: Optional[Dict[StrictStr, Any]] = None,
3434
3438
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3435
- ) -> ApiResponse[CreatedRun]:
3436
- """Start a run with runner parameters
3439
+ ) -> ApiResponse[None]:
3440
+ """Stop the last run
3437
3441
 
3438
3442
 
3439
3443
  :param organization_id: the Organization identifier (required)
@@ -3464,7 +3468,7 @@ class RunnerApi:
3464
3468
  :return: Returns the result object.
3465
3469
  """ # noqa: E501
3466
3470
 
3467
- _param = self._start_run_serialize(
3471
+ _param = self._stop_run_serialize(
3468
3472
  organization_id=organization_id,
3469
3473
  workspace_id=workspace_id,
3470
3474
  runner_id=runner_id,
@@ -3475,7 +3479,7 @@ class RunnerApi:
3475
3479
  )
3476
3480
 
3477
3481
  _response_types_map: Dict[str, Optional[str]] = {
3478
- '202': "CreatedRun",
3482
+ '202': None,
3479
3483
  '404': None,
3480
3484
  }
3481
3485
  response_data = self.api_client.call_api(
@@ -3490,7 +3494,7 @@ class RunnerApi:
3490
3494
 
3491
3495
 
3492
3496
  @validate_call
3493
- def start_run_without_preload_content(
3497
+ def stop_run_without_preload_content(
3494
3498
  self,
3495
3499
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3496
3500
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
@@ -3508,7 +3512,7 @@ class RunnerApi:
3508
3512
  _headers: Optional[Dict[StrictStr, Any]] = None,
3509
3513
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3510
3514
  ) -> RESTResponseType:
3511
- """Start a run with runner parameters
3515
+ """Stop the last run
3512
3516
 
3513
3517
 
3514
3518
  :param organization_id: the Organization identifier (required)
@@ -3539,7 +3543,7 @@ class RunnerApi:
3539
3543
  :return: Returns the result object.
3540
3544
  """ # noqa: E501
3541
3545
 
3542
- _param = self._start_run_serialize(
3546
+ _param = self._stop_run_serialize(
3543
3547
  organization_id=organization_id,
3544
3548
  workspace_id=workspace_id,
3545
3549
  runner_id=runner_id,
@@ -3550,7 +3554,7 @@ class RunnerApi:
3550
3554
  )
3551
3555
 
3552
3556
  _response_types_map: Dict[str, Optional[str]] = {
3553
- '202': "CreatedRun",
3557
+ '202': None,
3554
3558
  '404': None,
3555
3559
  }
3556
3560
  response_data = self.api_client.call_api(
@@ -3560,7 +3564,7 @@ class RunnerApi:
3560
3564
  return response_data.response
3561
3565
 
3562
3566
 
3563
- def _start_run_serialize(
3567
+ def _stop_run_serialize(
3564
3568
  self,
3565
3569
  organization_id,
3566
3570
  workspace_id,
@@ -3580,7 +3584,9 @@ class RunnerApi:
3580
3584
  _query_params: List[Tuple[str, str]] = []
3581
3585
  _header_params: Dict[str, Optional[str]] = _headers or {}
3582
3586
  _form_params: List[Tuple[str, str]] = []
3583
- _files: Dict[str, Union[str, bytes]] = {}
3587
+ _files: Dict[
3588
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3589
+ ] = {}
3584
3590
  _body_params: Optional[bytes] = None
3585
3591
 
3586
3592
  # process the path parameters
@@ -3596,13 +3602,6 @@ class RunnerApi:
3596
3602
  # process the body parameter
3597
3603
 
3598
3604
 
3599
- # set the HTTP header `Accept`
3600
- if 'Accept' not in _header_params:
3601
- _header_params['Accept'] = self.api_client.select_header_accept(
3602
- [
3603
- 'application/json'
3604
- ]
3605
- )
3606
3605
 
3607
3606
 
3608
3607
  # authentication setting
@@ -3612,7 +3611,7 @@ class RunnerApi:
3612
3611
 
3613
3612
  return self.api_client.param_serialize(
3614
3613
  method='POST',
3615
- 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',
3616
3615
  path_params=_path_params,
3617
3616
  query_params=_query_params,
3618
3617
  header_params=_header_params,
@@ -3629,11 +3628,12 @@ class RunnerApi:
3629
3628
 
3630
3629
 
3631
3630
  @validate_call
3632
- def stop_run(
3631
+ def update_runner(
3633
3632
  self,
3634
3633
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3635
3634
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3636
3635
  runner_id: Annotated[StrictStr, Field(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")],
3637
3637
  _request_timeout: Union[
3638
3638
  None,
3639
3639
  Annotated[StrictFloat, Field(gt=0)],
@@ -3646,8 +3646,8 @@ class RunnerApi:
3646
3646
  _content_type: Optional[StrictStr] = None,
3647
3647
  _headers: Optional[Dict[StrictStr, Any]] = None,
3648
3648
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3649
- ) -> None:
3650
- """Stop the last run
3649
+ ) -> Runner:
3650
+ """Update a runner
3651
3651
 
3652
3652
 
3653
3653
  :param organization_id: the Organization identifier (required)
@@ -3656,6 +3656,8 @@ class RunnerApi:
3656
3656
  :type workspace_id: str
3657
3657
  :param runner_id: the Runner identifier (required)
3658
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
3659
3661
  :param _request_timeout: timeout setting for this request. If one
3660
3662
  number provided, it will be total request
3661
3663
  timeout. It can also be a pair (tuple) of
@@ -3678,10 +3680,11 @@ class RunnerApi:
3678
3680
  :return: Returns the result object.
3679
3681
  """ # noqa: E501
3680
3682
 
3681
- _param = self._stop_run_serialize(
3683
+ _param = self._update_runner_serialize(
3682
3684
  organization_id=organization_id,
3683
3685
  workspace_id=workspace_id,
3684
3686
  runner_id=runner_id,
3687
+ runner_update_request=runner_update_request,
3685
3688
  _request_auth=_request_auth,
3686
3689
  _content_type=_content_type,
3687
3690
  _headers=_headers,
@@ -3689,7 +3692,8 @@ class RunnerApi:
3689
3692
  )
3690
3693
 
3691
3694
  _response_types_map: Dict[str, Optional[str]] = {
3692
- '202': None,
3695
+ '200': "Runner",
3696
+ '400': None,
3693
3697
  '404': None,
3694
3698
  }
3695
3699
  response_data = self.api_client.call_api(
@@ -3704,11 +3708,12 @@ class RunnerApi:
3704
3708
 
3705
3709
 
3706
3710
  @validate_call
3707
- def stop_run_with_http_info(
3711
+ def update_runner_with_http_info(
3708
3712
  self,
3709
3713
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3710
3714
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3711
3715
  runner_id: Annotated[StrictStr, Field(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")],
3712
3717
  _request_timeout: Union[
3713
3718
  None,
3714
3719
  Annotated[StrictFloat, Field(gt=0)],
@@ -3721,8 +3726,8 @@ class RunnerApi:
3721
3726
  _content_type: Optional[StrictStr] = None,
3722
3727
  _headers: Optional[Dict[StrictStr, Any]] = None,
3723
3728
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3724
- ) -> ApiResponse[None]:
3725
- """Stop the last run
3729
+ ) -> ApiResponse[Runner]:
3730
+ """Update a runner
3726
3731
 
3727
3732
 
3728
3733
  :param organization_id: the Organization identifier (required)
@@ -3731,6 +3736,8 @@ class RunnerApi:
3731
3736
  :type workspace_id: str
3732
3737
  :param runner_id: the Runner identifier (required)
3733
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
3734
3741
  :param _request_timeout: timeout setting for this request. If one
3735
3742
  number provided, it will be total request
3736
3743
  timeout. It can also be a pair (tuple) of
@@ -3753,10 +3760,11 @@ class RunnerApi:
3753
3760
  :return: Returns the result object.
3754
3761
  """ # noqa: E501
3755
3762
 
3756
- _param = self._stop_run_serialize(
3763
+ _param = self._update_runner_serialize(
3757
3764
  organization_id=organization_id,
3758
3765
  workspace_id=workspace_id,
3759
3766
  runner_id=runner_id,
3767
+ runner_update_request=runner_update_request,
3760
3768
  _request_auth=_request_auth,
3761
3769
  _content_type=_content_type,
3762
3770
  _headers=_headers,
@@ -3764,7 +3772,8 @@ class RunnerApi:
3764
3772
  )
3765
3773
 
3766
3774
  _response_types_map: Dict[str, Optional[str]] = {
3767
- '202': None,
3775
+ '200': "Runner",
3776
+ '400': None,
3768
3777
  '404': None,
3769
3778
  }
3770
3779
  response_data = self.api_client.call_api(
@@ -3779,11 +3788,12 @@ class RunnerApi:
3779
3788
 
3780
3789
 
3781
3790
  @validate_call
3782
- def stop_run_without_preload_content(
3791
+ def update_runner_without_preload_content(
3783
3792
  self,
3784
3793
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3785
3794
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3786
3795
  runner_id: Annotated[StrictStr, Field(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")],
3787
3797
  _request_timeout: Union[
3788
3798
  None,
3789
3799
  Annotated[StrictFloat, Field(gt=0)],
@@ -3797,7 +3807,7 @@ class RunnerApi:
3797
3807
  _headers: Optional[Dict[StrictStr, Any]] = None,
3798
3808
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3799
3809
  ) -> RESTResponseType:
3800
- """Stop the last run
3810
+ """Update a runner
3801
3811
 
3802
3812
 
3803
3813
  :param organization_id: the Organization identifier (required)
@@ -3806,6 +3816,8 @@ class RunnerApi:
3806
3816
  :type workspace_id: str
3807
3817
  :param runner_id: the Runner identifier (required)
3808
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
3809
3821
  :param _request_timeout: timeout setting for this request. If one
3810
3822
  number provided, it will be total request
3811
3823
  timeout. It can also be a pair (tuple) of
@@ -3828,10 +3840,11 @@ class RunnerApi:
3828
3840
  :return: Returns the result object.
3829
3841
  """ # noqa: E501
3830
3842
 
3831
- _param = self._stop_run_serialize(
3843
+ _param = self._update_runner_serialize(
3832
3844
  organization_id=organization_id,
3833
3845
  workspace_id=workspace_id,
3834
3846
  runner_id=runner_id,
3847
+ runner_update_request=runner_update_request,
3835
3848
  _request_auth=_request_auth,
3836
3849
  _content_type=_content_type,
3837
3850
  _headers=_headers,
@@ -3839,7 +3852,8 @@ class RunnerApi:
3839
3852
  )
3840
3853
 
3841
3854
  _response_types_map: Dict[str, Optional[str]] = {
3842
- '202': None,
3855
+ '200': "Runner",
3856
+ '400': None,
3843
3857
  '404': None,
3844
3858
  }
3845
3859
  response_data = self.api_client.call_api(
@@ -3849,11 +3863,12 @@ class RunnerApi:
3849
3863
  return response_data.response
3850
3864
 
3851
3865
 
3852
- def _stop_run_serialize(
3866
+ def _update_runner_serialize(
3853
3867
  self,
3854
3868
  organization_id,
3855
3869
  workspace_id,
3856
3870
  runner_id,
3871
+ runner_update_request,
3857
3872
  _request_auth,
3858
3873
  _content_type,
3859
3874
  _headers,
@@ -3869,7 +3884,9 @@ class RunnerApi:
3869
3884
  _query_params: List[Tuple[str, str]] = []
3870
3885
  _header_params: Dict[str, Optional[str]] = _headers or {}
3871
3886
  _form_params: List[Tuple[str, str]] = []
3872
- _files: Dict[str, Union[str, bytes]] = {}
3887
+ _files: Dict[
3888
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3889
+ ] = {}
3873
3890
  _body_params: Optional[bytes] = None
3874
3891
 
3875
3892
  # process the path parameters
@@ -3883,9 +3900,33 @@ class RunnerApi:
3883
3900
  # process the header parameters
3884
3901
  # process the form parameters
3885
3902
  # process the body parameter
3903
+ if runner_update_request is not None:
3904
+ _body_params = runner_update_request
3886
3905
 
3887
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
+ )
3888
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
3889
3930
 
3890
3931
  # authentication setting
3891
3932
  _auth_settings: List[str] = [
@@ -3893,8 +3934,8 @@ class RunnerApi:
3893
3934
  ]
3894
3935
 
3895
3936
  return self.api_client.param_serialize(
3896
- method='POST',
3897
- 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}',
3898
3939
  path_params=_path_params,
3899
3940
  query_params=_query_params,
3900
3941
  header_params=_header_params,
@@ -3911,12 +3952,13 @@ class RunnerApi:
3911
3952
 
3912
3953
 
3913
3954
  @validate_call
3914
- def update_runner(
3955
+ def update_runner_access_control(
3915
3956
  self,
3916
3957
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3917
3958
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3918
3959
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3919
- runner: Annotated[Runner, Field(description="the new Runner details. This endpoint can't be used to update security")],
3960
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
3961
+ runner_role: Annotated[RunnerRole, Field(description="The new Runner Access Control")],
3920
3962
  _request_timeout: Union[
3921
3963
  None,
3922
3964
  Annotated[StrictFloat, Field(gt=0)],
@@ -3929,8 +3971,8 @@ class RunnerApi:
3929
3971
  _content_type: Optional[StrictStr] = None,
3930
3972
  _headers: Optional[Dict[StrictStr, Any]] = None,
3931
3973
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3932
- ) -> Runner:
3933
- """Update a runner
3974
+ ) -> RunnerAccessControl:
3975
+ """Update the specified access to User for a Runner
3934
3976
 
3935
3977
 
3936
3978
  :param organization_id: the Organization identifier (required)
@@ -3939,8 +3981,10 @@ class RunnerApi:
3939
3981
  :type workspace_id: str
3940
3982
  :param runner_id: the Runner identifier (required)
3941
3983
  :type runner_id: str
3942
- :param runner: the new Runner details. This endpoint can't be used to update security (required)
3943
- :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
3944
3988
  :param _request_timeout: timeout setting for this request. If one
3945
3989
  number provided, it will be total request
3946
3990
  timeout. It can also be a pair (tuple) of
@@ -3963,11 +4007,12 @@ class RunnerApi:
3963
4007
  :return: Returns the result object.
3964
4008
  """ # noqa: E501
3965
4009
 
3966
- _param = self._update_runner_serialize(
4010
+ _param = self._update_runner_access_control_serialize(
3967
4011
  organization_id=organization_id,
3968
4012
  workspace_id=workspace_id,
3969
4013
  runner_id=runner_id,
3970
- runner=runner,
4014
+ identity_id=identity_id,
4015
+ runner_role=runner_role,
3971
4016
  _request_auth=_request_auth,
3972
4017
  _content_type=_content_type,
3973
4018
  _headers=_headers,
@@ -3975,8 +4020,7 @@ class RunnerApi:
3975
4020
  )
3976
4021
 
3977
4022
  _response_types_map: Dict[str, Optional[str]] = {
3978
- '200': "Runner",
3979
- '400': None,
4023
+ '200': "RunnerAccessControl",
3980
4024
  '404': None,
3981
4025
  }
3982
4026
  response_data = self.api_client.call_api(
@@ -3991,12 +4035,13 @@ class RunnerApi:
3991
4035
 
3992
4036
 
3993
4037
  @validate_call
3994
- def update_runner_with_http_info(
4038
+ def update_runner_access_control_with_http_info(
3995
4039
  self,
3996
4040
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
3997
4041
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
3998
4042
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
3999
- runner: Annotated[Runner, Field(description="the new Runner details. This endpoint can't be used to update security")],
4043
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
4044
+ runner_role: Annotated[RunnerRole, Field(description="The new Runner Access Control")],
4000
4045
  _request_timeout: Union[
4001
4046
  None,
4002
4047
  Annotated[StrictFloat, Field(gt=0)],
@@ -4009,8 +4054,8 @@ class RunnerApi:
4009
4054
  _content_type: Optional[StrictStr] = None,
4010
4055
  _headers: Optional[Dict[StrictStr, Any]] = None,
4011
4056
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4012
- ) -> ApiResponse[Runner]:
4013
- """Update a runner
4057
+ ) -> ApiResponse[RunnerAccessControl]:
4058
+ """Update the specified access to User for a Runner
4014
4059
 
4015
4060
 
4016
4061
  :param organization_id: the Organization identifier (required)
@@ -4019,8 +4064,10 @@ class RunnerApi:
4019
4064
  :type workspace_id: str
4020
4065
  :param runner_id: the Runner identifier (required)
4021
4066
  :type runner_id: str
4022
- :param runner: the new Runner details. This endpoint can't be used to update security (required)
4023
- :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
4024
4071
  :param _request_timeout: timeout setting for this request. If one
4025
4072
  number provided, it will be total request
4026
4073
  timeout. It can also be a pair (tuple) of
@@ -4043,11 +4090,12 @@ class RunnerApi:
4043
4090
  :return: Returns the result object.
4044
4091
  """ # noqa: E501
4045
4092
 
4046
- _param = self._update_runner_serialize(
4093
+ _param = self._update_runner_access_control_serialize(
4047
4094
  organization_id=organization_id,
4048
4095
  workspace_id=workspace_id,
4049
4096
  runner_id=runner_id,
4050
- runner=runner,
4097
+ identity_id=identity_id,
4098
+ runner_role=runner_role,
4051
4099
  _request_auth=_request_auth,
4052
4100
  _content_type=_content_type,
4053
4101
  _headers=_headers,
@@ -4055,8 +4103,7 @@ class RunnerApi:
4055
4103
  )
4056
4104
 
4057
4105
  _response_types_map: Dict[str, Optional[str]] = {
4058
- '200': "Runner",
4059
- '400': None,
4106
+ '200': "RunnerAccessControl",
4060
4107
  '404': None,
4061
4108
  }
4062
4109
  response_data = self.api_client.call_api(
@@ -4071,12 +4118,13 @@ class RunnerApi:
4071
4118
 
4072
4119
 
4073
4120
  @validate_call
4074
- def update_runner_without_preload_content(
4121
+ def update_runner_access_control_without_preload_content(
4075
4122
  self,
4076
4123
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4077
4124
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4078
4125
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
4079
- runner: Annotated[Runner, Field(description="the new Runner details. This endpoint can't be used to update security")],
4126
+ identity_id: Annotated[StrictStr, Field(description="the User identifier")],
4127
+ runner_role: Annotated[RunnerRole, Field(description="The new Runner Access Control")],
4080
4128
  _request_timeout: Union[
4081
4129
  None,
4082
4130
  Annotated[StrictFloat, Field(gt=0)],
@@ -4090,7 +4138,7 @@ class RunnerApi:
4090
4138
  _headers: Optional[Dict[StrictStr, Any]] = None,
4091
4139
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4092
4140
  ) -> RESTResponseType:
4093
- """Update a runner
4141
+ """Update the specified access to User for a Runner
4094
4142
 
4095
4143
 
4096
4144
  :param organization_id: the Organization identifier (required)
@@ -4099,8 +4147,10 @@ class RunnerApi:
4099
4147
  :type workspace_id: str
4100
4148
  :param runner_id: the Runner identifier (required)
4101
4149
  :type runner_id: str
4102
- :param runner: the new Runner details. This endpoint can't be used to update security (required)
4103
- :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
4104
4154
  :param _request_timeout: timeout setting for this request. If one
4105
4155
  number provided, it will be total request
4106
4156
  timeout. It can also be a pair (tuple) of
@@ -4123,11 +4173,12 @@ class RunnerApi:
4123
4173
  :return: Returns the result object.
4124
4174
  """ # noqa: E501
4125
4175
 
4126
- _param = self._update_runner_serialize(
4176
+ _param = self._update_runner_access_control_serialize(
4127
4177
  organization_id=organization_id,
4128
4178
  workspace_id=workspace_id,
4129
4179
  runner_id=runner_id,
4130
- runner=runner,
4180
+ identity_id=identity_id,
4181
+ runner_role=runner_role,
4131
4182
  _request_auth=_request_auth,
4132
4183
  _content_type=_content_type,
4133
4184
  _headers=_headers,
@@ -4135,8 +4186,7 @@ class RunnerApi:
4135
4186
  )
4136
4187
 
4137
4188
  _response_types_map: Dict[str, Optional[str]] = {
4138
- '200': "Runner",
4139
- '400': None,
4189
+ '200': "RunnerAccessControl",
4140
4190
  '404': None,
4141
4191
  }
4142
4192
  response_data = self.api_client.call_api(
@@ -4146,12 +4196,13 @@ class RunnerApi:
4146
4196
  return response_data.response
4147
4197
 
4148
4198
 
4149
- def _update_runner_serialize(
4199
+ def _update_runner_access_control_serialize(
4150
4200
  self,
4151
4201
  organization_id,
4152
4202
  workspace_id,
4153
4203
  runner_id,
4154
- runner,
4204
+ identity_id,
4205
+ runner_role,
4155
4206
  _request_auth,
4156
4207
  _content_type,
4157
4208
  _headers,
@@ -4167,7 +4218,9 @@ class RunnerApi:
4167
4218
  _query_params: List[Tuple[str, str]] = []
4168
4219
  _header_params: Dict[str, Optional[str]] = _headers or {}
4169
4220
  _form_params: List[Tuple[str, str]] = []
4170
- _files: Dict[str, Union[str, bytes]] = {}
4221
+ _files: Dict[
4222
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4223
+ ] = {}
4171
4224
  _body_params: Optional[bytes] = None
4172
4225
 
4173
4226
  # process the path parameters
@@ -4177,19 +4230,22 @@ class RunnerApi:
4177
4230
  _path_params['workspace_id'] = workspace_id
4178
4231
  if runner_id is not None:
4179
4232
  _path_params['runner_id'] = runner_id
4233
+ if identity_id is not None:
4234
+ _path_params['identity_id'] = identity_id
4180
4235
  # process the query parameters
4181
4236
  # process the header parameters
4182
4237
  # process the form parameters
4183
4238
  # process the body parameter
4184
- if runner is not None:
4185
- _body_params = runner
4239
+ if runner_role is not None:
4240
+ _body_params = runner_role
4186
4241
 
4187
4242
 
4188
4243
  # set the HTTP header `Accept`
4189
4244
  if 'Accept' not in _header_params:
4190
4245
  _header_params['Accept'] = self.api_client.select_header_accept(
4191
4246
  [
4192
- 'application/json'
4247
+ 'application/json',
4248
+ 'application/yaml'
4193
4249
  ]
4194
4250
  )
4195
4251
 
@@ -4215,7 +4271,7 @@ class RunnerApi:
4215
4271
 
4216
4272
  return self.api_client.param_serialize(
4217
4273
  method='PATCH',
4218
- 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}',
4219
4275
  path_params=_path_params,
4220
4276
  query_params=_query_params,
4221
4277
  header_params=_header_params,
@@ -4232,13 +4288,12 @@ class RunnerApi:
4232
4288
 
4233
4289
 
4234
4290
  @validate_call
4235
- def update_runner_access_control(
4291
+ def update_runner_default_security(
4236
4292
  self,
4237
4293
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4238
4294
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4239
4295
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
4240
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
4241
- runner_role: Annotated[RunnerRole, Field(description="The new Runner Access Control")],
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.")],
4242
4297
  _request_timeout: Union[
4243
4298
  None,
4244
4299
  Annotated[StrictFloat, Field(gt=0)],
@@ -4251,8 +4306,8 @@ class RunnerApi:
4251
4306
  _content_type: Optional[StrictStr] = None,
4252
4307
  _headers: Optional[Dict[StrictStr, Any]] = None,
4253
4308
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4254
- ) -> RunnerAccessControl:
4255
- """Update the specified access to User for a Runner
4309
+ ) -> RunnerSecurity:
4310
+ """Set the Runner default security
4256
4311
 
4257
4312
 
4258
4313
  :param organization_id: the Organization identifier (required)
@@ -4261,9 +4316,7 @@ class RunnerApi:
4261
4316
  :type workspace_id: str
4262
4317
  :param runner_id: the Runner identifier (required)
4263
4318
  :type runner_id: str
4264
- :param identity_id: the User identifier (required)
4265
- :type identity_id: str
4266
- :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)
4267
4320
  :type runner_role: RunnerRole
4268
4321
  :param _request_timeout: timeout setting for this request. If one
4269
4322
  number provided, it will be total request
@@ -4287,11 +4340,10 @@ class RunnerApi:
4287
4340
  :return: Returns the result object.
4288
4341
  """ # noqa: E501
4289
4342
 
4290
- _param = self._update_runner_access_control_serialize(
4343
+ _param = self._update_runner_default_security_serialize(
4291
4344
  organization_id=organization_id,
4292
4345
  workspace_id=workspace_id,
4293
4346
  runner_id=runner_id,
4294
- identity_id=identity_id,
4295
4347
  runner_role=runner_role,
4296
4348
  _request_auth=_request_auth,
4297
4349
  _content_type=_content_type,
@@ -4300,7 +4352,7 @@ class RunnerApi:
4300
4352
  )
4301
4353
 
4302
4354
  _response_types_map: Dict[str, Optional[str]] = {
4303
- '200': "RunnerAccessControl",
4355
+ '201': "RunnerSecurity",
4304
4356
  '404': None,
4305
4357
  }
4306
4358
  response_data = self.api_client.call_api(
@@ -4315,13 +4367,12 @@ class RunnerApi:
4315
4367
 
4316
4368
 
4317
4369
  @validate_call
4318
- def update_runner_access_control_with_http_info(
4370
+ def update_runner_default_security_with_http_info(
4319
4371
  self,
4320
4372
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4321
4373
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4322
4374
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
4323
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
4324
- runner_role: Annotated[RunnerRole, Field(description="The new Runner Access Control")],
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.")],
4325
4376
  _request_timeout: Union[
4326
4377
  None,
4327
4378
  Annotated[StrictFloat, Field(gt=0)],
@@ -4334,8 +4385,8 @@ class RunnerApi:
4334
4385
  _content_type: Optional[StrictStr] = None,
4335
4386
  _headers: Optional[Dict[StrictStr, Any]] = None,
4336
4387
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4337
- ) -> ApiResponse[RunnerAccessControl]:
4338
- """Update the specified access to User for a Runner
4388
+ ) -> ApiResponse[RunnerSecurity]:
4389
+ """Set the Runner default security
4339
4390
 
4340
4391
 
4341
4392
  :param organization_id: the Organization identifier (required)
@@ -4344,9 +4395,7 @@ class RunnerApi:
4344
4395
  :type workspace_id: str
4345
4396
  :param runner_id: the Runner identifier (required)
4346
4397
  :type runner_id: str
4347
- :param identity_id: the User identifier (required)
4348
- :type identity_id: str
4349
- :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)
4350
4399
  :type runner_role: RunnerRole
4351
4400
  :param _request_timeout: timeout setting for this request. If one
4352
4401
  number provided, it will be total request
@@ -4370,11 +4419,10 @@ class RunnerApi:
4370
4419
  :return: Returns the result object.
4371
4420
  """ # noqa: E501
4372
4421
 
4373
- _param = self._update_runner_access_control_serialize(
4422
+ _param = self._update_runner_default_security_serialize(
4374
4423
  organization_id=organization_id,
4375
4424
  workspace_id=workspace_id,
4376
4425
  runner_id=runner_id,
4377
- identity_id=identity_id,
4378
4426
  runner_role=runner_role,
4379
4427
  _request_auth=_request_auth,
4380
4428
  _content_type=_content_type,
@@ -4383,7 +4431,7 @@ class RunnerApi:
4383
4431
  )
4384
4432
 
4385
4433
  _response_types_map: Dict[str, Optional[str]] = {
4386
- '200': "RunnerAccessControl",
4434
+ '201': "RunnerSecurity",
4387
4435
  '404': None,
4388
4436
  }
4389
4437
  response_data = self.api_client.call_api(
@@ -4398,13 +4446,12 @@ class RunnerApi:
4398
4446
 
4399
4447
 
4400
4448
  @validate_call
4401
- def update_runner_access_control_without_preload_content(
4449
+ def update_runner_default_security_without_preload_content(
4402
4450
  self,
4403
4451
  organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
4404
4452
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4405
4453
  runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
4406
- identity_id: Annotated[StrictStr, Field(description="the User identifier")],
4407
- runner_role: Annotated[RunnerRole, Field(description="The new Runner Access Control")],
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.")],
4408
4455
  _request_timeout: Union[
4409
4456
  None,
4410
4457
  Annotated[StrictFloat, Field(gt=0)],
@@ -4418,7 +4465,7 @@ class RunnerApi:
4418
4465
  _headers: Optional[Dict[StrictStr, Any]] = None,
4419
4466
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4420
4467
  ) -> RESTResponseType:
4421
- """Update the specified access to User for a Runner
4468
+ """Set the Runner default security
4422
4469
 
4423
4470
 
4424
4471
  :param organization_id: the Organization identifier (required)
@@ -4427,9 +4474,7 @@ class RunnerApi:
4427
4474
  :type workspace_id: str
4428
4475
  :param runner_id: the Runner identifier (required)
4429
4476
  :type runner_id: str
4430
- :param identity_id: the User identifier (required)
4431
- :type identity_id: str
4432
- :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)
4433
4478
  :type runner_role: RunnerRole
4434
4479
  :param _request_timeout: timeout setting for this request. If one
4435
4480
  number provided, it will be total request
@@ -4453,11 +4498,10 @@ class RunnerApi:
4453
4498
  :return: Returns the result object.
4454
4499
  """ # noqa: E501
4455
4500
 
4456
- _param = self._update_runner_access_control_serialize(
4501
+ _param = self._update_runner_default_security_serialize(
4457
4502
  organization_id=organization_id,
4458
4503
  workspace_id=workspace_id,
4459
4504
  runner_id=runner_id,
4460
- identity_id=identity_id,
4461
4505
  runner_role=runner_role,
4462
4506
  _request_auth=_request_auth,
4463
4507
  _content_type=_content_type,
@@ -4466,7 +4510,7 @@ class RunnerApi:
4466
4510
  )
4467
4511
 
4468
4512
  _response_types_map: Dict[str, Optional[str]] = {
4469
- '200': "RunnerAccessControl",
4513
+ '201': "RunnerSecurity",
4470
4514
  '404': None,
4471
4515
  }
4472
4516
  response_data = self.api_client.call_api(
@@ -4476,12 +4520,11 @@ class RunnerApi:
4476
4520
  return response_data.response
4477
4521
 
4478
4522
 
4479
- def _update_runner_access_control_serialize(
4523
+ def _update_runner_default_security_serialize(
4480
4524
  self,
4481
4525
  organization_id,
4482
4526
  workspace_id,
4483
4527
  runner_id,
4484
- identity_id,
4485
4528
  runner_role,
4486
4529
  _request_auth,
4487
4530
  _content_type,
@@ -4498,7 +4541,9 @@ class RunnerApi:
4498
4541
  _query_params: List[Tuple[str, str]] = []
4499
4542
  _header_params: Dict[str, Optional[str]] = _headers or {}
4500
4543
  _form_params: List[Tuple[str, str]] = []
4501
- _files: Dict[str, Union[str, bytes]] = {}
4544
+ _files: Dict[
4545
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4546
+ ] = {}
4502
4547
  _body_params: Optional[bytes] = None
4503
4548
 
4504
4549
  # process the path parameters
@@ -4508,8 +4553,6 @@ class RunnerApi:
4508
4553
  _path_params['workspace_id'] = workspace_id
4509
4554
  if runner_id is not None:
4510
4555
  _path_params['runner_id'] = runner_id
4511
- if identity_id is not None:
4512
- _path_params['identity_id'] = identity_id
4513
4556
  # process the query parameters
4514
4557
  # process the header parameters
4515
4558
  # process the form parameters
@@ -4522,7 +4565,8 @@ class RunnerApi:
4522
4565
  if 'Accept' not in _header_params:
4523
4566
  _header_params['Accept'] = self.api_client.select_header_accept(
4524
4567
  [
4525
- 'application/json'
4568
+ 'application/json',
4569
+ 'application/yaml'
4526
4570
  ]
4527
4571
  )
4528
4572
 
@@ -4533,7 +4577,8 @@ class RunnerApi:
4533
4577
  _default_content_type = (
4534
4578
  self.api_client.select_header_content_type(
4535
4579
  [
4536
- 'application/json'
4580
+ 'application/json',
4581
+ 'application/yaml'
4537
4582
  ]
4538
4583
  )
4539
4584
  )
@@ -4547,7 +4592,7 @@ class RunnerApi:
4547
4592
 
4548
4593
  return self.api_client.param_serialize(
4549
4594
  method='PATCH',
4550
- 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',
4551
4596
  path_params=_path_params,
4552
4597
  query_params=_query_params,
4553
4598
  header_params=_header_params,