daytona_api_client 0.21.3a0__py3-none-any.whl → 0.21.5a0__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.5a0.dist-info}/METADATA +1 -1
- daytona_api_client-0.21.5a0.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.5a0.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.5a0.dist-info}/top_level.txt +0 -0
|
@@ -41,17 +41,19 @@ class ApiKeysApi:
|
|
|
41
41
|
api_client = ApiClient.get_default()
|
|
42
42
|
self.api_client = api_client
|
|
43
43
|
|
|
44
|
+
|
|
44
45
|
@validate_call
|
|
45
46
|
def create_api_key(
|
|
46
47
|
self,
|
|
47
48
|
create_api_key: CreateApiKey,
|
|
48
|
-
x_daytona_organization_id: Annotated[
|
|
49
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
50
|
-
] = None,
|
|
49
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
51
50
|
_request_timeout: Union[
|
|
52
51
|
None,
|
|
53
52
|
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
-
Tuple[
|
|
53
|
+
Tuple[
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
56
|
+
]
|
|
55
57
|
] = None,
|
|
56
58
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
57
59
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -85,7 +87,7 @@ class ApiKeysApi:
|
|
|
85
87
|
in the spec for a single request.
|
|
86
88
|
:type _host_index: int, optional
|
|
87
89
|
:return: Returns the result object.
|
|
88
|
-
"""
|
|
90
|
+
""" # noqa: E501
|
|
89
91
|
|
|
90
92
|
_param = self._create_api_key_serialize(
|
|
91
93
|
create_api_key=create_api_key,
|
|
@@ -93,30 +95,35 @@ class ApiKeysApi:
|
|
|
93
95
|
_request_auth=_request_auth,
|
|
94
96
|
_content_type=_content_type,
|
|
95
97
|
_headers=_headers,
|
|
96
|
-
_host_index=_host_index
|
|
98
|
+
_host_index=_host_index
|
|
97
99
|
)
|
|
98
100
|
|
|
99
101
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
100
|
-
|
|
102
|
+
'201': "ApiKeyResponse",
|
|
101
103
|
}
|
|
102
|
-
response_data = self.api_client.call_api(
|
|
104
|
+
response_data = self.api_client.call_api(
|
|
105
|
+
*_param,
|
|
106
|
+
_request_timeout=_request_timeout
|
|
107
|
+
)
|
|
103
108
|
response_data.read()
|
|
104
109
|
return self.api_client.response_deserialize(
|
|
105
110
|
response_data=response_data,
|
|
106
111
|
response_types_map=_response_types_map,
|
|
107
112
|
).data
|
|
108
113
|
|
|
114
|
+
|
|
109
115
|
@validate_call
|
|
110
116
|
def create_api_key_with_http_info(
|
|
111
117
|
self,
|
|
112
118
|
create_api_key: CreateApiKey,
|
|
113
|
-
x_daytona_organization_id: Annotated[
|
|
114
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
115
|
-
] = None,
|
|
119
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
116
120
|
_request_timeout: Union[
|
|
117
121
|
None,
|
|
118
122
|
Annotated[StrictFloat, Field(gt=0)],
|
|
119
|
-
Tuple[
|
|
123
|
+
Tuple[
|
|
124
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
125
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
126
|
+
]
|
|
120
127
|
] = None,
|
|
121
128
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
122
129
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -150,7 +157,7 @@ class ApiKeysApi:
|
|
|
150
157
|
in the spec for a single request.
|
|
151
158
|
:type _host_index: int, optional
|
|
152
159
|
:return: Returns the result object.
|
|
153
|
-
"""
|
|
160
|
+
""" # noqa: E501
|
|
154
161
|
|
|
155
162
|
_param = self._create_api_key_serialize(
|
|
156
163
|
create_api_key=create_api_key,
|
|
@@ -158,30 +165,35 @@ class ApiKeysApi:
|
|
|
158
165
|
_request_auth=_request_auth,
|
|
159
166
|
_content_type=_content_type,
|
|
160
167
|
_headers=_headers,
|
|
161
|
-
_host_index=_host_index
|
|
168
|
+
_host_index=_host_index
|
|
162
169
|
)
|
|
163
170
|
|
|
164
171
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
165
|
-
|
|
172
|
+
'201': "ApiKeyResponse",
|
|
166
173
|
}
|
|
167
|
-
response_data = self.api_client.call_api(
|
|
174
|
+
response_data = self.api_client.call_api(
|
|
175
|
+
*_param,
|
|
176
|
+
_request_timeout=_request_timeout
|
|
177
|
+
)
|
|
168
178
|
response_data.read()
|
|
169
179
|
return self.api_client.response_deserialize(
|
|
170
180
|
response_data=response_data,
|
|
171
181
|
response_types_map=_response_types_map,
|
|
172
182
|
)
|
|
173
183
|
|
|
184
|
+
|
|
174
185
|
@validate_call
|
|
175
186
|
def create_api_key_without_preload_content(
|
|
176
187
|
self,
|
|
177
188
|
create_api_key: CreateApiKey,
|
|
178
|
-
x_daytona_organization_id: Annotated[
|
|
179
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
180
|
-
] = None,
|
|
189
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
181
190
|
_request_timeout: Union[
|
|
182
191
|
None,
|
|
183
192
|
Annotated[StrictFloat, Field(gt=0)],
|
|
184
|
-
Tuple[
|
|
193
|
+
Tuple[
|
|
194
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
195
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
196
|
+
]
|
|
185
197
|
] = None,
|
|
186
198
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
187
199
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -215,7 +227,7 @@ class ApiKeysApi:
|
|
|
215
227
|
in the spec for a single request.
|
|
216
228
|
:type _host_index: int, optional
|
|
217
229
|
:return: Returns the result object.
|
|
218
|
-
"""
|
|
230
|
+
""" # noqa: E501
|
|
219
231
|
|
|
220
232
|
_param = self._create_api_key_serialize(
|
|
221
233
|
create_api_key=create_api_key,
|
|
@@ -223,15 +235,19 @@ class ApiKeysApi:
|
|
|
223
235
|
_request_auth=_request_auth,
|
|
224
236
|
_content_type=_content_type,
|
|
225
237
|
_headers=_headers,
|
|
226
|
-
_host_index=_host_index
|
|
238
|
+
_host_index=_host_index
|
|
227
239
|
)
|
|
228
240
|
|
|
229
241
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
230
|
-
|
|
242
|
+
'201': "ApiKeyResponse",
|
|
231
243
|
}
|
|
232
|
-
response_data = self.api_client.call_api(
|
|
244
|
+
response_data = self.api_client.call_api(
|
|
245
|
+
*_param,
|
|
246
|
+
_request_timeout=_request_timeout
|
|
247
|
+
)
|
|
233
248
|
return response_data.response
|
|
234
249
|
|
|
250
|
+
|
|
235
251
|
def _create_api_key_serialize(
|
|
236
252
|
self,
|
|
237
253
|
create_api_key,
|
|
@@ -241,45 +257,63 @@ class ApiKeysApi:
|
|
|
241
257
|
_headers,
|
|
242
258
|
_host_index,
|
|
243
259
|
) -> RequestSerialized:
|
|
260
|
+
|
|
244
261
|
_host = None
|
|
245
262
|
|
|
246
|
-
_collection_formats: Dict[str, str] = {
|
|
263
|
+
_collection_formats: Dict[str, str] = {
|
|
264
|
+
}
|
|
247
265
|
|
|
248
266
|
_path_params: Dict[str, str] = {}
|
|
249
267
|
_query_params: List[Tuple[str, str]] = []
|
|
250
268
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
251
269
|
_form_params: List[Tuple[str, str]] = []
|
|
252
|
-
_files: Dict[
|
|
270
|
+
_files: Dict[
|
|
271
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
272
|
+
] = {}
|
|
253
273
|
_body_params: Optional[bytes] = None
|
|
254
274
|
|
|
255
275
|
# process the path parameters
|
|
256
276
|
# process the query parameters
|
|
257
277
|
# process the header parameters
|
|
258
278
|
if x_daytona_organization_id is not None:
|
|
259
|
-
_header_params[
|
|
279
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
260
280
|
# process the form parameters
|
|
261
281
|
# process the body parameter
|
|
262
282
|
if create_api_key is not None:
|
|
263
283
|
_body_params = create_api_key
|
|
264
284
|
|
|
285
|
+
|
|
265
286
|
# set the HTTP header `Accept`
|
|
266
|
-
if
|
|
267
|
-
_header_params[
|
|
287
|
+
if 'Accept' not in _header_params:
|
|
288
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
289
|
+
[
|
|
290
|
+
'application/json'
|
|
291
|
+
]
|
|
292
|
+
)
|
|
268
293
|
|
|
269
294
|
# set the HTTP header `Content-Type`
|
|
270
295
|
if _content_type:
|
|
271
|
-
_header_params[
|
|
296
|
+
_header_params['Content-Type'] = _content_type
|
|
272
297
|
else:
|
|
273
|
-
_default_content_type =
|
|
298
|
+
_default_content_type = (
|
|
299
|
+
self.api_client.select_header_content_type(
|
|
300
|
+
[
|
|
301
|
+
'application/json'
|
|
302
|
+
]
|
|
303
|
+
)
|
|
304
|
+
)
|
|
274
305
|
if _default_content_type is not None:
|
|
275
|
-
_header_params[
|
|
306
|
+
_header_params['Content-Type'] = _default_content_type
|
|
276
307
|
|
|
277
308
|
# authentication setting
|
|
278
|
-
_auth_settings: List[str] = [
|
|
309
|
+
_auth_settings: List[str] = [
|
|
310
|
+
'bearer',
|
|
311
|
+
'oauth2'
|
|
312
|
+
]
|
|
279
313
|
|
|
280
314
|
return self.api_client.param_serialize(
|
|
281
|
-
method=
|
|
282
|
-
resource_path=
|
|
315
|
+
method='POST',
|
|
316
|
+
resource_path='/api-keys',
|
|
283
317
|
path_params=_path_params,
|
|
284
318
|
query_params=_query_params,
|
|
285
319
|
header_params=_header_params,
|
|
@@ -289,20 +323,24 @@ class ApiKeysApi:
|
|
|
289
323
|
auth_settings=_auth_settings,
|
|
290
324
|
collection_formats=_collection_formats,
|
|
291
325
|
_host=_host,
|
|
292
|
-
_request_auth=_request_auth
|
|
326
|
+
_request_auth=_request_auth
|
|
293
327
|
)
|
|
294
328
|
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
295
332
|
@validate_call
|
|
296
333
|
def delete_api_key(
|
|
297
334
|
self,
|
|
298
335
|
name: StrictStr,
|
|
299
|
-
x_daytona_organization_id: Annotated[
|
|
300
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
301
|
-
] = None,
|
|
336
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
302
337
|
_request_timeout: Union[
|
|
303
338
|
None,
|
|
304
339
|
Annotated[StrictFloat, Field(gt=0)],
|
|
305
|
-
Tuple[
|
|
340
|
+
Tuple[
|
|
341
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
342
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
343
|
+
]
|
|
306
344
|
] = None,
|
|
307
345
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
308
346
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -336,7 +374,7 @@ class ApiKeysApi:
|
|
|
336
374
|
in the spec for a single request.
|
|
337
375
|
:type _host_index: int, optional
|
|
338
376
|
:return: Returns the result object.
|
|
339
|
-
"""
|
|
377
|
+
""" # noqa: E501
|
|
340
378
|
|
|
341
379
|
_param = self._delete_api_key_serialize(
|
|
342
380
|
name=name,
|
|
@@ -344,30 +382,35 @@ class ApiKeysApi:
|
|
|
344
382
|
_request_auth=_request_auth,
|
|
345
383
|
_content_type=_content_type,
|
|
346
384
|
_headers=_headers,
|
|
347
|
-
_host_index=_host_index
|
|
385
|
+
_host_index=_host_index
|
|
348
386
|
)
|
|
349
387
|
|
|
350
388
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
351
|
-
|
|
389
|
+
'204': None,
|
|
352
390
|
}
|
|
353
|
-
response_data = self.api_client.call_api(
|
|
391
|
+
response_data = self.api_client.call_api(
|
|
392
|
+
*_param,
|
|
393
|
+
_request_timeout=_request_timeout
|
|
394
|
+
)
|
|
354
395
|
response_data.read()
|
|
355
396
|
return self.api_client.response_deserialize(
|
|
356
397
|
response_data=response_data,
|
|
357
398
|
response_types_map=_response_types_map,
|
|
358
399
|
).data
|
|
359
400
|
|
|
401
|
+
|
|
360
402
|
@validate_call
|
|
361
403
|
def delete_api_key_with_http_info(
|
|
362
404
|
self,
|
|
363
405
|
name: StrictStr,
|
|
364
|
-
x_daytona_organization_id: Annotated[
|
|
365
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
366
|
-
] = None,
|
|
406
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
367
407
|
_request_timeout: Union[
|
|
368
408
|
None,
|
|
369
409
|
Annotated[StrictFloat, Field(gt=0)],
|
|
370
|
-
Tuple[
|
|
410
|
+
Tuple[
|
|
411
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
412
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
413
|
+
]
|
|
371
414
|
] = None,
|
|
372
415
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
373
416
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -401,7 +444,7 @@ class ApiKeysApi:
|
|
|
401
444
|
in the spec for a single request.
|
|
402
445
|
:type _host_index: int, optional
|
|
403
446
|
:return: Returns the result object.
|
|
404
|
-
"""
|
|
447
|
+
""" # noqa: E501
|
|
405
448
|
|
|
406
449
|
_param = self._delete_api_key_serialize(
|
|
407
450
|
name=name,
|
|
@@ -409,30 +452,35 @@ class ApiKeysApi:
|
|
|
409
452
|
_request_auth=_request_auth,
|
|
410
453
|
_content_type=_content_type,
|
|
411
454
|
_headers=_headers,
|
|
412
|
-
_host_index=_host_index
|
|
455
|
+
_host_index=_host_index
|
|
413
456
|
)
|
|
414
457
|
|
|
415
458
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
416
|
-
|
|
459
|
+
'204': None,
|
|
417
460
|
}
|
|
418
|
-
response_data = self.api_client.call_api(
|
|
461
|
+
response_data = self.api_client.call_api(
|
|
462
|
+
*_param,
|
|
463
|
+
_request_timeout=_request_timeout
|
|
464
|
+
)
|
|
419
465
|
response_data.read()
|
|
420
466
|
return self.api_client.response_deserialize(
|
|
421
467
|
response_data=response_data,
|
|
422
468
|
response_types_map=_response_types_map,
|
|
423
469
|
)
|
|
424
470
|
|
|
471
|
+
|
|
425
472
|
@validate_call
|
|
426
473
|
def delete_api_key_without_preload_content(
|
|
427
474
|
self,
|
|
428
475
|
name: StrictStr,
|
|
429
|
-
x_daytona_organization_id: Annotated[
|
|
430
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
431
|
-
] = None,
|
|
476
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
432
477
|
_request_timeout: Union[
|
|
433
478
|
None,
|
|
434
479
|
Annotated[StrictFloat, Field(gt=0)],
|
|
435
|
-
Tuple[
|
|
480
|
+
Tuple[
|
|
481
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
482
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
483
|
+
]
|
|
436
484
|
] = None,
|
|
437
485
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
438
486
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -466,7 +514,7 @@ class ApiKeysApi:
|
|
|
466
514
|
in the spec for a single request.
|
|
467
515
|
:type _host_index: int, optional
|
|
468
516
|
:return: Returns the result object.
|
|
469
|
-
"""
|
|
517
|
+
""" # noqa: E501
|
|
470
518
|
|
|
471
519
|
_param = self._delete_api_key_serialize(
|
|
472
520
|
name=name,
|
|
@@ -474,15 +522,19 @@ class ApiKeysApi:
|
|
|
474
522
|
_request_auth=_request_auth,
|
|
475
523
|
_content_type=_content_type,
|
|
476
524
|
_headers=_headers,
|
|
477
|
-
_host_index=_host_index
|
|
525
|
+
_host_index=_host_index
|
|
478
526
|
)
|
|
479
527
|
|
|
480
528
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
481
|
-
|
|
529
|
+
'204': None,
|
|
482
530
|
}
|
|
483
|
-
response_data = self.api_client.call_api(
|
|
531
|
+
response_data = self.api_client.call_api(
|
|
532
|
+
*_param,
|
|
533
|
+
_request_timeout=_request_timeout
|
|
534
|
+
)
|
|
484
535
|
return response_data.response
|
|
485
536
|
|
|
537
|
+
|
|
486
538
|
def _delete_api_key_serialize(
|
|
487
539
|
self,
|
|
488
540
|
name,
|
|
@@ -492,33 +544,43 @@ class ApiKeysApi:
|
|
|
492
544
|
_headers,
|
|
493
545
|
_host_index,
|
|
494
546
|
) -> RequestSerialized:
|
|
547
|
+
|
|
495
548
|
_host = None
|
|
496
549
|
|
|
497
|
-
_collection_formats: Dict[str, str] = {
|
|
550
|
+
_collection_formats: Dict[str, str] = {
|
|
551
|
+
}
|
|
498
552
|
|
|
499
553
|
_path_params: Dict[str, str] = {}
|
|
500
554
|
_query_params: List[Tuple[str, str]] = []
|
|
501
555
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
502
556
|
_form_params: List[Tuple[str, str]] = []
|
|
503
|
-
_files: Dict[
|
|
557
|
+
_files: Dict[
|
|
558
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
559
|
+
] = {}
|
|
504
560
|
_body_params: Optional[bytes] = None
|
|
505
561
|
|
|
506
562
|
# process the path parameters
|
|
507
563
|
if name is not None:
|
|
508
|
-
_path_params[
|
|
564
|
+
_path_params['name'] = name
|
|
509
565
|
# process the query parameters
|
|
510
566
|
# process the header parameters
|
|
511
567
|
if x_daytona_organization_id is not None:
|
|
512
|
-
_header_params[
|
|
568
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
513
569
|
# process the form parameters
|
|
514
570
|
# process the body parameter
|
|
515
571
|
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
516
575
|
# authentication setting
|
|
517
|
-
_auth_settings: List[str] = [
|
|
576
|
+
_auth_settings: List[str] = [
|
|
577
|
+
'bearer',
|
|
578
|
+
'oauth2'
|
|
579
|
+
]
|
|
518
580
|
|
|
519
581
|
return self.api_client.param_serialize(
|
|
520
|
-
method=
|
|
521
|
-
resource_path=
|
|
582
|
+
method='DELETE',
|
|
583
|
+
resource_path='/api-keys/{name}',
|
|
522
584
|
path_params=_path_params,
|
|
523
585
|
query_params=_query_params,
|
|
524
586
|
header_params=_header_params,
|
|
@@ -528,20 +590,24 @@ class ApiKeysApi:
|
|
|
528
590
|
auth_settings=_auth_settings,
|
|
529
591
|
collection_formats=_collection_formats,
|
|
530
592
|
_host=_host,
|
|
531
|
-
_request_auth=_request_auth
|
|
593
|
+
_request_auth=_request_auth
|
|
532
594
|
)
|
|
533
595
|
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
|
|
534
599
|
@validate_call
|
|
535
600
|
def get_api_key(
|
|
536
601
|
self,
|
|
537
602
|
name: StrictStr,
|
|
538
|
-
x_daytona_organization_id: Annotated[
|
|
539
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
540
|
-
] = None,
|
|
603
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
541
604
|
_request_timeout: Union[
|
|
542
605
|
None,
|
|
543
606
|
Annotated[StrictFloat, Field(gt=0)],
|
|
544
|
-
Tuple[
|
|
607
|
+
Tuple[
|
|
608
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
609
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
610
|
+
]
|
|
545
611
|
] = None,
|
|
546
612
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
547
613
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -575,7 +641,7 @@ class ApiKeysApi:
|
|
|
575
641
|
in the spec for a single request.
|
|
576
642
|
:type _host_index: int, optional
|
|
577
643
|
:return: Returns the result object.
|
|
578
|
-
"""
|
|
644
|
+
""" # noqa: E501
|
|
579
645
|
|
|
580
646
|
_param = self._get_api_key_serialize(
|
|
581
647
|
name=name,
|
|
@@ -583,30 +649,35 @@ class ApiKeysApi:
|
|
|
583
649
|
_request_auth=_request_auth,
|
|
584
650
|
_content_type=_content_type,
|
|
585
651
|
_headers=_headers,
|
|
586
|
-
_host_index=_host_index
|
|
652
|
+
_host_index=_host_index
|
|
587
653
|
)
|
|
588
654
|
|
|
589
655
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
590
|
-
|
|
656
|
+
'200': "ApiKeyList",
|
|
591
657
|
}
|
|
592
|
-
response_data = self.api_client.call_api(
|
|
658
|
+
response_data = self.api_client.call_api(
|
|
659
|
+
*_param,
|
|
660
|
+
_request_timeout=_request_timeout
|
|
661
|
+
)
|
|
593
662
|
response_data.read()
|
|
594
663
|
return self.api_client.response_deserialize(
|
|
595
664
|
response_data=response_data,
|
|
596
665
|
response_types_map=_response_types_map,
|
|
597
666
|
).data
|
|
598
667
|
|
|
668
|
+
|
|
599
669
|
@validate_call
|
|
600
670
|
def get_api_key_with_http_info(
|
|
601
671
|
self,
|
|
602
672
|
name: StrictStr,
|
|
603
|
-
x_daytona_organization_id: Annotated[
|
|
604
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
605
|
-
] = None,
|
|
673
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
606
674
|
_request_timeout: Union[
|
|
607
675
|
None,
|
|
608
676
|
Annotated[StrictFloat, Field(gt=0)],
|
|
609
|
-
Tuple[
|
|
677
|
+
Tuple[
|
|
678
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
679
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
680
|
+
]
|
|
610
681
|
] = None,
|
|
611
682
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
612
683
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -640,7 +711,7 @@ class ApiKeysApi:
|
|
|
640
711
|
in the spec for a single request.
|
|
641
712
|
:type _host_index: int, optional
|
|
642
713
|
:return: Returns the result object.
|
|
643
|
-
"""
|
|
714
|
+
""" # noqa: E501
|
|
644
715
|
|
|
645
716
|
_param = self._get_api_key_serialize(
|
|
646
717
|
name=name,
|
|
@@ -648,30 +719,35 @@ class ApiKeysApi:
|
|
|
648
719
|
_request_auth=_request_auth,
|
|
649
720
|
_content_type=_content_type,
|
|
650
721
|
_headers=_headers,
|
|
651
|
-
_host_index=_host_index
|
|
722
|
+
_host_index=_host_index
|
|
652
723
|
)
|
|
653
724
|
|
|
654
725
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
655
|
-
|
|
726
|
+
'200': "ApiKeyList",
|
|
656
727
|
}
|
|
657
|
-
response_data = self.api_client.call_api(
|
|
728
|
+
response_data = self.api_client.call_api(
|
|
729
|
+
*_param,
|
|
730
|
+
_request_timeout=_request_timeout
|
|
731
|
+
)
|
|
658
732
|
response_data.read()
|
|
659
733
|
return self.api_client.response_deserialize(
|
|
660
734
|
response_data=response_data,
|
|
661
735
|
response_types_map=_response_types_map,
|
|
662
736
|
)
|
|
663
737
|
|
|
738
|
+
|
|
664
739
|
@validate_call
|
|
665
740
|
def get_api_key_without_preload_content(
|
|
666
741
|
self,
|
|
667
742
|
name: StrictStr,
|
|
668
|
-
x_daytona_organization_id: Annotated[
|
|
669
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
670
|
-
] = None,
|
|
743
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
671
744
|
_request_timeout: Union[
|
|
672
745
|
None,
|
|
673
746
|
Annotated[StrictFloat, Field(gt=0)],
|
|
674
|
-
Tuple[
|
|
747
|
+
Tuple[
|
|
748
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
749
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
750
|
+
]
|
|
675
751
|
] = None,
|
|
676
752
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
677
753
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -705,7 +781,7 @@ class ApiKeysApi:
|
|
|
705
781
|
in the spec for a single request.
|
|
706
782
|
:type _host_index: int, optional
|
|
707
783
|
:return: Returns the result object.
|
|
708
|
-
"""
|
|
784
|
+
""" # noqa: E501
|
|
709
785
|
|
|
710
786
|
_param = self._get_api_key_serialize(
|
|
711
787
|
name=name,
|
|
@@ -713,15 +789,19 @@ class ApiKeysApi:
|
|
|
713
789
|
_request_auth=_request_auth,
|
|
714
790
|
_content_type=_content_type,
|
|
715
791
|
_headers=_headers,
|
|
716
|
-
_host_index=_host_index
|
|
792
|
+
_host_index=_host_index
|
|
717
793
|
)
|
|
718
794
|
|
|
719
795
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
720
|
-
|
|
796
|
+
'200': "ApiKeyList",
|
|
721
797
|
}
|
|
722
|
-
response_data = self.api_client.call_api(
|
|
798
|
+
response_data = self.api_client.call_api(
|
|
799
|
+
*_param,
|
|
800
|
+
_request_timeout=_request_timeout
|
|
801
|
+
)
|
|
723
802
|
return response_data.response
|
|
724
803
|
|
|
804
|
+
|
|
725
805
|
def _get_api_key_serialize(
|
|
726
806
|
self,
|
|
727
807
|
name,
|
|
@@ -731,37 +811,50 @@ class ApiKeysApi:
|
|
|
731
811
|
_headers,
|
|
732
812
|
_host_index,
|
|
733
813
|
) -> RequestSerialized:
|
|
814
|
+
|
|
734
815
|
_host = None
|
|
735
816
|
|
|
736
|
-
_collection_formats: Dict[str, str] = {
|
|
817
|
+
_collection_formats: Dict[str, str] = {
|
|
818
|
+
}
|
|
737
819
|
|
|
738
820
|
_path_params: Dict[str, str] = {}
|
|
739
821
|
_query_params: List[Tuple[str, str]] = []
|
|
740
822
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
741
823
|
_form_params: List[Tuple[str, str]] = []
|
|
742
|
-
_files: Dict[
|
|
824
|
+
_files: Dict[
|
|
825
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
826
|
+
] = {}
|
|
743
827
|
_body_params: Optional[bytes] = None
|
|
744
828
|
|
|
745
829
|
# process the path parameters
|
|
746
830
|
if name is not None:
|
|
747
|
-
_path_params[
|
|
831
|
+
_path_params['name'] = name
|
|
748
832
|
# process the query parameters
|
|
749
833
|
# process the header parameters
|
|
750
834
|
if x_daytona_organization_id is not None:
|
|
751
|
-
_header_params[
|
|
835
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
752
836
|
# process the form parameters
|
|
753
837
|
# process the body parameter
|
|
754
838
|
|
|
839
|
+
|
|
755
840
|
# set the HTTP header `Accept`
|
|
756
|
-
if
|
|
757
|
-
_header_params[
|
|
841
|
+
if 'Accept' not in _header_params:
|
|
842
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
843
|
+
[
|
|
844
|
+
'application/json'
|
|
845
|
+
]
|
|
846
|
+
)
|
|
847
|
+
|
|
758
848
|
|
|
759
849
|
# authentication setting
|
|
760
|
-
_auth_settings: List[str] = [
|
|
850
|
+
_auth_settings: List[str] = [
|
|
851
|
+
'bearer',
|
|
852
|
+
'oauth2'
|
|
853
|
+
]
|
|
761
854
|
|
|
762
855
|
return self.api_client.param_serialize(
|
|
763
|
-
method=
|
|
764
|
-
resource_path=
|
|
856
|
+
method='GET',
|
|
857
|
+
resource_path='/api-keys/{name}',
|
|
765
858
|
path_params=_path_params,
|
|
766
859
|
query_params=_query_params,
|
|
767
860
|
header_params=_header_params,
|
|
@@ -771,19 +864,23 @@ class ApiKeysApi:
|
|
|
771
864
|
auth_settings=_auth_settings,
|
|
772
865
|
collection_formats=_collection_formats,
|
|
773
866
|
_host=_host,
|
|
774
|
-
_request_auth=_request_auth
|
|
867
|
+
_request_auth=_request_auth
|
|
775
868
|
)
|
|
776
869
|
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
|
|
777
873
|
@validate_call
|
|
778
874
|
def get_current_api_key(
|
|
779
875
|
self,
|
|
780
|
-
x_daytona_organization_id: Annotated[
|
|
781
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
782
|
-
] = None,
|
|
876
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
783
877
|
_request_timeout: Union[
|
|
784
878
|
None,
|
|
785
879
|
Annotated[StrictFloat, Field(gt=0)],
|
|
786
|
-
Tuple[
|
|
880
|
+
Tuple[
|
|
881
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
882
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
883
|
+
]
|
|
787
884
|
] = None,
|
|
788
885
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
789
886
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -815,36 +912,41 @@ class ApiKeysApi:
|
|
|
815
912
|
in the spec for a single request.
|
|
816
913
|
:type _host_index: int, optional
|
|
817
914
|
:return: Returns the result object.
|
|
818
|
-
"""
|
|
915
|
+
""" # noqa: E501
|
|
819
916
|
|
|
820
917
|
_param = self._get_current_api_key_serialize(
|
|
821
918
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
822
919
|
_request_auth=_request_auth,
|
|
823
920
|
_content_type=_content_type,
|
|
824
921
|
_headers=_headers,
|
|
825
|
-
_host_index=_host_index
|
|
922
|
+
_host_index=_host_index
|
|
826
923
|
)
|
|
827
924
|
|
|
828
925
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
829
|
-
|
|
926
|
+
'200': "ApiKeyList",
|
|
830
927
|
}
|
|
831
|
-
response_data = self.api_client.call_api(
|
|
928
|
+
response_data = self.api_client.call_api(
|
|
929
|
+
*_param,
|
|
930
|
+
_request_timeout=_request_timeout
|
|
931
|
+
)
|
|
832
932
|
response_data.read()
|
|
833
933
|
return self.api_client.response_deserialize(
|
|
834
934
|
response_data=response_data,
|
|
835
935
|
response_types_map=_response_types_map,
|
|
836
936
|
).data
|
|
837
937
|
|
|
938
|
+
|
|
838
939
|
@validate_call
|
|
839
940
|
def get_current_api_key_with_http_info(
|
|
840
941
|
self,
|
|
841
|
-
x_daytona_organization_id: Annotated[
|
|
842
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
843
|
-
] = None,
|
|
942
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
844
943
|
_request_timeout: Union[
|
|
845
944
|
None,
|
|
846
945
|
Annotated[StrictFloat, Field(gt=0)],
|
|
847
|
-
Tuple[
|
|
946
|
+
Tuple[
|
|
947
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
948
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
949
|
+
]
|
|
848
950
|
] = None,
|
|
849
951
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
850
952
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -876,36 +978,41 @@ class ApiKeysApi:
|
|
|
876
978
|
in the spec for a single request.
|
|
877
979
|
:type _host_index: int, optional
|
|
878
980
|
:return: Returns the result object.
|
|
879
|
-
"""
|
|
981
|
+
""" # noqa: E501
|
|
880
982
|
|
|
881
983
|
_param = self._get_current_api_key_serialize(
|
|
882
984
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
883
985
|
_request_auth=_request_auth,
|
|
884
986
|
_content_type=_content_type,
|
|
885
987
|
_headers=_headers,
|
|
886
|
-
_host_index=_host_index
|
|
988
|
+
_host_index=_host_index
|
|
887
989
|
)
|
|
888
990
|
|
|
889
991
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
890
|
-
|
|
992
|
+
'200': "ApiKeyList",
|
|
891
993
|
}
|
|
892
|
-
response_data = self.api_client.call_api(
|
|
994
|
+
response_data = self.api_client.call_api(
|
|
995
|
+
*_param,
|
|
996
|
+
_request_timeout=_request_timeout
|
|
997
|
+
)
|
|
893
998
|
response_data.read()
|
|
894
999
|
return self.api_client.response_deserialize(
|
|
895
1000
|
response_data=response_data,
|
|
896
1001
|
response_types_map=_response_types_map,
|
|
897
1002
|
)
|
|
898
1003
|
|
|
1004
|
+
|
|
899
1005
|
@validate_call
|
|
900
1006
|
def get_current_api_key_without_preload_content(
|
|
901
1007
|
self,
|
|
902
|
-
x_daytona_organization_id: Annotated[
|
|
903
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
904
|
-
] = None,
|
|
1008
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
905
1009
|
_request_timeout: Union[
|
|
906
1010
|
None,
|
|
907
1011
|
Annotated[StrictFloat, Field(gt=0)],
|
|
908
|
-
Tuple[
|
|
1012
|
+
Tuple[
|
|
1013
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1014
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1015
|
+
]
|
|
909
1016
|
] = None,
|
|
910
1017
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
911
1018
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -937,22 +1044,26 @@ class ApiKeysApi:
|
|
|
937
1044
|
in the spec for a single request.
|
|
938
1045
|
:type _host_index: int, optional
|
|
939
1046
|
:return: Returns the result object.
|
|
940
|
-
"""
|
|
1047
|
+
""" # noqa: E501
|
|
941
1048
|
|
|
942
1049
|
_param = self._get_current_api_key_serialize(
|
|
943
1050
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
944
1051
|
_request_auth=_request_auth,
|
|
945
1052
|
_content_type=_content_type,
|
|
946
1053
|
_headers=_headers,
|
|
947
|
-
_host_index=_host_index
|
|
1054
|
+
_host_index=_host_index
|
|
948
1055
|
)
|
|
949
1056
|
|
|
950
1057
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
951
|
-
|
|
1058
|
+
'200': "ApiKeyList",
|
|
952
1059
|
}
|
|
953
|
-
response_data = self.api_client.call_api(
|
|
1060
|
+
response_data = self.api_client.call_api(
|
|
1061
|
+
*_param,
|
|
1062
|
+
_request_timeout=_request_timeout
|
|
1063
|
+
)
|
|
954
1064
|
return response_data.response
|
|
955
1065
|
|
|
1066
|
+
|
|
956
1067
|
def _get_current_api_key_serialize(
|
|
957
1068
|
self,
|
|
958
1069
|
x_daytona_organization_id,
|
|
@@ -961,35 +1072,48 @@ class ApiKeysApi:
|
|
|
961
1072
|
_headers,
|
|
962
1073
|
_host_index,
|
|
963
1074
|
) -> RequestSerialized:
|
|
1075
|
+
|
|
964
1076
|
_host = None
|
|
965
1077
|
|
|
966
|
-
_collection_formats: Dict[str, str] = {
|
|
1078
|
+
_collection_formats: Dict[str, str] = {
|
|
1079
|
+
}
|
|
967
1080
|
|
|
968
1081
|
_path_params: Dict[str, str] = {}
|
|
969
1082
|
_query_params: List[Tuple[str, str]] = []
|
|
970
1083
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
971
1084
|
_form_params: List[Tuple[str, str]] = []
|
|
972
|
-
_files: Dict[
|
|
1085
|
+
_files: Dict[
|
|
1086
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1087
|
+
] = {}
|
|
973
1088
|
_body_params: Optional[bytes] = None
|
|
974
1089
|
|
|
975
1090
|
# process the path parameters
|
|
976
1091
|
# process the query parameters
|
|
977
1092
|
# process the header parameters
|
|
978
1093
|
if x_daytona_organization_id is not None:
|
|
979
|
-
_header_params[
|
|
1094
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
980
1095
|
# process the form parameters
|
|
981
1096
|
# process the body parameter
|
|
982
1097
|
|
|
1098
|
+
|
|
983
1099
|
# set the HTTP header `Accept`
|
|
984
|
-
if
|
|
985
|
-
_header_params[
|
|
1100
|
+
if 'Accept' not in _header_params:
|
|
1101
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1102
|
+
[
|
|
1103
|
+
'application/json'
|
|
1104
|
+
]
|
|
1105
|
+
)
|
|
1106
|
+
|
|
986
1107
|
|
|
987
1108
|
# authentication setting
|
|
988
|
-
_auth_settings: List[str] = [
|
|
1109
|
+
_auth_settings: List[str] = [
|
|
1110
|
+
'bearer',
|
|
1111
|
+
'oauth2'
|
|
1112
|
+
]
|
|
989
1113
|
|
|
990
1114
|
return self.api_client.param_serialize(
|
|
991
|
-
method=
|
|
992
|
-
resource_path=
|
|
1115
|
+
method='GET',
|
|
1116
|
+
resource_path='/api-keys/current',
|
|
993
1117
|
path_params=_path_params,
|
|
994
1118
|
query_params=_query_params,
|
|
995
1119
|
header_params=_header_params,
|
|
@@ -999,19 +1123,23 @@ class ApiKeysApi:
|
|
|
999
1123
|
auth_settings=_auth_settings,
|
|
1000
1124
|
collection_formats=_collection_formats,
|
|
1001
1125
|
_host=_host,
|
|
1002
|
-
_request_auth=_request_auth
|
|
1126
|
+
_request_auth=_request_auth
|
|
1003
1127
|
)
|
|
1004
1128
|
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
|
|
1005
1132
|
@validate_call
|
|
1006
1133
|
def list_api_keys(
|
|
1007
1134
|
self,
|
|
1008
|
-
x_daytona_organization_id: Annotated[
|
|
1009
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
1010
|
-
] = None,
|
|
1135
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1011
1136
|
_request_timeout: Union[
|
|
1012
1137
|
None,
|
|
1013
1138
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1014
|
-
Tuple[
|
|
1139
|
+
Tuple[
|
|
1140
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1141
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1142
|
+
]
|
|
1015
1143
|
] = None,
|
|
1016
1144
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1017
1145
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1043,37 +1171,42 @@ class ApiKeysApi:
|
|
|
1043
1171
|
in the spec for a single request.
|
|
1044
1172
|
:type _host_index: int, optional
|
|
1045
1173
|
:return: Returns the result object.
|
|
1046
|
-
"""
|
|
1174
|
+
""" # noqa: E501
|
|
1047
1175
|
|
|
1048
1176
|
_param = self._list_api_keys_serialize(
|
|
1049
1177
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
1050
1178
|
_request_auth=_request_auth,
|
|
1051
1179
|
_content_type=_content_type,
|
|
1052
1180
|
_headers=_headers,
|
|
1053
|
-
_host_index=_host_index
|
|
1181
|
+
_host_index=_host_index
|
|
1054
1182
|
)
|
|
1055
1183
|
|
|
1056
1184
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1057
|
-
|
|
1058
|
-
|
|
1185
|
+
'200': "List[ApiKeyList]",
|
|
1186
|
+
'500': None,
|
|
1059
1187
|
}
|
|
1060
|
-
response_data = self.api_client.call_api(
|
|
1188
|
+
response_data = self.api_client.call_api(
|
|
1189
|
+
*_param,
|
|
1190
|
+
_request_timeout=_request_timeout
|
|
1191
|
+
)
|
|
1061
1192
|
response_data.read()
|
|
1062
1193
|
return self.api_client.response_deserialize(
|
|
1063
1194
|
response_data=response_data,
|
|
1064
1195
|
response_types_map=_response_types_map,
|
|
1065
1196
|
).data
|
|
1066
1197
|
|
|
1198
|
+
|
|
1067
1199
|
@validate_call
|
|
1068
1200
|
def list_api_keys_with_http_info(
|
|
1069
1201
|
self,
|
|
1070
|
-
x_daytona_organization_id: Annotated[
|
|
1071
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
1072
|
-
] = None,
|
|
1202
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1073
1203
|
_request_timeout: Union[
|
|
1074
1204
|
None,
|
|
1075
1205
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1076
|
-
Tuple[
|
|
1206
|
+
Tuple[
|
|
1207
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1208
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1209
|
+
]
|
|
1077
1210
|
] = None,
|
|
1078
1211
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1079
1212
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1105,37 +1238,42 @@ class ApiKeysApi:
|
|
|
1105
1238
|
in the spec for a single request.
|
|
1106
1239
|
:type _host_index: int, optional
|
|
1107
1240
|
:return: Returns the result object.
|
|
1108
|
-
"""
|
|
1241
|
+
""" # noqa: E501
|
|
1109
1242
|
|
|
1110
1243
|
_param = self._list_api_keys_serialize(
|
|
1111
1244
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
1112
1245
|
_request_auth=_request_auth,
|
|
1113
1246
|
_content_type=_content_type,
|
|
1114
1247
|
_headers=_headers,
|
|
1115
|
-
_host_index=_host_index
|
|
1248
|
+
_host_index=_host_index
|
|
1116
1249
|
)
|
|
1117
1250
|
|
|
1118
1251
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1119
|
-
|
|
1120
|
-
|
|
1252
|
+
'200': "List[ApiKeyList]",
|
|
1253
|
+
'500': None,
|
|
1121
1254
|
}
|
|
1122
|
-
response_data = self.api_client.call_api(
|
|
1255
|
+
response_data = self.api_client.call_api(
|
|
1256
|
+
*_param,
|
|
1257
|
+
_request_timeout=_request_timeout
|
|
1258
|
+
)
|
|
1123
1259
|
response_data.read()
|
|
1124
1260
|
return self.api_client.response_deserialize(
|
|
1125
1261
|
response_data=response_data,
|
|
1126
1262
|
response_types_map=_response_types_map,
|
|
1127
1263
|
)
|
|
1128
1264
|
|
|
1265
|
+
|
|
1129
1266
|
@validate_call
|
|
1130
1267
|
def list_api_keys_without_preload_content(
|
|
1131
1268
|
self,
|
|
1132
|
-
x_daytona_organization_id: Annotated[
|
|
1133
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
1134
|
-
] = None,
|
|
1269
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1135
1270
|
_request_timeout: Union[
|
|
1136
1271
|
None,
|
|
1137
1272
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1138
|
-
Tuple[
|
|
1273
|
+
Tuple[
|
|
1274
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1275
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1276
|
+
]
|
|
1139
1277
|
] = None,
|
|
1140
1278
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1141
1279
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -1167,23 +1305,27 @@ class ApiKeysApi:
|
|
|
1167
1305
|
in the spec for a single request.
|
|
1168
1306
|
:type _host_index: int, optional
|
|
1169
1307
|
:return: Returns the result object.
|
|
1170
|
-
"""
|
|
1308
|
+
""" # noqa: E501
|
|
1171
1309
|
|
|
1172
1310
|
_param = self._list_api_keys_serialize(
|
|
1173
1311
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
1174
1312
|
_request_auth=_request_auth,
|
|
1175
1313
|
_content_type=_content_type,
|
|
1176
1314
|
_headers=_headers,
|
|
1177
|
-
_host_index=_host_index
|
|
1315
|
+
_host_index=_host_index
|
|
1178
1316
|
)
|
|
1179
1317
|
|
|
1180
1318
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1181
|
-
|
|
1182
|
-
|
|
1319
|
+
'200': "List[ApiKeyList]",
|
|
1320
|
+
'500': None,
|
|
1183
1321
|
}
|
|
1184
|
-
response_data = self.api_client.call_api(
|
|
1322
|
+
response_data = self.api_client.call_api(
|
|
1323
|
+
*_param,
|
|
1324
|
+
_request_timeout=_request_timeout
|
|
1325
|
+
)
|
|
1185
1326
|
return response_data.response
|
|
1186
1327
|
|
|
1328
|
+
|
|
1187
1329
|
def _list_api_keys_serialize(
|
|
1188
1330
|
self,
|
|
1189
1331
|
x_daytona_organization_id,
|
|
@@ -1192,35 +1334,48 @@ class ApiKeysApi:
|
|
|
1192
1334
|
_headers,
|
|
1193
1335
|
_host_index,
|
|
1194
1336
|
) -> RequestSerialized:
|
|
1337
|
+
|
|
1195
1338
|
_host = None
|
|
1196
1339
|
|
|
1197
|
-
_collection_formats: Dict[str, str] = {
|
|
1340
|
+
_collection_formats: Dict[str, str] = {
|
|
1341
|
+
}
|
|
1198
1342
|
|
|
1199
1343
|
_path_params: Dict[str, str] = {}
|
|
1200
1344
|
_query_params: List[Tuple[str, str]] = []
|
|
1201
1345
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1202
1346
|
_form_params: List[Tuple[str, str]] = []
|
|
1203
|
-
_files: Dict[
|
|
1347
|
+
_files: Dict[
|
|
1348
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1349
|
+
] = {}
|
|
1204
1350
|
_body_params: Optional[bytes] = None
|
|
1205
1351
|
|
|
1206
1352
|
# process the path parameters
|
|
1207
1353
|
# process the query parameters
|
|
1208
1354
|
# process the header parameters
|
|
1209
1355
|
if x_daytona_organization_id is not None:
|
|
1210
|
-
_header_params[
|
|
1356
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
1211
1357
|
# process the form parameters
|
|
1212
1358
|
# process the body parameter
|
|
1213
1359
|
|
|
1360
|
+
|
|
1214
1361
|
# set the HTTP header `Accept`
|
|
1215
|
-
if
|
|
1216
|
-
_header_params[
|
|
1362
|
+
if 'Accept' not in _header_params:
|
|
1363
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1364
|
+
[
|
|
1365
|
+
'application/json'
|
|
1366
|
+
]
|
|
1367
|
+
)
|
|
1368
|
+
|
|
1217
1369
|
|
|
1218
1370
|
# authentication setting
|
|
1219
|
-
_auth_settings: List[str] = [
|
|
1371
|
+
_auth_settings: List[str] = [
|
|
1372
|
+
'bearer',
|
|
1373
|
+
'oauth2'
|
|
1374
|
+
]
|
|
1220
1375
|
|
|
1221
1376
|
return self.api_client.param_serialize(
|
|
1222
|
-
method=
|
|
1223
|
-
resource_path=
|
|
1377
|
+
method='GET',
|
|
1378
|
+
resource_path='/api-keys',
|
|
1224
1379
|
path_params=_path_params,
|
|
1225
1380
|
query_params=_query_params,
|
|
1226
1381
|
header_params=_header_params,
|
|
@@ -1230,5 +1385,7 @@ class ApiKeysApi:
|
|
|
1230
1385
|
auth_settings=_auth_settings,
|
|
1231
1386
|
collection_formats=_collection_formats,
|
|
1232
1387
|
_host=_host,
|
|
1233
|
-
_request_auth=_request_auth
|
|
1388
|
+
_request_auth=_request_auth
|
|
1234
1389
|
)
|
|
1390
|
+
|
|
1391
|
+
|