hyperstack 1.43.0a0__py3-none-any.whl → 1.46.1a0__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 (47) hide show
  1. hyperstack/__init__.py +7 -2
  2. hyperstack/api/__init__.py +2 -1
  3. hyperstack/api/alive_api.py +10 -10
  4. hyperstack/api/api_key_api.py +7 -7
  5. hyperstack/api/auth_api.py +69 -69
  6. hyperstack/api/beta_access_api.py +50 -50
  7. hyperstack/api/billing_api.py +1659 -1659
  8. hyperstack/api/calculate_api.py +7 -7
  9. hyperstack/api/callbacks_api.py +21 -21
  10. hyperstack/api/cluster_events_api.py +7 -7
  11. hyperstack/api/clusters_api.py +669 -370
  12. hyperstack/api/compliance_api.py +21 -21
  13. hyperstack/api/credit_api.py +7 -7
  14. hyperstack/api/customer_contract_api.py +139 -139
  15. hyperstack/api/dashboard_api.py +7 -7
  16. hyperstack/api/deployment_api.py +7 -7
  17. hyperstack/api/environment_api.py +107 -107
  18. hyperstack/api/{admin_api.py → fip_exclusions_api.py} +44 -28
  19. hyperstack/api/firewall_attachment_api.py +7 -7
  20. hyperstack/api/firewalls_api.py +145 -145
  21. hyperstack/api/floating_ip_api.py +14 -14
  22. hyperstack/api/image_api.py +14 -14
  23. hyperstack/api/payment_api.py +102 -102
  24. hyperstack/api/profile_api.py +56 -56
  25. hyperstack/api/snapshot_events_api.py +7 -7
  26. hyperstack/api/snapshots_api.py +167 -167
  27. hyperstack/api/stock_api.py +7 -7
  28. hyperstack/api/template_api.py +76 -76
  29. hyperstack/api/user_api.py +76 -76
  30. hyperstack/api/user_detail_choice_api.py +10 -10
  31. hyperstack/api/virtual_machine_api.py +799 -782
  32. hyperstack/api/virtual_machine_events_api.py +7 -7
  33. hyperstack/api/vnc_url_api.py +53 -53
  34. hyperstack/api/volume_api.py +77 -77
  35. hyperstack/api/volume_attachment_api.py +21 -21
  36. hyperstack/api/vouchers_api.py +326 -0
  37. hyperstack/api_client.py +1 -1
  38. hyperstack/configuration.py +1 -1
  39. hyperstack/models/__init__.py +4 -0
  40. hyperstack/models/delete_cluster_nodes_fields.py +87 -0
  41. hyperstack/models/redeem_voucher_payload.py +87 -0
  42. hyperstack/models/voucher.py +91 -0
  43. hyperstack/models/voucher_redeem_response_schema.py +95 -0
  44. {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/METADATA +1 -1
  45. {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/RECORD +47 -42
  46. {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/WHEEL +0 -0
  47. {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/top_level.txt +0 -0
@@ -16,14 +16,15 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from ..models.common_response_model import CommonResponseModel
19
+ from pydantic import StrictInt
20
+ from ..models.response_model import ResponseModel
20
21
 
21
22
  from ..api_client import ApiClient, RequestSerialized
22
23
  from ..api_response import ApiResponse
23
24
  from ..rest import RESTResponseType
24
25
 
25
26
 
26
- class AdminApi:
27
+ class FIPExclusionsApi:
27
28
  """NOTE: This class is auto generated by OpenAPI Generator
28
29
  Ref: https://openapi-generator.tech
29
30
 
@@ -37,8 +38,9 @@ class AdminApi:
37
38
 
38
39
 
39
40
  @validate_call
40
- def send_password_change_notification_email(
41
+ def check_if_org_is_excluded_from_floating_ip_detachment(
41
42
  self,
43
+ org_id: StrictInt,
42
44
  _request_timeout: Union[
43
45
  None,
44
46
  Annotated[StrictFloat, Field(gt=0)],
@@ -51,11 +53,13 @@ class AdminApi:
51
53
  _content_type: Optional[StrictStr] = None,
52
54
  _headers: Optional[Dict[StrictStr, Any]] = None,
53
55
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
54
- ) -> CommonResponseModel:
55
- """Send Password Change Notification Email
56
+ ) -> ResponseModel:
57
+ """check_if_org_is_excluded_from_floating_ip_detachment
56
58
 
57
- Send a password change notification email to a user
59
+ is org excluded from floating ip detachment
58
60
 
61
+ :param org_id: (required)
62
+ :type org_id: int
59
63
  :param _request_timeout: timeout setting for this request. If one
60
64
  number provided, it will be total request
61
65
  timeout. It can also be a pair (tuple) of
@@ -78,7 +82,8 @@ class AdminApi:
78
82
  :return: Returns the result object.
79
83
  """ # noqa: E501
80
84
 
81
- _param = self._send_password_change_notification_email_serialize(
85
+ _param = self._check_if_org_is_excluded_from_floating_ip_detachment_serialize(
86
+ org_id=org_id,
82
87
  _request_auth=_request_auth,
83
88
  _content_type=_content_type,
84
89
  _headers=_headers,
@@ -86,12 +91,12 @@ class AdminApi:
86
91
  )
87
92
 
88
93
  _response_types_map: Dict[str, Optional[str]] = {
89
- '200': "CommonResponseModel",
94
+ '200': "ResponseModel",
90
95
  '400': "ErrorResponseModel",
91
96
  '401': "ErrorResponseModel",
97
+ '403': "ErrorResponseModel",
92
98
  '404': "ErrorResponseModel",
93
- '405': "ErrorResponseModel",
94
- '500': "ErrorResponseModel",
99
+ '500': None,
95
100
  }
96
101
  response_data = self.api_client.call_api(
97
102
  *_param,
@@ -105,8 +110,9 @@ class AdminApi:
105
110
 
106
111
 
107
112
  @validate_call
108
- def send_password_change_notification_email_with_http_info(
113
+ def check_if_org_is_excluded_from_floating_ip_detachment_with_http_info(
109
114
  self,
115
+ org_id: StrictInt,
110
116
  _request_timeout: Union[
111
117
  None,
112
118
  Annotated[StrictFloat, Field(gt=0)],
@@ -119,11 +125,13 @@ class AdminApi:
119
125
  _content_type: Optional[StrictStr] = None,
120
126
  _headers: Optional[Dict[StrictStr, Any]] = None,
121
127
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
122
- ) -> ApiResponse[CommonResponseModel]:
123
- """Send Password Change Notification Email
128
+ ) -> ApiResponse[ResponseModel]:
129
+ """check_if_org_is_excluded_from_floating_ip_detachment
124
130
 
125
- Send a password change notification email to a user
131
+ is org excluded from floating ip detachment
126
132
 
133
+ :param org_id: (required)
134
+ :type org_id: int
127
135
  :param _request_timeout: timeout setting for this request. If one
128
136
  number provided, it will be total request
129
137
  timeout. It can also be a pair (tuple) of
@@ -146,7 +154,8 @@ class AdminApi:
146
154
  :return: Returns the result object.
147
155
  """ # noqa: E501
148
156
 
149
- _param = self._send_password_change_notification_email_serialize(
157
+ _param = self._check_if_org_is_excluded_from_floating_ip_detachment_serialize(
158
+ org_id=org_id,
150
159
  _request_auth=_request_auth,
151
160
  _content_type=_content_type,
152
161
  _headers=_headers,
@@ -154,12 +163,12 @@ class AdminApi:
154
163
  )
155
164
 
156
165
  _response_types_map: Dict[str, Optional[str]] = {
157
- '200': "CommonResponseModel",
166
+ '200': "ResponseModel",
158
167
  '400': "ErrorResponseModel",
159
168
  '401': "ErrorResponseModel",
169
+ '403': "ErrorResponseModel",
160
170
  '404': "ErrorResponseModel",
161
- '405': "ErrorResponseModel",
162
- '500': "ErrorResponseModel",
171
+ '500': None,
163
172
  }
164
173
  response_data = self.api_client.call_api(
165
174
  *_param,
@@ -173,8 +182,9 @@ class AdminApi:
173
182
 
174
183
 
175
184
  @validate_call
176
- def send_password_change_notification_email_without_preload_content(
185
+ def check_if_org_is_excluded_from_floating_ip_detachment_without_preload_content(
177
186
  self,
187
+ org_id: StrictInt,
178
188
  _request_timeout: Union[
179
189
  None,
180
190
  Annotated[StrictFloat, Field(gt=0)],
@@ -188,10 +198,12 @@ class AdminApi:
188
198
  _headers: Optional[Dict[StrictStr, Any]] = None,
189
199
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
190
200
  ) -> RESTResponseType:
191
- """Send Password Change Notification Email
201
+ """check_if_org_is_excluded_from_floating_ip_detachment
192
202
 
193
- Send a password change notification email to a user
203
+ is org excluded from floating ip detachment
194
204
 
205
+ :param org_id: (required)
206
+ :type org_id: int
195
207
  :param _request_timeout: timeout setting for this request. If one
196
208
  number provided, it will be total request
197
209
  timeout. It can also be a pair (tuple) of
@@ -214,7 +226,8 @@ class AdminApi:
214
226
  :return: Returns the result object.
215
227
  """ # noqa: E501
216
228
 
217
- _param = self._send_password_change_notification_email_serialize(
229
+ _param = self._check_if_org_is_excluded_from_floating_ip_detachment_serialize(
230
+ org_id=org_id,
218
231
  _request_auth=_request_auth,
219
232
  _content_type=_content_type,
220
233
  _headers=_headers,
@@ -222,12 +235,12 @@ class AdminApi:
222
235
  )
223
236
 
224
237
  _response_types_map: Dict[str, Optional[str]] = {
225
- '200': "CommonResponseModel",
238
+ '200': "ResponseModel",
226
239
  '400': "ErrorResponseModel",
227
240
  '401': "ErrorResponseModel",
241
+ '403': "ErrorResponseModel",
228
242
  '404': "ErrorResponseModel",
229
- '405': "ErrorResponseModel",
230
- '500': "ErrorResponseModel",
243
+ '500': None,
231
244
  }
232
245
  response_data = self.api_client.call_api(
233
246
  *_param,
@@ -236,8 +249,9 @@ class AdminApi:
236
249
  return response_data.response
237
250
 
238
251
 
239
- def _send_password_change_notification_email_serialize(
252
+ def _check_if_org_is_excluded_from_floating_ip_detachment_serialize(
240
253
  self,
254
+ org_id,
241
255
  _request_auth,
242
256
  _content_type,
243
257
  _headers,
@@ -259,6 +273,8 @@ class AdminApi:
259
273
  _body_params: Optional[bytes] = None
260
274
 
261
275
  # process the path parameters
276
+ if org_id is not None:
277
+ _path_params['org_id'] = org_id
262
278
  # process the query parameters
263
279
  # process the header parameters
264
280
  # process the form parameters
@@ -280,8 +296,8 @@ class AdminApi:
280
296
  ]
281
297
 
282
298
  return self.api_client.param_serialize(
283
- method='POST',
284
- resource_path='/auth/admin/password-change-mail',
299
+ method='GET',
300
+ resource_path='/core/fip-detachment-exclusions/org/{org_id}',
285
301
  path_params=_path_params,
286
302
  query_params=_query_params,
287
303
  header_params=_header_params,
@@ -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,