daytona_api_client 0.111.0__py3-none-any.whl → 0.111.1__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/runners_api.py +244 -0
- {daytona_api_client-0.111.0.dist-info → daytona_api_client-0.111.1.dist-info}/METADATA +2 -2
- {daytona_api_client-0.111.0.dist-info → daytona_api_client-0.111.1.dist-info}/RECORD +6 -6
- {daytona_api_client-0.111.0.dist-info → daytona_api_client-0.111.1.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.111.0.dist-info → daytona_api_client-0.111.1.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client-0.111.0.dist-info → daytona_api_client-0.111.1.dist-info}/top_level.txt +0 -0
|
@@ -307,6 +307,250 @@ class RunnersApi:
|
|
|
307
307
|
|
|
308
308
|
|
|
309
309
|
|
|
310
|
+
@validate_call
|
|
311
|
+
def get_info_for_authenticated_runner(
|
|
312
|
+
self,
|
|
313
|
+
_request_timeout: Union[
|
|
314
|
+
None,
|
|
315
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
316
|
+
Tuple[
|
|
317
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
318
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
319
|
+
]
|
|
320
|
+
] = None,
|
|
321
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
322
|
+
_content_type: Optional[StrictStr] = None,
|
|
323
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
324
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
325
|
+
) -> Runner:
|
|
326
|
+
"""Get info for authenticated runner
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
330
|
+
number provided, it will be total request
|
|
331
|
+
timeout. It can also be a pair (tuple) of
|
|
332
|
+
(connection, read) timeouts.
|
|
333
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
334
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
335
|
+
request; this effectively ignores the
|
|
336
|
+
authentication in the spec for a single request.
|
|
337
|
+
:type _request_auth: dict, optional
|
|
338
|
+
:param _content_type: force content-type for the request.
|
|
339
|
+
:type _content_type: str, Optional
|
|
340
|
+
:param _headers: set to override the headers for a single
|
|
341
|
+
request; this effectively ignores the headers
|
|
342
|
+
in the spec for a single request.
|
|
343
|
+
:type _headers: dict, optional
|
|
344
|
+
:param _host_index: set to override the host_index for a single
|
|
345
|
+
request; this effectively ignores the host_index
|
|
346
|
+
in the spec for a single request.
|
|
347
|
+
:type _host_index: int, optional
|
|
348
|
+
:return: Returns the result object.
|
|
349
|
+
""" # noqa: E501
|
|
350
|
+
|
|
351
|
+
_param = self._get_info_for_authenticated_runner_serialize(
|
|
352
|
+
_request_auth=_request_auth,
|
|
353
|
+
_content_type=_content_type,
|
|
354
|
+
_headers=_headers,
|
|
355
|
+
_host_index=_host_index
|
|
356
|
+
)
|
|
357
|
+
|
|
358
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
359
|
+
'200': "Runner",
|
|
360
|
+
}
|
|
361
|
+
response_data = self.api_client.call_api(
|
|
362
|
+
*_param,
|
|
363
|
+
_request_timeout=_request_timeout
|
|
364
|
+
)
|
|
365
|
+
response_data.read()
|
|
366
|
+
return self.api_client.response_deserialize(
|
|
367
|
+
response_data=response_data,
|
|
368
|
+
response_types_map=_response_types_map,
|
|
369
|
+
).data
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
@validate_call
|
|
373
|
+
def get_info_for_authenticated_runner_with_http_info(
|
|
374
|
+
self,
|
|
375
|
+
_request_timeout: Union[
|
|
376
|
+
None,
|
|
377
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
378
|
+
Tuple[
|
|
379
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
380
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
381
|
+
]
|
|
382
|
+
] = None,
|
|
383
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
384
|
+
_content_type: Optional[StrictStr] = None,
|
|
385
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
386
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
387
|
+
) -> ApiResponse[Runner]:
|
|
388
|
+
"""Get info for authenticated runner
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
392
|
+
number provided, it will be total request
|
|
393
|
+
timeout. It can also be a pair (tuple) of
|
|
394
|
+
(connection, read) timeouts.
|
|
395
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
396
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
397
|
+
request; this effectively ignores the
|
|
398
|
+
authentication in the spec for a single request.
|
|
399
|
+
:type _request_auth: dict, optional
|
|
400
|
+
:param _content_type: force content-type for the request.
|
|
401
|
+
:type _content_type: str, Optional
|
|
402
|
+
:param _headers: set to override the headers for a single
|
|
403
|
+
request; this effectively ignores the headers
|
|
404
|
+
in the spec for a single request.
|
|
405
|
+
:type _headers: dict, optional
|
|
406
|
+
:param _host_index: set to override the host_index for a single
|
|
407
|
+
request; this effectively ignores the host_index
|
|
408
|
+
in the spec for a single request.
|
|
409
|
+
:type _host_index: int, optional
|
|
410
|
+
:return: Returns the result object.
|
|
411
|
+
""" # noqa: E501
|
|
412
|
+
|
|
413
|
+
_param = self._get_info_for_authenticated_runner_serialize(
|
|
414
|
+
_request_auth=_request_auth,
|
|
415
|
+
_content_type=_content_type,
|
|
416
|
+
_headers=_headers,
|
|
417
|
+
_host_index=_host_index
|
|
418
|
+
)
|
|
419
|
+
|
|
420
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
421
|
+
'200': "Runner",
|
|
422
|
+
}
|
|
423
|
+
response_data = self.api_client.call_api(
|
|
424
|
+
*_param,
|
|
425
|
+
_request_timeout=_request_timeout
|
|
426
|
+
)
|
|
427
|
+
response_data.read()
|
|
428
|
+
return self.api_client.response_deserialize(
|
|
429
|
+
response_data=response_data,
|
|
430
|
+
response_types_map=_response_types_map,
|
|
431
|
+
)
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
@validate_call
|
|
435
|
+
def get_info_for_authenticated_runner_without_preload_content(
|
|
436
|
+
self,
|
|
437
|
+
_request_timeout: Union[
|
|
438
|
+
None,
|
|
439
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
440
|
+
Tuple[
|
|
441
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
442
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
443
|
+
]
|
|
444
|
+
] = None,
|
|
445
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
446
|
+
_content_type: Optional[StrictStr] = None,
|
|
447
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
448
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
449
|
+
) -> RESTResponseType:
|
|
450
|
+
"""Get info for authenticated runner
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
454
|
+
number provided, it will be total request
|
|
455
|
+
timeout. It can also be a pair (tuple) of
|
|
456
|
+
(connection, read) timeouts.
|
|
457
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
458
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
459
|
+
request; this effectively ignores the
|
|
460
|
+
authentication in the spec for a single request.
|
|
461
|
+
:type _request_auth: dict, optional
|
|
462
|
+
:param _content_type: force content-type for the request.
|
|
463
|
+
:type _content_type: str, Optional
|
|
464
|
+
:param _headers: set to override the headers for a single
|
|
465
|
+
request; this effectively ignores the headers
|
|
466
|
+
in the spec for a single request.
|
|
467
|
+
:type _headers: dict, optional
|
|
468
|
+
:param _host_index: set to override the host_index for a single
|
|
469
|
+
request; this effectively ignores the host_index
|
|
470
|
+
in the spec for a single request.
|
|
471
|
+
:type _host_index: int, optional
|
|
472
|
+
:return: Returns the result object.
|
|
473
|
+
""" # noqa: E501
|
|
474
|
+
|
|
475
|
+
_param = self._get_info_for_authenticated_runner_serialize(
|
|
476
|
+
_request_auth=_request_auth,
|
|
477
|
+
_content_type=_content_type,
|
|
478
|
+
_headers=_headers,
|
|
479
|
+
_host_index=_host_index
|
|
480
|
+
)
|
|
481
|
+
|
|
482
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
483
|
+
'200': "Runner",
|
|
484
|
+
}
|
|
485
|
+
response_data = self.api_client.call_api(
|
|
486
|
+
*_param,
|
|
487
|
+
_request_timeout=_request_timeout
|
|
488
|
+
)
|
|
489
|
+
return response_data.response
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
def _get_info_for_authenticated_runner_serialize(
|
|
493
|
+
self,
|
|
494
|
+
_request_auth,
|
|
495
|
+
_content_type,
|
|
496
|
+
_headers,
|
|
497
|
+
_host_index,
|
|
498
|
+
) -> RequestSerialized:
|
|
499
|
+
|
|
500
|
+
_host = None
|
|
501
|
+
|
|
502
|
+
_collection_formats: Dict[str, str] = {
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
_path_params: Dict[str, str] = {}
|
|
506
|
+
_query_params: List[Tuple[str, str]] = []
|
|
507
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
508
|
+
_form_params: List[Tuple[str, str]] = []
|
|
509
|
+
_files: Dict[
|
|
510
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
511
|
+
] = {}
|
|
512
|
+
_body_params: Optional[bytes] = None
|
|
513
|
+
|
|
514
|
+
# process the path parameters
|
|
515
|
+
# process the query parameters
|
|
516
|
+
# process the header parameters
|
|
517
|
+
# process the form parameters
|
|
518
|
+
# process the body parameter
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
# set the HTTP header `Accept`
|
|
522
|
+
if 'Accept' not in _header_params:
|
|
523
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
524
|
+
[
|
|
525
|
+
'application/json'
|
|
526
|
+
]
|
|
527
|
+
)
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
# authentication setting
|
|
531
|
+
_auth_settings: List[str] = [
|
|
532
|
+
'bearer',
|
|
533
|
+
'oauth2'
|
|
534
|
+
]
|
|
535
|
+
|
|
536
|
+
return self.api_client.param_serialize(
|
|
537
|
+
method='GET',
|
|
538
|
+
resource_path='/runners/me',
|
|
539
|
+
path_params=_path_params,
|
|
540
|
+
query_params=_query_params,
|
|
541
|
+
header_params=_header_params,
|
|
542
|
+
body=_body_params,
|
|
543
|
+
post_params=_form_params,
|
|
544
|
+
files=_files,
|
|
545
|
+
auth_settings=_auth_settings,
|
|
546
|
+
collection_formats=_collection_formats,
|
|
547
|
+
_host=_host,
|
|
548
|
+
_request_auth=_request_auth
|
|
549
|
+
)
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
310
554
|
@validate_call
|
|
311
555
|
def get_runner_by_sandbox_id(
|
|
312
556
|
self,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: daytona_api_client
|
|
3
|
-
Version: 0.111.
|
|
3
|
+
Version: 0.111.1
|
|
4
4
|
Summary: Daytona
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: Daytona Platforms Inc.
|
|
@@ -8,7 +8,7 @@ Author-email: support@daytona.com
|
|
|
8
8
|
Keywords: OpenAPI,OpenAPI-Generator,Daytona
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
10
|
License-File: LICENSE
|
|
11
|
-
Requires-Dist: urllib3<3.0.0,>=1.
|
|
11
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
12
12
|
Requires-Dist: python-dateutil>=2.8.2
|
|
13
13
|
Requires-Dist: pydantic>=2
|
|
14
14
|
Requires-Dist: typing-extensions>=4.7.1
|
|
@@ -15,7 +15,7 @@ daytona_api_client/api/health_api.py,sha256=alnAhh9vQkpx2OmVre6dHmHTlcFldBfqsogN
|
|
|
15
15
|
daytona_api_client/api/object_storage_api.py,sha256=aliX_Jj8omBsm-H82lf10L4jnPvFpnovQTSScVaEtko,11628
|
|
16
16
|
daytona_api_client/api/organizations_api.py,sha256=w7DfApcRCMka5zCONSALz3ksGUoLeE9XVA8F0Rpja58,276683
|
|
17
17
|
daytona_api_client/api/preview_api.py,sha256=_cYR0xaBKtYBFUKIRezvR0d6swN7yKkmVkJ5yBLk_ro,31054
|
|
18
|
-
daytona_api_client/api/runners_api.py,sha256=
|
|
18
|
+
daytona_api_client/api/runners_api.py,sha256=yp0CMZzo1FfHGOlOU0EoLu7GcHIjFDzsg-iEFPX1H7o,58319
|
|
19
19
|
daytona_api_client/api/sandbox_api.py,sha256=i_aVfhcKxSJFeecXi3PWyOywzsE5fTxqjJtZtvjqnAo,280196
|
|
20
20
|
daytona_api_client/api/snapshots_api.py,sha256=I95ano5XaE6EOMX40lIuhC1JTBtHO-ktwye4JwD6nd0,105729
|
|
21
21
|
daytona_api_client/api/toolbox_api.py,sha256=Vf1ADiXdmlQ2O76ZnJlfj3BXNRvlL8I7SzvkKV1Mbkg,815056
|
|
@@ -191,8 +191,8 @@ daytona_api_client/models/work_dir_response.py,sha256=1dndjWYnDSMDeLiY8pxQDX1viE
|
|
|
191
191
|
daytona_api_client/models/workdir_response.py,sha256=geBhfQDR7LK0uPlmJF6Ple1eQMCzhSb4qK-9UfhqV7k,3047
|
|
192
192
|
daytona_api_client/models/workspace.py,sha256=GHMcBgT1QeutcJrH8o-34ZX-ITVL7wtUhtk-K8kFJFU,11250
|
|
193
193
|
daytona_api_client/models/workspace_port_preview_url.py,sha256=WoNoKEFK2sitDp9Np5icJO8ZdqiM4G9iws8z6LZKkiA,3199
|
|
194
|
-
daytona_api_client-0.111.
|
|
195
|
-
daytona_api_client-0.111.
|
|
196
|
-
daytona_api_client-0.111.
|
|
197
|
-
daytona_api_client-0.111.
|
|
198
|
-
daytona_api_client-0.111.
|
|
194
|
+
daytona_api_client-0.111.1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
|
|
195
|
+
daytona_api_client-0.111.1.dist-info/METADATA,sha256=4L3tLS6mobtiUsF_rj154ek292rUNBlZLAXSyOIbSC4,618
|
|
196
|
+
daytona_api_client-0.111.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
197
|
+
daytona_api_client-0.111.1.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
|
|
198
|
+
daytona_api_client-0.111.1.dist-info/RECORD,,
|
|
File without changes
|
{daytona_api_client-0.111.0.dist-info → daytona_api_client-0.111.1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|