hyperstack 1.25.0a0__py3-none-any.whl → 1.41.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.
- hyperstack/__init__.py +80 -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 +2816 -199
- 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 +77 -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/{verify_api_key_response_model.py → manual_reconciliation_model.py} +13 -13
- 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.2a0.dist-info}/METADATA +2 -2
- hyperstack-1.41.2a0.dist-info/RECORD +350 -0
- {hyperstack-1.25.0a0.dist-info → hyperstack-1.41.2a0.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/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.2a0.dist-info}/top_level.txt +0 -0
hyperstack/api/callbacks_api.py
CHANGED
|
@@ -42,7 +42,7 @@ class CallbacksApi:
|
|
|
42
42
|
@validate_call
|
|
43
43
|
def attach_callback_to_virtual_machine(
|
|
44
44
|
self,
|
|
45
|
-
|
|
45
|
+
vm_id: StrictInt,
|
|
46
46
|
payload: AttachCallbackPayload,
|
|
47
47
|
_request_timeout: Union[
|
|
48
48
|
None,
|
|
@@ -59,10 +59,10 @@ class CallbacksApi:
|
|
|
59
59
|
) -> AttachCallbackResponse:
|
|
60
60
|
"""Attach callback to virtual machine
|
|
61
61
|
|
|
62
|
-
Creates a callback URL for a specified virtual machine, enabling the posting of action events executed on the virtual machine to the specified URL. Provide the callback URL in the request body and the ID of the virtual machine to which it is being attached in the path. For more details on virtual machine callback URLs, [**click here**](https://
|
|
62
|
+
Creates a callback URL for a specified virtual machine, enabling the posting of action events executed on the virtual machine to the specified URL. Provide the callback URL in the request body and the ID of the virtual machine to which it is being attached in the path. For more details on virtual machine callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/attach-callback-vm).
|
|
63
63
|
|
|
64
|
-
:param
|
|
65
|
-
:type
|
|
64
|
+
:param vm_id: (required)
|
|
65
|
+
:type vm_id: int
|
|
66
66
|
:param payload: (required)
|
|
67
67
|
:type payload: AttachCallbackPayload
|
|
68
68
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -88,7 +88,7 @@ class CallbacksApi:
|
|
|
88
88
|
""" # noqa: E501
|
|
89
89
|
|
|
90
90
|
_param = self._attach_callback_to_virtual_machine_serialize(
|
|
91
|
-
|
|
91
|
+
vm_id=vm_id,
|
|
92
92
|
payload=payload,
|
|
93
93
|
_request_auth=_request_auth,
|
|
94
94
|
_content_type=_content_type,
|
|
@@ -117,7 +117,7 @@ class CallbacksApi:
|
|
|
117
117
|
@validate_call
|
|
118
118
|
def attach_callback_to_virtual_machine_with_http_info(
|
|
119
119
|
self,
|
|
120
|
-
|
|
120
|
+
vm_id: StrictInt,
|
|
121
121
|
payload: AttachCallbackPayload,
|
|
122
122
|
_request_timeout: Union[
|
|
123
123
|
None,
|
|
@@ -134,10 +134,10 @@ class CallbacksApi:
|
|
|
134
134
|
) -> ApiResponse[AttachCallbackResponse]:
|
|
135
135
|
"""Attach callback to virtual machine
|
|
136
136
|
|
|
137
|
-
Creates a callback URL for a specified virtual machine, enabling the posting of action events executed on the virtual machine to the specified URL. Provide the callback URL in the request body and the ID of the virtual machine to which it is being attached in the path. For more details on virtual machine callback URLs, [**click here**](https://
|
|
137
|
+
Creates a callback URL for a specified virtual machine, enabling the posting of action events executed on the virtual machine to the specified URL. Provide the callback URL in the request body and the ID of the virtual machine to which it is being attached in the path. For more details on virtual machine callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/attach-callback-vm).
|
|
138
138
|
|
|
139
|
-
:param
|
|
140
|
-
:type
|
|
139
|
+
:param vm_id: (required)
|
|
140
|
+
:type vm_id: int
|
|
141
141
|
:param payload: (required)
|
|
142
142
|
:type payload: AttachCallbackPayload
|
|
143
143
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -163,7 +163,7 @@ class CallbacksApi:
|
|
|
163
163
|
""" # noqa: E501
|
|
164
164
|
|
|
165
165
|
_param = self._attach_callback_to_virtual_machine_serialize(
|
|
166
|
-
|
|
166
|
+
vm_id=vm_id,
|
|
167
167
|
payload=payload,
|
|
168
168
|
_request_auth=_request_auth,
|
|
169
169
|
_content_type=_content_type,
|
|
@@ -192,7 +192,7 @@ class CallbacksApi:
|
|
|
192
192
|
@validate_call
|
|
193
193
|
def attach_callback_to_virtual_machine_without_preload_content(
|
|
194
194
|
self,
|
|
195
|
-
|
|
195
|
+
vm_id: StrictInt,
|
|
196
196
|
payload: AttachCallbackPayload,
|
|
197
197
|
_request_timeout: Union[
|
|
198
198
|
None,
|
|
@@ -209,10 +209,10 @@ class CallbacksApi:
|
|
|
209
209
|
) -> RESTResponseType:
|
|
210
210
|
"""Attach callback to virtual machine
|
|
211
211
|
|
|
212
|
-
Creates a callback URL for a specified virtual machine, enabling the posting of action events executed on the virtual machine to the specified URL. Provide the callback URL in the request body and the ID of the virtual machine to which it is being attached in the path. For more details on virtual machine callback URLs, [**click here**](https://
|
|
212
|
+
Creates a callback URL for a specified virtual machine, enabling the posting of action events executed on the virtual machine to the specified URL. Provide the callback URL in the request body and the ID of the virtual machine to which it is being attached in the path. For more details on virtual machine callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/attach-callback-vm).
|
|
213
213
|
|
|
214
|
-
:param
|
|
215
|
-
:type
|
|
214
|
+
:param vm_id: (required)
|
|
215
|
+
:type vm_id: int
|
|
216
216
|
:param payload: (required)
|
|
217
217
|
:type payload: AttachCallbackPayload
|
|
218
218
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -238,7 +238,7 @@ class CallbacksApi:
|
|
|
238
238
|
""" # noqa: E501
|
|
239
239
|
|
|
240
240
|
_param = self._attach_callback_to_virtual_machine_serialize(
|
|
241
|
-
|
|
241
|
+
vm_id=vm_id,
|
|
242
242
|
payload=payload,
|
|
243
243
|
_request_auth=_request_auth,
|
|
244
244
|
_content_type=_content_type,
|
|
@@ -262,7 +262,7 @@ class CallbacksApi:
|
|
|
262
262
|
|
|
263
263
|
def _attach_callback_to_virtual_machine_serialize(
|
|
264
264
|
self,
|
|
265
|
-
|
|
265
|
+
vm_id,
|
|
266
266
|
payload,
|
|
267
267
|
_request_auth,
|
|
268
268
|
_content_type,
|
|
@@ -285,8 +285,8 @@ class CallbacksApi:
|
|
|
285
285
|
_body_params: Optional[bytes] = None
|
|
286
286
|
|
|
287
287
|
# process the path parameters
|
|
288
|
-
if
|
|
289
|
-
_path_params['
|
|
288
|
+
if vm_id is not None:
|
|
289
|
+
_path_params['vm_id'] = vm_id
|
|
290
290
|
# process the query parameters
|
|
291
291
|
# process the header parameters
|
|
292
292
|
# process the form parameters
|
|
@@ -319,13 +319,12 @@ class CallbacksApi:
|
|
|
319
319
|
|
|
320
320
|
# authentication setting
|
|
321
321
|
_auth_settings: List[str] = [
|
|
322
|
-
'apiKey'
|
|
323
|
-
'accessToken'
|
|
322
|
+
'apiKey'
|
|
324
323
|
]
|
|
325
324
|
|
|
326
325
|
return self.api_client.param_serialize(
|
|
327
326
|
method='POST',
|
|
328
|
-
resource_path='/core/virtual-machines/{
|
|
327
|
+
resource_path='/core/virtual-machines/{vm_id}/attach-callback',
|
|
329
328
|
path_params=_path_params,
|
|
330
329
|
query_params=_query_params,
|
|
331
330
|
header_params=_header_params,
|
|
@@ -344,7 +343,7 @@ class CallbacksApi:
|
|
|
344
343
|
@validate_call
|
|
345
344
|
def attach_callback_to_volume(
|
|
346
345
|
self,
|
|
347
|
-
|
|
346
|
+
volume_id: StrictInt,
|
|
348
347
|
payload: AttachCallbackPayload,
|
|
349
348
|
_request_timeout: Union[
|
|
350
349
|
None,
|
|
@@ -361,10 +360,10 @@ class CallbacksApi:
|
|
|
361
360
|
) -> AttachCallbackResponse:
|
|
362
361
|
"""Attach callback to volume
|
|
363
362
|
|
|
364
|
-
Creates a callback URL for a specified volume, enabling the posting of action events executed on the volume to the specified URL. Provide the callback URL in the request body and the ID of the volume to which it is being attached in the path. For more details on volume callback URLs, [**click here**](https://
|
|
363
|
+
Creates a callback URL for a specified volume, enabling the posting of action events executed on the volume to the specified URL. Provide the callback URL in the request body and the ID of the volume to which it is being attached in the path. For more details on volume callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/attach-callback-volume).
|
|
365
364
|
|
|
366
|
-
:param
|
|
367
|
-
:type
|
|
365
|
+
:param volume_id: (required)
|
|
366
|
+
:type volume_id: int
|
|
368
367
|
:param payload: (required)
|
|
369
368
|
:type payload: AttachCallbackPayload
|
|
370
369
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -390,7 +389,7 @@ class CallbacksApi:
|
|
|
390
389
|
""" # noqa: E501
|
|
391
390
|
|
|
392
391
|
_param = self._attach_callback_to_volume_serialize(
|
|
393
|
-
|
|
392
|
+
volume_id=volume_id,
|
|
394
393
|
payload=payload,
|
|
395
394
|
_request_auth=_request_auth,
|
|
396
395
|
_content_type=_content_type,
|
|
@@ -419,7 +418,7 @@ class CallbacksApi:
|
|
|
419
418
|
@validate_call
|
|
420
419
|
def attach_callback_to_volume_with_http_info(
|
|
421
420
|
self,
|
|
422
|
-
|
|
421
|
+
volume_id: StrictInt,
|
|
423
422
|
payload: AttachCallbackPayload,
|
|
424
423
|
_request_timeout: Union[
|
|
425
424
|
None,
|
|
@@ -436,10 +435,10 @@ class CallbacksApi:
|
|
|
436
435
|
) -> ApiResponse[AttachCallbackResponse]:
|
|
437
436
|
"""Attach callback to volume
|
|
438
437
|
|
|
439
|
-
Creates a callback URL for a specified volume, enabling the posting of action events executed on the volume to the specified URL. Provide the callback URL in the request body and the ID of the volume to which it is being attached in the path. For more details on volume callback URLs, [**click here**](https://
|
|
438
|
+
Creates a callback URL for a specified volume, enabling the posting of action events executed on the volume to the specified URL. Provide the callback URL in the request body and the ID of the volume to which it is being attached in the path. For more details on volume callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/attach-callback-volume).
|
|
440
439
|
|
|
441
|
-
:param
|
|
442
|
-
:type
|
|
440
|
+
:param volume_id: (required)
|
|
441
|
+
:type volume_id: int
|
|
443
442
|
:param payload: (required)
|
|
444
443
|
:type payload: AttachCallbackPayload
|
|
445
444
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -465,7 +464,7 @@ class CallbacksApi:
|
|
|
465
464
|
""" # noqa: E501
|
|
466
465
|
|
|
467
466
|
_param = self._attach_callback_to_volume_serialize(
|
|
468
|
-
|
|
467
|
+
volume_id=volume_id,
|
|
469
468
|
payload=payload,
|
|
470
469
|
_request_auth=_request_auth,
|
|
471
470
|
_content_type=_content_type,
|
|
@@ -494,7 +493,7 @@ class CallbacksApi:
|
|
|
494
493
|
@validate_call
|
|
495
494
|
def attach_callback_to_volume_without_preload_content(
|
|
496
495
|
self,
|
|
497
|
-
|
|
496
|
+
volume_id: StrictInt,
|
|
498
497
|
payload: AttachCallbackPayload,
|
|
499
498
|
_request_timeout: Union[
|
|
500
499
|
None,
|
|
@@ -511,10 +510,10 @@ class CallbacksApi:
|
|
|
511
510
|
) -> RESTResponseType:
|
|
512
511
|
"""Attach callback to volume
|
|
513
512
|
|
|
514
|
-
Creates a callback URL for a specified volume, enabling the posting of action events executed on the volume to the specified URL. Provide the callback URL in the request body and the ID of the volume to which it is being attached in the path. For more details on volume callback URLs, [**click here**](https://
|
|
513
|
+
Creates a callback URL for a specified volume, enabling the posting of action events executed on the volume to the specified URL. Provide the callback URL in the request body and the ID of the volume to which it is being attached in the path. For more details on volume callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/attach-callback-volume).
|
|
515
514
|
|
|
516
|
-
:param
|
|
517
|
-
:type
|
|
515
|
+
:param volume_id: (required)
|
|
516
|
+
:type volume_id: int
|
|
518
517
|
:param payload: (required)
|
|
519
518
|
:type payload: AttachCallbackPayload
|
|
520
519
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -540,7 +539,7 @@ class CallbacksApi:
|
|
|
540
539
|
""" # noqa: E501
|
|
541
540
|
|
|
542
541
|
_param = self._attach_callback_to_volume_serialize(
|
|
543
|
-
|
|
542
|
+
volume_id=volume_id,
|
|
544
543
|
payload=payload,
|
|
545
544
|
_request_auth=_request_auth,
|
|
546
545
|
_content_type=_content_type,
|
|
@@ -564,7 +563,7 @@ class CallbacksApi:
|
|
|
564
563
|
|
|
565
564
|
def _attach_callback_to_volume_serialize(
|
|
566
565
|
self,
|
|
567
|
-
|
|
566
|
+
volume_id,
|
|
568
567
|
payload,
|
|
569
568
|
_request_auth,
|
|
570
569
|
_content_type,
|
|
@@ -587,8 +586,8 @@ class CallbacksApi:
|
|
|
587
586
|
_body_params: Optional[bytes] = None
|
|
588
587
|
|
|
589
588
|
# process the path parameters
|
|
590
|
-
if
|
|
591
|
-
_path_params['
|
|
589
|
+
if volume_id is not None:
|
|
590
|
+
_path_params['volume_id'] = volume_id
|
|
592
591
|
# process the query parameters
|
|
593
592
|
# process the header parameters
|
|
594
593
|
# process the form parameters
|
|
@@ -621,13 +620,12 @@ class CallbacksApi:
|
|
|
621
620
|
|
|
622
621
|
# authentication setting
|
|
623
622
|
_auth_settings: List[str] = [
|
|
624
|
-
'apiKey'
|
|
625
|
-
'accessToken'
|
|
623
|
+
'apiKey'
|
|
626
624
|
]
|
|
627
625
|
|
|
628
626
|
return self.api_client.param_serialize(
|
|
629
627
|
method='POST',
|
|
630
|
-
resource_path='/core/volumes/{
|
|
628
|
+
resource_path='/core/volumes/{volume_id}/attach-callback',
|
|
631
629
|
path_params=_path_params,
|
|
632
630
|
query_params=_query_params,
|
|
633
631
|
header_params=_header_params,
|
|
@@ -646,7 +644,7 @@ class CallbacksApi:
|
|
|
646
644
|
@validate_call
|
|
647
645
|
def delete_virtual_machine_callback(
|
|
648
646
|
self,
|
|
649
|
-
|
|
647
|
+
vm_id: StrictInt,
|
|
650
648
|
_request_timeout: Union[
|
|
651
649
|
None,
|
|
652
650
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -662,10 +660,10 @@ class CallbacksApi:
|
|
|
662
660
|
) -> ResponseModel:
|
|
663
661
|
"""Delete virtual machine callback
|
|
664
662
|
|
|
665
|
-
Permanently deletes the callback URL associated with a specified virtual machine by providing the virtual machine ID in the request path. For additional information on virtual machine callback URLs, [**click here**](https://
|
|
663
|
+
Permanently deletes the callback URL associated with a specified virtual machine by providing the virtual machine ID in the request path. For additional information on virtual machine callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/delete-callback-vm).
|
|
666
664
|
|
|
667
|
-
:param
|
|
668
|
-
:type
|
|
665
|
+
:param vm_id: (required)
|
|
666
|
+
:type vm_id: int
|
|
669
667
|
:param _request_timeout: timeout setting for this request. If one
|
|
670
668
|
number provided, it will be total request
|
|
671
669
|
timeout. It can also be a pair (tuple) of
|
|
@@ -689,7 +687,7 @@ class CallbacksApi:
|
|
|
689
687
|
""" # noqa: E501
|
|
690
688
|
|
|
691
689
|
_param = self._delete_virtual_machine_callback_serialize(
|
|
692
|
-
|
|
690
|
+
vm_id=vm_id,
|
|
693
691
|
_request_auth=_request_auth,
|
|
694
692
|
_content_type=_content_type,
|
|
695
693
|
_headers=_headers,
|
|
@@ -717,7 +715,7 @@ class CallbacksApi:
|
|
|
717
715
|
@validate_call
|
|
718
716
|
def delete_virtual_machine_callback_with_http_info(
|
|
719
717
|
self,
|
|
720
|
-
|
|
718
|
+
vm_id: StrictInt,
|
|
721
719
|
_request_timeout: Union[
|
|
722
720
|
None,
|
|
723
721
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -733,10 +731,10 @@ class CallbacksApi:
|
|
|
733
731
|
) -> ApiResponse[ResponseModel]:
|
|
734
732
|
"""Delete virtual machine callback
|
|
735
733
|
|
|
736
|
-
Permanently deletes the callback URL associated with a specified virtual machine by providing the virtual machine ID in the request path. For additional information on virtual machine callback URLs, [**click here**](https://
|
|
734
|
+
Permanently deletes the callback URL associated with a specified virtual machine by providing the virtual machine ID in the request path. For additional information on virtual machine callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/delete-callback-vm).
|
|
737
735
|
|
|
738
|
-
:param
|
|
739
|
-
:type
|
|
736
|
+
:param vm_id: (required)
|
|
737
|
+
:type vm_id: int
|
|
740
738
|
:param _request_timeout: timeout setting for this request. If one
|
|
741
739
|
number provided, it will be total request
|
|
742
740
|
timeout. It can also be a pair (tuple) of
|
|
@@ -760,7 +758,7 @@ class CallbacksApi:
|
|
|
760
758
|
""" # noqa: E501
|
|
761
759
|
|
|
762
760
|
_param = self._delete_virtual_machine_callback_serialize(
|
|
763
|
-
|
|
761
|
+
vm_id=vm_id,
|
|
764
762
|
_request_auth=_request_auth,
|
|
765
763
|
_content_type=_content_type,
|
|
766
764
|
_headers=_headers,
|
|
@@ -788,7 +786,7 @@ class CallbacksApi:
|
|
|
788
786
|
@validate_call
|
|
789
787
|
def delete_virtual_machine_callback_without_preload_content(
|
|
790
788
|
self,
|
|
791
|
-
|
|
789
|
+
vm_id: StrictInt,
|
|
792
790
|
_request_timeout: Union[
|
|
793
791
|
None,
|
|
794
792
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -804,10 +802,10 @@ class CallbacksApi:
|
|
|
804
802
|
) -> RESTResponseType:
|
|
805
803
|
"""Delete virtual machine callback
|
|
806
804
|
|
|
807
|
-
Permanently deletes the callback URL associated with a specified virtual machine by providing the virtual machine ID in the request path. For additional information on virtual machine callback URLs, [**click here**](https://
|
|
805
|
+
Permanently deletes the callback URL associated with a specified virtual machine by providing the virtual machine ID in the request path. For additional information on virtual machine callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/delete-callback-vm).
|
|
808
806
|
|
|
809
|
-
:param
|
|
810
|
-
:type
|
|
807
|
+
:param vm_id: (required)
|
|
808
|
+
:type vm_id: int
|
|
811
809
|
:param _request_timeout: timeout setting for this request. If one
|
|
812
810
|
number provided, it will be total request
|
|
813
811
|
timeout. It can also be a pair (tuple) of
|
|
@@ -831,7 +829,7 @@ class CallbacksApi:
|
|
|
831
829
|
""" # noqa: E501
|
|
832
830
|
|
|
833
831
|
_param = self._delete_virtual_machine_callback_serialize(
|
|
834
|
-
|
|
832
|
+
vm_id=vm_id,
|
|
835
833
|
_request_auth=_request_auth,
|
|
836
834
|
_content_type=_content_type,
|
|
837
835
|
_headers=_headers,
|
|
@@ -854,7 +852,7 @@ class CallbacksApi:
|
|
|
854
852
|
|
|
855
853
|
def _delete_virtual_machine_callback_serialize(
|
|
856
854
|
self,
|
|
857
|
-
|
|
855
|
+
vm_id,
|
|
858
856
|
_request_auth,
|
|
859
857
|
_content_type,
|
|
860
858
|
_headers,
|
|
@@ -876,8 +874,8 @@ class CallbacksApi:
|
|
|
876
874
|
_body_params: Optional[bytes] = None
|
|
877
875
|
|
|
878
876
|
# process the path parameters
|
|
879
|
-
if
|
|
880
|
-
_path_params['
|
|
877
|
+
if vm_id is not None:
|
|
878
|
+
_path_params['vm_id'] = vm_id
|
|
881
879
|
# process the query parameters
|
|
882
880
|
# process the header parameters
|
|
883
881
|
# process the form parameters
|
|
@@ -895,13 +893,12 @@ class CallbacksApi:
|
|
|
895
893
|
|
|
896
894
|
# authentication setting
|
|
897
895
|
_auth_settings: List[str] = [
|
|
898
|
-
'apiKey'
|
|
899
|
-
'accessToken'
|
|
896
|
+
'apiKey'
|
|
900
897
|
]
|
|
901
898
|
|
|
902
899
|
return self.api_client.param_serialize(
|
|
903
900
|
method='DELETE',
|
|
904
|
-
resource_path='/core/virtual-machines/{
|
|
901
|
+
resource_path='/core/virtual-machines/{vm_id}/delete-callback',
|
|
905
902
|
path_params=_path_params,
|
|
906
903
|
query_params=_query_params,
|
|
907
904
|
header_params=_header_params,
|
|
@@ -920,7 +917,7 @@ class CallbacksApi:
|
|
|
920
917
|
@validate_call
|
|
921
918
|
def delete_volume_callback(
|
|
922
919
|
self,
|
|
923
|
-
|
|
920
|
+
volume_id: StrictInt,
|
|
924
921
|
_request_timeout: Union[
|
|
925
922
|
None,
|
|
926
923
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -936,10 +933,10 @@ class CallbacksApi:
|
|
|
936
933
|
) -> ResponseModel:
|
|
937
934
|
"""Delete volume callback
|
|
938
935
|
|
|
939
|
-
Permanently deletes the callback URL associated with a specified volume by providing the volume ID in the request path. For additional information on volume callback URLs, [**click here**](https://
|
|
936
|
+
Permanently deletes the callback URL associated with a specified volume by providing the volume ID in the request path. For additional information on volume callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/delete-callback-volume).
|
|
940
937
|
|
|
941
|
-
:param
|
|
942
|
-
:type
|
|
938
|
+
:param volume_id: (required)
|
|
939
|
+
:type volume_id: int
|
|
943
940
|
:param _request_timeout: timeout setting for this request. If one
|
|
944
941
|
number provided, it will be total request
|
|
945
942
|
timeout. It can also be a pair (tuple) of
|
|
@@ -963,7 +960,7 @@ class CallbacksApi:
|
|
|
963
960
|
""" # noqa: E501
|
|
964
961
|
|
|
965
962
|
_param = self._delete_volume_callback_serialize(
|
|
966
|
-
|
|
963
|
+
volume_id=volume_id,
|
|
967
964
|
_request_auth=_request_auth,
|
|
968
965
|
_content_type=_content_type,
|
|
969
966
|
_headers=_headers,
|
|
@@ -991,7 +988,7 @@ class CallbacksApi:
|
|
|
991
988
|
@validate_call
|
|
992
989
|
def delete_volume_callback_with_http_info(
|
|
993
990
|
self,
|
|
994
|
-
|
|
991
|
+
volume_id: StrictInt,
|
|
995
992
|
_request_timeout: Union[
|
|
996
993
|
None,
|
|
997
994
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1007,10 +1004,10 @@ class CallbacksApi:
|
|
|
1007
1004
|
) -> ApiResponse[ResponseModel]:
|
|
1008
1005
|
"""Delete volume callback
|
|
1009
1006
|
|
|
1010
|
-
Permanently deletes the callback URL associated with a specified volume by providing the volume ID in the request path. For additional information on volume callback URLs, [**click here**](https://
|
|
1007
|
+
Permanently deletes the callback URL associated with a specified volume by providing the volume ID in the request path. For additional information on volume callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/delete-callback-volume).
|
|
1011
1008
|
|
|
1012
|
-
:param
|
|
1013
|
-
:type
|
|
1009
|
+
:param volume_id: (required)
|
|
1010
|
+
:type volume_id: int
|
|
1014
1011
|
:param _request_timeout: timeout setting for this request. If one
|
|
1015
1012
|
number provided, it will be total request
|
|
1016
1013
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1034,7 +1031,7 @@ class CallbacksApi:
|
|
|
1034
1031
|
""" # noqa: E501
|
|
1035
1032
|
|
|
1036
1033
|
_param = self._delete_volume_callback_serialize(
|
|
1037
|
-
|
|
1034
|
+
volume_id=volume_id,
|
|
1038
1035
|
_request_auth=_request_auth,
|
|
1039
1036
|
_content_type=_content_type,
|
|
1040
1037
|
_headers=_headers,
|
|
@@ -1062,7 +1059,7 @@ class CallbacksApi:
|
|
|
1062
1059
|
@validate_call
|
|
1063
1060
|
def delete_volume_callback_without_preload_content(
|
|
1064
1061
|
self,
|
|
1065
|
-
|
|
1062
|
+
volume_id: StrictInt,
|
|
1066
1063
|
_request_timeout: Union[
|
|
1067
1064
|
None,
|
|
1068
1065
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1078,10 +1075,10 @@ class CallbacksApi:
|
|
|
1078
1075
|
) -> RESTResponseType:
|
|
1079
1076
|
"""Delete volume callback
|
|
1080
1077
|
|
|
1081
|
-
Permanently deletes the callback URL associated with a specified volume by providing the volume ID in the request path. For additional information on volume callback URLs, [**click here**](https://
|
|
1078
|
+
Permanently deletes the callback URL associated with a specified volume by providing the volume ID in the request path. For additional information on volume callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/delete-callback-volume).
|
|
1082
1079
|
|
|
1083
|
-
:param
|
|
1084
|
-
:type
|
|
1080
|
+
:param volume_id: (required)
|
|
1081
|
+
:type volume_id: int
|
|
1085
1082
|
:param _request_timeout: timeout setting for this request. If one
|
|
1086
1083
|
number provided, it will be total request
|
|
1087
1084
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1105,7 +1102,7 @@ class CallbacksApi:
|
|
|
1105
1102
|
""" # noqa: E501
|
|
1106
1103
|
|
|
1107
1104
|
_param = self._delete_volume_callback_serialize(
|
|
1108
|
-
|
|
1105
|
+
volume_id=volume_id,
|
|
1109
1106
|
_request_auth=_request_auth,
|
|
1110
1107
|
_content_type=_content_type,
|
|
1111
1108
|
_headers=_headers,
|
|
@@ -1128,7 +1125,7 @@ class CallbacksApi:
|
|
|
1128
1125
|
|
|
1129
1126
|
def _delete_volume_callback_serialize(
|
|
1130
1127
|
self,
|
|
1131
|
-
|
|
1128
|
+
volume_id,
|
|
1132
1129
|
_request_auth,
|
|
1133
1130
|
_content_type,
|
|
1134
1131
|
_headers,
|
|
@@ -1150,8 +1147,8 @@ class CallbacksApi:
|
|
|
1150
1147
|
_body_params: Optional[bytes] = None
|
|
1151
1148
|
|
|
1152
1149
|
# process the path parameters
|
|
1153
|
-
if
|
|
1154
|
-
_path_params['
|
|
1150
|
+
if volume_id is not None:
|
|
1151
|
+
_path_params['volume_id'] = volume_id
|
|
1155
1152
|
# process the query parameters
|
|
1156
1153
|
# process the header parameters
|
|
1157
1154
|
# process the form parameters
|
|
@@ -1169,13 +1166,12 @@ class CallbacksApi:
|
|
|
1169
1166
|
|
|
1170
1167
|
# authentication setting
|
|
1171
1168
|
_auth_settings: List[str] = [
|
|
1172
|
-
'apiKey'
|
|
1173
|
-
'accessToken'
|
|
1169
|
+
'apiKey'
|
|
1174
1170
|
]
|
|
1175
1171
|
|
|
1176
1172
|
return self.api_client.param_serialize(
|
|
1177
1173
|
method='DELETE',
|
|
1178
|
-
resource_path='/core/volumes/{
|
|
1174
|
+
resource_path='/core/volumes/{volume_id}/delete-callback',
|
|
1179
1175
|
path_params=_path_params,
|
|
1180
1176
|
query_params=_query_params,
|
|
1181
1177
|
header_params=_header_params,
|
|
@@ -1194,7 +1190,7 @@ class CallbacksApi:
|
|
|
1194
1190
|
@validate_call
|
|
1195
1191
|
def update_virtual_machine_callback(
|
|
1196
1192
|
self,
|
|
1197
|
-
|
|
1193
|
+
vm_id: StrictInt,
|
|
1198
1194
|
payload: AttachCallbackPayload,
|
|
1199
1195
|
_request_timeout: Union[
|
|
1200
1196
|
None,
|
|
@@ -1211,10 +1207,10 @@ class CallbacksApi:
|
|
|
1211
1207
|
) -> AttachCallbackResponse:
|
|
1212
1208
|
"""Update virtual machine callback
|
|
1213
1209
|
|
|
1214
|
-
Updates the callback URL for a specified virtual machine. Provide the new callback URL in the request body, along with the ID of the associated virtual machine in the path. For additional information on virtual machine callback URLs, [**click here**](https://
|
|
1210
|
+
Updates the callback URL for a specified virtual machine. Provide the new callback URL in the request body, along with the ID of the associated virtual machine in the path. For additional information on virtual machine callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms).
|
|
1215
1211
|
|
|
1216
|
-
:param
|
|
1217
|
-
:type
|
|
1212
|
+
:param vm_id: (required)
|
|
1213
|
+
:type vm_id: int
|
|
1218
1214
|
:param payload: (required)
|
|
1219
1215
|
:type payload: AttachCallbackPayload
|
|
1220
1216
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1240,7 +1236,7 @@ class CallbacksApi:
|
|
|
1240
1236
|
""" # noqa: E501
|
|
1241
1237
|
|
|
1242
1238
|
_param = self._update_virtual_machine_callback_serialize(
|
|
1243
|
-
|
|
1239
|
+
vm_id=vm_id,
|
|
1244
1240
|
payload=payload,
|
|
1245
1241
|
_request_auth=_request_auth,
|
|
1246
1242
|
_content_type=_content_type,
|
|
@@ -1269,7 +1265,7 @@ class CallbacksApi:
|
|
|
1269
1265
|
@validate_call
|
|
1270
1266
|
def update_virtual_machine_callback_with_http_info(
|
|
1271
1267
|
self,
|
|
1272
|
-
|
|
1268
|
+
vm_id: StrictInt,
|
|
1273
1269
|
payload: AttachCallbackPayload,
|
|
1274
1270
|
_request_timeout: Union[
|
|
1275
1271
|
None,
|
|
@@ -1286,10 +1282,10 @@ class CallbacksApi:
|
|
|
1286
1282
|
) -> ApiResponse[AttachCallbackResponse]:
|
|
1287
1283
|
"""Update virtual machine callback
|
|
1288
1284
|
|
|
1289
|
-
Updates the callback URL for a specified virtual machine. Provide the new callback URL in the request body, along with the ID of the associated virtual machine in the path. For additional information on virtual machine callback URLs, [**click here**](https://
|
|
1285
|
+
Updates the callback URL for a specified virtual machine. Provide the new callback URL in the request body, along with the ID of the associated virtual machine in the path. For additional information on virtual machine callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms).
|
|
1290
1286
|
|
|
1291
|
-
:param
|
|
1292
|
-
:type
|
|
1287
|
+
:param vm_id: (required)
|
|
1288
|
+
:type vm_id: int
|
|
1293
1289
|
:param payload: (required)
|
|
1294
1290
|
:type payload: AttachCallbackPayload
|
|
1295
1291
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1315,7 +1311,7 @@ class CallbacksApi:
|
|
|
1315
1311
|
""" # noqa: E501
|
|
1316
1312
|
|
|
1317
1313
|
_param = self._update_virtual_machine_callback_serialize(
|
|
1318
|
-
|
|
1314
|
+
vm_id=vm_id,
|
|
1319
1315
|
payload=payload,
|
|
1320
1316
|
_request_auth=_request_auth,
|
|
1321
1317
|
_content_type=_content_type,
|
|
@@ -1344,7 +1340,7 @@ class CallbacksApi:
|
|
|
1344
1340
|
@validate_call
|
|
1345
1341
|
def update_virtual_machine_callback_without_preload_content(
|
|
1346
1342
|
self,
|
|
1347
|
-
|
|
1343
|
+
vm_id: StrictInt,
|
|
1348
1344
|
payload: AttachCallbackPayload,
|
|
1349
1345
|
_request_timeout: Union[
|
|
1350
1346
|
None,
|
|
@@ -1361,10 +1357,10 @@ class CallbacksApi:
|
|
|
1361
1357
|
) -> RESTResponseType:
|
|
1362
1358
|
"""Update virtual machine callback
|
|
1363
1359
|
|
|
1364
|
-
Updates the callback URL for a specified virtual machine. Provide the new callback URL in the request body, along with the ID of the associated virtual machine in the path. For additional information on virtual machine callback URLs, [**click here**](https://
|
|
1360
|
+
Updates the callback URL for a specified virtual machine. Provide the new callback URL in the request body, along with the ID of the associated virtual machine in the path. For additional information on virtual machine callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms).
|
|
1365
1361
|
|
|
1366
|
-
:param
|
|
1367
|
-
:type
|
|
1362
|
+
:param vm_id: (required)
|
|
1363
|
+
:type vm_id: int
|
|
1368
1364
|
:param payload: (required)
|
|
1369
1365
|
:type payload: AttachCallbackPayload
|
|
1370
1366
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1390,7 +1386,7 @@ class CallbacksApi:
|
|
|
1390
1386
|
""" # noqa: E501
|
|
1391
1387
|
|
|
1392
1388
|
_param = self._update_virtual_machine_callback_serialize(
|
|
1393
|
-
|
|
1389
|
+
vm_id=vm_id,
|
|
1394
1390
|
payload=payload,
|
|
1395
1391
|
_request_auth=_request_auth,
|
|
1396
1392
|
_content_type=_content_type,
|
|
@@ -1414,7 +1410,7 @@ class CallbacksApi:
|
|
|
1414
1410
|
|
|
1415
1411
|
def _update_virtual_machine_callback_serialize(
|
|
1416
1412
|
self,
|
|
1417
|
-
|
|
1413
|
+
vm_id,
|
|
1418
1414
|
payload,
|
|
1419
1415
|
_request_auth,
|
|
1420
1416
|
_content_type,
|
|
@@ -1437,8 +1433,8 @@ class CallbacksApi:
|
|
|
1437
1433
|
_body_params: Optional[bytes] = None
|
|
1438
1434
|
|
|
1439
1435
|
# process the path parameters
|
|
1440
|
-
if
|
|
1441
|
-
_path_params['
|
|
1436
|
+
if vm_id is not None:
|
|
1437
|
+
_path_params['vm_id'] = vm_id
|
|
1442
1438
|
# process the query parameters
|
|
1443
1439
|
# process the header parameters
|
|
1444
1440
|
# process the form parameters
|
|
@@ -1471,13 +1467,12 @@ class CallbacksApi:
|
|
|
1471
1467
|
|
|
1472
1468
|
# authentication setting
|
|
1473
1469
|
_auth_settings: List[str] = [
|
|
1474
|
-
'apiKey'
|
|
1475
|
-
'accessToken'
|
|
1470
|
+
'apiKey'
|
|
1476
1471
|
]
|
|
1477
1472
|
|
|
1478
1473
|
return self.api_client.param_serialize(
|
|
1479
1474
|
method='PUT',
|
|
1480
|
-
resource_path='/core/virtual-machines/{
|
|
1475
|
+
resource_path='/core/virtual-machines/{vm_id}/update-callback',
|
|
1481
1476
|
path_params=_path_params,
|
|
1482
1477
|
query_params=_query_params,
|
|
1483
1478
|
header_params=_header_params,
|
|
@@ -1496,7 +1491,7 @@ class CallbacksApi:
|
|
|
1496
1491
|
@validate_call
|
|
1497
1492
|
def update_volume_callback(
|
|
1498
1493
|
self,
|
|
1499
|
-
|
|
1494
|
+
volume_id: StrictInt,
|
|
1500
1495
|
payload: AttachCallbackPayload,
|
|
1501
1496
|
_request_timeout: Union[
|
|
1502
1497
|
None,
|
|
@@ -1513,10 +1508,10 @@ class CallbacksApi:
|
|
|
1513
1508
|
) -> AttachCallbackResponse:
|
|
1514
1509
|
"""Update volume callback
|
|
1515
1510
|
|
|
1516
|
-
Updates the callback URL for a specified volume. Provide the new callback URL in the request body, along with the ID of the associated volume in the path. For additional information on volume callback URLs, [**click here**](https://
|
|
1511
|
+
Updates the callback URL for a specified volume. Provide the new callback URL in the request body, along with the ID of the associated volume in the path. For additional information on volume callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/update-callback-volume/).
|
|
1517
1512
|
|
|
1518
|
-
:param
|
|
1519
|
-
:type
|
|
1513
|
+
:param volume_id: (required)
|
|
1514
|
+
:type volume_id: int
|
|
1520
1515
|
:param payload: (required)
|
|
1521
1516
|
:type payload: AttachCallbackPayload
|
|
1522
1517
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1542,7 +1537,7 @@ class CallbacksApi:
|
|
|
1542
1537
|
""" # noqa: E501
|
|
1543
1538
|
|
|
1544
1539
|
_param = self._update_volume_callback_serialize(
|
|
1545
|
-
|
|
1540
|
+
volume_id=volume_id,
|
|
1546
1541
|
payload=payload,
|
|
1547
1542
|
_request_auth=_request_auth,
|
|
1548
1543
|
_content_type=_content_type,
|
|
@@ -1571,7 +1566,7 @@ class CallbacksApi:
|
|
|
1571
1566
|
@validate_call
|
|
1572
1567
|
def update_volume_callback_with_http_info(
|
|
1573
1568
|
self,
|
|
1574
|
-
|
|
1569
|
+
volume_id: StrictInt,
|
|
1575
1570
|
payload: AttachCallbackPayload,
|
|
1576
1571
|
_request_timeout: Union[
|
|
1577
1572
|
None,
|
|
@@ -1588,10 +1583,10 @@ class CallbacksApi:
|
|
|
1588
1583
|
) -> ApiResponse[AttachCallbackResponse]:
|
|
1589
1584
|
"""Update volume callback
|
|
1590
1585
|
|
|
1591
|
-
Updates the callback URL for a specified volume. Provide the new callback URL in the request body, along with the ID of the associated volume in the path. For additional information on volume callback URLs, [**click here**](https://
|
|
1586
|
+
Updates the callback URL for a specified volume. Provide the new callback URL in the request body, along with the ID of the associated volume in the path. For additional information on volume callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/update-callback-volume/).
|
|
1592
1587
|
|
|
1593
|
-
:param
|
|
1594
|
-
:type
|
|
1588
|
+
:param volume_id: (required)
|
|
1589
|
+
:type volume_id: int
|
|
1595
1590
|
:param payload: (required)
|
|
1596
1591
|
:type payload: AttachCallbackPayload
|
|
1597
1592
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1617,7 +1612,7 @@ class CallbacksApi:
|
|
|
1617
1612
|
""" # noqa: E501
|
|
1618
1613
|
|
|
1619
1614
|
_param = self._update_volume_callback_serialize(
|
|
1620
|
-
|
|
1615
|
+
volume_id=volume_id,
|
|
1621
1616
|
payload=payload,
|
|
1622
1617
|
_request_auth=_request_auth,
|
|
1623
1618
|
_content_type=_content_type,
|
|
@@ -1646,7 +1641,7 @@ class CallbacksApi:
|
|
|
1646
1641
|
@validate_call
|
|
1647
1642
|
def update_volume_callback_without_preload_content(
|
|
1648
1643
|
self,
|
|
1649
|
-
|
|
1644
|
+
volume_id: StrictInt,
|
|
1650
1645
|
payload: AttachCallbackPayload,
|
|
1651
1646
|
_request_timeout: Union[
|
|
1652
1647
|
None,
|
|
@@ -1663,10 +1658,10 @@ class CallbacksApi:
|
|
|
1663
1658
|
) -> RESTResponseType:
|
|
1664
1659
|
"""Update volume callback
|
|
1665
1660
|
|
|
1666
|
-
Updates the callback URL for a specified volume. Provide the new callback URL in the request body, along with the ID of the associated volume in the path. For additional information on volume callback URLs, [**click here**](https://
|
|
1661
|
+
Updates the callback URL for a specified volume. Provide the new callback URL in the request body, along with the ID of the associated volume in the path. For additional information on volume callback URLs, [**click here**](https://docs...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/update-callback-volume/).
|
|
1667
1662
|
|
|
1668
|
-
:param
|
|
1669
|
-
:type
|
|
1663
|
+
:param volume_id: (required)
|
|
1664
|
+
:type volume_id: int
|
|
1670
1665
|
:param payload: (required)
|
|
1671
1666
|
:type payload: AttachCallbackPayload
|
|
1672
1667
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1692,7 +1687,7 @@ class CallbacksApi:
|
|
|
1692
1687
|
""" # noqa: E501
|
|
1693
1688
|
|
|
1694
1689
|
_param = self._update_volume_callback_serialize(
|
|
1695
|
-
|
|
1690
|
+
volume_id=volume_id,
|
|
1696
1691
|
payload=payload,
|
|
1697
1692
|
_request_auth=_request_auth,
|
|
1698
1693
|
_content_type=_content_type,
|
|
@@ -1716,7 +1711,7 @@ class CallbacksApi:
|
|
|
1716
1711
|
|
|
1717
1712
|
def _update_volume_callback_serialize(
|
|
1718
1713
|
self,
|
|
1719
|
-
|
|
1714
|
+
volume_id,
|
|
1720
1715
|
payload,
|
|
1721
1716
|
_request_auth,
|
|
1722
1717
|
_content_type,
|
|
@@ -1739,8 +1734,8 @@ class CallbacksApi:
|
|
|
1739
1734
|
_body_params: Optional[bytes] = None
|
|
1740
1735
|
|
|
1741
1736
|
# process the path parameters
|
|
1742
|
-
if
|
|
1743
|
-
_path_params['
|
|
1737
|
+
if volume_id is not None:
|
|
1738
|
+
_path_params['volume_id'] = volume_id
|
|
1744
1739
|
# process the query parameters
|
|
1745
1740
|
# process the header parameters
|
|
1746
1741
|
# process the form parameters
|
|
@@ -1773,13 +1768,12 @@ class CallbacksApi:
|
|
|
1773
1768
|
|
|
1774
1769
|
# authentication setting
|
|
1775
1770
|
_auth_settings: List[str] = [
|
|
1776
|
-
'apiKey'
|
|
1777
|
-
'accessToken'
|
|
1771
|
+
'apiKey'
|
|
1778
1772
|
]
|
|
1779
1773
|
|
|
1780
1774
|
return self.api_client.param_serialize(
|
|
1781
1775
|
method='PUT',
|
|
1782
|
-
resource_path='/core/volumes/{
|
|
1776
|
+
resource_path='/core/volumes/{volume_id}/update-callback',
|
|
1783
1777
|
path_params=_path_params,
|
|
1784
1778
|
query_params=_query_params,
|
|
1785
1779
|
header_params=_header_params,
|