hyperstack 1.25.0a0__py3-none-any.whl → 1.41.0a0__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.
- hyperstack/__init__.py +79 -131
- hyperstack/api/__init__.py +2 -0
- hyperstack/api/alive_api.py +240 -0
- hyperstack/api/api_key_api.py +16 -20
- hyperstack/api/assigning_member_role_api.py +15 -17
- hyperstack/api/auth_api.py +1050 -5
- hyperstack/api/beta_access_api.py +856 -0
- hyperstack/api/billing_api.py +6461 -673
- hyperstack/api/calculate_api.py +8 -9
- hyperstack/api/callbacks_api.py +120 -126
- hyperstack/api/cluster_events_api.py +1 -2
- hyperstack/api/clusters_api.py +2492 -146
- hyperstack/api/compliance_api.py +14 -18
- hyperstack/api/credit_api.py +17 -15
- hyperstack/api/customer_contract_api.py +30 -33
- hyperstack/api/dashboard_api.py +4 -5
- hyperstack/api/deployment_api.py +4 -8
- hyperstack/api/environment_api.py +285 -16
- hyperstack/api/firewall_attachment_api.py +11 -9
- hyperstack/api/firewalls_api.py +341 -347
- hyperstack/api/flavor_api.py +4 -5
- hyperstack/api/floating_ip_api.py +50 -49
- hyperstack/api/gpu_api.py +1 -2
- hyperstack/api/image_api.py +35 -39
- hyperstack/api/invite_api.py +288 -18
- hyperstack/api/keypair_api.py +22 -26
- hyperstack/api/organization_api.py +12 -15
- hyperstack/api/partner_config_api.py +564 -0
- hyperstack/api/payment_api.py +299 -18
- hyperstack/api/permission_api.py +4 -5
- hyperstack/api/policy_api.py +4 -5
- hyperstack/api/pricebook_api.py +14 -12
- hyperstack/api/profile_api.py +13 -17
- hyperstack/api/rbac_role_api.py +20 -25
- hyperstack/api/region_api.py +7 -8
- hyperstack/api/security_rules_api.py +1 -2
- hyperstack/api/snapshot_events_api.py +1 -2
- hyperstack/api/snapshots_api.py +166 -172
- hyperstack/api/stock_api.py +4 -5
- hyperstack/api/template_api.py +14 -19
- hyperstack/api/user_api.py +55 -49
- hyperstack/api/user_detail_choice_api.py +1 -2
- hyperstack/api/user_permission_api.py +8 -10
- hyperstack/api/virtual_machine_api.py +1529 -929
- hyperstack/api/virtual_machine_events_api.py +21 -22
- hyperstack/api/vnc_url_api.py +54 -50
- hyperstack/api/volume_api.py +340 -40
- hyperstack/api/volume_attachment_api.py +342 -42
- hyperstack/api_client.py +1 -1
- hyperstack/configuration.py +1 -11
- hyperstack/models/__init__.py +76 -130
- hyperstack/models/{environment_fieldsfor_volume.py → access_token_field.py} +7 -7
- hyperstack/models/attach_volume_fields.py +6 -2
- hyperstack/models/attach_volumes_payload.py +4 -2
- hyperstack/models/{virtual_machine_usage.py → attachments_fields_for_volume.py} +13 -11
- hyperstack/models/{flavor_vm_fields.py → attributes.py} +15 -18
- hyperstack/models/auth_get_token_response_model.py +4 -6
- hyperstack/models/{future_node_model.py → beta_access_request_fields.py} +27 -25
- hyperstack/models/{create_gpu.py → beta_access_request_payload.py} +9 -11
- hyperstack/models/{create_discount_response.py → beta_access_request_response_model.py} +11 -11
- hyperstack/models/{export_billing_data_request.py → beta_access_status_item.py} +20 -23
- hyperstack/models/{get_all_discount_for_all_organization_response.py → beta_access_status_response_model.py} +15 -15
- hyperstack/models/{exclude_billing_post_response.py → billing_history.py} +13 -11
- hyperstack/models/billing_history_data_synthesis_details.py +105 -0
- hyperstack/models/{vm_usage_response.py → billing_history_fine_tuning.py} +23 -19
- hyperstack/models/billing_history_model_evalutation_details.py +105 -0
- hyperstack/models/{get_all_discounts_fields.py → billing_history_serverless_inference.py} +23 -24
- hyperstack/models/billing_history_serverless_inference_details.py +105 -0
- hyperstack/models/{billingmetricesfields.py → billing_metrices_fields.py} +4 -4
- hyperstack/models/{billingmetricesresponse.py → billing_metrices_response.py} +7 -7
- hyperstack/models/cluster_fields.py +27 -9
- hyperstack/models/{add_update_flavor_organization_payload.py → cluster_flavor_fields.py} +28 -26
- hyperstack/models/{historical_instances_fields.py → cluster_node_fields.py} +24 -22
- hyperstack/models/{internal_instance_flavor_fields.py → cluster_node_group_fields.py} +17 -17
- hyperstack/models/{create_update_policy_response_model.py → cluster_node_groups_create_response.py} +21 -11
- hyperstack/models/{create_update_permission_response_model.py → cluster_node_groups_get_response.py} +11 -11
- hyperstack/models/{auth_request_login_response_model.py → cluster_node_groups_list_response.py} +15 -11
- hyperstack/models/{contract_eligible_instance_fields.py → cluster_node_instance_fields.py} +13 -11
- hyperstack/models/{image_logos.py → cluster_nodes_list_response.py} +14 -14
- hyperstack/models/{internal_environment_fields.py → cluster_version.py} +13 -9
- hyperstack/models/cluster_versions.py +10 -2
- hyperstack/models/{future_nodes_stock_model.py → colors.py} +17 -15
- hyperstack/models/contract_discount_plan_fields.py +3 -1
- hyperstack/models/contract_instance_fields.py +7 -1
- hyperstack/models/{future_node_response_model.py → create_cluster_node_fields.py} +23 -18
- hyperstack/models/{update_gpu.py → create_cluster_node_group_payload.py} +12 -11
- hyperstack/models/create_cluster_payload.py +31 -8
- hyperstack/models/create_environment.py +1 -1
- hyperstack/models/create_instances_payload.py +7 -7
- hyperstack/models/create_profile_payload.py +1 -1
- hyperstack/models/create_snapshot_payload.py +2 -4
- hyperstack/models/create_volume_payload.py +1 -1
- hyperstack/models/data_synthesis_billing_history_details_response_schema.py +95 -0
- hyperstack/models/{deployment_fieldsforstartdeployments.py → deployment_fields_for_start_deployments.py} +4 -4
- hyperstack/models/{editlabelofanexisting_vm_payload.py → edit_label_of_an_existing_vm_payload.py} +4 -4
- hyperstack/models/environment_features.py +14 -2
- hyperstack/models/{node_stocks_payload.py → environment_fields_for_volume.py} +10 -12
- hyperstack/models/flavor_fields.py +3 -1
- hyperstack/models/{customer_fields.py → flavor_label_fields.py} +7 -7
- hyperstack/models/{getcreditandthresholdinfo.py → get_credit_and_threshold_info.py} +4 -4
- hyperstack/models/{getcreditandthresholdinfoinresponse.py → get_credit_and_threshold_info_in_response.py} +7 -7
- hyperstack/models/{region_payload.py → get_instance_logs_response.py} +7 -9
- hyperstack/models/instance_fields.py +8 -4
- hyperstack/models/instance_flavor_fields.py +13 -1
- hyperstack/models/{flavor_response.py → keypair_environment_features.py} +20 -16
- hyperstack/models/{internal_instance_keypair_fields.py → keypair_environment_fields.py} +13 -11
- hyperstack/models/keypair_fields.py +6 -2
- hyperstack/models/{lastdaycostfields.py → last_day_cost_fields.py} +4 -4
- hyperstack/models/{lastdaycostresponse.py → last_day_cost_response.py} +7 -7
- hyperstack/models/{export_billing_data_response.py → logos.py} +13 -9
- hyperstack/models/{creditrequestresponse.py → master_flavors_response.py} +14 -14
- hyperstack/models/{customer_payload.py → mfa_status_fields.py} +8 -10
- hyperstack/models/{gpu.py → mfa_status_response.py} +11 -11
- hyperstack/models/model_evaluation_billing_history_details_response_schema.py +95 -0
- hyperstack/models/{organization_thresholdfields.py → organization_threshold_fields.py} +4 -4
- hyperstack/models/{organizationthresholdupdateresponse.py → organization_threshold_update_response.py} +7 -7
- hyperstack/models/{organizationthresholdsresponse.py → organization_thresholds_response.py} +7 -7
- hyperstack/models/{logo_get_response.py → pagination.py} +12 -12
- hyperstack/models/{billing_response.py → partner_config.py} +31 -20
- hyperstack/models/payment_details_fields.py +5 -1
- hyperstack/models/{logout_payload.py → primary_color.py} +10 -8
- hyperstack/models/region_fields.py +16 -2
- hyperstack/models/{vm_usage_request_payload.py → request_instance_logs_payload.py} +8 -8
- hyperstack/models/{stock_visibility_user_payload.py → request_instance_logs_response.py} +8 -8
- hyperstack/models/{contract_billing_history.py → resource_level_billing_bucket_details_resources.py} +10 -10
- hyperstack/models/{node_response_model.py → resource_level_billing_history_resources_cluster.py} +21 -11
- hyperstack/models/resource_level_billing_history_response_attributes.py +3 -1
- hyperstack/models/{get_all_contracts_response_model.py → resource_level_bucket_billing_details_response_model.py} +11 -15
- hyperstack/models/{contract_billing_history_response_model.py → resource_level_bucket_billing_history_response_model.py} +11 -11
- hyperstack/models/resource_level_cluster_billing_details_response_model.py +95 -0
- hyperstack/models/resource_level_cluster_billing_history_response_model.py +95 -0
- hyperstack/models/{get_discount_detail_response.py → resource_level_cluster_graph_billing_details_response_model.py} +11 -11
- hyperstack/models/{organization_object_response.py → resource_level_graph_billing_details_bucket.py} +18 -14
- hyperstack/models/{update_discounts_status_payload.py → secondary_color.py} +10 -8
- hyperstack/models/{security_rules_fieldsfor_instance.py → security_rules_fields_for_instance.py} +4 -4
- hyperstack/models/serverless_inferenced_billing_history_details_response_schema.py +95 -0
- hyperstack/models/snapshot_fields.py +6 -1
- hyperstack/models/snapshot_retrieve_fields.py +29 -2
- hyperstack/models/start_deployment.py +3 -3
- hyperstack/models/{subscribeorunsubscribeupdatepayload.py → subscribe_or_unsubscribe_update_payload.py} +4 -4
- hyperstack/models/token_based_billing_history_response.py +95 -0
- hyperstack/models/{update_keypairnameresponse.py → update_keypair_name_response.py} +4 -4
- hyperstack/models/update_volume_attachment_payload.py +87 -0
- hyperstack/models/{verify_api_key_payload.py → update_volume_payload.py} +7 -7
- hyperstack/models/{stock_visibility_user_list_response.py → update_volume_response.py} +14 -16
- hyperstack/models/{auth_request_login_fields.py → uris.py} +19 -9
- hyperstack/models/{userinfopostpayload.py → user_info_post_payload.py} +4 -4
- hyperstack/models/{node_stock_response_model.py → user_organizations_response.py} +14 -14
- hyperstack/models/users_info_fields.py +3 -1
- hyperstack/models/volume_attachment_fields.py +9 -5
- hyperstack/models/volume_fields.py +14 -4
- hyperstack/models/{volume_fieldsfor_instance.py → volume_fields_for_instance.py} +4 -4
- hyperstack/models/volumes.py +17 -11
- hyperstack/models/{instances_summary_fields.py → volumes_fields.py} +33 -29
- hyperstack/models/workload_billing_history_response.py +95 -0
- {hyperstack-1.25.0a0.dist-info → hyperstack-1.41.0a0.dist-info}/METADATA +2 -2
- hyperstack-1.41.0a0.dist-info/RECORD +349 -0
- {hyperstack-1.25.0a0.dist-info → hyperstack-1.41.0a0.dist-info}/WHEEL +1 -1
- hyperstack/models/api_key_verify_fields.py +0 -93
- hyperstack/models/billing_immune_resources_response.py +0 -95
- hyperstack/models/contract_billing_history_response_attributes.py +0 -99
- hyperstack/models/contract_change_payload.py +0 -101
- hyperstack/models/contract_eligible_instances_response.py +0 -101
- hyperstack/models/contract_event_create_model.py +0 -91
- hyperstack/models/contract_resource_payload.py +0 -95
- hyperstack/models/contractl_billing_history_response_metrics.py +0 -87
- hyperstack/models/create_contract_fields.py +0 -110
- hyperstack/models/create_contract_payload.py +0 -106
- hyperstack/models/create_discounts_payload.py +0 -112
- hyperstack/models/create_update_permission_payload.py +0 -93
- hyperstack/models/create_update_policy_payload.py +0 -93
- hyperstack/models/creditrechargelimitfield.py +0 -93
- hyperstack/models/creditrechargelimitresponse.py +0 -99
- hyperstack/models/creditrequests.py +0 -96
- hyperstack/models/data.py +0 -91
- hyperstack/models/discount_entity_model.py +0 -97
- hyperstack/models/discount_fields.py +0 -100
- hyperstack/models/discount_plan_fields.py +0 -108
- hyperstack/models/discount_resource_fields.py +0 -93
- hyperstack/models/discount_resource_payload.py +0 -93
- hyperstack/models/exclude_billing_post_payload.py +0 -91
- hyperstack/models/field_change.py +0 -91
- hyperstack/models/flavor_payload.py +0 -101
- hyperstack/models/flavor_vms_response.py +0 -99
- hyperstack/models/future_node_stock_model.py +0 -93
- hyperstack/models/future_node_update_model.py +0 -98
- hyperstack/models/get_all_contract_fields.py +0 -100
- hyperstack/models/get_discount_response.py +0 -99
- hyperstack/models/get_entity_discount_detail_response.py +0 -108
- hyperstack/models/get_token_payload.py +0 -89
- hyperstack/models/get_version_response.py +0 -91
- hyperstack/models/historical_instance.py +0 -101
- hyperstack/models/infrahub_resource_object_response.py +0 -119
- hyperstack/models/insert_discount_plan_fields.py +0 -112
- hyperstack/models/internal_instance_fields.py +0 -156
- hyperstack/models/internal_instance_image_fields.py +0 -95
- hyperstack/models/internal_instances_response.py +0 -99
- hyperstack/models/internal_security_rules_fields_for_instance.py +0 -104
- hyperstack/models/internal_volume_attachment_fields.py +0 -98
- hyperstack/models/internal_volume_fields.py +0 -95
- hyperstack/models/internal_volumes_response.py +0 -99
- hyperstack/models/new_stock_update_response_model.py +0 -89
- hyperstack/models/node_model.py +0 -114
- hyperstack/models/node_payload_model.py +0 -97
- hyperstack/models/node_power_usage_model.py +0 -120
- hyperstack/models/node_stock_payload_model.py +0 -95
- hyperstack/models/organizationcreditrechargelimitresponse.py +0 -95
- hyperstack/models/power_usage_model.py +0 -89
- hyperstack/models/pricebook_resource_object_response.py +0 -107
- hyperstack/models/refresh_token_payload.py +0 -89
- hyperstack/models/region_response.py +0 -95
- hyperstack/models/set_defaults_payload.py +0 -89
- hyperstack/models/single_visibility_user_response.py +0 -91
- hyperstack/models/success_response_model.py +0 -89
- hyperstack/models/token_fields.py +0 -91
- hyperstack/models/update_contract_payload.py +0 -104
- hyperstack/models/update_discounts_payload.py +0 -102
- hyperstack/models/user_transfer_payload.py +0 -89
- hyperstack/models/verify_api_key_response_model.py +0 -95
- hyperstack/models/volume_status_change_fields.py +0 -96
- hyperstack/models/volumes_last_status_change_response.py +0 -99
- hyperstack/models/warning_mail_log_fields.py +0 -99
- hyperstack/models/warning_mail_log_response.py +0 -101
- hyperstack-1.25.0a0.dist-info/RECORD +0 -401
- {hyperstack-1.25.0a0.dist-info → hyperstack-1.41.0a0.dist-info}/top_level.txt +0 -0
|
@@ -16,7 +16,7 @@ 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 pydantic import
|
|
19
|
+
from pydantic import StrictInt
|
|
20
20
|
from ..models.instance_events import InstanceEvents
|
|
21
21
|
|
|
22
22
|
from ..api_client import ApiClient, RequestSerialized
|
|
@@ -40,7 +40,7 @@ class VirtualMachineEventsApi:
|
|
|
40
40
|
@validate_call
|
|
41
41
|
def list_virtual_machine_events(
|
|
42
42
|
self,
|
|
43
|
-
|
|
43
|
+
vm_id: StrictInt,
|
|
44
44
|
_request_timeout: Union[
|
|
45
45
|
None,
|
|
46
46
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -56,10 +56,10 @@ class VirtualMachineEventsApi:
|
|
|
56
56
|
) -> InstanceEvents:
|
|
57
57
|
"""List virtual machine events
|
|
58
58
|
|
|
59
|
-
Retrieves a list of all events in a virtual machine's history, which records actions performed on the specified virtual machine. Include the virtual machine ID in the path to retrieve the history of events. For more details on virtual machine events history, [**click here**](https://
|
|
59
|
+
Retrieves a list of all events in a virtual machine's history, which records actions performed on the specified virtual machine. Include the virtual machine ID in the path to retrieve the history of events. For more details on virtual machine events history, [**click here**](https://docs...cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#events-history).
|
|
60
60
|
|
|
61
|
-
:param
|
|
62
|
-
:type
|
|
61
|
+
:param vm_id: (required)
|
|
62
|
+
:type vm_id: int
|
|
63
63
|
:param _request_timeout: timeout setting for this request. If one
|
|
64
64
|
number provided, it will be total request
|
|
65
65
|
timeout. It can also be a pair (tuple) of
|
|
@@ -83,7 +83,7 @@ class VirtualMachineEventsApi:
|
|
|
83
83
|
""" # noqa: E501
|
|
84
84
|
|
|
85
85
|
_param = self._list_virtual_machine_events_serialize(
|
|
86
|
-
|
|
86
|
+
vm_id=vm_id,
|
|
87
87
|
_request_auth=_request_auth,
|
|
88
88
|
_content_type=_content_type,
|
|
89
89
|
_headers=_headers,
|
|
@@ -111,7 +111,7 @@ class VirtualMachineEventsApi:
|
|
|
111
111
|
@validate_call
|
|
112
112
|
def list_virtual_machine_events_with_http_info(
|
|
113
113
|
self,
|
|
114
|
-
|
|
114
|
+
vm_id: StrictInt,
|
|
115
115
|
_request_timeout: Union[
|
|
116
116
|
None,
|
|
117
117
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -127,10 +127,10 @@ class VirtualMachineEventsApi:
|
|
|
127
127
|
) -> ApiResponse[InstanceEvents]:
|
|
128
128
|
"""List virtual machine events
|
|
129
129
|
|
|
130
|
-
Retrieves a list of all events in a virtual machine's history, which records actions performed on the specified virtual machine. Include the virtual machine ID in the path to retrieve the history of events. For more details on virtual machine events history, [**click here**](https://
|
|
130
|
+
Retrieves a list of all events in a virtual machine's history, which records actions performed on the specified virtual machine. Include the virtual machine ID in the path to retrieve the history of events. For more details on virtual machine events history, [**click here**](https://docs...cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#events-history).
|
|
131
131
|
|
|
132
|
-
:param
|
|
133
|
-
:type
|
|
132
|
+
:param vm_id: (required)
|
|
133
|
+
:type vm_id: int
|
|
134
134
|
:param _request_timeout: timeout setting for this request. If one
|
|
135
135
|
number provided, it will be total request
|
|
136
136
|
timeout. It can also be a pair (tuple) of
|
|
@@ -154,7 +154,7 @@ class VirtualMachineEventsApi:
|
|
|
154
154
|
""" # noqa: E501
|
|
155
155
|
|
|
156
156
|
_param = self._list_virtual_machine_events_serialize(
|
|
157
|
-
|
|
157
|
+
vm_id=vm_id,
|
|
158
158
|
_request_auth=_request_auth,
|
|
159
159
|
_content_type=_content_type,
|
|
160
160
|
_headers=_headers,
|
|
@@ -182,7 +182,7 @@ class VirtualMachineEventsApi:
|
|
|
182
182
|
@validate_call
|
|
183
183
|
def list_virtual_machine_events_without_preload_content(
|
|
184
184
|
self,
|
|
185
|
-
|
|
185
|
+
vm_id: StrictInt,
|
|
186
186
|
_request_timeout: Union[
|
|
187
187
|
None,
|
|
188
188
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -198,10 +198,10 @@ class VirtualMachineEventsApi:
|
|
|
198
198
|
) -> RESTResponseType:
|
|
199
199
|
"""List virtual machine events
|
|
200
200
|
|
|
201
|
-
Retrieves a list of all events in a virtual machine's history, which records actions performed on the specified virtual machine. Include the virtual machine ID in the path to retrieve the history of events. For more details on virtual machine events history, [**click here**](https://
|
|
201
|
+
Retrieves a list of all events in a virtual machine's history, which records actions performed on the specified virtual machine. Include the virtual machine ID in the path to retrieve the history of events. For more details on virtual machine events history, [**click here**](https://docs...cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#events-history).
|
|
202
202
|
|
|
203
|
-
:param
|
|
204
|
-
:type
|
|
203
|
+
:param vm_id: (required)
|
|
204
|
+
:type vm_id: int
|
|
205
205
|
:param _request_timeout: timeout setting for this request. If one
|
|
206
206
|
number provided, it will be total request
|
|
207
207
|
timeout. It can also be a pair (tuple) of
|
|
@@ -225,7 +225,7 @@ class VirtualMachineEventsApi:
|
|
|
225
225
|
""" # noqa: E501
|
|
226
226
|
|
|
227
227
|
_param = self._list_virtual_machine_events_serialize(
|
|
228
|
-
|
|
228
|
+
vm_id=vm_id,
|
|
229
229
|
_request_auth=_request_auth,
|
|
230
230
|
_content_type=_content_type,
|
|
231
231
|
_headers=_headers,
|
|
@@ -248,7 +248,7 @@ class VirtualMachineEventsApi:
|
|
|
248
248
|
|
|
249
249
|
def _list_virtual_machine_events_serialize(
|
|
250
250
|
self,
|
|
251
|
-
|
|
251
|
+
vm_id,
|
|
252
252
|
_request_auth,
|
|
253
253
|
_content_type,
|
|
254
254
|
_headers,
|
|
@@ -270,8 +270,8 @@ class VirtualMachineEventsApi:
|
|
|
270
270
|
_body_params: Optional[bytes] = None
|
|
271
271
|
|
|
272
272
|
# process the path parameters
|
|
273
|
-
if
|
|
274
|
-
_path_params['
|
|
273
|
+
if vm_id is not None:
|
|
274
|
+
_path_params['vm_id'] = vm_id
|
|
275
275
|
# process the query parameters
|
|
276
276
|
# process the header parameters
|
|
277
277
|
# process the form parameters
|
|
@@ -289,13 +289,12 @@ class VirtualMachineEventsApi:
|
|
|
289
289
|
|
|
290
290
|
# authentication setting
|
|
291
291
|
_auth_settings: List[str] = [
|
|
292
|
-
'apiKey'
|
|
293
|
-
'accessToken'
|
|
292
|
+
'apiKey'
|
|
294
293
|
]
|
|
295
294
|
|
|
296
295
|
return self.api_client.param_serialize(
|
|
297
296
|
method='GET',
|
|
298
|
-
resource_path='/core/virtual-machines/{
|
|
297
|
+
resource_path='/core/virtual-machines/{vm_id}/events',
|
|
299
298
|
path_params=_path_params,
|
|
300
299
|
query_params=_query_params,
|
|
301
300
|
header_params=_header_params,
|
hyperstack/api/vnc_url_api.py
CHANGED
|
@@ -39,9 +39,9 @@ class VncUrlApi:
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
@validate_call
|
|
42
|
-
def
|
|
42
|
+
def get_vnc_url(
|
|
43
43
|
self,
|
|
44
|
-
|
|
44
|
+
vm_id: StrictInt,
|
|
45
45
|
job_id: StrictInt,
|
|
46
46
|
_request_timeout: Union[
|
|
47
47
|
None,
|
|
@@ -58,9 +58,10 @@ class VncUrlApi:
|
|
|
58
58
|
) -> VNCURL:
|
|
59
59
|
"""Get VNC Console Link
|
|
60
60
|
|
|
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
|
-
:param
|
|
63
|
-
:type
|
|
63
|
+
:param vm_id: (required)
|
|
64
|
+
:type vm_id: int
|
|
64
65
|
:param job_id: (required)
|
|
65
66
|
:type job_id: int
|
|
66
67
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -85,8 +86,8 @@ class VncUrlApi:
|
|
|
85
86
|
:return: Returns the result object.
|
|
86
87
|
""" # noqa: E501
|
|
87
88
|
|
|
88
|
-
_param = self.
|
|
89
|
-
|
|
89
|
+
_param = self._get_vnc_url_serialize(
|
|
90
|
+
vm_id=vm_id,
|
|
90
91
|
job_id=job_id,
|
|
91
92
|
_request_auth=_request_auth,
|
|
92
93
|
_content_type=_content_type,
|
|
@@ -113,9 +114,9 @@ class VncUrlApi:
|
|
|
113
114
|
|
|
114
115
|
|
|
115
116
|
@validate_call
|
|
116
|
-
def
|
|
117
|
+
def get_vnc_url_with_http_info(
|
|
117
118
|
self,
|
|
118
|
-
|
|
119
|
+
vm_id: StrictInt,
|
|
119
120
|
job_id: StrictInt,
|
|
120
121
|
_request_timeout: Union[
|
|
121
122
|
None,
|
|
@@ -132,9 +133,10 @@ class VncUrlApi:
|
|
|
132
133
|
) -> ApiResponse[VNCURL]:
|
|
133
134
|
"""Get VNC Console Link
|
|
134
135
|
|
|
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).
|
|
135
137
|
|
|
136
|
-
:param
|
|
137
|
-
:type
|
|
138
|
+
:param vm_id: (required)
|
|
139
|
+
:type vm_id: int
|
|
138
140
|
:param job_id: (required)
|
|
139
141
|
:type job_id: int
|
|
140
142
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -159,8 +161,8 @@ class VncUrlApi:
|
|
|
159
161
|
:return: Returns the result object.
|
|
160
162
|
""" # noqa: E501
|
|
161
163
|
|
|
162
|
-
_param = self.
|
|
163
|
-
|
|
164
|
+
_param = self._get_vnc_url_serialize(
|
|
165
|
+
vm_id=vm_id,
|
|
164
166
|
job_id=job_id,
|
|
165
167
|
_request_auth=_request_auth,
|
|
166
168
|
_content_type=_content_type,
|
|
@@ -187,9 +189,9 @@ class VncUrlApi:
|
|
|
187
189
|
|
|
188
190
|
|
|
189
191
|
@validate_call
|
|
190
|
-
def
|
|
192
|
+
def get_vnc_url_without_preload_content(
|
|
191
193
|
self,
|
|
192
|
-
|
|
194
|
+
vm_id: StrictInt,
|
|
193
195
|
job_id: StrictInt,
|
|
194
196
|
_request_timeout: Union[
|
|
195
197
|
None,
|
|
@@ -206,9 +208,10 @@ class VncUrlApi:
|
|
|
206
208
|
) -> RESTResponseType:
|
|
207
209
|
"""Get VNC Console Link
|
|
208
210
|
|
|
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).
|
|
209
212
|
|
|
210
|
-
:param
|
|
211
|
-
:type
|
|
213
|
+
:param vm_id: (required)
|
|
214
|
+
:type vm_id: int
|
|
212
215
|
:param job_id: (required)
|
|
213
216
|
:type job_id: int
|
|
214
217
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -233,8 +236,8 @@ class VncUrlApi:
|
|
|
233
236
|
:return: Returns the result object.
|
|
234
237
|
""" # noqa: E501
|
|
235
238
|
|
|
236
|
-
_param = self.
|
|
237
|
-
|
|
239
|
+
_param = self._get_vnc_url_serialize(
|
|
240
|
+
vm_id=vm_id,
|
|
238
241
|
job_id=job_id,
|
|
239
242
|
_request_auth=_request_auth,
|
|
240
243
|
_content_type=_content_type,
|
|
@@ -256,9 +259,9 @@ class VncUrlApi:
|
|
|
256
259
|
return response_data.response
|
|
257
260
|
|
|
258
261
|
|
|
259
|
-
def
|
|
262
|
+
def _get_vnc_url_serialize(
|
|
260
263
|
self,
|
|
261
|
-
|
|
264
|
+
vm_id,
|
|
262
265
|
job_id,
|
|
263
266
|
_request_auth,
|
|
264
267
|
_content_type,
|
|
@@ -281,8 +284,8 @@ class VncUrlApi:
|
|
|
281
284
|
_body_params: Optional[bytes] = None
|
|
282
285
|
|
|
283
286
|
# process the path parameters
|
|
284
|
-
if
|
|
285
|
-
_path_params['
|
|
287
|
+
if vm_id is not None:
|
|
288
|
+
_path_params['vm_id'] = vm_id
|
|
286
289
|
if job_id is not None:
|
|
287
290
|
_path_params['job_id'] = job_id
|
|
288
291
|
# process the query parameters
|
|
@@ -302,13 +305,12 @@ class VncUrlApi:
|
|
|
302
305
|
|
|
303
306
|
# authentication setting
|
|
304
307
|
_auth_settings: List[str] = [
|
|
305
|
-
'apiKey'
|
|
306
|
-
'accessToken'
|
|
308
|
+
'apiKey'
|
|
307
309
|
]
|
|
308
310
|
|
|
309
311
|
return self.api_client.param_serialize(
|
|
310
312
|
method='GET',
|
|
311
|
-
resource_path='/core/virtual-machines/{
|
|
313
|
+
resource_path='/core/virtual-machines/{vm_id}/console/{job_id}',
|
|
312
314
|
path_params=_path_params,
|
|
313
315
|
query_params=_query_params,
|
|
314
316
|
header_params=_header_params,
|
|
@@ -325,9 +327,9 @@ class VncUrlApi:
|
|
|
325
327
|
|
|
326
328
|
|
|
327
329
|
@validate_call
|
|
328
|
-
def
|
|
330
|
+
def get_vnc_url2(
|
|
329
331
|
self,
|
|
330
|
-
|
|
332
|
+
vm_id: StrictInt,
|
|
331
333
|
_request_timeout: Union[
|
|
332
334
|
None,
|
|
333
335
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -343,9 +345,10 @@ class VncUrlApi:
|
|
|
343
345
|
) -> RequestConsole:
|
|
344
346
|
"""Request Instance Console
|
|
345
347
|
|
|
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).
|
|
346
349
|
|
|
347
|
-
:param
|
|
348
|
-
:type
|
|
350
|
+
:param vm_id: (required)
|
|
351
|
+
:type vm_id: int
|
|
349
352
|
:param _request_timeout: timeout setting for this request. If one
|
|
350
353
|
number provided, it will be total request
|
|
351
354
|
timeout. It can also be a pair (tuple) of
|
|
@@ -368,8 +371,8 @@ class VncUrlApi:
|
|
|
368
371
|
:return: Returns the result object.
|
|
369
372
|
""" # noqa: E501
|
|
370
373
|
|
|
371
|
-
_param = self.
|
|
372
|
-
|
|
374
|
+
_param = self._get_vnc_url2_serialize(
|
|
375
|
+
vm_id=vm_id,
|
|
373
376
|
_request_auth=_request_auth,
|
|
374
377
|
_content_type=_content_type,
|
|
375
378
|
_headers=_headers,
|
|
@@ -395,9 +398,9 @@ class VncUrlApi:
|
|
|
395
398
|
|
|
396
399
|
|
|
397
400
|
@validate_call
|
|
398
|
-
def
|
|
401
|
+
def get_vnc_url2_with_http_info(
|
|
399
402
|
self,
|
|
400
|
-
|
|
403
|
+
vm_id: StrictInt,
|
|
401
404
|
_request_timeout: Union[
|
|
402
405
|
None,
|
|
403
406
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -413,9 +416,10 @@ class VncUrlApi:
|
|
|
413
416
|
) -> ApiResponse[RequestConsole]:
|
|
414
417
|
"""Request Instance Console
|
|
415
418
|
|
|
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).
|
|
416
420
|
|
|
417
|
-
:param
|
|
418
|
-
:type
|
|
421
|
+
:param vm_id: (required)
|
|
422
|
+
:type vm_id: int
|
|
419
423
|
:param _request_timeout: timeout setting for this request. If one
|
|
420
424
|
number provided, it will be total request
|
|
421
425
|
timeout. It can also be a pair (tuple) of
|
|
@@ -438,8 +442,8 @@ class VncUrlApi:
|
|
|
438
442
|
:return: Returns the result object.
|
|
439
443
|
""" # noqa: E501
|
|
440
444
|
|
|
441
|
-
_param = self.
|
|
442
|
-
|
|
445
|
+
_param = self._get_vnc_url2_serialize(
|
|
446
|
+
vm_id=vm_id,
|
|
443
447
|
_request_auth=_request_auth,
|
|
444
448
|
_content_type=_content_type,
|
|
445
449
|
_headers=_headers,
|
|
@@ -465,9 +469,9 @@ class VncUrlApi:
|
|
|
465
469
|
|
|
466
470
|
|
|
467
471
|
@validate_call
|
|
468
|
-
def
|
|
472
|
+
def get_vnc_url2_without_preload_content(
|
|
469
473
|
self,
|
|
470
|
-
|
|
474
|
+
vm_id: StrictInt,
|
|
471
475
|
_request_timeout: Union[
|
|
472
476
|
None,
|
|
473
477
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -483,9 +487,10 @@ class VncUrlApi:
|
|
|
483
487
|
) -> RESTResponseType:
|
|
484
488
|
"""Request Instance Console
|
|
485
489
|
|
|
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).
|
|
486
491
|
|
|
487
|
-
:param
|
|
488
|
-
:type
|
|
492
|
+
:param vm_id: (required)
|
|
493
|
+
:type vm_id: int
|
|
489
494
|
:param _request_timeout: timeout setting for this request. If one
|
|
490
495
|
number provided, it will be total request
|
|
491
496
|
timeout. It can also be a pair (tuple) of
|
|
@@ -508,8 +513,8 @@ class VncUrlApi:
|
|
|
508
513
|
:return: Returns the result object.
|
|
509
514
|
""" # noqa: E501
|
|
510
515
|
|
|
511
|
-
_param = self.
|
|
512
|
-
|
|
516
|
+
_param = self._get_vnc_url2_serialize(
|
|
517
|
+
vm_id=vm_id,
|
|
513
518
|
_request_auth=_request_auth,
|
|
514
519
|
_content_type=_content_type,
|
|
515
520
|
_headers=_headers,
|
|
@@ -530,9 +535,9 @@ class VncUrlApi:
|
|
|
530
535
|
return response_data.response
|
|
531
536
|
|
|
532
537
|
|
|
533
|
-
def
|
|
538
|
+
def _get_vnc_url2_serialize(
|
|
534
539
|
self,
|
|
535
|
-
|
|
540
|
+
vm_id,
|
|
536
541
|
_request_auth,
|
|
537
542
|
_content_type,
|
|
538
543
|
_headers,
|
|
@@ -554,8 +559,8 @@ class VncUrlApi:
|
|
|
554
559
|
_body_params: Optional[bytes] = None
|
|
555
560
|
|
|
556
561
|
# process the path parameters
|
|
557
|
-
if
|
|
558
|
-
_path_params['
|
|
562
|
+
if vm_id is not None:
|
|
563
|
+
_path_params['vm_id'] = vm_id
|
|
559
564
|
# process the query parameters
|
|
560
565
|
# process the header parameters
|
|
561
566
|
# process the form parameters
|
|
@@ -573,13 +578,12 @@ class VncUrlApi:
|
|
|
573
578
|
|
|
574
579
|
# authentication setting
|
|
575
580
|
_auth_settings: List[str] = [
|
|
576
|
-
'apiKey'
|
|
577
|
-
'accessToken'
|
|
581
|
+
'apiKey'
|
|
578
582
|
]
|
|
579
583
|
|
|
580
584
|
return self.api_client.param_serialize(
|
|
581
585
|
method='GET',
|
|
582
|
-
resource_path='/core/virtual-machines/{
|
|
586
|
+
resource_path='/core/virtual-machines/{vm_id}/request-console',
|
|
583
587
|
path_params=_path_params,
|
|
584
588
|
query_params=_query_params,
|
|
585
589
|
header_params=_header_params,
|