daytona_api_client 0.27.0__py3-none-any.whl → 0.28.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 +2 -0
- daytona_api_client/api/toolbox_api.py +567 -14
- daytona_api_client/models/__init__.py +2 -0
- daytona_api_client/models/user_home_dir_response.py +101 -0
- daytona_api_client/models/work_dir_response.py +101 -0
- daytona_api_client/models/workdir_response.py +101 -0
- {daytona_api_client-0.27.0.dist-info → daytona_api_client-0.28.0rc1.dist-info}/METADATA +1 -1
- {daytona_api_client-0.27.0.dist-info → daytona_api_client-0.28.0rc1.dist-info}/RECORD +11 -8
- {daytona_api_client-0.27.0.dist-info → daytona_api_client-0.28.0rc1.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.27.0.dist-info → daytona_api_client-0.28.0rc1.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client-0.27.0.dist-info → daytona_api_client-0.28.0rc1.dist-info}/top_level.txt +0 -0
daytona_api_client/__init__.py
CHANGED
|
@@ -162,6 +162,7 @@ from daytona_api_client.models.update_organization_member_role import UpdateOrga
|
|
|
162
162
|
from daytona_api_client.models.update_organization_quota import UpdateOrganizationQuota
|
|
163
163
|
from daytona_api_client.models.update_organization_role import UpdateOrganizationRole
|
|
164
164
|
from daytona_api_client.models.user import User
|
|
165
|
+
from daytona_api_client.models.user_home_dir_response import UserHomeDirResponse
|
|
165
166
|
from daytona_api_client.models.user_public_key import UserPublicKey
|
|
166
167
|
from daytona_api_client.models.volume_dto import VolumeDto
|
|
167
168
|
from daytona_api_client.models.volume_state import VolumeState
|
|
@@ -169,4 +170,5 @@ from daytona_api_client.models.webhook_app_portal_access import WebhookAppPortal
|
|
|
169
170
|
from daytona_api_client.models.webhook_controller_get_status200_response import WebhookControllerGetStatus200Response
|
|
170
171
|
from daytona_api_client.models.webhook_initialization_status import WebhookInitializationStatus
|
|
171
172
|
from daytona_api_client.models.windows_response import WindowsResponse
|
|
173
|
+
from daytona_api_client.models.work_dir_response import WorkDirResponse
|
|
172
174
|
from daytona_api_client.models.workspace import Workspace
|
|
@@ -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
|
|
@@ -5128,7 +5130,7 @@ class ToolboxApi:
|
|
|
5128
5130
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5129
5131
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5130
5132
|
) -> ProjectDirResponse:
|
|
5131
|
-
"""Get sandbox project dir
|
|
5133
|
+
"""(Deprecated) Get sandbox project dir
|
|
5132
5134
|
|
|
5133
5135
|
|
|
5134
5136
|
:param sandbox_id: (required)
|
|
@@ -5156,6 +5158,7 @@ class ToolboxApi:
|
|
|
5156
5158
|
:type _host_index: int, optional
|
|
5157
5159
|
:return: Returns the result object.
|
|
5158
5160
|
""" # noqa: E501
|
|
5161
|
+
warnings.warn("GET /toolbox/{sandboxId}/toolbox/project-dir is deprecated.", DeprecationWarning)
|
|
5159
5162
|
|
|
5160
5163
|
_param = self._get_project_dir_serialize(
|
|
5161
5164
|
sandbox_id=sandbox_id,
|
|
@@ -5198,7 +5201,7 @@ class ToolboxApi:
|
|
|
5198
5201
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5199
5202
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5200
5203
|
) -> ApiResponse[ProjectDirResponse]:
|
|
5201
|
-
"""Get sandbox project dir
|
|
5204
|
+
"""(Deprecated) Get sandbox project dir
|
|
5202
5205
|
|
|
5203
5206
|
|
|
5204
5207
|
:param sandbox_id: (required)
|
|
@@ -5226,6 +5229,7 @@ class ToolboxApi:
|
|
|
5226
5229
|
:type _host_index: int, optional
|
|
5227
5230
|
:return: Returns the result object.
|
|
5228
5231
|
""" # noqa: E501
|
|
5232
|
+
warnings.warn("GET /toolbox/{sandboxId}/toolbox/project-dir is deprecated.", DeprecationWarning)
|
|
5229
5233
|
|
|
5230
5234
|
_param = self._get_project_dir_serialize(
|
|
5231
5235
|
sandbox_id=sandbox_id,
|
|
@@ -5268,7 +5272,7 @@ class ToolboxApi:
|
|
|
5268
5272
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5269
5273
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5270
5274
|
) -> RESTResponseType:
|
|
5271
|
-
"""Get sandbox project dir
|
|
5275
|
+
"""(Deprecated) Get sandbox project dir
|
|
5272
5276
|
|
|
5273
5277
|
|
|
5274
5278
|
:param sandbox_id: (required)
|
|
@@ -5296,6 +5300,7 @@ class ToolboxApi:
|
|
|
5296
5300
|
:type _host_index: int, optional
|
|
5297
5301
|
:return: Returns the result object.
|
|
5298
5302
|
""" # noqa: E501
|
|
5303
|
+
warnings.warn("GET /toolbox/{sandboxId}/toolbox/project-dir is deprecated.", DeprecationWarning)
|
|
5299
5304
|
|
|
5300
5305
|
_param = self._get_project_dir_serialize(
|
|
5301
5306
|
sandbox_id=sandbox_id,
|
|
@@ -6307,6 +6312,280 @@ class ToolboxApi:
|
|
|
6307
6312
|
|
|
6308
6313
|
|
|
6309
6314
|
|
|
6315
|
+
@validate_call
|
|
6316
|
+
def get_user_home_dir(
|
|
6317
|
+
self,
|
|
6318
|
+
sandbox_id: StrictStr,
|
|
6319
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
6320
|
+
_request_timeout: Union[
|
|
6321
|
+
None,
|
|
6322
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6323
|
+
Tuple[
|
|
6324
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6325
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6326
|
+
]
|
|
6327
|
+
] = None,
|
|
6328
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6329
|
+
_content_type: Optional[StrictStr] = None,
|
|
6330
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6331
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6332
|
+
) -> UserHomeDirResponse:
|
|
6333
|
+
"""Get sandbox user home dir
|
|
6334
|
+
|
|
6335
|
+
|
|
6336
|
+
:param sandbox_id: (required)
|
|
6337
|
+
:type sandbox_id: str
|
|
6338
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
6339
|
+
:type x_daytona_organization_id: str
|
|
6340
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6341
|
+
number provided, it will be total request
|
|
6342
|
+
timeout. It can also be a pair (tuple) of
|
|
6343
|
+
(connection, read) timeouts.
|
|
6344
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6345
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6346
|
+
request; this effectively ignores the
|
|
6347
|
+
authentication in the spec for a single request.
|
|
6348
|
+
:type _request_auth: dict, optional
|
|
6349
|
+
:param _content_type: force content-type for the request.
|
|
6350
|
+
:type _content_type: str, Optional
|
|
6351
|
+
:param _headers: set to override the headers for a single
|
|
6352
|
+
request; this effectively ignores the headers
|
|
6353
|
+
in the spec for a single request.
|
|
6354
|
+
:type _headers: dict, optional
|
|
6355
|
+
:param _host_index: set to override the host_index for a single
|
|
6356
|
+
request; this effectively ignores the host_index
|
|
6357
|
+
in the spec for a single request.
|
|
6358
|
+
:type _host_index: int, optional
|
|
6359
|
+
:return: Returns the result object.
|
|
6360
|
+
""" # noqa: E501
|
|
6361
|
+
|
|
6362
|
+
_param = self._get_user_home_dir_serialize(
|
|
6363
|
+
sandbox_id=sandbox_id,
|
|
6364
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
6365
|
+
_request_auth=_request_auth,
|
|
6366
|
+
_content_type=_content_type,
|
|
6367
|
+
_headers=_headers,
|
|
6368
|
+
_host_index=_host_index
|
|
6369
|
+
)
|
|
6370
|
+
|
|
6371
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
6372
|
+
'200': "UserHomeDirResponse",
|
|
6373
|
+
}
|
|
6374
|
+
response_data = self.api_client.call_api(
|
|
6375
|
+
*_param,
|
|
6376
|
+
_request_timeout=_request_timeout
|
|
6377
|
+
)
|
|
6378
|
+
response_data.read()
|
|
6379
|
+
return self.api_client.response_deserialize(
|
|
6380
|
+
response_data=response_data,
|
|
6381
|
+
response_types_map=_response_types_map,
|
|
6382
|
+
).data
|
|
6383
|
+
|
|
6384
|
+
|
|
6385
|
+
@validate_call
|
|
6386
|
+
def get_user_home_dir_with_http_info(
|
|
6387
|
+
self,
|
|
6388
|
+
sandbox_id: StrictStr,
|
|
6389
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
6390
|
+
_request_timeout: Union[
|
|
6391
|
+
None,
|
|
6392
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6393
|
+
Tuple[
|
|
6394
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6395
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6396
|
+
]
|
|
6397
|
+
] = None,
|
|
6398
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6399
|
+
_content_type: Optional[StrictStr] = None,
|
|
6400
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6401
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6402
|
+
) -> ApiResponse[UserHomeDirResponse]:
|
|
6403
|
+
"""Get sandbox user home dir
|
|
6404
|
+
|
|
6405
|
+
|
|
6406
|
+
:param sandbox_id: (required)
|
|
6407
|
+
:type sandbox_id: str
|
|
6408
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
6409
|
+
:type x_daytona_organization_id: str
|
|
6410
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6411
|
+
number provided, it will be total request
|
|
6412
|
+
timeout. It can also be a pair (tuple) of
|
|
6413
|
+
(connection, read) timeouts.
|
|
6414
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6415
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6416
|
+
request; this effectively ignores the
|
|
6417
|
+
authentication in the spec for a single request.
|
|
6418
|
+
:type _request_auth: dict, optional
|
|
6419
|
+
:param _content_type: force content-type for the request.
|
|
6420
|
+
:type _content_type: str, Optional
|
|
6421
|
+
:param _headers: set to override the headers for a single
|
|
6422
|
+
request; this effectively ignores the headers
|
|
6423
|
+
in the spec for a single request.
|
|
6424
|
+
:type _headers: dict, optional
|
|
6425
|
+
:param _host_index: set to override the host_index for a single
|
|
6426
|
+
request; this effectively ignores the host_index
|
|
6427
|
+
in the spec for a single request.
|
|
6428
|
+
:type _host_index: int, optional
|
|
6429
|
+
:return: Returns the result object.
|
|
6430
|
+
""" # noqa: E501
|
|
6431
|
+
|
|
6432
|
+
_param = self._get_user_home_dir_serialize(
|
|
6433
|
+
sandbox_id=sandbox_id,
|
|
6434
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
6435
|
+
_request_auth=_request_auth,
|
|
6436
|
+
_content_type=_content_type,
|
|
6437
|
+
_headers=_headers,
|
|
6438
|
+
_host_index=_host_index
|
|
6439
|
+
)
|
|
6440
|
+
|
|
6441
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
6442
|
+
'200': "UserHomeDirResponse",
|
|
6443
|
+
}
|
|
6444
|
+
response_data = self.api_client.call_api(
|
|
6445
|
+
*_param,
|
|
6446
|
+
_request_timeout=_request_timeout
|
|
6447
|
+
)
|
|
6448
|
+
response_data.read()
|
|
6449
|
+
return self.api_client.response_deserialize(
|
|
6450
|
+
response_data=response_data,
|
|
6451
|
+
response_types_map=_response_types_map,
|
|
6452
|
+
)
|
|
6453
|
+
|
|
6454
|
+
|
|
6455
|
+
@validate_call
|
|
6456
|
+
def get_user_home_dir_without_preload_content(
|
|
6457
|
+
self,
|
|
6458
|
+
sandbox_id: StrictStr,
|
|
6459
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
6460
|
+
_request_timeout: Union[
|
|
6461
|
+
None,
|
|
6462
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6463
|
+
Tuple[
|
|
6464
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6465
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6466
|
+
]
|
|
6467
|
+
] = None,
|
|
6468
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6469
|
+
_content_type: Optional[StrictStr] = None,
|
|
6470
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6471
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6472
|
+
) -> RESTResponseType:
|
|
6473
|
+
"""Get sandbox user home dir
|
|
6474
|
+
|
|
6475
|
+
|
|
6476
|
+
:param sandbox_id: (required)
|
|
6477
|
+
:type sandbox_id: str
|
|
6478
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
6479
|
+
:type x_daytona_organization_id: str
|
|
6480
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6481
|
+
number provided, it will be total request
|
|
6482
|
+
timeout. It can also be a pair (tuple) of
|
|
6483
|
+
(connection, read) timeouts.
|
|
6484
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6485
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6486
|
+
request; this effectively ignores the
|
|
6487
|
+
authentication in the spec for a single request.
|
|
6488
|
+
:type _request_auth: dict, optional
|
|
6489
|
+
:param _content_type: force content-type for the request.
|
|
6490
|
+
:type _content_type: str, Optional
|
|
6491
|
+
:param _headers: set to override the headers for a single
|
|
6492
|
+
request; this effectively ignores the headers
|
|
6493
|
+
in the spec for a single request.
|
|
6494
|
+
:type _headers: dict, optional
|
|
6495
|
+
:param _host_index: set to override the host_index for a single
|
|
6496
|
+
request; this effectively ignores the host_index
|
|
6497
|
+
in the spec for a single request.
|
|
6498
|
+
:type _host_index: int, optional
|
|
6499
|
+
:return: Returns the result object.
|
|
6500
|
+
""" # noqa: E501
|
|
6501
|
+
|
|
6502
|
+
_param = self._get_user_home_dir_serialize(
|
|
6503
|
+
sandbox_id=sandbox_id,
|
|
6504
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
6505
|
+
_request_auth=_request_auth,
|
|
6506
|
+
_content_type=_content_type,
|
|
6507
|
+
_headers=_headers,
|
|
6508
|
+
_host_index=_host_index
|
|
6509
|
+
)
|
|
6510
|
+
|
|
6511
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
6512
|
+
'200': "UserHomeDirResponse",
|
|
6513
|
+
}
|
|
6514
|
+
response_data = self.api_client.call_api(
|
|
6515
|
+
*_param,
|
|
6516
|
+
_request_timeout=_request_timeout
|
|
6517
|
+
)
|
|
6518
|
+
return response_data.response
|
|
6519
|
+
|
|
6520
|
+
|
|
6521
|
+
def _get_user_home_dir_serialize(
|
|
6522
|
+
self,
|
|
6523
|
+
sandbox_id,
|
|
6524
|
+
x_daytona_organization_id,
|
|
6525
|
+
_request_auth,
|
|
6526
|
+
_content_type,
|
|
6527
|
+
_headers,
|
|
6528
|
+
_host_index,
|
|
6529
|
+
) -> RequestSerialized:
|
|
6530
|
+
|
|
6531
|
+
_host = None
|
|
6532
|
+
|
|
6533
|
+
_collection_formats: Dict[str, str] = {
|
|
6534
|
+
}
|
|
6535
|
+
|
|
6536
|
+
_path_params: Dict[str, str] = {}
|
|
6537
|
+
_query_params: List[Tuple[str, str]] = []
|
|
6538
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
6539
|
+
_form_params: List[Tuple[str, str]] = []
|
|
6540
|
+
_files: Dict[
|
|
6541
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
6542
|
+
] = {}
|
|
6543
|
+
_body_params: Optional[bytes] = None
|
|
6544
|
+
|
|
6545
|
+
# process the path parameters
|
|
6546
|
+
if sandbox_id is not None:
|
|
6547
|
+
_path_params['sandboxId'] = sandbox_id
|
|
6548
|
+
# process the query parameters
|
|
6549
|
+
# process the header parameters
|
|
6550
|
+
if x_daytona_organization_id is not None:
|
|
6551
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
6552
|
+
# process the form parameters
|
|
6553
|
+
# process the body parameter
|
|
6554
|
+
|
|
6555
|
+
|
|
6556
|
+
# set the HTTP header `Accept`
|
|
6557
|
+
if 'Accept' not in _header_params:
|
|
6558
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
6559
|
+
[
|
|
6560
|
+
'application/json'
|
|
6561
|
+
]
|
|
6562
|
+
)
|
|
6563
|
+
|
|
6564
|
+
|
|
6565
|
+
# authentication setting
|
|
6566
|
+
_auth_settings: List[str] = [
|
|
6567
|
+
'bearer',
|
|
6568
|
+
'oauth2'
|
|
6569
|
+
]
|
|
6570
|
+
|
|
6571
|
+
return self.api_client.param_serialize(
|
|
6572
|
+
method='GET',
|
|
6573
|
+
resource_path='/toolbox/{sandboxId}/toolbox/user-home-dir',
|
|
6574
|
+
path_params=_path_params,
|
|
6575
|
+
query_params=_query_params,
|
|
6576
|
+
header_params=_header_params,
|
|
6577
|
+
body=_body_params,
|
|
6578
|
+
post_params=_form_params,
|
|
6579
|
+
files=_files,
|
|
6580
|
+
auth_settings=_auth_settings,
|
|
6581
|
+
collection_formats=_collection_formats,
|
|
6582
|
+
_host=_host,
|
|
6583
|
+
_request_auth=_request_auth
|
|
6584
|
+
)
|
|
6585
|
+
|
|
6586
|
+
|
|
6587
|
+
|
|
6588
|
+
|
|
6310
6589
|
@validate_call
|
|
6311
6590
|
def get_windows(
|
|
6312
6591
|
self,
|
|
@@ -6324,7 +6603,78 @@ class ToolboxApi:
|
|
|
6324
6603
|
_content_type: Optional[StrictStr] = None,
|
|
6325
6604
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6326
6605
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6327
|
-
) -> WindowsResponse:
|
|
6606
|
+
) -> WindowsResponse:
|
|
6607
|
+
"""Get windows
|
|
6608
|
+
|
|
6609
|
+
Get list of open windows
|
|
6610
|
+
|
|
6611
|
+
:param sandbox_id: (required)
|
|
6612
|
+
:type sandbox_id: str
|
|
6613
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
6614
|
+
:type x_daytona_organization_id: str
|
|
6615
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6616
|
+
number provided, it will be total request
|
|
6617
|
+
timeout. It can also be a pair (tuple) of
|
|
6618
|
+
(connection, read) timeouts.
|
|
6619
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6620
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6621
|
+
request; this effectively ignores the
|
|
6622
|
+
authentication in the spec for a single request.
|
|
6623
|
+
:type _request_auth: dict, optional
|
|
6624
|
+
:param _content_type: force content-type for the request.
|
|
6625
|
+
:type _content_type: str, Optional
|
|
6626
|
+
:param _headers: set to override the headers for a single
|
|
6627
|
+
request; this effectively ignores the headers
|
|
6628
|
+
in the spec for a single request.
|
|
6629
|
+
:type _headers: dict, optional
|
|
6630
|
+
:param _host_index: set to override the host_index for a single
|
|
6631
|
+
request; this effectively ignores the host_index
|
|
6632
|
+
in the spec for a single request.
|
|
6633
|
+
:type _host_index: int, optional
|
|
6634
|
+
:return: Returns the result object.
|
|
6635
|
+
""" # noqa: E501
|
|
6636
|
+
|
|
6637
|
+
_param = self._get_windows_serialize(
|
|
6638
|
+
sandbox_id=sandbox_id,
|
|
6639
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
6640
|
+
_request_auth=_request_auth,
|
|
6641
|
+
_content_type=_content_type,
|
|
6642
|
+
_headers=_headers,
|
|
6643
|
+
_host_index=_host_index
|
|
6644
|
+
)
|
|
6645
|
+
|
|
6646
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
6647
|
+
'200': "WindowsResponse",
|
|
6648
|
+
}
|
|
6649
|
+
response_data = self.api_client.call_api(
|
|
6650
|
+
*_param,
|
|
6651
|
+
_request_timeout=_request_timeout
|
|
6652
|
+
)
|
|
6653
|
+
response_data.read()
|
|
6654
|
+
return self.api_client.response_deserialize(
|
|
6655
|
+
response_data=response_data,
|
|
6656
|
+
response_types_map=_response_types_map,
|
|
6657
|
+
).data
|
|
6658
|
+
|
|
6659
|
+
|
|
6660
|
+
@validate_call
|
|
6661
|
+
def get_windows_with_http_info(
|
|
6662
|
+
self,
|
|
6663
|
+
sandbox_id: StrictStr,
|
|
6664
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
6665
|
+
_request_timeout: Union[
|
|
6666
|
+
None,
|
|
6667
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6668
|
+
Tuple[
|
|
6669
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6670
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6671
|
+
]
|
|
6672
|
+
] = None,
|
|
6673
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6674
|
+
_content_type: Optional[StrictStr] = None,
|
|
6675
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6676
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6677
|
+
) -> ApiResponse[WindowsResponse]:
|
|
6328
6678
|
"""Get windows
|
|
6329
6679
|
|
|
6330
6680
|
Get list of open windows
|
|
@@ -6375,11 +6725,11 @@ class ToolboxApi:
|
|
|
6375
6725
|
return self.api_client.response_deserialize(
|
|
6376
6726
|
response_data=response_data,
|
|
6377
6727
|
response_types_map=_response_types_map,
|
|
6378
|
-
)
|
|
6728
|
+
)
|
|
6379
6729
|
|
|
6380
6730
|
|
|
6381
6731
|
@validate_call
|
|
6382
|
-
def
|
|
6732
|
+
def get_windows_without_preload_content(
|
|
6383
6733
|
self,
|
|
6384
6734
|
sandbox_id: StrictStr,
|
|
6385
6735
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
@@ -6395,7 +6745,7 @@ class ToolboxApi:
|
|
|
6395
6745
|
_content_type: Optional[StrictStr] = None,
|
|
6396
6746
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6397
6747
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6398
|
-
) ->
|
|
6748
|
+
) -> RESTResponseType:
|
|
6399
6749
|
"""Get windows
|
|
6400
6750
|
|
|
6401
6751
|
Get list of open windows
|
|
@@ -6442,6 +6792,210 @@ class ToolboxApi:
|
|
|
6442
6792
|
*_param,
|
|
6443
6793
|
_request_timeout=_request_timeout
|
|
6444
6794
|
)
|
|
6795
|
+
return response_data.response
|
|
6796
|
+
|
|
6797
|
+
|
|
6798
|
+
def _get_windows_serialize(
|
|
6799
|
+
self,
|
|
6800
|
+
sandbox_id,
|
|
6801
|
+
x_daytona_organization_id,
|
|
6802
|
+
_request_auth,
|
|
6803
|
+
_content_type,
|
|
6804
|
+
_headers,
|
|
6805
|
+
_host_index,
|
|
6806
|
+
) -> RequestSerialized:
|
|
6807
|
+
|
|
6808
|
+
_host = None
|
|
6809
|
+
|
|
6810
|
+
_collection_formats: Dict[str, str] = {
|
|
6811
|
+
}
|
|
6812
|
+
|
|
6813
|
+
_path_params: Dict[str, str] = {}
|
|
6814
|
+
_query_params: List[Tuple[str, str]] = []
|
|
6815
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
6816
|
+
_form_params: List[Tuple[str, str]] = []
|
|
6817
|
+
_files: Dict[
|
|
6818
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
6819
|
+
] = {}
|
|
6820
|
+
_body_params: Optional[bytes] = None
|
|
6821
|
+
|
|
6822
|
+
# process the path parameters
|
|
6823
|
+
if sandbox_id is not None:
|
|
6824
|
+
_path_params['sandboxId'] = sandbox_id
|
|
6825
|
+
# process the query parameters
|
|
6826
|
+
# process the header parameters
|
|
6827
|
+
if x_daytona_organization_id is not None:
|
|
6828
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
6829
|
+
# process the form parameters
|
|
6830
|
+
# process the body parameter
|
|
6831
|
+
|
|
6832
|
+
|
|
6833
|
+
# set the HTTP header `Accept`
|
|
6834
|
+
if 'Accept' not in _header_params:
|
|
6835
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
6836
|
+
[
|
|
6837
|
+
'application/json'
|
|
6838
|
+
]
|
|
6839
|
+
)
|
|
6840
|
+
|
|
6841
|
+
|
|
6842
|
+
# authentication setting
|
|
6843
|
+
_auth_settings: List[str] = [
|
|
6844
|
+
'bearer',
|
|
6845
|
+
'oauth2'
|
|
6846
|
+
]
|
|
6847
|
+
|
|
6848
|
+
return self.api_client.param_serialize(
|
|
6849
|
+
method='GET',
|
|
6850
|
+
resource_path='/toolbox/{sandboxId}/toolbox/computeruse/display/windows',
|
|
6851
|
+
path_params=_path_params,
|
|
6852
|
+
query_params=_query_params,
|
|
6853
|
+
header_params=_header_params,
|
|
6854
|
+
body=_body_params,
|
|
6855
|
+
post_params=_form_params,
|
|
6856
|
+
files=_files,
|
|
6857
|
+
auth_settings=_auth_settings,
|
|
6858
|
+
collection_formats=_collection_formats,
|
|
6859
|
+
_host=_host,
|
|
6860
|
+
_request_auth=_request_auth
|
|
6861
|
+
)
|
|
6862
|
+
|
|
6863
|
+
|
|
6864
|
+
|
|
6865
|
+
|
|
6866
|
+
@validate_call
|
|
6867
|
+
def get_work_dir(
|
|
6868
|
+
self,
|
|
6869
|
+
sandbox_id: StrictStr,
|
|
6870
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
6871
|
+
_request_timeout: Union[
|
|
6872
|
+
None,
|
|
6873
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6874
|
+
Tuple[
|
|
6875
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6876
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6877
|
+
]
|
|
6878
|
+
] = None,
|
|
6879
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6880
|
+
_content_type: Optional[StrictStr] = None,
|
|
6881
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6882
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6883
|
+
) -> WorkDirResponse:
|
|
6884
|
+
"""Get sandbox work-dir
|
|
6885
|
+
|
|
6886
|
+
|
|
6887
|
+
:param sandbox_id: (required)
|
|
6888
|
+
:type sandbox_id: str
|
|
6889
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
6890
|
+
:type x_daytona_organization_id: str
|
|
6891
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6892
|
+
number provided, it will be total request
|
|
6893
|
+
timeout. It can also be a pair (tuple) of
|
|
6894
|
+
(connection, read) timeouts.
|
|
6895
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6896
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6897
|
+
request; this effectively ignores the
|
|
6898
|
+
authentication in the spec for a single request.
|
|
6899
|
+
:type _request_auth: dict, optional
|
|
6900
|
+
:param _content_type: force content-type for the request.
|
|
6901
|
+
:type _content_type: str, Optional
|
|
6902
|
+
:param _headers: set to override the headers for a single
|
|
6903
|
+
request; this effectively ignores the headers
|
|
6904
|
+
in the spec for a single request.
|
|
6905
|
+
:type _headers: dict, optional
|
|
6906
|
+
:param _host_index: set to override the host_index for a single
|
|
6907
|
+
request; this effectively ignores the host_index
|
|
6908
|
+
in the spec for a single request.
|
|
6909
|
+
:type _host_index: int, optional
|
|
6910
|
+
:return: Returns the result object.
|
|
6911
|
+
""" # noqa: E501
|
|
6912
|
+
|
|
6913
|
+
_param = self._get_work_dir_serialize(
|
|
6914
|
+
sandbox_id=sandbox_id,
|
|
6915
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
6916
|
+
_request_auth=_request_auth,
|
|
6917
|
+
_content_type=_content_type,
|
|
6918
|
+
_headers=_headers,
|
|
6919
|
+
_host_index=_host_index
|
|
6920
|
+
)
|
|
6921
|
+
|
|
6922
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
6923
|
+
'200': "WorkDirResponse",
|
|
6924
|
+
}
|
|
6925
|
+
response_data = self.api_client.call_api(
|
|
6926
|
+
*_param,
|
|
6927
|
+
_request_timeout=_request_timeout
|
|
6928
|
+
)
|
|
6929
|
+
response_data.read()
|
|
6930
|
+
return self.api_client.response_deserialize(
|
|
6931
|
+
response_data=response_data,
|
|
6932
|
+
response_types_map=_response_types_map,
|
|
6933
|
+
).data
|
|
6934
|
+
|
|
6935
|
+
|
|
6936
|
+
@validate_call
|
|
6937
|
+
def get_work_dir_with_http_info(
|
|
6938
|
+
self,
|
|
6939
|
+
sandbox_id: StrictStr,
|
|
6940
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
6941
|
+
_request_timeout: Union[
|
|
6942
|
+
None,
|
|
6943
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6944
|
+
Tuple[
|
|
6945
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6946
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6947
|
+
]
|
|
6948
|
+
] = None,
|
|
6949
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6950
|
+
_content_type: Optional[StrictStr] = None,
|
|
6951
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6952
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6953
|
+
) -> ApiResponse[WorkDirResponse]:
|
|
6954
|
+
"""Get sandbox work-dir
|
|
6955
|
+
|
|
6956
|
+
|
|
6957
|
+
:param sandbox_id: (required)
|
|
6958
|
+
:type sandbox_id: str
|
|
6959
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
6960
|
+
:type x_daytona_organization_id: str
|
|
6961
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6962
|
+
number provided, it will be total request
|
|
6963
|
+
timeout. It can also be a pair (tuple) of
|
|
6964
|
+
(connection, read) timeouts.
|
|
6965
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6966
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6967
|
+
request; this effectively ignores the
|
|
6968
|
+
authentication in the spec for a single request.
|
|
6969
|
+
:type _request_auth: dict, optional
|
|
6970
|
+
:param _content_type: force content-type for the request.
|
|
6971
|
+
:type _content_type: str, Optional
|
|
6972
|
+
:param _headers: set to override the headers for a single
|
|
6973
|
+
request; this effectively ignores the headers
|
|
6974
|
+
in the spec for a single request.
|
|
6975
|
+
:type _headers: dict, optional
|
|
6976
|
+
:param _host_index: set to override the host_index for a single
|
|
6977
|
+
request; this effectively ignores the host_index
|
|
6978
|
+
in the spec for a single request.
|
|
6979
|
+
:type _host_index: int, optional
|
|
6980
|
+
:return: Returns the result object.
|
|
6981
|
+
""" # noqa: E501
|
|
6982
|
+
|
|
6983
|
+
_param = self._get_work_dir_serialize(
|
|
6984
|
+
sandbox_id=sandbox_id,
|
|
6985
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
6986
|
+
_request_auth=_request_auth,
|
|
6987
|
+
_content_type=_content_type,
|
|
6988
|
+
_headers=_headers,
|
|
6989
|
+
_host_index=_host_index
|
|
6990
|
+
)
|
|
6991
|
+
|
|
6992
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
6993
|
+
'200': "WorkDirResponse",
|
|
6994
|
+
}
|
|
6995
|
+
response_data = self.api_client.call_api(
|
|
6996
|
+
*_param,
|
|
6997
|
+
_request_timeout=_request_timeout
|
|
6998
|
+
)
|
|
6445
6999
|
response_data.read()
|
|
6446
7000
|
return self.api_client.response_deserialize(
|
|
6447
7001
|
response_data=response_data,
|
|
@@ -6450,7 +7004,7 @@ class ToolboxApi:
|
|
|
6450
7004
|
|
|
6451
7005
|
|
|
6452
7006
|
@validate_call
|
|
6453
|
-
def
|
|
7007
|
+
def get_work_dir_without_preload_content(
|
|
6454
7008
|
self,
|
|
6455
7009
|
sandbox_id: StrictStr,
|
|
6456
7010
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
@@ -6467,9 +7021,8 @@ class ToolboxApi:
|
|
|
6467
7021
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6468
7022
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6469
7023
|
) -> RESTResponseType:
|
|
6470
|
-
"""Get
|
|
7024
|
+
"""Get sandbox work-dir
|
|
6471
7025
|
|
|
6472
|
-
Get list of open windows
|
|
6473
7026
|
|
|
6474
7027
|
:param sandbox_id: (required)
|
|
6475
7028
|
:type sandbox_id: str
|
|
@@ -6497,7 +7050,7 @@ class ToolboxApi:
|
|
|
6497
7050
|
:return: Returns the result object.
|
|
6498
7051
|
""" # noqa: E501
|
|
6499
7052
|
|
|
6500
|
-
_param = self.
|
|
7053
|
+
_param = self._get_work_dir_serialize(
|
|
6501
7054
|
sandbox_id=sandbox_id,
|
|
6502
7055
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
6503
7056
|
_request_auth=_request_auth,
|
|
@@ -6507,7 +7060,7 @@ class ToolboxApi:
|
|
|
6507
7060
|
)
|
|
6508
7061
|
|
|
6509
7062
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
6510
|
-
'200': "
|
|
7063
|
+
'200': "WorkDirResponse",
|
|
6511
7064
|
}
|
|
6512
7065
|
response_data = self.api_client.call_api(
|
|
6513
7066
|
*_param,
|
|
@@ -6516,7 +7069,7 @@ class ToolboxApi:
|
|
|
6516
7069
|
return response_data.response
|
|
6517
7070
|
|
|
6518
7071
|
|
|
6519
|
-
def
|
|
7072
|
+
def _get_work_dir_serialize(
|
|
6520
7073
|
self,
|
|
6521
7074
|
sandbox_id,
|
|
6522
7075
|
x_daytona_organization_id,
|
|
@@ -6568,7 +7121,7 @@ class ToolboxApi:
|
|
|
6568
7121
|
|
|
6569
7122
|
return self.api_client.param_serialize(
|
|
6570
7123
|
method='GET',
|
|
6571
|
-
resource_path='/toolbox/{sandboxId}/toolbox/
|
|
7124
|
+
resource_path='/toolbox/{sandboxId}/toolbox/work-dir',
|
|
6572
7125
|
path_params=_path_params,
|
|
6573
7126
|
query_params=_query_params,
|
|
6574
7127
|
header_params=_header_params,
|
|
@@ -131,6 +131,7 @@ from daytona_api_client.models.update_organization_member_role import UpdateOrga
|
|
|
131
131
|
from daytona_api_client.models.update_organization_quota import UpdateOrganizationQuota
|
|
132
132
|
from daytona_api_client.models.update_organization_role import UpdateOrganizationRole
|
|
133
133
|
from daytona_api_client.models.user import User
|
|
134
|
+
from daytona_api_client.models.user_home_dir_response import UserHomeDirResponse
|
|
134
135
|
from daytona_api_client.models.user_public_key import UserPublicKey
|
|
135
136
|
from daytona_api_client.models.volume_dto import VolumeDto
|
|
136
137
|
from daytona_api_client.models.volume_state import VolumeState
|
|
@@ -138,4 +139,5 @@ from daytona_api_client.models.webhook_app_portal_access import WebhookAppPortal
|
|
|
138
139
|
from daytona_api_client.models.webhook_controller_get_status200_response import WebhookControllerGetStatus200Response
|
|
139
140
|
from daytona_api_client.models.webhook_initialization_status import WebhookInitializationStatus
|
|
140
141
|
from daytona_api_client.models.windows_response import WindowsResponse
|
|
142
|
+
from daytona_api_client.models.work_dir_response import WorkDirResponse
|
|
141
143
|
from daytona_api_client.models.workspace import Workspace
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class UserHomeDirResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
UserHomeDirResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
dir: Optional[StrictStr] = None
|
|
31
|
+
additional_properties: Dict[str, Any] = {}
|
|
32
|
+
__properties: ClassVar[List[str]] = ["dir"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of UserHomeDirResponse from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
"additional_properties",
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
# puts key-value pairs in additional_properties in the top level
|
|
76
|
+
if self.additional_properties is not None:
|
|
77
|
+
for _key, _value in self.additional_properties.items():
|
|
78
|
+
_dict[_key] = _value
|
|
79
|
+
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of UserHomeDirResponse from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"dir": obj.get("dir")
|
|
93
|
+
})
|
|
94
|
+
# store additional fields in additional_properties
|
|
95
|
+
for _key in obj.keys():
|
|
96
|
+
if _key not in cls.__properties:
|
|
97
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
98
|
+
|
|
99
|
+
return _obj
|
|
100
|
+
|
|
101
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class WorkDirResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
WorkDirResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
dir: Optional[StrictStr] = None
|
|
31
|
+
additional_properties: Dict[str, Any] = {}
|
|
32
|
+
__properties: ClassVar[List[str]] = ["dir"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of WorkDirResponse from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
"additional_properties",
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
# puts key-value pairs in additional_properties in the top level
|
|
76
|
+
if self.additional_properties is not None:
|
|
77
|
+
for _key, _value in self.additional_properties.items():
|
|
78
|
+
_dict[_key] = _value
|
|
79
|
+
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of WorkDirResponse from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"dir": obj.get("dir")
|
|
93
|
+
})
|
|
94
|
+
# store additional fields in additional_properties
|
|
95
|
+
for _key in obj.keys():
|
|
96
|
+
if _key not in cls.__properties:
|
|
97
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
98
|
+
|
|
99
|
+
return _obj
|
|
100
|
+
|
|
101
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class WorkdirResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
WorkdirResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
dir: Optional[StrictStr] = None
|
|
31
|
+
additional_properties: Dict[str, Any] = {}
|
|
32
|
+
__properties: ClassVar[List[str]] = ["dir"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of WorkdirResponse from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
"additional_properties",
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
# puts key-value pairs in additional_properties in the top level
|
|
76
|
+
if self.additional_properties is not None:
|
|
77
|
+
for _key, _value in self.additional_properties.items():
|
|
78
|
+
_dict[_key] = _value
|
|
79
|
+
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of WorkdirResponse from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"dir": obj.get("dir")
|
|
93
|
+
})
|
|
94
|
+
# store additional fields in additional_properties
|
|
95
|
+
for _key in obj.keys():
|
|
96
|
+
if _key not in cls.__properties:
|
|
97
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
98
|
+
|
|
99
|
+
return _obj
|
|
100
|
+
|
|
101
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
daytona_api_client/__init__.py,sha256=
|
|
1
|
+
daytona_api_client/__init__.py,sha256=Ko0xRwSWfxRWK3EBEYQ63i6HKvNGuKogtVhseklgw5Y,11323
|
|
2
2
|
daytona_api_client/api_client.py,sha256=9EKcRsveS2okE5kTbp212LVTY6LJATDZEqA8Rj77vXY,27455
|
|
3
3
|
daytona_api_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
4
|
daytona_api_client/configuration.py,sha256=Dz7AXjEZ4BCCCUoGQZLfXUTtuH1PUuo3KrlwLO5Dlsk,18241
|
|
@@ -17,12 +17,12 @@ daytona_api_client/api/preview_api.py,sha256=_cYR0xaBKtYBFUKIRezvR0d6swN7yKkmVkJ
|
|
|
17
17
|
daytona_api_client/api/runners_api.py,sha256=kl74Mg19G71Kcj9dNK9xeJCaZ2upk4z-DS7Ul70n-Ww,49018
|
|
18
18
|
daytona_api_client/api/sandbox_api.py,sha256=yr4s9iuEYpu2mspxJC4WfkVJMpAlEAa1NEI38IwW6R4,210810
|
|
19
19
|
daytona_api_client/api/snapshots_api.py,sha256=rt0h_XOyGay-JEaqw69-JqiJEq0GbG1U-MKJtg3Ez0c,103174
|
|
20
|
-
daytona_api_client/api/toolbox_api.py,sha256=
|
|
20
|
+
daytona_api_client/api/toolbox_api.py,sha256=V1jvHhdbonxzpQViZZgPX0MZ6RpeXZ7X08krogkkoFc,742679
|
|
21
21
|
daytona_api_client/api/users_api.py,sha256=KR4cw2mfRp06QV2b0UXXQ1Jcx59TyuS0c7yGRr2Sodk,86402
|
|
22
22
|
daytona_api_client/api/volumes_api.py,sha256=N9kxZzhfaZxC_YQ-Vi1QksoTIzqp_dFADywgQup1oSk,56613
|
|
23
23
|
daytona_api_client/api/webhooks_api.py,sha256=epxKIYqZfebDapzSvqUVlJct1KfVr_T3ZnAc9YyiZX8,69516
|
|
24
24
|
daytona_api_client/api/workspace_api.py,sha256=mjn4jlTtMbKfuqxcr9goo-01RJX-hFjVLT1rF8K5uKI,169328
|
|
25
|
-
daytona_api_client/models/__init__.py,sha256=
|
|
25
|
+
daytona_api_client/models/__init__.py,sha256=jzbYfYKXRWLQM93YgRcwkTp-yc4aap-KNOoPZ6Dl2hA,9828
|
|
26
26
|
daytona_api_client/models/account_provider.py,sha256=yKJ_dMGnxGalNYuVTmo4CoFHpj1PIssSE1rnUaQeOKY,3154
|
|
27
27
|
daytona_api_client/models/api_key_list.py,sha256=Q0NYG_KlqZgscz7WpkhTns6z1hYUaZH8yut8X40mQ1A,5166
|
|
28
28
|
daytona_api_client/models/api_key_response.py,sha256=XWqJdKTMp1w8uoUpmeKn0tKeXeImTJElnTvLunZGX5Y,4611
|
|
@@ -156,6 +156,7 @@ daytona_api_client/models/update_organization_member_role.py,sha256=-B8wsTJgQSkQ
|
|
|
156
156
|
daytona_api_client/models/update_organization_quota.py,sha256=qfwgYkEKBJHhksdhbC0_LZUt5fBBFehQdtfq5seFSGc,6830
|
|
157
157
|
daytona_api_client/models/update_organization_role.py,sha256=-Z8oRpO3ebQRtlzMaeYKyfyNiFARD76kGvY_9-mF4os,4069
|
|
158
158
|
daytona_api_client/models/user.py,sha256=sXLeH2Rivv_Jls4rGcv3ihfX9B7-4pCZqk_JrSGBGmI,4060
|
|
159
|
+
daytona_api_client/models/user_home_dir_response.py,sha256=Hw3BXi_AdWuJRQ7lzncLSnBKW1iulBMSFD5rP92aoY8,3063
|
|
159
160
|
daytona_api_client/models/user_public_key.py,sha256=Y0_O7Sq8NP3XzCdKJJj7iTavEY8ytcBAf0Q3qOnJhbQ,3150
|
|
160
161
|
daytona_api_client/models/volume_created_post_request.py,sha256=chleMJEqyLN_mdwd7UpmLLr1bRMQnZnb-UkYtyyDqDk,3653
|
|
161
162
|
daytona_api_client/models/volume_created_post_request_data.py,sha256=MEqGnebIYVqY4-CqWCZ6LUx7OdPQZprAeqMwY9-nCmE,4487
|
|
@@ -170,9 +171,11 @@ daytona_api_client/models/webhook_controller_get_initialization_status200_respon
|
|
|
170
171
|
daytona_api_client/models/webhook_controller_get_status200_response.py,sha256=aRWG6gX4340N2Xhv6F3_5xr29zcNxLE8k-I7E7PSqVE,3153
|
|
171
172
|
daytona_api_client/models/webhook_initialization_status.py,sha256=zmw2g68mZfYXNDGwvJmd5QewHJtJ5JsUUgwBrbMQ8Bw,4664
|
|
172
173
|
daytona_api_client/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2MjfhUlcEyawzwtnWnwGngsFs,3295
|
|
174
|
+
daytona_api_client/models/work_dir_response.py,sha256=1dndjWYnDSMDeLiY8pxQDX1viESoAGF_fegSiMx3i40,3047
|
|
175
|
+
daytona_api_client/models/workdir_response.py,sha256=geBhfQDR7LK0uPlmJF6Ple1eQMCzhSb4qK-9UfhqV7k,3047
|
|
173
176
|
daytona_api_client/models/workspace.py,sha256=uwAStXOLrVJzbxdTfPZokrcMr4Dp4ghgH8V5fy5r0gY,11488
|
|
174
|
-
daytona_api_client-0.
|
|
175
|
-
daytona_api_client-0.
|
|
176
|
-
daytona_api_client-0.
|
|
177
|
-
daytona_api_client-0.
|
|
178
|
-
daytona_api_client-0.
|
|
177
|
+
daytona_api_client-0.28.0rc1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
|
|
178
|
+
daytona_api_client-0.28.0rc1.dist-info/METADATA,sha256=Niyqr-YqbVtRhgxpli99hSzPElLHKsaayj_OPVVN0jA,621
|
|
179
|
+
daytona_api_client-0.28.0rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
180
|
+
daytona_api_client-0.28.0rc1.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
|
|
181
|
+
daytona_api_client-0.28.0rc1.dist-info/RECORD,,
|
|
File without changes
|
{daytona_api_client-0.27.0.dist-info → daytona_api_client-0.28.0rc1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{daytona_api_client-0.27.0.dist-info → daytona_api_client-0.28.0rc1.dist-info}/top_level.txt
RENAMED
|
File without changes
|