daytona_api_client 0.28.0rc1__py3-none-any.whl → 0.102.0rc2__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.

@@ -72,9 +72,7 @@ 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
76
75
  from daytona_api_client.models.windows_response import WindowsResponse
77
- from daytona_api_client.models.work_dir_response import WorkDirResponse
78
76
 
79
77
  from daytona_api_client.api_client import ApiClient, RequestSerialized
80
78
  from daytona_api_client.api_response import ApiResponse
@@ -1007,6 +1005,7 @@ class ToolboxApi:
1007
1005
  sandbox_id: StrictStr,
1008
1006
  path: StrictStr,
1009
1007
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1008
+ recursive: Optional[StrictBool] = None,
1010
1009
  _request_timeout: Union[
1011
1010
  None,
1012
1011
  Annotated[StrictFloat, Field(gt=0)],
@@ -1030,6 +1029,8 @@ class ToolboxApi:
1030
1029
  :type path: str
1031
1030
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1032
1031
  :type x_daytona_organization_id: str
1032
+ :param recursive:
1033
+ :type recursive: bool
1033
1034
  :param _request_timeout: timeout setting for this request. If one
1034
1035
  number provided, it will be total request
1035
1036
  timeout. It can also be a pair (tuple) of
@@ -1056,6 +1057,7 @@ class ToolboxApi:
1056
1057
  sandbox_id=sandbox_id,
1057
1058
  path=path,
1058
1059
  x_daytona_organization_id=x_daytona_organization_id,
1060
+ recursive=recursive,
1059
1061
  _request_auth=_request_auth,
1060
1062
  _content_type=_content_type,
1061
1063
  _headers=_headers,
@@ -1082,6 +1084,7 @@ class ToolboxApi:
1082
1084
  sandbox_id: StrictStr,
1083
1085
  path: StrictStr,
1084
1086
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1087
+ recursive: Optional[StrictBool] = None,
1085
1088
  _request_timeout: Union[
1086
1089
  None,
1087
1090
  Annotated[StrictFloat, Field(gt=0)],
@@ -1105,6 +1108,8 @@ class ToolboxApi:
1105
1108
  :type path: str
1106
1109
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1107
1110
  :type x_daytona_organization_id: str
1111
+ :param recursive:
1112
+ :type recursive: bool
1108
1113
  :param _request_timeout: timeout setting for this request. If one
1109
1114
  number provided, it will be total request
1110
1115
  timeout. It can also be a pair (tuple) of
@@ -1131,6 +1136,7 @@ class ToolboxApi:
1131
1136
  sandbox_id=sandbox_id,
1132
1137
  path=path,
1133
1138
  x_daytona_organization_id=x_daytona_organization_id,
1139
+ recursive=recursive,
1134
1140
  _request_auth=_request_auth,
1135
1141
  _content_type=_content_type,
1136
1142
  _headers=_headers,
@@ -1157,6 +1163,7 @@ class ToolboxApi:
1157
1163
  sandbox_id: StrictStr,
1158
1164
  path: StrictStr,
1159
1165
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1166
+ recursive: Optional[StrictBool] = None,
1160
1167
  _request_timeout: Union[
1161
1168
  None,
1162
1169
  Annotated[StrictFloat, Field(gt=0)],
@@ -1180,6 +1187,8 @@ class ToolboxApi:
1180
1187
  :type path: str
1181
1188
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1182
1189
  :type x_daytona_organization_id: str
1190
+ :param recursive:
1191
+ :type recursive: bool
1183
1192
  :param _request_timeout: timeout setting for this request. If one
1184
1193
  number provided, it will be total request
1185
1194
  timeout. It can also be a pair (tuple) of
@@ -1206,6 +1215,7 @@ class ToolboxApi:
1206
1215
  sandbox_id=sandbox_id,
1207
1216
  path=path,
1208
1217
  x_daytona_organization_id=x_daytona_organization_id,
1218
+ recursive=recursive,
1209
1219
  _request_auth=_request_auth,
1210
1220
  _content_type=_content_type,
1211
1221
  _headers=_headers,
@@ -1227,6 +1237,7 @@ class ToolboxApi:
1227
1237
  sandbox_id,
1228
1238
  path,
1229
1239
  x_daytona_organization_id,
1240
+ recursive,
1230
1241
  _request_auth,
1231
1242
  _content_type,
1232
1243
  _headers,
@@ -1251,6 +1262,10 @@ class ToolboxApi:
1251
1262
  if sandbox_id is not None:
1252
1263
  _path_params['sandboxId'] = sandbox_id
1253
1264
  # process the query parameters
1265
+ if recursive is not None:
1266
+
1267
+ _query_params.append(('recursive', recursive))
1268
+
1254
1269
  if path is not None:
1255
1270
 
1256
1271
  _query_params.append(('path', path))
@@ -5130,7 +5145,7 @@ class ToolboxApi:
5130
5145
  _headers: Optional[Dict[StrictStr, Any]] = None,
5131
5146
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5132
5147
  ) -> ProjectDirResponse:
5133
- """(Deprecated) Get sandbox project dir
5148
+ """Get sandbox project dir
5134
5149
 
5135
5150
 
5136
5151
  :param sandbox_id: (required)
@@ -5158,7 +5173,6 @@ class ToolboxApi:
5158
5173
  :type _host_index: int, optional
5159
5174
  :return: Returns the result object.
5160
5175
  """ # noqa: E501
5161
- warnings.warn("GET /toolbox/{sandboxId}/toolbox/project-dir is deprecated.", DeprecationWarning)
5162
5176
 
5163
5177
  _param = self._get_project_dir_serialize(
5164
5178
  sandbox_id=sandbox_id,
@@ -5201,7 +5215,7 @@ class ToolboxApi:
5201
5215
  _headers: Optional[Dict[StrictStr, Any]] = None,
5202
5216
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5203
5217
  ) -> ApiResponse[ProjectDirResponse]:
5204
- """(Deprecated) Get sandbox project dir
5218
+ """Get sandbox project dir
5205
5219
 
5206
5220
 
5207
5221
  :param sandbox_id: (required)
@@ -5229,7 +5243,6 @@ class ToolboxApi:
5229
5243
  :type _host_index: int, optional
5230
5244
  :return: Returns the result object.
5231
5245
  """ # noqa: E501
5232
- warnings.warn("GET /toolbox/{sandboxId}/toolbox/project-dir is deprecated.", DeprecationWarning)
5233
5246
 
5234
5247
  _param = self._get_project_dir_serialize(
5235
5248
  sandbox_id=sandbox_id,
@@ -5272,7 +5285,7 @@ class ToolboxApi:
5272
5285
  _headers: Optional[Dict[StrictStr, Any]] = None,
5273
5286
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5274
5287
  ) -> RESTResponseType:
5275
- """(Deprecated) Get sandbox project dir
5288
+ """Get sandbox project dir
5276
5289
 
5277
5290
 
5278
5291
  :param sandbox_id: (required)
@@ -5300,7 +5313,6 @@ class ToolboxApi:
5300
5313
  :type _host_index: int, optional
5301
5314
  :return: Returns the result object.
5302
5315
  """ # noqa: E501
5303
- warnings.warn("GET /toolbox/{sandboxId}/toolbox/project-dir is deprecated.", DeprecationWarning)
5304
5316
 
5305
5317
  _param = self._get_project_dir_serialize(
5306
5318
  sandbox_id=sandbox_id,
@@ -6313,7 +6325,7 @@ class ToolboxApi:
6313
6325
 
6314
6326
 
6315
6327
  @validate_call
6316
- def get_user_home_dir(
6328
+ def get_windows(
6317
6329
  self,
6318
6330
  sandbox_id: StrictStr,
6319
6331
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
@@ -6329,9 +6341,10 @@ class ToolboxApi:
6329
6341
  _content_type: Optional[StrictStr] = None,
6330
6342
  _headers: Optional[Dict[StrictStr, Any]] = None,
6331
6343
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6332
- ) -> UserHomeDirResponse:
6333
- """Get sandbox user home dir
6344
+ ) -> WindowsResponse:
6345
+ """Get windows
6334
6346
 
6347
+ Get list of open windows
6335
6348
 
6336
6349
  :param sandbox_id: (required)
6337
6350
  :type sandbox_id: str
@@ -6359,7 +6372,7 @@ class ToolboxApi:
6359
6372
  :return: Returns the result object.
6360
6373
  """ # noqa: E501
6361
6374
 
6362
- _param = self._get_user_home_dir_serialize(
6375
+ _param = self._get_windows_serialize(
6363
6376
  sandbox_id=sandbox_id,
6364
6377
  x_daytona_organization_id=x_daytona_organization_id,
6365
6378
  _request_auth=_request_auth,
@@ -6369,7 +6382,7 @@ class ToolboxApi:
6369
6382
  )
6370
6383
 
6371
6384
  _response_types_map: Dict[str, Optional[str]] = {
6372
- '200': "UserHomeDirResponse",
6385
+ '200': "WindowsResponse",
6373
6386
  }
6374
6387
  response_data = self.api_client.call_api(
6375
6388
  *_param,
@@ -6383,7 +6396,7 @@ class ToolboxApi:
6383
6396
 
6384
6397
 
6385
6398
  @validate_call
6386
- def get_user_home_dir_with_http_info(
6399
+ def get_windows_with_http_info(
6387
6400
  self,
6388
6401
  sandbox_id: StrictStr,
6389
6402
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
@@ -6399,9 +6412,10 @@ class ToolboxApi:
6399
6412
  _content_type: Optional[StrictStr] = None,
6400
6413
  _headers: Optional[Dict[StrictStr, Any]] = None,
6401
6414
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6402
- ) -> ApiResponse[UserHomeDirResponse]:
6403
- """Get sandbox user home dir
6415
+ ) -> ApiResponse[WindowsResponse]:
6416
+ """Get windows
6404
6417
 
6418
+ Get list of open windows
6405
6419
 
6406
6420
  :param sandbox_id: (required)
6407
6421
  :type sandbox_id: str
@@ -6429,7 +6443,7 @@ class ToolboxApi:
6429
6443
  :return: Returns the result object.
6430
6444
  """ # noqa: E501
6431
6445
 
6432
- _param = self._get_user_home_dir_serialize(
6446
+ _param = self._get_windows_serialize(
6433
6447
  sandbox_id=sandbox_id,
6434
6448
  x_daytona_organization_id=x_daytona_organization_id,
6435
6449
  _request_auth=_request_auth,
@@ -6439,7 +6453,7 @@ class ToolboxApi:
6439
6453
  )
6440
6454
 
6441
6455
  _response_types_map: Dict[str, Optional[str]] = {
6442
- '200': "UserHomeDirResponse",
6456
+ '200': "WindowsResponse",
6443
6457
  }
6444
6458
  response_data = self.api_client.call_api(
6445
6459
  *_param,
@@ -6453,7 +6467,7 @@ class ToolboxApi:
6453
6467
 
6454
6468
 
6455
6469
  @validate_call
6456
- def get_user_home_dir_without_preload_content(
6470
+ def get_windows_without_preload_content(
6457
6471
  self,
6458
6472
  sandbox_id: StrictStr,
6459
6473
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
@@ -6470,8 +6484,9 @@ class ToolboxApi:
6470
6484
  _headers: Optional[Dict[StrictStr, Any]] = None,
6471
6485
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6472
6486
  ) -> RESTResponseType:
6473
- """Get sandbox user home dir
6487
+ """Get windows
6474
6488
 
6489
+ Get list of open windows
6475
6490
 
6476
6491
  :param sandbox_id: (required)
6477
6492
  :type sandbox_id: str
@@ -6499,7 +6514,7 @@ class ToolboxApi:
6499
6514
  :return: Returns the result object.
6500
6515
  """ # noqa: E501
6501
6516
 
6502
- _param = self._get_user_home_dir_serialize(
6517
+ _param = self._get_windows_serialize(
6503
6518
  sandbox_id=sandbox_id,
6504
6519
  x_daytona_organization_id=x_daytona_organization_id,
6505
6520
  _request_auth=_request_auth,
@@ -6509,7 +6524,7 @@ class ToolboxApi:
6509
6524
  )
6510
6525
 
6511
6526
  _response_types_map: Dict[str, Optional[str]] = {
6512
- '200': "UserHomeDirResponse",
6527
+ '200': "WindowsResponse",
6513
6528
  }
6514
6529
  response_data = self.api_client.call_api(
6515
6530
  *_param,
@@ -6518,284 +6533,7 @@ class ToolboxApi:
6518
6533
  return response_data.response
6519
6534
 
6520
6535
 
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
-
6589
- @validate_call
6590
- def get_windows(
6591
- self,
6592
- sandbox_id: StrictStr,
6593
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
6594
- _request_timeout: Union[
6595
- None,
6596
- Annotated[StrictFloat, Field(gt=0)],
6597
- Tuple[
6598
- Annotated[StrictFloat, Field(gt=0)],
6599
- Annotated[StrictFloat, Field(gt=0)]
6600
- ]
6601
- ] = None,
6602
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
6603
- _content_type: Optional[StrictStr] = None,
6604
- _headers: Optional[Dict[StrictStr, Any]] = None,
6605
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
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]:
6678
- """Get windows
6679
-
6680
- Get list of open windows
6681
-
6682
- :param sandbox_id: (required)
6683
- :type sandbox_id: str
6684
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
6685
- :type x_daytona_organization_id: str
6686
- :param _request_timeout: timeout setting for this request. If one
6687
- number provided, it will be total request
6688
- timeout. It can also be a pair (tuple) of
6689
- (connection, read) timeouts.
6690
- :type _request_timeout: int, tuple(int, int), optional
6691
- :param _request_auth: set to override the auth_settings for an a single
6692
- request; this effectively ignores the
6693
- authentication in the spec for a single request.
6694
- :type _request_auth: dict, optional
6695
- :param _content_type: force content-type for the request.
6696
- :type _content_type: str, Optional
6697
- :param _headers: set to override the headers for a single
6698
- request; this effectively ignores the headers
6699
- in the spec for a single request.
6700
- :type _headers: dict, optional
6701
- :param _host_index: set to override the host_index for a single
6702
- request; this effectively ignores the host_index
6703
- in the spec for a single request.
6704
- :type _host_index: int, optional
6705
- :return: Returns the result object.
6706
- """ # noqa: E501
6707
-
6708
- _param = self._get_windows_serialize(
6709
- sandbox_id=sandbox_id,
6710
- x_daytona_organization_id=x_daytona_organization_id,
6711
- _request_auth=_request_auth,
6712
- _content_type=_content_type,
6713
- _headers=_headers,
6714
- _host_index=_host_index
6715
- )
6716
-
6717
- _response_types_map: Dict[str, Optional[str]] = {
6718
- '200': "WindowsResponse",
6719
- }
6720
- response_data = self.api_client.call_api(
6721
- *_param,
6722
- _request_timeout=_request_timeout
6723
- )
6724
- response_data.read()
6725
- return self.api_client.response_deserialize(
6726
- response_data=response_data,
6727
- response_types_map=_response_types_map,
6728
- )
6729
-
6730
-
6731
- @validate_call
6732
- def get_windows_without_preload_content(
6733
- self,
6734
- sandbox_id: StrictStr,
6735
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
6736
- _request_timeout: Union[
6737
- None,
6738
- Annotated[StrictFloat, Field(gt=0)],
6739
- Tuple[
6740
- Annotated[StrictFloat, Field(gt=0)],
6741
- Annotated[StrictFloat, Field(gt=0)]
6742
- ]
6743
- ] = None,
6744
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
6745
- _content_type: Optional[StrictStr] = None,
6746
- _headers: Optional[Dict[StrictStr, Any]] = None,
6747
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6748
- ) -> RESTResponseType:
6749
- """Get windows
6750
-
6751
- Get list of open windows
6752
-
6753
- :param sandbox_id: (required)
6754
- :type sandbox_id: str
6755
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
6756
- :type x_daytona_organization_id: str
6757
- :param _request_timeout: timeout setting for this request. If one
6758
- number provided, it will be total request
6759
- timeout. It can also be a pair (tuple) of
6760
- (connection, read) timeouts.
6761
- :type _request_timeout: int, tuple(int, int), optional
6762
- :param _request_auth: set to override the auth_settings for an a single
6763
- request; this effectively ignores the
6764
- authentication in the spec for a single request.
6765
- :type _request_auth: dict, optional
6766
- :param _content_type: force content-type for the request.
6767
- :type _content_type: str, Optional
6768
- :param _headers: set to override the headers for a single
6769
- request; this effectively ignores the headers
6770
- in the spec for a single request.
6771
- :type _headers: dict, optional
6772
- :param _host_index: set to override the host_index for a single
6773
- request; this effectively ignores the host_index
6774
- in the spec for a single request.
6775
- :type _host_index: int, optional
6776
- :return: Returns the result object.
6777
- """ # noqa: E501
6778
-
6779
- _param = self._get_windows_serialize(
6780
- sandbox_id=sandbox_id,
6781
- x_daytona_organization_id=x_daytona_organization_id,
6782
- _request_auth=_request_auth,
6783
- _content_type=_content_type,
6784
- _headers=_headers,
6785
- _host_index=_host_index
6786
- )
6787
-
6788
- _response_types_map: Dict[str, Optional[str]] = {
6789
- '200': "WindowsResponse",
6790
- }
6791
- response_data = self.api_client.call_api(
6792
- *_param,
6793
- _request_timeout=_request_timeout
6794
- )
6795
- return response_data.response
6796
-
6797
-
6798
- def _get_windows_serialize(
6536
+ def _get_windows_serialize(
6799
6537
  self,
6800
6538
  sandbox_id,
6801
6539
  x_daytona_organization_id,
@@ -6863,280 +6601,6 @@ class ToolboxApi:
6863
6601
 
6864
6602
 
6865
6603
 
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
- )
6999
- response_data.read()
7000
- return self.api_client.response_deserialize(
7001
- response_data=response_data,
7002
- response_types_map=_response_types_map,
7003
- )
7004
-
7005
-
7006
- @validate_call
7007
- def get_work_dir_without_preload_content(
7008
- self,
7009
- sandbox_id: StrictStr,
7010
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
7011
- _request_timeout: Union[
7012
- None,
7013
- Annotated[StrictFloat, Field(gt=0)],
7014
- Tuple[
7015
- Annotated[StrictFloat, Field(gt=0)],
7016
- Annotated[StrictFloat, Field(gt=0)]
7017
- ]
7018
- ] = None,
7019
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
7020
- _content_type: Optional[StrictStr] = None,
7021
- _headers: Optional[Dict[StrictStr, Any]] = None,
7022
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
7023
- ) -> RESTResponseType:
7024
- """Get sandbox work-dir
7025
-
7026
-
7027
- :param sandbox_id: (required)
7028
- :type sandbox_id: str
7029
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
7030
- :type x_daytona_organization_id: str
7031
- :param _request_timeout: timeout setting for this request. If one
7032
- number provided, it will be total request
7033
- timeout. It can also be a pair (tuple) of
7034
- (connection, read) timeouts.
7035
- :type _request_timeout: int, tuple(int, int), optional
7036
- :param _request_auth: set to override the auth_settings for an a single
7037
- request; this effectively ignores the
7038
- authentication in the spec for a single request.
7039
- :type _request_auth: dict, optional
7040
- :param _content_type: force content-type for the request.
7041
- :type _content_type: str, Optional
7042
- :param _headers: set to override the headers for a single
7043
- request; this effectively ignores the headers
7044
- in the spec for a single request.
7045
- :type _headers: dict, optional
7046
- :param _host_index: set to override the host_index for a single
7047
- request; this effectively ignores the host_index
7048
- in the spec for a single request.
7049
- :type _host_index: int, optional
7050
- :return: Returns the result object.
7051
- """ # noqa: E501
7052
-
7053
- _param = self._get_work_dir_serialize(
7054
- sandbox_id=sandbox_id,
7055
- x_daytona_organization_id=x_daytona_organization_id,
7056
- _request_auth=_request_auth,
7057
- _content_type=_content_type,
7058
- _headers=_headers,
7059
- _host_index=_host_index
7060
- )
7061
-
7062
- _response_types_map: Dict[str, Optional[str]] = {
7063
- '200': "WorkDirResponse",
7064
- }
7065
- response_data = self.api_client.call_api(
7066
- *_param,
7067
- _request_timeout=_request_timeout
7068
- )
7069
- return response_data.response
7070
-
7071
-
7072
- def _get_work_dir_serialize(
7073
- self,
7074
- sandbox_id,
7075
- x_daytona_organization_id,
7076
- _request_auth,
7077
- _content_type,
7078
- _headers,
7079
- _host_index,
7080
- ) -> RequestSerialized:
7081
-
7082
- _host = None
7083
-
7084
- _collection_formats: Dict[str, str] = {
7085
- }
7086
-
7087
- _path_params: Dict[str, str] = {}
7088
- _query_params: List[Tuple[str, str]] = []
7089
- _header_params: Dict[str, Optional[str]] = _headers or {}
7090
- _form_params: List[Tuple[str, str]] = []
7091
- _files: Dict[
7092
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
7093
- ] = {}
7094
- _body_params: Optional[bytes] = None
7095
-
7096
- # process the path parameters
7097
- if sandbox_id is not None:
7098
- _path_params['sandboxId'] = sandbox_id
7099
- # process the query parameters
7100
- # process the header parameters
7101
- if x_daytona_organization_id is not None:
7102
- _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
7103
- # process the form parameters
7104
- # process the body parameter
7105
-
7106
-
7107
- # set the HTTP header `Accept`
7108
- if 'Accept' not in _header_params:
7109
- _header_params['Accept'] = self.api_client.select_header_accept(
7110
- [
7111
- 'application/json'
7112
- ]
7113
- )
7114
-
7115
-
7116
- # authentication setting
7117
- _auth_settings: List[str] = [
7118
- 'bearer',
7119
- 'oauth2'
7120
- ]
7121
-
7122
- return self.api_client.param_serialize(
7123
- method='GET',
7124
- resource_path='/toolbox/{sandboxId}/toolbox/work-dir',
7125
- path_params=_path_params,
7126
- query_params=_query_params,
7127
- header_params=_header_params,
7128
- body=_body_params,
7129
- post_params=_form_params,
7130
- files=_files,
7131
- auth_settings=_auth_settings,
7132
- collection_formats=_collection_formats,
7133
- _host=_host,
7134
- _request_auth=_request_auth
7135
- )
7136
-
7137
-
7138
-
7139
-
7140
6604
  @validate_call
7141
6605
  def git_add_files(
7142
6606
  self,