daytona_api_client 0.26.0rc1__py3-none-any.whl → 0.27.0rc1__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 +8 -1
- daytona_api_client/api/__init__.py +1 -0
- daytona_api_client/api/default_api.py +1884 -0
- daytona_api_client/api/organizations_api.py +6 -6
- daytona_api_client/api/sandbox_api.py +855 -2
- daytona_api_client/api/toolbox_api.py +6 -6
- daytona_api_client/api/webhooks_api.py +1704 -0
- daytona_api_client/models/__init__.py +7 -1
- daytona_api_client/models/create_audit_log.py +2 -2
- daytona_api_client/models/{usage_overview.py → organization_usage_overview.py} +14 -8
- daytona_api_client/models/sandbox_created_post_request.py +110 -0
- daytona_api_client/models/sandbox_created_post_request_data.py +152 -0
- daytona_api_client/models/sandbox_state_updated_post_request.py +110 -0
- daytona_api_client/models/sandbox_state_updated_post_request_data.py +129 -0
- daytona_api_client/models/sandbox_state_updated_post_request_data_sandbox.py +115 -0
- daytona_api_client/models/send_webhook_dto.py +105 -0
- daytona_api_client/models/session_command_logs_response.py +103 -0
- daytona_api_client/models/session_execute_response.py +1 -1
- daytona_api_client/models/snapshot_created_post_request.py +110 -0
- daytona_api_client/models/snapshot_created_post_request_data.py +136 -0
- daytona_api_client/models/snapshot_removed_post_request.py +106 -0
- daytona_api_client/models/snapshot_state_updated_post_request.py +110 -0
- daytona_api_client/models/snapshot_state_updated_post_request_data.py +129 -0
- daytona_api_client/models/snapshot_state_updated_post_request_data_snapshot.py +115 -0
- daytona_api_client/models/ssh_access_dto.py +112 -0
- daytona_api_client/models/ssh_access_validation_dto.py +107 -0
- daytona_api_client/models/volume_created_post_request.py +110 -0
- daytona_api_client/models/volume_created_post_request_data.py +126 -0
- daytona_api_client/models/volume_state_updated_post_request.py +110 -0
- daytona_api_client/models/volume_state_updated_post_request_data.py +129 -0
- daytona_api_client/models/volume_state_updated_post_request_data_volume.py +115 -0
- daytona_api_client/models/webhook_app_portal_access.py +101 -0
- daytona_api_client/models/webhook_controller_get_app_portal_access200_response.py +101 -0
- daytona_api_client/models/webhook_controller_get_initialization_status200_response.py +118 -0
- daytona_api_client/models/{toggle_state.py → webhook_controller_get_status200_response.py} +7 -7
- daytona_api_client/models/webhook_initialization_status.py +121 -0
- {daytona_api_client-0.26.0rc1.dist-info → daytona_api_client-0.27.0rc1.dist-info}/METADATA +1 -1
- {daytona_api_client-0.26.0rc1.dist-info → daytona_api_client-0.27.0rc1.dist-info}/RECORD +41 -15
- {daytona_api_client-0.26.0rc1.dist-info → daytona_api_client-0.27.0rc1.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.26.0rc1.dist-info → daytona_api_client-0.27.0rc1.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client-0.26.0rc1.dist-info → daytona_api_client-0.27.0rc1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,1884 @@
|
|
|
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 daytona_api_client.models.sandbox_created_post_request import SandboxCreatedPostRequest
|
|
21
|
+
from daytona_api_client.models.sandbox_state_updated_post_request import SandboxStateUpdatedPostRequest
|
|
22
|
+
from daytona_api_client.models.snapshot_created_post_request import SnapshotCreatedPostRequest
|
|
23
|
+
from daytona_api_client.models.snapshot_removed_post_request import SnapshotRemovedPostRequest
|
|
24
|
+
from daytona_api_client.models.snapshot_state_updated_post_request import SnapshotStateUpdatedPostRequest
|
|
25
|
+
from daytona_api_client.models.volume_created_post_request import VolumeCreatedPostRequest
|
|
26
|
+
from daytona_api_client.models.volume_state_updated_post_request import VolumeStateUpdatedPostRequest
|
|
27
|
+
|
|
28
|
+
from daytona_api_client.api_client import ApiClient, RequestSerialized
|
|
29
|
+
from daytona_api_client.api_response import ApiResponse
|
|
30
|
+
from daytona_api_client.rest import RESTResponseType
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class DefaultApi:
|
|
34
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
35
|
+
Ref: https://openapi-generator.tech
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
def __init__(self, api_client=None) -> None:
|
|
41
|
+
if api_client is None:
|
|
42
|
+
api_client = ApiClient.get_default()
|
|
43
|
+
self.api_client = api_client
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@validate_call
|
|
47
|
+
def sandbox_created_post(
|
|
48
|
+
self,
|
|
49
|
+
sandbox_created_post_request: = None,
|
|
50
|
+
_request_timeout: Union[
|
|
51
|
+
None,
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
53
|
+
Tuple[
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
56
|
+
]
|
|
57
|
+
] = None,
|
|
58
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
59
|
+
_content_type: Optional[StrictStr] = None,
|
|
60
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
61
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
62
|
+
) -> None:
|
|
63
|
+
"""sandbox_created_post
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
:param sandbox_created_post_request: Sandbox created event
|
|
67
|
+
:type sandbox_created_post_request: SandboxCreatedPostRequest
|
|
68
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
69
|
+
number provided, it will be total request
|
|
70
|
+
timeout. It can also be a pair (tuple) of
|
|
71
|
+
(connection, read) timeouts.
|
|
72
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
73
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
74
|
+
request; this effectively ignores the
|
|
75
|
+
authentication in the spec for a single request.
|
|
76
|
+
:type _request_auth: dict, optional
|
|
77
|
+
:param _content_type: force content-type for the request.
|
|
78
|
+
:type _content_type: str, Optional
|
|
79
|
+
:param _headers: set to override the headers for a single
|
|
80
|
+
request; this effectively ignores the headers
|
|
81
|
+
in the spec for a single request.
|
|
82
|
+
:type _headers: dict, optional
|
|
83
|
+
:param _host_index: set to override the host_index for a single
|
|
84
|
+
request; this effectively ignores the host_index
|
|
85
|
+
in the spec for a single request.
|
|
86
|
+
:type _host_index: int, optional
|
|
87
|
+
:return: Returns the result object.
|
|
88
|
+
""" # noqa: E501
|
|
89
|
+
|
|
90
|
+
_param = self._sandbox_created_post_serialize(
|
|
91
|
+
sandbox_created_post_request=sandbox_created_post_request,
|
|
92
|
+
_request_auth=_request_auth,
|
|
93
|
+
_content_type=_content_type,
|
|
94
|
+
_headers=_headers,
|
|
95
|
+
_host_index=_host_index
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
99
|
+
'200': None,
|
|
100
|
+
}
|
|
101
|
+
response_data = self.api_client.call_api(
|
|
102
|
+
*_param,
|
|
103
|
+
_request_timeout=_request_timeout
|
|
104
|
+
)
|
|
105
|
+
response_data.read()
|
|
106
|
+
return self.api_client.response_deserialize(
|
|
107
|
+
response_data=response_data,
|
|
108
|
+
response_types_map=_response_types_map,
|
|
109
|
+
).data
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
@validate_call
|
|
113
|
+
def sandbox_created_post_with_http_info(
|
|
114
|
+
self,
|
|
115
|
+
sandbox_created_post_request: = None,
|
|
116
|
+
_request_timeout: Union[
|
|
117
|
+
None,
|
|
118
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
119
|
+
Tuple[
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
121
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
122
|
+
]
|
|
123
|
+
] = None,
|
|
124
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
125
|
+
_content_type: Optional[StrictStr] = None,
|
|
126
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
127
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
128
|
+
) -> ApiResponse[None]:
|
|
129
|
+
"""sandbox_created_post
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
:param sandbox_created_post_request: Sandbox created event
|
|
133
|
+
:type sandbox_created_post_request: SandboxCreatedPostRequest
|
|
134
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
135
|
+
number provided, it will be total request
|
|
136
|
+
timeout. It can also be a pair (tuple) of
|
|
137
|
+
(connection, read) timeouts.
|
|
138
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
139
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
140
|
+
request; this effectively ignores the
|
|
141
|
+
authentication in the spec for a single request.
|
|
142
|
+
:type _request_auth: dict, optional
|
|
143
|
+
:param _content_type: force content-type for the request.
|
|
144
|
+
:type _content_type: str, Optional
|
|
145
|
+
:param _headers: set to override the headers for a single
|
|
146
|
+
request; this effectively ignores the headers
|
|
147
|
+
in the spec for a single request.
|
|
148
|
+
:type _headers: dict, optional
|
|
149
|
+
:param _host_index: set to override the host_index for a single
|
|
150
|
+
request; this effectively ignores the host_index
|
|
151
|
+
in the spec for a single request.
|
|
152
|
+
:type _host_index: int, optional
|
|
153
|
+
:return: Returns the result object.
|
|
154
|
+
""" # noqa: E501
|
|
155
|
+
|
|
156
|
+
_param = self._sandbox_created_post_serialize(
|
|
157
|
+
sandbox_created_post_request=sandbox_created_post_request,
|
|
158
|
+
_request_auth=_request_auth,
|
|
159
|
+
_content_type=_content_type,
|
|
160
|
+
_headers=_headers,
|
|
161
|
+
_host_index=_host_index
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
165
|
+
'200': None,
|
|
166
|
+
}
|
|
167
|
+
response_data = self.api_client.call_api(
|
|
168
|
+
*_param,
|
|
169
|
+
_request_timeout=_request_timeout
|
|
170
|
+
)
|
|
171
|
+
response_data.read()
|
|
172
|
+
return self.api_client.response_deserialize(
|
|
173
|
+
response_data=response_data,
|
|
174
|
+
response_types_map=_response_types_map,
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
@validate_call
|
|
179
|
+
def sandbox_created_post_without_preload_content(
|
|
180
|
+
self,
|
|
181
|
+
sandbox_created_post_request: = None,
|
|
182
|
+
_request_timeout: Union[
|
|
183
|
+
None,
|
|
184
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
185
|
+
Tuple[
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
187
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
188
|
+
]
|
|
189
|
+
] = None,
|
|
190
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
191
|
+
_content_type: Optional[StrictStr] = None,
|
|
192
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
193
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
194
|
+
) -> RESTResponseType:
|
|
195
|
+
"""sandbox_created_post
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
:param sandbox_created_post_request: Sandbox created event
|
|
199
|
+
:type sandbox_created_post_request: SandboxCreatedPostRequest
|
|
200
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
201
|
+
number provided, it will be total request
|
|
202
|
+
timeout. It can also be a pair (tuple) of
|
|
203
|
+
(connection, read) timeouts.
|
|
204
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
205
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
206
|
+
request; this effectively ignores the
|
|
207
|
+
authentication in the spec for a single request.
|
|
208
|
+
:type _request_auth: dict, optional
|
|
209
|
+
:param _content_type: force content-type for the request.
|
|
210
|
+
:type _content_type: str, Optional
|
|
211
|
+
:param _headers: set to override the headers for a single
|
|
212
|
+
request; this effectively ignores the headers
|
|
213
|
+
in the spec for a single request.
|
|
214
|
+
:type _headers: dict, optional
|
|
215
|
+
:param _host_index: set to override the host_index for a single
|
|
216
|
+
request; this effectively ignores the host_index
|
|
217
|
+
in the spec for a single request.
|
|
218
|
+
:type _host_index: int, optional
|
|
219
|
+
:return: Returns the result object.
|
|
220
|
+
""" # noqa: E501
|
|
221
|
+
|
|
222
|
+
_param = self._sandbox_created_post_serialize(
|
|
223
|
+
sandbox_created_post_request=sandbox_created_post_request,
|
|
224
|
+
_request_auth=_request_auth,
|
|
225
|
+
_content_type=_content_type,
|
|
226
|
+
_headers=_headers,
|
|
227
|
+
_host_index=_host_index
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
231
|
+
'200': None,
|
|
232
|
+
}
|
|
233
|
+
response_data = self.api_client.call_api(
|
|
234
|
+
*_param,
|
|
235
|
+
_request_timeout=_request_timeout
|
|
236
|
+
)
|
|
237
|
+
return response_data.response
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
def _sandbox_created_post_serialize(
|
|
241
|
+
self,
|
|
242
|
+
sandbox_created_post_request,
|
|
243
|
+
_request_auth,
|
|
244
|
+
_content_type,
|
|
245
|
+
_headers,
|
|
246
|
+
_host_index,
|
|
247
|
+
) -> RequestSerialized:
|
|
248
|
+
|
|
249
|
+
_host = None
|
|
250
|
+
|
|
251
|
+
_collection_formats: Dict[str, str] = {
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
_path_params: Dict[str, str] = {}
|
|
255
|
+
_query_params: List[Tuple[str, str]] = []
|
|
256
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
257
|
+
_form_params: List[Tuple[str, str]] = []
|
|
258
|
+
_files: Dict[
|
|
259
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
260
|
+
] = {}
|
|
261
|
+
_body_params: Optional[bytes] = None
|
|
262
|
+
|
|
263
|
+
# process the path parameters
|
|
264
|
+
# process the query parameters
|
|
265
|
+
# process the header parameters
|
|
266
|
+
# process the form parameters
|
|
267
|
+
# process the body parameter
|
|
268
|
+
if sandbox_created_post_request is not None:
|
|
269
|
+
_body_params = sandbox_created_post_request
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
# set the HTTP header `Content-Type`
|
|
274
|
+
if _content_type:
|
|
275
|
+
_header_params['Content-Type'] = _content_type
|
|
276
|
+
else:
|
|
277
|
+
_default_content_type = (
|
|
278
|
+
self.api_client.select_header_content_type(
|
|
279
|
+
[
|
|
280
|
+
'application/json'
|
|
281
|
+
]
|
|
282
|
+
)
|
|
283
|
+
)
|
|
284
|
+
if _default_content_type is not None:
|
|
285
|
+
_header_params['Content-Type'] = _default_content_type
|
|
286
|
+
|
|
287
|
+
# authentication setting
|
|
288
|
+
_auth_settings: List[str] = [
|
|
289
|
+
]
|
|
290
|
+
|
|
291
|
+
return self.api_client.param_serialize(
|
|
292
|
+
method='POST',
|
|
293
|
+
resource_path='/sandbox.created',
|
|
294
|
+
path_params=_path_params,
|
|
295
|
+
query_params=_query_params,
|
|
296
|
+
header_params=_header_params,
|
|
297
|
+
body=_body_params,
|
|
298
|
+
post_params=_form_params,
|
|
299
|
+
files=_files,
|
|
300
|
+
auth_settings=_auth_settings,
|
|
301
|
+
collection_formats=_collection_formats,
|
|
302
|
+
_host=_host,
|
|
303
|
+
_request_auth=_request_auth
|
|
304
|
+
)
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
@validate_call
|
|
310
|
+
def sandbox_state_updated_post(
|
|
311
|
+
self,
|
|
312
|
+
sandbox_state_updated_post_request: = None,
|
|
313
|
+
_request_timeout: Union[
|
|
314
|
+
None,
|
|
315
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
316
|
+
Tuple[
|
|
317
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
318
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
319
|
+
]
|
|
320
|
+
] = None,
|
|
321
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
322
|
+
_content_type: Optional[StrictStr] = None,
|
|
323
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
324
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
325
|
+
) -> None:
|
|
326
|
+
"""sandbox_state_updated_post
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
:param sandbox_state_updated_post_request: Sandbox state updated event
|
|
330
|
+
:type sandbox_state_updated_post_request: SandboxStateUpdatedPostRequest
|
|
331
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
332
|
+
number provided, it will be total request
|
|
333
|
+
timeout. It can also be a pair (tuple) of
|
|
334
|
+
(connection, read) timeouts.
|
|
335
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
336
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
337
|
+
request; this effectively ignores the
|
|
338
|
+
authentication in the spec for a single request.
|
|
339
|
+
:type _request_auth: dict, optional
|
|
340
|
+
:param _content_type: force content-type for the request.
|
|
341
|
+
:type _content_type: str, Optional
|
|
342
|
+
:param _headers: set to override the headers for a single
|
|
343
|
+
request; this effectively ignores the headers
|
|
344
|
+
in the spec for a single request.
|
|
345
|
+
:type _headers: dict, optional
|
|
346
|
+
:param _host_index: set to override the host_index for a single
|
|
347
|
+
request; this effectively ignores the host_index
|
|
348
|
+
in the spec for a single request.
|
|
349
|
+
:type _host_index: int, optional
|
|
350
|
+
:return: Returns the result object.
|
|
351
|
+
""" # noqa: E501
|
|
352
|
+
|
|
353
|
+
_param = self._sandbox_state_updated_post_serialize(
|
|
354
|
+
sandbox_state_updated_post_request=sandbox_state_updated_post_request,
|
|
355
|
+
_request_auth=_request_auth,
|
|
356
|
+
_content_type=_content_type,
|
|
357
|
+
_headers=_headers,
|
|
358
|
+
_host_index=_host_index
|
|
359
|
+
)
|
|
360
|
+
|
|
361
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
362
|
+
'200': None,
|
|
363
|
+
}
|
|
364
|
+
response_data = self.api_client.call_api(
|
|
365
|
+
*_param,
|
|
366
|
+
_request_timeout=_request_timeout
|
|
367
|
+
)
|
|
368
|
+
response_data.read()
|
|
369
|
+
return self.api_client.response_deserialize(
|
|
370
|
+
response_data=response_data,
|
|
371
|
+
response_types_map=_response_types_map,
|
|
372
|
+
).data
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
@validate_call
|
|
376
|
+
def sandbox_state_updated_post_with_http_info(
|
|
377
|
+
self,
|
|
378
|
+
sandbox_state_updated_post_request: = None,
|
|
379
|
+
_request_timeout: Union[
|
|
380
|
+
None,
|
|
381
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
382
|
+
Tuple[
|
|
383
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
384
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
385
|
+
]
|
|
386
|
+
] = None,
|
|
387
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
388
|
+
_content_type: Optional[StrictStr] = None,
|
|
389
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
390
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
391
|
+
) -> ApiResponse[None]:
|
|
392
|
+
"""sandbox_state_updated_post
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
:param sandbox_state_updated_post_request: Sandbox state updated event
|
|
396
|
+
:type sandbox_state_updated_post_request: SandboxStateUpdatedPostRequest
|
|
397
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
398
|
+
number provided, it will be total request
|
|
399
|
+
timeout. It can also be a pair (tuple) of
|
|
400
|
+
(connection, read) timeouts.
|
|
401
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
402
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
403
|
+
request; this effectively ignores the
|
|
404
|
+
authentication in the spec for a single request.
|
|
405
|
+
:type _request_auth: dict, optional
|
|
406
|
+
:param _content_type: force content-type for the request.
|
|
407
|
+
:type _content_type: str, Optional
|
|
408
|
+
:param _headers: set to override the headers for a single
|
|
409
|
+
request; this effectively ignores the headers
|
|
410
|
+
in the spec for a single request.
|
|
411
|
+
:type _headers: dict, optional
|
|
412
|
+
:param _host_index: set to override the host_index for a single
|
|
413
|
+
request; this effectively ignores the host_index
|
|
414
|
+
in the spec for a single request.
|
|
415
|
+
:type _host_index: int, optional
|
|
416
|
+
:return: Returns the result object.
|
|
417
|
+
""" # noqa: E501
|
|
418
|
+
|
|
419
|
+
_param = self._sandbox_state_updated_post_serialize(
|
|
420
|
+
sandbox_state_updated_post_request=sandbox_state_updated_post_request,
|
|
421
|
+
_request_auth=_request_auth,
|
|
422
|
+
_content_type=_content_type,
|
|
423
|
+
_headers=_headers,
|
|
424
|
+
_host_index=_host_index
|
|
425
|
+
)
|
|
426
|
+
|
|
427
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
428
|
+
'200': None,
|
|
429
|
+
}
|
|
430
|
+
response_data = self.api_client.call_api(
|
|
431
|
+
*_param,
|
|
432
|
+
_request_timeout=_request_timeout
|
|
433
|
+
)
|
|
434
|
+
response_data.read()
|
|
435
|
+
return self.api_client.response_deserialize(
|
|
436
|
+
response_data=response_data,
|
|
437
|
+
response_types_map=_response_types_map,
|
|
438
|
+
)
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
@validate_call
|
|
442
|
+
def sandbox_state_updated_post_without_preload_content(
|
|
443
|
+
self,
|
|
444
|
+
sandbox_state_updated_post_request: = None,
|
|
445
|
+
_request_timeout: Union[
|
|
446
|
+
None,
|
|
447
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
448
|
+
Tuple[
|
|
449
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
450
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
451
|
+
]
|
|
452
|
+
] = None,
|
|
453
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
454
|
+
_content_type: Optional[StrictStr] = None,
|
|
455
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
456
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
457
|
+
) -> RESTResponseType:
|
|
458
|
+
"""sandbox_state_updated_post
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
:param sandbox_state_updated_post_request: Sandbox state updated event
|
|
462
|
+
:type sandbox_state_updated_post_request: SandboxStateUpdatedPostRequest
|
|
463
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
464
|
+
number provided, it will be total request
|
|
465
|
+
timeout. It can also be a pair (tuple) of
|
|
466
|
+
(connection, read) timeouts.
|
|
467
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
468
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
469
|
+
request; this effectively ignores the
|
|
470
|
+
authentication in the spec for a single request.
|
|
471
|
+
:type _request_auth: dict, optional
|
|
472
|
+
:param _content_type: force content-type for the request.
|
|
473
|
+
:type _content_type: str, Optional
|
|
474
|
+
:param _headers: set to override the headers for a single
|
|
475
|
+
request; this effectively ignores the headers
|
|
476
|
+
in the spec for a single request.
|
|
477
|
+
:type _headers: dict, optional
|
|
478
|
+
:param _host_index: set to override the host_index for a single
|
|
479
|
+
request; this effectively ignores the host_index
|
|
480
|
+
in the spec for a single request.
|
|
481
|
+
:type _host_index: int, optional
|
|
482
|
+
:return: Returns the result object.
|
|
483
|
+
""" # noqa: E501
|
|
484
|
+
|
|
485
|
+
_param = self._sandbox_state_updated_post_serialize(
|
|
486
|
+
sandbox_state_updated_post_request=sandbox_state_updated_post_request,
|
|
487
|
+
_request_auth=_request_auth,
|
|
488
|
+
_content_type=_content_type,
|
|
489
|
+
_headers=_headers,
|
|
490
|
+
_host_index=_host_index
|
|
491
|
+
)
|
|
492
|
+
|
|
493
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
494
|
+
'200': None,
|
|
495
|
+
}
|
|
496
|
+
response_data = self.api_client.call_api(
|
|
497
|
+
*_param,
|
|
498
|
+
_request_timeout=_request_timeout
|
|
499
|
+
)
|
|
500
|
+
return response_data.response
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
def _sandbox_state_updated_post_serialize(
|
|
504
|
+
self,
|
|
505
|
+
sandbox_state_updated_post_request,
|
|
506
|
+
_request_auth,
|
|
507
|
+
_content_type,
|
|
508
|
+
_headers,
|
|
509
|
+
_host_index,
|
|
510
|
+
) -> RequestSerialized:
|
|
511
|
+
|
|
512
|
+
_host = None
|
|
513
|
+
|
|
514
|
+
_collection_formats: Dict[str, str] = {
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
_path_params: Dict[str, str] = {}
|
|
518
|
+
_query_params: List[Tuple[str, str]] = []
|
|
519
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
520
|
+
_form_params: List[Tuple[str, str]] = []
|
|
521
|
+
_files: Dict[
|
|
522
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
523
|
+
] = {}
|
|
524
|
+
_body_params: Optional[bytes] = None
|
|
525
|
+
|
|
526
|
+
# process the path parameters
|
|
527
|
+
# process the query parameters
|
|
528
|
+
# process the header parameters
|
|
529
|
+
# process the form parameters
|
|
530
|
+
# process the body parameter
|
|
531
|
+
if sandbox_state_updated_post_request is not None:
|
|
532
|
+
_body_params = sandbox_state_updated_post_request
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
# set the HTTP header `Content-Type`
|
|
537
|
+
if _content_type:
|
|
538
|
+
_header_params['Content-Type'] = _content_type
|
|
539
|
+
else:
|
|
540
|
+
_default_content_type = (
|
|
541
|
+
self.api_client.select_header_content_type(
|
|
542
|
+
[
|
|
543
|
+
'application/json'
|
|
544
|
+
]
|
|
545
|
+
)
|
|
546
|
+
)
|
|
547
|
+
if _default_content_type is not None:
|
|
548
|
+
_header_params['Content-Type'] = _default_content_type
|
|
549
|
+
|
|
550
|
+
# authentication setting
|
|
551
|
+
_auth_settings: List[str] = [
|
|
552
|
+
]
|
|
553
|
+
|
|
554
|
+
return self.api_client.param_serialize(
|
|
555
|
+
method='POST',
|
|
556
|
+
resource_path='/sandbox.state.updated',
|
|
557
|
+
path_params=_path_params,
|
|
558
|
+
query_params=_query_params,
|
|
559
|
+
header_params=_header_params,
|
|
560
|
+
body=_body_params,
|
|
561
|
+
post_params=_form_params,
|
|
562
|
+
files=_files,
|
|
563
|
+
auth_settings=_auth_settings,
|
|
564
|
+
collection_formats=_collection_formats,
|
|
565
|
+
_host=_host,
|
|
566
|
+
_request_auth=_request_auth
|
|
567
|
+
)
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
@validate_call
|
|
573
|
+
def snapshot_created_post(
|
|
574
|
+
self,
|
|
575
|
+
snapshot_created_post_request: = None,
|
|
576
|
+
_request_timeout: Union[
|
|
577
|
+
None,
|
|
578
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
579
|
+
Tuple[
|
|
580
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
581
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
582
|
+
]
|
|
583
|
+
] = None,
|
|
584
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
585
|
+
_content_type: Optional[StrictStr] = None,
|
|
586
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
587
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
588
|
+
) -> None:
|
|
589
|
+
"""snapshot_created_post
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
:param snapshot_created_post_request: Snapshot created event
|
|
593
|
+
:type snapshot_created_post_request: SnapshotCreatedPostRequest
|
|
594
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
595
|
+
number provided, it will be total request
|
|
596
|
+
timeout. It can also be a pair (tuple) of
|
|
597
|
+
(connection, read) timeouts.
|
|
598
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
599
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
600
|
+
request; this effectively ignores the
|
|
601
|
+
authentication in the spec for a single request.
|
|
602
|
+
:type _request_auth: dict, optional
|
|
603
|
+
:param _content_type: force content-type for the request.
|
|
604
|
+
:type _content_type: str, Optional
|
|
605
|
+
:param _headers: set to override the headers for a single
|
|
606
|
+
request; this effectively ignores the headers
|
|
607
|
+
in the spec for a single request.
|
|
608
|
+
:type _headers: dict, optional
|
|
609
|
+
:param _host_index: set to override the host_index for a single
|
|
610
|
+
request; this effectively ignores the host_index
|
|
611
|
+
in the spec for a single request.
|
|
612
|
+
:type _host_index: int, optional
|
|
613
|
+
:return: Returns the result object.
|
|
614
|
+
""" # noqa: E501
|
|
615
|
+
|
|
616
|
+
_param = self._snapshot_created_post_serialize(
|
|
617
|
+
snapshot_created_post_request=snapshot_created_post_request,
|
|
618
|
+
_request_auth=_request_auth,
|
|
619
|
+
_content_type=_content_type,
|
|
620
|
+
_headers=_headers,
|
|
621
|
+
_host_index=_host_index
|
|
622
|
+
)
|
|
623
|
+
|
|
624
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
625
|
+
'200': None,
|
|
626
|
+
}
|
|
627
|
+
response_data = self.api_client.call_api(
|
|
628
|
+
*_param,
|
|
629
|
+
_request_timeout=_request_timeout
|
|
630
|
+
)
|
|
631
|
+
response_data.read()
|
|
632
|
+
return self.api_client.response_deserialize(
|
|
633
|
+
response_data=response_data,
|
|
634
|
+
response_types_map=_response_types_map,
|
|
635
|
+
).data
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
@validate_call
|
|
639
|
+
def snapshot_created_post_with_http_info(
|
|
640
|
+
self,
|
|
641
|
+
snapshot_created_post_request: = None,
|
|
642
|
+
_request_timeout: Union[
|
|
643
|
+
None,
|
|
644
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
645
|
+
Tuple[
|
|
646
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
647
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
648
|
+
]
|
|
649
|
+
] = None,
|
|
650
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
651
|
+
_content_type: Optional[StrictStr] = None,
|
|
652
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
653
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
654
|
+
) -> ApiResponse[None]:
|
|
655
|
+
"""snapshot_created_post
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
:param snapshot_created_post_request: Snapshot created event
|
|
659
|
+
:type snapshot_created_post_request: SnapshotCreatedPostRequest
|
|
660
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
661
|
+
number provided, it will be total request
|
|
662
|
+
timeout. It can also be a pair (tuple) of
|
|
663
|
+
(connection, read) timeouts.
|
|
664
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
665
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
666
|
+
request; this effectively ignores the
|
|
667
|
+
authentication in the spec for a single request.
|
|
668
|
+
:type _request_auth: dict, optional
|
|
669
|
+
:param _content_type: force content-type for the request.
|
|
670
|
+
:type _content_type: str, Optional
|
|
671
|
+
:param _headers: set to override the headers for a single
|
|
672
|
+
request; this effectively ignores the headers
|
|
673
|
+
in the spec for a single request.
|
|
674
|
+
:type _headers: dict, optional
|
|
675
|
+
:param _host_index: set to override the host_index for a single
|
|
676
|
+
request; this effectively ignores the host_index
|
|
677
|
+
in the spec for a single request.
|
|
678
|
+
:type _host_index: int, optional
|
|
679
|
+
:return: Returns the result object.
|
|
680
|
+
""" # noqa: E501
|
|
681
|
+
|
|
682
|
+
_param = self._snapshot_created_post_serialize(
|
|
683
|
+
snapshot_created_post_request=snapshot_created_post_request,
|
|
684
|
+
_request_auth=_request_auth,
|
|
685
|
+
_content_type=_content_type,
|
|
686
|
+
_headers=_headers,
|
|
687
|
+
_host_index=_host_index
|
|
688
|
+
)
|
|
689
|
+
|
|
690
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
691
|
+
'200': None,
|
|
692
|
+
}
|
|
693
|
+
response_data = self.api_client.call_api(
|
|
694
|
+
*_param,
|
|
695
|
+
_request_timeout=_request_timeout
|
|
696
|
+
)
|
|
697
|
+
response_data.read()
|
|
698
|
+
return self.api_client.response_deserialize(
|
|
699
|
+
response_data=response_data,
|
|
700
|
+
response_types_map=_response_types_map,
|
|
701
|
+
)
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
@validate_call
|
|
705
|
+
def snapshot_created_post_without_preload_content(
|
|
706
|
+
self,
|
|
707
|
+
snapshot_created_post_request: = None,
|
|
708
|
+
_request_timeout: Union[
|
|
709
|
+
None,
|
|
710
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
711
|
+
Tuple[
|
|
712
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
713
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
714
|
+
]
|
|
715
|
+
] = None,
|
|
716
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
717
|
+
_content_type: Optional[StrictStr] = None,
|
|
718
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
719
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
720
|
+
) -> RESTResponseType:
|
|
721
|
+
"""snapshot_created_post
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
:param snapshot_created_post_request: Snapshot created event
|
|
725
|
+
:type snapshot_created_post_request: SnapshotCreatedPostRequest
|
|
726
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
727
|
+
number provided, it will be total request
|
|
728
|
+
timeout. It can also be a pair (tuple) of
|
|
729
|
+
(connection, read) timeouts.
|
|
730
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
731
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
732
|
+
request; this effectively ignores the
|
|
733
|
+
authentication in the spec for a single request.
|
|
734
|
+
:type _request_auth: dict, optional
|
|
735
|
+
:param _content_type: force content-type for the request.
|
|
736
|
+
:type _content_type: str, Optional
|
|
737
|
+
:param _headers: set to override the headers for a single
|
|
738
|
+
request; this effectively ignores the headers
|
|
739
|
+
in the spec for a single request.
|
|
740
|
+
:type _headers: dict, optional
|
|
741
|
+
:param _host_index: set to override the host_index for a single
|
|
742
|
+
request; this effectively ignores the host_index
|
|
743
|
+
in the spec for a single request.
|
|
744
|
+
:type _host_index: int, optional
|
|
745
|
+
:return: Returns the result object.
|
|
746
|
+
""" # noqa: E501
|
|
747
|
+
|
|
748
|
+
_param = self._snapshot_created_post_serialize(
|
|
749
|
+
snapshot_created_post_request=snapshot_created_post_request,
|
|
750
|
+
_request_auth=_request_auth,
|
|
751
|
+
_content_type=_content_type,
|
|
752
|
+
_headers=_headers,
|
|
753
|
+
_host_index=_host_index
|
|
754
|
+
)
|
|
755
|
+
|
|
756
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
757
|
+
'200': None,
|
|
758
|
+
}
|
|
759
|
+
response_data = self.api_client.call_api(
|
|
760
|
+
*_param,
|
|
761
|
+
_request_timeout=_request_timeout
|
|
762
|
+
)
|
|
763
|
+
return response_data.response
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
def _snapshot_created_post_serialize(
|
|
767
|
+
self,
|
|
768
|
+
snapshot_created_post_request,
|
|
769
|
+
_request_auth,
|
|
770
|
+
_content_type,
|
|
771
|
+
_headers,
|
|
772
|
+
_host_index,
|
|
773
|
+
) -> RequestSerialized:
|
|
774
|
+
|
|
775
|
+
_host = None
|
|
776
|
+
|
|
777
|
+
_collection_formats: Dict[str, str] = {
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
_path_params: Dict[str, str] = {}
|
|
781
|
+
_query_params: List[Tuple[str, str]] = []
|
|
782
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
783
|
+
_form_params: List[Tuple[str, str]] = []
|
|
784
|
+
_files: Dict[
|
|
785
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
786
|
+
] = {}
|
|
787
|
+
_body_params: Optional[bytes] = None
|
|
788
|
+
|
|
789
|
+
# process the path parameters
|
|
790
|
+
# process the query parameters
|
|
791
|
+
# process the header parameters
|
|
792
|
+
# process the form parameters
|
|
793
|
+
# process the body parameter
|
|
794
|
+
if snapshot_created_post_request is not None:
|
|
795
|
+
_body_params = snapshot_created_post_request
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
# set the HTTP header `Content-Type`
|
|
800
|
+
if _content_type:
|
|
801
|
+
_header_params['Content-Type'] = _content_type
|
|
802
|
+
else:
|
|
803
|
+
_default_content_type = (
|
|
804
|
+
self.api_client.select_header_content_type(
|
|
805
|
+
[
|
|
806
|
+
'application/json'
|
|
807
|
+
]
|
|
808
|
+
)
|
|
809
|
+
)
|
|
810
|
+
if _default_content_type is not None:
|
|
811
|
+
_header_params['Content-Type'] = _default_content_type
|
|
812
|
+
|
|
813
|
+
# authentication setting
|
|
814
|
+
_auth_settings: List[str] = [
|
|
815
|
+
]
|
|
816
|
+
|
|
817
|
+
return self.api_client.param_serialize(
|
|
818
|
+
method='POST',
|
|
819
|
+
resource_path='/snapshot.created',
|
|
820
|
+
path_params=_path_params,
|
|
821
|
+
query_params=_query_params,
|
|
822
|
+
header_params=_header_params,
|
|
823
|
+
body=_body_params,
|
|
824
|
+
post_params=_form_params,
|
|
825
|
+
files=_files,
|
|
826
|
+
auth_settings=_auth_settings,
|
|
827
|
+
collection_formats=_collection_formats,
|
|
828
|
+
_host=_host,
|
|
829
|
+
_request_auth=_request_auth
|
|
830
|
+
)
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
@validate_call
|
|
836
|
+
def snapshot_removed_post(
|
|
837
|
+
self,
|
|
838
|
+
snapshot_removed_post_request: = None,
|
|
839
|
+
_request_timeout: Union[
|
|
840
|
+
None,
|
|
841
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
842
|
+
Tuple[
|
|
843
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
844
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
845
|
+
]
|
|
846
|
+
] = None,
|
|
847
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
848
|
+
_content_type: Optional[StrictStr] = None,
|
|
849
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
850
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
851
|
+
) -> None:
|
|
852
|
+
"""snapshot_removed_post
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
:param snapshot_removed_post_request: Snapshot removed event
|
|
856
|
+
:type snapshot_removed_post_request: SnapshotRemovedPostRequest
|
|
857
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
858
|
+
number provided, it will be total request
|
|
859
|
+
timeout. It can also be a pair (tuple) of
|
|
860
|
+
(connection, read) timeouts.
|
|
861
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
862
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
863
|
+
request; this effectively ignores the
|
|
864
|
+
authentication in the spec for a single request.
|
|
865
|
+
:type _request_auth: dict, optional
|
|
866
|
+
:param _content_type: force content-type for the request.
|
|
867
|
+
:type _content_type: str, Optional
|
|
868
|
+
:param _headers: set to override the headers for a single
|
|
869
|
+
request; this effectively ignores the headers
|
|
870
|
+
in the spec for a single request.
|
|
871
|
+
:type _headers: dict, optional
|
|
872
|
+
:param _host_index: set to override the host_index for a single
|
|
873
|
+
request; this effectively ignores the host_index
|
|
874
|
+
in the spec for a single request.
|
|
875
|
+
:type _host_index: int, optional
|
|
876
|
+
:return: Returns the result object.
|
|
877
|
+
""" # noqa: E501
|
|
878
|
+
|
|
879
|
+
_param = self._snapshot_removed_post_serialize(
|
|
880
|
+
snapshot_removed_post_request=snapshot_removed_post_request,
|
|
881
|
+
_request_auth=_request_auth,
|
|
882
|
+
_content_type=_content_type,
|
|
883
|
+
_headers=_headers,
|
|
884
|
+
_host_index=_host_index
|
|
885
|
+
)
|
|
886
|
+
|
|
887
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
888
|
+
'200': None,
|
|
889
|
+
}
|
|
890
|
+
response_data = self.api_client.call_api(
|
|
891
|
+
*_param,
|
|
892
|
+
_request_timeout=_request_timeout
|
|
893
|
+
)
|
|
894
|
+
response_data.read()
|
|
895
|
+
return self.api_client.response_deserialize(
|
|
896
|
+
response_data=response_data,
|
|
897
|
+
response_types_map=_response_types_map,
|
|
898
|
+
).data
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
@validate_call
|
|
902
|
+
def snapshot_removed_post_with_http_info(
|
|
903
|
+
self,
|
|
904
|
+
snapshot_removed_post_request: = None,
|
|
905
|
+
_request_timeout: Union[
|
|
906
|
+
None,
|
|
907
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
908
|
+
Tuple[
|
|
909
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
910
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
911
|
+
]
|
|
912
|
+
] = None,
|
|
913
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
914
|
+
_content_type: Optional[StrictStr] = None,
|
|
915
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
916
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
917
|
+
) -> ApiResponse[None]:
|
|
918
|
+
"""snapshot_removed_post
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
:param snapshot_removed_post_request: Snapshot removed event
|
|
922
|
+
:type snapshot_removed_post_request: SnapshotRemovedPostRequest
|
|
923
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
924
|
+
number provided, it will be total request
|
|
925
|
+
timeout. It can also be a pair (tuple) of
|
|
926
|
+
(connection, read) timeouts.
|
|
927
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
928
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
929
|
+
request; this effectively ignores the
|
|
930
|
+
authentication in the spec for a single request.
|
|
931
|
+
:type _request_auth: dict, optional
|
|
932
|
+
:param _content_type: force content-type for the request.
|
|
933
|
+
:type _content_type: str, Optional
|
|
934
|
+
:param _headers: set to override the headers for a single
|
|
935
|
+
request; this effectively ignores the headers
|
|
936
|
+
in the spec for a single request.
|
|
937
|
+
:type _headers: dict, optional
|
|
938
|
+
:param _host_index: set to override the host_index for a single
|
|
939
|
+
request; this effectively ignores the host_index
|
|
940
|
+
in the spec for a single request.
|
|
941
|
+
:type _host_index: int, optional
|
|
942
|
+
:return: Returns the result object.
|
|
943
|
+
""" # noqa: E501
|
|
944
|
+
|
|
945
|
+
_param = self._snapshot_removed_post_serialize(
|
|
946
|
+
snapshot_removed_post_request=snapshot_removed_post_request,
|
|
947
|
+
_request_auth=_request_auth,
|
|
948
|
+
_content_type=_content_type,
|
|
949
|
+
_headers=_headers,
|
|
950
|
+
_host_index=_host_index
|
|
951
|
+
)
|
|
952
|
+
|
|
953
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
954
|
+
'200': None,
|
|
955
|
+
}
|
|
956
|
+
response_data = self.api_client.call_api(
|
|
957
|
+
*_param,
|
|
958
|
+
_request_timeout=_request_timeout
|
|
959
|
+
)
|
|
960
|
+
response_data.read()
|
|
961
|
+
return self.api_client.response_deserialize(
|
|
962
|
+
response_data=response_data,
|
|
963
|
+
response_types_map=_response_types_map,
|
|
964
|
+
)
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
@validate_call
|
|
968
|
+
def snapshot_removed_post_without_preload_content(
|
|
969
|
+
self,
|
|
970
|
+
snapshot_removed_post_request: = None,
|
|
971
|
+
_request_timeout: Union[
|
|
972
|
+
None,
|
|
973
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
974
|
+
Tuple[
|
|
975
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
976
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
977
|
+
]
|
|
978
|
+
] = None,
|
|
979
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
980
|
+
_content_type: Optional[StrictStr] = None,
|
|
981
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
982
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
983
|
+
) -> RESTResponseType:
|
|
984
|
+
"""snapshot_removed_post
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
:param snapshot_removed_post_request: Snapshot removed event
|
|
988
|
+
:type snapshot_removed_post_request: SnapshotRemovedPostRequest
|
|
989
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
990
|
+
number provided, it will be total request
|
|
991
|
+
timeout. It can also be a pair (tuple) of
|
|
992
|
+
(connection, read) timeouts.
|
|
993
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
994
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
995
|
+
request; this effectively ignores the
|
|
996
|
+
authentication in the spec for a single request.
|
|
997
|
+
:type _request_auth: dict, optional
|
|
998
|
+
:param _content_type: force content-type for the request.
|
|
999
|
+
:type _content_type: str, Optional
|
|
1000
|
+
:param _headers: set to override the headers for a single
|
|
1001
|
+
request; this effectively ignores the headers
|
|
1002
|
+
in the spec for a single request.
|
|
1003
|
+
:type _headers: dict, optional
|
|
1004
|
+
:param _host_index: set to override the host_index for a single
|
|
1005
|
+
request; this effectively ignores the host_index
|
|
1006
|
+
in the spec for a single request.
|
|
1007
|
+
:type _host_index: int, optional
|
|
1008
|
+
:return: Returns the result object.
|
|
1009
|
+
""" # noqa: E501
|
|
1010
|
+
|
|
1011
|
+
_param = self._snapshot_removed_post_serialize(
|
|
1012
|
+
snapshot_removed_post_request=snapshot_removed_post_request,
|
|
1013
|
+
_request_auth=_request_auth,
|
|
1014
|
+
_content_type=_content_type,
|
|
1015
|
+
_headers=_headers,
|
|
1016
|
+
_host_index=_host_index
|
|
1017
|
+
)
|
|
1018
|
+
|
|
1019
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1020
|
+
'200': None,
|
|
1021
|
+
}
|
|
1022
|
+
response_data = self.api_client.call_api(
|
|
1023
|
+
*_param,
|
|
1024
|
+
_request_timeout=_request_timeout
|
|
1025
|
+
)
|
|
1026
|
+
return response_data.response
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
def _snapshot_removed_post_serialize(
|
|
1030
|
+
self,
|
|
1031
|
+
snapshot_removed_post_request,
|
|
1032
|
+
_request_auth,
|
|
1033
|
+
_content_type,
|
|
1034
|
+
_headers,
|
|
1035
|
+
_host_index,
|
|
1036
|
+
) -> RequestSerialized:
|
|
1037
|
+
|
|
1038
|
+
_host = None
|
|
1039
|
+
|
|
1040
|
+
_collection_formats: Dict[str, str] = {
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
_path_params: Dict[str, str] = {}
|
|
1044
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1045
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1046
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1047
|
+
_files: Dict[
|
|
1048
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1049
|
+
] = {}
|
|
1050
|
+
_body_params: Optional[bytes] = None
|
|
1051
|
+
|
|
1052
|
+
# process the path parameters
|
|
1053
|
+
# process the query parameters
|
|
1054
|
+
# process the header parameters
|
|
1055
|
+
# process the form parameters
|
|
1056
|
+
# process the body parameter
|
|
1057
|
+
if snapshot_removed_post_request is not None:
|
|
1058
|
+
_body_params = snapshot_removed_post_request
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
# set the HTTP header `Content-Type`
|
|
1063
|
+
if _content_type:
|
|
1064
|
+
_header_params['Content-Type'] = _content_type
|
|
1065
|
+
else:
|
|
1066
|
+
_default_content_type = (
|
|
1067
|
+
self.api_client.select_header_content_type(
|
|
1068
|
+
[
|
|
1069
|
+
'application/json'
|
|
1070
|
+
]
|
|
1071
|
+
)
|
|
1072
|
+
)
|
|
1073
|
+
if _default_content_type is not None:
|
|
1074
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1075
|
+
|
|
1076
|
+
# authentication setting
|
|
1077
|
+
_auth_settings: List[str] = [
|
|
1078
|
+
]
|
|
1079
|
+
|
|
1080
|
+
return self.api_client.param_serialize(
|
|
1081
|
+
method='POST',
|
|
1082
|
+
resource_path='/snapshot.removed',
|
|
1083
|
+
path_params=_path_params,
|
|
1084
|
+
query_params=_query_params,
|
|
1085
|
+
header_params=_header_params,
|
|
1086
|
+
body=_body_params,
|
|
1087
|
+
post_params=_form_params,
|
|
1088
|
+
files=_files,
|
|
1089
|
+
auth_settings=_auth_settings,
|
|
1090
|
+
collection_formats=_collection_formats,
|
|
1091
|
+
_host=_host,
|
|
1092
|
+
_request_auth=_request_auth
|
|
1093
|
+
)
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
@validate_call
|
|
1099
|
+
def snapshot_state_updated_post(
|
|
1100
|
+
self,
|
|
1101
|
+
snapshot_state_updated_post_request: = None,
|
|
1102
|
+
_request_timeout: Union[
|
|
1103
|
+
None,
|
|
1104
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1105
|
+
Tuple[
|
|
1106
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1107
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1108
|
+
]
|
|
1109
|
+
] = None,
|
|
1110
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1111
|
+
_content_type: Optional[StrictStr] = None,
|
|
1112
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1113
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1114
|
+
) -> None:
|
|
1115
|
+
"""snapshot_state_updated_post
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
:param snapshot_state_updated_post_request: Snapshot state updated event
|
|
1119
|
+
:type snapshot_state_updated_post_request: SnapshotStateUpdatedPostRequest
|
|
1120
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1121
|
+
number provided, it will be total request
|
|
1122
|
+
timeout. It can also be a pair (tuple) of
|
|
1123
|
+
(connection, read) timeouts.
|
|
1124
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1125
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1126
|
+
request; this effectively ignores the
|
|
1127
|
+
authentication in the spec for a single request.
|
|
1128
|
+
:type _request_auth: dict, optional
|
|
1129
|
+
:param _content_type: force content-type for the request.
|
|
1130
|
+
:type _content_type: str, Optional
|
|
1131
|
+
:param _headers: set to override the headers for a single
|
|
1132
|
+
request; this effectively ignores the headers
|
|
1133
|
+
in the spec for a single request.
|
|
1134
|
+
:type _headers: dict, optional
|
|
1135
|
+
:param _host_index: set to override the host_index for a single
|
|
1136
|
+
request; this effectively ignores the host_index
|
|
1137
|
+
in the spec for a single request.
|
|
1138
|
+
:type _host_index: int, optional
|
|
1139
|
+
:return: Returns the result object.
|
|
1140
|
+
""" # noqa: E501
|
|
1141
|
+
|
|
1142
|
+
_param = self._snapshot_state_updated_post_serialize(
|
|
1143
|
+
snapshot_state_updated_post_request=snapshot_state_updated_post_request,
|
|
1144
|
+
_request_auth=_request_auth,
|
|
1145
|
+
_content_type=_content_type,
|
|
1146
|
+
_headers=_headers,
|
|
1147
|
+
_host_index=_host_index
|
|
1148
|
+
)
|
|
1149
|
+
|
|
1150
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1151
|
+
'200': None,
|
|
1152
|
+
}
|
|
1153
|
+
response_data = self.api_client.call_api(
|
|
1154
|
+
*_param,
|
|
1155
|
+
_request_timeout=_request_timeout
|
|
1156
|
+
)
|
|
1157
|
+
response_data.read()
|
|
1158
|
+
return self.api_client.response_deserialize(
|
|
1159
|
+
response_data=response_data,
|
|
1160
|
+
response_types_map=_response_types_map,
|
|
1161
|
+
).data
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
@validate_call
|
|
1165
|
+
def snapshot_state_updated_post_with_http_info(
|
|
1166
|
+
self,
|
|
1167
|
+
snapshot_state_updated_post_request: = None,
|
|
1168
|
+
_request_timeout: Union[
|
|
1169
|
+
None,
|
|
1170
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1171
|
+
Tuple[
|
|
1172
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1173
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1174
|
+
]
|
|
1175
|
+
] = None,
|
|
1176
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1177
|
+
_content_type: Optional[StrictStr] = None,
|
|
1178
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1179
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1180
|
+
) -> ApiResponse[None]:
|
|
1181
|
+
"""snapshot_state_updated_post
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
:param snapshot_state_updated_post_request: Snapshot state updated event
|
|
1185
|
+
:type snapshot_state_updated_post_request: SnapshotStateUpdatedPostRequest
|
|
1186
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1187
|
+
number provided, it will be total request
|
|
1188
|
+
timeout. It can also be a pair (tuple) of
|
|
1189
|
+
(connection, read) timeouts.
|
|
1190
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1191
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1192
|
+
request; this effectively ignores the
|
|
1193
|
+
authentication in the spec for a single request.
|
|
1194
|
+
:type _request_auth: dict, optional
|
|
1195
|
+
:param _content_type: force content-type for the request.
|
|
1196
|
+
:type _content_type: str, Optional
|
|
1197
|
+
:param _headers: set to override the headers for a single
|
|
1198
|
+
request; this effectively ignores the headers
|
|
1199
|
+
in the spec for a single request.
|
|
1200
|
+
:type _headers: dict, optional
|
|
1201
|
+
:param _host_index: set to override the host_index for a single
|
|
1202
|
+
request; this effectively ignores the host_index
|
|
1203
|
+
in the spec for a single request.
|
|
1204
|
+
:type _host_index: int, optional
|
|
1205
|
+
:return: Returns the result object.
|
|
1206
|
+
""" # noqa: E501
|
|
1207
|
+
|
|
1208
|
+
_param = self._snapshot_state_updated_post_serialize(
|
|
1209
|
+
snapshot_state_updated_post_request=snapshot_state_updated_post_request,
|
|
1210
|
+
_request_auth=_request_auth,
|
|
1211
|
+
_content_type=_content_type,
|
|
1212
|
+
_headers=_headers,
|
|
1213
|
+
_host_index=_host_index
|
|
1214
|
+
)
|
|
1215
|
+
|
|
1216
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1217
|
+
'200': None,
|
|
1218
|
+
}
|
|
1219
|
+
response_data = self.api_client.call_api(
|
|
1220
|
+
*_param,
|
|
1221
|
+
_request_timeout=_request_timeout
|
|
1222
|
+
)
|
|
1223
|
+
response_data.read()
|
|
1224
|
+
return self.api_client.response_deserialize(
|
|
1225
|
+
response_data=response_data,
|
|
1226
|
+
response_types_map=_response_types_map,
|
|
1227
|
+
)
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
@validate_call
|
|
1231
|
+
def snapshot_state_updated_post_without_preload_content(
|
|
1232
|
+
self,
|
|
1233
|
+
snapshot_state_updated_post_request: = None,
|
|
1234
|
+
_request_timeout: Union[
|
|
1235
|
+
None,
|
|
1236
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1237
|
+
Tuple[
|
|
1238
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1239
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1240
|
+
]
|
|
1241
|
+
] = None,
|
|
1242
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1243
|
+
_content_type: Optional[StrictStr] = None,
|
|
1244
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1245
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1246
|
+
) -> RESTResponseType:
|
|
1247
|
+
"""snapshot_state_updated_post
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
:param snapshot_state_updated_post_request: Snapshot state updated event
|
|
1251
|
+
:type snapshot_state_updated_post_request: SnapshotStateUpdatedPostRequest
|
|
1252
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1253
|
+
number provided, it will be total request
|
|
1254
|
+
timeout. It can also be a pair (tuple) of
|
|
1255
|
+
(connection, read) timeouts.
|
|
1256
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1257
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1258
|
+
request; this effectively ignores the
|
|
1259
|
+
authentication in the spec for a single request.
|
|
1260
|
+
:type _request_auth: dict, optional
|
|
1261
|
+
:param _content_type: force content-type for the request.
|
|
1262
|
+
:type _content_type: str, Optional
|
|
1263
|
+
:param _headers: set to override the headers for a single
|
|
1264
|
+
request; this effectively ignores the headers
|
|
1265
|
+
in the spec for a single request.
|
|
1266
|
+
:type _headers: dict, optional
|
|
1267
|
+
:param _host_index: set to override the host_index for a single
|
|
1268
|
+
request; this effectively ignores the host_index
|
|
1269
|
+
in the spec for a single request.
|
|
1270
|
+
:type _host_index: int, optional
|
|
1271
|
+
:return: Returns the result object.
|
|
1272
|
+
""" # noqa: E501
|
|
1273
|
+
|
|
1274
|
+
_param = self._snapshot_state_updated_post_serialize(
|
|
1275
|
+
snapshot_state_updated_post_request=snapshot_state_updated_post_request,
|
|
1276
|
+
_request_auth=_request_auth,
|
|
1277
|
+
_content_type=_content_type,
|
|
1278
|
+
_headers=_headers,
|
|
1279
|
+
_host_index=_host_index
|
|
1280
|
+
)
|
|
1281
|
+
|
|
1282
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1283
|
+
'200': None,
|
|
1284
|
+
}
|
|
1285
|
+
response_data = self.api_client.call_api(
|
|
1286
|
+
*_param,
|
|
1287
|
+
_request_timeout=_request_timeout
|
|
1288
|
+
)
|
|
1289
|
+
return response_data.response
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
def _snapshot_state_updated_post_serialize(
|
|
1293
|
+
self,
|
|
1294
|
+
snapshot_state_updated_post_request,
|
|
1295
|
+
_request_auth,
|
|
1296
|
+
_content_type,
|
|
1297
|
+
_headers,
|
|
1298
|
+
_host_index,
|
|
1299
|
+
) -> RequestSerialized:
|
|
1300
|
+
|
|
1301
|
+
_host = None
|
|
1302
|
+
|
|
1303
|
+
_collection_formats: Dict[str, str] = {
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
_path_params: Dict[str, str] = {}
|
|
1307
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1308
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1309
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1310
|
+
_files: Dict[
|
|
1311
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1312
|
+
] = {}
|
|
1313
|
+
_body_params: Optional[bytes] = None
|
|
1314
|
+
|
|
1315
|
+
# process the path parameters
|
|
1316
|
+
# process the query parameters
|
|
1317
|
+
# process the header parameters
|
|
1318
|
+
# process the form parameters
|
|
1319
|
+
# process the body parameter
|
|
1320
|
+
if snapshot_state_updated_post_request is not None:
|
|
1321
|
+
_body_params = snapshot_state_updated_post_request
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
# set the HTTP header `Content-Type`
|
|
1326
|
+
if _content_type:
|
|
1327
|
+
_header_params['Content-Type'] = _content_type
|
|
1328
|
+
else:
|
|
1329
|
+
_default_content_type = (
|
|
1330
|
+
self.api_client.select_header_content_type(
|
|
1331
|
+
[
|
|
1332
|
+
'application/json'
|
|
1333
|
+
]
|
|
1334
|
+
)
|
|
1335
|
+
)
|
|
1336
|
+
if _default_content_type is not None:
|
|
1337
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1338
|
+
|
|
1339
|
+
# authentication setting
|
|
1340
|
+
_auth_settings: List[str] = [
|
|
1341
|
+
]
|
|
1342
|
+
|
|
1343
|
+
return self.api_client.param_serialize(
|
|
1344
|
+
method='POST',
|
|
1345
|
+
resource_path='/snapshot.state.updated',
|
|
1346
|
+
path_params=_path_params,
|
|
1347
|
+
query_params=_query_params,
|
|
1348
|
+
header_params=_header_params,
|
|
1349
|
+
body=_body_params,
|
|
1350
|
+
post_params=_form_params,
|
|
1351
|
+
files=_files,
|
|
1352
|
+
auth_settings=_auth_settings,
|
|
1353
|
+
collection_formats=_collection_formats,
|
|
1354
|
+
_host=_host,
|
|
1355
|
+
_request_auth=_request_auth
|
|
1356
|
+
)
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
@validate_call
|
|
1362
|
+
def volume_created_post(
|
|
1363
|
+
self,
|
|
1364
|
+
volume_created_post_request: = None,
|
|
1365
|
+
_request_timeout: Union[
|
|
1366
|
+
None,
|
|
1367
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1368
|
+
Tuple[
|
|
1369
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1370
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1371
|
+
]
|
|
1372
|
+
] = None,
|
|
1373
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1374
|
+
_content_type: Optional[StrictStr] = None,
|
|
1375
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1376
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1377
|
+
) -> None:
|
|
1378
|
+
"""volume_created_post
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
:param volume_created_post_request: Volume created event
|
|
1382
|
+
:type volume_created_post_request: VolumeCreatedPostRequest
|
|
1383
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1384
|
+
number provided, it will be total request
|
|
1385
|
+
timeout. It can also be a pair (tuple) of
|
|
1386
|
+
(connection, read) timeouts.
|
|
1387
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1388
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1389
|
+
request; this effectively ignores the
|
|
1390
|
+
authentication in the spec for a single request.
|
|
1391
|
+
:type _request_auth: dict, optional
|
|
1392
|
+
:param _content_type: force content-type for the request.
|
|
1393
|
+
:type _content_type: str, Optional
|
|
1394
|
+
:param _headers: set to override the headers for a single
|
|
1395
|
+
request; this effectively ignores the headers
|
|
1396
|
+
in the spec for a single request.
|
|
1397
|
+
:type _headers: dict, optional
|
|
1398
|
+
:param _host_index: set to override the host_index for a single
|
|
1399
|
+
request; this effectively ignores the host_index
|
|
1400
|
+
in the spec for a single request.
|
|
1401
|
+
:type _host_index: int, optional
|
|
1402
|
+
:return: Returns the result object.
|
|
1403
|
+
""" # noqa: E501
|
|
1404
|
+
|
|
1405
|
+
_param = self._volume_created_post_serialize(
|
|
1406
|
+
volume_created_post_request=volume_created_post_request,
|
|
1407
|
+
_request_auth=_request_auth,
|
|
1408
|
+
_content_type=_content_type,
|
|
1409
|
+
_headers=_headers,
|
|
1410
|
+
_host_index=_host_index
|
|
1411
|
+
)
|
|
1412
|
+
|
|
1413
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1414
|
+
'200': None,
|
|
1415
|
+
}
|
|
1416
|
+
response_data = self.api_client.call_api(
|
|
1417
|
+
*_param,
|
|
1418
|
+
_request_timeout=_request_timeout
|
|
1419
|
+
)
|
|
1420
|
+
response_data.read()
|
|
1421
|
+
return self.api_client.response_deserialize(
|
|
1422
|
+
response_data=response_data,
|
|
1423
|
+
response_types_map=_response_types_map,
|
|
1424
|
+
).data
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
@validate_call
|
|
1428
|
+
def volume_created_post_with_http_info(
|
|
1429
|
+
self,
|
|
1430
|
+
volume_created_post_request: = None,
|
|
1431
|
+
_request_timeout: Union[
|
|
1432
|
+
None,
|
|
1433
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1434
|
+
Tuple[
|
|
1435
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1436
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1437
|
+
]
|
|
1438
|
+
] = None,
|
|
1439
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1440
|
+
_content_type: Optional[StrictStr] = None,
|
|
1441
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1442
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1443
|
+
) -> ApiResponse[None]:
|
|
1444
|
+
"""volume_created_post
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
:param volume_created_post_request: Volume created event
|
|
1448
|
+
:type volume_created_post_request: VolumeCreatedPostRequest
|
|
1449
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1450
|
+
number provided, it will be total request
|
|
1451
|
+
timeout. It can also be a pair (tuple) of
|
|
1452
|
+
(connection, read) timeouts.
|
|
1453
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1454
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1455
|
+
request; this effectively ignores the
|
|
1456
|
+
authentication in the spec for a single request.
|
|
1457
|
+
:type _request_auth: dict, optional
|
|
1458
|
+
:param _content_type: force content-type for the request.
|
|
1459
|
+
:type _content_type: str, Optional
|
|
1460
|
+
:param _headers: set to override the headers for a single
|
|
1461
|
+
request; this effectively ignores the headers
|
|
1462
|
+
in the spec for a single request.
|
|
1463
|
+
:type _headers: dict, optional
|
|
1464
|
+
:param _host_index: set to override the host_index for a single
|
|
1465
|
+
request; this effectively ignores the host_index
|
|
1466
|
+
in the spec for a single request.
|
|
1467
|
+
:type _host_index: int, optional
|
|
1468
|
+
:return: Returns the result object.
|
|
1469
|
+
""" # noqa: E501
|
|
1470
|
+
|
|
1471
|
+
_param = self._volume_created_post_serialize(
|
|
1472
|
+
volume_created_post_request=volume_created_post_request,
|
|
1473
|
+
_request_auth=_request_auth,
|
|
1474
|
+
_content_type=_content_type,
|
|
1475
|
+
_headers=_headers,
|
|
1476
|
+
_host_index=_host_index
|
|
1477
|
+
)
|
|
1478
|
+
|
|
1479
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1480
|
+
'200': None,
|
|
1481
|
+
}
|
|
1482
|
+
response_data = self.api_client.call_api(
|
|
1483
|
+
*_param,
|
|
1484
|
+
_request_timeout=_request_timeout
|
|
1485
|
+
)
|
|
1486
|
+
response_data.read()
|
|
1487
|
+
return self.api_client.response_deserialize(
|
|
1488
|
+
response_data=response_data,
|
|
1489
|
+
response_types_map=_response_types_map,
|
|
1490
|
+
)
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
@validate_call
|
|
1494
|
+
def volume_created_post_without_preload_content(
|
|
1495
|
+
self,
|
|
1496
|
+
volume_created_post_request: = None,
|
|
1497
|
+
_request_timeout: Union[
|
|
1498
|
+
None,
|
|
1499
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1500
|
+
Tuple[
|
|
1501
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1502
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1503
|
+
]
|
|
1504
|
+
] = None,
|
|
1505
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1506
|
+
_content_type: Optional[StrictStr] = None,
|
|
1507
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1508
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1509
|
+
) -> RESTResponseType:
|
|
1510
|
+
"""volume_created_post
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
:param volume_created_post_request: Volume created event
|
|
1514
|
+
:type volume_created_post_request: VolumeCreatedPostRequest
|
|
1515
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1516
|
+
number provided, it will be total request
|
|
1517
|
+
timeout. It can also be a pair (tuple) of
|
|
1518
|
+
(connection, read) timeouts.
|
|
1519
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1520
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1521
|
+
request; this effectively ignores the
|
|
1522
|
+
authentication in the spec for a single request.
|
|
1523
|
+
:type _request_auth: dict, optional
|
|
1524
|
+
:param _content_type: force content-type for the request.
|
|
1525
|
+
:type _content_type: str, Optional
|
|
1526
|
+
:param _headers: set to override the headers for a single
|
|
1527
|
+
request; this effectively ignores the headers
|
|
1528
|
+
in the spec for a single request.
|
|
1529
|
+
:type _headers: dict, optional
|
|
1530
|
+
:param _host_index: set to override the host_index for a single
|
|
1531
|
+
request; this effectively ignores the host_index
|
|
1532
|
+
in the spec for a single request.
|
|
1533
|
+
:type _host_index: int, optional
|
|
1534
|
+
:return: Returns the result object.
|
|
1535
|
+
""" # noqa: E501
|
|
1536
|
+
|
|
1537
|
+
_param = self._volume_created_post_serialize(
|
|
1538
|
+
volume_created_post_request=volume_created_post_request,
|
|
1539
|
+
_request_auth=_request_auth,
|
|
1540
|
+
_content_type=_content_type,
|
|
1541
|
+
_headers=_headers,
|
|
1542
|
+
_host_index=_host_index
|
|
1543
|
+
)
|
|
1544
|
+
|
|
1545
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1546
|
+
'200': None,
|
|
1547
|
+
}
|
|
1548
|
+
response_data = self.api_client.call_api(
|
|
1549
|
+
*_param,
|
|
1550
|
+
_request_timeout=_request_timeout
|
|
1551
|
+
)
|
|
1552
|
+
return response_data.response
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
def _volume_created_post_serialize(
|
|
1556
|
+
self,
|
|
1557
|
+
volume_created_post_request,
|
|
1558
|
+
_request_auth,
|
|
1559
|
+
_content_type,
|
|
1560
|
+
_headers,
|
|
1561
|
+
_host_index,
|
|
1562
|
+
) -> RequestSerialized:
|
|
1563
|
+
|
|
1564
|
+
_host = None
|
|
1565
|
+
|
|
1566
|
+
_collection_formats: Dict[str, str] = {
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
_path_params: Dict[str, str] = {}
|
|
1570
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1571
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1572
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1573
|
+
_files: Dict[
|
|
1574
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1575
|
+
] = {}
|
|
1576
|
+
_body_params: Optional[bytes] = None
|
|
1577
|
+
|
|
1578
|
+
# process the path parameters
|
|
1579
|
+
# process the query parameters
|
|
1580
|
+
# process the header parameters
|
|
1581
|
+
# process the form parameters
|
|
1582
|
+
# process the body parameter
|
|
1583
|
+
if volume_created_post_request is not None:
|
|
1584
|
+
_body_params = volume_created_post_request
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
# set the HTTP header `Content-Type`
|
|
1589
|
+
if _content_type:
|
|
1590
|
+
_header_params['Content-Type'] = _content_type
|
|
1591
|
+
else:
|
|
1592
|
+
_default_content_type = (
|
|
1593
|
+
self.api_client.select_header_content_type(
|
|
1594
|
+
[
|
|
1595
|
+
'application/json'
|
|
1596
|
+
]
|
|
1597
|
+
)
|
|
1598
|
+
)
|
|
1599
|
+
if _default_content_type is not None:
|
|
1600
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1601
|
+
|
|
1602
|
+
# authentication setting
|
|
1603
|
+
_auth_settings: List[str] = [
|
|
1604
|
+
]
|
|
1605
|
+
|
|
1606
|
+
return self.api_client.param_serialize(
|
|
1607
|
+
method='POST',
|
|
1608
|
+
resource_path='/volume.created',
|
|
1609
|
+
path_params=_path_params,
|
|
1610
|
+
query_params=_query_params,
|
|
1611
|
+
header_params=_header_params,
|
|
1612
|
+
body=_body_params,
|
|
1613
|
+
post_params=_form_params,
|
|
1614
|
+
files=_files,
|
|
1615
|
+
auth_settings=_auth_settings,
|
|
1616
|
+
collection_formats=_collection_formats,
|
|
1617
|
+
_host=_host,
|
|
1618
|
+
_request_auth=_request_auth
|
|
1619
|
+
)
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
|
|
1623
|
+
|
|
1624
|
+
@validate_call
|
|
1625
|
+
def volume_state_updated_post(
|
|
1626
|
+
self,
|
|
1627
|
+
volume_state_updated_post_request: = None,
|
|
1628
|
+
_request_timeout: Union[
|
|
1629
|
+
None,
|
|
1630
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1631
|
+
Tuple[
|
|
1632
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1633
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1634
|
+
]
|
|
1635
|
+
] = None,
|
|
1636
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1637
|
+
_content_type: Optional[StrictStr] = None,
|
|
1638
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1639
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1640
|
+
) -> None:
|
|
1641
|
+
"""volume_state_updated_post
|
|
1642
|
+
|
|
1643
|
+
|
|
1644
|
+
:param volume_state_updated_post_request: Volume state updated event
|
|
1645
|
+
:type volume_state_updated_post_request: VolumeStateUpdatedPostRequest
|
|
1646
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1647
|
+
number provided, it will be total request
|
|
1648
|
+
timeout. It can also be a pair (tuple) of
|
|
1649
|
+
(connection, read) timeouts.
|
|
1650
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1651
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1652
|
+
request; this effectively ignores the
|
|
1653
|
+
authentication in the spec for a single request.
|
|
1654
|
+
:type _request_auth: dict, optional
|
|
1655
|
+
:param _content_type: force content-type for the request.
|
|
1656
|
+
:type _content_type: str, Optional
|
|
1657
|
+
:param _headers: set to override the headers for a single
|
|
1658
|
+
request; this effectively ignores the headers
|
|
1659
|
+
in the spec for a single request.
|
|
1660
|
+
:type _headers: dict, optional
|
|
1661
|
+
:param _host_index: set to override the host_index for a single
|
|
1662
|
+
request; this effectively ignores the host_index
|
|
1663
|
+
in the spec for a single request.
|
|
1664
|
+
:type _host_index: int, optional
|
|
1665
|
+
:return: Returns the result object.
|
|
1666
|
+
""" # noqa: E501
|
|
1667
|
+
|
|
1668
|
+
_param = self._volume_state_updated_post_serialize(
|
|
1669
|
+
volume_state_updated_post_request=volume_state_updated_post_request,
|
|
1670
|
+
_request_auth=_request_auth,
|
|
1671
|
+
_content_type=_content_type,
|
|
1672
|
+
_headers=_headers,
|
|
1673
|
+
_host_index=_host_index
|
|
1674
|
+
)
|
|
1675
|
+
|
|
1676
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1677
|
+
'200': None,
|
|
1678
|
+
}
|
|
1679
|
+
response_data = self.api_client.call_api(
|
|
1680
|
+
*_param,
|
|
1681
|
+
_request_timeout=_request_timeout
|
|
1682
|
+
)
|
|
1683
|
+
response_data.read()
|
|
1684
|
+
return self.api_client.response_deserialize(
|
|
1685
|
+
response_data=response_data,
|
|
1686
|
+
response_types_map=_response_types_map,
|
|
1687
|
+
).data
|
|
1688
|
+
|
|
1689
|
+
|
|
1690
|
+
@validate_call
|
|
1691
|
+
def volume_state_updated_post_with_http_info(
|
|
1692
|
+
self,
|
|
1693
|
+
volume_state_updated_post_request: = None,
|
|
1694
|
+
_request_timeout: Union[
|
|
1695
|
+
None,
|
|
1696
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1697
|
+
Tuple[
|
|
1698
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1699
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1700
|
+
]
|
|
1701
|
+
] = None,
|
|
1702
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1703
|
+
_content_type: Optional[StrictStr] = None,
|
|
1704
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1705
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1706
|
+
) -> ApiResponse[None]:
|
|
1707
|
+
"""volume_state_updated_post
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
:param volume_state_updated_post_request: Volume state updated event
|
|
1711
|
+
:type volume_state_updated_post_request: VolumeStateUpdatedPostRequest
|
|
1712
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1713
|
+
number provided, it will be total request
|
|
1714
|
+
timeout. It can also be a pair (tuple) of
|
|
1715
|
+
(connection, read) timeouts.
|
|
1716
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1717
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1718
|
+
request; this effectively ignores the
|
|
1719
|
+
authentication in the spec for a single request.
|
|
1720
|
+
:type _request_auth: dict, optional
|
|
1721
|
+
:param _content_type: force content-type for the request.
|
|
1722
|
+
:type _content_type: str, Optional
|
|
1723
|
+
:param _headers: set to override the headers for a single
|
|
1724
|
+
request; this effectively ignores the headers
|
|
1725
|
+
in the spec for a single request.
|
|
1726
|
+
:type _headers: dict, optional
|
|
1727
|
+
:param _host_index: set to override the host_index for a single
|
|
1728
|
+
request; this effectively ignores the host_index
|
|
1729
|
+
in the spec for a single request.
|
|
1730
|
+
:type _host_index: int, optional
|
|
1731
|
+
:return: Returns the result object.
|
|
1732
|
+
""" # noqa: E501
|
|
1733
|
+
|
|
1734
|
+
_param = self._volume_state_updated_post_serialize(
|
|
1735
|
+
volume_state_updated_post_request=volume_state_updated_post_request,
|
|
1736
|
+
_request_auth=_request_auth,
|
|
1737
|
+
_content_type=_content_type,
|
|
1738
|
+
_headers=_headers,
|
|
1739
|
+
_host_index=_host_index
|
|
1740
|
+
)
|
|
1741
|
+
|
|
1742
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1743
|
+
'200': None,
|
|
1744
|
+
}
|
|
1745
|
+
response_data = self.api_client.call_api(
|
|
1746
|
+
*_param,
|
|
1747
|
+
_request_timeout=_request_timeout
|
|
1748
|
+
)
|
|
1749
|
+
response_data.read()
|
|
1750
|
+
return self.api_client.response_deserialize(
|
|
1751
|
+
response_data=response_data,
|
|
1752
|
+
response_types_map=_response_types_map,
|
|
1753
|
+
)
|
|
1754
|
+
|
|
1755
|
+
|
|
1756
|
+
@validate_call
|
|
1757
|
+
def volume_state_updated_post_without_preload_content(
|
|
1758
|
+
self,
|
|
1759
|
+
volume_state_updated_post_request: = None,
|
|
1760
|
+
_request_timeout: Union[
|
|
1761
|
+
None,
|
|
1762
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1763
|
+
Tuple[
|
|
1764
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1765
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1766
|
+
]
|
|
1767
|
+
] = None,
|
|
1768
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1769
|
+
_content_type: Optional[StrictStr] = None,
|
|
1770
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1771
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1772
|
+
) -> RESTResponseType:
|
|
1773
|
+
"""volume_state_updated_post
|
|
1774
|
+
|
|
1775
|
+
|
|
1776
|
+
:param volume_state_updated_post_request: Volume state updated event
|
|
1777
|
+
:type volume_state_updated_post_request: VolumeStateUpdatedPostRequest
|
|
1778
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1779
|
+
number provided, it will be total request
|
|
1780
|
+
timeout. It can also be a pair (tuple) of
|
|
1781
|
+
(connection, read) timeouts.
|
|
1782
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1783
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1784
|
+
request; this effectively ignores the
|
|
1785
|
+
authentication in the spec for a single request.
|
|
1786
|
+
:type _request_auth: dict, optional
|
|
1787
|
+
:param _content_type: force content-type for the request.
|
|
1788
|
+
:type _content_type: str, Optional
|
|
1789
|
+
:param _headers: set to override the headers for a single
|
|
1790
|
+
request; this effectively ignores the headers
|
|
1791
|
+
in the spec for a single request.
|
|
1792
|
+
:type _headers: dict, optional
|
|
1793
|
+
:param _host_index: set to override the host_index for a single
|
|
1794
|
+
request; this effectively ignores the host_index
|
|
1795
|
+
in the spec for a single request.
|
|
1796
|
+
:type _host_index: int, optional
|
|
1797
|
+
:return: Returns the result object.
|
|
1798
|
+
""" # noqa: E501
|
|
1799
|
+
|
|
1800
|
+
_param = self._volume_state_updated_post_serialize(
|
|
1801
|
+
volume_state_updated_post_request=volume_state_updated_post_request,
|
|
1802
|
+
_request_auth=_request_auth,
|
|
1803
|
+
_content_type=_content_type,
|
|
1804
|
+
_headers=_headers,
|
|
1805
|
+
_host_index=_host_index
|
|
1806
|
+
)
|
|
1807
|
+
|
|
1808
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1809
|
+
'200': None,
|
|
1810
|
+
}
|
|
1811
|
+
response_data = self.api_client.call_api(
|
|
1812
|
+
*_param,
|
|
1813
|
+
_request_timeout=_request_timeout
|
|
1814
|
+
)
|
|
1815
|
+
return response_data.response
|
|
1816
|
+
|
|
1817
|
+
|
|
1818
|
+
def _volume_state_updated_post_serialize(
|
|
1819
|
+
self,
|
|
1820
|
+
volume_state_updated_post_request,
|
|
1821
|
+
_request_auth,
|
|
1822
|
+
_content_type,
|
|
1823
|
+
_headers,
|
|
1824
|
+
_host_index,
|
|
1825
|
+
) -> RequestSerialized:
|
|
1826
|
+
|
|
1827
|
+
_host = None
|
|
1828
|
+
|
|
1829
|
+
_collection_formats: Dict[str, str] = {
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
_path_params: Dict[str, str] = {}
|
|
1833
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1834
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1835
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1836
|
+
_files: Dict[
|
|
1837
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1838
|
+
] = {}
|
|
1839
|
+
_body_params: Optional[bytes] = None
|
|
1840
|
+
|
|
1841
|
+
# process the path parameters
|
|
1842
|
+
# process the query parameters
|
|
1843
|
+
# process the header parameters
|
|
1844
|
+
# process the form parameters
|
|
1845
|
+
# process the body parameter
|
|
1846
|
+
if volume_state_updated_post_request is not None:
|
|
1847
|
+
_body_params = volume_state_updated_post_request
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
# set the HTTP header `Content-Type`
|
|
1852
|
+
if _content_type:
|
|
1853
|
+
_header_params['Content-Type'] = _content_type
|
|
1854
|
+
else:
|
|
1855
|
+
_default_content_type = (
|
|
1856
|
+
self.api_client.select_header_content_type(
|
|
1857
|
+
[
|
|
1858
|
+
'application/json'
|
|
1859
|
+
]
|
|
1860
|
+
)
|
|
1861
|
+
)
|
|
1862
|
+
if _default_content_type is not None:
|
|
1863
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1864
|
+
|
|
1865
|
+
# authentication setting
|
|
1866
|
+
_auth_settings: List[str] = [
|
|
1867
|
+
]
|
|
1868
|
+
|
|
1869
|
+
return self.api_client.param_serialize(
|
|
1870
|
+
method='POST',
|
|
1871
|
+
resource_path='/volume.state.updated',
|
|
1872
|
+
path_params=_path_params,
|
|
1873
|
+
query_params=_query_params,
|
|
1874
|
+
header_params=_header_params,
|
|
1875
|
+
body=_body_params,
|
|
1876
|
+
post_params=_form_params,
|
|
1877
|
+
files=_files,
|
|
1878
|
+
auth_settings=_auth_settings,
|
|
1879
|
+
collection_formats=_collection_formats,
|
|
1880
|
+
_host=_host,
|
|
1881
|
+
_request_auth=_request_auth
|
|
1882
|
+
)
|
|
1883
|
+
|
|
1884
|
+
|