daytona_api_client_async 0.25.6__py3-none-any.whl → 0.26.0__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_async might be problematic. Click here for more details.
- daytona_api_client_async/__init__.py +11 -0
- daytona_api_client_async/api/__init__.py +2 -0
- daytona_api_client_async/api/{images_api.py → default_api.py} +258 -724
- daytona_api_client_async/api/health_api.py +282 -0
- daytona_api_client_async/api/sandbox_api.py +855 -2
- daytona_api_client_async/api/webhooks_api.py +1704 -0
- daytona_api_client_async/models/__init__.py +9 -0
- daytona_api_client_async/models/create_audit_log.py +2 -2
- daytona_api_client_async/models/health_controller_check200_response.py +154 -0
- daytona_api_client_async/models/{set_image_general_status.py → health_controller_check200_response_info_value.py} +8 -8
- daytona_api_client_async/models/health_controller_check503_response.py +154 -0
- daytona_api_client_async/models/{build_image.py → sandbox_created_post_request.py} +18 -15
- daytona_api_client_async/models/sandbox_created_post_request_data.py +152 -0
- daytona_api_client_async/models/sandbox_state_updated_post_request.py +110 -0
- daytona_api_client_async/models/sandbox_state_updated_post_request_data.py +129 -0
- daytona_api_client_async/models/sandbox_state_updated_post_request_data_sandbox.py +115 -0
- daytona_api_client_async/models/{workspace_info.py → send_webhook_dto.py} +11 -11
- daytona_api_client_async/models/snapshot_created_post_request.py +110 -0
- daytona_api_client_async/models/{image_dto.py → snapshot_created_post_request_data.py} +34 -43
- daytona_api_client_async/models/{workspace_volume.py → snapshot_removed_post_request.py} +13 -10
- daytona_api_client_async/models/snapshot_state_updated_post_request.py +110 -0
- daytona_api_client_async/models/snapshot_state_updated_post_request_data.py +129 -0
- daytona_api_client_async/models/snapshot_state_updated_post_request_data_snapshot.py +115 -0
- daytona_api_client_async/models/ssh_access_dto.py +112 -0
- daytona_api_client_async/models/ssh_access_validation_dto.py +107 -0
- daytona_api_client_async/models/{create_image.py → volume_created_post_request.py} +17 -12
- daytona_api_client_async/models/{build_snapshot.py → volume_created_post_request_data.py} +32 -21
- daytona_api_client_async/models/volume_state_updated_post_request.py +110 -0
- daytona_api_client_async/models/{create_node.py → volume_state_updated_post_request_data.py} +31 -37
- daytona_api_client_async/models/{paginated_images_dto.py → volume_state_updated_post_request_data_volume.py} +23 -23
- daytona_api_client_async/models/{workspace_labels.py → webhook_app_portal_access.py} +7 -7
- daytona_api_client_async/models/{download_files.py → webhook_controller_get_app_portal_access200_response.py} +8 -8
- daytona_api_client_async/models/{usage_overview.py → webhook_controller_get_initialization_status200_response.py} +26 -21
- daytona_api_client_async/models/{toggle_state.py → webhook_controller_get_status200_response.py} +7 -7
- daytona_api_client_async/models/webhook_initialization_status.py +121 -0
- {daytona_api_client_async-0.25.6.dist-info → daytona_api_client_async-0.26.0.dist-info}/METADATA +1 -1
- {daytona_api_client_async-0.25.6.dist-info → daytona_api_client_async-0.26.0.dist-info}/RECORD +40 -27
- daytona_api_client_async/api/nodes_api.py +0 -792
- daytona_api_client_async/models/image_state.py +0 -45
- daytona_api_client_async/models/workspace_state.py +0 -51
- {daytona_api_client_async-0.25.6.dist-info → daytona_api_client_async-0.26.0.dist-info}/WHEEL +0 -0
- {daytona_api_client_async-0.25.6.dist-info → daytona_api_client_async-0.26.0.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client_async-0.25.6.dist-info → daytona_api_client_async-0.26.0.dist-info}/top_level.txt +0 -0
|
@@ -1,792 +0,0 @@
|
|
|
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 StrictStr
|
|
21
|
-
from daytona_api_client_async.models.create_node import CreateNode
|
|
22
|
-
|
|
23
|
-
from daytona_api_client_async.api_client import ApiClient, RequestSerialized
|
|
24
|
-
from daytona_api_client_async.api_response import ApiResponse
|
|
25
|
-
from daytona_api_client_async.rest import RESTResponseType
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class NodesApi:
|
|
29
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
30
|
-
Ref: https://openapi-generator.tech
|
|
31
|
-
|
|
32
|
-
Do not edit the class manually.
|
|
33
|
-
"""
|
|
34
|
-
|
|
35
|
-
def __init__(self, api_client=None) -> None:
|
|
36
|
-
if api_client is None:
|
|
37
|
-
api_client = ApiClient.get_default()
|
|
38
|
-
self.api_client = api_client
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
@validate_call
|
|
42
|
-
async def create_node(
|
|
43
|
-
self,
|
|
44
|
-
create_node: CreateNode,
|
|
45
|
-
_request_timeout: Union[
|
|
46
|
-
None,
|
|
47
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
48
|
-
Tuple[
|
|
49
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
50
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
51
|
-
]
|
|
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
|
-
) -> None:
|
|
58
|
-
"""Create node
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
:param create_node: (required)
|
|
62
|
-
:type create_node: CreateNode
|
|
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._create_node_serialize(
|
|
86
|
-
create_node=create_node,
|
|
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
|
-
'201': None,
|
|
95
|
-
}
|
|
96
|
-
response_data = await self.api_client.call_api(
|
|
97
|
-
*_param,
|
|
98
|
-
_request_timeout=_request_timeout
|
|
99
|
-
)
|
|
100
|
-
await response_data.read()
|
|
101
|
-
return self.api_client.response_deserialize(
|
|
102
|
-
response_data=response_data,
|
|
103
|
-
response_types_map=_response_types_map,
|
|
104
|
-
).data
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
@validate_call
|
|
108
|
-
async def create_node_with_http_info(
|
|
109
|
-
self,
|
|
110
|
-
create_node: CreateNode,
|
|
111
|
-
_request_timeout: Union[
|
|
112
|
-
None,
|
|
113
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
114
|
-
Tuple[
|
|
115
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
116
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
117
|
-
]
|
|
118
|
-
] = None,
|
|
119
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
120
|
-
_content_type: Optional[StrictStr] = None,
|
|
121
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
122
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
123
|
-
) -> ApiResponse[None]:
|
|
124
|
-
"""Create node
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
:param create_node: (required)
|
|
128
|
-
:type create_node: CreateNode
|
|
129
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
130
|
-
number provided, it will be total request
|
|
131
|
-
timeout. It can also be a pair (tuple) of
|
|
132
|
-
(connection, read) timeouts.
|
|
133
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
134
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
135
|
-
request; this effectively ignores the
|
|
136
|
-
authentication in the spec for a single request.
|
|
137
|
-
:type _request_auth: dict, optional
|
|
138
|
-
:param _content_type: force content-type for the request.
|
|
139
|
-
:type _content_type: str, Optional
|
|
140
|
-
:param _headers: set to override the headers for a single
|
|
141
|
-
request; this effectively ignores the headers
|
|
142
|
-
in the spec for a single request.
|
|
143
|
-
:type _headers: dict, optional
|
|
144
|
-
:param _host_index: set to override the host_index for a single
|
|
145
|
-
request; this effectively ignores the host_index
|
|
146
|
-
in the spec for a single request.
|
|
147
|
-
:type _host_index: int, optional
|
|
148
|
-
:return: Returns the result object.
|
|
149
|
-
""" # noqa: E501
|
|
150
|
-
|
|
151
|
-
_param = self._create_node_serialize(
|
|
152
|
-
create_node=create_node,
|
|
153
|
-
_request_auth=_request_auth,
|
|
154
|
-
_content_type=_content_type,
|
|
155
|
-
_headers=_headers,
|
|
156
|
-
_host_index=_host_index
|
|
157
|
-
)
|
|
158
|
-
|
|
159
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
160
|
-
'201': None,
|
|
161
|
-
}
|
|
162
|
-
response_data = await self.api_client.call_api(
|
|
163
|
-
*_param,
|
|
164
|
-
_request_timeout=_request_timeout
|
|
165
|
-
)
|
|
166
|
-
await response_data.read()
|
|
167
|
-
return self.api_client.response_deserialize(
|
|
168
|
-
response_data=response_data,
|
|
169
|
-
response_types_map=_response_types_map,
|
|
170
|
-
)
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
@validate_call
|
|
174
|
-
async def create_node_without_preload_content(
|
|
175
|
-
self,
|
|
176
|
-
create_node: CreateNode,
|
|
177
|
-
_request_timeout: Union[
|
|
178
|
-
None,
|
|
179
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
180
|
-
Tuple[
|
|
181
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
182
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
183
|
-
]
|
|
184
|
-
] = None,
|
|
185
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
186
|
-
_content_type: Optional[StrictStr] = None,
|
|
187
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
188
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
189
|
-
) -> RESTResponseType:
|
|
190
|
-
"""Create node
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
:param create_node: (required)
|
|
194
|
-
:type create_node: CreateNode
|
|
195
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
196
|
-
number provided, it will be total request
|
|
197
|
-
timeout. It can also be a pair (tuple) of
|
|
198
|
-
(connection, read) timeouts.
|
|
199
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
200
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
201
|
-
request; this effectively ignores the
|
|
202
|
-
authentication in the spec for a single request.
|
|
203
|
-
:type _request_auth: dict, optional
|
|
204
|
-
:param _content_type: force content-type for the request.
|
|
205
|
-
:type _content_type: str, Optional
|
|
206
|
-
:param _headers: set to override the headers for a single
|
|
207
|
-
request; this effectively ignores the headers
|
|
208
|
-
in the spec for a single request.
|
|
209
|
-
:type _headers: dict, optional
|
|
210
|
-
:param _host_index: set to override the host_index for a single
|
|
211
|
-
request; this effectively ignores the host_index
|
|
212
|
-
in the spec for a single request.
|
|
213
|
-
:type _host_index: int, optional
|
|
214
|
-
:return: Returns the result object.
|
|
215
|
-
""" # noqa: E501
|
|
216
|
-
|
|
217
|
-
_param = self._create_node_serialize(
|
|
218
|
-
create_node=create_node,
|
|
219
|
-
_request_auth=_request_auth,
|
|
220
|
-
_content_type=_content_type,
|
|
221
|
-
_headers=_headers,
|
|
222
|
-
_host_index=_host_index
|
|
223
|
-
)
|
|
224
|
-
|
|
225
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
226
|
-
'201': None,
|
|
227
|
-
}
|
|
228
|
-
response_data = await self.api_client.call_api(
|
|
229
|
-
*_param,
|
|
230
|
-
_request_timeout=_request_timeout
|
|
231
|
-
)
|
|
232
|
-
return response_data.response
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
def _create_node_serialize(
|
|
236
|
-
self,
|
|
237
|
-
create_node,
|
|
238
|
-
_request_auth,
|
|
239
|
-
_content_type,
|
|
240
|
-
_headers,
|
|
241
|
-
_host_index,
|
|
242
|
-
) -> RequestSerialized:
|
|
243
|
-
|
|
244
|
-
_host = None
|
|
245
|
-
|
|
246
|
-
_collection_formats: Dict[str, str] = {
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
_path_params: Dict[str, str] = {}
|
|
250
|
-
_query_params: List[Tuple[str, str]] = []
|
|
251
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
252
|
-
_form_params: List[Tuple[str, str]] = []
|
|
253
|
-
_files: Dict[
|
|
254
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
255
|
-
] = {}
|
|
256
|
-
_body_params: Optional[bytes] = None
|
|
257
|
-
|
|
258
|
-
# process the path parameters
|
|
259
|
-
# process the query parameters
|
|
260
|
-
# process the header parameters
|
|
261
|
-
# process the form parameters
|
|
262
|
-
# process the body parameter
|
|
263
|
-
if create_node is not None:
|
|
264
|
-
_body_params = create_node
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
# set the HTTP header `Content-Type`
|
|
269
|
-
if _content_type:
|
|
270
|
-
_header_params['Content-Type'] = _content_type
|
|
271
|
-
else:
|
|
272
|
-
_default_content_type = (
|
|
273
|
-
self.api_client.select_header_content_type(
|
|
274
|
-
[
|
|
275
|
-
'application/json'
|
|
276
|
-
]
|
|
277
|
-
)
|
|
278
|
-
)
|
|
279
|
-
if _default_content_type is not None:
|
|
280
|
-
_header_params['Content-Type'] = _default_content_type
|
|
281
|
-
|
|
282
|
-
# authentication setting
|
|
283
|
-
_auth_settings: List[str] = [
|
|
284
|
-
'bearer',
|
|
285
|
-
'oauth2'
|
|
286
|
-
]
|
|
287
|
-
|
|
288
|
-
return self.api_client.param_serialize(
|
|
289
|
-
method='POST',
|
|
290
|
-
resource_path='/nodes',
|
|
291
|
-
path_params=_path_params,
|
|
292
|
-
query_params=_query_params,
|
|
293
|
-
header_params=_header_params,
|
|
294
|
-
body=_body_params,
|
|
295
|
-
post_params=_form_params,
|
|
296
|
-
files=_files,
|
|
297
|
-
auth_settings=_auth_settings,
|
|
298
|
-
collection_formats=_collection_formats,
|
|
299
|
-
_host=_host,
|
|
300
|
-
_request_auth=_request_auth
|
|
301
|
-
)
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
@validate_call
|
|
307
|
-
async def list_nodes(
|
|
308
|
-
self,
|
|
309
|
-
_request_timeout: Union[
|
|
310
|
-
None,
|
|
311
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
312
|
-
Tuple[
|
|
313
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
314
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
315
|
-
]
|
|
316
|
-
] = None,
|
|
317
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
318
|
-
_content_type: Optional[StrictStr] = None,
|
|
319
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
320
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
321
|
-
) -> None:
|
|
322
|
-
"""List all nodes
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
326
|
-
number provided, it will be total request
|
|
327
|
-
timeout. It can also be a pair (tuple) of
|
|
328
|
-
(connection, read) timeouts.
|
|
329
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
330
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
331
|
-
request; this effectively ignores the
|
|
332
|
-
authentication in the spec for a single request.
|
|
333
|
-
:type _request_auth: dict, optional
|
|
334
|
-
:param _content_type: force content-type for the request.
|
|
335
|
-
:type _content_type: str, Optional
|
|
336
|
-
:param _headers: set to override the headers for a single
|
|
337
|
-
request; this effectively ignores the headers
|
|
338
|
-
in the spec for a single request.
|
|
339
|
-
:type _headers: dict, optional
|
|
340
|
-
:param _host_index: set to override the host_index for a single
|
|
341
|
-
request; this effectively ignores the host_index
|
|
342
|
-
in the spec for a single request.
|
|
343
|
-
:type _host_index: int, optional
|
|
344
|
-
:return: Returns the result object.
|
|
345
|
-
""" # noqa: E501
|
|
346
|
-
|
|
347
|
-
_param = self._list_nodes_serialize(
|
|
348
|
-
_request_auth=_request_auth,
|
|
349
|
-
_content_type=_content_type,
|
|
350
|
-
_headers=_headers,
|
|
351
|
-
_host_index=_host_index
|
|
352
|
-
)
|
|
353
|
-
|
|
354
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
355
|
-
'200': None,
|
|
356
|
-
}
|
|
357
|
-
response_data = await self.api_client.call_api(
|
|
358
|
-
*_param,
|
|
359
|
-
_request_timeout=_request_timeout
|
|
360
|
-
)
|
|
361
|
-
await response_data.read()
|
|
362
|
-
return self.api_client.response_deserialize(
|
|
363
|
-
response_data=response_data,
|
|
364
|
-
response_types_map=_response_types_map,
|
|
365
|
-
).data
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
@validate_call
|
|
369
|
-
async def list_nodes_with_http_info(
|
|
370
|
-
self,
|
|
371
|
-
_request_timeout: Union[
|
|
372
|
-
None,
|
|
373
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
374
|
-
Tuple[
|
|
375
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
376
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
377
|
-
]
|
|
378
|
-
] = None,
|
|
379
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
380
|
-
_content_type: Optional[StrictStr] = None,
|
|
381
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
382
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
383
|
-
) -> ApiResponse[None]:
|
|
384
|
-
"""List all nodes
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
388
|
-
number provided, it will be total request
|
|
389
|
-
timeout. It can also be a pair (tuple) of
|
|
390
|
-
(connection, read) timeouts.
|
|
391
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
392
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
393
|
-
request; this effectively ignores the
|
|
394
|
-
authentication in the spec for a single request.
|
|
395
|
-
:type _request_auth: dict, optional
|
|
396
|
-
:param _content_type: force content-type for the request.
|
|
397
|
-
:type _content_type: str, Optional
|
|
398
|
-
:param _headers: set to override the headers for a single
|
|
399
|
-
request; this effectively ignores the headers
|
|
400
|
-
in the spec for a single request.
|
|
401
|
-
:type _headers: dict, optional
|
|
402
|
-
:param _host_index: set to override the host_index for a single
|
|
403
|
-
request; this effectively ignores the host_index
|
|
404
|
-
in the spec for a single request.
|
|
405
|
-
:type _host_index: int, optional
|
|
406
|
-
:return: Returns the result object.
|
|
407
|
-
""" # noqa: E501
|
|
408
|
-
|
|
409
|
-
_param = self._list_nodes_serialize(
|
|
410
|
-
_request_auth=_request_auth,
|
|
411
|
-
_content_type=_content_type,
|
|
412
|
-
_headers=_headers,
|
|
413
|
-
_host_index=_host_index
|
|
414
|
-
)
|
|
415
|
-
|
|
416
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
417
|
-
'200': None,
|
|
418
|
-
}
|
|
419
|
-
response_data = await self.api_client.call_api(
|
|
420
|
-
*_param,
|
|
421
|
-
_request_timeout=_request_timeout
|
|
422
|
-
)
|
|
423
|
-
await response_data.read()
|
|
424
|
-
return self.api_client.response_deserialize(
|
|
425
|
-
response_data=response_data,
|
|
426
|
-
response_types_map=_response_types_map,
|
|
427
|
-
)
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
@validate_call
|
|
431
|
-
async def list_nodes_without_preload_content(
|
|
432
|
-
self,
|
|
433
|
-
_request_timeout: Union[
|
|
434
|
-
None,
|
|
435
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
436
|
-
Tuple[
|
|
437
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
438
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
439
|
-
]
|
|
440
|
-
] = None,
|
|
441
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
442
|
-
_content_type: Optional[StrictStr] = None,
|
|
443
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
444
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
445
|
-
) -> RESTResponseType:
|
|
446
|
-
"""List all nodes
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
450
|
-
number provided, it will be total request
|
|
451
|
-
timeout. It can also be a pair (tuple) of
|
|
452
|
-
(connection, read) timeouts.
|
|
453
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
454
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
455
|
-
request; this effectively ignores the
|
|
456
|
-
authentication in the spec for a single request.
|
|
457
|
-
:type _request_auth: dict, optional
|
|
458
|
-
:param _content_type: force content-type for the request.
|
|
459
|
-
:type _content_type: str, Optional
|
|
460
|
-
:param _headers: set to override the headers for a single
|
|
461
|
-
request; this effectively ignores the headers
|
|
462
|
-
in the spec for a single request.
|
|
463
|
-
:type _headers: dict, optional
|
|
464
|
-
:param _host_index: set to override the host_index for a single
|
|
465
|
-
request; this effectively ignores the host_index
|
|
466
|
-
in the spec for a single request.
|
|
467
|
-
:type _host_index: int, optional
|
|
468
|
-
:return: Returns the result object.
|
|
469
|
-
""" # noqa: E501
|
|
470
|
-
|
|
471
|
-
_param = self._list_nodes_serialize(
|
|
472
|
-
_request_auth=_request_auth,
|
|
473
|
-
_content_type=_content_type,
|
|
474
|
-
_headers=_headers,
|
|
475
|
-
_host_index=_host_index
|
|
476
|
-
)
|
|
477
|
-
|
|
478
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
479
|
-
'200': None,
|
|
480
|
-
}
|
|
481
|
-
response_data = await self.api_client.call_api(
|
|
482
|
-
*_param,
|
|
483
|
-
_request_timeout=_request_timeout
|
|
484
|
-
)
|
|
485
|
-
return response_data.response
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
def _list_nodes_serialize(
|
|
489
|
-
self,
|
|
490
|
-
_request_auth,
|
|
491
|
-
_content_type,
|
|
492
|
-
_headers,
|
|
493
|
-
_host_index,
|
|
494
|
-
) -> RequestSerialized:
|
|
495
|
-
|
|
496
|
-
_host = None
|
|
497
|
-
|
|
498
|
-
_collection_formats: Dict[str, str] = {
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
_path_params: Dict[str, str] = {}
|
|
502
|
-
_query_params: List[Tuple[str, str]] = []
|
|
503
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
504
|
-
_form_params: List[Tuple[str, str]] = []
|
|
505
|
-
_files: Dict[
|
|
506
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
507
|
-
] = {}
|
|
508
|
-
_body_params: Optional[bytes] = None
|
|
509
|
-
|
|
510
|
-
# process the path parameters
|
|
511
|
-
# process the query parameters
|
|
512
|
-
# process the header parameters
|
|
513
|
-
# process the form parameters
|
|
514
|
-
# process the body parameter
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
# authentication setting
|
|
520
|
-
_auth_settings: List[str] = [
|
|
521
|
-
'bearer',
|
|
522
|
-
'oauth2'
|
|
523
|
-
]
|
|
524
|
-
|
|
525
|
-
return self.api_client.param_serialize(
|
|
526
|
-
method='GET',
|
|
527
|
-
resource_path='/nodes',
|
|
528
|
-
path_params=_path_params,
|
|
529
|
-
query_params=_query_params,
|
|
530
|
-
header_params=_header_params,
|
|
531
|
-
body=_body_params,
|
|
532
|
-
post_params=_form_params,
|
|
533
|
-
files=_files,
|
|
534
|
-
auth_settings=_auth_settings,
|
|
535
|
-
collection_formats=_collection_formats,
|
|
536
|
-
_host=_host,
|
|
537
|
-
_request_auth=_request_auth
|
|
538
|
-
)
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
@validate_call
|
|
544
|
-
async def update_node_scheduling(
|
|
545
|
-
self,
|
|
546
|
-
id: StrictStr,
|
|
547
|
-
_request_timeout: Union[
|
|
548
|
-
None,
|
|
549
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
550
|
-
Tuple[
|
|
551
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
552
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
553
|
-
]
|
|
554
|
-
] = None,
|
|
555
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
556
|
-
_content_type: Optional[StrictStr] = None,
|
|
557
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
558
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
559
|
-
) -> None:
|
|
560
|
-
"""Update node scheduling status
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
:param id: (required)
|
|
564
|
-
:type id: str
|
|
565
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
566
|
-
number provided, it will be total request
|
|
567
|
-
timeout. It can also be a pair (tuple) of
|
|
568
|
-
(connection, read) timeouts.
|
|
569
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
570
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
571
|
-
request; this effectively ignores the
|
|
572
|
-
authentication in the spec for a single request.
|
|
573
|
-
:type _request_auth: dict, optional
|
|
574
|
-
:param _content_type: force content-type for the request.
|
|
575
|
-
:type _content_type: str, Optional
|
|
576
|
-
:param _headers: set to override the headers for a single
|
|
577
|
-
request; this effectively ignores the headers
|
|
578
|
-
in the spec for a single request.
|
|
579
|
-
:type _headers: dict, optional
|
|
580
|
-
:param _host_index: set to override the host_index for a single
|
|
581
|
-
request; this effectively ignores the host_index
|
|
582
|
-
in the spec for a single request.
|
|
583
|
-
:type _host_index: int, optional
|
|
584
|
-
:return: Returns the result object.
|
|
585
|
-
""" # noqa: E501
|
|
586
|
-
|
|
587
|
-
_param = self._update_node_scheduling_serialize(
|
|
588
|
-
id=id,
|
|
589
|
-
_request_auth=_request_auth,
|
|
590
|
-
_content_type=_content_type,
|
|
591
|
-
_headers=_headers,
|
|
592
|
-
_host_index=_host_index
|
|
593
|
-
)
|
|
594
|
-
|
|
595
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
596
|
-
'200': None,
|
|
597
|
-
}
|
|
598
|
-
response_data = await self.api_client.call_api(
|
|
599
|
-
*_param,
|
|
600
|
-
_request_timeout=_request_timeout
|
|
601
|
-
)
|
|
602
|
-
await response_data.read()
|
|
603
|
-
return self.api_client.response_deserialize(
|
|
604
|
-
response_data=response_data,
|
|
605
|
-
response_types_map=_response_types_map,
|
|
606
|
-
).data
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
@validate_call
|
|
610
|
-
async def update_node_scheduling_with_http_info(
|
|
611
|
-
self,
|
|
612
|
-
id: StrictStr,
|
|
613
|
-
_request_timeout: Union[
|
|
614
|
-
None,
|
|
615
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
616
|
-
Tuple[
|
|
617
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
618
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
619
|
-
]
|
|
620
|
-
] = None,
|
|
621
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
622
|
-
_content_type: Optional[StrictStr] = None,
|
|
623
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
624
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
625
|
-
) -> ApiResponse[None]:
|
|
626
|
-
"""Update node scheduling status
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
:param id: (required)
|
|
630
|
-
:type id: str
|
|
631
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
632
|
-
number provided, it will be total request
|
|
633
|
-
timeout. It can also be a pair (tuple) of
|
|
634
|
-
(connection, read) timeouts.
|
|
635
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
636
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
637
|
-
request; this effectively ignores the
|
|
638
|
-
authentication in the spec for a single request.
|
|
639
|
-
:type _request_auth: dict, optional
|
|
640
|
-
:param _content_type: force content-type for the request.
|
|
641
|
-
:type _content_type: str, Optional
|
|
642
|
-
:param _headers: set to override the headers for a single
|
|
643
|
-
request; this effectively ignores the headers
|
|
644
|
-
in the spec for a single request.
|
|
645
|
-
:type _headers: dict, optional
|
|
646
|
-
:param _host_index: set to override the host_index for a single
|
|
647
|
-
request; this effectively ignores the host_index
|
|
648
|
-
in the spec for a single request.
|
|
649
|
-
:type _host_index: int, optional
|
|
650
|
-
:return: Returns the result object.
|
|
651
|
-
""" # noqa: E501
|
|
652
|
-
|
|
653
|
-
_param = self._update_node_scheduling_serialize(
|
|
654
|
-
id=id,
|
|
655
|
-
_request_auth=_request_auth,
|
|
656
|
-
_content_type=_content_type,
|
|
657
|
-
_headers=_headers,
|
|
658
|
-
_host_index=_host_index
|
|
659
|
-
)
|
|
660
|
-
|
|
661
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
662
|
-
'200': None,
|
|
663
|
-
}
|
|
664
|
-
response_data = await self.api_client.call_api(
|
|
665
|
-
*_param,
|
|
666
|
-
_request_timeout=_request_timeout
|
|
667
|
-
)
|
|
668
|
-
await response_data.read()
|
|
669
|
-
return self.api_client.response_deserialize(
|
|
670
|
-
response_data=response_data,
|
|
671
|
-
response_types_map=_response_types_map,
|
|
672
|
-
)
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
@validate_call
|
|
676
|
-
async def update_node_scheduling_without_preload_content(
|
|
677
|
-
self,
|
|
678
|
-
id: StrictStr,
|
|
679
|
-
_request_timeout: Union[
|
|
680
|
-
None,
|
|
681
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
682
|
-
Tuple[
|
|
683
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
684
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
685
|
-
]
|
|
686
|
-
] = None,
|
|
687
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
688
|
-
_content_type: Optional[StrictStr] = None,
|
|
689
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
690
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
691
|
-
) -> RESTResponseType:
|
|
692
|
-
"""Update node scheduling status
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
:param id: (required)
|
|
696
|
-
:type id: str
|
|
697
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
698
|
-
number provided, it will be total request
|
|
699
|
-
timeout. It can also be a pair (tuple) of
|
|
700
|
-
(connection, read) timeouts.
|
|
701
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
702
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
703
|
-
request; this effectively ignores the
|
|
704
|
-
authentication in the spec for a single request.
|
|
705
|
-
:type _request_auth: dict, optional
|
|
706
|
-
:param _content_type: force content-type for the request.
|
|
707
|
-
:type _content_type: str, Optional
|
|
708
|
-
:param _headers: set to override the headers for a single
|
|
709
|
-
request; this effectively ignores the headers
|
|
710
|
-
in the spec for a single request.
|
|
711
|
-
:type _headers: dict, optional
|
|
712
|
-
:param _host_index: set to override the host_index for a single
|
|
713
|
-
request; this effectively ignores the host_index
|
|
714
|
-
in the spec for a single request.
|
|
715
|
-
:type _host_index: int, optional
|
|
716
|
-
:return: Returns the result object.
|
|
717
|
-
""" # noqa: E501
|
|
718
|
-
|
|
719
|
-
_param = self._update_node_scheduling_serialize(
|
|
720
|
-
id=id,
|
|
721
|
-
_request_auth=_request_auth,
|
|
722
|
-
_content_type=_content_type,
|
|
723
|
-
_headers=_headers,
|
|
724
|
-
_host_index=_host_index
|
|
725
|
-
)
|
|
726
|
-
|
|
727
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
728
|
-
'200': None,
|
|
729
|
-
}
|
|
730
|
-
response_data = await self.api_client.call_api(
|
|
731
|
-
*_param,
|
|
732
|
-
_request_timeout=_request_timeout
|
|
733
|
-
)
|
|
734
|
-
return response_data.response
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
def _update_node_scheduling_serialize(
|
|
738
|
-
self,
|
|
739
|
-
id,
|
|
740
|
-
_request_auth,
|
|
741
|
-
_content_type,
|
|
742
|
-
_headers,
|
|
743
|
-
_host_index,
|
|
744
|
-
) -> RequestSerialized:
|
|
745
|
-
|
|
746
|
-
_host = None
|
|
747
|
-
|
|
748
|
-
_collection_formats: Dict[str, str] = {
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
_path_params: Dict[str, str] = {}
|
|
752
|
-
_query_params: List[Tuple[str, str]] = []
|
|
753
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
754
|
-
_form_params: List[Tuple[str, str]] = []
|
|
755
|
-
_files: Dict[
|
|
756
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
757
|
-
] = {}
|
|
758
|
-
_body_params: Optional[bytes] = None
|
|
759
|
-
|
|
760
|
-
# process the path parameters
|
|
761
|
-
if id is not None:
|
|
762
|
-
_path_params['id'] = id
|
|
763
|
-
# process the query parameters
|
|
764
|
-
# process the header parameters
|
|
765
|
-
# process the form parameters
|
|
766
|
-
# process the body parameter
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
# authentication setting
|
|
772
|
-
_auth_settings: List[str] = [
|
|
773
|
-
'bearer',
|
|
774
|
-
'oauth2'
|
|
775
|
-
]
|
|
776
|
-
|
|
777
|
-
return self.api_client.param_serialize(
|
|
778
|
-
method='PATCH',
|
|
779
|
-
resource_path='/nodes/{id}/scheduling',
|
|
780
|
-
path_params=_path_params,
|
|
781
|
-
query_params=_query_params,
|
|
782
|
-
header_params=_header_params,
|
|
783
|
-
body=_body_params,
|
|
784
|
-
post_params=_form_params,
|
|
785
|
-
files=_files,
|
|
786
|
-
auth_settings=_auth_settings,
|
|
787
|
-
collection_formats=_collection_formats,
|
|
788
|
-
_host=_host,
|
|
789
|
-
_request_auth=_request_auth
|
|
790
|
-
)
|
|
791
|
-
|
|
792
|
-
|