hyperstack 1.45.2a0__py3-none-any.whl → 1.46.2a0__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.
Files changed (41) hide show
  1. hyperstack/__init__.py +2 -1
  2. hyperstack/api/__init__.py +1 -0
  3. hyperstack/api/alive_api.py +10 -10
  4. hyperstack/api/api_key_api.py +7 -7
  5. hyperstack/api/beta_access_api.py +50 -50
  6. hyperstack/api/billing_api.py +1659 -1659
  7. hyperstack/api/calculate_api.py +7 -7
  8. hyperstack/api/callbacks_api.py +21 -21
  9. hyperstack/api/cluster_events_api.py +7 -7
  10. hyperstack/api/clusters_api.py +445 -445
  11. hyperstack/api/compliance_api.py +21 -21
  12. hyperstack/api/credit_api.py +7 -7
  13. hyperstack/api/customer_contract_api.py +139 -139
  14. hyperstack/api/dashboard_api.py +7 -7
  15. hyperstack/api/deployment_api.py +7 -7
  16. hyperstack/api/environment_api.py +107 -107
  17. hyperstack/api/fip_exclusions_api.py +313 -0
  18. hyperstack/api/firewall_attachment_api.py +7 -7
  19. hyperstack/api/firewalls_api.py +145 -145
  20. hyperstack/api/floating_ip_api.py +14 -14
  21. hyperstack/api/image_api.py +14 -14
  22. hyperstack/api/payment_api.py +102 -102
  23. hyperstack/api/profile_api.py +56 -56
  24. hyperstack/api/snapshot_events_api.py +7 -7
  25. hyperstack/api/snapshots_api.py +167 -167
  26. hyperstack/api/stock_api.py +7 -7
  27. hyperstack/api/template_api.py +76 -76
  28. hyperstack/api/user_api.py +76 -76
  29. hyperstack/api/user_detail_choice_api.py +10 -10
  30. hyperstack/api/virtual_machine_api.py +799 -782
  31. hyperstack/api/virtual_machine_events_api.py +7 -7
  32. hyperstack/api/vnc_url_api.py +53 -53
  33. hyperstack/api/volume_api.py +77 -77
  34. hyperstack/api/volume_attachment_api.py +21 -21
  35. hyperstack/api_client.py +1 -1
  36. hyperstack/configuration.py +1 -1
  37. hyperstack/models/generate_update_api_key_payload.py +3 -2
  38. {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.2a0.dist-info}/METADATA +1 -1
  39. {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.2a0.dist-info}/RECORD +41 -40
  40. {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.2a0.dist-info}/WHEEL +0 -0
  41. {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.2a0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,313 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Infrahub-API
5
+
6
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import StrictInt
20
+ from ..models.response_model import ResponseModel
21
+
22
+ from ..api_client import ApiClient, RequestSerialized
23
+ from ..api_response import ApiResponse
24
+ from ..rest import RESTResponseType
25
+
26
+
27
+ class FIPExclusionsApi:
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None) -> None:
35
+ if api_client is None:
36
+ api_client = ApiClient.get_default()
37
+ self.api_client = api_client
38
+
39
+
40
+ @validate_call
41
+ def check_if_org_is_excluded_from_floating_ip_detachment(
42
+ self,
43
+ org_id: StrictInt,
44
+ _request_timeout: Union[
45
+ None,
46
+ Annotated[StrictFloat, Field(gt=0)],
47
+ Tuple[
48
+ Annotated[StrictFloat, Field(gt=0)],
49
+ Annotated[StrictFloat, Field(gt=0)]
50
+ ]
51
+ ] = None,
52
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
53
+ _content_type: Optional[StrictStr] = None,
54
+ _headers: Optional[Dict[StrictStr, Any]] = None,
55
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
56
+ ) -> ResponseModel:
57
+ """check_if_org_is_excluded_from_floating_ip_detachment
58
+
59
+ is org excluded from floating ip detachment
60
+
61
+ :param org_id: (required)
62
+ :type org_id: int
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._check_if_org_is_excluded_from_floating_ip_detachment_serialize(
86
+ org_id=org_id,
87
+ _request_auth=_request_auth,
88
+ _content_type=_content_type,
89
+ _headers=_headers,
90
+ _host_index=_host_index
91
+ )
92
+
93
+ _response_types_map: Dict[str, Optional[str]] = {
94
+ '200': "ResponseModel",
95
+ '400': "ErrorResponseModel",
96
+ '401': "ErrorResponseModel",
97
+ '403': "ErrorResponseModel",
98
+ '404': "ErrorResponseModel",
99
+ '500': 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 check_if_org_is_excluded_from_floating_ip_detachment_with_http_info(
114
+ self,
115
+ org_id: StrictInt,
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[ResponseModel]:
129
+ """check_if_org_is_excluded_from_floating_ip_detachment
130
+
131
+ is org excluded from floating ip detachment
132
+
133
+ :param org_id: (required)
134
+ :type org_id: int
135
+ :param _request_timeout: timeout setting for this request. If one
136
+ number provided, it will be total request
137
+ timeout. It can also be a pair (tuple) of
138
+ (connection, read) timeouts.
139
+ :type _request_timeout: int, tuple(int, int), optional
140
+ :param _request_auth: set to override the auth_settings for an a single
141
+ request; this effectively ignores the
142
+ authentication in the spec for a single request.
143
+ :type _request_auth: dict, optional
144
+ :param _content_type: force content-type for the request.
145
+ :type _content_type: str, Optional
146
+ :param _headers: set to override the headers for a single
147
+ request; this effectively ignores the headers
148
+ in the spec for a single request.
149
+ :type _headers: dict, optional
150
+ :param _host_index: set to override the host_index for a single
151
+ request; this effectively ignores the host_index
152
+ in the spec for a single request.
153
+ :type _host_index: int, optional
154
+ :return: Returns the result object.
155
+ """ # noqa: E501
156
+
157
+ _param = self._check_if_org_is_excluded_from_floating_ip_detachment_serialize(
158
+ org_id=org_id,
159
+ _request_auth=_request_auth,
160
+ _content_type=_content_type,
161
+ _headers=_headers,
162
+ _host_index=_host_index
163
+ )
164
+
165
+ _response_types_map: Dict[str, Optional[str]] = {
166
+ '200': "ResponseModel",
167
+ '400': "ErrorResponseModel",
168
+ '401': "ErrorResponseModel",
169
+ '403': "ErrorResponseModel",
170
+ '404': "ErrorResponseModel",
171
+ '500': None,
172
+ }
173
+ response_data = self.api_client.call_api(
174
+ *_param,
175
+ _request_timeout=_request_timeout
176
+ )
177
+ response_data.read()
178
+ return self.api_client.response_deserialize(
179
+ response_data=response_data,
180
+ response_types_map=_response_types_map,
181
+ )
182
+
183
+
184
+ @validate_call
185
+ def check_if_org_is_excluded_from_floating_ip_detachment_without_preload_content(
186
+ self,
187
+ org_id: StrictInt,
188
+ _request_timeout: Union[
189
+ None,
190
+ Annotated[StrictFloat, Field(gt=0)],
191
+ Tuple[
192
+ Annotated[StrictFloat, Field(gt=0)],
193
+ Annotated[StrictFloat, Field(gt=0)]
194
+ ]
195
+ ] = None,
196
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
197
+ _content_type: Optional[StrictStr] = None,
198
+ _headers: Optional[Dict[StrictStr, Any]] = None,
199
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
200
+ ) -> RESTResponseType:
201
+ """check_if_org_is_excluded_from_floating_ip_detachment
202
+
203
+ is org excluded from floating ip detachment
204
+
205
+ :param org_id: (required)
206
+ :type org_id: int
207
+ :param _request_timeout: timeout setting for this request. If one
208
+ number provided, it will be total request
209
+ timeout. It can also be a pair (tuple) of
210
+ (connection, read) timeouts.
211
+ :type _request_timeout: int, tuple(int, int), optional
212
+ :param _request_auth: set to override the auth_settings for an a single
213
+ request; this effectively ignores the
214
+ authentication in the spec for a single request.
215
+ :type _request_auth: dict, optional
216
+ :param _content_type: force content-type for the request.
217
+ :type _content_type: str, Optional
218
+ :param _headers: set to override the headers for a single
219
+ request; this effectively ignores the headers
220
+ in the spec for a single request.
221
+ :type _headers: dict, optional
222
+ :param _host_index: set to override the host_index for a single
223
+ request; this effectively ignores the host_index
224
+ in the spec for a single request.
225
+ :type _host_index: int, optional
226
+ :return: Returns the result object.
227
+ """ # noqa: E501
228
+
229
+ _param = self._check_if_org_is_excluded_from_floating_ip_detachment_serialize(
230
+ org_id=org_id,
231
+ _request_auth=_request_auth,
232
+ _content_type=_content_type,
233
+ _headers=_headers,
234
+ _host_index=_host_index
235
+ )
236
+
237
+ _response_types_map: Dict[str, Optional[str]] = {
238
+ '200': "ResponseModel",
239
+ '400': "ErrorResponseModel",
240
+ '401': "ErrorResponseModel",
241
+ '403': "ErrorResponseModel",
242
+ '404': "ErrorResponseModel",
243
+ '500': None,
244
+ }
245
+ response_data = self.api_client.call_api(
246
+ *_param,
247
+ _request_timeout=_request_timeout
248
+ )
249
+ return response_data.response
250
+
251
+
252
+ def _check_if_org_is_excluded_from_floating_ip_detachment_serialize(
253
+ self,
254
+ org_id,
255
+ _request_auth,
256
+ _content_type,
257
+ _headers,
258
+ _host_index,
259
+ ) -> RequestSerialized:
260
+
261
+ _host = None
262
+
263
+ _collection_formats: Dict[str, str] = {
264
+ }
265
+
266
+ _path_params: Dict[str, str] = {}
267
+ _query_params: List[Tuple[str, str]] = []
268
+ _header_params: Dict[str, Optional[str]] = _headers or {}
269
+ _form_params: List[Tuple[str, str]] = []
270
+ _files: Dict[
271
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
272
+ ] = {}
273
+ _body_params: Optional[bytes] = None
274
+
275
+ # process the path parameters
276
+ if org_id is not None:
277
+ _path_params['org_id'] = org_id
278
+ # process the query parameters
279
+ # process the header parameters
280
+ # process the form parameters
281
+ # process the body parameter
282
+
283
+
284
+ # set the HTTP header `Accept`
285
+ if 'Accept' not in _header_params:
286
+ _header_params['Accept'] = self.api_client.select_header_accept(
287
+ [
288
+ 'application/json'
289
+ ]
290
+ )
291
+
292
+
293
+ # authentication setting
294
+ _auth_settings: List[str] = [
295
+ 'apiKey'
296
+ ]
297
+
298
+ return self.api_client.param_serialize(
299
+ method='GET',
300
+ resource_path='/core/fip-detachment-exclusions/org/{org_id}',
301
+ path_params=_path_params,
302
+ query_params=_query_params,
303
+ header_params=_header_params,
304
+ body=_body_params,
305
+ post_params=_form_params,
306
+ files=_files,
307
+ auth_settings=_auth_settings,
308
+ collection_formats=_collection_formats,
309
+ _host=_host,
310
+ _request_auth=_request_auth
311
+ )
312
+
313
+
@@ -39,7 +39,7 @@ class FirewallAttachmentApi:
39
39
 
40
40
 
41
41
  @validate_call
42
- def attach_firewall_to_virtual_machines(
42
+ def attach_firewall_to_vms(
43
43
  self,
44
44
  firewall_id: StrictInt,
45
45
  payload: AttachFirewallWithVM,
@@ -86,7 +86,7 @@ class FirewallAttachmentApi:
86
86
  :return: Returns the result object.
87
87
  """ # noqa: E501
88
88
 
89
- _param = self._attach_firewall_to_virtual_machines_serialize(
89
+ _param = self._attach_firewall_to_vms_serialize(
90
90
  firewall_id=firewall_id,
91
91
  payload=payload,
92
92
  _request_auth=_request_auth,
@@ -116,7 +116,7 @@ class FirewallAttachmentApi:
116
116
 
117
117
 
118
118
  @validate_call
119
- def attach_firewall_to_virtual_machines_with_http_info(
119
+ def attach_firewall_to_vms_with_http_info(
120
120
  self,
121
121
  firewall_id: StrictInt,
122
122
  payload: AttachFirewallWithVM,
@@ -163,7 +163,7 @@ class FirewallAttachmentApi:
163
163
  :return: Returns the result object.
164
164
  """ # noqa: E501
165
165
 
166
- _param = self._attach_firewall_to_virtual_machines_serialize(
166
+ _param = self._attach_firewall_to_vms_serialize(
167
167
  firewall_id=firewall_id,
168
168
  payload=payload,
169
169
  _request_auth=_request_auth,
@@ -193,7 +193,7 @@ class FirewallAttachmentApi:
193
193
 
194
194
 
195
195
  @validate_call
196
- def attach_firewall_to_virtual_machines_without_preload_content(
196
+ def attach_firewall_to_vms_without_preload_content(
197
197
  self,
198
198
  firewall_id: StrictInt,
199
199
  payload: AttachFirewallWithVM,
@@ -240,7 +240,7 @@ class FirewallAttachmentApi:
240
240
  :return: Returns the result object.
241
241
  """ # noqa: E501
242
242
 
243
- _param = self._attach_firewall_to_virtual_machines_serialize(
243
+ _param = self._attach_firewall_to_vms_serialize(
244
244
  firewall_id=firewall_id,
245
245
  payload=payload,
246
246
  _request_auth=_request_auth,
@@ -265,7 +265,7 @@ class FirewallAttachmentApi:
265
265
  return response_data.response
266
266
 
267
267
 
268
- def _attach_firewall_to_virtual_machines_serialize(
268
+ def _attach_firewall_to_vms_serialize(
269
269
  self,
270
270
  firewall_id,
271
271
  payload,