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
|
@@ -37,6 +37,7 @@ class PreviewApi:
|
|
|
37
37
|
api_client = ApiClient.get_default()
|
|
38
38
|
self.api_client = api_client
|
|
39
39
|
|
|
40
|
+
|
|
40
41
|
@validate_call
|
|
41
42
|
def has_sandbox_access(
|
|
42
43
|
self,
|
|
@@ -44,7 +45,10 @@ class PreviewApi:
|
|
|
44
45
|
_request_timeout: Union[
|
|
45
46
|
None,
|
|
46
47
|
Annotated[StrictFloat, Field(gt=0)],
|
|
47
|
-
Tuple[
|
|
48
|
+
Tuple[
|
|
49
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
51
|
+
]
|
|
48
52
|
] = None,
|
|
49
53
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
50
54
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -76,26 +80,30 @@ class PreviewApi:
|
|
|
76
80
|
in the spec for a single request.
|
|
77
81
|
:type _host_index: int, optional
|
|
78
82
|
:return: Returns the result object.
|
|
79
|
-
"""
|
|
83
|
+
""" # noqa: E501
|
|
80
84
|
|
|
81
85
|
_param = self._has_sandbox_access_serialize(
|
|
82
86
|
sandbox_id=sandbox_id,
|
|
83
87
|
_request_auth=_request_auth,
|
|
84
88
|
_content_type=_content_type,
|
|
85
89
|
_headers=_headers,
|
|
86
|
-
_host_index=_host_index
|
|
90
|
+
_host_index=_host_index
|
|
87
91
|
)
|
|
88
92
|
|
|
89
93
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
90
|
-
|
|
94
|
+
'200': None,
|
|
91
95
|
}
|
|
92
|
-
response_data = self.api_client.call_api(
|
|
96
|
+
response_data = self.api_client.call_api(
|
|
97
|
+
*_param,
|
|
98
|
+
_request_timeout=_request_timeout
|
|
99
|
+
)
|
|
93
100
|
response_data.read()
|
|
94
101
|
return self.api_client.response_deserialize(
|
|
95
102
|
response_data=response_data,
|
|
96
103
|
response_types_map=_response_types_map,
|
|
97
104
|
).data
|
|
98
105
|
|
|
106
|
+
|
|
99
107
|
@validate_call
|
|
100
108
|
def has_sandbox_access_with_http_info(
|
|
101
109
|
self,
|
|
@@ -103,7 +111,10 @@ class PreviewApi:
|
|
|
103
111
|
_request_timeout: Union[
|
|
104
112
|
None,
|
|
105
113
|
Annotated[StrictFloat, Field(gt=0)],
|
|
106
|
-
Tuple[
|
|
114
|
+
Tuple[
|
|
115
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
116
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
117
|
+
]
|
|
107
118
|
] = None,
|
|
108
119
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
109
120
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -135,26 +146,30 @@ class PreviewApi:
|
|
|
135
146
|
in the spec for a single request.
|
|
136
147
|
:type _host_index: int, optional
|
|
137
148
|
:return: Returns the result object.
|
|
138
|
-
"""
|
|
149
|
+
""" # noqa: E501
|
|
139
150
|
|
|
140
151
|
_param = self._has_sandbox_access_serialize(
|
|
141
152
|
sandbox_id=sandbox_id,
|
|
142
153
|
_request_auth=_request_auth,
|
|
143
154
|
_content_type=_content_type,
|
|
144
155
|
_headers=_headers,
|
|
145
|
-
_host_index=_host_index
|
|
156
|
+
_host_index=_host_index
|
|
146
157
|
)
|
|
147
158
|
|
|
148
159
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
149
|
-
|
|
160
|
+
'200': None,
|
|
150
161
|
}
|
|
151
|
-
response_data = self.api_client.call_api(
|
|
162
|
+
response_data = self.api_client.call_api(
|
|
163
|
+
*_param,
|
|
164
|
+
_request_timeout=_request_timeout
|
|
165
|
+
)
|
|
152
166
|
response_data.read()
|
|
153
167
|
return self.api_client.response_deserialize(
|
|
154
168
|
response_data=response_data,
|
|
155
169
|
response_types_map=_response_types_map,
|
|
156
170
|
)
|
|
157
171
|
|
|
172
|
+
|
|
158
173
|
@validate_call
|
|
159
174
|
def has_sandbox_access_without_preload_content(
|
|
160
175
|
self,
|
|
@@ -162,7 +177,10 @@ class PreviewApi:
|
|
|
162
177
|
_request_timeout: Union[
|
|
163
178
|
None,
|
|
164
179
|
Annotated[StrictFloat, Field(gt=0)],
|
|
165
|
-
Tuple[
|
|
180
|
+
Tuple[
|
|
181
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
182
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
183
|
+
]
|
|
166
184
|
] = None,
|
|
167
185
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
168
186
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -194,22 +212,26 @@ class PreviewApi:
|
|
|
194
212
|
in the spec for a single request.
|
|
195
213
|
:type _host_index: int, optional
|
|
196
214
|
:return: Returns the result object.
|
|
197
|
-
"""
|
|
215
|
+
""" # noqa: E501
|
|
198
216
|
|
|
199
217
|
_param = self._has_sandbox_access_serialize(
|
|
200
218
|
sandbox_id=sandbox_id,
|
|
201
219
|
_request_auth=_request_auth,
|
|
202
220
|
_content_type=_content_type,
|
|
203
221
|
_headers=_headers,
|
|
204
|
-
_host_index=_host_index
|
|
222
|
+
_host_index=_host_index
|
|
205
223
|
)
|
|
206
224
|
|
|
207
225
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
208
|
-
|
|
226
|
+
'200': None,
|
|
209
227
|
}
|
|
210
|
-
response_data = self.api_client.call_api(
|
|
228
|
+
response_data = self.api_client.call_api(
|
|
229
|
+
*_param,
|
|
230
|
+
_request_timeout=_request_timeout
|
|
231
|
+
)
|
|
211
232
|
return response_data.response
|
|
212
233
|
|
|
234
|
+
|
|
213
235
|
def _has_sandbox_access_serialize(
|
|
214
236
|
self,
|
|
215
237
|
sandbox_id,
|
|
@@ -218,31 +240,41 @@ class PreviewApi:
|
|
|
218
240
|
_headers,
|
|
219
241
|
_host_index,
|
|
220
242
|
) -> RequestSerialized:
|
|
243
|
+
|
|
221
244
|
_host = None
|
|
222
245
|
|
|
223
|
-
_collection_formats: Dict[str, str] = {
|
|
246
|
+
_collection_formats: Dict[str, str] = {
|
|
247
|
+
}
|
|
224
248
|
|
|
225
249
|
_path_params: Dict[str, str] = {}
|
|
226
250
|
_query_params: List[Tuple[str, str]] = []
|
|
227
251
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
228
252
|
_form_params: List[Tuple[str, str]] = []
|
|
229
|
-
_files: Dict[
|
|
253
|
+
_files: Dict[
|
|
254
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
255
|
+
] = {}
|
|
230
256
|
_body_params: Optional[bytes] = None
|
|
231
257
|
|
|
232
258
|
# process the path parameters
|
|
233
259
|
if sandbox_id is not None:
|
|
234
|
-
_path_params[
|
|
260
|
+
_path_params['sandboxId'] = sandbox_id
|
|
235
261
|
# process the query parameters
|
|
236
262
|
# process the header parameters
|
|
237
263
|
# process the form parameters
|
|
238
264
|
# process the body parameter
|
|
239
265
|
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
240
269
|
# authentication setting
|
|
241
|
-
_auth_settings: List[str] = [
|
|
270
|
+
_auth_settings: List[str] = [
|
|
271
|
+
'bearer',
|
|
272
|
+
'oauth2'
|
|
273
|
+
]
|
|
242
274
|
|
|
243
275
|
return self.api_client.param_serialize(
|
|
244
|
-
method=
|
|
245
|
-
resource_path=
|
|
276
|
+
method='GET',
|
|
277
|
+
resource_path='/preview/{sandboxId}/access',
|
|
246
278
|
path_params=_path_params,
|
|
247
279
|
query_params=_query_params,
|
|
248
280
|
header_params=_header_params,
|
|
@@ -252,9 +284,12 @@ class PreviewApi:
|
|
|
252
284
|
auth_settings=_auth_settings,
|
|
253
285
|
collection_formats=_collection_formats,
|
|
254
286
|
_host=_host,
|
|
255
|
-
_request_auth=_request_auth
|
|
287
|
+
_request_auth=_request_auth
|
|
256
288
|
)
|
|
257
289
|
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
258
293
|
@validate_call
|
|
259
294
|
def is_sandbox_public(
|
|
260
295
|
self,
|
|
@@ -262,7 +297,10 @@ class PreviewApi:
|
|
|
262
297
|
_request_timeout: Union[
|
|
263
298
|
None,
|
|
264
299
|
Annotated[StrictFloat, Field(gt=0)],
|
|
265
|
-
Tuple[
|
|
300
|
+
Tuple[
|
|
301
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
302
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
303
|
+
]
|
|
266
304
|
] = None,
|
|
267
305
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
268
306
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -294,26 +332,30 @@ class PreviewApi:
|
|
|
294
332
|
in the spec for a single request.
|
|
295
333
|
:type _host_index: int, optional
|
|
296
334
|
:return: Returns the result object.
|
|
297
|
-
"""
|
|
335
|
+
""" # noqa: E501
|
|
298
336
|
|
|
299
337
|
_param = self._is_sandbox_public_serialize(
|
|
300
338
|
sandbox_id=sandbox_id,
|
|
301
339
|
_request_auth=_request_auth,
|
|
302
340
|
_content_type=_content_type,
|
|
303
341
|
_headers=_headers,
|
|
304
|
-
_host_index=_host_index
|
|
342
|
+
_host_index=_host_index
|
|
305
343
|
)
|
|
306
344
|
|
|
307
345
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
308
|
-
|
|
346
|
+
'200': "bool",
|
|
309
347
|
}
|
|
310
|
-
response_data = self.api_client.call_api(
|
|
348
|
+
response_data = self.api_client.call_api(
|
|
349
|
+
*_param,
|
|
350
|
+
_request_timeout=_request_timeout
|
|
351
|
+
)
|
|
311
352
|
response_data.read()
|
|
312
353
|
return self.api_client.response_deserialize(
|
|
313
354
|
response_data=response_data,
|
|
314
355
|
response_types_map=_response_types_map,
|
|
315
356
|
).data
|
|
316
357
|
|
|
358
|
+
|
|
317
359
|
@validate_call
|
|
318
360
|
def is_sandbox_public_with_http_info(
|
|
319
361
|
self,
|
|
@@ -321,7 +363,10 @@ class PreviewApi:
|
|
|
321
363
|
_request_timeout: Union[
|
|
322
364
|
None,
|
|
323
365
|
Annotated[StrictFloat, Field(gt=0)],
|
|
324
|
-
Tuple[
|
|
366
|
+
Tuple[
|
|
367
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
368
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
369
|
+
]
|
|
325
370
|
] = None,
|
|
326
371
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
327
372
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -353,26 +398,30 @@ class PreviewApi:
|
|
|
353
398
|
in the spec for a single request.
|
|
354
399
|
:type _host_index: int, optional
|
|
355
400
|
:return: Returns the result object.
|
|
356
|
-
"""
|
|
401
|
+
""" # noqa: E501
|
|
357
402
|
|
|
358
403
|
_param = self._is_sandbox_public_serialize(
|
|
359
404
|
sandbox_id=sandbox_id,
|
|
360
405
|
_request_auth=_request_auth,
|
|
361
406
|
_content_type=_content_type,
|
|
362
407
|
_headers=_headers,
|
|
363
|
-
_host_index=_host_index
|
|
408
|
+
_host_index=_host_index
|
|
364
409
|
)
|
|
365
410
|
|
|
366
411
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
367
|
-
|
|
412
|
+
'200': "bool",
|
|
368
413
|
}
|
|
369
|
-
response_data = self.api_client.call_api(
|
|
414
|
+
response_data = self.api_client.call_api(
|
|
415
|
+
*_param,
|
|
416
|
+
_request_timeout=_request_timeout
|
|
417
|
+
)
|
|
370
418
|
response_data.read()
|
|
371
419
|
return self.api_client.response_deserialize(
|
|
372
420
|
response_data=response_data,
|
|
373
421
|
response_types_map=_response_types_map,
|
|
374
422
|
)
|
|
375
423
|
|
|
424
|
+
|
|
376
425
|
@validate_call
|
|
377
426
|
def is_sandbox_public_without_preload_content(
|
|
378
427
|
self,
|
|
@@ -380,7 +429,10 @@ class PreviewApi:
|
|
|
380
429
|
_request_timeout: Union[
|
|
381
430
|
None,
|
|
382
431
|
Annotated[StrictFloat, Field(gt=0)],
|
|
383
|
-
Tuple[
|
|
432
|
+
Tuple[
|
|
433
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
434
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
435
|
+
]
|
|
384
436
|
] = None,
|
|
385
437
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
386
438
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -412,22 +464,26 @@ class PreviewApi:
|
|
|
412
464
|
in the spec for a single request.
|
|
413
465
|
:type _host_index: int, optional
|
|
414
466
|
:return: Returns the result object.
|
|
415
|
-
"""
|
|
467
|
+
""" # noqa: E501
|
|
416
468
|
|
|
417
469
|
_param = self._is_sandbox_public_serialize(
|
|
418
470
|
sandbox_id=sandbox_id,
|
|
419
471
|
_request_auth=_request_auth,
|
|
420
472
|
_content_type=_content_type,
|
|
421
473
|
_headers=_headers,
|
|
422
|
-
_host_index=_host_index
|
|
474
|
+
_host_index=_host_index
|
|
423
475
|
)
|
|
424
476
|
|
|
425
477
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
426
|
-
|
|
478
|
+
'200': "bool",
|
|
427
479
|
}
|
|
428
|
-
response_data = self.api_client.call_api(
|
|
480
|
+
response_data = self.api_client.call_api(
|
|
481
|
+
*_param,
|
|
482
|
+
_request_timeout=_request_timeout
|
|
483
|
+
)
|
|
429
484
|
return response_data.response
|
|
430
485
|
|
|
486
|
+
|
|
431
487
|
def _is_sandbox_public_serialize(
|
|
432
488
|
self,
|
|
433
489
|
sandbox_id,
|
|
@@ -436,35 +492,46 @@ class PreviewApi:
|
|
|
436
492
|
_headers,
|
|
437
493
|
_host_index,
|
|
438
494
|
) -> RequestSerialized:
|
|
495
|
+
|
|
439
496
|
_host = None
|
|
440
497
|
|
|
441
|
-
_collection_formats: Dict[str, str] = {
|
|
498
|
+
_collection_formats: Dict[str, str] = {
|
|
499
|
+
}
|
|
442
500
|
|
|
443
501
|
_path_params: Dict[str, str] = {}
|
|
444
502
|
_query_params: List[Tuple[str, str]] = []
|
|
445
503
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
446
504
|
_form_params: List[Tuple[str, str]] = []
|
|
447
|
-
_files: Dict[
|
|
505
|
+
_files: Dict[
|
|
506
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
507
|
+
] = {}
|
|
448
508
|
_body_params: Optional[bytes] = None
|
|
449
509
|
|
|
450
510
|
# process the path parameters
|
|
451
511
|
if sandbox_id is not None:
|
|
452
|
-
_path_params[
|
|
512
|
+
_path_params['sandboxId'] = sandbox_id
|
|
453
513
|
# process the query parameters
|
|
454
514
|
# process the header parameters
|
|
455
515
|
# process the form parameters
|
|
456
516
|
# process the body parameter
|
|
457
517
|
|
|
518
|
+
|
|
458
519
|
# set the HTTP header `Accept`
|
|
459
|
-
if
|
|
460
|
-
_header_params[
|
|
520
|
+
if 'Accept' not in _header_params:
|
|
521
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
522
|
+
[
|
|
523
|
+
'application/json'
|
|
524
|
+
]
|
|
525
|
+
)
|
|
526
|
+
|
|
461
527
|
|
|
462
528
|
# authentication setting
|
|
463
|
-
_auth_settings: List[str] = [
|
|
529
|
+
_auth_settings: List[str] = [
|
|
530
|
+
]
|
|
464
531
|
|
|
465
532
|
return self.api_client.param_serialize(
|
|
466
|
-
method=
|
|
467
|
-
resource_path=
|
|
533
|
+
method='GET',
|
|
534
|
+
resource_path='/preview/{sandboxId}/public',
|
|
468
535
|
path_params=_path_params,
|
|
469
536
|
query_params=_query_params,
|
|
470
537
|
header_params=_header_params,
|
|
@@ -474,9 +541,12 @@ class PreviewApi:
|
|
|
474
541
|
auth_settings=_auth_settings,
|
|
475
542
|
collection_formats=_collection_formats,
|
|
476
543
|
_host=_host,
|
|
477
|
-
_request_auth=_request_auth
|
|
544
|
+
_request_auth=_request_auth
|
|
478
545
|
)
|
|
479
546
|
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
480
550
|
@validate_call
|
|
481
551
|
def is_valid_auth_token(
|
|
482
552
|
self,
|
|
@@ -485,7 +555,10 @@ class PreviewApi:
|
|
|
485
555
|
_request_timeout: Union[
|
|
486
556
|
None,
|
|
487
557
|
Annotated[StrictFloat, Field(gt=0)],
|
|
488
|
-
Tuple[
|
|
558
|
+
Tuple[
|
|
559
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
560
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
561
|
+
]
|
|
489
562
|
] = None,
|
|
490
563
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
491
564
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -519,7 +592,7 @@ class PreviewApi:
|
|
|
519
592
|
in the spec for a single request.
|
|
520
593
|
:type _host_index: int, optional
|
|
521
594
|
:return: Returns the result object.
|
|
522
|
-
"""
|
|
595
|
+
""" # noqa: E501
|
|
523
596
|
|
|
524
597
|
_param = self._is_valid_auth_token_serialize(
|
|
525
598
|
sandbox_id=sandbox_id,
|
|
@@ -527,19 +600,23 @@ class PreviewApi:
|
|
|
527
600
|
_request_auth=_request_auth,
|
|
528
601
|
_content_type=_content_type,
|
|
529
602
|
_headers=_headers,
|
|
530
|
-
_host_index=_host_index
|
|
603
|
+
_host_index=_host_index
|
|
531
604
|
)
|
|
532
605
|
|
|
533
606
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
534
|
-
|
|
607
|
+
'200': "bool",
|
|
535
608
|
}
|
|
536
|
-
response_data = self.api_client.call_api(
|
|
609
|
+
response_data = self.api_client.call_api(
|
|
610
|
+
*_param,
|
|
611
|
+
_request_timeout=_request_timeout
|
|
612
|
+
)
|
|
537
613
|
response_data.read()
|
|
538
614
|
return self.api_client.response_deserialize(
|
|
539
615
|
response_data=response_data,
|
|
540
616
|
response_types_map=_response_types_map,
|
|
541
617
|
).data
|
|
542
618
|
|
|
619
|
+
|
|
543
620
|
@validate_call
|
|
544
621
|
def is_valid_auth_token_with_http_info(
|
|
545
622
|
self,
|
|
@@ -548,7 +625,10 @@ class PreviewApi:
|
|
|
548
625
|
_request_timeout: Union[
|
|
549
626
|
None,
|
|
550
627
|
Annotated[StrictFloat, Field(gt=0)],
|
|
551
|
-
Tuple[
|
|
628
|
+
Tuple[
|
|
629
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
630
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
631
|
+
]
|
|
552
632
|
] = None,
|
|
553
633
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
554
634
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -582,7 +662,7 @@ class PreviewApi:
|
|
|
582
662
|
in the spec for a single request.
|
|
583
663
|
:type _host_index: int, optional
|
|
584
664
|
:return: Returns the result object.
|
|
585
|
-
"""
|
|
665
|
+
""" # noqa: E501
|
|
586
666
|
|
|
587
667
|
_param = self._is_valid_auth_token_serialize(
|
|
588
668
|
sandbox_id=sandbox_id,
|
|
@@ -590,19 +670,23 @@ class PreviewApi:
|
|
|
590
670
|
_request_auth=_request_auth,
|
|
591
671
|
_content_type=_content_type,
|
|
592
672
|
_headers=_headers,
|
|
593
|
-
_host_index=_host_index
|
|
673
|
+
_host_index=_host_index
|
|
594
674
|
)
|
|
595
675
|
|
|
596
676
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
597
|
-
|
|
677
|
+
'200': "bool",
|
|
598
678
|
}
|
|
599
|
-
response_data = self.api_client.call_api(
|
|
679
|
+
response_data = self.api_client.call_api(
|
|
680
|
+
*_param,
|
|
681
|
+
_request_timeout=_request_timeout
|
|
682
|
+
)
|
|
600
683
|
response_data.read()
|
|
601
684
|
return self.api_client.response_deserialize(
|
|
602
685
|
response_data=response_data,
|
|
603
686
|
response_types_map=_response_types_map,
|
|
604
687
|
)
|
|
605
688
|
|
|
689
|
+
|
|
606
690
|
@validate_call
|
|
607
691
|
def is_valid_auth_token_without_preload_content(
|
|
608
692
|
self,
|
|
@@ -611,7 +695,10 @@ class PreviewApi:
|
|
|
611
695
|
_request_timeout: Union[
|
|
612
696
|
None,
|
|
613
697
|
Annotated[StrictFloat, Field(gt=0)],
|
|
614
|
-
Tuple[
|
|
698
|
+
Tuple[
|
|
699
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
700
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
701
|
+
]
|
|
615
702
|
] = None,
|
|
616
703
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
617
704
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -645,7 +732,7 @@ class PreviewApi:
|
|
|
645
732
|
in the spec for a single request.
|
|
646
733
|
:type _host_index: int, optional
|
|
647
734
|
:return: Returns the result object.
|
|
648
|
-
"""
|
|
735
|
+
""" # noqa: E501
|
|
649
736
|
|
|
650
737
|
_param = self._is_valid_auth_token_serialize(
|
|
651
738
|
sandbox_id=sandbox_id,
|
|
@@ -653,15 +740,19 @@ class PreviewApi:
|
|
|
653
740
|
_request_auth=_request_auth,
|
|
654
741
|
_content_type=_content_type,
|
|
655
742
|
_headers=_headers,
|
|
656
|
-
_host_index=_host_index
|
|
743
|
+
_host_index=_host_index
|
|
657
744
|
)
|
|
658
745
|
|
|
659
746
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
660
|
-
|
|
747
|
+
'200': "bool",
|
|
661
748
|
}
|
|
662
|
-
response_data = self.api_client.call_api(
|
|
749
|
+
response_data = self.api_client.call_api(
|
|
750
|
+
*_param,
|
|
751
|
+
_request_timeout=_request_timeout
|
|
752
|
+
)
|
|
663
753
|
return response_data.response
|
|
664
754
|
|
|
755
|
+
|
|
665
756
|
def _is_valid_auth_token_serialize(
|
|
666
757
|
self,
|
|
667
758
|
sandbox_id,
|
|
@@ -671,37 +762,48 @@ class PreviewApi:
|
|
|
671
762
|
_headers,
|
|
672
763
|
_host_index,
|
|
673
764
|
) -> RequestSerialized:
|
|
765
|
+
|
|
674
766
|
_host = None
|
|
675
767
|
|
|
676
|
-
_collection_formats: Dict[str, str] = {
|
|
768
|
+
_collection_formats: Dict[str, str] = {
|
|
769
|
+
}
|
|
677
770
|
|
|
678
771
|
_path_params: Dict[str, str] = {}
|
|
679
772
|
_query_params: List[Tuple[str, str]] = []
|
|
680
773
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
681
774
|
_form_params: List[Tuple[str, str]] = []
|
|
682
|
-
_files: Dict[
|
|
775
|
+
_files: Dict[
|
|
776
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
777
|
+
] = {}
|
|
683
778
|
_body_params: Optional[bytes] = None
|
|
684
779
|
|
|
685
780
|
# process the path parameters
|
|
686
781
|
if sandbox_id is not None:
|
|
687
|
-
_path_params[
|
|
782
|
+
_path_params['sandboxId'] = sandbox_id
|
|
688
783
|
if auth_token is not None:
|
|
689
|
-
_path_params[
|
|
784
|
+
_path_params['authToken'] = auth_token
|
|
690
785
|
# process the query parameters
|
|
691
786
|
# process the header parameters
|
|
692
787
|
# process the form parameters
|
|
693
788
|
# process the body parameter
|
|
694
789
|
|
|
790
|
+
|
|
695
791
|
# set the HTTP header `Accept`
|
|
696
|
-
if
|
|
697
|
-
_header_params[
|
|
792
|
+
if 'Accept' not in _header_params:
|
|
793
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
794
|
+
[
|
|
795
|
+
'application/json'
|
|
796
|
+
]
|
|
797
|
+
)
|
|
798
|
+
|
|
698
799
|
|
|
699
800
|
# authentication setting
|
|
700
|
-
_auth_settings: List[str] = [
|
|
801
|
+
_auth_settings: List[str] = [
|
|
802
|
+
]
|
|
701
803
|
|
|
702
804
|
return self.api_client.param_serialize(
|
|
703
|
-
method=
|
|
704
|
-
resource_path=
|
|
805
|
+
method='GET',
|
|
806
|
+
resource_path='/preview/{sandboxId}/validate/{authToken}',
|
|
705
807
|
path_params=_path_params,
|
|
706
808
|
query_params=_query_params,
|
|
707
809
|
header_params=_header_params,
|
|
@@ -711,5 +813,7 @@ class PreviewApi:
|
|
|
711
813
|
auth_settings=_auth_settings,
|
|
712
814
|
collection_formats=_collection_formats,
|
|
713
815
|
_host=_host,
|
|
714
|
-
_request_auth=_request_auth
|
|
816
|
+
_request_auth=_request_auth
|
|
715
817
|
)
|
|
818
|
+
|
|
819
|
+
|