daytona_api_client 0.21.3a0__py3-none-any.whl → 0.21.4a0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of daytona_api_client might be problematic. Click here for more details.
- daytona_api_client/api/__init__.py +1 -0
- daytona_api_client/api/api_keys_api.py +328 -171
- daytona_api_client/api/docker_registry_api.py +463 -239
- daytona_api_client/api/object_storage_api.py +63 -33
- daytona_api_client/api/organizations_api.py +1582 -612
- daytona_api_client/api/preview_api.py +175 -71
- daytona_api_client/api/runners_api.py +195 -67
- daytona_api_client/api/sandbox_api.py +909 -499
- daytona_api_client/api/snapshots_api.py +482 -253
- daytona_api_client/api/toolbox_api.py +2684 -1410
- daytona_api_client/api/users_api.py +526 -184
- daytona_api_client/api/volumes_api.py +332 -180
- daytona_api_client/api/workspace_api.py +909 -499
- daytona_api_client/api_client.py +192 -90
- daytona_api_client/api_response.py +3 -2
- daytona_api_client/configuration.py +52 -55
- daytona_api_client/exceptions.py +16 -15
- daytona_api_client/models/account_provider.py +11 -9
- daytona_api_client/models/api_key_list.py +21 -40
- daytona_api_client/models/api_key_response.py +19 -38
- daytona_api_client/models/build_info.py +15 -22
- daytona_api_client/models/command.py +13 -12
- daytona_api_client/models/completion_context.py +11 -11
- daytona_api_client/models/completion_item.py +17 -28
- daytona_api_client/models/completion_list.py +12 -17
- daytona_api_client/models/create_api_key.py +17 -32
- daytona_api_client/models/create_build_info.py +13 -17
- daytona_api_client/models/create_docker_registry.py +18 -21
- daytona_api_client/models/create_linked_account.py +11 -9
- daytona_api_client/models/create_organization.py +10 -9
- daytona_api_client/models/create_organization_invitation.py +17 -24
- daytona_api_client/models/create_organization_quota.py +19 -32
- daytona_api_client/models/create_organization_role.py +15 -28
- daytona_api_client/models/create_runner.py +26 -41
- daytona_api_client/models/create_sandbox.py +39 -76
- daytona_api_client/models/create_session_request.py +10 -9
- daytona_api_client/models/create_snapshot.py +22 -39
- daytona_api_client/models/create_user.py +19 -26
- daytona_api_client/models/create_volume.py +10 -9
- daytona_api_client/models/create_workspace.py +38 -73
- daytona_api_client/models/docker_registry.py +21 -33
- daytona_api_client/models/execute_request.py +13 -12
- daytona_api_client/models/execute_response.py +11 -9
- daytona_api_client/models/file_info.py +17 -20
- daytona_api_client/models/file_status.py +13 -16
- daytona_api_client/models/git_add_request.py +11 -9
- daytona_api_client/models/git_branch_request.py +11 -9
- daytona_api_client/models/git_checkout_request.py +11 -9
- daytona_api_client/models/git_clone_request.py +15 -18
- daytona_api_client/models/git_commit_info.py +14 -17
- daytona_api_client/models/git_commit_request.py +13 -16
- daytona_api_client/models/git_commit_response.py +10 -9
- daytona_api_client/models/git_delete_branch_request.py +11 -9
- daytona_api_client/models/git_repo_request.py +12 -11
- daytona_api_client/models/git_status.py +15 -20
- daytona_api_client/models/list_branch_response.py +10 -9
- daytona_api_client/models/lsp_completion_params.py +16 -19
- daytona_api_client/models/lsp_document_request.py +12 -11
- daytona_api_client/models/lsp_location.py +12 -12
- daytona_api_client/models/lsp_server_request.py +11 -9
- daytona_api_client/models/lsp_symbol.py +13 -16
- daytona_api_client/models/match.py +12 -9
- daytona_api_client/models/organization.py +20 -34
- daytona_api_client/models/organization_invitation.py +27 -44
- daytona_api_client/models/organization_role.py +21 -46
- daytona_api_client/models/organization_suspension.py +11 -9
- daytona_api_client/models/organization_user.py +22 -36
- daytona_api_client/models/paginated_snapshots_dto.py +14 -19
- daytona_api_client/models/port_preview_url.py +11 -9
- daytona_api_client/models/position.py +11 -9
- daytona_api_client/models/project_dir_response.py +10 -9
- daytona_api_client/models/range.py +13 -16
- daytona_api_client/models/registry_push_access_dto.py +15 -18
- daytona_api_client/models/replace_request.py +12 -11
- daytona_api_client/models/replace_result.py +12 -9
- daytona_api_client/models/sandbox.py +49 -95
- daytona_api_client/models/sandbox_info.py +13 -18
- daytona_api_client/models/sandbox_labels.py +10 -9
- daytona_api_client/models/sandbox_state.py +18 -16
- daytona_api_client/models/sandbox_volume.py +11 -9
- daytona_api_client/models/search_files_response.py +10 -9
- daytona_api_client/models/session.py +13 -18
- daytona_api_client/models/session_execute_request.py +14 -19
- daytona_api_client/models/session_execute_response.py +13 -14
- daytona_api_client/models/set_snapshot_general_status_dto.py +10 -9
- daytona_api_client/models/snapshot_dto.py +34 -58
- daytona_api_client/models/snapshot_state.py +12 -10
- daytona_api_client/models/storage_access_dto.py +16 -26
- daytona_api_client/models/toggle_state.py +10 -9
- daytona_api_client/models/update_assigned_organization_roles.py +10 -9
- daytona_api_client/models/update_docker_registry.py +12 -11
- daytona_api_client/models/update_organization_invitation.py +15 -16
- daytona_api_client/models/update_organization_member_role.py +12 -11
- daytona_api_client/models/update_organization_quota.py +28 -41
- daytona_api_client/models/update_organization_role.py +15 -28
- daytona_api_client/models/usage_overview.py +17 -28
- daytona_api_client/models/user.py +14 -19
- daytona_api_client/models/user_public_key.py +11 -9
- daytona_api_client/models/volume_dto.py +20 -32
- daytona_api_client/models/volume_state.py +9 -7
- daytona_api_client/models/workspace.py +58 -113
- daytona_api_client/rest.py +77 -26
- {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.4a0.dist-info}/METADATA +1 -1
- daytona_api_client-0.21.4a0.dist-info/RECORD +117 -0
- daytona_api_client-0.21.3a0.dist-info/RECORD +0 -117
- {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.4a0.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.4a0.dist-info}/top_level.txt +0 -0
|
@@ -42,17 +42,19 @@ class SandboxApi:
|
|
|
42
42
|
api_client = ApiClient.get_default()
|
|
43
43
|
self.api_client = api_client
|
|
44
44
|
|
|
45
|
+
|
|
45
46
|
@validate_call
|
|
46
47
|
def archive_sandbox(
|
|
47
48
|
self,
|
|
48
49
|
sandbox_id: StrictStr,
|
|
49
|
-
x_daytona_organization_id: Annotated[
|
|
50
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
51
|
-
] = None,
|
|
50
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
52
51
|
_request_timeout: Union[
|
|
53
52
|
None,
|
|
54
53
|
Annotated[StrictFloat, Field(gt=0)],
|
|
55
|
-
Tuple[
|
|
54
|
+
Tuple[
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
57
|
+
]
|
|
56
58
|
] = None,
|
|
57
59
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
58
60
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -86,7 +88,7 @@ class SandboxApi:
|
|
|
86
88
|
in the spec for a single request.
|
|
87
89
|
:type _host_index: int, optional
|
|
88
90
|
:return: Returns the result object.
|
|
89
|
-
"""
|
|
91
|
+
""" # noqa: E501
|
|
90
92
|
|
|
91
93
|
_param = self._archive_sandbox_serialize(
|
|
92
94
|
sandbox_id=sandbox_id,
|
|
@@ -94,30 +96,35 @@ class SandboxApi:
|
|
|
94
96
|
_request_auth=_request_auth,
|
|
95
97
|
_content_type=_content_type,
|
|
96
98
|
_headers=_headers,
|
|
97
|
-
_host_index=_host_index
|
|
99
|
+
_host_index=_host_index
|
|
98
100
|
)
|
|
99
101
|
|
|
100
102
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
101
|
-
|
|
103
|
+
'200': None,
|
|
102
104
|
}
|
|
103
|
-
response_data = self.api_client.call_api(
|
|
105
|
+
response_data = self.api_client.call_api(
|
|
106
|
+
*_param,
|
|
107
|
+
_request_timeout=_request_timeout
|
|
108
|
+
)
|
|
104
109
|
response_data.read()
|
|
105
110
|
return self.api_client.response_deserialize(
|
|
106
111
|
response_data=response_data,
|
|
107
112
|
response_types_map=_response_types_map,
|
|
108
113
|
).data
|
|
109
114
|
|
|
115
|
+
|
|
110
116
|
@validate_call
|
|
111
117
|
def archive_sandbox_with_http_info(
|
|
112
118
|
self,
|
|
113
119
|
sandbox_id: StrictStr,
|
|
114
|
-
x_daytona_organization_id: Annotated[
|
|
115
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
116
|
-
] = None,
|
|
120
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
117
121
|
_request_timeout: Union[
|
|
118
122
|
None,
|
|
119
123
|
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
-
Tuple[
|
|
124
|
+
Tuple[
|
|
125
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
126
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
127
|
+
]
|
|
121
128
|
] = None,
|
|
122
129
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
123
130
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -151,7 +158,7 @@ class SandboxApi:
|
|
|
151
158
|
in the spec for a single request.
|
|
152
159
|
:type _host_index: int, optional
|
|
153
160
|
:return: Returns the result object.
|
|
154
|
-
"""
|
|
161
|
+
""" # noqa: E501
|
|
155
162
|
|
|
156
163
|
_param = self._archive_sandbox_serialize(
|
|
157
164
|
sandbox_id=sandbox_id,
|
|
@@ -159,30 +166,35 @@ class SandboxApi:
|
|
|
159
166
|
_request_auth=_request_auth,
|
|
160
167
|
_content_type=_content_type,
|
|
161
168
|
_headers=_headers,
|
|
162
|
-
_host_index=_host_index
|
|
169
|
+
_host_index=_host_index
|
|
163
170
|
)
|
|
164
171
|
|
|
165
172
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
166
|
-
|
|
173
|
+
'200': None,
|
|
167
174
|
}
|
|
168
|
-
response_data = self.api_client.call_api(
|
|
175
|
+
response_data = self.api_client.call_api(
|
|
176
|
+
*_param,
|
|
177
|
+
_request_timeout=_request_timeout
|
|
178
|
+
)
|
|
169
179
|
response_data.read()
|
|
170
180
|
return self.api_client.response_deserialize(
|
|
171
181
|
response_data=response_data,
|
|
172
182
|
response_types_map=_response_types_map,
|
|
173
183
|
)
|
|
174
184
|
|
|
185
|
+
|
|
175
186
|
@validate_call
|
|
176
187
|
def archive_sandbox_without_preload_content(
|
|
177
188
|
self,
|
|
178
189
|
sandbox_id: StrictStr,
|
|
179
|
-
x_daytona_organization_id: Annotated[
|
|
180
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
181
|
-
] = None,
|
|
190
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
182
191
|
_request_timeout: Union[
|
|
183
192
|
None,
|
|
184
193
|
Annotated[StrictFloat, Field(gt=0)],
|
|
185
|
-
Tuple[
|
|
194
|
+
Tuple[
|
|
195
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
196
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
197
|
+
]
|
|
186
198
|
] = None,
|
|
187
199
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
188
200
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -216,7 +228,7 @@ class SandboxApi:
|
|
|
216
228
|
in the spec for a single request.
|
|
217
229
|
:type _host_index: int, optional
|
|
218
230
|
:return: Returns the result object.
|
|
219
|
-
"""
|
|
231
|
+
""" # noqa: E501
|
|
220
232
|
|
|
221
233
|
_param = self._archive_sandbox_serialize(
|
|
222
234
|
sandbox_id=sandbox_id,
|
|
@@ -224,15 +236,19 @@ class SandboxApi:
|
|
|
224
236
|
_request_auth=_request_auth,
|
|
225
237
|
_content_type=_content_type,
|
|
226
238
|
_headers=_headers,
|
|
227
|
-
_host_index=_host_index
|
|
239
|
+
_host_index=_host_index
|
|
228
240
|
)
|
|
229
241
|
|
|
230
242
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
231
|
-
|
|
243
|
+
'200': None,
|
|
232
244
|
}
|
|
233
|
-
response_data = self.api_client.call_api(
|
|
245
|
+
response_data = self.api_client.call_api(
|
|
246
|
+
*_param,
|
|
247
|
+
_request_timeout=_request_timeout
|
|
248
|
+
)
|
|
234
249
|
return response_data.response
|
|
235
250
|
|
|
251
|
+
|
|
236
252
|
def _archive_sandbox_serialize(
|
|
237
253
|
self,
|
|
238
254
|
sandbox_id,
|
|
@@ -242,33 +258,43 @@ class SandboxApi:
|
|
|
242
258
|
_headers,
|
|
243
259
|
_host_index,
|
|
244
260
|
) -> RequestSerialized:
|
|
261
|
+
|
|
245
262
|
_host = None
|
|
246
263
|
|
|
247
|
-
_collection_formats: Dict[str, str] = {
|
|
264
|
+
_collection_formats: Dict[str, str] = {
|
|
265
|
+
}
|
|
248
266
|
|
|
249
267
|
_path_params: Dict[str, str] = {}
|
|
250
268
|
_query_params: List[Tuple[str, str]] = []
|
|
251
269
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
252
270
|
_form_params: List[Tuple[str, str]] = []
|
|
253
|
-
_files: Dict[
|
|
271
|
+
_files: Dict[
|
|
272
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
273
|
+
] = {}
|
|
254
274
|
_body_params: Optional[bytes] = None
|
|
255
275
|
|
|
256
276
|
# process the path parameters
|
|
257
277
|
if sandbox_id is not None:
|
|
258
|
-
_path_params[
|
|
278
|
+
_path_params['sandboxId'] = sandbox_id
|
|
259
279
|
# process the query parameters
|
|
260
280
|
# process the header parameters
|
|
261
281
|
if x_daytona_organization_id is not None:
|
|
262
|
-
_header_params[
|
|
282
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
263
283
|
# process the form parameters
|
|
264
284
|
# process the body parameter
|
|
265
285
|
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
266
289
|
# authentication setting
|
|
267
|
-
_auth_settings: List[str] = [
|
|
290
|
+
_auth_settings: List[str] = [
|
|
291
|
+
'bearer',
|
|
292
|
+
'oauth2'
|
|
293
|
+
]
|
|
268
294
|
|
|
269
295
|
return self.api_client.param_serialize(
|
|
270
|
-
method=
|
|
271
|
-
resource_path=
|
|
296
|
+
method='POST',
|
|
297
|
+
resource_path='/sandbox/{sandboxId}/archive',
|
|
272
298
|
path_params=_path_params,
|
|
273
299
|
query_params=_query_params,
|
|
274
300
|
header_params=_header_params,
|
|
@@ -278,20 +304,24 @@ class SandboxApi:
|
|
|
278
304
|
auth_settings=_auth_settings,
|
|
279
305
|
collection_formats=_collection_formats,
|
|
280
306
|
_host=_host,
|
|
281
|
-
_request_auth=_request_auth
|
|
307
|
+
_request_auth=_request_auth
|
|
282
308
|
)
|
|
283
309
|
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
284
313
|
@validate_call
|
|
285
314
|
def create_backup(
|
|
286
315
|
self,
|
|
287
316
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
288
|
-
x_daytona_organization_id: Annotated[
|
|
289
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
290
|
-
] = None,
|
|
317
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
291
318
|
_request_timeout: Union[
|
|
292
319
|
None,
|
|
293
320
|
Annotated[StrictFloat, Field(gt=0)],
|
|
294
|
-
Tuple[
|
|
321
|
+
Tuple[
|
|
322
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
323
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
324
|
+
]
|
|
295
325
|
] = None,
|
|
296
326
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
297
327
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -325,7 +355,7 @@ class SandboxApi:
|
|
|
325
355
|
in the spec for a single request.
|
|
326
356
|
:type _host_index: int, optional
|
|
327
357
|
:return: Returns the result object.
|
|
328
|
-
"""
|
|
358
|
+
""" # noqa: E501
|
|
329
359
|
|
|
330
360
|
_param = self._create_backup_serialize(
|
|
331
361
|
sandbox_id=sandbox_id,
|
|
@@ -333,30 +363,35 @@ class SandboxApi:
|
|
|
333
363
|
_request_auth=_request_auth,
|
|
334
364
|
_content_type=_content_type,
|
|
335
365
|
_headers=_headers,
|
|
336
|
-
_host_index=_host_index
|
|
366
|
+
_host_index=_host_index
|
|
337
367
|
)
|
|
338
368
|
|
|
339
369
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
340
|
-
|
|
370
|
+
'200': "Sandbox",
|
|
341
371
|
}
|
|
342
|
-
response_data = self.api_client.call_api(
|
|
372
|
+
response_data = self.api_client.call_api(
|
|
373
|
+
*_param,
|
|
374
|
+
_request_timeout=_request_timeout
|
|
375
|
+
)
|
|
343
376
|
response_data.read()
|
|
344
377
|
return self.api_client.response_deserialize(
|
|
345
378
|
response_data=response_data,
|
|
346
379
|
response_types_map=_response_types_map,
|
|
347
380
|
).data
|
|
348
381
|
|
|
382
|
+
|
|
349
383
|
@validate_call
|
|
350
384
|
def create_backup_with_http_info(
|
|
351
385
|
self,
|
|
352
386
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
353
|
-
x_daytona_organization_id: Annotated[
|
|
354
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
355
|
-
] = None,
|
|
387
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
356
388
|
_request_timeout: Union[
|
|
357
389
|
None,
|
|
358
390
|
Annotated[StrictFloat, Field(gt=0)],
|
|
359
|
-
Tuple[
|
|
391
|
+
Tuple[
|
|
392
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
393
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
394
|
+
]
|
|
360
395
|
] = None,
|
|
361
396
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
362
397
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -390,7 +425,7 @@ class SandboxApi:
|
|
|
390
425
|
in the spec for a single request.
|
|
391
426
|
:type _host_index: int, optional
|
|
392
427
|
:return: Returns the result object.
|
|
393
|
-
"""
|
|
428
|
+
""" # noqa: E501
|
|
394
429
|
|
|
395
430
|
_param = self._create_backup_serialize(
|
|
396
431
|
sandbox_id=sandbox_id,
|
|
@@ -398,30 +433,35 @@ class SandboxApi:
|
|
|
398
433
|
_request_auth=_request_auth,
|
|
399
434
|
_content_type=_content_type,
|
|
400
435
|
_headers=_headers,
|
|
401
|
-
_host_index=_host_index
|
|
436
|
+
_host_index=_host_index
|
|
402
437
|
)
|
|
403
438
|
|
|
404
439
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
405
|
-
|
|
440
|
+
'200': "Sandbox",
|
|
406
441
|
}
|
|
407
|
-
response_data = self.api_client.call_api(
|
|
442
|
+
response_data = self.api_client.call_api(
|
|
443
|
+
*_param,
|
|
444
|
+
_request_timeout=_request_timeout
|
|
445
|
+
)
|
|
408
446
|
response_data.read()
|
|
409
447
|
return self.api_client.response_deserialize(
|
|
410
448
|
response_data=response_data,
|
|
411
449
|
response_types_map=_response_types_map,
|
|
412
450
|
)
|
|
413
451
|
|
|
452
|
+
|
|
414
453
|
@validate_call
|
|
415
454
|
def create_backup_without_preload_content(
|
|
416
455
|
self,
|
|
417
456
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
418
|
-
x_daytona_organization_id: Annotated[
|
|
419
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
420
|
-
] = None,
|
|
457
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
421
458
|
_request_timeout: Union[
|
|
422
459
|
None,
|
|
423
460
|
Annotated[StrictFloat, Field(gt=0)],
|
|
424
|
-
Tuple[
|
|
461
|
+
Tuple[
|
|
462
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
463
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
464
|
+
]
|
|
425
465
|
] = None,
|
|
426
466
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
427
467
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -455,7 +495,7 @@ class SandboxApi:
|
|
|
455
495
|
in the spec for a single request.
|
|
456
496
|
:type _host_index: int, optional
|
|
457
497
|
:return: Returns the result object.
|
|
458
|
-
"""
|
|
498
|
+
""" # noqa: E501
|
|
459
499
|
|
|
460
500
|
_param = self._create_backup_serialize(
|
|
461
501
|
sandbox_id=sandbox_id,
|
|
@@ -463,15 +503,19 @@ class SandboxApi:
|
|
|
463
503
|
_request_auth=_request_auth,
|
|
464
504
|
_content_type=_content_type,
|
|
465
505
|
_headers=_headers,
|
|
466
|
-
_host_index=_host_index
|
|
506
|
+
_host_index=_host_index
|
|
467
507
|
)
|
|
468
508
|
|
|
469
509
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
470
|
-
|
|
510
|
+
'200': "Sandbox",
|
|
471
511
|
}
|
|
472
|
-
response_data = self.api_client.call_api(
|
|
512
|
+
response_data = self.api_client.call_api(
|
|
513
|
+
*_param,
|
|
514
|
+
_request_timeout=_request_timeout
|
|
515
|
+
)
|
|
473
516
|
return response_data.response
|
|
474
517
|
|
|
518
|
+
|
|
475
519
|
def _create_backup_serialize(
|
|
476
520
|
self,
|
|
477
521
|
sandbox_id,
|
|
@@ -481,37 +525,50 @@ class SandboxApi:
|
|
|
481
525
|
_headers,
|
|
482
526
|
_host_index,
|
|
483
527
|
) -> RequestSerialized:
|
|
528
|
+
|
|
484
529
|
_host = None
|
|
485
530
|
|
|
486
|
-
_collection_formats: Dict[str, str] = {
|
|
531
|
+
_collection_formats: Dict[str, str] = {
|
|
532
|
+
}
|
|
487
533
|
|
|
488
534
|
_path_params: Dict[str, str] = {}
|
|
489
535
|
_query_params: List[Tuple[str, str]] = []
|
|
490
536
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
491
537
|
_form_params: List[Tuple[str, str]] = []
|
|
492
|
-
_files: Dict[
|
|
538
|
+
_files: Dict[
|
|
539
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
540
|
+
] = {}
|
|
493
541
|
_body_params: Optional[bytes] = None
|
|
494
542
|
|
|
495
543
|
# process the path parameters
|
|
496
544
|
if sandbox_id is not None:
|
|
497
|
-
_path_params[
|
|
545
|
+
_path_params['sandboxId'] = sandbox_id
|
|
498
546
|
# process the query parameters
|
|
499
547
|
# process the header parameters
|
|
500
548
|
if x_daytona_organization_id is not None:
|
|
501
|
-
_header_params[
|
|
549
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
502
550
|
# process the form parameters
|
|
503
551
|
# process the body parameter
|
|
504
552
|
|
|
553
|
+
|
|
505
554
|
# set the HTTP header `Accept`
|
|
506
|
-
if
|
|
507
|
-
_header_params[
|
|
555
|
+
if 'Accept' not in _header_params:
|
|
556
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
557
|
+
[
|
|
558
|
+
'application/json'
|
|
559
|
+
]
|
|
560
|
+
)
|
|
561
|
+
|
|
508
562
|
|
|
509
563
|
# authentication setting
|
|
510
|
-
_auth_settings: List[str] = [
|
|
564
|
+
_auth_settings: List[str] = [
|
|
565
|
+
'bearer',
|
|
566
|
+
'oauth2'
|
|
567
|
+
]
|
|
511
568
|
|
|
512
569
|
return self.api_client.param_serialize(
|
|
513
|
-
method=
|
|
514
|
-
resource_path=
|
|
570
|
+
method='POST',
|
|
571
|
+
resource_path='/sandbox/{sandboxId}/backup',
|
|
515
572
|
path_params=_path_params,
|
|
516
573
|
query_params=_query_params,
|
|
517
574
|
header_params=_header_params,
|
|
@@ -521,20 +578,24 @@ class SandboxApi:
|
|
|
521
578
|
auth_settings=_auth_settings,
|
|
522
579
|
collection_formats=_collection_formats,
|
|
523
580
|
_host=_host,
|
|
524
|
-
_request_auth=_request_auth
|
|
581
|
+
_request_auth=_request_auth
|
|
525
582
|
)
|
|
526
583
|
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
527
587
|
@validate_call
|
|
528
588
|
def create_sandbox(
|
|
529
589
|
self,
|
|
530
590
|
create_sandbox: CreateSandbox,
|
|
531
|
-
x_daytona_organization_id: Annotated[
|
|
532
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
533
|
-
] = None,
|
|
591
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
534
592
|
_request_timeout: Union[
|
|
535
593
|
None,
|
|
536
594
|
Annotated[StrictFloat, Field(gt=0)],
|
|
537
|
-
Tuple[
|
|
595
|
+
Tuple[
|
|
596
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
597
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
598
|
+
]
|
|
538
599
|
] = None,
|
|
539
600
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
540
601
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -568,7 +629,7 @@ class SandboxApi:
|
|
|
568
629
|
in the spec for a single request.
|
|
569
630
|
:type _host_index: int, optional
|
|
570
631
|
:return: Returns the result object.
|
|
571
|
-
"""
|
|
632
|
+
""" # noqa: E501
|
|
572
633
|
|
|
573
634
|
_param = self._create_sandbox_serialize(
|
|
574
635
|
create_sandbox=create_sandbox,
|
|
@@ -576,30 +637,35 @@ class SandboxApi:
|
|
|
576
637
|
_request_auth=_request_auth,
|
|
577
638
|
_content_type=_content_type,
|
|
578
639
|
_headers=_headers,
|
|
579
|
-
_host_index=_host_index
|
|
640
|
+
_host_index=_host_index
|
|
580
641
|
)
|
|
581
642
|
|
|
582
643
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
583
|
-
|
|
644
|
+
'200': "Sandbox",
|
|
584
645
|
}
|
|
585
|
-
response_data = self.api_client.call_api(
|
|
646
|
+
response_data = self.api_client.call_api(
|
|
647
|
+
*_param,
|
|
648
|
+
_request_timeout=_request_timeout
|
|
649
|
+
)
|
|
586
650
|
response_data.read()
|
|
587
651
|
return self.api_client.response_deserialize(
|
|
588
652
|
response_data=response_data,
|
|
589
653
|
response_types_map=_response_types_map,
|
|
590
654
|
).data
|
|
591
655
|
|
|
656
|
+
|
|
592
657
|
@validate_call
|
|
593
658
|
def create_sandbox_with_http_info(
|
|
594
659
|
self,
|
|
595
660
|
create_sandbox: CreateSandbox,
|
|
596
|
-
x_daytona_organization_id: Annotated[
|
|
597
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
598
|
-
] = None,
|
|
661
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
599
662
|
_request_timeout: Union[
|
|
600
663
|
None,
|
|
601
664
|
Annotated[StrictFloat, Field(gt=0)],
|
|
602
|
-
Tuple[
|
|
665
|
+
Tuple[
|
|
666
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
667
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
668
|
+
]
|
|
603
669
|
] = None,
|
|
604
670
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
605
671
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -633,7 +699,7 @@ class SandboxApi:
|
|
|
633
699
|
in the spec for a single request.
|
|
634
700
|
:type _host_index: int, optional
|
|
635
701
|
:return: Returns the result object.
|
|
636
|
-
"""
|
|
702
|
+
""" # noqa: E501
|
|
637
703
|
|
|
638
704
|
_param = self._create_sandbox_serialize(
|
|
639
705
|
create_sandbox=create_sandbox,
|
|
@@ -641,30 +707,35 @@ class SandboxApi:
|
|
|
641
707
|
_request_auth=_request_auth,
|
|
642
708
|
_content_type=_content_type,
|
|
643
709
|
_headers=_headers,
|
|
644
|
-
_host_index=_host_index
|
|
710
|
+
_host_index=_host_index
|
|
645
711
|
)
|
|
646
712
|
|
|
647
713
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
648
|
-
|
|
714
|
+
'200': "Sandbox",
|
|
649
715
|
}
|
|
650
|
-
response_data = self.api_client.call_api(
|
|
716
|
+
response_data = self.api_client.call_api(
|
|
717
|
+
*_param,
|
|
718
|
+
_request_timeout=_request_timeout
|
|
719
|
+
)
|
|
651
720
|
response_data.read()
|
|
652
721
|
return self.api_client.response_deserialize(
|
|
653
722
|
response_data=response_data,
|
|
654
723
|
response_types_map=_response_types_map,
|
|
655
724
|
)
|
|
656
725
|
|
|
726
|
+
|
|
657
727
|
@validate_call
|
|
658
728
|
def create_sandbox_without_preload_content(
|
|
659
729
|
self,
|
|
660
730
|
create_sandbox: CreateSandbox,
|
|
661
|
-
x_daytona_organization_id: Annotated[
|
|
662
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
663
|
-
] = None,
|
|
731
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
664
732
|
_request_timeout: Union[
|
|
665
733
|
None,
|
|
666
734
|
Annotated[StrictFloat, Field(gt=0)],
|
|
667
|
-
Tuple[
|
|
735
|
+
Tuple[
|
|
736
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
737
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
738
|
+
]
|
|
668
739
|
] = None,
|
|
669
740
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
670
741
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -698,7 +769,7 @@ class SandboxApi:
|
|
|
698
769
|
in the spec for a single request.
|
|
699
770
|
:type _host_index: int, optional
|
|
700
771
|
:return: Returns the result object.
|
|
701
|
-
"""
|
|
772
|
+
""" # noqa: E501
|
|
702
773
|
|
|
703
774
|
_param = self._create_sandbox_serialize(
|
|
704
775
|
create_sandbox=create_sandbox,
|
|
@@ -706,15 +777,19 @@ class SandboxApi:
|
|
|
706
777
|
_request_auth=_request_auth,
|
|
707
778
|
_content_type=_content_type,
|
|
708
779
|
_headers=_headers,
|
|
709
|
-
_host_index=_host_index
|
|
780
|
+
_host_index=_host_index
|
|
710
781
|
)
|
|
711
782
|
|
|
712
783
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
713
|
-
|
|
784
|
+
'200': "Sandbox",
|
|
714
785
|
}
|
|
715
|
-
response_data = self.api_client.call_api(
|
|
786
|
+
response_data = self.api_client.call_api(
|
|
787
|
+
*_param,
|
|
788
|
+
_request_timeout=_request_timeout
|
|
789
|
+
)
|
|
716
790
|
return response_data.response
|
|
717
791
|
|
|
792
|
+
|
|
718
793
|
def _create_sandbox_serialize(
|
|
719
794
|
self,
|
|
720
795
|
create_sandbox,
|
|
@@ -724,45 +799,63 @@ class SandboxApi:
|
|
|
724
799
|
_headers,
|
|
725
800
|
_host_index,
|
|
726
801
|
) -> RequestSerialized:
|
|
802
|
+
|
|
727
803
|
_host = None
|
|
728
804
|
|
|
729
|
-
_collection_formats: Dict[str, str] = {
|
|
805
|
+
_collection_formats: Dict[str, str] = {
|
|
806
|
+
}
|
|
730
807
|
|
|
731
808
|
_path_params: Dict[str, str] = {}
|
|
732
809
|
_query_params: List[Tuple[str, str]] = []
|
|
733
810
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
734
811
|
_form_params: List[Tuple[str, str]] = []
|
|
735
|
-
_files: Dict[
|
|
812
|
+
_files: Dict[
|
|
813
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
814
|
+
] = {}
|
|
736
815
|
_body_params: Optional[bytes] = None
|
|
737
816
|
|
|
738
817
|
# process the path parameters
|
|
739
818
|
# process the query parameters
|
|
740
819
|
# process the header parameters
|
|
741
820
|
if x_daytona_organization_id is not None:
|
|
742
|
-
_header_params[
|
|
821
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
743
822
|
# process the form parameters
|
|
744
823
|
# process the body parameter
|
|
745
824
|
if create_sandbox is not None:
|
|
746
825
|
_body_params = create_sandbox
|
|
747
826
|
|
|
827
|
+
|
|
748
828
|
# set the HTTP header `Accept`
|
|
749
|
-
if
|
|
750
|
-
_header_params[
|
|
829
|
+
if 'Accept' not in _header_params:
|
|
830
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
831
|
+
[
|
|
832
|
+
'application/json'
|
|
833
|
+
]
|
|
834
|
+
)
|
|
751
835
|
|
|
752
836
|
# set the HTTP header `Content-Type`
|
|
753
837
|
if _content_type:
|
|
754
|
-
_header_params[
|
|
838
|
+
_header_params['Content-Type'] = _content_type
|
|
755
839
|
else:
|
|
756
|
-
_default_content_type =
|
|
840
|
+
_default_content_type = (
|
|
841
|
+
self.api_client.select_header_content_type(
|
|
842
|
+
[
|
|
843
|
+
'application/json'
|
|
844
|
+
]
|
|
845
|
+
)
|
|
846
|
+
)
|
|
757
847
|
if _default_content_type is not None:
|
|
758
|
-
_header_params[
|
|
848
|
+
_header_params['Content-Type'] = _default_content_type
|
|
759
849
|
|
|
760
850
|
# authentication setting
|
|
761
|
-
_auth_settings: List[str] = [
|
|
851
|
+
_auth_settings: List[str] = [
|
|
852
|
+
'bearer',
|
|
853
|
+
'oauth2'
|
|
854
|
+
]
|
|
762
855
|
|
|
763
856
|
return self.api_client.param_serialize(
|
|
764
|
-
method=
|
|
765
|
-
resource_path=
|
|
857
|
+
method='POST',
|
|
858
|
+
resource_path='/sandbox',
|
|
766
859
|
path_params=_path_params,
|
|
767
860
|
query_params=_query_params,
|
|
768
861
|
header_params=_header_params,
|
|
@@ -772,21 +865,25 @@ class SandboxApi:
|
|
|
772
865
|
auth_settings=_auth_settings,
|
|
773
866
|
collection_formats=_collection_formats,
|
|
774
867
|
_host=_host,
|
|
775
|
-
_request_auth=_request_auth
|
|
868
|
+
_request_auth=_request_auth
|
|
776
869
|
)
|
|
777
870
|
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
|
|
778
874
|
@validate_call
|
|
779
875
|
def delete_sandbox(
|
|
780
876
|
self,
|
|
781
877
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
782
878
|
force: StrictBool,
|
|
783
|
-
x_daytona_organization_id: Annotated[
|
|
784
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
785
|
-
] = None,
|
|
879
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
786
880
|
_request_timeout: Union[
|
|
787
881
|
None,
|
|
788
882
|
Annotated[StrictFloat, Field(gt=0)],
|
|
789
|
-
Tuple[
|
|
883
|
+
Tuple[
|
|
884
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
885
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
886
|
+
]
|
|
790
887
|
] = None,
|
|
791
888
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
792
889
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -822,7 +919,7 @@ class SandboxApi:
|
|
|
822
919
|
in the spec for a single request.
|
|
823
920
|
:type _host_index: int, optional
|
|
824
921
|
:return: Returns the result object.
|
|
825
|
-
"""
|
|
922
|
+
""" # noqa: E501
|
|
826
923
|
|
|
827
924
|
_param = self._delete_sandbox_serialize(
|
|
828
925
|
sandbox_id=sandbox_id,
|
|
@@ -831,31 +928,36 @@ class SandboxApi:
|
|
|
831
928
|
_request_auth=_request_auth,
|
|
832
929
|
_content_type=_content_type,
|
|
833
930
|
_headers=_headers,
|
|
834
|
-
_host_index=_host_index
|
|
931
|
+
_host_index=_host_index
|
|
835
932
|
)
|
|
836
933
|
|
|
837
934
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
838
|
-
|
|
935
|
+
'200': None,
|
|
839
936
|
}
|
|
840
|
-
response_data = self.api_client.call_api(
|
|
937
|
+
response_data = self.api_client.call_api(
|
|
938
|
+
*_param,
|
|
939
|
+
_request_timeout=_request_timeout
|
|
940
|
+
)
|
|
841
941
|
response_data.read()
|
|
842
942
|
return self.api_client.response_deserialize(
|
|
843
943
|
response_data=response_data,
|
|
844
944
|
response_types_map=_response_types_map,
|
|
845
945
|
).data
|
|
846
946
|
|
|
947
|
+
|
|
847
948
|
@validate_call
|
|
848
949
|
def delete_sandbox_with_http_info(
|
|
849
950
|
self,
|
|
850
951
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
851
952
|
force: StrictBool,
|
|
852
|
-
x_daytona_organization_id: Annotated[
|
|
853
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
854
|
-
] = None,
|
|
953
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
855
954
|
_request_timeout: Union[
|
|
856
955
|
None,
|
|
857
956
|
Annotated[StrictFloat, Field(gt=0)],
|
|
858
|
-
Tuple[
|
|
957
|
+
Tuple[
|
|
958
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
959
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
960
|
+
]
|
|
859
961
|
] = None,
|
|
860
962
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
861
963
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -891,7 +993,7 @@ class SandboxApi:
|
|
|
891
993
|
in the spec for a single request.
|
|
892
994
|
:type _host_index: int, optional
|
|
893
995
|
:return: Returns the result object.
|
|
894
|
-
"""
|
|
996
|
+
""" # noqa: E501
|
|
895
997
|
|
|
896
998
|
_param = self._delete_sandbox_serialize(
|
|
897
999
|
sandbox_id=sandbox_id,
|
|
@@ -900,31 +1002,36 @@ class SandboxApi:
|
|
|
900
1002
|
_request_auth=_request_auth,
|
|
901
1003
|
_content_type=_content_type,
|
|
902
1004
|
_headers=_headers,
|
|
903
|
-
_host_index=_host_index
|
|
1005
|
+
_host_index=_host_index
|
|
904
1006
|
)
|
|
905
1007
|
|
|
906
1008
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
907
|
-
|
|
1009
|
+
'200': None,
|
|
908
1010
|
}
|
|
909
|
-
response_data = self.api_client.call_api(
|
|
1011
|
+
response_data = self.api_client.call_api(
|
|
1012
|
+
*_param,
|
|
1013
|
+
_request_timeout=_request_timeout
|
|
1014
|
+
)
|
|
910
1015
|
response_data.read()
|
|
911
1016
|
return self.api_client.response_deserialize(
|
|
912
1017
|
response_data=response_data,
|
|
913
1018
|
response_types_map=_response_types_map,
|
|
914
1019
|
)
|
|
915
1020
|
|
|
1021
|
+
|
|
916
1022
|
@validate_call
|
|
917
1023
|
def delete_sandbox_without_preload_content(
|
|
918
1024
|
self,
|
|
919
1025
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
920
1026
|
force: StrictBool,
|
|
921
|
-
x_daytona_organization_id: Annotated[
|
|
922
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
923
|
-
] = None,
|
|
1027
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
924
1028
|
_request_timeout: Union[
|
|
925
1029
|
None,
|
|
926
1030
|
Annotated[StrictFloat, Field(gt=0)],
|
|
927
|
-
Tuple[
|
|
1031
|
+
Tuple[
|
|
1032
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1033
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1034
|
+
]
|
|
928
1035
|
] = None,
|
|
929
1036
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
930
1037
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -960,7 +1067,7 @@ class SandboxApi:
|
|
|
960
1067
|
in the spec for a single request.
|
|
961
1068
|
:type _host_index: int, optional
|
|
962
1069
|
:return: Returns the result object.
|
|
963
|
-
"""
|
|
1070
|
+
""" # noqa: E501
|
|
964
1071
|
|
|
965
1072
|
_param = self._delete_sandbox_serialize(
|
|
966
1073
|
sandbox_id=sandbox_id,
|
|
@@ -969,15 +1076,19 @@ class SandboxApi:
|
|
|
969
1076
|
_request_auth=_request_auth,
|
|
970
1077
|
_content_type=_content_type,
|
|
971
1078
|
_headers=_headers,
|
|
972
|
-
_host_index=_host_index
|
|
1079
|
+
_host_index=_host_index
|
|
973
1080
|
)
|
|
974
1081
|
|
|
975
1082
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
976
|
-
|
|
1083
|
+
'200': None,
|
|
977
1084
|
}
|
|
978
|
-
response_data = self.api_client.call_api(
|
|
1085
|
+
response_data = self.api_client.call_api(
|
|
1086
|
+
*_param,
|
|
1087
|
+
_request_timeout=_request_timeout
|
|
1088
|
+
)
|
|
979
1089
|
return response_data.response
|
|
980
1090
|
|
|
1091
|
+
|
|
981
1092
|
def _delete_sandbox_serialize(
|
|
982
1093
|
self,
|
|
983
1094
|
sandbox_id,
|
|
@@ -988,36 +1099,47 @@ class SandboxApi:
|
|
|
988
1099
|
_headers,
|
|
989
1100
|
_host_index,
|
|
990
1101
|
) -> RequestSerialized:
|
|
1102
|
+
|
|
991
1103
|
_host = None
|
|
992
1104
|
|
|
993
|
-
_collection_formats: Dict[str, str] = {
|
|
1105
|
+
_collection_formats: Dict[str, str] = {
|
|
1106
|
+
}
|
|
994
1107
|
|
|
995
1108
|
_path_params: Dict[str, str] = {}
|
|
996
1109
|
_query_params: List[Tuple[str, str]] = []
|
|
997
1110
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
998
1111
|
_form_params: List[Tuple[str, str]] = []
|
|
999
|
-
_files: Dict[
|
|
1112
|
+
_files: Dict[
|
|
1113
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1114
|
+
] = {}
|
|
1000
1115
|
_body_params: Optional[bytes] = None
|
|
1001
1116
|
|
|
1002
1117
|
# process the path parameters
|
|
1003
1118
|
if sandbox_id is not None:
|
|
1004
|
-
_path_params[
|
|
1119
|
+
_path_params['sandboxId'] = sandbox_id
|
|
1005
1120
|
# process the query parameters
|
|
1006
1121
|
if force is not None:
|
|
1007
|
-
|
|
1008
|
-
|
|
1122
|
+
|
|
1123
|
+
_query_params.append(('force', force))
|
|
1124
|
+
|
|
1009
1125
|
# process the header parameters
|
|
1010
1126
|
if x_daytona_organization_id is not None:
|
|
1011
|
-
_header_params[
|
|
1127
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
1012
1128
|
# process the form parameters
|
|
1013
1129
|
# process the body parameter
|
|
1014
1130
|
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
|
|
1015
1134
|
# authentication setting
|
|
1016
|
-
_auth_settings: List[str] = [
|
|
1135
|
+
_auth_settings: List[str] = [
|
|
1136
|
+
'bearer',
|
|
1137
|
+
'oauth2'
|
|
1138
|
+
]
|
|
1017
1139
|
|
|
1018
1140
|
return self.api_client.param_serialize(
|
|
1019
|
-
method=
|
|
1020
|
-
resource_path=
|
|
1141
|
+
method='DELETE',
|
|
1142
|
+
resource_path='/sandbox/{sandboxId}',
|
|
1021
1143
|
path_params=_path_params,
|
|
1022
1144
|
query_params=_query_params,
|
|
1023
1145
|
header_params=_header_params,
|
|
@@ -1027,21 +1149,25 @@ class SandboxApi:
|
|
|
1027
1149
|
auth_settings=_auth_settings,
|
|
1028
1150
|
collection_formats=_collection_formats,
|
|
1029
1151
|
_host=_host,
|
|
1030
|
-
_request_auth=_request_auth
|
|
1152
|
+
_request_auth=_request_auth
|
|
1031
1153
|
)
|
|
1032
1154
|
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
|
|
1033
1158
|
@validate_call
|
|
1034
1159
|
def get_build_logs(
|
|
1035
1160
|
self,
|
|
1036
1161
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
1037
|
-
x_daytona_organization_id: Annotated[
|
|
1038
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
1039
|
-
] = None,
|
|
1162
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1040
1163
|
follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
|
|
1041
1164
|
_request_timeout: Union[
|
|
1042
1165
|
None,
|
|
1043
1166
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1044
|
-
Tuple[
|
|
1167
|
+
Tuple[
|
|
1168
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1169
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1170
|
+
]
|
|
1045
1171
|
] = None,
|
|
1046
1172
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1047
1173
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1077,7 +1203,7 @@ class SandboxApi:
|
|
|
1077
1203
|
in the spec for a single request.
|
|
1078
1204
|
:type _host_index: int, optional
|
|
1079
1205
|
:return: Returns the result object.
|
|
1080
|
-
"""
|
|
1206
|
+
""" # noqa: E501
|
|
1081
1207
|
|
|
1082
1208
|
_param = self._get_build_logs_serialize(
|
|
1083
1209
|
sandbox_id=sandbox_id,
|
|
@@ -1086,31 +1212,36 @@ class SandboxApi:
|
|
|
1086
1212
|
_request_auth=_request_auth,
|
|
1087
1213
|
_content_type=_content_type,
|
|
1088
1214
|
_headers=_headers,
|
|
1089
|
-
_host_index=_host_index
|
|
1215
|
+
_host_index=_host_index
|
|
1090
1216
|
)
|
|
1091
1217
|
|
|
1092
1218
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1093
|
-
|
|
1219
|
+
'200': None,
|
|
1094
1220
|
}
|
|
1095
|
-
response_data = self.api_client.call_api(
|
|
1221
|
+
response_data = self.api_client.call_api(
|
|
1222
|
+
*_param,
|
|
1223
|
+
_request_timeout=_request_timeout
|
|
1224
|
+
)
|
|
1096
1225
|
response_data.read()
|
|
1097
1226
|
return self.api_client.response_deserialize(
|
|
1098
1227
|
response_data=response_data,
|
|
1099
1228
|
response_types_map=_response_types_map,
|
|
1100
1229
|
).data
|
|
1101
1230
|
|
|
1231
|
+
|
|
1102
1232
|
@validate_call
|
|
1103
1233
|
def get_build_logs_with_http_info(
|
|
1104
1234
|
self,
|
|
1105
1235
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
1106
|
-
x_daytona_organization_id: Annotated[
|
|
1107
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
1108
|
-
] = None,
|
|
1236
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1109
1237
|
follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
|
|
1110
1238
|
_request_timeout: Union[
|
|
1111
1239
|
None,
|
|
1112
1240
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1113
|
-
Tuple[
|
|
1241
|
+
Tuple[
|
|
1242
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1243
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1244
|
+
]
|
|
1114
1245
|
] = None,
|
|
1115
1246
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1116
1247
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1146,7 +1277,7 @@ class SandboxApi:
|
|
|
1146
1277
|
in the spec for a single request.
|
|
1147
1278
|
:type _host_index: int, optional
|
|
1148
1279
|
:return: Returns the result object.
|
|
1149
|
-
"""
|
|
1280
|
+
""" # noqa: E501
|
|
1150
1281
|
|
|
1151
1282
|
_param = self._get_build_logs_serialize(
|
|
1152
1283
|
sandbox_id=sandbox_id,
|
|
@@ -1155,31 +1286,36 @@ class SandboxApi:
|
|
|
1155
1286
|
_request_auth=_request_auth,
|
|
1156
1287
|
_content_type=_content_type,
|
|
1157
1288
|
_headers=_headers,
|
|
1158
|
-
_host_index=_host_index
|
|
1289
|
+
_host_index=_host_index
|
|
1159
1290
|
)
|
|
1160
1291
|
|
|
1161
1292
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1162
|
-
|
|
1293
|
+
'200': None,
|
|
1163
1294
|
}
|
|
1164
|
-
response_data = self.api_client.call_api(
|
|
1295
|
+
response_data = self.api_client.call_api(
|
|
1296
|
+
*_param,
|
|
1297
|
+
_request_timeout=_request_timeout
|
|
1298
|
+
)
|
|
1165
1299
|
response_data.read()
|
|
1166
1300
|
return self.api_client.response_deserialize(
|
|
1167
1301
|
response_data=response_data,
|
|
1168
1302
|
response_types_map=_response_types_map,
|
|
1169
1303
|
)
|
|
1170
1304
|
|
|
1305
|
+
|
|
1171
1306
|
@validate_call
|
|
1172
1307
|
def get_build_logs_without_preload_content(
|
|
1173
1308
|
self,
|
|
1174
1309
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
1175
|
-
x_daytona_organization_id: Annotated[
|
|
1176
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
1177
|
-
] = None,
|
|
1310
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1178
1311
|
follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
|
|
1179
1312
|
_request_timeout: Union[
|
|
1180
1313
|
None,
|
|
1181
1314
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1182
|
-
Tuple[
|
|
1315
|
+
Tuple[
|
|
1316
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1317
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1318
|
+
]
|
|
1183
1319
|
] = None,
|
|
1184
1320
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1185
1321
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1215,7 +1351,7 @@ class SandboxApi:
|
|
|
1215
1351
|
in the spec for a single request.
|
|
1216
1352
|
:type _host_index: int, optional
|
|
1217
1353
|
:return: Returns the result object.
|
|
1218
|
-
"""
|
|
1354
|
+
""" # noqa: E501
|
|
1219
1355
|
|
|
1220
1356
|
_param = self._get_build_logs_serialize(
|
|
1221
1357
|
sandbox_id=sandbox_id,
|
|
@@ -1224,15 +1360,19 @@ class SandboxApi:
|
|
|
1224
1360
|
_request_auth=_request_auth,
|
|
1225
1361
|
_content_type=_content_type,
|
|
1226
1362
|
_headers=_headers,
|
|
1227
|
-
_host_index=_host_index
|
|
1363
|
+
_host_index=_host_index
|
|
1228
1364
|
)
|
|
1229
1365
|
|
|
1230
1366
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1231
|
-
|
|
1367
|
+
'200': None,
|
|
1232
1368
|
}
|
|
1233
|
-
response_data = self.api_client.call_api(
|
|
1369
|
+
response_data = self.api_client.call_api(
|
|
1370
|
+
*_param,
|
|
1371
|
+
_request_timeout=_request_timeout
|
|
1372
|
+
)
|
|
1234
1373
|
return response_data.response
|
|
1235
1374
|
|
|
1375
|
+
|
|
1236
1376
|
def _get_build_logs_serialize(
|
|
1237
1377
|
self,
|
|
1238
1378
|
sandbox_id,
|
|
@@ -1243,36 +1383,47 @@ class SandboxApi:
|
|
|
1243
1383
|
_headers,
|
|
1244
1384
|
_host_index,
|
|
1245
1385
|
) -> RequestSerialized:
|
|
1386
|
+
|
|
1246
1387
|
_host = None
|
|
1247
1388
|
|
|
1248
|
-
_collection_formats: Dict[str, str] = {
|
|
1389
|
+
_collection_formats: Dict[str, str] = {
|
|
1390
|
+
}
|
|
1249
1391
|
|
|
1250
1392
|
_path_params: Dict[str, str] = {}
|
|
1251
1393
|
_query_params: List[Tuple[str, str]] = []
|
|
1252
1394
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1253
1395
|
_form_params: List[Tuple[str, str]] = []
|
|
1254
|
-
_files: Dict[
|
|
1396
|
+
_files: Dict[
|
|
1397
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1398
|
+
] = {}
|
|
1255
1399
|
_body_params: Optional[bytes] = None
|
|
1256
1400
|
|
|
1257
1401
|
# process the path parameters
|
|
1258
1402
|
if sandbox_id is not None:
|
|
1259
|
-
_path_params[
|
|
1403
|
+
_path_params['sandboxId'] = sandbox_id
|
|
1260
1404
|
# process the query parameters
|
|
1261
1405
|
if follow is not None:
|
|
1262
|
-
|
|
1263
|
-
|
|
1406
|
+
|
|
1407
|
+
_query_params.append(('follow', follow))
|
|
1408
|
+
|
|
1264
1409
|
# process the header parameters
|
|
1265
1410
|
if x_daytona_organization_id is not None:
|
|
1266
|
-
_header_params[
|
|
1411
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
1267
1412
|
# process the form parameters
|
|
1268
1413
|
# process the body parameter
|
|
1269
1414
|
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
|
|
1270
1418
|
# authentication setting
|
|
1271
|
-
_auth_settings: List[str] = [
|
|
1419
|
+
_auth_settings: List[str] = [
|
|
1420
|
+
'bearer',
|
|
1421
|
+
'oauth2'
|
|
1422
|
+
]
|
|
1272
1423
|
|
|
1273
1424
|
return self.api_client.param_serialize(
|
|
1274
|
-
method=
|
|
1275
|
-
resource_path=
|
|
1425
|
+
method='GET',
|
|
1426
|
+
resource_path='/sandbox/{sandboxId}/build-logs',
|
|
1276
1427
|
path_params=_path_params,
|
|
1277
1428
|
query_params=_query_params,
|
|
1278
1429
|
header_params=_header_params,
|
|
@@ -1282,21 +1433,25 @@ class SandboxApi:
|
|
|
1282
1433
|
auth_settings=_auth_settings,
|
|
1283
1434
|
collection_formats=_collection_formats,
|
|
1284
1435
|
_host=_host,
|
|
1285
|
-
_request_auth=_request_auth
|
|
1436
|
+
_request_auth=_request_auth
|
|
1286
1437
|
)
|
|
1287
1438
|
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
|
|
1288
1442
|
@validate_call
|
|
1289
1443
|
def get_port_preview_url(
|
|
1290
1444
|
self,
|
|
1291
1445
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
1292
1446
|
port: Annotated[Union[StrictFloat, StrictInt], Field(description="Port number to get preview URL for")],
|
|
1293
|
-
x_daytona_organization_id: Annotated[
|
|
1294
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
1295
|
-
] = None,
|
|
1447
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1296
1448
|
_request_timeout: Union[
|
|
1297
1449
|
None,
|
|
1298
1450
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1299
|
-
Tuple[
|
|
1451
|
+
Tuple[
|
|
1452
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1453
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1454
|
+
]
|
|
1300
1455
|
] = None,
|
|
1301
1456
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1302
1457
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1332,7 +1487,7 @@ class SandboxApi:
|
|
|
1332
1487
|
in the spec for a single request.
|
|
1333
1488
|
:type _host_index: int, optional
|
|
1334
1489
|
:return: Returns the result object.
|
|
1335
|
-
"""
|
|
1490
|
+
""" # noqa: E501
|
|
1336
1491
|
|
|
1337
1492
|
_param = self._get_port_preview_url_serialize(
|
|
1338
1493
|
sandbox_id=sandbox_id,
|
|
@@ -1341,31 +1496,36 @@ class SandboxApi:
|
|
|
1341
1496
|
_request_auth=_request_auth,
|
|
1342
1497
|
_content_type=_content_type,
|
|
1343
1498
|
_headers=_headers,
|
|
1344
|
-
_host_index=_host_index
|
|
1499
|
+
_host_index=_host_index
|
|
1345
1500
|
)
|
|
1346
1501
|
|
|
1347
1502
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1348
|
-
|
|
1503
|
+
'200': "PortPreviewUrl",
|
|
1349
1504
|
}
|
|
1350
|
-
response_data = self.api_client.call_api(
|
|
1505
|
+
response_data = self.api_client.call_api(
|
|
1506
|
+
*_param,
|
|
1507
|
+
_request_timeout=_request_timeout
|
|
1508
|
+
)
|
|
1351
1509
|
response_data.read()
|
|
1352
1510
|
return self.api_client.response_deserialize(
|
|
1353
1511
|
response_data=response_data,
|
|
1354
1512
|
response_types_map=_response_types_map,
|
|
1355
1513
|
).data
|
|
1356
1514
|
|
|
1515
|
+
|
|
1357
1516
|
@validate_call
|
|
1358
1517
|
def get_port_preview_url_with_http_info(
|
|
1359
1518
|
self,
|
|
1360
1519
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
1361
1520
|
port: Annotated[Union[StrictFloat, StrictInt], Field(description="Port number to get preview URL for")],
|
|
1362
|
-
x_daytona_organization_id: Annotated[
|
|
1363
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
1364
|
-
] = None,
|
|
1521
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1365
1522
|
_request_timeout: Union[
|
|
1366
1523
|
None,
|
|
1367
1524
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1368
|
-
Tuple[
|
|
1525
|
+
Tuple[
|
|
1526
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1527
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1528
|
+
]
|
|
1369
1529
|
] = None,
|
|
1370
1530
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1371
1531
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1401,7 +1561,7 @@ class SandboxApi:
|
|
|
1401
1561
|
in the spec for a single request.
|
|
1402
1562
|
:type _host_index: int, optional
|
|
1403
1563
|
:return: Returns the result object.
|
|
1404
|
-
"""
|
|
1564
|
+
""" # noqa: E501
|
|
1405
1565
|
|
|
1406
1566
|
_param = self._get_port_preview_url_serialize(
|
|
1407
1567
|
sandbox_id=sandbox_id,
|
|
@@ -1410,31 +1570,36 @@ class SandboxApi:
|
|
|
1410
1570
|
_request_auth=_request_auth,
|
|
1411
1571
|
_content_type=_content_type,
|
|
1412
1572
|
_headers=_headers,
|
|
1413
|
-
_host_index=_host_index
|
|
1573
|
+
_host_index=_host_index
|
|
1414
1574
|
)
|
|
1415
1575
|
|
|
1416
1576
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1417
|
-
|
|
1577
|
+
'200': "PortPreviewUrl",
|
|
1418
1578
|
}
|
|
1419
|
-
response_data = self.api_client.call_api(
|
|
1579
|
+
response_data = self.api_client.call_api(
|
|
1580
|
+
*_param,
|
|
1581
|
+
_request_timeout=_request_timeout
|
|
1582
|
+
)
|
|
1420
1583
|
response_data.read()
|
|
1421
1584
|
return self.api_client.response_deserialize(
|
|
1422
1585
|
response_data=response_data,
|
|
1423
1586
|
response_types_map=_response_types_map,
|
|
1424
1587
|
)
|
|
1425
1588
|
|
|
1589
|
+
|
|
1426
1590
|
@validate_call
|
|
1427
1591
|
def get_port_preview_url_without_preload_content(
|
|
1428
1592
|
self,
|
|
1429
1593
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
1430
1594
|
port: Annotated[Union[StrictFloat, StrictInt], Field(description="Port number to get preview URL for")],
|
|
1431
|
-
x_daytona_organization_id: Annotated[
|
|
1432
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
1433
|
-
] = None,
|
|
1595
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1434
1596
|
_request_timeout: Union[
|
|
1435
1597
|
None,
|
|
1436
1598
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1437
|
-
Tuple[
|
|
1599
|
+
Tuple[
|
|
1600
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1601
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1602
|
+
]
|
|
1438
1603
|
] = None,
|
|
1439
1604
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1440
1605
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1470,7 +1635,7 @@ class SandboxApi:
|
|
|
1470
1635
|
in the spec for a single request.
|
|
1471
1636
|
:type _host_index: int, optional
|
|
1472
1637
|
:return: Returns the result object.
|
|
1473
|
-
"""
|
|
1638
|
+
""" # noqa: E501
|
|
1474
1639
|
|
|
1475
1640
|
_param = self._get_port_preview_url_serialize(
|
|
1476
1641
|
sandbox_id=sandbox_id,
|
|
@@ -1479,15 +1644,19 @@ class SandboxApi:
|
|
|
1479
1644
|
_request_auth=_request_auth,
|
|
1480
1645
|
_content_type=_content_type,
|
|
1481
1646
|
_headers=_headers,
|
|
1482
|
-
_host_index=_host_index
|
|
1647
|
+
_host_index=_host_index
|
|
1483
1648
|
)
|
|
1484
1649
|
|
|
1485
1650
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1486
|
-
|
|
1651
|
+
'200': "PortPreviewUrl",
|
|
1487
1652
|
}
|
|
1488
|
-
response_data = self.api_client.call_api(
|
|
1653
|
+
response_data = self.api_client.call_api(
|
|
1654
|
+
*_param,
|
|
1655
|
+
_request_timeout=_request_timeout
|
|
1656
|
+
)
|
|
1489
1657
|
return response_data.response
|
|
1490
1658
|
|
|
1659
|
+
|
|
1491
1660
|
def _get_port_preview_url_serialize(
|
|
1492
1661
|
self,
|
|
1493
1662
|
sandbox_id,
|
|
@@ -1498,39 +1667,52 @@ class SandboxApi:
|
|
|
1498
1667
|
_headers,
|
|
1499
1668
|
_host_index,
|
|
1500
1669
|
) -> RequestSerialized:
|
|
1670
|
+
|
|
1501
1671
|
_host = None
|
|
1502
1672
|
|
|
1503
|
-
_collection_formats: Dict[str, str] = {
|
|
1673
|
+
_collection_formats: Dict[str, str] = {
|
|
1674
|
+
}
|
|
1504
1675
|
|
|
1505
1676
|
_path_params: Dict[str, str] = {}
|
|
1506
1677
|
_query_params: List[Tuple[str, str]] = []
|
|
1507
1678
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1508
1679
|
_form_params: List[Tuple[str, str]] = []
|
|
1509
|
-
_files: Dict[
|
|
1680
|
+
_files: Dict[
|
|
1681
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1682
|
+
] = {}
|
|
1510
1683
|
_body_params: Optional[bytes] = None
|
|
1511
1684
|
|
|
1512
1685
|
# process the path parameters
|
|
1513
1686
|
if sandbox_id is not None:
|
|
1514
|
-
_path_params[
|
|
1687
|
+
_path_params['sandboxId'] = sandbox_id
|
|
1515
1688
|
if port is not None:
|
|
1516
|
-
_path_params[
|
|
1689
|
+
_path_params['port'] = port
|
|
1517
1690
|
# process the query parameters
|
|
1518
1691
|
# process the header parameters
|
|
1519
1692
|
if x_daytona_organization_id is not None:
|
|
1520
|
-
_header_params[
|
|
1693
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
1521
1694
|
# process the form parameters
|
|
1522
1695
|
# process the body parameter
|
|
1523
1696
|
|
|
1697
|
+
|
|
1524
1698
|
# set the HTTP header `Accept`
|
|
1525
|
-
if
|
|
1526
|
-
_header_params[
|
|
1699
|
+
if 'Accept' not in _header_params:
|
|
1700
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1701
|
+
[
|
|
1702
|
+
'application/json'
|
|
1703
|
+
]
|
|
1704
|
+
)
|
|
1705
|
+
|
|
1527
1706
|
|
|
1528
1707
|
# authentication setting
|
|
1529
|
-
_auth_settings: List[str] = [
|
|
1708
|
+
_auth_settings: List[str] = [
|
|
1709
|
+
'bearer',
|
|
1710
|
+
'oauth2'
|
|
1711
|
+
]
|
|
1530
1712
|
|
|
1531
1713
|
return self.api_client.param_serialize(
|
|
1532
|
-
method=
|
|
1533
|
-
resource_path=
|
|
1714
|
+
method='GET',
|
|
1715
|
+
resource_path='/sandbox/{sandboxId}/ports/{port}/preview-url',
|
|
1534
1716
|
path_params=_path_params,
|
|
1535
1717
|
query_params=_query_params,
|
|
1536
1718
|
header_params=_header_params,
|
|
@@ -1540,21 +1722,25 @@ class SandboxApi:
|
|
|
1540
1722
|
auth_settings=_auth_settings,
|
|
1541
1723
|
collection_formats=_collection_formats,
|
|
1542
1724
|
_host=_host,
|
|
1543
|
-
_request_auth=_request_auth
|
|
1725
|
+
_request_auth=_request_auth
|
|
1544
1726
|
)
|
|
1545
1727
|
|
|
1728
|
+
|
|
1729
|
+
|
|
1730
|
+
|
|
1546
1731
|
@validate_call
|
|
1547
1732
|
def get_sandbox(
|
|
1548
1733
|
self,
|
|
1549
1734
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
1550
|
-
x_daytona_organization_id: Annotated[
|
|
1551
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
1552
|
-
] = None,
|
|
1735
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1553
1736
|
verbose: Annotated[Optional[StrictBool], Field(description="Include verbose output")] = None,
|
|
1554
1737
|
_request_timeout: Union[
|
|
1555
1738
|
None,
|
|
1556
1739
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1557
|
-
Tuple[
|
|
1740
|
+
Tuple[
|
|
1741
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1742
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1743
|
+
]
|
|
1558
1744
|
] = None,
|
|
1559
1745
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1560
1746
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1590,7 +1776,7 @@ class SandboxApi:
|
|
|
1590
1776
|
in the spec for a single request.
|
|
1591
1777
|
:type _host_index: int, optional
|
|
1592
1778
|
:return: Returns the result object.
|
|
1593
|
-
"""
|
|
1779
|
+
""" # noqa: E501
|
|
1594
1780
|
|
|
1595
1781
|
_param = self._get_sandbox_serialize(
|
|
1596
1782
|
sandbox_id=sandbox_id,
|
|
@@ -1599,31 +1785,36 @@ class SandboxApi:
|
|
|
1599
1785
|
_request_auth=_request_auth,
|
|
1600
1786
|
_content_type=_content_type,
|
|
1601
1787
|
_headers=_headers,
|
|
1602
|
-
_host_index=_host_index
|
|
1788
|
+
_host_index=_host_index
|
|
1603
1789
|
)
|
|
1604
1790
|
|
|
1605
1791
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1606
|
-
|
|
1792
|
+
'200': "Sandbox",
|
|
1607
1793
|
}
|
|
1608
|
-
response_data = self.api_client.call_api(
|
|
1794
|
+
response_data = self.api_client.call_api(
|
|
1795
|
+
*_param,
|
|
1796
|
+
_request_timeout=_request_timeout
|
|
1797
|
+
)
|
|
1609
1798
|
response_data.read()
|
|
1610
1799
|
return self.api_client.response_deserialize(
|
|
1611
1800
|
response_data=response_data,
|
|
1612
1801
|
response_types_map=_response_types_map,
|
|
1613
1802
|
).data
|
|
1614
1803
|
|
|
1804
|
+
|
|
1615
1805
|
@validate_call
|
|
1616
1806
|
def get_sandbox_with_http_info(
|
|
1617
1807
|
self,
|
|
1618
1808
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
1619
|
-
x_daytona_organization_id: Annotated[
|
|
1620
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
1621
|
-
] = None,
|
|
1809
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1622
1810
|
verbose: Annotated[Optional[StrictBool], Field(description="Include verbose output")] = None,
|
|
1623
1811
|
_request_timeout: Union[
|
|
1624
1812
|
None,
|
|
1625
1813
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1626
|
-
Tuple[
|
|
1814
|
+
Tuple[
|
|
1815
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1816
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1817
|
+
]
|
|
1627
1818
|
] = None,
|
|
1628
1819
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1629
1820
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1659,7 +1850,7 @@ class SandboxApi:
|
|
|
1659
1850
|
in the spec for a single request.
|
|
1660
1851
|
:type _host_index: int, optional
|
|
1661
1852
|
:return: Returns the result object.
|
|
1662
|
-
"""
|
|
1853
|
+
""" # noqa: E501
|
|
1663
1854
|
|
|
1664
1855
|
_param = self._get_sandbox_serialize(
|
|
1665
1856
|
sandbox_id=sandbox_id,
|
|
@@ -1668,31 +1859,36 @@ class SandboxApi:
|
|
|
1668
1859
|
_request_auth=_request_auth,
|
|
1669
1860
|
_content_type=_content_type,
|
|
1670
1861
|
_headers=_headers,
|
|
1671
|
-
_host_index=_host_index
|
|
1862
|
+
_host_index=_host_index
|
|
1672
1863
|
)
|
|
1673
1864
|
|
|
1674
1865
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1675
|
-
|
|
1866
|
+
'200': "Sandbox",
|
|
1676
1867
|
}
|
|
1677
|
-
response_data = self.api_client.call_api(
|
|
1868
|
+
response_data = self.api_client.call_api(
|
|
1869
|
+
*_param,
|
|
1870
|
+
_request_timeout=_request_timeout
|
|
1871
|
+
)
|
|
1678
1872
|
response_data.read()
|
|
1679
1873
|
return self.api_client.response_deserialize(
|
|
1680
1874
|
response_data=response_data,
|
|
1681
1875
|
response_types_map=_response_types_map,
|
|
1682
1876
|
)
|
|
1683
1877
|
|
|
1878
|
+
|
|
1684
1879
|
@validate_call
|
|
1685
1880
|
def get_sandbox_without_preload_content(
|
|
1686
1881
|
self,
|
|
1687
1882
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
1688
|
-
x_daytona_organization_id: Annotated[
|
|
1689
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
1690
|
-
] = None,
|
|
1883
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1691
1884
|
verbose: Annotated[Optional[StrictBool], Field(description="Include verbose output")] = None,
|
|
1692
1885
|
_request_timeout: Union[
|
|
1693
1886
|
None,
|
|
1694
1887
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1695
|
-
Tuple[
|
|
1888
|
+
Tuple[
|
|
1889
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1890
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1891
|
+
]
|
|
1696
1892
|
] = None,
|
|
1697
1893
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1698
1894
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1728,7 +1924,7 @@ class SandboxApi:
|
|
|
1728
1924
|
in the spec for a single request.
|
|
1729
1925
|
:type _host_index: int, optional
|
|
1730
1926
|
:return: Returns the result object.
|
|
1731
|
-
"""
|
|
1927
|
+
""" # noqa: E501
|
|
1732
1928
|
|
|
1733
1929
|
_param = self._get_sandbox_serialize(
|
|
1734
1930
|
sandbox_id=sandbox_id,
|
|
@@ -1737,15 +1933,19 @@ class SandboxApi:
|
|
|
1737
1933
|
_request_auth=_request_auth,
|
|
1738
1934
|
_content_type=_content_type,
|
|
1739
1935
|
_headers=_headers,
|
|
1740
|
-
_host_index=_host_index
|
|
1936
|
+
_host_index=_host_index
|
|
1741
1937
|
)
|
|
1742
1938
|
|
|
1743
1939
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1744
|
-
|
|
1940
|
+
'200': "Sandbox",
|
|
1745
1941
|
}
|
|
1746
|
-
response_data = self.api_client.call_api(
|
|
1942
|
+
response_data = self.api_client.call_api(
|
|
1943
|
+
*_param,
|
|
1944
|
+
_request_timeout=_request_timeout
|
|
1945
|
+
)
|
|
1747
1946
|
return response_data.response
|
|
1748
1947
|
|
|
1948
|
+
|
|
1749
1949
|
def _get_sandbox_serialize(
|
|
1750
1950
|
self,
|
|
1751
1951
|
sandbox_id,
|
|
@@ -1756,40 +1956,54 @@ class SandboxApi:
|
|
|
1756
1956
|
_headers,
|
|
1757
1957
|
_host_index,
|
|
1758
1958
|
) -> RequestSerialized:
|
|
1959
|
+
|
|
1759
1960
|
_host = None
|
|
1760
1961
|
|
|
1761
|
-
_collection_formats: Dict[str, str] = {
|
|
1962
|
+
_collection_formats: Dict[str, str] = {
|
|
1963
|
+
}
|
|
1762
1964
|
|
|
1763
1965
|
_path_params: Dict[str, str] = {}
|
|
1764
1966
|
_query_params: List[Tuple[str, str]] = []
|
|
1765
1967
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1766
1968
|
_form_params: List[Tuple[str, str]] = []
|
|
1767
|
-
_files: Dict[
|
|
1969
|
+
_files: Dict[
|
|
1970
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1971
|
+
] = {}
|
|
1768
1972
|
_body_params: Optional[bytes] = None
|
|
1769
1973
|
|
|
1770
1974
|
# process the path parameters
|
|
1771
1975
|
if sandbox_id is not None:
|
|
1772
|
-
_path_params[
|
|
1976
|
+
_path_params['sandboxId'] = sandbox_id
|
|
1773
1977
|
# process the query parameters
|
|
1774
1978
|
if verbose is not None:
|
|
1775
|
-
|
|
1776
|
-
|
|
1979
|
+
|
|
1980
|
+
_query_params.append(('verbose', verbose))
|
|
1981
|
+
|
|
1777
1982
|
# process the header parameters
|
|
1778
1983
|
if x_daytona_organization_id is not None:
|
|
1779
|
-
_header_params[
|
|
1984
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
1780
1985
|
# process the form parameters
|
|
1781
1986
|
# process the body parameter
|
|
1782
1987
|
|
|
1988
|
+
|
|
1783
1989
|
# set the HTTP header `Accept`
|
|
1784
|
-
if
|
|
1785
|
-
_header_params[
|
|
1990
|
+
if 'Accept' not in _header_params:
|
|
1991
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1992
|
+
[
|
|
1993
|
+
'application/json'
|
|
1994
|
+
]
|
|
1995
|
+
)
|
|
1996
|
+
|
|
1786
1997
|
|
|
1787
1998
|
# authentication setting
|
|
1788
|
-
_auth_settings: List[str] = [
|
|
1999
|
+
_auth_settings: List[str] = [
|
|
2000
|
+
'bearer',
|
|
2001
|
+
'oauth2'
|
|
2002
|
+
]
|
|
1789
2003
|
|
|
1790
2004
|
return self.api_client.param_serialize(
|
|
1791
|
-
method=
|
|
1792
|
-
resource_path=
|
|
2005
|
+
method='GET',
|
|
2006
|
+
resource_path='/sandbox/{sandboxId}',
|
|
1793
2007
|
path_params=_path_params,
|
|
1794
2008
|
query_params=_query_params,
|
|
1795
2009
|
header_params=_header_params,
|
|
@@ -1799,21 +2013,25 @@ class SandboxApi:
|
|
|
1799
2013
|
auth_settings=_auth_settings,
|
|
1800
2014
|
collection_formats=_collection_formats,
|
|
1801
2015
|
_host=_host,
|
|
1802
|
-
_request_auth=_request_auth
|
|
2016
|
+
_request_auth=_request_auth
|
|
1803
2017
|
)
|
|
1804
2018
|
|
|
2019
|
+
|
|
2020
|
+
|
|
2021
|
+
|
|
1805
2022
|
@validate_call
|
|
1806
2023
|
def list_sandboxes(
|
|
1807
2024
|
self,
|
|
1808
|
-
x_daytona_organization_id: Annotated[
|
|
1809
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
1810
|
-
] = None,
|
|
2025
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1811
2026
|
verbose: Annotated[Optional[StrictBool], Field(description="Include verbose output")] = None,
|
|
1812
2027
|
labels: Annotated[Optional[StrictStr], Field(description="JSON encoded labels to filter by")] = None,
|
|
1813
2028
|
_request_timeout: Union[
|
|
1814
2029
|
None,
|
|
1815
2030
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1816
|
-
Tuple[
|
|
2031
|
+
Tuple[
|
|
2032
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2033
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2034
|
+
]
|
|
1817
2035
|
] = None,
|
|
1818
2036
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1819
2037
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1849,7 +2067,7 @@ class SandboxApi:
|
|
|
1849
2067
|
in the spec for a single request.
|
|
1850
2068
|
:type _host_index: int, optional
|
|
1851
2069
|
:return: Returns the result object.
|
|
1852
|
-
"""
|
|
2070
|
+
""" # noqa: E501
|
|
1853
2071
|
|
|
1854
2072
|
_param = self._list_sandboxes_serialize(
|
|
1855
2073
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
@@ -1858,31 +2076,36 @@ class SandboxApi:
|
|
|
1858
2076
|
_request_auth=_request_auth,
|
|
1859
2077
|
_content_type=_content_type,
|
|
1860
2078
|
_headers=_headers,
|
|
1861
|
-
_host_index=_host_index
|
|
2079
|
+
_host_index=_host_index
|
|
1862
2080
|
)
|
|
1863
2081
|
|
|
1864
2082
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1865
|
-
|
|
2083
|
+
'200': "List[Sandbox]",
|
|
1866
2084
|
}
|
|
1867
|
-
response_data = self.api_client.call_api(
|
|
2085
|
+
response_data = self.api_client.call_api(
|
|
2086
|
+
*_param,
|
|
2087
|
+
_request_timeout=_request_timeout
|
|
2088
|
+
)
|
|
1868
2089
|
response_data.read()
|
|
1869
2090
|
return self.api_client.response_deserialize(
|
|
1870
2091
|
response_data=response_data,
|
|
1871
2092
|
response_types_map=_response_types_map,
|
|
1872
2093
|
).data
|
|
1873
2094
|
|
|
2095
|
+
|
|
1874
2096
|
@validate_call
|
|
1875
2097
|
def list_sandboxes_with_http_info(
|
|
1876
2098
|
self,
|
|
1877
|
-
x_daytona_organization_id: Annotated[
|
|
1878
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
1879
|
-
] = None,
|
|
2099
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1880
2100
|
verbose: Annotated[Optional[StrictBool], Field(description="Include verbose output")] = None,
|
|
1881
2101
|
labels: Annotated[Optional[StrictStr], Field(description="JSON encoded labels to filter by")] = None,
|
|
1882
2102
|
_request_timeout: Union[
|
|
1883
2103
|
None,
|
|
1884
2104
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1885
|
-
Tuple[
|
|
2105
|
+
Tuple[
|
|
2106
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2107
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2108
|
+
]
|
|
1886
2109
|
] = None,
|
|
1887
2110
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1888
2111
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1918,7 +2141,7 @@ class SandboxApi:
|
|
|
1918
2141
|
in the spec for a single request.
|
|
1919
2142
|
:type _host_index: int, optional
|
|
1920
2143
|
:return: Returns the result object.
|
|
1921
|
-
"""
|
|
2144
|
+
""" # noqa: E501
|
|
1922
2145
|
|
|
1923
2146
|
_param = self._list_sandboxes_serialize(
|
|
1924
2147
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
@@ -1927,31 +2150,36 @@ class SandboxApi:
|
|
|
1927
2150
|
_request_auth=_request_auth,
|
|
1928
2151
|
_content_type=_content_type,
|
|
1929
2152
|
_headers=_headers,
|
|
1930
|
-
_host_index=_host_index
|
|
2153
|
+
_host_index=_host_index
|
|
1931
2154
|
)
|
|
1932
2155
|
|
|
1933
2156
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1934
|
-
|
|
2157
|
+
'200': "List[Sandbox]",
|
|
1935
2158
|
}
|
|
1936
|
-
response_data = self.api_client.call_api(
|
|
2159
|
+
response_data = self.api_client.call_api(
|
|
2160
|
+
*_param,
|
|
2161
|
+
_request_timeout=_request_timeout
|
|
2162
|
+
)
|
|
1937
2163
|
response_data.read()
|
|
1938
2164
|
return self.api_client.response_deserialize(
|
|
1939
2165
|
response_data=response_data,
|
|
1940
2166
|
response_types_map=_response_types_map,
|
|
1941
2167
|
)
|
|
1942
2168
|
|
|
2169
|
+
|
|
1943
2170
|
@validate_call
|
|
1944
2171
|
def list_sandboxes_without_preload_content(
|
|
1945
2172
|
self,
|
|
1946
|
-
x_daytona_organization_id: Annotated[
|
|
1947
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
1948
|
-
] = None,
|
|
2173
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1949
2174
|
verbose: Annotated[Optional[StrictBool], Field(description="Include verbose output")] = None,
|
|
1950
2175
|
labels: Annotated[Optional[StrictStr], Field(description="JSON encoded labels to filter by")] = None,
|
|
1951
2176
|
_request_timeout: Union[
|
|
1952
2177
|
None,
|
|
1953
2178
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1954
|
-
Tuple[
|
|
2179
|
+
Tuple[
|
|
2180
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2181
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2182
|
+
]
|
|
1955
2183
|
] = None,
|
|
1956
2184
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1957
2185
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1987,7 +2215,7 @@ class SandboxApi:
|
|
|
1987
2215
|
in the spec for a single request.
|
|
1988
2216
|
:type _host_index: int, optional
|
|
1989
2217
|
:return: Returns the result object.
|
|
1990
|
-
"""
|
|
2218
|
+
""" # noqa: E501
|
|
1991
2219
|
|
|
1992
2220
|
_param = self._list_sandboxes_serialize(
|
|
1993
2221
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
@@ -1996,15 +2224,19 @@ class SandboxApi:
|
|
|
1996
2224
|
_request_auth=_request_auth,
|
|
1997
2225
|
_content_type=_content_type,
|
|
1998
2226
|
_headers=_headers,
|
|
1999
|
-
_host_index=_host_index
|
|
2227
|
+
_host_index=_host_index
|
|
2000
2228
|
)
|
|
2001
2229
|
|
|
2002
2230
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2003
|
-
|
|
2231
|
+
'200': "List[Sandbox]",
|
|
2004
2232
|
}
|
|
2005
|
-
response_data = self.api_client.call_api(
|
|
2233
|
+
response_data = self.api_client.call_api(
|
|
2234
|
+
*_param,
|
|
2235
|
+
_request_timeout=_request_timeout
|
|
2236
|
+
)
|
|
2006
2237
|
return response_data.response
|
|
2007
2238
|
|
|
2239
|
+
|
|
2008
2240
|
def _list_sandboxes_serialize(
|
|
2009
2241
|
self,
|
|
2010
2242
|
x_daytona_organization_id,
|
|
@@ -2015,41 +2247,56 @@ class SandboxApi:
|
|
|
2015
2247
|
_headers,
|
|
2016
2248
|
_host_index,
|
|
2017
2249
|
) -> RequestSerialized:
|
|
2250
|
+
|
|
2018
2251
|
_host = None
|
|
2019
2252
|
|
|
2020
|
-
_collection_formats: Dict[str, str] = {
|
|
2253
|
+
_collection_formats: Dict[str, str] = {
|
|
2254
|
+
}
|
|
2021
2255
|
|
|
2022
2256
|
_path_params: Dict[str, str] = {}
|
|
2023
2257
|
_query_params: List[Tuple[str, str]] = []
|
|
2024
2258
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2025
2259
|
_form_params: List[Tuple[str, str]] = []
|
|
2026
|
-
_files: Dict[
|
|
2260
|
+
_files: Dict[
|
|
2261
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2262
|
+
] = {}
|
|
2027
2263
|
_body_params: Optional[bytes] = None
|
|
2028
2264
|
|
|
2029
2265
|
# process the path parameters
|
|
2030
2266
|
# process the query parameters
|
|
2031
2267
|
if verbose is not None:
|
|
2032
|
-
|
|
2033
|
-
|
|
2268
|
+
|
|
2269
|
+
_query_params.append(('verbose', verbose))
|
|
2270
|
+
|
|
2034
2271
|
if labels is not None:
|
|
2035
|
-
|
|
2036
|
-
|
|
2272
|
+
|
|
2273
|
+
_query_params.append(('labels', labels))
|
|
2274
|
+
|
|
2037
2275
|
# process the header parameters
|
|
2038
2276
|
if x_daytona_organization_id is not None:
|
|
2039
|
-
_header_params[
|
|
2277
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
2040
2278
|
# process the form parameters
|
|
2041
2279
|
# process the body parameter
|
|
2042
2280
|
|
|
2281
|
+
|
|
2043
2282
|
# set the HTTP header `Accept`
|
|
2044
|
-
if
|
|
2045
|
-
_header_params[
|
|
2283
|
+
if 'Accept' not in _header_params:
|
|
2284
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2285
|
+
[
|
|
2286
|
+
'application/json'
|
|
2287
|
+
]
|
|
2288
|
+
)
|
|
2289
|
+
|
|
2046
2290
|
|
|
2047
2291
|
# authentication setting
|
|
2048
|
-
_auth_settings: List[str] = [
|
|
2292
|
+
_auth_settings: List[str] = [
|
|
2293
|
+
'bearer',
|
|
2294
|
+
'oauth2'
|
|
2295
|
+
]
|
|
2049
2296
|
|
|
2050
2297
|
return self.api_client.param_serialize(
|
|
2051
|
-
method=
|
|
2052
|
-
resource_path=
|
|
2298
|
+
method='GET',
|
|
2299
|
+
resource_path='/sandbox',
|
|
2053
2300
|
path_params=_path_params,
|
|
2054
2301
|
query_params=_query_params,
|
|
2055
2302
|
header_params=_header_params,
|
|
@@ -2059,21 +2306,25 @@ class SandboxApi:
|
|
|
2059
2306
|
auth_settings=_auth_settings,
|
|
2060
2307
|
collection_formats=_collection_formats,
|
|
2061
2308
|
_host=_host,
|
|
2062
|
-
_request_auth=_request_auth
|
|
2309
|
+
_request_auth=_request_auth
|
|
2063
2310
|
)
|
|
2064
2311
|
|
|
2312
|
+
|
|
2313
|
+
|
|
2314
|
+
|
|
2065
2315
|
@validate_call
|
|
2066
2316
|
def replace_labels(
|
|
2067
2317
|
self,
|
|
2068
2318
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
2069
2319
|
sandbox_labels: SandboxLabels,
|
|
2070
|
-
x_daytona_organization_id: Annotated[
|
|
2071
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
2072
|
-
] = None,
|
|
2320
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2073
2321
|
_request_timeout: Union[
|
|
2074
2322
|
None,
|
|
2075
2323
|
Annotated[StrictFloat, Field(gt=0)],
|
|
2076
|
-
Tuple[
|
|
2324
|
+
Tuple[
|
|
2325
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2326
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2327
|
+
]
|
|
2077
2328
|
] = None,
|
|
2078
2329
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2079
2330
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -2109,7 +2360,7 @@ class SandboxApi:
|
|
|
2109
2360
|
in the spec for a single request.
|
|
2110
2361
|
:type _host_index: int, optional
|
|
2111
2362
|
:return: Returns the result object.
|
|
2112
|
-
"""
|
|
2363
|
+
""" # noqa: E501
|
|
2113
2364
|
|
|
2114
2365
|
_param = self._replace_labels_serialize(
|
|
2115
2366
|
sandbox_id=sandbox_id,
|
|
@@ -2118,31 +2369,36 @@ class SandboxApi:
|
|
|
2118
2369
|
_request_auth=_request_auth,
|
|
2119
2370
|
_content_type=_content_type,
|
|
2120
2371
|
_headers=_headers,
|
|
2121
|
-
_host_index=_host_index
|
|
2372
|
+
_host_index=_host_index
|
|
2122
2373
|
)
|
|
2123
2374
|
|
|
2124
2375
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2125
|
-
|
|
2376
|
+
'200': "SandboxLabels",
|
|
2126
2377
|
}
|
|
2127
|
-
response_data = self.api_client.call_api(
|
|
2378
|
+
response_data = self.api_client.call_api(
|
|
2379
|
+
*_param,
|
|
2380
|
+
_request_timeout=_request_timeout
|
|
2381
|
+
)
|
|
2128
2382
|
response_data.read()
|
|
2129
2383
|
return self.api_client.response_deserialize(
|
|
2130
2384
|
response_data=response_data,
|
|
2131
2385
|
response_types_map=_response_types_map,
|
|
2132
2386
|
).data
|
|
2133
2387
|
|
|
2388
|
+
|
|
2134
2389
|
@validate_call
|
|
2135
2390
|
def replace_labels_with_http_info(
|
|
2136
2391
|
self,
|
|
2137
2392
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
2138
2393
|
sandbox_labels: SandboxLabels,
|
|
2139
|
-
x_daytona_organization_id: Annotated[
|
|
2140
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
2141
|
-
] = None,
|
|
2394
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2142
2395
|
_request_timeout: Union[
|
|
2143
2396
|
None,
|
|
2144
2397
|
Annotated[StrictFloat, Field(gt=0)],
|
|
2145
|
-
Tuple[
|
|
2398
|
+
Tuple[
|
|
2399
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2400
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2401
|
+
]
|
|
2146
2402
|
] = None,
|
|
2147
2403
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2148
2404
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -2178,7 +2434,7 @@ class SandboxApi:
|
|
|
2178
2434
|
in the spec for a single request.
|
|
2179
2435
|
:type _host_index: int, optional
|
|
2180
2436
|
:return: Returns the result object.
|
|
2181
|
-
"""
|
|
2437
|
+
""" # noqa: E501
|
|
2182
2438
|
|
|
2183
2439
|
_param = self._replace_labels_serialize(
|
|
2184
2440
|
sandbox_id=sandbox_id,
|
|
@@ -2187,31 +2443,36 @@ class SandboxApi:
|
|
|
2187
2443
|
_request_auth=_request_auth,
|
|
2188
2444
|
_content_type=_content_type,
|
|
2189
2445
|
_headers=_headers,
|
|
2190
|
-
_host_index=_host_index
|
|
2446
|
+
_host_index=_host_index
|
|
2191
2447
|
)
|
|
2192
2448
|
|
|
2193
2449
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2194
|
-
|
|
2450
|
+
'200': "SandboxLabels",
|
|
2195
2451
|
}
|
|
2196
|
-
response_data = self.api_client.call_api(
|
|
2452
|
+
response_data = self.api_client.call_api(
|
|
2453
|
+
*_param,
|
|
2454
|
+
_request_timeout=_request_timeout
|
|
2455
|
+
)
|
|
2197
2456
|
response_data.read()
|
|
2198
2457
|
return self.api_client.response_deserialize(
|
|
2199
2458
|
response_data=response_data,
|
|
2200
2459
|
response_types_map=_response_types_map,
|
|
2201
2460
|
)
|
|
2202
2461
|
|
|
2462
|
+
|
|
2203
2463
|
@validate_call
|
|
2204
2464
|
def replace_labels_without_preload_content(
|
|
2205
2465
|
self,
|
|
2206
2466
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
2207
2467
|
sandbox_labels: SandboxLabels,
|
|
2208
|
-
x_daytona_organization_id: Annotated[
|
|
2209
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
2210
|
-
] = None,
|
|
2468
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2211
2469
|
_request_timeout: Union[
|
|
2212
2470
|
None,
|
|
2213
2471
|
Annotated[StrictFloat, Field(gt=0)],
|
|
2214
|
-
Tuple[
|
|
2472
|
+
Tuple[
|
|
2473
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2474
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2475
|
+
]
|
|
2215
2476
|
] = None,
|
|
2216
2477
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2217
2478
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -2247,7 +2508,7 @@ class SandboxApi:
|
|
|
2247
2508
|
in the spec for a single request.
|
|
2248
2509
|
:type _host_index: int, optional
|
|
2249
2510
|
:return: Returns the result object.
|
|
2250
|
-
"""
|
|
2511
|
+
""" # noqa: E501
|
|
2251
2512
|
|
|
2252
2513
|
_param = self._replace_labels_serialize(
|
|
2253
2514
|
sandbox_id=sandbox_id,
|
|
@@ -2256,15 +2517,19 @@ class SandboxApi:
|
|
|
2256
2517
|
_request_auth=_request_auth,
|
|
2257
2518
|
_content_type=_content_type,
|
|
2258
2519
|
_headers=_headers,
|
|
2259
|
-
_host_index=_host_index
|
|
2520
|
+
_host_index=_host_index
|
|
2260
2521
|
)
|
|
2261
2522
|
|
|
2262
2523
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2263
|
-
|
|
2524
|
+
'200': "SandboxLabels",
|
|
2264
2525
|
}
|
|
2265
|
-
response_data = self.api_client.call_api(
|
|
2526
|
+
response_data = self.api_client.call_api(
|
|
2527
|
+
*_param,
|
|
2528
|
+
_request_timeout=_request_timeout
|
|
2529
|
+
)
|
|
2266
2530
|
return response_data.response
|
|
2267
2531
|
|
|
2532
|
+
|
|
2268
2533
|
def _replace_labels_serialize(
|
|
2269
2534
|
self,
|
|
2270
2535
|
sandbox_id,
|
|
@@ -2275,47 +2540,65 @@ class SandboxApi:
|
|
|
2275
2540
|
_headers,
|
|
2276
2541
|
_host_index,
|
|
2277
2542
|
) -> RequestSerialized:
|
|
2543
|
+
|
|
2278
2544
|
_host = None
|
|
2279
2545
|
|
|
2280
|
-
_collection_formats: Dict[str, str] = {
|
|
2546
|
+
_collection_formats: Dict[str, str] = {
|
|
2547
|
+
}
|
|
2281
2548
|
|
|
2282
2549
|
_path_params: Dict[str, str] = {}
|
|
2283
2550
|
_query_params: List[Tuple[str, str]] = []
|
|
2284
2551
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2285
2552
|
_form_params: List[Tuple[str, str]] = []
|
|
2286
|
-
_files: Dict[
|
|
2553
|
+
_files: Dict[
|
|
2554
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2555
|
+
] = {}
|
|
2287
2556
|
_body_params: Optional[bytes] = None
|
|
2288
2557
|
|
|
2289
2558
|
# process the path parameters
|
|
2290
2559
|
if sandbox_id is not None:
|
|
2291
|
-
_path_params[
|
|
2560
|
+
_path_params['sandboxId'] = sandbox_id
|
|
2292
2561
|
# process the query parameters
|
|
2293
2562
|
# process the header parameters
|
|
2294
2563
|
if x_daytona_organization_id is not None:
|
|
2295
|
-
_header_params[
|
|
2564
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
2296
2565
|
# process the form parameters
|
|
2297
2566
|
# process the body parameter
|
|
2298
2567
|
if sandbox_labels is not None:
|
|
2299
2568
|
_body_params = sandbox_labels
|
|
2300
2569
|
|
|
2570
|
+
|
|
2301
2571
|
# set the HTTP header `Accept`
|
|
2302
|
-
if
|
|
2303
|
-
_header_params[
|
|
2572
|
+
if 'Accept' not in _header_params:
|
|
2573
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2574
|
+
[
|
|
2575
|
+
'application/json'
|
|
2576
|
+
]
|
|
2577
|
+
)
|
|
2304
2578
|
|
|
2305
2579
|
# set the HTTP header `Content-Type`
|
|
2306
2580
|
if _content_type:
|
|
2307
|
-
_header_params[
|
|
2581
|
+
_header_params['Content-Type'] = _content_type
|
|
2308
2582
|
else:
|
|
2309
|
-
_default_content_type =
|
|
2583
|
+
_default_content_type = (
|
|
2584
|
+
self.api_client.select_header_content_type(
|
|
2585
|
+
[
|
|
2586
|
+
'application/json'
|
|
2587
|
+
]
|
|
2588
|
+
)
|
|
2589
|
+
)
|
|
2310
2590
|
if _default_content_type is not None:
|
|
2311
|
-
_header_params[
|
|
2591
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2312
2592
|
|
|
2313
2593
|
# authentication setting
|
|
2314
|
-
_auth_settings: List[str] = [
|
|
2594
|
+
_auth_settings: List[str] = [
|
|
2595
|
+
'bearer',
|
|
2596
|
+
'oauth2'
|
|
2597
|
+
]
|
|
2315
2598
|
|
|
2316
2599
|
return self.api_client.param_serialize(
|
|
2317
|
-
method=
|
|
2318
|
-
resource_path=
|
|
2600
|
+
method='PUT',
|
|
2601
|
+
resource_path='/sandbox/{sandboxId}/labels',
|
|
2319
2602
|
path_params=_path_params,
|
|
2320
2603
|
query_params=_query_params,
|
|
2321
2604
|
header_params=_header_params,
|
|
@@ -2325,24 +2608,25 @@ class SandboxApi:
|
|
|
2325
2608
|
auth_settings=_auth_settings,
|
|
2326
2609
|
collection_formats=_collection_formats,
|
|
2327
2610
|
_host=_host,
|
|
2328
|
-
_request_auth=_request_auth
|
|
2611
|
+
_request_auth=_request_auth
|
|
2329
2612
|
)
|
|
2330
2613
|
|
|
2614
|
+
|
|
2615
|
+
|
|
2616
|
+
|
|
2331
2617
|
@validate_call
|
|
2332
2618
|
def set_auto_archive_interval(
|
|
2333
2619
|
self,
|
|
2334
2620
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
2335
|
-
interval: Annotated[
|
|
2336
|
-
|
|
2337
|
-
Field(description="Auto-archive interval in minutes (0 means the maximum interval will be used)"),
|
|
2338
|
-
],
|
|
2339
|
-
x_daytona_organization_id: Annotated[
|
|
2340
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
2341
|
-
] = None,
|
|
2621
|
+
interval: Annotated[Union[StrictFloat, StrictInt], Field(description="Auto-archive interval in minutes (0 means the maximum interval will be used)")],
|
|
2622
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2342
2623
|
_request_timeout: Union[
|
|
2343
2624
|
None,
|
|
2344
2625
|
Annotated[StrictFloat, Field(gt=0)],
|
|
2345
|
-
Tuple[
|
|
2626
|
+
Tuple[
|
|
2627
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2628
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2629
|
+
]
|
|
2346
2630
|
] = None,
|
|
2347
2631
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2348
2632
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -2378,7 +2662,7 @@ class SandboxApi:
|
|
|
2378
2662
|
in the spec for a single request.
|
|
2379
2663
|
:type _host_index: int, optional
|
|
2380
2664
|
:return: Returns the result object.
|
|
2381
|
-
"""
|
|
2665
|
+
""" # noqa: E501
|
|
2382
2666
|
|
|
2383
2667
|
_param = self._set_auto_archive_interval_serialize(
|
|
2384
2668
|
sandbox_id=sandbox_id,
|
|
@@ -2387,34 +2671,36 @@ class SandboxApi:
|
|
|
2387
2671
|
_request_auth=_request_auth,
|
|
2388
2672
|
_content_type=_content_type,
|
|
2389
2673
|
_headers=_headers,
|
|
2390
|
-
_host_index=_host_index
|
|
2674
|
+
_host_index=_host_index
|
|
2391
2675
|
)
|
|
2392
2676
|
|
|
2393
2677
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2394
|
-
|
|
2678
|
+
'200': None,
|
|
2395
2679
|
}
|
|
2396
|
-
response_data = self.api_client.call_api(
|
|
2680
|
+
response_data = self.api_client.call_api(
|
|
2681
|
+
*_param,
|
|
2682
|
+
_request_timeout=_request_timeout
|
|
2683
|
+
)
|
|
2397
2684
|
response_data.read()
|
|
2398
2685
|
return self.api_client.response_deserialize(
|
|
2399
2686
|
response_data=response_data,
|
|
2400
2687
|
response_types_map=_response_types_map,
|
|
2401
2688
|
).data
|
|
2402
2689
|
|
|
2690
|
+
|
|
2403
2691
|
@validate_call
|
|
2404
2692
|
def set_auto_archive_interval_with_http_info(
|
|
2405
2693
|
self,
|
|
2406
2694
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
2407
|
-
interval: Annotated[
|
|
2408
|
-
|
|
2409
|
-
Field(description="Auto-archive interval in minutes (0 means the maximum interval will be used)"),
|
|
2410
|
-
],
|
|
2411
|
-
x_daytona_organization_id: Annotated[
|
|
2412
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
2413
|
-
] = None,
|
|
2695
|
+
interval: Annotated[Union[StrictFloat, StrictInt], Field(description="Auto-archive interval in minutes (0 means the maximum interval will be used)")],
|
|
2696
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2414
2697
|
_request_timeout: Union[
|
|
2415
2698
|
None,
|
|
2416
2699
|
Annotated[StrictFloat, Field(gt=0)],
|
|
2417
|
-
Tuple[
|
|
2700
|
+
Tuple[
|
|
2701
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2702
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2703
|
+
]
|
|
2418
2704
|
] = None,
|
|
2419
2705
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2420
2706
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -2450,7 +2736,7 @@ class SandboxApi:
|
|
|
2450
2736
|
in the spec for a single request.
|
|
2451
2737
|
:type _host_index: int, optional
|
|
2452
2738
|
:return: Returns the result object.
|
|
2453
|
-
"""
|
|
2739
|
+
""" # noqa: E501
|
|
2454
2740
|
|
|
2455
2741
|
_param = self._set_auto_archive_interval_serialize(
|
|
2456
2742
|
sandbox_id=sandbox_id,
|
|
@@ -2459,34 +2745,36 @@ class SandboxApi:
|
|
|
2459
2745
|
_request_auth=_request_auth,
|
|
2460
2746
|
_content_type=_content_type,
|
|
2461
2747
|
_headers=_headers,
|
|
2462
|
-
_host_index=_host_index
|
|
2748
|
+
_host_index=_host_index
|
|
2463
2749
|
)
|
|
2464
2750
|
|
|
2465
2751
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2466
|
-
|
|
2752
|
+
'200': None,
|
|
2467
2753
|
}
|
|
2468
|
-
response_data = self.api_client.call_api(
|
|
2754
|
+
response_data = self.api_client.call_api(
|
|
2755
|
+
*_param,
|
|
2756
|
+
_request_timeout=_request_timeout
|
|
2757
|
+
)
|
|
2469
2758
|
response_data.read()
|
|
2470
2759
|
return self.api_client.response_deserialize(
|
|
2471
2760
|
response_data=response_data,
|
|
2472
2761
|
response_types_map=_response_types_map,
|
|
2473
2762
|
)
|
|
2474
2763
|
|
|
2764
|
+
|
|
2475
2765
|
@validate_call
|
|
2476
2766
|
def set_auto_archive_interval_without_preload_content(
|
|
2477
2767
|
self,
|
|
2478
2768
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
2479
|
-
interval: Annotated[
|
|
2480
|
-
|
|
2481
|
-
Field(description="Auto-archive interval in minutes (0 means the maximum interval will be used)"),
|
|
2482
|
-
],
|
|
2483
|
-
x_daytona_organization_id: Annotated[
|
|
2484
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
2485
|
-
] = None,
|
|
2769
|
+
interval: Annotated[Union[StrictFloat, StrictInt], Field(description="Auto-archive interval in minutes (0 means the maximum interval will be used)")],
|
|
2770
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2486
2771
|
_request_timeout: Union[
|
|
2487
2772
|
None,
|
|
2488
2773
|
Annotated[StrictFloat, Field(gt=0)],
|
|
2489
|
-
Tuple[
|
|
2774
|
+
Tuple[
|
|
2775
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2776
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2777
|
+
]
|
|
2490
2778
|
] = None,
|
|
2491
2779
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2492
2780
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -2522,7 +2810,7 @@ class SandboxApi:
|
|
|
2522
2810
|
in the spec for a single request.
|
|
2523
2811
|
:type _host_index: int, optional
|
|
2524
2812
|
:return: Returns the result object.
|
|
2525
|
-
"""
|
|
2813
|
+
""" # noqa: E501
|
|
2526
2814
|
|
|
2527
2815
|
_param = self._set_auto_archive_interval_serialize(
|
|
2528
2816
|
sandbox_id=sandbox_id,
|
|
@@ -2531,15 +2819,19 @@ class SandboxApi:
|
|
|
2531
2819
|
_request_auth=_request_auth,
|
|
2532
2820
|
_content_type=_content_type,
|
|
2533
2821
|
_headers=_headers,
|
|
2534
|
-
_host_index=_host_index
|
|
2822
|
+
_host_index=_host_index
|
|
2535
2823
|
)
|
|
2536
2824
|
|
|
2537
2825
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2538
|
-
|
|
2826
|
+
'200': None,
|
|
2539
2827
|
}
|
|
2540
|
-
response_data = self.api_client.call_api(
|
|
2828
|
+
response_data = self.api_client.call_api(
|
|
2829
|
+
*_param,
|
|
2830
|
+
_request_timeout=_request_timeout
|
|
2831
|
+
)
|
|
2541
2832
|
return response_data.response
|
|
2542
2833
|
|
|
2834
|
+
|
|
2543
2835
|
def _set_auto_archive_interval_serialize(
|
|
2544
2836
|
self,
|
|
2545
2837
|
sandbox_id,
|
|
@@ -2550,35 +2842,45 @@ class SandboxApi:
|
|
|
2550
2842
|
_headers,
|
|
2551
2843
|
_host_index,
|
|
2552
2844
|
) -> RequestSerialized:
|
|
2845
|
+
|
|
2553
2846
|
_host = None
|
|
2554
2847
|
|
|
2555
|
-
_collection_formats: Dict[str, str] = {
|
|
2848
|
+
_collection_formats: Dict[str, str] = {
|
|
2849
|
+
}
|
|
2556
2850
|
|
|
2557
2851
|
_path_params: Dict[str, str] = {}
|
|
2558
2852
|
_query_params: List[Tuple[str, str]] = []
|
|
2559
2853
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2560
2854
|
_form_params: List[Tuple[str, str]] = []
|
|
2561
|
-
_files: Dict[
|
|
2855
|
+
_files: Dict[
|
|
2856
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2857
|
+
] = {}
|
|
2562
2858
|
_body_params: Optional[bytes] = None
|
|
2563
2859
|
|
|
2564
2860
|
# process the path parameters
|
|
2565
2861
|
if sandbox_id is not None:
|
|
2566
|
-
_path_params[
|
|
2862
|
+
_path_params['sandboxId'] = sandbox_id
|
|
2567
2863
|
if interval is not None:
|
|
2568
|
-
_path_params[
|
|
2864
|
+
_path_params['interval'] = interval
|
|
2569
2865
|
# process the query parameters
|
|
2570
2866
|
# process the header parameters
|
|
2571
2867
|
if x_daytona_organization_id is not None:
|
|
2572
|
-
_header_params[
|
|
2868
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
2573
2869
|
# process the form parameters
|
|
2574
2870
|
# process the body parameter
|
|
2575
2871
|
|
|
2872
|
+
|
|
2873
|
+
|
|
2874
|
+
|
|
2576
2875
|
# authentication setting
|
|
2577
|
-
_auth_settings: List[str] = [
|
|
2876
|
+
_auth_settings: List[str] = [
|
|
2877
|
+
'bearer',
|
|
2878
|
+
'oauth2'
|
|
2879
|
+
]
|
|
2578
2880
|
|
|
2579
2881
|
return self.api_client.param_serialize(
|
|
2580
|
-
method=
|
|
2581
|
-
resource_path=
|
|
2882
|
+
method='POST',
|
|
2883
|
+
resource_path='/sandbox/{sandboxId}/autoarchive/{interval}',
|
|
2582
2884
|
path_params=_path_params,
|
|
2583
2885
|
query_params=_query_params,
|
|
2584
2886
|
header_params=_header_params,
|
|
@@ -2588,23 +2890,25 @@ class SandboxApi:
|
|
|
2588
2890
|
auth_settings=_auth_settings,
|
|
2589
2891
|
collection_formats=_collection_formats,
|
|
2590
2892
|
_host=_host,
|
|
2591
|
-
_request_auth=_request_auth
|
|
2893
|
+
_request_auth=_request_auth
|
|
2592
2894
|
)
|
|
2593
2895
|
|
|
2896
|
+
|
|
2897
|
+
|
|
2898
|
+
|
|
2594
2899
|
@validate_call
|
|
2595
2900
|
def set_autostop_interval(
|
|
2596
2901
|
self,
|
|
2597
2902
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
2598
|
-
interval: Annotated[
|
|
2599
|
-
|
|
2600
|
-
],
|
|
2601
|
-
x_daytona_organization_id: Annotated[
|
|
2602
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
2603
|
-
] = None,
|
|
2903
|
+
interval: Annotated[Union[StrictFloat, StrictInt], Field(description="Auto-stop interval in minutes (0 to disable)")],
|
|
2904
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2604
2905
|
_request_timeout: Union[
|
|
2605
2906
|
None,
|
|
2606
2907
|
Annotated[StrictFloat, Field(gt=0)],
|
|
2607
|
-
Tuple[
|
|
2908
|
+
Tuple[
|
|
2909
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2910
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2911
|
+
]
|
|
2608
2912
|
] = None,
|
|
2609
2913
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2610
2914
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -2640,7 +2944,7 @@ class SandboxApi:
|
|
|
2640
2944
|
in the spec for a single request.
|
|
2641
2945
|
:type _host_index: int, optional
|
|
2642
2946
|
:return: Returns the result object.
|
|
2643
|
-
"""
|
|
2947
|
+
""" # noqa: E501
|
|
2644
2948
|
|
|
2645
2949
|
_param = self._set_autostop_interval_serialize(
|
|
2646
2950
|
sandbox_id=sandbox_id,
|
|
@@ -2649,33 +2953,36 @@ class SandboxApi:
|
|
|
2649
2953
|
_request_auth=_request_auth,
|
|
2650
2954
|
_content_type=_content_type,
|
|
2651
2955
|
_headers=_headers,
|
|
2652
|
-
_host_index=_host_index
|
|
2956
|
+
_host_index=_host_index
|
|
2653
2957
|
)
|
|
2654
2958
|
|
|
2655
2959
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2656
|
-
|
|
2960
|
+
'200': None,
|
|
2657
2961
|
}
|
|
2658
|
-
response_data = self.api_client.call_api(
|
|
2962
|
+
response_data = self.api_client.call_api(
|
|
2963
|
+
*_param,
|
|
2964
|
+
_request_timeout=_request_timeout
|
|
2965
|
+
)
|
|
2659
2966
|
response_data.read()
|
|
2660
2967
|
return self.api_client.response_deserialize(
|
|
2661
2968
|
response_data=response_data,
|
|
2662
2969
|
response_types_map=_response_types_map,
|
|
2663
2970
|
).data
|
|
2664
2971
|
|
|
2972
|
+
|
|
2665
2973
|
@validate_call
|
|
2666
2974
|
def set_autostop_interval_with_http_info(
|
|
2667
2975
|
self,
|
|
2668
2976
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
2669
|
-
interval: Annotated[
|
|
2670
|
-
|
|
2671
|
-
],
|
|
2672
|
-
x_daytona_organization_id: Annotated[
|
|
2673
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
2674
|
-
] = None,
|
|
2977
|
+
interval: Annotated[Union[StrictFloat, StrictInt], Field(description="Auto-stop interval in minutes (0 to disable)")],
|
|
2978
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2675
2979
|
_request_timeout: Union[
|
|
2676
2980
|
None,
|
|
2677
2981
|
Annotated[StrictFloat, Field(gt=0)],
|
|
2678
|
-
Tuple[
|
|
2982
|
+
Tuple[
|
|
2983
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2984
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2985
|
+
]
|
|
2679
2986
|
] = None,
|
|
2680
2987
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2681
2988
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -2711,7 +3018,7 @@ class SandboxApi:
|
|
|
2711
3018
|
in the spec for a single request.
|
|
2712
3019
|
:type _host_index: int, optional
|
|
2713
3020
|
:return: Returns the result object.
|
|
2714
|
-
"""
|
|
3021
|
+
""" # noqa: E501
|
|
2715
3022
|
|
|
2716
3023
|
_param = self._set_autostop_interval_serialize(
|
|
2717
3024
|
sandbox_id=sandbox_id,
|
|
@@ -2720,33 +3027,36 @@ class SandboxApi:
|
|
|
2720
3027
|
_request_auth=_request_auth,
|
|
2721
3028
|
_content_type=_content_type,
|
|
2722
3029
|
_headers=_headers,
|
|
2723
|
-
_host_index=_host_index
|
|
3030
|
+
_host_index=_host_index
|
|
2724
3031
|
)
|
|
2725
3032
|
|
|
2726
3033
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2727
|
-
|
|
3034
|
+
'200': None,
|
|
2728
3035
|
}
|
|
2729
|
-
response_data = self.api_client.call_api(
|
|
3036
|
+
response_data = self.api_client.call_api(
|
|
3037
|
+
*_param,
|
|
3038
|
+
_request_timeout=_request_timeout
|
|
3039
|
+
)
|
|
2730
3040
|
response_data.read()
|
|
2731
3041
|
return self.api_client.response_deserialize(
|
|
2732
3042
|
response_data=response_data,
|
|
2733
3043
|
response_types_map=_response_types_map,
|
|
2734
3044
|
)
|
|
2735
3045
|
|
|
3046
|
+
|
|
2736
3047
|
@validate_call
|
|
2737
3048
|
def set_autostop_interval_without_preload_content(
|
|
2738
3049
|
self,
|
|
2739
3050
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
2740
|
-
interval: Annotated[
|
|
2741
|
-
|
|
2742
|
-
],
|
|
2743
|
-
x_daytona_organization_id: Annotated[
|
|
2744
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
2745
|
-
] = None,
|
|
3051
|
+
interval: Annotated[Union[StrictFloat, StrictInt], Field(description="Auto-stop interval in minutes (0 to disable)")],
|
|
3052
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2746
3053
|
_request_timeout: Union[
|
|
2747
3054
|
None,
|
|
2748
3055
|
Annotated[StrictFloat, Field(gt=0)],
|
|
2749
|
-
Tuple[
|
|
3056
|
+
Tuple[
|
|
3057
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3058
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3059
|
+
]
|
|
2750
3060
|
] = None,
|
|
2751
3061
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2752
3062
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -2782,7 +3092,7 @@ class SandboxApi:
|
|
|
2782
3092
|
in the spec for a single request.
|
|
2783
3093
|
:type _host_index: int, optional
|
|
2784
3094
|
:return: Returns the result object.
|
|
2785
|
-
"""
|
|
3095
|
+
""" # noqa: E501
|
|
2786
3096
|
|
|
2787
3097
|
_param = self._set_autostop_interval_serialize(
|
|
2788
3098
|
sandbox_id=sandbox_id,
|
|
@@ -2791,15 +3101,19 @@ class SandboxApi:
|
|
|
2791
3101
|
_request_auth=_request_auth,
|
|
2792
3102
|
_content_type=_content_type,
|
|
2793
3103
|
_headers=_headers,
|
|
2794
|
-
_host_index=_host_index
|
|
3104
|
+
_host_index=_host_index
|
|
2795
3105
|
)
|
|
2796
3106
|
|
|
2797
3107
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2798
|
-
|
|
3108
|
+
'200': None,
|
|
2799
3109
|
}
|
|
2800
|
-
response_data = self.api_client.call_api(
|
|
3110
|
+
response_data = self.api_client.call_api(
|
|
3111
|
+
*_param,
|
|
3112
|
+
_request_timeout=_request_timeout
|
|
3113
|
+
)
|
|
2801
3114
|
return response_data.response
|
|
2802
3115
|
|
|
3116
|
+
|
|
2803
3117
|
def _set_autostop_interval_serialize(
|
|
2804
3118
|
self,
|
|
2805
3119
|
sandbox_id,
|
|
@@ -2810,35 +3124,45 @@ class SandboxApi:
|
|
|
2810
3124
|
_headers,
|
|
2811
3125
|
_host_index,
|
|
2812
3126
|
) -> RequestSerialized:
|
|
3127
|
+
|
|
2813
3128
|
_host = None
|
|
2814
3129
|
|
|
2815
|
-
_collection_formats: Dict[str, str] = {
|
|
3130
|
+
_collection_formats: Dict[str, str] = {
|
|
3131
|
+
}
|
|
2816
3132
|
|
|
2817
3133
|
_path_params: Dict[str, str] = {}
|
|
2818
3134
|
_query_params: List[Tuple[str, str]] = []
|
|
2819
3135
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2820
3136
|
_form_params: List[Tuple[str, str]] = []
|
|
2821
|
-
_files: Dict[
|
|
3137
|
+
_files: Dict[
|
|
3138
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3139
|
+
] = {}
|
|
2822
3140
|
_body_params: Optional[bytes] = None
|
|
2823
3141
|
|
|
2824
3142
|
# process the path parameters
|
|
2825
3143
|
if sandbox_id is not None:
|
|
2826
|
-
_path_params[
|
|
3144
|
+
_path_params['sandboxId'] = sandbox_id
|
|
2827
3145
|
if interval is not None:
|
|
2828
|
-
_path_params[
|
|
3146
|
+
_path_params['interval'] = interval
|
|
2829
3147
|
# process the query parameters
|
|
2830
3148
|
# process the header parameters
|
|
2831
3149
|
if x_daytona_organization_id is not None:
|
|
2832
|
-
_header_params[
|
|
3150
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
2833
3151
|
# process the form parameters
|
|
2834
3152
|
# process the body parameter
|
|
2835
3153
|
|
|
3154
|
+
|
|
3155
|
+
|
|
3156
|
+
|
|
2836
3157
|
# authentication setting
|
|
2837
|
-
_auth_settings: List[str] = [
|
|
3158
|
+
_auth_settings: List[str] = [
|
|
3159
|
+
'bearer',
|
|
3160
|
+
'oauth2'
|
|
3161
|
+
]
|
|
2838
3162
|
|
|
2839
3163
|
return self.api_client.param_serialize(
|
|
2840
|
-
method=
|
|
2841
|
-
resource_path=
|
|
3164
|
+
method='POST',
|
|
3165
|
+
resource_path='/sandbox/{sandboxId}/autostop/{interval}',
|
|
2842
3166
|
path_params=_path_params,
|
|
2843
3167
|
query_params=_query_params,
|
|
2844
3168
|
header_params=_header_params,
|
|
@@ -2848,20 +3172,24 @@ class SandboxApi:
|
|
|
2848
3172
|
auth_settings=_auth_settings,
|
|
2849
3173
|
collection_formats=_collection_formats,
|
|
2850
3174
|
_host=_host,
|
|
2851
|
-
_request_auth=_request_auth
|
|
3175
|
+
_request_auth=_request_auth
|
|
2852
3176
|
)
|
|
2853
3177
|
|
|
3178
|
+
|
|
3179
|
+
|
|
3180
|
+
|
|
2854
3181
|
@validate_call
|
|
2855
3182
|
def start_sandbox(
|
|
2856
3183
|
self,
|
|
2857
3184
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
2858
|
-
x_daytona_organization_id: Annotated[
|
|
2859
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
2860
|
-
] = None,
|
|
3185
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2861
3186
|
_request_timeout: Union[
|
|
2862
3187
|
None,
|
|
2863
3188
|
Annotated[StrictFloat, Field(gt=0)],
|
|
2864
|
-
Tuple[
|
|
3189
|
+
Tuple[
|
|
3190
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3191
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3192
|
+
]
|
|
2865
3193
|
] = None,
|
|
2866
3194
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2867
3195
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -2895,7 +3223,7 @@ class SandboxApi:
|
|
|
2895
3223
|
in the spec for a single request.
|
|
2896
3224
|
:type _host_index: int, optional
|
|
2897
3225
|
:return: Returns the result object.
|
|
2898
|
-
"""
|
|
3226
|
+
""" # noqa: E501
|
|
2899
3227
|
|
|
2900
3228
|
_param = self._start_sandbox_serialize(
|
|
2901
3229
|
sandbox_id=sandbox_id,
|
|
@@ -2903,30 +3231,35 @@ class SandboxApi:
|
|
|
2903
3231
|
_request_auth=_request_auth,
|
|
2904
3232
|
_content_type=_content_type,
|
|
2905
3233
|
_headers=_headers,
|
|
2906
|
-
_host_index=_host_index
|
|
3234
|
+
_host_index=_host_index
|
|
2907
3235
|
)
|
|
2908
3236
|
|
|
2909
3237
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2910
|
-
|
|
3238
|
+
'200': None,
|
|
2911
3239
|
}
|
|
2912
|
-
response_data = self.api_client.call_api(
|
|
3240
|
+
response_data = self.api_client.call_api(
|
|
3241
|
+
*_param,
|
|
3242
|
+
_request_timeout=_request_timeout
|
|
3243
|
+
)
|
|
2913
3244
|
response_data.read()
|
|
2914
3245
|
return self.api_client.response_deserialize(
|
|
2915
3246
|
response_data=response_data,
|
|
2916
3247
|
response_types_map=_response_types_map,
|
|
2917
3248
|
).data
|
|
2918
3249
|
|
|
3250
|
+
|
|
2919
3251
|
@validate_call
|
|
2920
3252
|
def start_sandbox_with_http_info(
|
|
2921
3253
|
self,
|
|
2922
3254
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
2923
|
-
x_daytona_organization_id: Annotated[
|
|
2924
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
2925
|
-
] = None,
|
|
3255
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2926
3256
|
_request_timeout: Union[
|
|
2927
3257
|
None,
|
|
2928
3258
|
Annotated[StrictFloat, Field(gt=0)],
|
|
2929
|
-
Tuple[
|
|
3259
|
+
Tuple[
|
|
3260
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3261
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3262
|
+
]
|
|
2930
3263
|
] = None,
|
|
2931
3264
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2932
3265
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -2960,7 +3293,7 @@ class SandboxApi:
|
|
|
2960
3293
|
in the spec for a single request.
|
|
2961
3294
|
:type _host_index: int, optional
|
|
2962
3295
|
:return: Returns the result object.
|
|
2963
|
-
"""
|
|
3296
|
+
""" # noqa: E501
|
|
2964
3297
|
|
|
2965
3298
|
_param = self._start_sandbox_serialize(
|
|
2966
3299
|
sandbox_id=sandbox_id,
|
|
@@ -2968,30 +3301,35 @@ class SandboxApi:
|
|
|
2968
3301
|
_request_auth=_request_auth,
|
|
2969
3302
|
_content_type=_content_type,
|
|
2970
3303
|
_headers=_headers,
|
|
2971
|
-
_host_index=_host_index
|
|
3304
|
+
_host_index=_host_index
|
|
2972
3305
|
)
|
|
2973
3306
|
|
|
2974
3307
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2975
|
-
|
|
3308
|
+
'200': None,
|
|
2976
3309
|
}
|
|
2977
|
-
response_data = self.api_client.call_api(
|
|
3310
|
+
response_data = self.api_client.call_api(
|
|
3311
|
+
*_param,
|
|
3312
|
+
_request_timeout=_request_timeout
|
|
3313
|
+
)
|
|
2978
3314
|
response_data.read()
|
|
2979
3315
|
return self.api_client.response_deserialize(
|
|
2980
3316
|
response_data=response_data,
|
|
2981
3317
|
response_types_map=_response_types_map,
|
|
2982
3318
|
)
|
|
2983
3319
|
|
|
3320
|
+
|
|
2984
3321
|
@validate_call
|
|
2985
3322
|
def start_sandbox_without_preload_content(
|
|
2986
3323
|
self,
|
|
2987
3324
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
2988
|
-
x_daytona_organization_id: Annotated[
|
|
2989
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
2990
|
-
] = None,
|
|
3325
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2991
3326
|
_request_timeout: Union[
|
|
2992
3327
|
None,
|
|
2993
3328
|
Annotated[StrictFloat, Field(gt=0)],
|
|
2994
|
-
Tuple[
|
|
3329
|
+
Tuple[
|
|
3330
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3331
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3332
|
+
]
|
|
2995
3333
|
] = None,
|
|
2996
3334
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2997
3335
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -3025,7 +3363,7 @@ class SandboxApi:
|
|
|
3025
3363
|
in the spec for a single request.
|
|
3026
3364
|
:type _host_index: int, optional
|
|
3027
3365
|
:return: Returns the result object.
|
|
3028
|
-
"""
|
|
3366
|
+
""" # noqa: E501
|
|
3029
3367
|
|
|
3030
3368
|
_param = self._start_sandbox_serialize(
|
|
3031
3369
|
sandbox_id=sandbox_id,
|
|
@@ -3033,15 +3371,19 @@ class SandboxApi:
|
|
|
3033
3371
|
_request_auth=_request_auth,
|
|
3034
3372
|
_content_type=_content_type,
|
|
3035
3373
|
_headers=_headers,
|
|
3036
|
-
_host_index=_host_index
|
|
3374
|
+
_host_index=_host_index
|
|
3037
3375
|
)
|
|
3038
3376
|
|
|
3039
3377
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3040
|
-
|
|
3378
|
+
'200': None,
|
|
3041
3379
|
}
|
|
3042
|
-
response_data = self.api_client.call_api(
|
|
3380
|
+
response_data = self.api_client.call_api(
|
|
3381
|
+
*_param,
|
|
3382
|
+
_request_timeout=_request_timeout
|
|
3383
|
+
)
|
|
3043
3384
|
return response_data.response
|
|
3044
3385
|
|
|
3386
|
+
|
|
3045
3387
|
def _start_sandbox_serialize(
|
|
3046
3388
|
self,
|
|
3047
3389
|
sandbox_id,
|
|
@@ -3051,33 +3393,43 @@ class SandboxApi:
|
|
|
3051
3393
|
_headers,
|
|
3052
3394
|
_host_index,
|
|
3053
3395
|
) -> RequestSerialized:
|
|
3396
|
+
|
|
3054
3397
|
_host = None
|
|
3055
3398
|
|
|
3056
|
-
_collection_formats: Dict[str, str] = {
|
|
3399
|
+
_collection_formats: Dict[str, str] = {
|
|
3400
|
+
}
|
|
3057
3401
|
|
|
3058
3402
|
_path_params: Dict[str, str] = {}
|
|
3059
3403
|
_query_params: List[Tuple[str, str]] = []
|
|
3060
3404
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3061
3405
|
_form_params: List[Tuple[str, str]] = []
|
|
3062
|
-
_files: Dict[
|
|
3406
|
+
_files: Dict[
|
|
3407
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3408
|
+
] = {}
|
|
3063
3409
|
_body_params: Optional[bytes] = None
|
|
3064
3410
|
|
|
3065
3411
|
# process the path parameters
|
|
3066
3412
|
if sandbox_id is not None:
|
|
3067
|
-
_path_params[
|
|
3413
|
+
_path_params['sandboxId'] = sandbox_id
|
|
3068
3414
|
# process the query parameters
|
|
3069
3415
|
# process the header parameters
|
|
3070
3416
|
if x_daytona_organization_id is not None:
|
|
3071
|
-
_header_params[
|
|
3417
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
3072
3418
|
# process the form parameters
|
|
3073
3419
|
# process the body parameter
|
|
3074
3420
|
|
|
3421
|
+
|
|
3422
|
+
|
|
3423
|
+
|
|
3075
3424
|
# authentication setting
|
|
3076
|
-
_auth_settings: List[str] = [
|
|
3425
|
+
_auth_settings: List[str] = [
|
|
3426
|
+
'bearer',
|
|
3427
|
+
'oauth2'
|
|
3428
|
+
]
|
|
3077
3429
|
|
|
3078
3430
|
return self.api_client.param_serialize(
|
|
3079
|
-
method=
|
|
3080
|
-
resource_path=
|
|
3431
|
+
method='POST',
|
|
3432
|
+
resource_path='/sandbox/{sandboxId}/start',
|
|
3081
3433
|
path_params=_path_params,
|
|
3082
3434
|
query_params=_query_params,
|
|
3083
3435
|
header_params=_header_params,
|
|
@@ -3087,20 +3439,24 @@ class SandboxApi:
|
|
|
3087
3439
|
auth_settings=_auth_settings,
|
|
3088
3440
|
collection_formats=_collection_formats,
|
|
3089
3441
|
_host=_host,
|
|
3090
|
-
_request_auth=_request_auth
|
|
3442
|
+
_request_auth=_request_auth
|
|
3091
3443
|
)
|
|
3092
3444
|
|
|
3445
|
+
|
|
3446
|
+
|
|
3447
|
+
|
|
3093
3448
|
@validate_call
|
|
3094
3449
|
def stop_sandbox(
|
|
3095
3450
|
self,
|
|
3096
3451
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
3097
|
-
x_daytona_organization_id: Annotated[
|
|
3098
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
3099
|
-
] = None,
|
|
3452
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
3100
3453
|
_request_timeout: Union[
|
|
3101
3454
|
None,
|
|
3102
3455
|
Annotated[StrictFloat, Field(gt=0)],
|
|
3103
|
-
Tuple[
|
|
3456
|
+
Tuple[
|
|
3457
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3458
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3459
|
+
]
|
|
3104
3460
|
] = None,
|
|
3105
3461
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3106
3462
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -3134,7 +3490,7 @@ class SandboxApi:
|
|
|
3134
3490
|
in the spec for a single request.
|
|
3135
3491
|
:type _host_index: int, optional
|
|
3136
3492
|
:return: Returns the result object.
|
|
3137
|
-
"""
|
|
3493
|
+
""" # noqa: E501
|
|
3138
3494
|
|
|
3139
3495
|
_param = self._stop_sandbox_serialize(
|
|
3140
3496
|
sandbox_id=sandbox_id,
|
|
@@ -3142,30 +3498,35 @@ class SandboxApi:
|
|
|
3142
3498
|
_request_auth=_request_auth,
|
|
3143
3499
|
_content_type=_content_type,
|
|
3144
3500
|
_headers=_headers,
|
|
3145
|
-
_host_index=_host_index
|
|
3501
|
+
_host_index=_host_index
|
|
3146
3502
|
)
|
|
3147
3503
|
|
|
3148
3504
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3149
|
-
|
|
3505
|
+
'200': None,
|
|
3150
3506
|
}
|
|
3151
|
-
response_data = self.api_client.call_api(
|
|
3507
|
+
response_data = self.api_client.call_api(
|
|
3508
|
+
*_param,
|
|
3509
|
+
_request_timeout=_request_timeout
|
|
3510
|
+
)
|
|
3152
3511
|
response_data.read()
|
|
3153
3512
|
return self.api_client.response_deserialize(
|
|
3154
3513
|
response_data=response_data,
|
|
3155
3514
|
response_types_map=_response_types_map,
|
|
3156
3515
|
).data
|
|
3157
3516
|
|
|
3517
|
+
|
|
3158
3518
|
@validate_call
|
|
3159
3519
|
def stop_sandbox_with_http_info(
|
|
3160
3520
|
self,
|
|
3161
3521
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
3162
|
-
x_daytona_organization_id: Annotated[
|
|
3163
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
3164
|
-
] = None,
|
|
3522
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
3165
3523
|
_request_timeout: Union[
|
|
3166
3524
|
None,
|
|
3167
3525
|
Annotated[StrictFloat, Field(gt=0)],
|
|
3168
|
-
Tuple[
|
|
3526
|
+
Tuple[
|
|
3527
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3528
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3529
|
+
]
|
|
3169
3530
|
] = None,
|
|
3170
3531
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3171
3532
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -3199,7 +3560,7 @@ class SandboxApi:
|
|
|
3199
3560
|
in the spec for a single request.
|
|
3200
3561
|
:type _host_index: int, optional
|
|
3201
3562
|
:return: Returns the result object.
|
|
3202
|
-
"""
|
|
3563
|
+
""" # noqa: E501
|
|
3203
3564
|
|
|
3204
3565
|
_param = self._stop_sandbox_serialize(
|
|
3205
3566
|
sandbox_id=sandbox_id,
|
|
@@ -3207,30 +3568,35 @@ class SandboxApi:
|
|
|
3207
3568
|
_request_auth=_request_auth,
|
|
3208
3569
|
_content_type=_content_type,
|
|
3209
3570
|
_headers=_headers,
|
|
3210
|
-
_host_index=_host_index
|
|
3571
|
+
_host_index=_host_index
|
|
3211
3572
|
)
|
|
3212
3573
|
|
|
3213
3574
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3214
|
-
|
|
3575
|
+
'200': None,
|
|
3215
3576
|
}
|
|
3216
|
-
response_data = self.api_client.call_api(
|
|
3577
|
+
response_data = self.api_client.call_api(
|
|
3578
|
+
*_param,
|
|
3579
|
+
_request_timeout=_request_timeout
|
|
3580
|
+
)
|
|
3217
3581
|
response_data.read()
|
|
3218
3582
|
return self.api_client.response_deserialize(
|
|
3219
3583
|
response_data=response_data,
|
|
3220
3584
|
response_types_map=_response_types_map,
|
|
3221
3585
|
)
|
|
3222
3586
|
|
|
3587
|
+
|
|
3223
3588
|
@validate_call
|
|
3224
3589
|
def stop_sandbox_without_preload_content(
|
|
3225
3590
|
self,
|
|
3226
3591
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
3227
|
-
x_daytona_organization_id: Annotated[
|
|
3228
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
3229
|
-
] = None,
|
|
3592
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
3230
3593
|
_request_timeout: Union[
|
|
3231
3594
|
None,
|
|
3232
3595
|
Annotated[StrictFloat, Field(gt=0)],
|
|
3233
|
-
Tuple[
|
|
3596
|
+
Tuple[
|
|
3597
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3598
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3599
|
+
]
|
|
3234
3600
|
] = None,
|
|
3235
3601
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3236
3602
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -3264,7 +3630,7 @@ class SandboxApi:
|
|
|
3264
3630
|
in the spec for a single request.
|
|
3265
3631
|
:type _host_index: int, optional
|
|
3266
3632
|
:return: Returns the result object.
|
|
3267
|
-
"""
|
|
3633
|
+
""" # noqa: E501
|
|
3268
3634
|
|
|
3269
3635
|
_param = self._stop_sandbox_serialize(
|
|
3270
3636
|
sandbox_id=sandbox_id,
|
|
@@ -3272,15 +3638,19 @@ class SandboxApi:
|
|
|
3272
3638
|
_request_auth=_request_auth,
|
|
3273
3639
|
_content_type=_content_type,
|
|
3274
3640
|
_headers=_headers,
|
|
3275
|
-
_host_index=_host_index
|
|
3641
|
+
_host_index=_host_index
|
|
3276
3642
|
)
|
|
3277
3643
|
|
|
3278
3644
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3279
|
-
|
|
3645
|
+
'200': None,
|
|
3280
3646
|
}
|
|
3281
|
-
response_data = self.api_client.call_api(
|
|
3647
|
+
response_data = self.api_client.call_api(
|
|
3648
|
+
*_param,
|
|
3649
|
+
_request_timeout=_request_timeout
|
|
3650
|
+
)
|
|
3282
3651
|
return response_data.response
|
|
3283
3652
|
|
|
3653
|
+
|
|
3284
3654
|
def _stop_sandbox_serialize(
|
|
3285
3655
|
self,
|
|
3286
3656
|
sandbox_id,
|
|
@@ -3290,33 +3660,43 @@ class SandboxApi:
|
|
|
3290
3660
|
_headers,
|
|
3291
3661
|
_host_index,
|
|
3292
3662
|
) -> RequestSerialized:
|
|
3663
|
+
|
|
3293
3664
|
_host = None
|
|
3294
3665
|
|
|
3295
|
-
_collection_formats: Dict[str, str] = {
|
|
3666
|
+
_collection_formats: Dict[str, str] = {
|
|
3667
|
+
}
|
|
3296
3668
|
|
|
3297
3669
|
_path_params: Dict[str, str] = {}
|
|
3298
3670
|
_query_params: List[Tuple[str, str]] = []
|
|
3299
3671
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3300
3672
|
_form_params: List[Tuple[str, str]] = []
|
|
3301
|
-
_files: Dict[
|
|
3673
|
+
_files: Dict[
|
|
3674
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3675
|
+
] = {}
|
|
3302
3676
|
_body_params: Optional[bytes] = None
|
|
3303
3677
|
|
|
3304
3678
|
# process the path parameters
|
|
3305
3679
|
if sandbox_id is not None:
|
|
3306
|
-
_path_params[
|
|
3680
|
+
_path_params['sandboxId'] = sandbox_id
|
|
3307
3681
|
# process the query parameters
|
|
3308
3682
|
# process the header parameters
|
|
3309
3683
|
if x_daytona_organization_id is not None:
|
|
3310
|
-
_header_params[
|
|
3684
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
3311
3685
|
# process the form parameters
|
|
3312
3686
|
# process the body parameter
|
|
3313
3687
|
|
|
3688
|
+
|
|
3689
|
+
|
|
3690
|
+
|
|
3314
3691
|
# authentication setting
|
|
3315
|
-
_auth_settings: List[str] = [
|
|
3692
|
+
_auth_settings: List[str] = [
|
|
3693
|
+
'bearer',
|
|
3694
|
+
'oauth2'
|
|
3695
|
+
]
|
|
3316
3696
|
|
|
3317
3697
|
return self.api_client.param_serialize(
|
|
3318
|
-
method=
|
|
3319
|
-
resource_path=
|
|
3698
|
+
method='POST',
|
|
3699
|
+
resource_path='/sandbox/{sandboxId}/stop',
|
|
3320
3700
|
path_params=_path_params,
|
|
3321
3701
|
query_params=_query_params,
|
|
3322
3702
|
header_params=_header_params,
|
|
@@ -3326,21 +3706,25 @@ class SandboxApi:
|
|
|
3326
3706
|
auth_settings=_auth_settings,
|
|
3327
3707
|
collection_formats=_collection_formats,
|
|
3328
3708
|
_host=_host,
|
|
3329
|
-
_request_auth=_request_auth
|
|
3709
|
+
_request_auth=_request_auth
|
|
3330
3710
|
)
|
|
3331
3711
|
|
|
3712
|
+
|
|
3713
|
+
|
|
3714
|
+
|
|
3332
3715
|
@validate_call
|
|
3333
3716
|
def update_public_status(
|
|
3334
3717
|
self,
|
|
3335
3718
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
3336
3719
|
is_public: Annotated[StrictBool, Field(description="Public status to set")],
|
|
3337
|
-
x_daytona_organization_id: Annotated[
|
|
3338
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
3339
|
-
] = None,
|
|
3720
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
3340
3721
|
_request_timeout: Union[
|
|
3341
3722
|
None,
|
|
3342
3723
|
Annotated[StrictFloat, Field(gt=0)],
|
|
3343
|
-
Tuple[
|
|
3724
|
+
Tuple[
|
|
3725
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3726
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3727
|
+
]
|
|
3344
3728
|
] = None,
|
|
3345
3729
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3346
3730
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -3376,7 +3760,7 @@ class SandboxApi:
|
|
|
3376
3760
|
in the spec for a single request.
|
|
3377
3761
|
:type _host_index: int, optional
|
|
3378
3762
|
:return: Returns the result object.
|
|
3379
|
-
"""
|
|
3763
|
+
""" # noqa: E501
|
|
3380
3764
|
|
|
3381
3765
|
_param = self._update_public_status_serialize(
|
|
3382
3766
|
sandbox_id=sandbox_id,
|
|
@@ -3385,31 +3769,36 @@ class SandboxApi:
|
|
|
3385
3769
|
_request_auth=_request_auth,
|
|
3386
3770
|
_content_type=_content_type,
|
|
3387
3771
|
_headers=_headers,
|
|
3388
|
-
_host_index=_host_index
|
|
3772
|
+
_host_index=_host_index
|
|
3389
3773
|
)
|
|
3390
3774
|
|
|
3391
3775
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3392
|
-
|
|
3776
|
+
'201': None,
|
|
3393
3777
|
}
|
|
3394
|
-
response_data = self.api_client.call_api(
|
|
3778
|
+
response_data = self.api_client.call_api(
|
|
3779
|
+
*_param,
|
|
3780
|
+
_request_timeout=_request_timeout
|
|
3781
|
+
)
|
|
3395
3782
|
response_data.read()
|
|
3396
3783
|
return self.api_client.response_deserialize(
|
|
3397
3784
|
response_data=response_data,
|
|
3398
3785
|
response_types_map=_response_types_map,
|
|
3399
3786
|
).data
|
|
3400
3787
|
|
|
3788
|
+
|
|
3401
3789
|
@validate_call
|
|
3402
3790
|
def update_public_status_with_http_info(
|
|
3403
3791
|
self,
|
|
3404
3792
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
3405
3793
|
is_public: Annotated[StrictBool, Field(description="Public status to set")],
|
|
3406
|
-
x_daytona_organization_id: Annotated[
|
|
3407
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
3408
|
-
] = None,
|
|
3794
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
3409
3795
|
_request_timeout: Union[
|
|
3410
3796
|
None,
|
|
3411
3797
|
Annotated[StrictFloat, Field(gt=0)],
|
|
3412
|
-
Tuple[
|
|
3798
|
+
Tuple[
|
|
3799
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3800
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3801
|
+
]
|
|
3413
3802
|
] = None,
|
|
3414
3803
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3415
3804
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -3445,7 +3834,7 @@ class SandboxApi:
|
|
|
3445
3834
|
in the spec for a single request.
|
|
3446
3835
|
:type _host_index: int, optional
|
|
3447
3836
|
:return: Returns the result object.
|
|
3448
|
-
"""
|
|
3837
|
+
""" # noqa: E501
|
|
3449
3838
|
|
|
3450
3839
|
_param = self._update_public_status_serialize(
|
|
3451
3840
|
sandbox_id=sandbox_id,
|
|
@@ -3454,31 +3843,36 @@ class SandboxApi:
|
|
|
3454
3843
|
_request_auth=_request_auth,
|
|
3455
3844
|
_content_type=_content_type,
|
|
3456
3845
|
_headers=_headers,
|
|
3457
|
-
_host_index=_host_index
|
|
3846
|
+
_host_index=_host_index
|
|
3458
3847
|
)
|
|
3459
3848
|
|
|
3460
3849
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3461
|
-
|
|
3850
|
+
'201': None,
|
|
3462
3851
|
}
|
|
3463
|
-
response_data = self.api_client.call_api(
|
|
3852
|
+
response_data = self.api_client.call_api(
|
|
3853
|
+
*_param,
|
|
3854
|
+
_request_timeout=_request_timeout
|
|
3855
|
+
)
|
|
3464
3856
|
response_data.read()
|
|
3465
3857
|
return self.api_client.response_deserialize(
|
|
3466
3858
|
response_data=response_data,
|
|
3467
3859
|
response_types_map=_response_types_map,
|
|
3468
3860
|
)
|
|
3469
3861
|
|
|
3862
|
+
|
|
3470
3863
|
@validate_call
|
|
3471
3864
|
def update_public_status_without_preload_content(
|
|
3472
3865
|
self,
|
|
3473
3866
|
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
3474
3867
|
is_public: Annotated[StrictBool, Field(description="Public status to set")],
|
|
3475
|
-
x_daytona_organization_id: Annotated[
|
|
3476
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
3477
|
-
] = None,
|
|
3868
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
3478
3869
|
_request_timeout: Union[
|
|
3479
3870
|
None,
|
|
3480
3871
|
Annotated[StrictFloat, Field(gt=0)],
|
|
3481
|
-
Tuple[
|
|
3872
|
+
Tuple[
|
|
3873
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3874
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3875
|
+
]
|
|
3482
3876
|
] = None,
|
|
3483
3877
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3484
3878
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -3514,7 +3908,7 @@ class SandboxApi:
|
|
|
3514
3908
|
in the spec for a single request.
|
|
3515
3909
|
:type _host_index: int, optional
|
|
3516
3910
|
:return: Returns the result object.
|
|
3517
|
-
"""
|
|
3911
|
+
""" # noqa: E501
|
|
3518
3912
|
|
|
3519
3913
|
_param = self._update_public_status_serialize(
|
|
3520
3914
|
sandbox_id=sandbox_id,
|
|
@@ -3523,15 +3917,19 @@ class SandboxApi:
|
|
|
3523
3917
|
_request_auth=_request_auth,
|
|
3524
3918
|
_content_type=_content_type,
|
|
3525
3919
|
_headers=_headers,
|
|
3526
|
-
_host_index=_host_index
|
|
3920
|
+
_host_index=_host_index
|
|
3527
3921
|
)
|
|
3528
3922
|
|
|
3529
3923
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3530
|
-
|
|
3924
|
+
'201': None,
|
|
3531
3925
|
}
|
|
3532
|
-
response_data = self.api_client.call_api(
|
|
3926
|
+
response_data = self.api_client.call_api(
|
|
3927
|
+
*_param,
|
|
3928
|
+
_request_timeout=_request_timeout
|
|
3929
|
+
)
|
|
3533
3930
|
return response_data.response
|
|
3534
3931
|
|
|
3932
|
+
|
|
3535
3933
|
def _update_public_status_serialize(
|
|
3536
3934
|
self,
|
|
3537
3935
|
sandbox_id,
|
|
@@ -3542,35 +3940,45 @@ class SandboxApi:
|
|
|
3542
3940
|
_headers,
|
|
3543
3941
|
_host_index,
|
|
3544
3942
|
) -> RequestSerialized:
|
|
3943
|
+
|
|
3545
3944
|
_host = None
|
|
3546
3945
|
|
|
3547
|
-
_collection_formats: Dict[str, str] = {
|
|
3946
|
+
_collection_formats: Dict[str, str] = {
|
|
3947
|
+
}
|
|
3548
3948
|
|
|
3549
3949
|
_path_params: Dict[str, str] = {}
|
|
3550
3950
|
_query_params: List[Tuple[str, str]] = []
|
|
3551
3951
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3552
3952
|
_form_params: List[Tuple[str, str]] = []
|
|
3553
|
-
_files: Dict[
|
|
3953
|
+
_files: Dict[
|
|
3954
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3955
|
+
] = {}
|
|
3554
3956
|
_body_params: Optional[bytes] = None
|
|
3555
3957
|
|
|
3556
3958
|
# process the path parameters
|
|
3557
3959
|
if sandbox_id is not None:
|
|
3558
|
-
_path_params[
|
|
3960
|
+
_path_params['sandboxId'] = sandbox_id
|
|
3559
3961
|
if is_public is not None:
|
|
3560
|
-
_path_params[
|
|
3962
|
+
_path_params['isPublic'] = is_public
|
|
3561
3963
|
# process the query parameters
|
|
3562
3964
|
# process the header parameters
|
|
3563
3965
|
if x_daytona_organization_id is not None:
|
|
3564
|
-
_header_params[
|
|
3966
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
3565
3967
|
# process the form parameters
|
|
3566
3968
|
# process the body parameter
|
|
3567
3969
|
|
|
3970
|
+
|
|
3971
|
+
|
|
3972
|
+
|
|
3568
3973
|
# authentication setting
|
|
3569
|
-
_auth_settings: List[str] = [
|
|
3974
|
+
_auth_settings: List[str] = [
|
|
3975
|
+
'bearer',
|
|
3976
|
+
'oauth2'
|
|
3977
|
+
]
|
|
3570
3978
|
|
|
3571
3979
|
return self.api_client.param_serialize(
|
|
3572
|
-
method=
|
|
3573
|
-
resource_path=
|
|
3980
|
+
method='POST',
|
|
3981
|
+
resource_path='/sandbox/{sandboxId}/public/{isPublic}',
|
|
3574
3982
|
path_params=_path_params,
|
|
3575
3983
|
query_params=_query_params,
|
|
3576
3984
|
header_params=_header_params,
|
|
@@ -3580,5 +3988,7 @@ class SandboxApi:
|
|
|
3580
3988
|
auth_settings=_auth_settings,
|
|
3581
3989
|
collection_formats=_collection_formats,
|
|
3582
3990
|
_host=_host,
|
|
3583
|
-
_request_auth=_request_auth
|
|
3991
|
+
_request_auth=_request_auth
|
|
3584
3992
|
)
|
|
3993
|
+
|
|
3994
|
+
|