daytona_api_client 0.103.0rc2__py3-none-any.whl → 0.104.0rc1__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/__init__.py +8 -0
- daytona_api_client/api/__init__.py +1 -0
- daytona_api_client/api/config_api.py +279 -0
- daytona_api_client/api/sandbox_api.py +572 -0
- daytona_api_client/api/toolbox_api.py +567 -14
- daytona_api_client/models/__init__.py +7 -0
- daytona_api_client/models/announcement.py +103 -0
- daytona_api_client/models/create_docker_registry.py +2 -2
- daytona_api_client/models/daytona_configuration.py +148 -0
- daytona_api_client/models/docker_registry.py +2 -2
- daytona_api_client/models/oidc_config.py +105 -0
- daytona_api_client/models/posthog_config.py +103 -0
- daytona_api_client/models/update_sandbox_state_dto.py +108 -0
- {daytona_api_client-0.103.0rc2.dist-info → daytona_api_client-0.104.0rc1.dist-info}/METADATA +1 -1
- {daytona_api_client-0.103.0rc2.dist-info → daytona_api_client-0.104.0rc1.dist-info}/RECORD +18 -12
- {daytona_api_client-0.103.0rc2.dist-info → daytona_api_client-0.104.0rc1.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.103.0rc2.dist-info → daytona_api_client-0.104.0rc1.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client-0.103.0rc2.dist-info → daytona_api_client-0.104.0rc1.dist-info}/top_level.txt +0 -0
|
@@ -72,7 +72,9 @@ from daytona_api_client.models.search_files_response import SearchFilesResponse
|
|
|
72
72
|
from daytona_api_client.models.session import Session
|
|
73
73
|
from daytona_api_client.models.session_execute_request import SessionExecuteRequest
|
|
74
74
|
from daytona_api_client.models.session_execute_response import SessionExecuteResponse
|
|
75
|
+
from daytona_api_client.models.user_home_dir_response import UserHomeDirResponse
|
|
75
76
|
from daytona_api_client.models.windows_response import WindowsResponse
|
|
77
|
+
from daytona_api_client.models.work_dir_response import WorkDirResponse
|
|
76
78
|
|
|
77
79
|
from daytona_api_client.api_client import ApiClient, RequestSerialized
|
|
78
80
|
from daytona_api_client.api_response import ApiResponse
|
|
@@ -5145,7 +5147,7 @@ class ToolboxApi:
|
|
|
5145
5147
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5146
5148
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5147
5149
|
) -> ProjectDirResponse:
|
|
5148
|
-
"""Get sandbox project dir
|
|
5150
|
+
"""(Deprecated) Get sandbox project dir
|
|
5149
5151
|
|
|
5150
5152
|
|
|
5151
5153
|
:param sandbox_id: (required)
|
|
@@ -5173,6 +5175,7 @@ class ToolboxApi:
|
|
|
5173
5175
|
:type _host_index: int, optional
|
|
5174
5176
|
:return: Returns the result object.
|
|
5175
5177
|
""" # noqa: E501
|
|
5178
|
+
warnings.warn("GET /toolbox/{sandboxId}/toolbox/project-dir is deprecated.", DeprecationWarning)
|
|
5176
5179
|
|
|
5177
5180
|
_param = self._get_project_dir_serialize(
|
|
5178
5181
|
sandbox_id=sandbox_id,
|
|
@@ -5215,7 +5218,7 @@ class ToolboxApi:
|
|
|
5215
5218
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5216
5219
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5217
5220
|
) -> ApiResponse[ProjectDirResponse]:
|
|
5218
|
-
"""Get sandbox project dir
|
|
5221
|
+
"""(Deprecated) Get sandbox project dir
|
|
5219
5222
|
|
|
5220
5223
|
|
|
5221
5224
|
:param sandbox_id: (required)
|
|
@@ -5243,6 +5246,7 @@ class ToolboxApi:
|
|
|
5243
5246
|
:type _host_index: int, optional
|
|
5244
5247
|
:return: Returns the result object.
|
|
5245
5248
|
""" # noqa: E501
|
|
5249
|
+
warnings.warn("GET /toolbox/{sandboxId}/toolbox/project-dir is deprecated.", DeprecationWarning)
|
|
5246
5250
|
|
|
5247
5251
|
_param = self._get_project_dir_serialize(
|
|
5248
5252
|
sandbox_id=sandbox_id,
|
|
@@ -5285,7 +5289,7 @@ class ToolboxApi:
|
|
|
5285
5289
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5286
5290
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5287
5291
|
) -> RESTResponseType:
|
|
5288
|
-
"""Get sandbox project dir
|
|
5292
|
+
"""(Deprecated) Get sandbox project dir
|
|
5289
5293
|
|
|
5290
5294
|
|
|
5291
5295
|
:param sandbox_id: (required)
|
|
@@ -5313,6 +5317,7 @@ class ToolboxApi:
|
|
|
5313
5317
|
:type _host_index: int, optional
|
|
5314
5318
|
:return: Returns the result object.
|
|
5315
5319
|
""" # noqa: E501
|
|
5320
|
+
warnings.warn("GET /toolbox/{sandboxId}/toolbox/project-dir is deprecated.", DeprecationWarning)
|
|
5316
5321
|
|
|
5317
5322
|
_param = self._get_project_dir_serialize(
|
|
5318
5323
|
sandbox_id=sandbox_id,
|
|
@@ -6324,6 +6329,280 @@ class ToolboxApi:
|
|
|
6324
6329
|
|
|
6325
6330
|
|
|
6326
6331
|
|
|
6332
|
+
@validate_call
|
|
6333
|
+
def get_user_home_dir(
|
|
6334
|
+
self,
|
|
6335
|
+
sandbox_id: StrictStr,
|
|
6336
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
6337
|
+
_request_timeout: Union[
|
|
6338
|
+
None,
|
|
6339
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6340
|
+
Tuple[
|
|
6341
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6342
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6343
|
+
]
|
|
6344
|
+
] = None,
|
|
6345
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6346
|
+
_content_type: Optional[StrictStr] = None,
|
|
6347
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6348
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6349
|
+
) -> UserHomeDirResponse:
|
|
6350
|
+
"""Get sandbox user home dir
|
|
6351
|
+
|
|
6352
|
+
|
|
6353
|
+
:param sandbox_id: (required)
|
|
6354
|
+
:type sandbox_id: str
|
|
6355
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
6356
|
+
:type x_daytona_organization_id: str
|
|
6357
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6358
|
+
number provided, it will be total request
|
|
6359
|
+
timeout. It can also be a pair (tuple) of
|
|
6360
|
+
(connection, read) timeouts.
|
|
6361
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6362
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6363
|
+
request; this effectively ignores the
|
|
6364
|
+
authentication in the spec for a single request.
|
|
6365
|
+
:type _request_auth: dict, optional
|
|
6366
|
+
:param _content_type: force content-type for the request.
|
|
6367
|
+
:type _content_type: str, Optional
|
|
6368
|
+
:param _headers: set to override the headers for a single
|
|
6369
|
+
request; this effectively ignores the headers
|
|
6370
|
+
in the spec for a single request.
|
|
6371
|
+
:type _headers: dict, optional
|
|
6372
|
+
:param _host_index: set to override the host_index for a single
|
|
6373
|
+
request; this effectively ignores the host_index
|
|
6374
|
+
in the spec for a single request.
|
|
6375
|
+
:type _host_index: int, optional
|
|
6376
|
+
:return: Returns the result object.
|
|
6377
|
+
""" # noqa: E501
|
|
6378
|
+
|
|
6379
|
+
_param = self._get_user_home_dir_serialize(
|
|
6380
|
+
sandbox_id=sandbox_id,
|
|
6381
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
6382
|
+
_request_auth=_request_auth,
|
|
6383
|
+
_content_type=_content_type,
|
|
6384
|
+
_headers=_headers,
|
|
6385
|
+
_host_index=_host_index
|
|
6386
|
+
)
|
|
6387
|
+
|
|
6388
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
6389
|
+
'200': "UserHomeDirResponse",
|
|
6390
|
+
}
|
|
6391
|
+
response_data = self.api_client.call_api(
|
|
6392
|
+
*_param,
|
|
6393
|
+
_request_timeout=_request_timeout
|
|
6394
|
+
)
|
|
6395
|
+
response_data.read()
|
|
6396
|
+
return self.api_client.response_deserialize(
|
|
6397
|
+
response_data=response_data,
|
|
6398
|
+
response_types_map=_response_types_map,
|
|
6399
|
+
).data
|
|
6400
|
+
|
|
6401
|
+
|
|
6402
|
+
@validate_call
|
|
6403
|
+
def get_user_home_dir_with_http_info(
|
|
6404
|
+
self,
|
|
6405
|
+
sandbox_id: StrictStr,
|
|
6406
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
6407
|
+
_request_timeout: Union[
|
|
6408
|
+
None,
|
|
6409
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6410
|
+
Tuple[
|
|
6411
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6412
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6413
|
+
]
|
|
6414
|
+
] = None,
|
|
6415
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6416
|
+
_content_type: Optional[StrictStr] = None,
|
|
6417
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6418
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6419
|
+
) -> ApiResponse[UserHomeDirResponse]:
|
|
6420
|
+
"""Get sandbox user home dir
|
|
6421
|
+
|
|
6422
|
+
|
|
6423
|
+
:param sandbox_id: (required)
|
|
6424
|
+
:type sandbox_id: str
|
|
6425
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
6426
|
+
:type x_daytona_organization_id: str
|
|
6427
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6428
|
+
number provided, it will be total request
|
|
6429
|
+
timeout. It can also be a pair (tuple) of
|
|
6430
|
+
(connection, read) timeouts.
|
|
6431
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6432
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6433
|
+
request; this effectively ignores the
|
|
6434
|
+
authentication in the spec for a single request.
|
|
6435
|
+
:type _request_auth: dict, optional
|
|
6436
|
+
:param _content_type: force content-type for the request.
|
|
6437
|
+
:type _content_type: str, Optional
|
|
6438
|
+
:param _headers: set to override the headers for a single
|
|
6439
|
+
request; this effectively ignores the headers
|
|
6440
|
+
in the spec for a single request.
|
|
6441
|
+
:type _headers: dict, optional
|
|
6442
|
+
:param _host_index: set to override the host_index for a single
|
|
6443
|
+
request; this effectively ignores the host_index
|
|
6444
|
+
in the spec for a single request.
|
|
6445
|
+
:type _host_index: int, optional
|
|
6446
|
+
:return: Returns the result object.
|
|
6447
|
+
""" # noqa: E501
|
|
6448
|
+
|
|
6449
|
+
_param = self._get_user_home_dir_serialize(
|
|
6450
|
+
sandbox_id=sandbox_id,
|
|
6451
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
6452
|
+
_request_auth=_request_auth,
|
|
6453
|
+
_content_type=_content_type,
|
|
6454
|
+
_headers=_headers,
|
|
6455
|
+
_host_index=_host_index
|
|
6456
|
+
)
|
|
6457
|
+
|
|
6458
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
6459
|
+
'200': "UserHomeDirResponse",
|
|
6460
|
+
}
|
|
6461
|
+
response_data = self.api_client.call_api(
|
|
6462
|
+
*_param,
|
|
6463
|
+
_request_timeout=_request_timeout
|
|
6464
|
+
)
|
|
6465
|
+
response_data.read()
|
|
6466
|
+
return self.api_client.response_deserialize(
|
|
6467
|
+
response_data=response_data,
|
|
6468
|
+
response_types_map=_response_types_map,
|
|
6469
|
+
)
|
|
6470
|
+
|
|
6471
|
+
|
|
6472
|
+
@validate_call
|
|
6473
|
+
def get_user_home_dir_without_preload_content(
|
|
6474
|
+
self,
|
|
6475
|
+
sandbox_id: StrictStr,
|
|
6476
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
6477
|
+
_request_timeout: Union[
|
|
6478
|
+
None,
|
|
6479
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6480
|
+
Tuple[
|
|
6481
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6482
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6483
|
+
]
|
|
6484
|
+
] = None,
|
|
6485
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6486
|
+
_content_type: Optional[StrictStr] = None,
|
|
6487
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6488
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6489
|
+
) -> RESTResponseType:
|
|
6490
|
+
"""Get sandbox user home dir
|
|
6491
|
+
|
|
6492
|
+
|
|
6493
|
+
:param sandbox_id: (required)
|
|
6494
|
+
:type sandbox_id: str
|
|
6495
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
6496
|
+
:type x_daytona_organization_id: str
|
|
6497
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6498
|
+
number provided, it will be total request
|
|
6499
|
+
timeout. It can also be a pair (tuple) of
|
|
6500
|
+
(connection, read) timeouts.
|
|
6501
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6502
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6503
|
+
request; this effectively ignores the
|
|
6504
|
+
authentication in the spec for a single request.
|
|
6505
|
+
:type _request_auth: dict, optional
|
|
6506
|
+
:param _content_type: force content-type for the request.
|
|
6507
|
+
:type _content_type: str, Optional
|
|
6508
|
+
:param _headers: set to override the headers for a single
|
|
6509
|
+
request; this effectively ignores the headers
|
|
6510
|
+
in the spec for a single request.
|
|
6511
|
+
:type _headers: dict, optional
|
|
6512
|
+
:param _host_index: set to override the host_index for a single
|
|
6513
|
+
request; this effectively ignores the host_index
|
|
6514
|
+
in the spec for a single request.
|
|
6515
|
+
:type _host_index: int, optional
|
|
6516
|
+
:return: Returns the result object.
|
|
6517
|
+
""" # noqa: E501
|
|
6518
|
+
|
|
6519
|
+
_param = self._get_user_home_dir_serialize(
|
|
6520
|
+
sandbox_id=sandbox_id,
|
|
6521
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
6522
|
+
_request_auth=_request_auth,
|
|
6523
|
+
_content_type=_content_type,
|
|
6524
|
+
_headers=_headers,
|
|
6525
|
+
_host_index=_host_index
|
|
6526
|
+
)
|
|
6527
|
+
|
|
6528
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
6529
|
+
'200': "UserHomeDirResponse",
|
|
6530
|
+
}
|
|
6531
|
+
response_data = self.api_client.call_api(
|
|
6532
|
+
*_param,
|
|
6533
|
+
_request_timeout=_request_timeout
|
|
6534
|
+
)
|
|
6535
|
+
return response_data.response
|
|
6536
|
+
|
|
6537
|
+
|
|
6538
|
+
def _get_user_home_dir_serialize(
|
|
6539
|
+
self,
|
|
6540
|
+
sandbox_id,
|
|
6541
|
+
x_daytona_organization_id,
|
|
6542
|
+
_request_auth,
|
|
6543
|
+
_content_type,
|
|
6544
|
+
_headers,
|
|
6545
|
+
_host_index,
|
|
6546
|
+
) -> RequestSerialized:
|
|
6547
|
+
|
|
6548
|
+
_host = None
|
|
6549
|
+
|
|
6550
|
+
_collection_formats: Dict[str, str] = {
|
|
6551
|
+
}
|
|
6552
|
+
|
|
6553
|
+
_path_params: Dict[str, str] = {}
|
|
6554
|
+
_query_params: List[Tuple[str, str]] = []
|
|
6555
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
6556
|
+
_form_params: List[Tuple[str, str]] = []
|
|
6557
|
+
_files: Dict[
|
|
6558
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
6559
|
+
] = {}
|
|
6560
|
+
_body_params: Optional[bytes] = None
|
|
6561
|
+
|
|
6562
|
+
# process the path parameters
|
|
6563
|
+
if sandbox_id is not None:
|
|
6564
|
+
_path_params['sandboxId'] = sandbox_id
|
|
6565
|
+
# process the query parameters
|
|
6566
|
+
# process the header parameters
|
|
6567
|
+
if x_daytona_organization_id is not None:
|
|
6568
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
6569
|
+
# process the form parameters
|
|
6570
|
+
# process the body parameter
|
|
6571
|
+
|
|
6572
|
+
|
|
6573
|
+
# set the HTTP header `Accept`
|
|
6574
|
+
if 'Accept' not in _header_params:
|
|
6575
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
6576
|
+
[
|
|
6577
|
+
'application/json'
|
|
6578
|
+
]
|
|
6579
|
+
)
|
|
6580
|
+
|
|
6581
|
+
|
|
6582
|
+
# authentication setting
|
|
6583
|
+
_auth_settings: List[str] = [
|
|
6584
|
+
'bearer',
|
|
6585
|
+
'oauth2'
|
|
6586
|
+
]
|
|
6587
|
+
|
|
6588
|
+
return self.api_client.param_serialize(
|
|
6589
|
+
method='GET',
|
|
6590
|
+
resource_path='/toolbox/{sandboxId}/toolbox/user-home-dir',
|
|
6591
|
+
path_params=_path_params,
|
|
6592
|
+
query_params=_query_params,
|
|
6593
|
+
header_params=_header_params,
|
|
6594
|
+
body=_body_params,
|
|
6595
|
+
post_params=_form_params,
|
|
6596
|
+
files=_files,
|
|
6597
|
+
auth_settings=_auth_settings,
|
|
6598
|
+
collection_formats=_collection_formats,
|
|
6599
|
+
_host=_host,
|
|
6600
|
+
_request_auth=_request_auth
|
|
6601
|
+
)
|
|
6602
|
+
|
|
6603
|
+
|
|
6604
|
+
|
|
6605
|
+
|
|
6327
6606
|
@validate_call
|
|
6328
6607
|
def get_windows(
|
|
6329
6608
|
self,
|
|
@@ -6341,7 +6620,78 @@ class ToolboxApi:
|
|
|
6341
6620
|
_content_type: Optional[StrictStr] = None,
|
|
6342
6621
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6343
6622
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6344
|
-
) -> WindowsResponse:
|
|
6623
|
+
) -> WindowsResponse:
|
|
6624
|
+
"""Get windows
|
|
6625
|
+
|
|
6626
|
+
Get list of open windows
|
|
6627
|
+
|
|
6628
|
+
:param sandbox_id: (required)
|
|
6629
|
+
:type sandbox_id: str
|
|
6630
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
6631
|
+
:type x_daytona_organization_id: str
|
|
6632
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6633
|
+
number provided, it will be total request
|
|
6634
|
+
timeout. It can also be a pair (tuple) of
|
|
6635
|
+
(connection, read) timeouts.
|
|
6636
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6637
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6638
|
+
request; this effectively ignores the
|
|
6639
|
+
authentication in the spec for a single request.
|
|
6640
|
+
:type _request_auth: dict, optional
|
|
6641
|
+
:param _content_type: force content-type for the request.
|
|
6642
|
+
:type _content_type: str, Optional
|
|
6643
|
+
:param _headers: set to override the headers for a single
|
|
6644
|
+
request; this effectively ignores the headers
|
|
6645
|
+
in the spec for a single request.
|
|
6646
|
+
:type _headers: dict, optional
|
|
6647
|
+
:param _host_index: set to override the host_index for a single
|
|
6648
|
+
request; this effectively ignores the host_index
|
|
6649
|
+
in the spec for a single request.
|
|
6650
|
+
:type _host_index: int, optional
|
|
6651
|
+
:return: Returns the result object.
|
|
6652
|
+
""" # noqa: E501
|
|
6653
|
+
|
|
6654
|
+
_param = self._get_windows_serialize(
|
|
6655
|
+
sandbox_id=sandbox_id,
|
|
6656
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
6657
|
+
_request_auth=_request_auth,
|
|
6658
|
+
_content_type=_content_type,
|
|
6659
|
+
_headers=_headers,
|
|
6660
|
+
_host_index=_host_index
|
|
6661
|
+
)
|
|
6662
|
+
|
|
6663
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
6664
|
+
'200': "WindowsResponse",
|
|
6665
|
+
}
|
|
6666
|
+
response_data = self.api_client.call_api(
|
|
6667
|
+
*_param,
|
|
6668
|
+
_request_timeout=_request_timeout
|
|
6669
|
+
)
|
|
6670
|
+
response_data.read()
|
|
6671
|
+
return self.api_client.response_deserialize(
|
|
6672
|
+
response_data=response_data,
|
|
6673
|
+
response_types_map=_response_types_map,
|
|
6674
|
+
).data
|
|
6675
|
+
|
|
6676
|
+
|
|
6677
|
+
@validate_call
|
|
6678
|
+
def get_windows_with_http_info(
|
|
6679
|
+
self,
|
|
6680
|
+
sandbox_id: StrictStr,
|
|
6681
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
6682
|
+
_request_timeout: Union[
|
|
6683
|
+
None,
|
|
6684
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6685
|
+
Tuple[
|
|
6686
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6687
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6688
|
+
]
|
|
6689
|
+
] = None,
|
|
6690
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6691
|
+
_content_type: Optional[StrictStr] = None,
|
|
6692
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6693
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6694
|
+
) -> ApiResponse[WindowsResponse]:
|
|
6345
6695
|
"""Get windows
|
|
6346
6696
|
|
|
6347
6697
|
Get list of open windows
|
|
@@ -6392,11 +6742,11 @@ class ToolboxApi:
|
|
|
6392
6742
|
return self.api_client.response_deserialize(
|
|
6393
6743
|
response_data=response_data,
|
|
6394
6744
|
response_types_map=_response_types_map,
|
|
6395
|
-
)
|
|
6745
|
+
)
|
|
6396
6746
|
|
|
6397
6747
|
|
|
6398
6748
|
@validate_call
|
|
6399
|
-
def
|
|
6749
|
+
def get_windows_without_preload_content(
|
|
6400
6750
|
self,
|
|
6401
6751
|
sandbox_id: StrictStr,
|
|
6402
6752
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
@@ -6412,7 +6762,7 @@ class ToolboxApi:
|
|
|
6412
6762
|
_content_type: Optional[StrictStr] = None,
|
|
6413
6763
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6414
6764
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6415
|
-
) ->
|
|
6765
|
+
) -> RESTResponseType:
|
|
6416
6766
|
"""Get windows
|
|
6417
6767
|
|
|
6418
6768
|
Get list of open windows
|
|
@@ -6459,6 +6809,210 @@ class ToolboxApi:
|
|
|
6459
6809
|
*_param,
|
|
6460
6810
|
_request_timeout=_request_timeout
|
|
6461
6811
|
)
|
|
6812
|
+
return response_data.response
|
|
6813
|
+
|
|
6814
|
+
|
|
6815
|
+
def _get_windows_serialize(
|
|
6816
|
+
self,
|
|
6817
|
+
sandbox_id,
|
|
6818
|
+
x_daytona_organization_id,
|
|
6819
|
+
_request_auth,
|
|
6820
|
+
_content_type,
|
|
6821
|
+
_headers,
|
|
6822
|
+
_host_index,
|
|
6823
|
+
) -> RequestSerialized:
|
|
6824
|
+
|
|
6825
|
+
_host = None
|
|
6826
|
+
|
|
6827
|
+
_collection_formats: Dict[str, str] = {
|
|
6828
|
+
}
|
|
6829
|
+
|
|
6830
|
+
_path_params: Dict[str, str] = {}
|
|
6831
|
+
_query_params: List[Tuple[str, str]] = []
|
|
6832
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
6833
|
+
_form_params: List[Tuple[str, str]] = []
|
|
6834
|
+
_files: Dict[
|
|
6835
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
6836
|
+
] = {}
|
|
6837
|
+
_body_params: Optional[bytes] = None
|
|
6838
|
+
|
|
6839
|
+
# process the path parameters
|
|
6840
|
+
if sandbox_id is not None:
|
|
6841
|
+
_path_params['sandboxId'] = sandbox_id
|
|
6842
|
+
# process the query parameters
|
|
6843
|
+
# process the header parameters
|
|
6844
|
+
if x_daytona_organization_id is not None:
|
|
6845
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
6846
|
+
# process the form parameters
|
|
6847
|
+
# process the body parameter
|
|
6848
|
+
|
|
6849
|
+
|
|
6850
|
+
# set the HTTP header `Accept`
|
|
6851
|
+
if 'Accept' not in _header_params:
|
|
6852
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
6853
|
+
[
|
|
6854
|
+
'application/json'
|
|
6855
|
+
]
|
|
6856
|
+
)
|
|
6857
|
+
|
|
6858
|
+
|
|
6859
|
+
# authentication setting
|
|
6860
|
+
_auth_settings: List[str] = [
|
|
6861
|
+
'bearer',
|
|
6862
|
+
'oauth2'
|
|
6863
|
+
]
|
|
6864
|
+
|
|
6865
|
+
return self.api_client.param_serialize(
|
|
6866
|
+
method='GET',
|
|
6867
|
+
resource_path='/toolbox/{sandboxId}/toolbox/computeruse/display/windows',
|
|
6868
|
+
path_params=_path_params,
|
|
6869
|
+
query_params=_query_params,
|
|
6870
|
+
header_params=_header_params,
|
|
6871
|
+
body=_body_params,
|
|
6872
|
+
post_params=_form_params,
|
|
6873
|
+
files=_files,
|
|
6874
|
+
auth_settings=_auth_settings,
|
|
6875
|
+
collection_formats=_collection_formats,
|
|
6876
|
+
_host=_host,
|
|
6877
|
+
_request_auth=_request_auth
|
|
6878
|
+
)
|
|
6879
|
+
|
|
6880
|
+
|
|
6881
|
+
|
|
6882
|
+
|
|
6883
|
+
@validate_call
|
|
6884
|
+
def get_work_dir(
|
|
6885
|
+
self,
|
|
6886
|
+
sandbox_id: StrictStr,
|
|
6887
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
6888
|
+
_request_timeout: Union[
|
|
6889
|
+
None,
|
|
6890
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6891
|
+
Tuple[
|
|
6892
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6893
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6894
|
+
]
|
|
6895
|
+
] = None,
|
|
6896
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6897
|
+
_content_type: Optional[StrictStr] = None,
|
|
6898
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6899
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6900
|
+
) -> WorkDirResponse:
|
|
6901
|
+
"""Get sandbox work-dir
|
|
6902
|
+
|
|
6903
|
+
|
|
6904
|
+
:param sandbox_id: (required)
|
|
6905
|
+
:type sandbox_id: str
|
|
6906
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
6907
|
+
:type x_daytona_organization_id: str
|
|
6908
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6909
|
+
number provided, it will be total request
|
|
6910
|
+
timeout. It can also be a pair (tuple) of
|
|
6911
|
+
(connection, read) timeouts.
|
|
6912
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6913
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6914
|
+
request; this effectively ignores the
|
|
6915
|
+
authentication in the spec for a single request.
|
|
6916
|
+
:type _request_auth: dict, optional
|
|
6917
|
+
:param _content_type: force content-type for the request.
|
|
6918
|
+
:type _content_type: str, Optional
|
|
6919
|
+
:param _headers: set to override the headers for a single
|
|
6920
|
+
request; this effectively ignores the headers
|
|
6921
|
+
in the spec for a single request.
|
|
6922
|
+
:type _headers: dict, optional
|
|
6923
|
+
:param _host_index: set to override the host_index for a single
|
|
6924
|
+
request; this effectively ignores the host_index
|
|
6925
|
+
in the spec for a single request.
|
|
6926
|
+
:type _host_index: int, optional
|
|
6927
|
+
:return: Returns the result object.
|
|
6928
|
+
""" # noqa: E501
|
|
6929
|
+
|
|
6930
|
+
_param = self._get_work_dir_serialize(
|
|
6931
|
+
sandbox_id=sandbox_id,
|
|
6932
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
6933
|
+
_request_auth=_request_auth,
|
|
6934
|
+
_content_type=_content_type,
|
|
6935
|
+
_headers=_headers,
|
|
6936
|
+
_host_index=_host_index
|
|
6937
|
+
)
|
|
6938
|
+
|
|
6939
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
6940
|
+
'200': "WorkDirResponse",
|
|
6941
|
+
}
|
|
6942
|
+
response_data = self.api_client.call_api(
|
|
6943
|
+
*_param,
|
|
6944
|
+
_request_timeout=_request_timeout
|
|
6945
|
+
)
|
|
6946
|
+
response_data.read()
|
|
6947
|
+
return self.api_client.response_deserialize(
|
|
6948
|
+
response_data=response_data,
|
|
6949
|
+
response_types_map=_response_types_map,
|
|
6950
|
+
).data
|
|
6951
|
+
|
|
6952
|
+
|
|
6953
|
+
@validate_call
|
|
6954
|
+
def get_work_dir_with_http_info(
|
|
6955
|
+
self,
|
|
6956
|
+
sandbox_id: StrictStr,
|
|
6957
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
6958
|
+
_request_timeout: Union[
|
|
6959
|
+
None,
|
|
6960
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6961
|
+
Tuple[
|
|
6962
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6963
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6964
|
+
]
|
|
6965
|
+
] = None,
|
|
6966
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6967
|
+
_content_type: Optional[StrictStr] = None,
|
|
6968
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6969
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6970
|
+
) -> ApiResponse[WorkDirResponse]:
|
|
6971
|
+
"""Get sandbox work-dir
|
|
6972
|
+
|
|
6973
|
+
|
|
6974
|
+
:param sandbox_id: (required)
|
|
6975
|
+
:type sandbox_id: str
|
|
6976
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
6977
|
+
:type x_daytona_organization_id: str
|
|
6978
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6979
|
+
number provided, it will be total request
|
|
6980
|
+
timeout. It can also be a pair (tuple) of
|
|
6981
|
+
(connection, read) timeouts.
|
|
6982
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6983
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6984
|
+
request; this effectively ignores the
|
|
6985
|
+
authentication in the spec for a single request.
|
|
6986
|
+
:type _request_auth: dict, optional
|
|
6987
|
+
:param _content_type: force content-type for the request.
|
|
6988
|
+
:type _content_type: str, Optional
|
|
6989
|
+
:param _headers: set to override the headers for a single
|
|
6990
|
+
request; this effectively ignores the headers
|
|
6991
|
+
in the spec for a single request.
|
|
6992
|
+
:type _headers: dict, optional
|
|
6993
|
+
:param _host_index: set to override the host_index for a single
|
|
6994
|
+
request; this effectively ignores the host_index
|
|
6995
|
+
in the spec for a single request.
|
|
6996
|
+
:type _host_index: int, optional
|
|
6997
|
+
:return: Returns the result object.
|
|
6998
|
+
""" # noqa: E501
|
|
6999
|
+
|
|
7000
|
+
_param = self._get_work_dir_serialize(
|
|
7001
|
+
sandbox_id=sandbox_id,
|
|
7002
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
7003
|
+
_request_auth=_request_auth,
|
|
7004
|
+
_content_type=_content_type,
|
|
7005
|
+
_headers=_headers,
|
|
7006
|
+
_host_index=_host_index
|
|
7007
|
+
)
|
|
7008
|
+
|
|
7009
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
7010
|
+
'200': "WorkDirResponse",
|
|
7011
|
+
}
|
|
7012
|
+
response_data = self.api_client.call_api(
|
|
7013
|
+
*_param,
|
|
7014
|
+
_request_timeout=_request_timeout
|
|
7015
|
+
)
|
|
6462
7016
|
response_data.read()
|
|
6463
7017
|
return self.api_client.response_deserialize(
|
|
6464
7018
|
response_data=response_data,
|
|
@@ -6467,7 +7021,7 @@ class ToolboxApi:
|
|
|
6467
7021
|
|
|
6468
7022
|
|
|
6469
7023
|
@validate_call
|
|
6470
|
-
def
|
|
7024
|
+
def get_work_dir_without_preload_content(
|
|
6471
7025
|
self,
|
|
6472
7026
|
sandbox_id: StrictStr,
|
|
6473
7027
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
@@ -6484,9 +7038,8 @@ class ToolboxApi:
|
|
|
6484
7038
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6485
7039
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6486
7040
|
) -> RESTResponseType:
|
|
6487
|
-
"""Get
|
|
7041
|
+
"""Get sandbox work-dir
|
|
6488
7042
|
|
|
6489
|
-
Get list of open windows
|
|
6490
7043
|
|
|
6491
7044
|
:param sandbox_id: (required)
|
|
6492
7045
|
:type sandbox_id: str
|
|
@@ -6514,7 +7067,7 @@ class ToolboxApi:
|
|
|
6514
7067
|
:return: Returns the result object.
|
|
6515
7068
|
""" # noqa: E501
|
|
6516
7069
|
|
|
6517
|
-
_param = self.
|
|
7070
|
+
_param = self._get_work_dir_serialize(
|
|
6518
7071
|
sandbox_id=sandbox_id,
|
|
6519
7072
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
6520
7073
|
_request_auth=_request_auth,
|
|
@@ -6524,7 +7077,7 @@ class ToolboxApi:
|
|
|
6524
7077
|
)
|
|
6525
7078
|
|
|
6526
7079
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
6527
|
-
'200': "
|
|
7080
|
+
'200': "WorkDirResponse",
|
|
6528
7081
|
}
|
|
6529
7082
|
response_data = self.api_client.call_api(
|
|
6530
7083
|
*_param,
|
|
@@ -6533,7 +7086,7 @@ class ToolboxApi:
|
|
|
6533
7086
|
return response_data.response
|
|
6534
7087
|
|
|
6535
7088
|
|
|
6536
|
-
def
|
|
7089
|
+
def _get_work_dir_serialize(
|
|
6537
7090
|
self,
|
|
6538
7091
|
sandbox_id,
|
|
6539
7092
|
x_daytona_organization_id,
|
|
@@ -6585,7 +7138,7 @@ class ToolboxApi:
|
|
|
6585
7138
|
|
|
6586
7139
|
return self.api_client.param_serialize(
|
|
6587
7140
|
method='GET',
|
|
6588
|
-
resource_path='/toolbox/{sandboxId}/toolbox/
|
|
7141
|
+
resource_path='/toolbox/{sandboxId}/toolbox/work-dir',
|
|
6589
7142
|
path_params=_path_params,
|
|
6590
7143
|
query_params=_query_params,
|
|
6591
7144
|
header_params=_header_params,
|