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
@@ -38,7 +38,7 @@ class VirtualMachineEventsApi:
38
38
 
39
39
 
40
40
  @validate_call
41
- def list_virtual_machine_events(
41
+ def list_vm_events(
42
42
  self,
43
43
  vm_id: StrictInt,
44
44
  _request_timeout: Union[
@@ -82,7 +82,7 @@ class VirtualMachineEventsApi:
82
82
  :return: Returns the result object.
83
83
  """ # noqa: E501
84
84
 
85
- _param = self._list_virtual_machine_events_serialize(
85
+ _param = self._list_vm_events_serialize(
86
86
  vm_id=vm_id,
87
87
  _request_auth=_request_auth,
88
88
  _content_type=_content_type,
@@ -109,7 +109,7 @@ class VirtualMachineEventsApi:
109
109
 
110
110
 
111
111
  @validate_call
112
- def list_virtual_machine_events_with_http_info(
112
+ def list_vm_events_with_http_info(
113
113
  self,
114
114
  vm_id: StrictInt,
115
115
  _request_timeout: Union[
@@ -153,7 +153,7 @@ class VirtualMachineEventsApi:
153
153
  :return: Returns the result object.
154
154
  """ # noqa: E501
155
155
 
156
- _param = self._list_virtual_machine_events_serialize(
156
+ _param = self._list_vm_events_serialize(
157
157
  vm_id=vm_id,
158
158
  _request_auth=_request_auth,
159
159
  _content_type=_content_type,
@@ -180,7 +180,7 @@ class VirtualMachineEventsApi:
180
180
 
181
181
 
182
182
  @validate_call
183
- def list_virtual_machine_events_without_preload_content(
183
+ def list_vm_events_without_preload_content(
184
184
  self,
185
185
  vm_id: StrictInt,
186
186
  _request_timeout: Union[
@@ -224,7 +224,7 @@ class VirtualMachineEventsApi:
224
224
  :return: Returns the result object.
225
225
  """ # noqa: E501
226
226
 
227
- _param = self._list_virtual_machine_events_serialize(
227
+ _param = self._list_vm_events_serialize(
228
228
  vm_id=vm_id,
229
229
  _request_auth=_request_auth,
230
230
  _content_type=_content_type,
@@ -246,7 +246,7 @@ class VirtualMachineEventsApi:
246
246
  return response_data.response
247
247
 
248
248
 
249
- def _list_virtual_machine_events_serialize(
249
+ def _list_vm_events_serialize(
250
250
  self,
251
251
  vm_id,
252
252
  _request_auth,
@@ -39,9 +39,10 @@ class VncUrlApi:
39
39
 
40
40
 
41
41
  @validate_call
42
- def get_vnc_url(
42
+ def get_vncurl(
43
43
  self,
44
44
  vm_id: StrictInt,
45
+ job_id: StrictInt,
45
46
  _request_timeout: Union[
46
47
  None,
47
48
  Annotated[StrictFloat, Field(gt=0)],
@@ -54,13 +55,15 @@ class VncUrlApi:
54
55
  _content_type: Optional[StrictStr] = None,
55
56
  _headers: Optional[Dict[StrictStr, Any]] = None,
56
57
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
57
- ) -> RequestConsole:
58
- """Request Instance Console
58
+ ) -> VNCURL:
59
+ """Get VNC Console Link
59
60
 
60
- Retrieves the path of the VNC console for the given virtual machine ID by providing the virtual machine ID in the path. For more information, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-console-path).
61
+ Retrieves the URL to access the VNC console for a specified virtual machine by providing the virtual machine ID and the job ID in the path. For more information, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-vnc-url).
61
62
 
62
63
  :param vm_id: (required)
63
64
  :type vm_id: int
65
+ :param job_id: (required)
66
+ :type job_id: int
64
67
  :param _request_timeout: timeout setting for this request. If one
65
68
  number provided, it will be total request
66
69
  timeout. It can also be a pair (tuple) of
@@ -83,8 +86,9 @@ class VncUrlApi:
83
86
  :return: Returns the result object.
84
87
  """ # noqa: E501
85
88
 
86
- _param = self._get_vnc_url_serialize(
89
+ _param = self._get_vncurl_serialize(
87
90
  vm_id=vm_id,
91
+ job_id=job_id,
88
92
  _request_auth=_request_auth,
89
93
  _content_type=_content_type,
90
94
  _headers=_headers,
@@ -92,7 +96,7 @@ class VncUrlApi:
92
96
  )
93
97
 
94
98
  _response_types_map: Dict[str, Optional[str]] = {
95
- '200': "RequestConsole",
99
+ '200': "VNCURL",
96
100
  '400': "ErrorResponseModel",
97
101
  '401': "ErrorResponseModel",
98
102
  '404': "ErrorResponseModel",
@@ -110,9 +114,10 @@ class VncUrlApi:
110
114
 
111
115
 
112
116
  @validate_call
113
- def get_vnc_url_with_http_info(
117
+ def get_vncurl_with_http_info(
114
118
  self,
115
119
  vm_id: StrictInt,
120
+ job_id: StrictInt,
116
121
  _request_timeout: Union[
117
122
  None,
118
123
  Annotated[StrictFloat, Field(gt=0)],
@@ -125,13 +130,15 @@ class VncUrlApi:
125
130
  _content_type: Optional[StrictStr] = None,
126
131
  _headers: Optional[Dict[StrictStr, Any]] = None,
127
132
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
128
- ) -> ApiResponse[RequestConsole]:
129
- """Request Instance Console
133
+ ) -> ApiResponse[VNCURL]:
134
+ """Get VNC Console Link
130
135
 
131
- Retrieves the path of the VNC console for the given virtual machine ID by providing the virtual machine ID in the path. For more information, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-console-path).
136
+ Retrieves the URL to access the VNC console for a specified virtual machine by providing the virtual machine ID and the job ID in the path. For more information, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-vnc-url).
132
137
 
133
138
  :param vm_id: (required)
134
139
  :type vm_id: int
140
+ :param job_id: (required)
141
+ :type job_id: int
135
142
  :param _request_timeout: timeout setting for this request. If one
136
143
  number provided, it will be total request
137
144
  timeout. It can also be a pair (tuple) of
@@ -154,8 +161,9 @@ class VncUrlApi:
154
161
  :return: Returns the result object.
155
162
  """ # noqa: E501
156
163
 
157
- _param = self._get_vnc_url_serialize(
164
+ _param = self._get_vncurl_serialize(
158
165
  vm_id=vm_id,
166
+ job_id=job_id,
159
167
  _request_auth=_request_auth,
160
168
  _content_type=_content_type,
161
169
  _headers=_headers,
@@ -163,7 +171,7 @@ class VncUrlApi:
163
171
  )
164
172
 
165
173
  _response_types_map: Dict[str, Optional[str]] = {
166
- '200': "RequestConsole",
174
+ '200': "VNCURL",
167
175
  '400': "ErrorResponseModel",
168
176
  '401': "ErrorResponseModel",
169
177
  '404': "ErrorResponseModel",
@@ -181,9 +189,10 @@ class VncUrlApi:
181
189
 
182
190
 
183
191
  @validate_call
184
- def get_vnc_url_without_preload_content(
192
+ def get_vncurl_without_preload_content(
185
193
  self,
186
194
  vm_id: StrictInt,
195
+ job_id: StrictInt,
187
196
  _request_timeout: Union[
188
197
  None,
189
198
  Annotated[StrictFloat, Field(gt=0)],
@@ -197,12 +206,14 @@ class VncUrlApi:
197
206
  _headers: Optional[Dict[StrictStr, Any]] = None,
198
207
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
199
208
  ) -> RESTResponseType:
200
- """Request Instance Console
209
+ """Get VNC Console Link
201
210
 
202
- Retrieves the path of the VNC console for the given virtual machine ID by providing the virtual machine ID in the path. For more information, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-console-path).
211
+ Retrieves the URL to access the VNC console for a specified virtual machine by providing the virtual machine ID and the job ID in the path. For more information, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-vnc-url).
203
212
 
204
213
  :param vm_id: (required)
205
214
  :type vm_id: int
215
+ :param job_id: (required)
216
+ :type job_id: int
206
217
  :param _request_timeout: timeout setting for this request. If one
207
218
  number provided, it will be total request
208
219
  timeout. It can also be a pair (tuple) of
@@ -225,8 +236,9 @@ class VncUrlApi:
225
236
  :return: Returns the result object.
226
237
  """ # noqa: E501
227
238
 
228
- _param = self._get_vnc_url_serialize(
239
+ _param = self._get_vncurl_serialize(
229
240
  vm_id=vm_id,
241
+ job_id=job_id,
230
242
  _request_auth=_request_auth,
231
243
  _content_type=_content_type,
232
244
  _headers=_headers,
@@ -234,7 +246,7 @@ class VncUrlApi:
234
246
  )
235
247
 
236
248
  _response_types_map: Dict[str, Optional[str]] = {
237
- '200': "RequestConsole",
249
+ '200': "VNCURL",
238
250
  '400': "ErrorResponseModel",
239
251
  '401': "ErrorResponseModel",
240
252
  '404': "ErrorResponseModel",
@@ -247,9 +259,10 @@ class VncUrlApi:
247
259
  return response_data.response
248
260
 
249
261
 
250
- def _get_vnc_url_serialize(
262
+ def _get_vncurl_serialize(
251
263
  self,
252
264
  vm_id,
265
+ job_id,
253
266
  _request_auth,
254
267
  _content_type,
255
268
  _headers,
@@ -273,6 +286,8 @@ class VncUrlApi:
273
286
  # process the path parameters
274
287
  if vm_id is not None:
275
288
  _path_params['vm_id'] = vm_id
289
+ if job_id is not None:
290
+ _path_params['job_id'] = job_id
276
291
  # process the query parameters
277
292
  # process the header parameters
278
293
  # process the form parameters
@@ -295,7 +310,7 @@ class VncUrlApi:
295
310
 
296
311
  return self.api_client.param_serialize(
297
312
  method='GET',
298
- resource_path='/core/virtual-machines/{vm_id}/request-console',
313
+ resource_path='/core/virtual-machines/{vm_id}/console/{job_id}',
299
314
  path_params=_path_params,
300
315
  query_params=_query_params,
301
316
  header_params=_header_params,
@@ -312,10 +327,9 @@ class VncUrlApi:
312
327
 
313
328
 
314
329
  @validate_call
315
- def get_vncurl(
330
+ def request_vm_console(
316
331
  self,
317
332
  vm_id: StrictInt,
318
- job_id: StrictInt,
319
333
  _request_timeout: Union[
320
334
  None,
321
335
  Annotated[StrictFloat, Field(gt=0)],
@@ -328,15 +342,13 @@ class VncUrlApi:
328
342
  _content_type: Optional[StrictStr] = None,
329
343
  _headers: Optional[Dict[StrictStr, Any]] = None,
330
344
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
331
- ) -> VNCURL:
332
- """Get VNC Console Link
345
+ ) -> RequestConsole:
346
+ """Request Instance Console
333
347
 
334
- Retrieves the URL to access the VNC console for a specified virtual machine by providing the virtual machine ID and the job ID in the path. For more information, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-vnc-url).
348
+ Retrieves the path of the VNC console for the given virtual machine ID by providing the virtual machine ID in the path. For more information, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-console-path).
335
349
 
336
350
  :param vm_id: (required)
337
351
  :type vm_id: int
338
- :param job_id: (required)
339
- :type job_id: int
340
352
  :param _request_timeout: timeout setting for this request. If one
341
353
  number provided, it will be total request
342
354
  timeout. It can also be a pair (tuple) of
@@ -359,9 +371,8 @@ class VncUrlApi:
359
371
  :return: Returns the result object.
360
372
  """ # noqa: E501
361
373
 
362
- _param = self._get_vncurl_serialize(
374
+ _param = self._request_vm_console_serialize(
363
375
  vm_id=vm_id,
364
- job_id=job_id,
365
376
  _request_auth=_request_auth,
366
377
  _content_type=_content_type,
367
378
  _headers=_headers,
@@ -369,7 +380,7 @@ class VncUrlApi:
369
380
  )
370
381
 
371
382
  _response_types_map: Dict[str, Optional[str]] = {
372
- '200': "VNCURL",
383
+ '200': "RequestConsole",
373
384
  '400': "ErrorResponseModel",
374
385
  '401': "ErrorResponseModel",
375
386
  '404': "ErrorResponseModel",
@@ -387,10 +398,9 @@ class VncUrlApi:
387
398
 
388
399
 
389
400
  @validate_call
390
- def get_vncurl_with_http_info(
401
+ def request_vm_console_with_http_info(
391
402
  self,
392
403
  vm_id: StrictInt,
393
- job_id: StrictInt,
394
404
  _request_timeout: Union[
395
405
  None,
396
406
  Annotated[StrictFloat, Field(gt=0)],
@@ -403,15 +413,13 @@ class VncUrlApi:
403
413
  _content_type: Optional[StrictStr] = None,
404
414
  _headers: Optional[Dict[StrictStr, Any]] = None,
405
415
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
406
- ) -> ApiResponse[VNCURL]:
407
- """Get VNC Console Link
416
+ ) -> ApiResponse[RequestConsole]:
417
+ """Request Instance Console
408
418
 
409
- Retrieves the URL to access the VNC console for a specified virtual machine by providing the virtual machine ID and the job ID in the path. For more information, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-vnc-url).
419
+ Retrieves the path of the VNC console for the given virtual machine ID by providing the virtual machine ID in the path. For more information, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-console-path).
410
420
 
411
421
  :param vm_id: (required)
412
422
  :type vm_id: int
413
- :param job_id: (required)
414
- :type job_id: int
415
423
  :param _request_timeout: timeout setting for this request. If one
416
424
  number provided, it will be total request
417
425
  timeout. It can also be a pair (tuple) of
@@ -434,9 +442,8 @@ class VncUrlApi:
434
442
  :return: Returns the result object.
435
443
  """ # noqa: E501
436
444
 
437
- _param = self._get_vncurl_serialize(
445
+ _param = self._request_vm_console_serialize(
438
446
  vm_id=vm_id,
439
- job_id=job_id,
440
447
  _request_auth=_request_auth,
441
448
  _content_type=_content_type,
442
449
  _headers=_headers,
@@ -444,7 +451,7 @@ class VncUrlApi:
444
451
  )
445
452
 
446
453
  _response_types_map: Dict[str, Optional[str]] = {
447
- '200': "VNCURL",
454
+ '200': "RequestConsole",
448
455
  '400': "ErrorResponseModel",
449
456
  '401': "ErrorResponseModel",
450
457
  '404': "ErrorResponseModel",
@@ -462,10 +469,9 @@ class VncUrlApi:
462
469
 
463
470
 
464
471
  @validate_call
465
- def get_vncurl_without_preload_content(
472
+ def request_vm_console_without_preload_content(
466
473
  self,
467
474
  vm_id: StrictInt,
468
- job_id: StrictInt,
469
475
  _request_timeout: Union[
470
476
  None,
471
477
  Annotated[StrictFloat, Field(gt=0)],
@@ -479,14 +485,12 @@ class VncUrlApi:
479
485
  _headers: Optional[Dict[StrictStr, Any]] = None,
480
486
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
481
487
  ) -> RESTResponseType:
482
- """Get VNC Console Link
488
+ """Request Instance Console
483
489
 
484
- Retrieves the URL to access the VNC console for a specified virtual machine by providing the virtual machine ID and the job ID in the path. For more information, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-vnc-url).
490
+ Retrieves the path of the VNC console for the given virtual machine ID by providing the virtual machine ID in the path. For more information, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-console-path).
485
491
 
486
492
  :param vm_id: (required)
487
493
  :type vm_id: int
488
- :param job_id: (required)
489
- :type job_id: int
490
494
  :param _request_timeout: timeout setting for this request. If one
491
495
  number provided, it will be total request
492
496
  timeout. It can also be a pair (tuple) of
@@ -509,9 +513,8 @@ class VncUrlApi:
509
513
  :return: Returns the result object.
510
514
  """ # noqa: E501
511
515
 
512
- _param = self._get_vncurl_serialize(
516
+ _param = self._request_vm_console_serialize(
513
517
  vm_id=vm_id,
514
- job_id=job_id,
515
518
  _request_auth=_request_auth,
516
519
  _content_type=_content_type,
517
520
  _headers=_headers,
@@ -519,7 +522,7 @@ class VncUrlApi:
519
522
  )
520
523
 
521
524
  _response_types_map: Dict[str, Optional[str]] = {
522
- '200': "VNCURL",
525
+ '200': "RequestConsole",
523
526
  '400': "ErrorResponseModel",
524
527
  '401': "ErrorResponseModel",
525
528
  '404': "ErrorResponseModel",
@@ -532,10 +535,9 @@ class VncUrlApi:
532
535
  return response_data.response
533
536
 
534
537
 
535
- def _get_vncurl_serialize(
538
+ def _request_vm_console_serialize(
536
539
  self,
537
540
  vm_id,
538
- job_id,
539
541
  _request_auth,
540
542
  _content_type,
541
543
  _headers,
@@ -559,8 +561,6 @@ class VncUrlApi:
559
561
  # process the path parameters
560
562
  if vm_id is not None:
561
563
  _path_params['vm_id'] = vm_id
562
- if job_id is not None:
563
- _path_params['job_id'] = job_id
564
564
  # process the query parameters
565
565
  # process the header parameters
566
566
  # process the form parameters
@@ -583,7 +583,7 @@ class VncUrlApi:
583
583
 
584
584
  return self.api_client.param_serialize(
585
585
  method='GET',
586
- resource_path='/core/virtual-machines/{vm_id}/console/{job_id}',
586
+ resource_path='/core/virtual-machines/{vm_id}/request-console',
587
587
  path_params=_path_params,
588
588
  query_params=_query_params,
589
589
  header_params=_header_params,