daytona_api_client 0.21.3a0__py3-none-any.whl → 0.21.4a4__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.4a4.dist-info}/METADATA +1 -1
- daytona_api_client-0.21.4a4.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.4a4.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.4a4.dist-info}/top_level.txt +0 -0
|
@@ -39,16 +39,18 @@ class ObjectStorageApi:
|
|
|
39
39
|
api_client = ApiClient.get_default()
|
|
40
40
|
self.api_client = api_client
|
|
41
41
|
|
|
42
|
+
|
|
42
43
|
@validate_call
|
|
43
44
|
def get_push_access(
|
|
44
45
|
self,
|
|
45
|
-
x_daytona_organization_id: Annotated[
|
|
46
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
47
|
-
] = None,
|
|
46
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
48
47
|
_request_timeout: Union[
|
|
49
48
|
None,
|
|
50
49
|
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
-
Tuple[
|
|
50
|
+
Tuple[
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
53
|
+
]
|
|
52
54
|
] = None,
|
|
53
55
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
54
56
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -80,36 +82,41 @@ class ObjectStorageApi:
|
|
|
80
82
|
in the spec for a single request.
|
|
81
83
|
:type _host_index: int, optional
|
|
82
84
|
:return: Returns the result object.
|
|
83
|
-
"""
|
|
85
|
+
""" # noqa: E501
|
|
84
86
|
|
|
85
87
|
_param = self._get_push_access_serialize(
|
|
86
88
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
87
89
|
_request_auth=_request_auth,
|
|
88
90
|
_content_type=_content_type,
|
|
89
91
|
_headers=_headers,
|
|
90
|
-
_host_index=_host_index
|
|
92
|
+
_host_index=_host_index
|
|
91
93
|
)
|
|
92
94
|
|
|
93
95
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
94
|
-
|
|
96
|
+
'200': "StorageAccessDto",
|
|
95
97
|
}
|
|
96
|
-
response_data = self.api_client.call_api(
|
|
98
|
+
response_data = self.api_client.call_api(
|
|
99
|
+
*_param,
|
|
100
|
+
_request_timeout=_request_timeout
|
|
101
|
+
)
|
|
97
102
|
response_data.read()
|
|
98
103
|
return self.api_client.response_deserialize(
|
|
99
104
|
response_data=response_data,
|
|
100
105
|
response_types_map=_response_types_map,
|
|
101
106
|
).data
|
|
102
107
|
|
|
108
|
+
|
|
103
109
|
@validate_call
|
|
104
110
|
def get_push_access_with_http_info(
|
|
105
111
|
self,
|
|
106
|
-
x_daytona_organization_id: Annotated[
|
|
107
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
108
|
-
] = None,
|
|
112
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
109
113
|
_request_timeout: Union[
|
|
110
114
|
None,
|
|
111
115
|
Annotated[StrictFloat, Field(gt=0)],
|
|
112
|
-
Tuple[
|
|
116
|
+
Tuple[
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
119
|
+
]
|
|
113
120
|
] = None,
|
|
114
121
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
115
122
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -141,36 +148,41 @@ class ObjectStorageApi:
|
|
|
141
148
|
in the spec for a single request.
|
|
142
149
|
:type _host_index: int, optional
|
|
143
150
|
:return: Returns the result object.
|
|
144
|
-
"""
|
|
151
|
+
""" # noqa: E501
|
|
145
152
|
|
|
146
153
|
_param = self._get_push_access_serialize(
|
|
147
154
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
148
155
|
_request_auth=_request_auth,
|
|
149
156
|
_content_type=_content_type,
|
|
150
157
|
_headers=_headers,
|
|
151
|
-
_host_index=_host_index
|
|
158
|
+
_host_index=_host_index
|
|
152
159
|
)
|
|
153
160
|
|
|
154
161
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
155
|
-
|
|
162
|
+
'200': "StorageAccessDto",
|
|
156
163
|
}
|
|
157
|
-
response_data = self.api_client.call_api(
|
|
164
|
+
response_data = self.api_client.call_api(
|
|
165
|
+
*_param,
|
|
166
|
+
_request_timeout=_request_timeout
|
|
167
|
+
)
|
|
158
168
|
response_data.read()
|
|
159
169
|
return self.api_client.response_deserialize(
|
|
160
170
|
response_data=response_data,
|
|
161
171
|
response_types_map=_response_types_map,
|
|
162
172
|
)
|
|
163
173
|
|
|
174
|
+
|
|
164
175
|
@validate_call
|
|
165
176
|
def get_push_access_without_preload_content(
|
|
166
177
|
self,
|
|
167
|
-
x_daytona_organization_id: Annotated[
|
|
168
|
-
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
169
|
-
] = None,
|
|
178
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
170
179
|
_request_timeout: Union[
|
|
171
180
|
None,
|
|
172
181
|
Annotated[StrictFloat, Field(gt=0)],
|
|
173
|
-
Tuple[
|
|
182
|
+
Tuple[
|
|
183
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
184
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
185
|
+
]
|
|
174
186
|
] = None,
|
|
175
187
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
176
188
|
_content_type: Optional[StrictStr] = None,
|
|
@@ -202,22 +214,26 @@ class ObjectStorageApi:
|
|
|
202
214
|
in the spec for a single request.
|
|
203
215
|
:type _host_index: int, optional
|
|
204
216
|
:return: Returns the result object.
|
|
205
|
-
"""
|
|
217
|
+
""" # noqa: E501
|
|
206
218
|
|
|
207
219
|
_param = self._get_push_access_serialize(
|
|
208
220
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
209
221
|
_request_auth=_request_auth,
|
|
210
222
|
_content_type=_content_type,
|
|
211
223
|
_headers=_headers,
|
|
212
|
-
_host_index=_host_index
|
|
224
|
+
_host_index=_host_index
|
|
213
225
|
)
|
|
214
226
|
|
|
215
227
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
216
|
-
|
|
228
|
+
'200': "StorageAccessDto",
|
|
217
229
|
}
|
|
218
|
-
response_data = self.api_client.call_api(
|
|
230
|
+
response_data = self.api_client.call_api(
|
|
231
|
+
*_param,
|
|
232
|
+
_request_timeout=_request_timeout
|
|
233
|
+
)
|
|
219
234
|
return response_data.response
|
|
220
235
|
|
|
236
|
+
|
|
221
237
|
def _get_push_access_serialize(
|
|
222
238
|
self,
|
|
223
239
|
x_daytona_organization_id,
|
|
@@ -226,35 +242,47 @@ class ObjectStorageApi:
|
|
|
226
242
|
_headers,
|
|
227
243
|
_host_index,
|
|
228
244
|
) -> RequestSerialized:
|
|
245
|
+
|
|
229
246
|
_host = None
|
|
230
247
|
|
|
231
|
-
_collection_formats: Dict[str, str] = {
|
|
248
|
+
_collection_formats: Dict[str, str] = {
|
|
249
|
+
}
|
|
232
250
|
|
|
233
251
|
_path_params: Dict[str, str] = {}
|
|
234
252
|
_query_params: List[Tuple[str, str]] = []
|
|
235
253
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
236
254
|
_form_params: List[Tuple[str, str]] = []
|
|
237
|
-
_files: Dict[
|
|
255
|
+
_files: Dict[
|
|
256
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
257
|
+
] = {}
|
|
238
258
|
_body_params: Optional[bytes] = None
|
|
239
259
|
|
|
240
260
|
# process the path parameters
|
|
241
261
|
# process the query parameters
|
|
242
262
|
# process the header parameters
|
|
243
263
|
if x_daytona_organization_id is not None:
|
|
244
|
-
_header_params[
|
|
264
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
245
265
|
# process the form parameters
|
|
246
266
|
# process the body parameter
|
|
247
267
|
|
|
268
|
+
|
|
248
269
|
# set the HTTP header `Accept`
|
|
249
|
-
if
|
|
250
|
-
_header_params[
|
|
270
|
+
if 'Accept' not in _header_params:
|
|
271
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
272
|
+
[
|
|
273
|
+
'application/json'
|
|
274
|
+
]
|
|
275
|
+
)
|
|
276
|
+
|
|
251
277
|
|
|
252
278
|
# authentication setting
|
|
253
|
-
_auth_settings: List[str] = [
|
|
279
|
+
_auth_settings: List[str] = [
|
|
280
|
+
'oauth2'
|
|
281
|
+
]
|
|
254
282
|
|
|
255
283
|
return self.api_client.param_serialize(
|
|
256
|
-
method=
|
|
257
|
-
resource_path=
|
|
284
|
+
method='GET',
|
|
285
|
+
resource_path='/object-storage/push-access',
|
|
258
286
|
path_params=_path_params,
|
|
259
287
|
query_params=_query_params,
|
|
260
288
|
header_params=_header_params,
|
|
@@ -264,5 +292,7 @@ class ObjectStorageApi:
|
|
|
264
292
|
auth_settings=_auth_settings,
|
|
265
293
|
collection_formats=_collection_formats,
|
|
266
294
|
_host=_host,
|
|
267
|
-
_request_auth=_request_auth
|
|
295
|
+
_request_auth=_request_auth
|
|
268
296
|
)
|
|
297
|
+
|
|
298
|
+
|