daytona_api_client 0.21.3a0__py3-none-any.whl → 0.21.4a4__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 daytona_api_client might be problematic. Click here for more details.
- daytona_api_client/api/__init__.py +1 -0
- daytona_api_client/api/api_keys_api.py +328 -171
- daytona_api_client/api/docker_registry_api.py +463 -239
- daytona_api_client/api/object_storage_api.py +63 -33
- daytona_api_client/api/organizations_api.py +1582 -612
- daytona_api_client/api/preview_api.py +175 -71
- daytona_api_client/api/runners_api.py +195 -67
- daytona_api_client/api/sandbox_api.py +909 -499
- daytona_api_client/api/snapshots_api.py +482 -253
- daytona_api_client/api/toolbox_api.py +2684 -1410
- daytona_api_client/api/users_api.py +526 -184
- daytona_api_client/api/volumes_api.py +332 -180
- daytona_api_client/api/workspace_api.py +909 -499
- daytona_api_client/api_client.py +192 -90
- daytona_api_client/api_response.py +3 -2
- daytona_api_client/configuration.py +52 -55
- daytona_api_client/exceptions.py +16 -15
- daytona_api_client/models/account_provider.py +11 -9
- daytona_api_client/models/api_key_list.py +21 -40
- daytona_api_client/models/api_key_response.py +19 -38
- daytona_api_client/models/build_info.py +15 -22
- daytona_api_client/models/command.py +13 -12
- daytona_api_client/models/completion_context.py +11 -11
- daytona_api_client/models/completion_item.py +17 -28
- daytona_api_client/models/completion_list.py +12 -17
- daytona_api_client/models/create_api_key.py +17 -32
- daytona_api_client/models/create_build_info.py +13 -17
- daytona_api_client/models/create_docker_registry.py +18 -21
- daytona_api_client/models/create_linked_account.py +11 -9
- daytona_api_client/models/create_organization.py +10 -9
- daytona_api_client/models/create_organization_invitation.py +17 -24
- daytona_api_client/models/create_organization_quota.py +19 -32
- daytona_api_client/models/create_organization_role.py +15 -28
- daytona_api_client/models/create_runner.py +26 -41
- daytona_api_client/models/create_sandbox.py +39 -76
- daytona_api_client/models/create_session_request.py +10 -9
- daytona_api_client/models/create_snapshot.py +22 -39
- daytona_api_client/models/create_user.py +19 -26
- daytona_api_client/models/create_volume.py +10 -9
- daytona_api_client/models/create_workspace.py +38 -73
- daytona_api_client/models/docker_registry.py +21 -33
- daytona_api_client/models/execute_request.py +13 -12
- daytona_api_client/models/execute_response.py +11 -9
- daytona_api_client/models/file_info.py +17 -20
- daytona_api_client/models/file_status.py +13 -16
- daytona_api_client/models/git_add_request.py +11 -9
- daytona_api_client/models/git_branch_request.py +11 -9
- daytona_api_client/models/git_checkout_request.py +11 -9
- daytona_api_client/models/git_clone_request.py +15 -18
- daytona_api_client/models/git_commit_info.py +14 -17
- daytona_api_client/models/git_commit_request.py +13 -16
- daytona_api_client/models/git_commit_response.py +10 -9
- daytona_api_client/models/git_delete_branch_request.py +11 -9
- daytona_api_client/models/git_repo_request.py +12 -11
- daytona_api_client/models/git_status.py +15 -20
- daytona_api_client/models/list_branch_response.py +10 -9
- daytona_api_client/models/lsp_completion_params.py +16 -19
- daytona_api_client/models/lsp_document_request.py +12 -11
- daytona_api_client/models/lsp_location.py +12 -12
- daytona_api_client/models/lsp_server_request.py +11 -9
- daytona_api_client/models/lsp_symbol.py +13 -16
- daytona_api_client/models/match.py +12 -9
- daytona_api_client/models/organization.py +20 -34
- daytona_api_client/models/organization_invitation.py +27 -44
- daytona_api_client/models/organization_role.py +21 -46
- daytona_api_client/models/organization_suspension.py +11 -9
- daytona_api_client/models/organization_user.py +22 -36
- daytona_api_client/models/paginated_snapshots_dto.py +14 -19
- daytona_api_client/models/port_preview_url.py +11 -9
- daytona_api_client/models/position.py +11 -9
- daytona_api_client/models/project_dir_response.py +10 -9
- daytona_api_client/models/range.py +13 -16
- daytona_api_client/models/registry_push_access_dto.py +15 -18
- daytona_api_client/models/replace_request.py +12 -11
- daytona_api_client/models/replace_result.py +12 -9
- daytona_api_client/models/sandbox.py +49 -95
- daytona_api_client/models/sandbox_info.py +13 -18
- daytona_api_client/models/sandbox_labels.py +10 -9
- daytona_api_client/models/sandbox_state.py +18 -16
- daytona_api_client/models/sandbox_volume.py +11 -9
- daytona_api_client/models/search_files_response.py +10 -9
- daytona_api_client/models/session.py +13 -18
- daytona_api_client/models/session_execute_request.py +14 -19
- daytona_api_client/models/session_execute_response.py +13 -14
- daytona_api_client/models/set_snapshot_general_status_dto.py +10 -9
- daytona_api_client/models/snapshot_dto.py +34 -58
- daytona_api_client/models/snapshot_state.py +12 -10
- daytona_api_client/models/storage_access_dto.py +16 -26
- daytona_api_client/models/toggle_state.py +10 -9
- daytona_api_client/models/update_assigned_organization_roles.py +10 -9
- daytona_api_client/models/update_docker_registry.py +12 -11
- daytona_api_client/models/update_organization_invitation.py +15 -16
- daytona_api_client/models/update_organization_member_role.py +12 -11
- daytona_api_client/models/update_organization_quota.py +28 -41
- daytona_api_client/models/update_organization_role.py +15 -28
- daytona_api_client/models/usage_overview.py +17 -28
- daytona_api_client/models/user.py +14 -19
- daytona_api_client/models/user_public_key.py +11 -9
- daytona_api_client/models/volume_dto.py +20 -32
- daytona_api_client/models/volume_state.py +9 -7
- daytona_api_client/models/workspace.py +58 -113
- daytona_api_client/rest.py +77 -26
- {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.4a4.dist-info}/METADATA +1 -1
- daytona_api_client-0.21.4a4.dist-info/RECORD +117 -0
- daytona_api_client-0.21.3a0.dist-info/RECORD +0 -117
- {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.4a4.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.4a4.dist-info}/top_level.txt +0 -0
|
@@ -37,6 +37,7 @@ class RunnersApi:
|
|
|
37
37
|
api_client = ApiClient.get_default()
|
|
38
38
|
self.api_client = api_client
|
|
39
39
|
|
|
40
|
+
|
|
40
41
|
@validate_call
|
|
41
42
|
def create_runner(
|
|
42
43
|
self,
|
|
@@ -44,7 +45,10 @@ class RunnersApi:
|
|
|
44
45
|
_request_timeout: Union[
|
|
45
46
|
None,
|
|
46
47
|
Annotated[StrictFloat, Field(gt=0)],
|
|
47
|
-
Tuple[
|
|
48
|
+
Tuple[
|
|
49
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
51
|
+
]
|
|
48
52
|
] = None,
|
|
49
53
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
50
54
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -76,26 +80,30 @@ class RunnersApi:
|
|
|
76
80
|
in the spec for a single request.
|
|
77
81
|
:type _host_index: int, optional
|
|
78
82
|
:return: Returns the result object.
|
|
79
|
-
"""
|
|
83
|
+
""" # noqa: E501
|
|
80
84
|
|
|
81
85
|
_param = self._create_runner_serialize(
|
|
82
86
|
create_runner=create_runner,
|
|
83
87
|
_request_auth=_request_auth,
|
|
84
88
|
_content_type=_content_type,
|
|
85
89
|
_headers=_headers,
|
|
86
|
-
_host_index=_host_index
|
|
90
|
+
_host_index=_host_index
|
|
87
91
|
)
|
|
88
92
|
|
|
89
93
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
90
|
-
|
|
94
|
+
'201': None,
|
|
91
95
|
}
|
|
92
|
-
response_data = self.api_client.call_api(
|
|
96
|
+
response_data = self.api_client.call_api(
|
|
97
|
+
*_param,
|
|
98
|
+
_request_timeout=_request_timeout
|
|
99
|
+
)
|
|
93
100
|
response_data.read()
|
|
94
101
|
return self.api_client.response_deserialize(
|
|
95
102
|
response_data=response_data,
|
|
96
103
|
response_types_map=_response_types_map,
|
|
97
104
|
).data
|
|
98
105
|
|
|
106
|
+
|
|
99
107
|
@validate_call
|
|
100
108
|
def create_runner_with_http_info(
|
|
101
109
|
self,
|
|
@@ -103,7 +111,10 @@ class RunnersApi:
|
|
|
103
111
|
_request_timeout: Union[
|
|
104
112
|
None,
|
|
105
113
|
Annotated[StrictFloat, Field(gt=0)],
|
|
106
|
-
Tuple[
|
|
114
|
+
Tuple[
|
|
115
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
116
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
117
|
+
]
|
|
107
118
|
] = None,
|
|
108
119
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
109
120
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -135,26 +146,30 @@ class RunnersApi:
|
|
|
135
146
|
in the spec for a single request.
|
|
136
147
|
:type _host_index: int, optional
|
|
137
148
|
:return: Returns the result object.
|
|
138
|
-
"""
|
|
149
|
+
""" # noqa: E501
|
|
139
150
|
|
|
140
151
|
_param = self._create_runner_serialize(
|
|
141
152
|
create_runner=create_runner,
|
|
142
153
|
_request_auth=_request_auth,
|
|
143
154
|
_content_type=_content_type,
|
|
144
155
|
_headers=_headers,
|
|
145
|
-
_host_index=_host_index
|
|
156
|
+
_host_index=_host_index
|
|
146
157
|
)
|
|
147
158
|
|
|
148
159
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
149
|
-
|
|
160
|
+
'201': None,
|
|
150
161
|
}
|
|
151
|
-
response_data = self.api_client.call_api(
|
|
162
|
+
response_data = self.api_client.call_api(
|
|
163
|
+
*_param,
|
|
164
|
+
_request_timeout=_request_timeout
|
|
165
|
+
)
|
|
152
166
|
response_data.read()
|
|
153
167
|
return self.api_client.response_deserialize(
|
|
154
168
|
response_data=response_data,
|
|
155
169
|
response_types_map=_response_types_map,
|
|
156
170
|
)
|
|
157
171
|
|
|
172
|
+
|
|
158
173
|
@validate_call
|
|
159
174
|
def create_runner_without_preload_content(
|
|
160
175
|
self,
|
|
@@ -162,7 +177,10 @@ class RunnersApi:
|
|
|
162
177
|
_request_timeout: Union[
|
|
163
178
|
None,
|
|
164
179
|
Annotated[StrictFloat, Field(gt=0)],
|
|
165
|
-
Tuple[
|
|
180
|
+
Tuple[
|
|
181
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
182
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
183
|
+
]
|
|
166
184
|
] = None,
|
|
167
185
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
168
186
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -194,22 +212,26 @@ class RunnersApi:
|
|
|
194
212
|
in the spec for a single request.
|
|
195
213
|
:type _host_index: int, optional
|
|
196
214
|
:return: Returns the result object.
|
|
197
|
-
"""
|
|
215
|
+
""" # noqa: E501
|
|
198
216
|
|
|
199
217
|
_param = self._create_runner_serialize(
|
|
200
218
|
create_runner=create_runner,
|
|
201
219
|
_request_auth=_request_auth,
|
|
202
220
|
_content_type=_content_type,
|
|
203
221
|
_headers=_headers,
|
|
204
|
-
_host_index=_host_index
|
|
222
|
+
_host_index=_host_index
|
|
205
223
|
)
|
|
206
224
|
|
|
207
225
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
208
|
-
|
|
226
|
+
'201': None,
|
|
209
227
|
}
|
|
210
|
-
response_data = self.api_client.call_api(
|
|
228
|
+
response_data = self.api_client.call_api(
|
|
229
|
+
*_param,
|
|
230
|
+
_request_timeout=_request_timeout
|
|
231
|
+
)
|
|
211
232
|
return response_data.response
|
|
212
233
|
|
|
234
|
+
|
|
213
235
|
def _create_runner_serialize(
|
|
214
236
|
self,
|
|
215
237
|
create_runner,
|
|
@@ -218,15 +240,19 @@ class RunnersApi:
|
|
|
218
240
|
_headers,
|
|
219
241
|
_host_index,
|
|
220
242
|
) -> RequestSerialized:
|
|
243
|
+
|
|
221
244
|
_host = None
|
|
222
245
|
|
|
223
|
-
_collection_formats: Dict[str, str] = {
|
|
246
|
+
_collection_formats: Dict[str, str] = {
|
|
247
|
+
}
|
|
224
248
|
|
|
225
249
|
_path_params: Dict[str, str] = {}
|
|
226
250
|
_query_params: List[Tuple[str, str]] = []
|
|
227
251
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
228
252
|
_form_params: List[Tuple[str, str]] = []
|
|
229
|
-
_files: Dict[
|
|
253
|
+
_files: Dict[
|
|
254
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
255
|
+
] = {}
|
|
230
256
|
_body_params: Optional[bytes] = None
|
|
231
257
|
|
|
232
258
|
# process the path parameters
|
|
@@ -237,20 +263,31 @@ class RunnersApi:
|
|
|
237
263
|
if create_runner is not None:
|
|
238
264
|
_body_params = create_runner
|
|
239
265
|
|
|
266
|
+
|
|
267
|
+
|
|
240
268
|
# set the HTTP header `Content-Type`
|
|
241
269
|
if _content_type:
|
|
242
|
-
_header_params[
|
|
270
|
+
_header_params['Content-Type'] = _content_type
|
|
243
271
|
else:
|
|
244
|
-
_default_content_type =
|
|
272
|
+
_default_content_type = (
|
|
273
|
+
self.api_client.select_header_content_type(
|
|
274
|
+
[
|
|
275
|
+
'application/json'
|
|
276
|
+
]
|
|
277
|
+
)
|
|
278
|
+
)
|
|
245
279
|
if _default_content_type is not None:
|
|
246
|
-
_header_params[
|
|
280
|
+
_header_params['Content-Type'] = _default_content_type
|
|
247
281
|
|
|
248
282
|
# authentication setting
|
|
249
|
-
_auth_settings: List[str] = [
|
|
283
|
+
_auth_settings: List[str] = [
|
|
284
|
+
'bearer',
|
|
285
|
+
'oauth2'
|
|
286
|
+
]
|
|
250
287
|
|
|
251
288
|
return self.api_client.param_serialize(
|
|
252
|
-
method=
|
|
253
|
-
resource_path=
|
|
289
|
+
method='POST',
|
|
290
|
+
resource_path='/runners',
|
|
254
291
|
path_params=_path_params,
|
|
255
292
|
query_params=_query_params,
|
|
256
293
|
header_params=_header_params,
|
|
@@ -260,16 +297,22 @@ class RunnersApi:
|
|
|
260
297
|
auth_settings=_auth_settings,
|
|
261
298
|
collection_formats=_collection_formats,
|
|
262
299
|
_host=_host,
|
|
263
|
-
_request_auth=_request_auth
|
|
300
|
+
_request_auth=_request_auth
|
|
264
301
|
)
|
|
265
302
|
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
266
306
|
@validate_call
|
|
267
307
|
def list_runners(
|
|
268
308
|
self,
|
|
269
309
|
_request_timeout: Union[
|
|
270
310
|
None,
|
|
271
311
|
Annotated[StrictFloat, Field(gt=0)],
|
|
272
|
-
Tuple[
|
|
312
|
+
Tuple[
|
|
313
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
314
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
315
|
+
]
|
|
273
316
|
] = None,
|
|
274
317
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
275
318
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -299,29 +342,39 @@ class RunnersApi:
|
|
|
299
342
|
in the spec for a single request.
|
|
300
343
|
:type _host_index: int, optional
|
|
301
344
|
:return: Returns the result object.
|
|
302
|
-
"""
|
|
345
|
+
""" # noqa: E501
|
|
303
346
|
|
|
304
347
|
_param = self._list_runners_serialize(
|
|
305
|
-
_request_auth=_request_auth,
|
|
348
|
+
_request_auth=_request_auth,
|
|
349
|
+
_content_type=_content_type,
|
|
350
|
+
_headers=_headers,
|
|
351
|
+
_host_index=_host_index
|
|
306
352
|
)
|
|
307
353
|
|
|
308
354
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
309
|
-
|
|
355
|
+
'200': None,
|
|
310
356
|
}
|
|
311
|
-
response_data = self.api_client.call_api(
|
|
357
|
+
response_data = self.api_client.call_api(
|
|
358
|
+
*_param,
|
|
359
|
+
_request_timeout=_request_timeout
|
|
360
|
+
)
|
|
312
361
|
response_data.read()
|
|
313
362
|
return self.api_client.response_deserialize(
|
|
314
363
|
response_data=response_data,
|
|
315
364
|
response_types_map=_response_types_map,
|
|
316
365
|
).data
|
|
317
366
|
|
|
367
|
+
|
|
318
368
|
@validate_call
|
|
319
369
|
def list_runners_with_http_info(
|
|
320
370
|
self,
|
|
321
371
|
_request_timeout: Union[
|
|
322
372
|
None,
|
|
323
373
|
Annotated[StrictFloat, Field(gt=0)],
|
|
324
|
-
Tuple[
|
|
374
|
+
Tuple[
|
|
375
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
376
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
377
|
+
]
|
|
325
378
|
] = None,
|
|
326
379
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
327
380
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -351,29 +404,39 @@ class RunnersApi:
|
|
|
351
404
|
in the spec for a single request.
|
|
352
405
|
:type _host_index: int, optional
|
|
353
406
|
:return: Returns the result object.
|
|
354
|
-
"""
|
|
407
|
+
""" # noqa: E501
|
|
355
408
|
|
|
356
409
|
_param = self._list_runners_serialize(
|
|
357
|
-
_request_auth=_request_auth,
|
|
410
|
+
_request_auth=_request_auth,
|
|
411
|
+
_content_type=_content_type,
|
|
412
|
+
_headers=_headers,
|
|
413
|
+
_host_index=_host_index
|
|
358
414
|
)
|
|
359
415
|
|
|
360
416
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
361
|
-
|
|
417
|
+
'200': None,
|
|
362
418
|
}
|
|
363
|
-
response_data = self.api_client.call_api(
|
|
419
|
+
response_data = self.api_client.call_api(
|
|
420
|
+
*_param,
|
|
421
|
+
_request_timeout=_request_timeout
|
|
422
|
+
)
|
|
364
423
|
response_data.read()
|
|
365
424
|
return self.api_client.response_deserialize(
|
|
366
425
|
response_data=response_data,
|
|
367
426
|
response_types_map=_response_types_map,
|
|
368
427
|
)
|
|
369
428
|
|
|
429
|
+
|
|
370
430
|
@validate_call
|
|
371
431
|
def list_runners_without_preload_content(
|
|
372
432
|
self,
|
|
373
433
|
_request_timeout: Union[
|
|
374
434
|
None,
|
|
375
435
|
Annotated[StrictFloat, Field(gt=0)],
|
|
376
|
-
Tuple[
|
|
436
|
+
Tuple[
|
|
437
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
438
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
439
|
+
]
|
|
377
440
|
] = None,
|
|
378
441
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
379
442
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -403,18 +466,25 @@ class RunnersApi:
|
|
|
403
466
|
in the spec for a single request.
|
|
404
467
|
:type _host_index: int, optional
|
|
405
468
|
:return: Returns the result object.
|
|
406
|
-
"""
|
|
469
|
+
""" # noqa: E501
|
|
407
470
|
|
|
408
471
|
_param = self._list_runners_serialize(
|
|
409
|
-
_request_auth=_request_auth,
|
|
472
|
+
_request_auth=_request_auth,
|
|
473
|
+
_content_type=_content_type,
|
|
474
|
+
_headers=_headers,
|
|
475
|
+
_host_index=_host_index
|
|
410
476
|
)
|
|
411
477
|
|
|
412
478
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
413
|
-
|
|
479
|
+
'200': None,
|
|
414
480
|
}
|
|
415
|
-
response_data = self.api_client.call_api(
|
|
481
|
+
response_data = self.api_client.call_api(
|
|
482
|
+
*_param,
|
|
483
|
+
_request_timeout=_request_timeout
|
|
484
|
+
)
|
|
416
485
|
return response_data.response
|
|
417
486
|
|
|
487
|
+
|
|
418
488
|
def _list_runners_serialize(
|
|
419
489
|
self,
|
|
420
490
|
_request_auth,
|
|
@@ -422,15 +492,19 @@ class RunnersApi:
|
|
|
422
492
|
_headers,
|
|
423
493
|
_host_index,
|
|
424
494
|
) -> RequestSerialized:
|
|
495
|
+
|
|
425
496
|
_host = None
|
|
426
497
|
|
|
427
|
-
_collection_formats: Dict[str, str] = {
|
|
498
|
+
_collection_formats: Dict[str, str] = {
|
|
499
|
+
}
|
|
428
500
|
|
|
429
501
|
_path_params: Dict[str, str] = {}
|
|
430
502
|
_query_params: List[Tuple[str, str]] = []
|
|
431
503
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
432
504
|
_form_params: List[Tuple[str, str]] = []
|
|
433
|
-
_files: Dict[
|
|
505
|
+
_files: Dict[
|
|
506
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
507
|
+
] = {}
|
|
434
508
|
_body_params: Optional[bytes] = None
|
|
435
509
|
|
|
436
510
|
# process the path parameters
|
|
@@ -439,12 +513,18 @@ class RunnersApi:
|
|
|
439
513
|
# process the form parameters
|
|
440
514
|
# process the body parameter
|
|
441
515
|
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
442
519
|
# authentication setting
|
|
443
|
-
_auth_settings: List[str] = [
|
|
520
|
+
_auth_settings: List[str] = [
|
|
521
|
+
'bearer',
|
|
522
|
+
'oauth2'
|
|
523
|
+
]
|
|
444
524
|
|
|
445
525
|
return self.api_client.param_serialize(
|
|
446
|
-
method=
|
|
447
|
-
resource_path=
|
|
526
|
+
method='GET',
|
|
527
|
+
resource_path='/runners',
|
|
448
528
|
path_params=_path_params,
|
|
449
529
|
query_params=_query_params,
|
|
450
530
|
header_params=_header_params,
|
|
@@ -454,9 +534,12 @@ class RunnersApi:
|
|
|
454
534
|
auth_settings=_auth_settings,
|
|
455
535
|
collection_formats=_collection_formats,
|
|
456
536
|
_host=_host,
|
|
457
|
-
_request_auth=_request_auth
|
|
537
|
+
_request_auth=_request_auth
|
|
458
538
|
)
|
|
459
539
|
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
|
|
460
543
|
@validate_call
|
|
461
544
|
def update_runner_scheduling(
|
|
462
545
|
self,
|
|
@@ -464,7 +547,10 @@ class RunnersApi:
|
|
|
464
547
|
_request_timeout: Union[
|
|
465
548
|
None,
|
|
466
549
|
Annotated[StrictFloat, Field(gt=0)],
|
|
467
|
-
Tuple[
|
|
550
|
+
Tuple[
|
|
551
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
552
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
553
|
+
]
|
|
468
554
|
] = None,
|
|
469
555
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
470
556
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -496,22 +582,30 @@ class RunnersApi:
|
|
|
496
582
|
in the spec for a single request.
|
|
497
583
|
:type _host_index: int, optional
|
|
498
584
|
:return: Returns the result object.
|
|
499
|
-
"""
|
|
585
|
+
""" # noqa: E501
|
|
500
586
|
|
|
501
587
|
_param = self._update_runner_scheduling_serialize(
|
|
502
|
-
id=id,
|
|
588
|
+
id=id,
|
|
589
|
+
_request_auth=_request_auth,
|
|
590
|
+
_content_type=_content_type,
|
|
591
|
+
_headers=_headers,
|
|
592
|
+
_host_index=_host_index
|
|
503
593
|
)
|
|
504
594
|
|
|
505
595
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
506
|
-
|
|
596
|
+
'200': None,
|
|
507
597
|
}
|
|
508
|
-
response_data = self.api_client.call_api(
|
|
598
|
+
response_data = self.api_client.call_api(
|
|
599
|
+
*_param,
|
|
600
|
+
_request_timeout=_request_timeout
|
|
601
|
+
)
|
|
509
602
|
response_data.read()
|
|
510
603
|
return self.api_client.response_deserialize(
|
|
511
604
|
response_data=response_data,
|
|
512
605
|
response_types_map=_response_types_map,
|
|
513
606
|
).data
|
|
514
607
|
|
|
608
|
+
|
|
515
609
|
@validate_call
|
|
516
610
|
def update_runner_scheduling_with_http_info(
|
|
517
611
|
self,
|
|
@@ -519,7 +613,10 @@ class RunnersApi:
|
|
|
519
613
|
_request_timeout: Union[
|
|
520
614
|
None,
|
|
521
615
|
Annotated[StrictFloat, Field(gt=0)],
|
|
522
|
-
Tuple[
|
|
616
|
+
Tuple[
|
|
617
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
618
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
619
|
+
]
|
|
523
620
|
] = None,
|
|
524
621
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
525
622
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -551,22 +648,30 @@ class RunnersApi:
|
|
|
551
648
|
in the spec for a single request.
|
|
552
649
|
:type _host_index: int, optional
|
|
553
650
|
:return: Returns the result object.
|
|
554
|
-
"""
|
|
651
|
+
""" # noqa: E501
|
|
555
652
|
|
|
556
653
|
_param = self._update_runner_scheduling_serialize(
|
|
557
|
-
id=id,
|
|
654
|
+
id=id,
|
|
655
|
+
_request_auth=_request_auth,
|
|
656
|
+
_content_type=_content_type,
|
|
657
|
+
_headers=_headers,
|
|
658
|
+
_host_index=_host_index
|
|
558
659
|
)
|
|
559
660
|
|
|
560
661
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
561
|
-
|
|
662
|
+
'200': None,
|
|
562
663
|
}
|
|
563
|
-
response_data = self.api_client.call_api(
|
|
664
|
+
response_data = self.api_client.call_api(
|
|
665
|
+
*_param,
|
|
666
|
+
_request_timeout=_request_timeout
|
|
667
|
+
)
|
|
564
668
|
response_data.read()
|
|
565
669
|
return self.api_client.response_deserialize(
|
|
566
670
|
response_data=response_data,
|
|
567
671
|
response_types_map=_response_types_map,
|
|
568
672
|
)
|
|
569
673
|
|
|
674
|
+
|
|
570
675
|
@validate_call
|
|
571
676
|
def update_runner_scheduling_without_preload_content(
|
|
572
677
|
self,
|
|
@@ -574,7 +679,10 @@ class RunnersApi:
|
|
|
574
679
|
_request_timeout: Union[
|
|
575
680
|
None,
|
|
576
681
|
Annotated[StrictFloat, Field(gt=0)],
|
|
577
|
-
Tuple[
|
|
682
|
+
Tuple[
|
|
683
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
684
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
685
|
+
]
|
|
578
686
|
] = None,
|
|
579
687
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
580
688
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -606,18 +714,26 @@ class RunnersApi:
|
|
|
606
714
|
in the spec for a single request.
|
|
607
715
|
:type _host_index: int, optional
|
|
608
716
|
:return: Returns the result object.
|
|
609
|
-
"""
|
|
717
|
+
""" # noqa: E501
|
|
610
718
|
|
|
611
719
|
_param = self._update_runner_scheduling_serialize(
|
|
612
|
-
id=id,
|
|
720
|
+
id=id,
|
|
721
|
+
_request_auth=_request_auth,
|
|
722
|
+
_content_type=_content_type,
|
|
723
|
+
_headers=_headers,
|
|
724
|
+
_host_index=_host_index
|
|
613
725
|
)
|
|
614
726
|
|
|
615
727
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
616
|
-
|
|
728
|
+
'200': None,
|
|
617
729
|
}
|
|
618
|
-
response_data = self.api_client.call_api(
|
|
730
|
+
response_data = self.api_client.call_api(
|
|
731
|
+
*_param,
|
|
732
|
+
_request_timeout=_request_timeout
|
|
733
|
+
)
|
|
619
734
|
return response_data.response
|
|
620
735
|
|
|
736
|
+
|
|
621
737
|
def _update_runner_scheduling_serialize(
|
|
622
738
|
self,
|
|
623
739
|
id,
|
|
@@ -626,31 +742,41 @@ class RunnersApi:
|
|
|
626
742
|
_headers,
|
|
627
743
|
_host_index,
|
|
628
744
|
) -> RequestSerialized:
|
|
745
|
+
|
|
629
746
|
_host = None
|
|
630
747
|
|
|
631
|
-
_collection_formats: Dict[str, str] = {
|
|
748
|
+
_collection_formats: Dict[str, str] = {
|
|
749
|
+
}
|
|
632
750
|
|
|
633
751
|
_path_params: Dict[str, str] = {}
|
|
634
752
|
_query_params: List[Tuple[str, str]] = []
|
|
635
753
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
636
754
|
_form_params: List[Tuple[str, str]] = []
|
|
637
|
-
_files: Dict[
|
|
755
|
+
_files: Dict[
|
|
756
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
757
|
+
] = {}
|
|
638
758
|
_body_params: Optional[bytes] = None
|
|
639
759
|
|
|
640
760
|
# process the path parameters
|
|
641
761
|
if id is not None:
|
|
642
|
-
_path_params[
|
|
762
|
+
_path_params['id'] = id
|
|
643
763
|
# process the query parameters
|
|
644
764
|
# process the header parameters
|
|
645
765
|
# process the form parameters
|
|
646
766
|
# process the body parameter
|
|
647
767
|
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
|
|
648
771
|
# authentication setting
|
|
649
|
-
_auth_settings: List[str] = [
|
|
772
|
+
_auth_settings: List[str] = [
|
|
773
|
+
'bearer',
|
|
774
|
+
'oauth2'
|
|
775
|
+
]
|
|
650
776
|
|
|
651
777
|
return self.api_client.param_serialize(
|
|
652
|
-
method=
|
|
653
|
-
resource_path=
|
|
778
|
+
method='PATCH',
|
|
779
|
+
resource_path='/runners/{id}/scheduling',
|
|
654
780
|
path_params=_path_params,
|
|
655
781
|
query_params=_query_params,
|
|
656
782
|
header_params=_header_params,
|
|
@@ -660,5 +786,7 @@ class RunnersApi:
|
|
|
660
786
|
auth_settings=_auth_settings,
|
|
661
787
|
collection_formats=_collection_formats,
|
|
662
788
|
_host=_host,
|
|
663
|
-
_request_auth=_request_auth
|
|
789
|
+
_request_auth=_request_auth
|
|
664
790
|
)
|
|
791
|
+
|
|
792
|
+
|