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
hyperstack/api/flavor_api.py
CHANGED
|
@@ -58,7 +58,7 @@ class FlavorApi:
|
|
|
58
58
|
) -> FlavorListResponse:
|
|
59
59
|
"""List Flavors
|
|
60
60
|
|
|
61
|
-
Returns a list of available virtual machine hardware configurations, known as
|
|
61
|
+
Returns a list of available virtual machine hardware configurations, known as**flavors**. You can specify a `region_name` in the query string of the request toretrieve flavors available only in the specified region; by default, it returnsflavors available in all regions. For more details on flavors,[**click here**](https://docs...cloud/docs/hardware/flavors).
|
|
62
62
|
|
|
63
63
|
:param region: Region Name
|
|
64
64
|
:type region: str
|
|
@@ -129,7 +129,7 @@ class FlavorApi:
|
|
|
129
129
|
) -> ApiResponse[FlavorListResponse]:
|
|
130
130
|
"""List Flavors
|
|
131
131
|
|
|
132
|
-
Returns a list of available virtual machine hardware configurations, known as
|
|
132
|
+
Returns a list of available virtual machine hardware configurations, known as**flavors**. You can specify a `region_name` in the query string of the request toretrieve flavors available only in the specified region; by default, it returnsflavors available in all regions. For more details on flavors,[**click here**](https://docs...cloud/docs/hardware/flavors).
|
|
133
133
|
|
|
134
134
|
:param region: Region Name
|
|
135
135
|
:type region: str
|
|
@@ -200,7 +200,7 @@ class FlavorApi:
|
|
|
200
200
|
) -> RESTResponseType:
|
|
201
201
|
"""List Flavors
|
|
202
202
|
|
|
203
|
-
Returns a list of available virtual machine hardware configurations, known as
|
|
203
|
+
Returns a list of available virtual machine hardware configurations, known as**flavors**. You can specify a `region_name` in the query string of the request toretrieve flavors available only in the specified region; by default, it returnsflavors available in all regions. For more details on flavors,[**click here**](https://docs...cloud/docs/hardware/flavors).
|
|
204
204
|
|
|
205
205
|
:param region: Region Name
|
|
206
206
|
:type region: str
|
|
@@ -293,8 +293,7 @@ class FlavorApi:
|
|
|
293
293
|
|
|
294
294
|
# authentication setting
|
|
295
295
|
_auth_settings: List[str] = [
|
|
296
|
-
'apiKey'
|
|
297
|
-
'accessToken'
|
|
296
|
+
'apiKey'
|
|
298
297
|
]
|
|
299
298
|
|
|
300
299
|
return self.api_client.param_serialize(
|
|
@@ -38,9 +38,9 @@ class FloatingIpApi:
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
@validate_call
|
|
41
|
-
def
|
|
41
|
+
def attach_public_ipto_virtual_machine(
|
|
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 FloatingIpApi:
|
|
|
56
56
|
) -> ResponseModel:
|
|
57
57
|
"""Attach public IP to virtual machine
|
|
58
58
|
|
|
59
|
-
Initiates the creation of a public IP address and attaches it to an existing virtual machine, making it accessible through the internet. Include the virtual machine ID in the path to attach a public IP to the specified VM. For more information on public IP addresses, [**click here**](https://
|
|
59
|
+
Initiates the creation of a public IP address and attaches it to an existing virtual machine, making it accessible through the internet. Include the virtual machine ID in the path to attach a public IP to the specified VM. For more information on public IP addresses, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/floating-ip/attach-floating-ip/).
|
|
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
|
|
@@ -82,8 +82,8 @@ class FloatingIpApi:
|
|
|
82
82
|
:return: Returns the result object.
|
|
83
83
|
""" # noqa: E501
|
|
84
84
|
|
|
85
|
-
_param = self.
|
|
86
|
-
|
|
85
|
+
_param = self._attach_public_ipto_virtual_machine_serialize(
|
|
86
|
+
vm_id=vm_id,
|
|
87
87
|
_request_auth=_request_auth,
|
|
88
88
|
_content_type=_content_type,
|
|
89
89
|
_headers=_headers,
|
|
@@ -94,6 +94,7 @@ class FloatingIpApi:
|
|
|
94
94
|
'200': "ResponseModel",
|
|
95
95
|
'400': "ErrorResponseModel",
|
|
96
96
|
'401': "ErrorResponseModel",
|
|
97
|
+
'402': "ErrorResponseModel",
|
|
97
98
|
'404': "ErrorResponseModel",
|
|
98
99
|
'500': None,
|
|
99
100
|
}
|
|
@@ -109,9 +110,9 @@ class FloatingIpApi:
|
|
|
109
110
|
|
|
110
111
|
|
|
111
112
|
@validate_call
|
|
112
|
-
def
|
|
113
|
+
def attach_public_ipto_virtual_machine_with_http_info(
|
|
113
114
|
self,
|
|
114
|
-
|
|
115
|
+
vm_id: StrictInt,
|
|
115
116
|
_request_timeout: Union[
|
|
116
117
|
None,
|
|
117
118
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -127,10 +128,10 @@ class FloatingIpApi:
|
|
|
127
128
|
) -> ApiResponse[ResponseModel]:
|
|
128
129
|
"""Attach public IP to virtual machine
|
|
129
130
|
|
|
130
|
-
Initiates the creation of a public IP address and attaches it to an existing virtual machine, making it accessible through the internet. Include the virtual machine ID in the path to attach a public IP to the specified VM. For more information on public IP addresses, [**click here**](https://
|
|
131
|
+
Initiates the creation of a public IP address and attaches it to an existing virtual machine, making it accessible through the internet. Include the virtual machine ID in the path to attach a public IP to the specified VM. For more information on public IP addresses, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/floating-ip/attach-floating-ip/).
|
|
131
132
|
|
|
132
|
-
:param
|
|
133
|
-
:type
|
|
133
|
+
:param vm_id: (required)
|
|
134
|
+
:type vm_id: int
|
|
134
135
|
:param _request_timeout: timeout setting for this request. If one
|
|
135
136
|
number provided, it will be total request
|
|
136
137
|
timeout. It can also be a pair (tuple) of
|
|
@@ -153,8 +154,8 @@ class FloatingIpApi:
|
|
|
153
154
|
:return: Returns the result object.
|
|
154
155
|
""" # noqa: E501
|
|
155
156
|
|
|
156
|
-
_param = self.
|
|
157
|
-
|
|
157
|
+
_param = self._attach_public_ipto_virtual_machine_serialize(
|
|
158
|
+
vm_id=vm_id,
|
|
158
159
|
_request_auth=_request_auth,
|
|
159
160
|
_content_type=_content_type,
|
|
160
161
|
_headers=_headers,
|
|
@@ -165,6 +166,7 @@ class FloatingIpApi:
|
|
|
165
166
|
'200': "ResponseModel",
|
|
166
167
|
'400': "ErrorResponseModel",
|
|
167
168
|
'401': "ErrorResponseModel",
|
|
169
|
+
'402': "ErrorResponseModel",
|
|
168
170
|
'404': "ErrorResponseModel",
|
|
169
171
|
'500': None,
|
|
170
172
|
}
|
|
@@ -180,9 +182,9 @@ class FloatingIpApi:
|
|
|
180
182
|
|
|
181
183
|
|
|
182
184
|
@validate_call
|
|
183
|
-
def
|
|
185
|
+
def attach_public_ipto_virtual_machine_without_preload_content(
|
|
184
186
|
self,
|
|
185
|
-
|
|
187
|
+
vm_id: StrictInt,
|
|
186
188
|
_request_timeout: Union[
|
|
187
189
|
None,
|
|
188
190
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -198,10 +200,10 @@ class FloatingIpApi:
|
|
|
198
200
|
) -> RESTResponseType:
|
|
199
201
|
"""Attach public IP to virtual machine
|
|
200
202
|
|
|
201
|
-
Initiates the creation of a public IP address and attaches it to an existing virtual machine, making it accessible through the internet. Include the virtual machine ID in the path to attach a public IP to the specified VM. For more information on public IP addresses, [**click here**](https://
|
|
203
|
+
Initiates the creation of a public IP address and attaches it to an existing virtual machine, making it accessible through the internet. Include the virtual machine ID in the path to attach a public IP to the specified VM. For more information on public IP addresses, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/floating-ip/attach-floating-ip/).
|
|
202
204
|
|
|
203
|
-
:param
|
|
204
|
-
:type
|
|
205
|
+
:param vm_id: (required)
|
|
206
|
+
:type vm_id: int
|
|
205
207
|
:param _request_timeout: timeout setting for this request. If one
|
|
206
208
|
number provided, it will be total request
|
|
207
209
|
timeout. It can also be a pair (tuple) of
|
|
@@ -224,8 +226,8 @@ class FloatingIpApi:
|
|
|
224
226
|
:return: Returns the result object.
|
|
225
227
|
""" # noqa: E501
|
|
226
228
|
|
|
227
|
-
_param = self.
|
|
228
|
-
|
|
229
|
+
_param = self._attach_public_ipto_virtual_machine_serialize(
|
|
230
|
+
vm_id=vm_id,
|
|
229
231
|
_request_auth=_request_auth,
|
|
230
232
|
_content_type=_content_type,
|
|
231
233
|
_headers=_headers,
|
|
@@ -236,6 +238,7 @@ class FloatingIpApi:
|
|
|
236
238
|
'200': "ResponseModel",
|
|
237
239
|
'400': "ErrorResponseModel",
|
|
238
240
|
'401': "ErrorResponseModel",
|
|
241
|
+
'402': "ErrorResponseModel",
|
|
239
242
|
'404': "ErrorResponseModel",
|
|
240
243
|
'500': None,
|
|
241
244
|
}
|
|
@@ -246,9 +249,9 @@ class FloatingIpApi:
|
|
|
246
249
|
return response_data.response
|
|
247
250
|
|
|
248
251
|
|
|
249
|
-
def
|
|
252
|
+
def _attach_public_ipto_virtual_machine_serialize(
|
|
250
253
|
self,
|
|
251
|
-
|
|
254
|
+
vm_id,
|
|
252
255
|
_request_auth,
|
|
253
256
|
_content_type,
|
|
254
257
|
_headers,
|
|
@@ -270,8 +273,8 @@ class FloatingIpApi:
|
|
|
270
273
|
_body_params: Optional[bytes] = None
|
|
271
274
|
|
|
272
275
|
# process the path parameters
|
|
273
|
-
if
|
|
274
|
-
_path_params['
|
|
276
|
+
if vm_id is not None:
|
|
277
|
+
_path_params['vm_id'] = vm_id
|
|
275
278
|
# process the query parameters
|
|
276
279
|
# process the header parameters
|
|
277
280
|
# process the form parameters
|
|
@@ -289,13 +292,12 @@ class FloatingIpApi:
|
|
|
289
292
|
|
|
290
293
|
# authentication setting
|
|
291
294
|
_auth_settings: List[str] = [
|
|
292
|
-
'apiKey'
|
|
293
|
-
'accessToken'
|
|
295
|
+
'apiKey'
|
|
294
296
|
]
|
|
295
297
|
|
|
296
298
|
return self.api_client.param_serialize(
|
|
297
299
|
method='POST',
|
|
298
|
-
resource_path='/core/virtual-machines/{
|
|
300
|
+
resource_path='/core/virtual-machines/{vm_id}/attach-floatingip',
|
|
299
301
|
path_params=_path_params,
|
|
300
302
|
query_params=_query_params,
|
|
301
303
|
header_params=_header_params,
|
|
@@ -314,7 +316,7 @@ class FloatingIpApi:
|
|
|
314
316
|
@validate_call
|
|
315
317
|
def detach_public_ip_from_virtual_machine(
|
|
316
318
|
self,
|
|
317
|
-
|
|
319
|
+
vm_id: StrictInt,
|
|
318
320
|
_request_timeout: Union[
|
|
319
321
|
None,
|
|
320
322
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -330,10 +332,10 @@ class FloatingIpApi:
|
|
|
330
332
|
) -> ResponseModel:
|
|
331
333
|
"""Detach public IP from virtual machine
|
|
332
334
|
|
|
333
|
-
Removes a public IP address from an existing virtual machine, disabling internet accessibility to the VM. Include the virtual machine ID in the path to detach the public IP from the specified VM. For more information on public IP addresses, [**click here**](https://
|
|
335
|
+
Removes a public IP address from an existing virtual machine, disabling internet accessibility to the VM. Include the virtual machine ID in the path to detach the public IP from the specified VM. For more information on public IP addresses, [**click here**](https://docs...cloud/docs/virtual-machines/public-ip).
|
|
334
336
|
|
|
335
|
-
:param
|
|
336
|
-
:type
|
|
337
|
+
:param vm_id: (required)
|
|
338
|
+
:type vm_id: int
|
|
337
339
|
:param _request_timeout: timeout setting for this request. If one
|
|
338
340
|
number provided, it will be total request
|
|
339
341
|
timeout. It can also be a pair (tuple) of
|
|
@@ -357,7 +359,7 @@ class FloatingIpApi:
|
|
|
357
359
|
""" # noqa: E501
|
|
358
360
|
|
|
359
361
|
_param = self._detach_public_ip_from_virtual_machine_serialize(
|
|
360
|
-
|
|
362
|
+
vm_id=vm_id,
|
|
361
363
|
_request_auth=_request_auth,
|
|
362
364
|
_content_type=_content_type,
|
|
363
365
|
_headers=_headers,
|
|
@@ -385,7 +387,7 @@ class FloatingIpApi:
|
|
|
385
387
|
@validate_call
|
|
386
388
|
def detach_public_ip_from_virtual_machine_with_http_info(
|
|
387
389
|
self,
|
|
388
|
-
|
|
390
|
+
vm_id: StrictInt,
|
|
389
391
|
_request_timeout: Union[
|
|
390
392
|
None,
|
|
391
393
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -401,10 +403,10 @@ class FloatingIpApi:
|
|
|
401
403
|
) -> ApiResponse[ResponseModel]:
|
|
402
404
|
"""Detach public IP from virtual machine
|
|
403
405
|
|
|
404
|
-
Removes a public IP address from an existing virtual machine, disabling internet accessibility to the VM. Include the virtual machine ID in the path to detach the public IP from the specified VM. For more information on public IP addresses, [**click here**](https://
|
|
406
|
+
Removes a public IP address from an existing virtual machine, disabling internet accessibility to the VM. Include the virtual machine ID in the path to detach the public IP from the specified VM. For more information on public IP addresses, [**click here**](https://docs...cloud/docs/virtual-machines/public-ip).
|
|
405
407
|
|
|
406
|
-
:param
|
|
407
|
-
:type
|
|
408
|
+
:param vm_id: (required)
|
|
409
|
+
:type vm_id: int
|
|
408
410
|
:param _request_timeout: timeout setting for this request. If one
|
|
409
411
|
number provided, it will be total request
|
|
410
412
|
timeout. It can also be a pair (tuple) of
|
|
@@ -428,7 +430,7 @@ class FloatingIpApi:
|
|
|
428
430
|
""" # noqa: E501
|
|
429
431
|
|
|
430
432
|
_param = self._detach_public_ip_from_virtual_machine_serialize(
|
|
431
|
-
|
|
433
|
+
vm_id=vm_id,
|
|
432
434
|
_request_auth=_request_auth,
|
|
433
435
|
_content_type=_content_type,
|
|
434
436
|
_headers=_headers,
|
|
@@ -456,7 +458,7 @@ class FloatingIpApi:
|
|
|
456
458
|
@validate_call
|
|
457
459
|
def detach_public_ip_from_virtual_machine_without_preload_content(
|
|
458
460
|
self,
|
|
459
|
-
|
|
461
|
+
vm_id: StrictInt,
|
|
460
462
|
_request_timeout: Union[
|
|
461
463
|
None,
|
|
462
464
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -472,10 +474,10 @@ class FloatingIpApi:
|
|
|
472
474
|
) -> RESTResponseType:
|
|
473
475
|
"""Detach public IP from virtual machine
|
|
474
476
|
|
|
475
|
-
Removes a public IP address from an existing virtual machine, disabling internet accessibility to the VM. Include the virtual machine ID in the path to detach the public IP from the specified VM. For more information on public IP addresses, [**click here**](https://
|
|
477
|
+
Removes a public IP address from an existing virtual machine, disabling internet accessibility to the VM. Include the virtual machine ID in the path to detach the public IP from the specified VM. For more information on public IP addresses, [**click here**](https://docs...cloud/docs/virtual-machines/public-ip).
|
|
476
478
|
|
|
477
|
-
:param
|
|
478
|
-
:type
|
|
479
|
+
:param vm_id: (required)
|
|
480
|
+
:type vm_id: int
|
|
479
481
|
:param _request_timeout: timeout setting for this request. If one
|
|
480
482
|
number provided, it will be total request
|
|
481
483
|
timeout. It can also be a pair (tuple) of
|
|
@@ -499,7 +501,7 @@ class FloatingIpApi:
|
|
|
499
501
|
""" # noqa: E501
|
|
500
502
|
|
|
501
503
|
_param = self._detach_public_ip_from_virtual_machine_serialize(
|
|
502
|
-
|
|
504
|
+
vm_id=vm_id,
|
|
503
505
|
_request_auth=_request_auth,
|
|
504
506
|
_content_type=_content_type,
|
|
505
507
|
_headers=_headers,
|
|
@@ -522,7 +524,7 @@ class FloatingIpApi:
|
|
|
522
524
|
|
|
523
525
|
def _detach_public_ip_from_virtual_machine_serialize(
|
|
524
526
|
self,
|
|
525
|
-
|
|
527
|
+
vm_id,
|
|
526
528
|
_request_auth,
|
|
527
529
|
_content_type,
|
|
528
530
|
_headers,
|
|
@@ -544,8 +546,8 @@ class FloatingIpApi:
|
|
|
544
546
|
_body_params: Optional[bytes] = None
|
|
545
547
|
|
|
546
548
|
# process the path parameters
|
|
547
|
-
if
|
|
548
|
-
_path_params['
|
|
549
|
+
if vm_id is not None:
|
|
550
|
+
_path_params['vm_id'] = vm_id
|
|
549
551
|
# process the query parameters
|
|
550
552
|
# process the header parameters
|
|
551
553
|
# process the form parameters
|
|
@@ -563,13 +565,12 @@ class FloatingIpApi:
|
|
|
563
565
|
|
|
564
566
|
# authentication setting
|
|
565
567
|
_auth_settings: List[str] = [
|
|
566
|
-
'apiKey'
|
|
567
|
-
'accessToken'
|
|
568
|
+
'apiKey'
|
|
568
569
|
]
|
|
569
570
|
|
|
570
571
|
return self.api_client.param_serialize(
|
|
571
572
|
method='POST',
|
|
572
|
-
resource_path='/core/virtual-machines/{
|
|
573
|
+
resource_path='/core/virtual-machines/{vm_id}/detach-floatingip',
|
|
573
574
|
path_params=_path_params,
|
|
574
575
|
query_params=_query_params,
|
|
575
576
|
header_params=_header_params,
|
hyperstack/api/gpu_api.py
CHANGED
hyperstack/api/image_api.py
CHANGED
|
@@ -43,7 +43,7 @@ class ImageApi:
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
@validate_call
|
|
46
|
-
def
|
|
46
|
+
def delete_image(
|
|
47
47
|
self,
|
|
48
48
|
id: StrictInt,
|
|
49
49
|
_request_timeout: Union[
|
|
@@ -87,7 +87,7 @@ class ImageApi:
|
|
|
87
87
|
:return: Returns the result object.
|
|
88
88
|
""" # noqa: E501
|
|
89
89
|
|
|
90
|
-
_param = self.
|
|
90
|
+
_param = self._delete_image_serialize(
|
|
91
91
|
id=id,
|
|
92
92
|
_request_auth=_request_auth,
|
|
93
93
|
_content_type=_content_type,
|
|
@@ -114,7 +114,7 @@ class ImageApi:
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
@validate_call
|
|
117
|
-
def
|
|
117
|
+
def delete_image_with_http_info(
|
|
118
118
|
self,
|
|
119
119
|
id: StrictInt,
|
|
120
120
|
_request_timeout: Union[
|
|
@@ -158,7 +158,7 @@ class ImageApi:
|
|
|
158
158
|
:return: Returns the result object.
|
|
159
159
|
""" # noqa: E501
|
|
160
160
|
|
|
161
|
-
_param = self.
|
|
161
|
+
_param = self._delete_image_serialize(
|
|
162
162
|
id=id,
|
|
163
163
|
_request_auth=_request_auth,
|
|
164
164
|
_content_type=_content_type,
|
|
@@ -185,7 +185,7 @@ class ImageApi:
|
|
|
185
185
|
|
|
186
186
|
|
|
187
187
|
@validate_call
|
|
188
|
-
def
|
|
188
|
+
def delete_image_without_preload_content(
|
|
189
189
|
self,
|
|
190
190
|
id: StrictInt,
|
|
191
191
|
_request_timeout: Union[
|
|
@@ -229,7 +229,7 @@ class ImageApi:
|
|
|
229
229
|
:return: Returns the result object.
|
|
230
230
|
""" # noqa: E501
|
|
231
231
|
|
|
232
|
-
_param = self.
|
|
232
|
+
_param = self._delete_image_serialize(
|
|
233
233
|
id=id,
|
|
234
234
|
_request_auth=_request_auth,
|
|
235
235
|
_content_type=_content_type,
|
|
@@ -251,7 +251,7 @@ class ImageApi:
|
|
|
251
251
|
return response_data.response
|
|
252
252
|
|
|
253
253
|
|
|
254
|
-
def
|
|
254
|
+
def _delete_image_serialize(
|
|
255
255
|
self,
|
|
256
256
|
id,
|
|
257
257
|
_request_auth,
|
|
@@ -294,8 +294,7 @@ class ImageApi:
|
|
|
294
294
|
|
|
295
295
|
# authentication setting
|
|
296
296
|
_auth_settings: List[str] = [
|
|
297
|
-
'apiKey'
|
|
298
|
-
'accessToken'
|
|
297
|
+
'apiKey'
|
|
299
298
|
]
|
|
300
299
|
|
|
301
300
|
return self.api_client.param_serialize(
|
|
@@ -317,7 +316,7 @@ class ImageApi:
|
|
|
317
316
|
|
|
318
317
|
|
|
319
318
|
@validate_call
|
|
320
|
-
def
|
|
319
|
+
def fetch_image_name_availability(
|
|
321
320
|
self,
|
|
322
321
|
name: StrictStr,
|
|
323
322
|
_request_timeout: Union[
|
|
@@ -361,7 +360,7 @@ class ImageApi:
|
|
|
361
360
|
:return: Returns the result object.
|
|
362
361
|
""" # noqa: E501
|
|
363
362
|
|
|
364
|
-
_param = self.
|
|
363
|
+
_param = self._fetch_image_name_availability_serialize(
|
|
365
364
|
name=name,
|
|
366
365
|
_request_auth=_request_auth,
|
|
367
366
|
_content_type=_content_type,
|
|
@@ -388,7 +387,7 @@ class ImageApi:
|
|
|
388
387
|
|
|
389
388
|
|
|
390
389
|
@validate_call
|
|
391
|
-
def
|
|
390
|
+
def fetch_image_name_availability_with_http_info(
|
|
392
391
|
self,
|
|
393
392
|
name: StrictStr,
|
|
394
393
|
_request_timeout: Union[
|
|
@@ -432,7 +431,7 @@ class ImageApi:
|
|
|
432
431
|
:return: Returns the result object.
|
|
433
432
|
""" # noqa: E501
|
|
434
433
|
|
|
435
|
-
_param = self.
|
|
434
|
+
_param = self._fetch_image_name_availability_serialize(
|
|
436
435
|
name=name,
|
|
437
436
|
_request_auth=_request_auth,
|
|
438
437
|
_content_type=_content_type,
|
|
@@ -459,7 +458,7 @@ class ImageApi:
|
|
|
459
458
|
|
|
460
459
|
|
|
461
460
|
@validate_call
|
|
462
|
-
def
|
|
461
|
+
def fetch_image_name_availability_without_preload_content(
|
|
463
462
|
self,
|
|
464
463
|
name: StrictStr,
|
|
465
464
|
_request_timeout: Union[
|
|
@@ -503,7 +502,7 @@ class ImageApi:
|
|
|
503
502
|
:return: Returns the result object.
|
|
504
503
|
""" # noqa: E501
|
|
505
504
|
|
|
506
|
-
_param = self.
|
|
505
|
+
_param = self._fetch_image_name_availability_serialize(
|
|
507
506
|
name=name,
|
|
508
507
|
_request_auth=_request_auth,
|
|
509
508
|
_content_type=_content_type,
|
|
@@ -525,7 +524,7 @@ class ImageApi:
|
|
|
525
524
|
return response_data.response
|
|
526
525
|
|
|
527
526
|
|
|
528
|
-
def
|
|
527
|
+
def _fetch_image_name_availability_serialize(
|
|
529
528
|
self,
|
|
530
529
|
name,
|
|
531
530
|
_request_auth,
|
|
@@ -568,8 +567,7 @@ class ImageApi:
|
|
|
568
567
|
|
|
569
568
|
# authentication setting
|
|
570
569
|
_auth_settings: List[str] = [
|
|
571
|
-
'apiKey'
|
|
572
|
-
'accessToken'
|
|
570
|
+
'apiKey'
|
|
573
571
|
]
|
|
574
572
|
|
|
575
573
|
return self.api_client.param_serialize(
|
|
@@ -591,7 +589,7 @@ class ImageApi:
|
|
|
591
589
|
|
|
592
590
|
|
|
593
591
|
@validate_call
|
|
594
|
-
def
|
|
592
|
+
def get_image_details(
|
|
595
593
|
self,
|
|
596
594
|
id: StrictInt,
|
|
597
595
|
include_related_vms: Optional[StrictBool] = None,
|
|
@@ -638,7 +636,7 @@ class ImageApi:
|
|
|
638
636
|
:return: Returns the result object.
|
|
639
637
|
""" # noqa: E501
|
|
640
638
|
|
|
641
|
-
_param = self.
|
|
639
|
+
_param = self._get_image_details_serialize(
|
|
642
640
|
id=id,
|
|
643
641
|
include_related_vms=include_related_vms,
|
|
644
642
|
_request_auth=_request_auth,
|
|
@@ -666,7 +664,7 @@ class ImageApi:
|
|
|
666
664
|
|
|
667
665
|
|
|
668
666
|
@validate_call
|
|
669
|
-
def
|
|
667
|
+
def get_image_details_with_http_info(
|
|
670
668
|
self,
|
|
671
669
|
id: StrictInt,
|
|
672
670
|
include_related_vms: Optional[StrictBool] = None,
|
|
@@ -713,7 +711,7 @@ class ImageApi:
|
|
|
713
711
|
:return: Returns the result object.
|
|
714
712
|
""" # noqa: E501
|
|
715
713
|
|
|
716
|
-
_param = self.
|
|
714
|
+
_param = self._get_image_details_serialize(
|
|
717
715
|
id=id,
|
|
718
716
|
include_related_vms=include_related_vms,
|
|
719
717
|
_request_auth=_request_auth,
|
|
@@ -741,7 +739,7 @@ class ImageApi:
|
|
|
741
739
|
|
|
742
740
|
|
|
743
741
|
@validate_call
|
|
744
|
-
def
|
|
742
|
+
def get_image_details_without_preload_content(
|
|
745
743
|
self,
|
|
746
744
|
id: StrictInt,
|
|
747
745
|
include_related_vms: Optional[StrictBool] = None,
|
|
@@ -788,7 +786,7 @@ class ImageApi:
|
|
|
788
786
|
:return: Returns the result object.
|
|
789
787
|
""" # noqa: E501
|
|
790
788
|
|
|
791
|
-
_param = self.
|
|
789
|
+
_param = self._get_image_details_serialize(
|
|
792
790
|
id=id,
|
|
793
791
|
include_related_vms=include_related_vms,
|
|
794
792
|
_request_auth=_request_auth,
|
|
@@ -811,7 +809,7 @@ class ImageApi:
|
|
|
811
809
|
return response_data.response
|
|
812
810
|
|
|
813
811
|
|
|
814
|
-
def
|
|
812
|
+
def _get_image_details_serialize(
|
|
815
813
|
self,
|
|
816
814
|
id,
|
|
817
815
|
include_related_vms,
|
|
@@ -859,8 +857,7 @@ class ImageApi:
|
|
|
859
857
|
|
|
860
858
|
# authentication setting
|
|
861
859
|
_auth_settings: List[str] = [
|
|
862
|
-
'apiKey'
|
|
863
|
-
'accessToken'
|
|
860
|
+
'apiKey'
|
|
864
861
|
]
|
|
865
862
|
|
|
866
863
|
return self.api_client.param_serialize(
|
|
@@ -882,7 +879,7 @@ class ImageApi:
|
|
|
882
879
|
|
|
883
880
|
|
|
884
881
|
@validate_call
|
|
885
|
-
def
|
|
882
|
+
def list_images2(
|
|
886
883
|
self,
|
|
887
884
|
region: Annotated[Optional[StrictStr], Field(description="Region Name")] = None,
|
|
888
885
|
include_public: Annotated[Optional[StrictBool], Field(description="Flag to include public images in the response (true/false). Default is true.")] = None,
|
|
@@ -904,7 +901,7 @@ class ImageApi:
|
|
|
904
901
|
) -> Images:
|
|
905
902
|
"""List Images
|
|
906
903
|
|
|
907
|
-
Returns a list of all available operating system (OS) images, providing details about each image's corresponding virtual machine operating system. You can include the optional `region` parameter in the query string of the request to specifically return OS images from the designated region. Additionally, use the `include_public` parameter to specify whether to include public images in the response. For more information onOS images, [**click here**](https://
|
|
904
|
+
Returns a list of all available operating system (OS) images, providing details about each image's corresponding virtual machine operating system. You can include the optional `region` parameter in the query string of the request to specifically return OS images from the designated region. Additionally, use the `include_public` parameter to specify whether to include public images in the response. For more information onOS images, [**click here**](https://docs...cloud/docs/virtual-machines/images).
|
|
908
905
|
|
|
909
906
|
:param region: Region Name
|
|
910
907
|
:type region: str
|
|
@@ -938,7 +935,7 @@ class ImageApi:
|
|
|
938
935
|
:return: Returns the result object.
|
|
939
936
|
""" # noqa: E501
|
|
940
937
|
|
|
941
|
-
_param = self.
|
|
938
|
+
_param = self._list_images2_serialize(
|
|
942
939
|
region=region,
|
|
943
940
|
include_public=include_public,
|
|
944
941
|
search=search,
|
|
@@ -970,7 +967,7 @@ class ImageApi:
|
|
|
970
967
|
|
|
971
968
|
|
|
972
969
|
@validate_call
|
|
973
|
-
def
|
|
970
|
+
def list_images2_with_http_info(
|
|
974
971
|
self,
|
|
975
972
|
region: Annotated[Optional[StrictStr], Field(description="Region Name")] = None,
|
|
976
973
|
include_public: Annotated[Optional[StrictBool], Field(description="Flag to include public images in the response (true/false). Default is true.")] = None,
|
|
@@ -992,7 +989,7 @@ class ImageApi:
|
|
|
992
989
|
) -> ApiResponse[Images]:
|
|
993
990
|
"""List Images
|
|
994
991
|
|
|
995
|
-
Returns a list of all available operating system (OS) images, providing details about each image's corresponding virtual machine operating system. You can include the optional `region` parameter in the query string of the request to specifically return OS images from the designated region. Additionally, use the `include_public` parameter to specify whether to include public images in the response. For more information onOS images, [**click here**](https://
|
|
992
|
+
Returns a list of all available operating system (OS) images, providing details about each image's corresponding virtual machine operating system. You can include the optional `region` parameter in the query string of the request to specifically return OS images from the designated region. Additionally, use the `include_public` parameter to specify whether to include public images in the response. For more information onOS images, [**click here**](https://docs...cloud/docs/virtual-machines/images).
|
|
996
993
|
|
|
997
994
|
:param region: Region Name
|
|
998
995
|
:type region: str
|
|
@@ -1026,7 +1023,7 @@ class ImageApi:
|
|
|
1026
1023
|
:return: Returns the result object.
|
|
1027
1024
|
""" # noqa: E501
|
|
1028
1025
|
|
|
1029
|
-
_param = self.
|
|
1026
|
+
_param = self._list_images2_serialize(
|
|
1030
1027
|
region=region,
|
|
1031
1028
|
include_public=include_public,
|
|
1032
1029
|
search=search,
|
|
@@ -1058,7 +1055,7 @@ class ImageApi:
|
|
|
1058
1055
|
|
|
1059
1056
|
|
|
1060
1057
|
@validate_call
|
|
1061
|
-
def
|
|
1058
|
+
def list_images2_without_preload_content(
|
|
1062
1059
|
self,
|
|
1063
1060
|
region: Annotated[Optional[StrictStr], Field(description="Region Name")] = None,
|
|
1064
1061
|
include_public: Annotated[Optional[StrictBool], Field(description="Flag to include public images in the response (true/false). Default is true.")] = None,
|
|
@@ -1080,7 +1077,7 @@ class ImageApi:
|
|
|
1080
1077
|
) -> RESTResponseType:
|
|
1081
1078
|
"""List Images
|
|
1082
1079
|
|
|
1083
|
-
Returns a list of all available operating system (OS) images, providing details about each image's corresponding virtual machine operating system. You can include the optional `region` parameter in the query string of the request to specifically return OS images from the designated region. Additionally, use the `include_public` parameter to specify whether to include public images in the response. For more information onOS images, [**click here**](https://
|
|
1080
|
+
Returns a list of all available operating system (OS) images, providing details about each image's corresponding virtual machine operating system. You can include the optional `region` parameter in the query string of the request to specifically return OS images from the designated region. Additionally, use the `include_public` parameter to specify whether to include public images in the response. For more information onOS images, [**click here**](https://docs...cloud/docs/virtual-machines/images).
|
|
1084
1081
|
|
|
1085
1082
|
:param region: Region Name
|
|
1086
1083
|
:type region: str
|
|
@@ -1114,7 +1111,7 @@ class ImageApi:
|
|
|
1114
1111
|
:return: Returns the result object.
|
|
1115
1112
|
""" # noqa: E501
|
|
1116
1113
|
|
|
1117
|
-
_param = self.
|
|
1114
|
+
_param = self._list_images2_serialize(
|
|
1118
1115
|
region=region,
|
|
1119
1116
|
include_public=include_public,
|
|
1120
1117
|
search=search,
|
|
@@ -1141,7 +1138,7 @@ class ImageApi:
|
|
|
1141
1138
|
return response_data.response
|
|
1142
1139
|
|
|
1143
1140
|
|
|
1144
|
-
def
|
|
1141
|
+
def _list_images2_serialize(
|
|
1145
1142
|
self,
|
|
1146
1143
|
region,
|
|
1147
1144
|
include_public,
|
|
@@ -1206,8 +1203,7 @@ class ImageApi:
|
|
|
1206
1203
|
|
|
1207
1204
|
# authentication setting
|
|
1208
1205
|
_auth_settings: List[str] = [
|
|
1209
|
-
'apiKey'
|
|
1210
|
-
'accessToken'
|
|
1206
|
+
'apiKey'
|
|
1211
1207
|
]
|
|
1212
1208
|
|
|
1213
1209
|
return self.api_client.param_serialize(
|