daytona_api_client 0.21.3a0__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/__init__.py +129 -0
- daytona_api_client/api/__init__.py +15 -0
- daytona_api_client/api/api_keys_api.py +1234 -0
- daytona_api_client/api/docker_registry_api.py +1741 -0
- daytona_api_client/api/object_storage_api.py +268 -0
- daytona_api_client/api/organizations_api.py +5792 -0
- daytona_api_client/api/preview_api.py +715 -0
- daytona_api_client/api/runners_api.py +664 -0
- daytona_api_client/api/sandbox_api.py +3584 -0
- daytona_api_client/api/snapshots_api.py +1830 -0
- daytona_api_client/api/toolbox_api.py +10545 -0
- daytona_api_client/api/users_api.py +1733 -0
- daytona_api_client/api/volumes_api.py +1267 -0
- daytona_api_client/api/workspace_api.py +3626 -0
- daytona_api_client/api_client.py +696 -0
- daytona_api_client/api_response.py +20 -0
- daytona_api_client/configuration.py +586 -0
- daytona_api_client/exceptions.py +216 -0
- daytona_api_client/models/__init__.py +101 -0
- daytona_api_client/models/account_provider.py +101 -0
- daytona_api_client/models/account_provider_dto.py +101 -0
- daytona_api_client/models/api_key_list.py +149 -0
- daytona_api_client/models/api_key_response.py +142 -0
- daytona_api_client/models/build_info.py +115 -0
- daytona_api_client/models/build_snapshot.py +118 -0
- daytona_api_client/models/command.py +104 -0
- daytona_api_client/models/completion_context.py +103 -0
- daytona_api_client/models/completion_item.py +124 -0
- daytona_api_client/models/completion_list.py +116 -0
- daytona_api_client/models/create_api_key.py +134 -0
- daytona_api_client/models/create_build_info.py +107 -0
- daytona_api_client/models/create_docker_registry.py +123 -0
- daytona_api_client/models/create_linked_account.py +101 -0
- daytona_api_client/models/create_organization.py +100 -0
- daytona_api_client/models/create_organization_invitation.py +122 -0
- daytona_api_client/models/create_organization_quota.py +130 -0
- daytona_api_client/models/create_organization_role.py +126 -0
- daytona_api_client/models/create_runner.py +150 -0
- daytona_api_client/models/create_sandbox.py +198 -0
- daytona_api_client/models/create_session_request.py +100 -0
- daytona_api_client/models/create_snapshot.py +138 -0
- daytona_api_client/models/create_user.py +132 -0
- daytona_api_client/models/create_volume.py +100 -0
- daytona_api_client/models/create_workspace.py +196 -0
- daytona_api_client/models/docker_registry.py +135 -0
- daytona_api_client/models/execute_request.py +104 -0
- daytona_api_client/models/execute_response.py +101 -0
- daytona_api_client/models/file_info.py +118 -0
- daytona_api_client/models/file_status.py +110 -0
- daytona_api_client/models/get_build_logs400_response.py +101 -0
- daytona_api_client/models/git_add_request.py +101 -0
- daytona_api_client/models/git_branch_request.py +101 -0
- daytona_api_client/models/git_checkout_request.py +101 -0
- daytona_api_client/models/git_clone_request.py +114 -0
- daytona_api_client/models/git_commit_info.py +112 -0
- daytona_api_client/models/git_commit_request.py +110 -0
- daytona_api_client/models/git_commit_response.py +100 -0
- daytona_api_client/models/git_delete_branch_request.py +101 -0
- daytona_api_client/models/git_repo_request.py +104 -0
- daytona_api_client/models/git_status.py +122 -0
- daytona_api_client/models/list_branch_response.py +100 -0
- daytona_api_client/models/lsp_completion_params.py +120 -0
- daytona_api_client/models/lsp_document_request.py +104 -0
- daytona_api_client/models/lsp_location.py +107 -0
- daytona_api_client/models/lsp_server_request.py +101 -0
- daytona_api_client/models/lsp_symbol.py +112 -0
- daytona_api_client/models/match.py +102 -0
- daytona_api_client/models/organization.py +134 -0
- daytona_api_client/models/organization_invitation.py +161 -0
- daytona_api_client/models/organization_role.py +147 -0
- daytona_api_client/models/organization_suspension.py +102 -0
- daytona_api_client/models/organization_user.py +145 -0
- daytona_api_client/models/paginated_snapshots_dto.py +120 -0
- daytona_api_client/models/port_preview_url.py +101 -0
- daytona_api_client/models/position.py +101 -0
- daytona_api_client/models/project_dir_response.py +100 -0
- daytona_api_client/models/range.py +113 -0
- daytona_api_client/models/registry_push_access_dto.py +114 -0
- daytona_api_client/models/replace_request.py +104 -0
- daytona_api_client/models/replace_result.py +102 -0
- daytona_api_client/models/sandbox.py +226 -0
- daytona_api_client/models/sandbox_info.py +110 -0
- daytona_api_client/models/sandbox_labels.py +100 -0
- daytona_api_client/models/sandbox_state.py +50 -0
- daytona_api_client/models/sandbox_volume.py +101 -0
- daytona_api_client/models/search_files_response.py +100 -0
- daytona_api_client/models/session.py +121 -0
- daytona_api_client/models/session_execute_request.py +110 -0
- daytona_api_client/models/session_execute_response.py +106 -0
- daytona_api_client/models/set_snapshot_general_status_dto.py +100 -0
- daytona_api_client/models/snapshot_dto.py +185 -0
- daytona_api_client/models/snapshot_state.py +44 -0
- daytona_api_client/models/storage_access_dto.py +121 -0
- daytona_api_client/models/toggle_state.py +100 -0
- daytona_api_client/models/update_assigned_organization_roles.py +100 -0
- daytona_api_client/models/update_docker_registry.py +104 -0
- daytona_api_client/models/update_organization_invitation.py +114 -0
- daytona_api_client/models/update_organization_member_role.py +107 -0
- daytona_api_client/models/update_organization_quota.py +175 -0
- daytona_api_client/models/update_organization_role.py +126 -0
- daytona_api_client/models/upload_file.py +101 -0
- daytona_api_client/models/upload_file_dto.py +101 -0
- daytona_api_client/models/upload_file_request_file.py +159 -0
- daytona_api_client/models/upload_files_multi_request_files_inner.py +101 -0
- daytona_api_client/models/usage_overview.py +124 -0
- daytona_api_client/models/user.py +120 -0
- daytona_api_client/models/user_public_key.py +101 -0
- daytona_api_client/models/volume.py +133 -0
- daytona_api_client/models/volume_dto.py +138 -0
- daytona_api_client/models/volume_state.py +41 -0
- daytona_api_client/models/workspace.py +259 -0
- daytona_api_client/py.typed +0 -0
- daytona_api_client/rest.py +208 -0
- daytona_api_client-0.21.3a0.dist-info/METADATA +23 -0
- daytona_api_client-0.21.3a0.dist-info/RECORD +117 -0
- daytona_api_client-0.21.3a0.dist-info/WHEEL +5 -0
- daytona_api_client-0.21.3a0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import Field, StrictStr
|
|
21
|
+
from typing import Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from daytona_api_client.models.storage_access_dto import StorageAccessDto
|
|
24
|
+
|
|
25
|
+
from daytona_api_client.api_client import ApiClient, RequestSerialized
|
|
26
|
+
from daytona_api_client.api_response import ApiResponse
|
|
27
|
+
from daytona_api_client.rest import RESTResponseType
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class ObjectStorageApi:
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
|
|
42
|
+
@validate_call
|
|
43
|
+
def get_push_access(
|
|
44
|
+
self,
|
|
45
|
+
x_daytona_organization_id: Annotated[
|
|
46
|
+
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
47
|
+
] = None,
|
|
48
|
+
_request_timeout: Union[
|
|
49
|
+
None,
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
52
|
+
] = None,
|
|
53
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
54
|
+
_content_type: Optional[StrictStr] = None,
|
|
55
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
56
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
57
|
+
) -> StorageAccessDto:
|
|
58
|
+
"""Get temporary storage access for pushing objects
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
62
|
+
:type x_daytona_organization_id: str
|
|
63
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
64
|
+
number provided, it will be total request
|
|
65
|
+
timeout. It can also be a pair (tuple) of
|
|
66
|
+
(connection, read) timeouts.
|
|
67
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
68
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
69
|
+
request; this effectively ignores the
|
|
70
|
+
authentication in the spec for a single request.
|
|
71
|
+
:type _request_auth: dict, optional
|
|
72
|
+
:param _content_type: force content-type for the request.
|
|
73
|
+
:type _content_type: str, Optional
|
|
74
|
+
:param _headers: set to override the headers for a single
|
|
75
|
+
request; this effectively ignores the headers
|
|
76
|
+
in the spec for a single request.
|
|
77
|
+
:type _headers: dict, optional
|
|
78
|
+
:param _host_index: set to override the host_index for a single
|
|
79
|
+
request; this effectively ignores the host_index
|
|
80
|
+
in the spec for a single request.
|
|
81
|
+
:type _host_index: int, optional
|
|
82
|
+
:return: Returns the result object.
|
|
83
|
+
""" # noqa: E501
|
|
84
|
+
|
|
85
|
+
_param = self._get_push_access_serialize(
|
|
86
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
87
|
+
_request_auth=_request_auth,
|
|
88
|
+
_content_type=_content_type,
|
|
89
|
+
_headers=_headers,
|
|
90
|
+
_host_index=_host_index,
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
94
|
+
"200": "StorageAccessDto",
|
|
95
|
+
}
|
|
96
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
97
|
+
response_data.read()
|
|
98
|
+
return self.api_client.response_deserialize(
|
|
99
|
+
response_data=response_data,
|
|
100
|
+
response_types_map=_response_types_map,
|
|
101
|
+
).data
|
|
102
|
+
|
|
103
|
+
@validate_call
|
|
104
|
+
def get_push_access_with_http_info(
|
|
105
|
+
self,
|
|
106
|
+
x_daytona_organization_id: Annotated[
|
|
107
|
+
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
108
|
+
] = None,
|
|
109
|
+
_request_timeout: Union[
|
|
110
|
+
None,
|
|
111
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
112
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
113
|
+
] = None,
|
|
114
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
115
|
+
_content_type: Optional[StrictStr] = None,
|
|
116
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
117
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
118
|
+
) -> ApiResponse[StorageAccessDto]:
|
|
119
|
+
"""Get temporary storage access for pushing objects
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
123
|
+
:type x_daytona_organization_id: str
|
|
124
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
125
|
+
number provided, it will be total request
|
|
126
|
+
timeout. It can also be a pair (tuple) of
|
|
127
|
+
(connection, read) timeouts.
|
|
128
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
129
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
130
|
+
request; this effectively ignores the
|
|
131
|
+
authentication in the spec for a single request.
|
|
132
|
+
:type _request_auth: dict, optional
|
|
133
|
+
:param _content_type: force content-type for the request.
|
|
134
|
+
:type _content_type: str, Optional
|
|
135
|
+
:param _headers: set to override the headers for a single
|
|
136
|
+
request; this effectively ignores the headers
|
|
137
|
+
in the spec for a single request.
|
|
138
|
+
:type _headers: dict, optional
|
|
139
|
+
:param _host_index: set to override the host_index for a single
|
|
140
|
+
request; this effectively ignores the host_index
|
|
141
|
+
in the spec for a single request.
|
|
142
|
+
:type _host_index: int, optional
|
|
143
|
+
:return: Returns the result object.
|
|
144
|
+
""" # noqa: E501
|
|
145
|
+
|
|
146
|
+
_param = self._get_push_access_serialize(
|
|
147
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
148
|
+
_request_auth=_request_auth,
|
|
149
|
+
_content_type=_content_type,
|
|
150
|
+
_headers=_headers,
|
|
151
|
+
_host_index=_host_index,
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
155
|
+
"200": "StorageAccessDto",
|
|
156
|
+
}
|
|
157
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
158
|
+
response_data.read()
|
|
159
|
+
return self.api_client.response_deserialize(
|
|
160
|
+
response_data=response_data,
|
|
161
|
+
response_types_map=_response_types_map,
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
@validate_call
|
|
165
|
+
def get_push_access_without_preload_content(
|
|
166
|
+
self,
|
|
167
|
+
x_daytona_organization_id: Annotated[
|
|
168
|
+
Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
|
|
169
|
+
] = None,
|
|
170
|
+
_request_timeout: Union[
|
|
171
|
+
None,
|
|
172
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
173
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
174
|
+
] = None,
|
|
175
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
176
|
+
_content_type: Optional[StrictStr] = None,
|
|
177
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
178
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
179
|
+
) -> RESTResponseType:
|
|
180
|
+
"""Get temporary storage access for pushing objects
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
184
|
+
:type x_daytona_organization_id: str
|
|
185
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
186
|
+
number provided, it will be total request
|
|
187
|
+
timeout. It can also be a pair (tuple) of
|
|
188
|
+
(connection, read) timeouts.
|
|
189
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
190
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
191
|
+
request; this effectively ignores the
|
|
192
|
+
authentication in the spec for a single request.
|
|
193
|
+
:type _request_auth: dict, optional
|
|
194
|
+
:param _content_type: force content-type for the request.
|
|
195
|
+
:type _content_type: str, Optional
|
|
196
|
+
:param _headers: set to override the headers for a single
|
|
197
|
+
request; this effectively ignores the headers
|
|
198
|
+
in the spec for a single request.
|
|
199
|
+
:type _headers: dict, optional
|
|
200
|
+
:param _host_index: set to override the host_index for a single
|
|
201
|
+
request; this effectively ignores the host_index
|
|
202
|
+
in the spec for a single request.
|
|
203
|
+
:type _host_index: int, optional
|
|
204
|
+
:return: Returns the result object.
|
|
205
|
+
""" # noqa: E501
|
|
206
|
+
|
|
207
|
+
_param = self._get_push_access_serialize(
|
|
208
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
209
|
+
_request_auth=_request_auth,
|
|
210
|
+
_content_type=_content_type,
|
|
211
|
+
_headers=_headers,
|
|
212
|
+
_host_index=_host_index,
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
216
|
+
"200": "StorageAccessDto",
|
|
217
|
+
}
|
|
218
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
219
|
+
return response_data.response
|
|
220
|
+
|
|
221
|
+
def _get_push_access_serialize(
|
|
222
|
+
self,
|
|
223
|
+
x_daytona_organization_id,
|
|
224
|
+
_request_auth,
|
|
225
|
+
_content_type,
|
|
226
|
+
_headers,
|
|
227
|
+
_host_index,
|
|
228
|
+
) -> RequestSerialized:
|
|
229
|
+
_host = None
|
|
230
|
+
|
|
231
|
+
_collection_formats: Dict[str, str] = {}
|
|
232
|
+
|
|
233
|
+
_path_params: Dict[str, str] = {}
|
|
234
|
+
_query_params: List[Tuple[str, str]] = []
|
|
235
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
236
|
+
_form_params: List[Tuple[str, str]] = []
|
|
237
|
+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
|
|
238
|
+
_body_params: Optional[bytes] = None
|
|
239
|
+
|
|
240
|
+
# process the path parameters
|
|
241
|
+
# process the query parameters
|
|
242
|
+
# process the header parameters
|
|
243
|
+
if x_daytona_organization_id is not None:
|
|
244
|
+
_header_params["X-Daytona-Organization-ID"] = x_daytona_organization_id
|
|
245
|
+
# process the form parameters
|
|
246
|
+
# process the body parameter
|
|
247
|
+
|
|
248
|
+
# set the HTTP header `Accept`
|
|
249
|
+
if "Accept" not in _header_params:
|
|
250
|
+
_header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
|
|
251
|
+
|
|
252
|
+
# authentication setting
|
|
253
|
+
_auth_settings: List[str] = ["oauth2"]
|
|
254
|
+
|
|
255
|
+
return self.api_client.param_serialize(
|
|
256
|
+
method="GET",
|
|
257
|
+
resource_path="/object-storage/push-access",
|
|
258
|
+
path_params=_path_params,
|
|
259
|
+
query_params=_query_params,
|
|
260
|
+
header_params=_header_params,
|
|
261
|
+
body=_body_params,
|
|
262
|
+
post_params=_form_params,
|
|
263
|
+
files=_files,
|
|
264
|
+
auth_settings=_auth_settings,
|
|
265
|
+
collection_formats=_collection_formats,
|
|
266
|
+
_host=_host,
|
|
267
|
+
_request_auth=_request_auth,
|
|
268
|
+
)
|