huaweicloudsdkas 3.0.33rc0__py3-none-any.whl → 3.1.176__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.
- huaweicloudsdkas/v1/__init__.py +135 -34
- huaweicloudsdkas/v1/as_async_client.py +3419 -1442
- huaweicloudsdkas/v1/as_client.py +3417 -1441
- huaweicloudsdkas/v1/model/__init__.py +134 -32
- huaweicloudsdkas/v1/model/all_quotas.py +16 -18
- huaweicloudsdkas/v1/model/all_resources.py +62 -29
- huaweicloudsdkas/v1/model/allowed_address_pair.py +108 -0
- huaweicloudsdkas/v1/model/attach_callback_instance_life_cycle_hook_request.py +132 -0
- huaweicloudsdkas/v1/model/attach_callback_instance_life_cycle_hook_response.py +81 -0
- huaweicloudsdkas/v1/model/bandwidth_info.py +194 -0
- huaweicloudsdkas/v1/model/{bandwidth.py → bandwidth_result.py} +52 -46
- huaweicloudsdkas/v1/model/{update_scaling_group_instance_request_body.py → batch_add_instances_option.py} +40 -36
- huaweicloudsdkas/v1/model/batch_add_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_add_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/{batch_delete_scaling_configs_request_body.py → batch_delete_scaling_config_option.py} +20 -23
- huaweicloudsdkas/v1/model/batch_delete_scaling_configs_request.py +17 -21
- huaweicloudsdkas/v1/model/batch_delete_scaling_configs_response.py +13 -13
- huaweicloudsdkas/v1/model/batch_delete_scaling_policies_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_delete_scaling_policies_request.py +104 -0
- huaweicloudsdkas/v1/model/{update_scaling_group_instance_response.py → batch_delete_scaling_policies_response.py} +15 -15
- huaweicloudsdkas/v1/model/batch_enter_standby_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_exit_stand_by_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_pause_scaling_policies_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_pause_scaling_policies_request.py +104 -0
- huaweicloudsdkas/v1/model/batch_pause_scaling_policies_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_protect_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_protect_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_protect_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_remove_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_remove_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_remove_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_resume_scaling_policies_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_resume_scaling_policies_request.py +104 -0
- huaweicloudsdkas/v1/model/batch_resume_scaling_policies_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_set_scaling_instances_standby_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_set_scaling_instances_standby_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_unprotect_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_unprotect_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_unprotect_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_unset_scaling_instances_stantby_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_unset_scaling_instances_stantby_response.py +81 -0
- huaweicloudsdkas/v1/model/{complete_lifecycle_action_request_body.py → callback_life_cycle_hook_option.py} +40 -36
- huaweicloudsdkas/v1/model/close_warm_pool_request.py +107 -0
- huaweicloudsdkas/v1/model/{complete_lifecycle_action_response.py → close_warm_pool_response.py} +15 -15
- huaweicloudsdkas/v1/model/create_group_scheduled_task_request.py +132 -0
- huaweicloudsdkas/v1/model/create_group_scheduled_task_response.py +112 -0
- huaweicloudsdkas/v1/model/{create_life_cycle_hook_request_body.py → create_life_cycle_hook_option.py} +56 -48
- huaweicloudsdkas/v1/model/create_lify_cycle_hook_request.py +24 -24
- huaweicloudsdkas/v1/model/create_lify_cycle_hook_response.py +55 -39
- huaweicloudsdkas/v1/model/{create_notification_request_body.py → create_notification_option.py} +28 -30
- huaweicloudsdkas/v1/model/create_scaling_config_option.py +162 -0
- huaweicloudsdkas/v1/model/create_scaling_config_request.py +17 -21
- huaweicloudsdkas/v1/model/create_scaling_config_response.py +18 -16
- huaweicloudsdkas/v1/model/{create_scaling_group_request_body.py → create_scaling_group_option.py} +286 -135
- huaweicloudsdkas/v1/model/create_scaling_group_request.py +17 -21
- huaweicloudsdkas/v1/model/create_scaling_group_response.py +18 -16
- huaweicloudsdkas/v1/model/create_scaling_notification_request.py +24 -24
- huaweicloudsdkas/v1/model/create_scaling_notification_response.py +28 -22
- huaweicloudsdkas/v1/model/{create_scaling_policy_request_body.py → create_scaling_policy_option.py} +66 -60
- huaweicloudsdkas/v1/model/create_scaling_policy_request.py +17 -21
- huaweicloudsdkas/v1/model/create_scaling_policy_response.py +18 -16
- huaweicloudsdkas/v1/model/create_scaling_policy_v2_option.py +353 -0
- huaweicloudsdkas/v1/model/{create_scaling_tags_request.py → create_scaling_tag_info_request.py} +39 -35
- huaweicloudsdkas/v1/model/create_scaling_tag_info_response.py +81 -0
- huaweicloudsdkas/v1/model/create_scaling_v2_policy_request.py +104 -0
- huaweicloudsdkas/v1/model/create_scaling_v2_policy_response.py +112 -0
- huaweicloudsdkas/v1/model/create_scheduled_task_option.py +155 -0
- huaweicloudsdkas/v1/model/{delete_scaling_tags_request_body.py → create_tags_option.py} +32 -34
- huaweicloudsdkas/v1/model/delete_group_scheduled_task_request.py +135 -0
- huaweicloudsdkas/v1/model/delete_group_scheduled_task_response.py +81 -0
- huaweicloudsdkas/v1/model/delete_lifecycle_hook_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_lifecycle_hook_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_config_request.py +17 -17
- huaweicloudsdkas/v1/model/delete_scaling_config_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_group_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_scaling_group_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_instance_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_scaling_instance_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_notification_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_scaling_notification_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_policy_request.py +17 -17
- huaweicloudsdkas/v1/model/delete_scaling_policy_response.py +13 -13
- huaweicloudsdkas/v1/model/{delete_scaling_tags_request.py → delete_scaling_tag_info_request.py} +39 -35
- huaweicloudsdkas/v1/model/delete_scaling_tag_info_response.py +81 -0
- huaweicloudsdkas/v1/model/{create_scaling_tags_request_body.py → delete_tags_option.py} +34 -36
- huaweicloudsdkas/v1/model/disk_info.py +333 -0
- huaweicloudsdkas/v1/model/disk_result.py +336 -0
- huaweicloudsdkas/v1/model/{eip.py → eip_info.py} +28 -30
- huaweicloudsdkas/v1/model/eip_meta_data.py +166 -0
- huaweicloudsdkas/v1/model/eip_result.py +133 -0
- huaweicloudsdkas/v1/model/execute_scaling_policy_option.py +107 -0
- huaweicloudsdkas/v1/model/execute_scaling_policy_request.py +24 -24
- huaweicloudsdkas/v1/model/execute_scaling_policy_response.py +13 -13
- huaweicloudsdkas/v1/model/instance_config.py +99 -77
- huaweicloudsdkas/v1/model/instance_config_result.py +186 -75
- huaweicloudsdkas/v1/model/instance_hanging_infos.py +47 -37
- huaweicloudsdkas/v1/model/integer_range.py +166 -0
- huaweicloudsdkas/v1/model/interval_alarm_actions_v2.py +245 -0
- huaweicloudsdkas/v1/model/ipv6_bandwidth.py +15 -17
- huaweicloudsdkas/v1/model/job_records.py +52 -40
- huaweicloudsdkas/v1/model/lbaas_listener.py +195 -0
- huaweicloudsdkas/v1/model/lbaas_listeners.py +60 -30
- huaweicloudsdkas/v1/model/lbaas_listeners_result.py +74 -41
- huaweicloudsdkas/v1/model/lifecycle_hook_list.py +52 -40
- huaweicloudsdkas/v1/model/links.py +137 -0
- huaweicloudsdkas/v1/model/list_all_scaling_v2_policies_request.py +398 -0
- huaweicloudsdkas/v1/model/list_all_scaling_v2_policies_response.py +199 -0
- huaweicloudsdkas/v1/model/{delete_scaling_tags_response.py → list_api_versions_request.py} +13 -17
- huaweicloudsdkas/v1/model/list_api_versions_response.py +112 -0
- huaweicloudsdkas/v1/model/list_group_scheduled_tasks_request.py +165 -0
- huaweicloudsdkas/v1/model/list_group_scheduled_tasks_response.py +137 -0
- huaweicloudsdkas/v1/model/list_hook_instances_request.py +24 -20
- huaweicloudsdkas/v1/model/list_hook_instances_response.py +19 -17
- huaweicloudsdkas/v1/model/list_life_cycle_hooks_request.py +17 -17
- huaweicloudsdkas/v1/model/list_life_cycle_hooks_response.py +19 -17
- huaweicloudsdkas/v1/model/list_resource_instances_request.py +24 -24
- huaweicloudsdkas/v1/model/list_resource_instances_response.py +31 -25
- huaweicloudsdkas/v1/model/list_scaling_activity_logs_request.py +49 -33
- huaweicloudsdkas/v1/model/list_scaling_activity_logs_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_activity_v2_logs_request.py +310 -0
- huaweicloudsdkas/v1/model/list_scaling_activity_v2_logs_response.py +199 -0
- huaweicloudsdkas/v1/model/list_scaling_configs_request.py +38 -26
- huaweicloudsdkas/v1/model/list_scaling_configs_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_groups_request.py +77 -32
- huaweicloudsdkas/v1/model/list_scaling_groups_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_instances_request.py +52 -32
- huaweicloudsdkas/v1/model/list_scaling_instances_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_notifications_request.py +17 -17
- huaweicloudsdkas/v1/model/list_scaling_notifications_response.py +19 -17
- huaweicloudsdkas/v1/model/list_scaling_policies_request.py +52 -32
- huaweicloudsdkas/v1/model/list_scaling_policies_response.py +35 -27
- huaweicloudsdkas/v1/model/list_scaling_policy_execute_logs_request.py +77 -45
- huaweicloudsdkas/v1/model/list_scaling_policy_execute_logs_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_resource_id_request.py +24 -20
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_resource_id_response.py +25 -21
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_tenant_id_request.py +17 -17
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_tenant_id_response.py +19 -17
- huaweicloudsdkas/v1/model/list_scaling_v2_policies_request.py +252 -0
- huaweicloudsdkas/v1/model/list_scaling_v2_policies_response.py +199 -0
- huaweicloudsdkas/v1/model/list_warm_pool_instances_request.py +165 -0
- huaweicloudsdkas/v1/model/list_warm_pool_instances_response.py +137 -0
- huaweicloudsdkas/v1/model/matches.py +22 -24
- huaweicloudsdkas/v1/model/meta_data.py +59 -32
- huaweicloudsdkas/v1/model/modify_lb.py +191 -0
- huaweicloudsdkas/v1/model/networks.py +60 -31
- huaweicloudsdkas/v1/model/networks_result.py +191 -0
- huaweicloudsdkas/v1/model/page_info.py +108 -0
- huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_request_body.py → pause_scaling_group_option.py} +20 -23
- huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_request.py → pause_scaling_group_request.py} +30 -30
- huaweicloudsdkas/v1/model/{create_scaling_tags_response.py → pause_scaling_group_response.py} +15 -15
- huaweicloudsdkas/v1/model/{execute_scaling_policy_request_body.py → pause_scaling_policy_option.py} +20 -23
- huaweicloudsdkas/v1/model/pause_scaling_policy_request.py +132 -0
- huaweicloudsdkas/v1/model/pause_scaling_policy_response.py +81 -0
- huaweicloudsdkas/v1/model/{personality.py → personality_info.py} +26 -26
- huaweicloudsdkas/v1/model/personality_result.py +137 -0
- huaweicloudsdkas/v1/model/policy_instance_quotas.py +16 -18
- huaweicloudsdkas/v1/model/policy_instance_resources.py +62 -29
- huaweicloudsdkas/v1/model/public_ip.py +17 -21
- huaweicloudsdkas/v1/model/publicip_result.py +104 -0
- huaweicloudsdkas/v1/model/put_warm_pool_option.py +166 -0
- huaweicloudsdkas/v1/model/{complete_lifecycle_action_request.py → put_warm_pool_request.py} +30 -30
- huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_response.py → put_warm_pool_response.py} +15 -15
- huaweicloudsdkas/v1/model/{show_tags_request_body.py → query_tags_option.py} +91 -77
- huaweicloudsdkas/v1/model/resource_tags.py +20 -20
- huaweicloudsdkas/v1/model/resources.py +31 -27
- huaweicloudsdkas/v1/model/resume_scaling_group_option.py +107 -0
- huaweicloudsdkas/v1/model/{update_scaling_group_instance_request.py → resume_scaling_group_request.py} +30 -30
- huaweicloudsdkas/v1/model/resume_scaling_group_response.py +81 -0
- huaweicloudsdkas/v1/model/resume_scaling_policy_option.py +107 -0
- huaweicloudsdkas/v1/model/resume_scaling_policy_request.py +132 -0
- huaweicloudsdkas/v1/model/resume_scaling_policy_response.py +81 -0
- huaweicloudsdkas/v1/model/scaling_activity_log_list.py +67 -49
- huaweicloudsdkas/v1/model/scaling_activity_log_v2.py +601 -0
- huaweicloudsdkas/v1/model/scaling_all_policy_detail.py +469 -0
- huaweicloudsdkas/v1/model/scaling_configuration.py +68 -35
- huaweicloudsdkas/v1/model/scaling_group_instance.py +62 -46
- huaweicloudsdkas/v1/model/scaling_groups.py +328 -104
- huaweicloudsdkas/v1/model/scaling_instance.py +224 -0
- huaweicloudsdkas/v1/model/scaling_policies_v2.py +469 -0
- huaweicloudsdkas/v1/model/{scaling_policy_action.py → scaling_policy_action_v1.py} +37 -35
- huaweicloudsdkas/v1/model/scaling_policy_action_v2.py +195 -0
- huaweicloudsdkas/v1/model/scaling_policy_execute_log_list.py +105 -81
- huaweicloudsdkas/v1/model/scaling_policy_v2_meta_data.py +166 -0
- huaweicloudsdkas/v1/model/{scaling_policy_detail.py → scaling_v1_policy_detail.py} +110 -71
- huaweicloudsdkas/v1/model/scaling_v2_policy_detail.py +469 -0
- huaweicloudsdkas/v1/model/scheduled_policy.py +38 -33
- huaweicloudsdkas/v1/model/scheduled_task_detail.py +332 -0
- huaweicloudsdkas/v1/model/scheduled_task_policy.py +223 -0
- huaweicloudsdkas/v1/model/security_group.py +107 -0
- huaweicloudsdkas/v1/model/security_groups.py +17 -19
- huaweicloudsdkas/v1/model/security_groups_result.py +15 -17
- huaweicloudsdkas/v1/model/show_api_version_request.py +107 -0
- huaweicloudsdkas/v1/model/show_api_version_response.py +108 -0
- huaweicloudsdkas/v1/model/show_life_cycle_hook_request.py +24 -20
- huaweicloudsdkas/v1/model/show_life_cycle_hook_response.py +55 -39
- huaweicloudsdkas/v1/model/show_policy_and_instance_quota_request.py +17 -17
- huaweicloudsdkas/v1/model/show_policy_and_instance_quota_response.py +32 -32
- huaweicloudsdkas/v1/model/show_resource_quota_request.py +10 -14
- huaweicloudsdkas/v1/model/show_resource_quota_response.py +19 -19
- huaweicloudsdkas/v1/model/show_scaling_config_request.py +17 -17
- huaweicloudsdkas/v1/model/show_scaling_config_response.py +19 -19
- huaweicloudsdkas/v1/model/show_scaling_group_request.py +17 -17
- huaweicloudsdkas/v1/model/show_scaling_group_response.py +19 -19
- huaweicloudsdkas/v1/model/show_scaling_policy_request.py +17 -17
- huaweicloudsdkas/v1/model/show_scaling_policy_response.py +20 -20
- huaweicloudsdkas/v1/model/show_scaling_v2_policy_request.py +107 -0
- huaweicloudsdkas/v1/model/show_scaling_v2_policy_response.py +108 -0
- huaweicloudsdkas/v1/model/show_warm_pool_request.py +107 -0
- huaweicloudsdkas/v1/model/show_warm_pool_response.py +108 -0
- huaweicloudsdkas/v1/model/tags_multi_value.py +26 -28
- huaweicloudsdkas/v1/model/tags_single_value.py +25 -26
- huaweicloudsdkas/v1/model/topics.py +25 -23
- huaweicloudsdkas/v1/model/update_group_scheduled_task_request.py +160 -0
- huaweicloudsdkas/v1/model/update_group_scheduled_task_response.py +81 -0
- huaweicloudsdkas/v1/model/update_instance_config.py +107 -0
- huaweicloudsdkas/v1/model/{update_life_cycle_hook_request_body.py → update_life_cycle_hook_option.py} +49 -43
- huaweicloudsdkas/v1/model/update_life_cycle_hook_request.py +31 -27
- huaweicloudsdkas/v1/model/update_life_cycle_hook_response.py +55 -39
- huaweicloudsdkas/v1/model/update_scaling_config_option.py +103 -0
- huaweicloudsdkas/v1/model/update_scaling_config_request.py +128 -0
- huaweicloudsdkas/v1/model/update_scaling_config_response.py +81 -0
- huaweicloudsdkas/v1/model/{update_scaling_group_request_body.py → update_scaling_group_option.py} +263 -115
- huaweicloudsdkas/v1/model/update_scaling_group_request.py +24 -24
- huaweicloudsdkas/v1/model/update_scaling_group_response.py +18 -16
- huaweicloudsdkas/v1/model/{update_scaling_policy_request_body.py → update_scaling_policy_option.py} +59 -55
- huaweicloudsdkas/v1/model/update_scaling_policy_request.py +24 -24
- huaweicloudsdkas/v1/model/update_scaling_policy_response.py +18 -16
- huaweicloudsdkas/v1/model/update_scaling_v2_policy_option.py +357 -0
- huaweicloudsdkas/v1/model/update_scaling_v2_policy_request.py +132 -0
- huaweicloudsdkas/v1/model/update_scaling_v2_policy_response.py +112 -0
- huaweicloudsdkas/v1/model/update_scheduled_task_option.py +158 -0
- huaweicloudsdkas/v1/model/version_info.py +253 -0
- huaweicloudsdkas/v1/model/vm_meta_data.py +108 -0
- huaweicloudsdkas/v1/model/warm_pool_info.py +195 -0
- huaweicloudsdkas/v1/model/warm_pool_instance.py +195 -0
- huaweicloudsdkas/v1/region/as_region.py +112 -38
- huaweicloudsdkas-3.1.176.dist-info/METADATA +25 -0
- huaweicloudsdkas-3.1.176.dist-info/RECORD +242 -0
- {huaweicloudsdkas-3.0.33rc0.dist-info → huaweicloudsdkas-3.1.176.dist-info}/WHEEL +1 -2
- huaweicloudsdkas/v1/model/create_scaling_config_request_body.py +0 -133
- huaweicloudsdkas/v1/model/disk.py +0 -242
- huaweicloudsdkas-3.0.33rc0.dist-info/METADATA +0 -26
- huaweicloudsdkas-3.0.33rc0.dist-info/RECORD +0 -141
- huaweicloudsdkas-3.0.33rc0.dist-info/top_level.txt +0 -1
- {huaweicloudsdkas-3.0.33rc0.dist-info → huaweicloudsdkas-3.1.176.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import re
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
5
4
|
|
|
6
|
-
import six
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class UpdateLifeCycleHookRequestBody:
|
|
13
5
|
|
|
6
|
+
class UpdateLifeCycleHookOption:
|
|
14
7
|
|
|
15
8
|
"""
|
|
16
9
|
Attributes:
|
|
@@ -19,7 +12,6 @@ class UpdateLifeCycleHookRequestBody:
|
|
|
19
12
|
attribute_map (dict): The key is attribute name
|
|
20
13
|
and the value is json key in definition.
|
|
21
14
|
"""
|
|
22
|
-
|
|
23
15
|
sensitive_list = []
|
|
24
16
|
|
|
25
17
|
openapi_types = {
|
|
@@ -39,7 +31,21 @@ class UpdateLifeCycleHookRequestBody:
|
|
|
39
31
|
}
|
|
40
32
|
|
|
41
33
|
def __init__(self, lifecycle_hook_type=None, default_result=None, default_timeout=None, notification_topic_urn=None, notification_metadata=None):
|
|
42
|
-
"""
|
|
34
|
+
r"""UpdateLifeCycleHookOption
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param lifecycle_hook_type: 生命周期挂钩类型。INSTANCE_TERMINATING。INSTANCE_LAUNCHING。INSTANCE_TERMINATING 类型的挂钩负责在实例终止时将实例挂起,INSTANCE_LAUNCHING 类型的挂钩则是在实例启动时将实例挂起。
|
|
39
|
+
:type lifecycle_hook_type: str
|
|
40
|
+
:param default_result: 生命周期挂钩默认回调操作。默认情况下,到达超时时间后执行的操作。ABANDON;CONTINUE;如果实例正在启动,则 CONTINUE 表示用户自定义操作已成功,可将实例投入使用。否则,ABANDON 表示用户自定义操作未成功,终止实例,伸缩活动置为失败,重新创建新实例。如果实例正在终止,则 ABANDON 和 CONTINUE 都允许终止实例。不过,ABANDON 将停止其他生命周期挂钩,而 CONTINUE 将允许完成其他生命周期挂钩。该字段缺省时默认为 ABANDON。
|
|
41
|
+
:type default_result: str
|
|
42
|
+
:param default_timeout: 生命周期挂钩超时时间,取值范围60-86400,默认为3600,单位是秒。默认情况下,实例保持等待状态的时间。您可以延长超时时间,也可以在超时时间结束前进行 CONTINUE 或 ABANDON 操作。
|
|
43
|
+
:type default_timeout: int
|
|
44
|
+
:param notification_topic_urn: SMN 服务中 Topic 的唯一的资源标识。为生命周期挂钩定义一个通知目标,当实例被生命周期挂钩挂起时向该通知目标发送消息。该消息包含实例的基本信息、用户自定义通知消息,以及可用于控制生命周期操作的令牌信息。
|
|
45
|
+
:type notification_topic_urn: str
|
|
46
|
+
:param notification_metadata: 自定义通知消息,长度不超过256位,不能包含字符< > & ' ( )当配置了通知目标时,可向其发送用户自定义的通知内容。
|
|
47
|
+
:type notification_metadata: str
|
|
48
|
+
"""
|
|
43
49
|
|
|
44
50
|
|
|
45
51
|
|
|
@@ -63,119 +69,118 @@ class UpdateLifeCycleHookRequestBody:
|
|
|
63
69
|
|
|
64
70
|
@property
|
|
65
71
|
def lifecycle_hook_type(self):
|
|
66
|
-
"""Gets the lifecycle_hook_type of this
|
|
72
|
+
r"""Gets the lifecycle_hook_type of this UpdateLifeCycleHookOption.
|
|
67
73
|
|
|
68
74
|
生命周期挂钩类型。INSTANCE_TERMINATING。INSTANCE_LAUNCHING。INSTANCE_TERMINATING 类型的挂钩负责在实例终止时将实例挂起,INSTANCE_LAUNCHING 类型的挂钩则是在实例启动时将实例挂起。
|
|
69
75
|
|
|
70
|
-
:return: The lifecycle_hook_type of this
|
|
76
|
+
:return: The lifecycle_hook_type of this UpdateLifeCycleHookOption.
|
|
71
77
|
:rtype: str
|
|
72
78
|
"""
|
|
73
79
|
return self._lifecycle_hook_type
|
|
74
80
|
|
|
75
81
|
@lifecycle_hook_type.setter
|
|
76
82
|
def lifecycle_hook_type(self, lifecycle_hook_type):
|
|
77
|
-
"""Sets the lifecycle_hook_type of this
|
|
83
|
+
r"""Sets the lifecycle_hook_type of this UpdateLifeCycleHookOption.
|
|
78
84
|
|
|
79
85
|
生命周期挂钩类型。INSTANCE_TERMINATING。INSTANCE_LAUNCHING。INSTANCE_TERMINATING 类型的挂钩负责在实例终止时将实例挂起,INSTANCE_LAUNCHING 类型的挂钩则是在实例启动时将实例挂起。
|
|
80
86
|
|
|
81
|
-
:param lifecycle_hook_type: The lifecycle_hook_type of this
|
|
82
|
-
:type: str
|
|
87
|
+
:param lifecycle_hook_type: The lifecycle_hook_type of this UpdateLifeCycleHookOption.
|
|
88
|
+
:type lifecycle_hook_type: str
|
|
83
89
|
"""
|
|
84
90
|
self._lifecycle_hook_type = lifecycle_hook_type
|
|
85
91
|
|
|
86
92
|
@property
|
|
87
93
|
def default_result(self):
|
|
88
|
-
"""Gets the default_result of this
|
|
94
|
+
r"""Gets the default_result of this UpdateLifeCycleHookOption.
|
|
89
95
|
|
|
90
96
|
生命周期挂钩默认回调操作。默认情况下,到达超时时间后执行的操作。ABANDON;CONTINUE;如果实例正在启动,则 CONTINUE 表示用户自定义操作已成功,可将实例投入使用。否则,ABANDON 表示用户自定义操作未成功,终止实例,伸缩活动置为失败,重新创建新实例。如果实例正在终止,则 ABANDON 和 CONTINUE 都允许终止实例。不过,ABANDON 将停止其他生命周期挂钩,而 CONTINUE 将允许完成其他生命周期挂钩。该字段缺省时默认为 ABANDON。
|
|
91
97
|
|
|
92
|
-
:return: The default_result of this
|
|
98
|
+
:return: The default_result of this UpdateLifeCycleHookOption.
|
|
93
99
|
:rtype: str
|
|
94
100
|
"""
|
|
95
101
|
return self._default_result
|
|
96
102
|
|
|
97
103
|
@default_result.setter
|
|
98
104
|
def default_result(self, default_result):
|
|
99
|
-
"""Sets the default_result of this
|
|
105
|
+
r"""Sets the default_result of this UpdateLifeCycleHookOption.
|
|
100
106
|
|
|
101
107
|
生命周期挂钩默认回调操作。默认情况下,到达超时时间后执行的操作。ABANDON;CONTINUE;如果实例正在启动,则 CONTINUE 表示用户自定义操作已成功,可将实例投入使用。否则,ABANDON 表示用户自定义操作未成功,终止实例,伸缩活动置为失败,重新创建新实例。如果实例正在终止,则 ABANDON 和 CONTINUE 都允许终止实例。不过,ABANDON 将停止其他生命周期挂钩,而 CONTINUE 将允许完成其他生命周期挂钩。该字段缺省时默认为 ABANDON。
|
|
102
108
|
|
|
103
|
-
:param default_result: The default_result of this
|
|
104
|
-
:type: str
|
|
109
|
+
:param default_result: The default_result of this UpdateLifeCycleHookOption.
|
|
110
|
+
:type default_result: str
|
|
105
111
|
"""
|
|
106
112
|
self._default_result = default_result
|
|
107
113
|
|
|
108
114
|
@property
|
|
109
115
|
def default_timeout(self):
|
|
110
|
-
"""Gets the default_timeout of this
|
|
116
|
+
r"""Gets the default_timeout of this UpdateLifeCycleHookOption.
|
|
111
117
|
|
|
112
|
-
生命周期挂钩超时时间,取值范围
|
|
118
|
+
生命周期挂钩超时时间,取值范围60-86400,默认为3600,单位是秒。默认情况下,实例保持等待状态的时间。您可以延长超时时间,也可以在超时时间结束前进行 CONTINUE 或 ABANDON 操作。
|
|
113
119
|
|
|
114
|
-
:return: The default_timeout of this
|
|
120
|
+
:return: The default_timeout of this UpdateLifeCycleHookOption.
|
|
115
121
|
:rtype: int
|
|
116
122
|
"""
|
|
117
123
|
return self._default_timeout
|
|
118
124
|
|
|
119
125
|
@default_timeout.setter
|
|
120
126
|
def default_timeout(self, default_timeout):
|
|
121
|
-
"""Sets the default_timeout of this
|
|
127
|
+
r"""Sets the default_timeout of this UpdateLifeCycleHookOption.
|
|
122
128
|
|
|
123
|
-
生命周期挂钩超时时间,取值范围
|
|
129
|
+
生命周期挂钩超时时间,取值范围60-86400,默认为3600,单位是秒。默认情况下,实例保持等待状态的时间。您可以延长超时时间,也可以在超时时间结束前进行 CONTINUE 或 ABANDON 操作。
|
|
124
130
|
|
|
125
|
-
:param default_timeout: The default_timeout of this
|
|
126
|
-
:type: int
|
|
131
|
+
:param default_timeout: The default_timeout of this UpdateLifeCycleHookOption.
|
|
132
|
+
:type default_timeout: int
|
|
127
133
|
"""
|
|
128
134
|
self._default_timeout = default_timeout
|
|
129
135
|
|
|
130
136
|
@property
|
|
131
137
|
def notification_topic_urn(self):
|
|
132
|
-
"""Gets the notification_topic_urn of this
|
|
138
|
+
r"""Gets the notification_topic_urn of this UpdateLifeCycleHookOption.
|
|
133
139
|
|
|
134
140
|
SMN 服务中 Topic 的唯一的资源标识。为生命周期挂钩定义一个通知目标,当实例被生命周期挂钩挂起时向该通知目标发送消息。该消息包含实例的基本信息、用户自定义通知消息,以及可用于控制生命周期操作的令牌信息。
|
|
135
141
|
|
|
136
|
-
:return: The notification_topic_urn of this
|
|
142
|
+
:return: The notification_topic_urn of this UpdateLifeCycleHookOption.
|
|
137
143
|
:rtype: str
|
|
138
144
|
"""
|
|
139
145
|
return self._notification_topic_urn
|
|
140
146
|
|
|
141
147
|
@notification_topic_urn.setter
|
|
142
148
|
def notification_topic_urn(self, notification_topic_urn):
|
|
143
|
-
"""Sets the notification_topic_urn of this
|
|
149
|
+
r"""Sets the notification_topic_urn of this UpdateLifeCycleHookOption.
|
|
144
150
|
|
|
145
151
|
SMN 服务中 Topic 的唯一的资源标识。为生命周期挂钩定义一个通知目标,当实例被生命周期挂钩挂起时向该通知目标发送消息。该消息包含实例的基本信息、用户自定义通知消息,以及可用于控制生命周期操作的令牌信息。
|
|
146
152
|
|
|
147
|
-
:param notification_topic_urn: The notification_topic_urn of this
|
|
148
|
-
:type: str
|
|
153
|
+
:param notification_topic_urn: The notification_topic_urn of this UpdateLifeCycleHookOption.
|
|
154
|
+
:type notification_topic_urn: str
|
|
149
155
|
"""
|
|
150
156
|
self._notification_topic_urn = notification_topic_urn
|
|
151
157
|
|
|
152
158
|
@property
|
|
153
159
|
def notification_metadata(self):
|
|
154
|
-
"""Gets the notification_metadata of this
|
|
160
|
+
r"""Gets the notification_metadata of this UpdateLifeCycleHookOption.
|
|
155
161
|
|
|
156
162
|
自定义通知消息,长度不超过256位,不能包含字符< > & ' ( )当配置了通知目标时,可向其发送用户自定义的通知内容。
|
|
157
163
|
|
|
158
|
-
:return: The notification_metadata of this
|
|
164
|
+
:return: The notification_metadata of this UpdateLifeCycleHookOption.
|
|
159
165
|
:rtype: str
|
|
160
166
|
"""
|
|
161
167
|
return self._notification_metadata
|
|
162
168
|
|
|
163
169
|
@notification_metadata.setter
|
|
164
170
|
def notification_metadata(self, notification_metadata):
|
|
165
|
-
"""Sets the notification_metadata of this
|
|
171
|
+
r"""Sets the notification_metadata of this UpdateLifeCycleHookOption.
|
|
166
172
|
|
|
167
173
|
自定义通知消息,长度不超过256位,不能包含字符< > & ' ( )当配置了通知目标时,可向其发送用户自定义的通知内容。
|
|
168
174
|
|
|
169
|
-
:param notification_metadata: The notification_metadata of this
|
|
170
|
-
:type: str
|
|
175
|
+
:param notification_metadata: The notification_metadata of this UpdateLifeCycleHookOption.
|
|
176
|
+
:type notification_metadata: str
|
|
171
177
|
"""
|
|
172
178
|
self._notification_metadata = notification_metadata
|
|
173
179
|
|
|
174
180
|
def to_dict(self):
|
|
175
|
-
"""Returns the model properties as a dict"""
|
|
176
181
|
result = {}
|
|
177
182
|
|
|
178
|
-
for attr, _ in
|
|
183
|
+
for attr, _ in self.openapi_types.items():
|
|
179
184
|
value = getattr(self, attr)
|
|
180
185
|
if isinstance(value, list):
|
|
181
186
|
result[attr] = list(map(
|
|
@@ -200,15 +205,16 @@ class UpdateLifeCycleHookRequestBody:
|
|
|
200
205
|
|
|
201
206
|
def to_str(self):
|
|
202
207
|
"""Returns the string representation of the model"""
|
|
203
|
-
|
|
208
|
+
import simplejson as json
|
|
209
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
204
210
|
|
|
205
211
|
def __repr__(self):
|
|
206
|
-
"""For `print`
|
|
212
|
+
"""For `print`"""
|
|
207
213
|
return self.to_str()
|
|
208
214
|
|
|
209
215
|
def __eq__(self, other):
|
|
210
216
|
"""Returns true if both objects are equal"""
|
|
211
|
-
if not isinstance(other,
|
|
217
|
+
if not isinstance(other, UpdateLifeCycleHookOption):
|
|
212
218
|
return False
|
|
213
219
|
|
|
214
220
|
return self.__dict__ == other.__dict__
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
|
-
import six
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
4
|
|
|
11
5
|
|
|
12
6
|
class UpdateLifeCycleHookRequest:
|
|
13
7
|
|
|
14
|
-
|
|
15
8
|
"""
|
|
16
9
|
Attributes:
|
|
17
10
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,13 +12,12 @@ class UpdateLifeCycleHookRequest:
|
|
|
19
12
|
attribute_map (dict): The key is attribute name
|
|
20
13
|
and the value is json key in definition.
|
|
21
14
|
"""
|
|
22
|
-
|
|
23
15
|
sensitive_list = []
|
|
24
16
|
|
|
25
17
|
openapi_types = {
|
|
26
18
|
'scaling_group_id': 'str',
|
|
27
19
|
'lifecycle_hook_name': 'str',
|
|
28
|
-
'body': '
|
|
20
|
+
'body': 'UpdateLifeCycleHookOption'
|
|
29
21
|
}
|
|
30
22
|
|
|
31
23
|
attribute_map = {
|
|
@@ -35,7 +27,17 @@ class UpdateLifeCycleHookRequest:
|
|
|
35
27
|
}
|
|
36
28
|
|
|
37
29
|
def __init__(self, scaling_group_id=None, lifecycle_hook_name=None, body=None):
|
|
38
|
-
"""UpdateLifeCycleHookRequest
|
|
30
|
+
r"""UpdateLifeCycleHookRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param scaling_group_id: 伸缩组标识。
|
|
35
|
+
:type scaling_group_id: str
|
|
36
|
+
:param lifecycle_hook_name: 生命周期挂钩标识。
|
|
37
|
+
:type lifecycle_hook_name: str
|
|
38
|
+
:param body: Body of the UpdateLifeCycleHookRequest
|
|
39
|
+
:type body: :class:`huaweicloudsdkas.v1.UpdateLifeCycleHookOption`
|
|
40
|
+
"""
|
|
39
41
|
|
|
40
42
|
|
|
41
43
|
|
|
@@ -51,8 +53,9 @@ class UpdateLifeCycleHookRequest:
|
|
|
51
53
|
|
|
52
54
|
@property
|
|
53
55
|
def scaling_group_id(self):
|
|
54
|
-
"""Gets the scaling_group_id of this UpdateLifeCycleHookRequest.
|
|
56
|
+
r"""Gets the scaling_group_id of this UpdateLifeCycleHookRequest.
|
|
55
57
|
|
|
58
|
+
伸缩组标识。
|
|
56
59
|
|
|
57
60
|
:return: The scaling_group_id of this UpdateLifeCycleHookRequest.
|
|
58
61
|
:rtype: str
|
|
@@ -61,18 +64,20 @@ class UpdateLifeCycleHookRequest:
|
|
|
61
64
|
|
|
62
65
|
@scaling_group_id.setter
|
|
63
66
|
def scaling_group_id(self, scaling_group_id):
|
|
64
|
-
"""Sets the scaling_group_id of this UpdateLifeCycleHookRequest.
|
|
67
|
+
r"""Sets the scaling_group_id of this UpdateLifeCycleHookRequest.
|
|
65
68
|
|
|
69
|
+
伸缩组标识。
|
|
66
70
|
|
|
67
71
|
:param scaling_group_id: The scaling_group_id of this UpdateLifeCycleHookRequest.
|
|
68
|
-
:type: str
|
|
72
|
+
:type scaling_group_id: str
|
|
69
73
|
"""
|
|
70
74
|
self._scaling_group_id = scaling_group_id
|
|
71
75
|
|
|
72
76
|
@property
|
|
73
77
|
def lifecycle_hook_name(self):
|
|
74
|
-
"""Gets the lifecycle_hook_name of this UpdateLifeCycleHookRequest.
|
|
78
|
+
r"""Gets the lifecycle_hook_name of this UpdateLifeCycleHookRequest.
|
|
75
79
|
|
|
80
|
+
生命周期挂钩标识。
|
|
76
81
|
|
|
77
82
|
:return: The lifecycle_hook_name of this UpdateLifeCycleHookRequest.
|
|
78
83
|
:rtype: str
|
|
@@ -81,39 +86,37 @@ class UpdateLifeCycleHookRequest:
|
|
|
81
86
|
|
|
82
87
|
@lifecycle_hook_name.setter
|
|
83
88
|
def lifecycle_hook_name(self, lifecycle_hook_name):
|
|
84
|
-
"""Sets the lifecycle_hook_name of this UpdateLifeCycleHookRequest.
|
|
89
|
+
r"""Sets the lifecycle_hook_name of this UpdateLifeCycleHookRequest.
|
|
85
90
|
|
|
91
|
+
生命周期挂钩标识。
|
|
86
92
|
|
|
87
93
|
:param lifecycle_hook_name: The lifecycle_hook_name of this UpdateLifeCycleHookRequest.
|
|
88
|
-
:type: str
|
|
94
|
+
:type lifecycle_hook_name: str
|
|
89
95
|
"""
|
|
90
96
|
self._lifecycle_hook_name = lifecycle_hook_name
|
|
91
97
|
|
|
92
98
|
@property
|
|
93
99
|
def body(self):
|
|
94
|
-
"""Gets the body of this UpdateLifeCycleHookRequest.
|
|
95
|
-
|
|
100
|
+
r"""Gets the body of this UpdateLifeCycleHookRequest.
|
|
96
101
|
|
|
97
102
|
:return: The body of this UpdateLifeCycleHookRequest.
|
|
98
|
-
:rtype:
|
|
103
|
+
:rtype: :class:`huaweicloudsdkas.v1.UpdateLifeCycleHookOption`
|
|
99
104
|
"""
|
|
100
105
|
return self._body
|
|
101
106
|
|
|
102
107
|
@body.setter
|
|
103
108
|
def body(self, body):
|
|
104
|
-
"""Sets the body of this UpdateLifeCycleHookRequest.
|
|
105
|
-
|
|
109
|
+
r"""Sets the body of this UpdateLifeCycleHookRequest.
|
|
106
110
|
|
|
107
111
|
:param body: The body of this UpdateLifeCycleHookRequest.
|
|
108
|
-
:type:
|
|
112
|
+
:type body: :class:`huaweicloudsdkas.v1.UpdateLifeCycleHookOption`
|
|
109
113
|
"""
|
|
110
114
|
self._body = body
|
|
111
115
|
|
|
112
116
|
def to_dict(self):
|
|
113
|
-
"""Returns the model properties as a dict"""
|
|
114
117
|
result = {}
|
|
115
118
|
|
|
116
|
-
for attr, _ in
|
|
119
|
+
for attr, _ in self.openapi_types.items():
|
|
117
120
|
value = getattr(self, attr)
|
|
118
121
|
if isinstance(value, list):
|
|
119
122
|
result[attr] = list(map(
|
|
@@ -138,10 +141,11 @@ class UpdateLifeCycleHookRequest:
|
|
|
138
141
|
|
|
139
142
|
def to_str(self):
|
|
140
143
|
"""Returns the string representation of the model"""
|
|
141
|
-
|
|
144
|
+
import simplejson as json
|
|
145
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
142
146
|
|
|
143
147
|
def __repr__(self):
|
|
144
|
-
"""For `print`
|
|
148
|
+
"""For `print`"""
|
|
145
149
|
return self.to_str()
|
|
146
150
|
|
|
147
151
|
def __eq__(self, other):
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
|
-
import six
|
|
7
|
-
|
|
8
|
-
|
|
9
3
|
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
5
|
|
|
11
6
|
|
|
12
7
|
class UpdateLifeCycleHookResponse(SdkResponse):
|
|
13
8
|
|
|
14
|
-
|
|
15
9
|
"""
|
|
16
10
|
Attributes:
|
|
17
11
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +13,6 @@ class UpdateLifeCycleHookResponse(SdkResponse):
|
|
|
19
13
|
attribute_map (dict): The key is attribute name
|
|
20
14
|
and the value is json key in definition.
|
|
21
15
|
"""
|
|
22
|
-
|
|
23
16
|
sensitive_list = []
|
|
24
17
|
|
|
25
18
|
openapi_types = {
|
|
@@ -30,7 +23,7 @@ class UpdateLifeCycleHookResponse(SdkResponse):
|
|
|
30
23
|
'notification_topic_urn': 'str',
|
|
31
24
|
'notification_topic_name': 'str',
|
|
32
25
|
'notification_metadata': 'str',
|
|
33
|
-
'create_time': '
|
|
26
|
+
'create_time': 'str'
|
|
34
27
|
}
|
|
35
28
|
|
|
36
29
|
attribute_map = {
|
|
@@ -45,7 +38,27 @@ class UpdateLifeCycleHookResponse(SdkResponse):
|
|
|
45
38
|
}
|
|
46
39
|
|
|
47
40
|
def __init__(self, lifecycle_hook_name=None, lifecycle_hook_type=None, default_result=None, default_timeout=None, notification_topic_urn=None, notification_topic_name=None, notification_metadata=None, create_time=None):
|
|
48
|
-
"""UpdateLifeCycleHookResponse
|
|
41
|
+
r"""UpdateLifeCycleHookResponse
|
|
42
|
+
|
|
43
|
+
The model defined in huaweicloud sdk
|
|
44
|
+
|
|
45
|
+
:param lifecycle_hook_name: 生命周期挂钩名称。
|
|
46
|
+
:type lifecycle_hook_name: str
|
|
47
|
+
:param lifecycle_hook_type: 生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
|
|
48
|
+
:type lifecycle_hook_type: str
|
|
49
|
+
:param default_result: 生命周期挂钩默认回调操作。ABANDON;CONTINUE
|
|
50
|
+
:type default_result: str
|
|
51
|
+
:param default_timeout: 生命周期挂钩超时时间,单位秒。
|
|
52
|
+
:type default_timeout: int
|
|
53
|
+
:param notification_topic_urn: SMN服务中Topic的唯一的资源标识。
|
|
54
|
+
:type notification_topic_urn: str
|
|
55
|
+
:param notification_topic_name: SMN服务中Topic的资源名称。
|
|
56
|
+
:type notification_topic_name: str
|
|
57
|
+
:param notification_metadata: 自定义通知消息。
|
|
58
|
+
:type notification_metadata: str
|
|
59
|
+
:param create_time: 生命周期挂钩创建时间,遵循UTC时间。
|
|
60
|
+
:type create_time: str
|
|
61
|
+
"""
|
|
49
62
|
|
|
50
63
|
super().__init__()
|
|
51
64
|
|
|
@@ -78,7 +91,7 @@ class UpdateLifeCycleHookResponse(SdkResponse):
|
|
|
78
91
|
|
|
79
92
|
@property
|
|
80
93
|
def lifecycle_hook_name(self):
|
|
81
|
-
"""Gets the lifecycle_hook_name of this UpdateLifeCycleHookResponse.
|
|
94
|
+
r"""Gets the lifecycle_hook_name of this UpdateLifeCycleHookResponse.
|
|
82
95
|
|
|
83
96
|
生命周期挂钩名称。
|
|
84
97
|
|
|
@@ -89,18 +102,18 @@ class UpdateLifeCycleHookResponse(SdkResponse):
|
|
|
89
102
|
|
|
90
103
|
@lifecycle_hook_name.setter
|
|
91
104
|
def lifecycle_hook_name(self, lifecycle_hook_name):
|
|
92
|
-
"""Sets the lifecycle_hook_name of this UpdateLifeCycleHookResponse.
|
|
105
|
+
r"""Sets the lifecycle_hook_name of this UpdateLifeCycleHookResponse.
|
|
93
106
|
|
|
94
107
|
生命周期挂钩名称。
|
|
95
108
|
|
|
96
109
|
:param lifecycle_hook_name: The lifecycle_hook_name of this UpdateLifeCycleHookResponse.
|
|
97
|
-
:type: str
|
|
110
|
+
:type lifecycle_hook_name: str
|
|
98
111
|
"""
|
|
99
112
|
self._lifecycle_hook_name = lifecycle_hook_name
|
|
100
113
|
|
|
101
114
|
@property
|
|
102
115
|
def lifecycle_hook_type(self):
|
|
103
|
-
"""Gets the lifecycle_hook_type of this UpdateLifeCycleHookResponse.
|
|
116
|
+
r"""Gets the lifecycle_hook_type of this UpdateLifeCycleHookResponse.
|
|
104
117
|
|
|
105
118
|
生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
|
|
106
119
|
|
|
@@ -111,18 +124,18 @@ class UpdateLifeCycleHookResponse(SdkResponse):
|
|
|
111
124
|
|
|
112
125
|
@lifecycle_hook_type.setter
|
|
113
126
|
def lifecycle_hook_type(self, lifecycle_hook_type):
|
|
114
|
-
"""Sets the lifecycle_hook_type of this UpdateLifeCycleHookResponse.
|
|
127
|
+
r"""Sets the lifecycle_hook_type of this UpdateLifeCycleHookResponse.
|
|
115
128
|
|
|
116
129
|
生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
|
|
117
130
|
|
|
118
131
|
:param lifecycle_hook_type: The lifecycle_hook_type of this UpdateLifeCycleHookResponse.
|
|
119
|
-
:type: str
|
|
132
|
+
:type lifecycle_hook_type: str
|
|
120
133
|
"""
|
|
121
134
|
self._lifecycle_hook_type = lifecycle_hook_type
|
|
122
135
|
|
|
123
136
|
@property
|
|
124
137
|
def default_result(self):
|
|
125
|
-
"""Gets the default_result of this UpdateLifeCycleHookResponse.
|
|
138
|
+
r"""Gets the default_result of this UpdateLifeCycleHookResponse.
|
|
126
139
|
|
|
127
140
|
生命周期挂钩默认回调操作。ABANDON;CONTINUE
|
|
128
141
|
|
|
@@ -133,18 +146,18 @@ class UpdateLifeCycleHookResponse(SdkResponse):
|
|
|
133
146
|
|
|
134
147
|
@default_result.setter
|
|
135
148
|
def default_result(self, default_result):
|
|
136
|
-
"""Sets the default_result of this UpdateLifeCycleHookResponse.
|
|
149
|
+
r"""Sets the default_result of this UpdateLifeCycleHookResponse.
|
|
137
150
|
|
|
138
151
|
生命周期挂钩默认回调操作。ABANDON;CONTINUE
|
|
139
152
|
|
|
140
153
|
:param default_result: The default_result of this UpdateLifeCycleHookResponse.
|
|
141
|
-
:type: str
|
|
154
|
+
:type default_result: str
|
|
142
155
|
"""
|
|
143
156
|
self._default_result = default_result
|
|
144
157
|
|
|
145
158
|
@property
|
|
146
159
|
def default_timeout(self):
|
|
147
|
-
"""Gets the default_timeout of this UpdateLifeCycleHookResponse.
|
|
160
|
+
r"""Gets the default_timeout of this UpdateLifeCycleHookResponse.
|
|
148
161
|
|
|
149
162
|
生命周期挂钩超时时间,单位秒。
|
|
150
163
|
|
|
@@ -155,18 +168,18 @@ class UpdateLifeCycleHookResponse(SdkResponse):
|
|
|
155
168
|
|
|
156
169
|
@default_timeout.setter
|
|
157
170
|
def default_timeout(self, default_timeout):
|
|
158
|
-
"""Sets the default_timeout of this UpdateLifeCycleHookResponse.
|
|
171
|
+
r"""Sets the default_timeout of this UpdateLifeCycleHookResponse.
|
|
159
172
|
|
|
160
173
|
生命周期挂钩超时时间,单位秒。
|
|
161
174
|
|
|
162
175
|
:param default_timeout: The default_timeout of this UpdateLifeCycleHookResponse.
|
|
163
|
-
:type: int
|
|
176
|
+
:type default_timeout: int
|
|
164
177
|
"""
|
|
165
178
|
self._default_timeout = default_timeout
|
|
166
179
|
|
|
167
180
|
@property
|
|
168
181
|
def notification_topic_urn(self):
|
|
169
|
-
"""Gets the notification_topic_urn of this UpdateLifeCycleHookResponse.
|
|
182
|
+
r"""Gets the notification_topic_urn of this UpdateLifeCycleHookResponse.
|
|
170
183
|
|
|
171
184
|
SMN服务中Topic的唯一的资源标识。
|
|
172
185
|
|
|
@@ -177,18 +190,18 @@ class UpdateLifeCycleHookResponse(SdkResponse):
|
|
|
177
190
|
|
|
178
191
|
@notification_topic_urn.setter
|
|
179
192
|
def notification_topic_urn(self, notification_topic_urn):
|
|
180
|
-
"""Sets the notification_topic_urn of this UpdateLifeCycleHookResponse.
|
|
193
|
+
r"""Sets the notification_topic_urn of this UpdateLifeCycleHookResponse.
|
|
181
194
|
|
|
182
195
|
SMN服务中Topic的唯一的资源标识。
|
|
183
196
|
|
|
184
197
|
:param notification_topic_urn: The notification_topic_urn of this UpdateLifeCycleHookResponse.
|
|
185
|
-
:type: str
|
|
198
|
+
:type notification_topic_urn: str
|
|
186
199
|
"""
|
|
187
200
|
self._notification_topic_urn = notification_topic_urn
|
|
188
201
|
|
|
189
202
|
@property
|
|
190
203
|
def notification_topic_name(self):
|
|
191
|
-
"""Gets the notification_topic_name of this UpdateLifeCycleHookResponse.
|
|
204
|
+
r"""Gets the notification_topic_name of this UpdateLifeCycleHookResponse.
|
|
192
205
|
|
|
193
206
|
SMN服务中Topic的资源名称。
|
|
194
207
|
|
|
@@ -199,18 +212,18 @@ class UpdateLifeCycleHookResponse(SdkResponse):
|
|
|
199
212
|
|
|
200
213
|
@notification_topic_name.setter
|
|
201
214
|
def notification_topic_name(self, notification_topic_name):
|
|
202
|
-
"""Sets the notification_topic_name of this UpdateLifeCycleHookResponse.
|
|
215
|
+
r"""Sets the notification_topic_name of this UpdateLifeCycleHookResponse.
|
|
203
216
|
|
|
204
217
|
SMN服务中Topic的资源名称。
|
|
205
218
|
|
|
206
219
|
:param notification_topic_name: The notification_topic_name of this UpdateLifeCycleHookResponse.
|
|
207
|
-
:type: str
|
|
220
|
+
:type notification_topic_name: str
|
|
208
221
|
"""
|
|
209
222
|
self._notification_topic_name = notification_topic_name
|
|
210
223
|
|
|
211
224
|
@property
|
|
212
225
|
def notification_metadata(self):
|
|
213
|
-
"""Gets the notification_metadata of this UpdateLifeCycleHookResponse.
|
|
226
|
+
r"""Gets the notification_metadata of this UpdateLifeCycleHookResponse.
|
|
214
227
|
|
|
215
228
|
自定义通知消息。
|
|
216
229
|
|
|
@@ -221,42 +234,44 @@ class UpdateLifeCycleHookResponse(SdkResponse):
|
|
|
221
234
|
|
|
222
235
|
@notification_metadata.setter
|
|
223
236
|
def notification_metadata(self, notification_metadata):
|
|
224
|
-
"""Sets the notification_metadata of this UpdateLifeCycleHookResponse.
|
|
237
|
+
r"""Sets the notification_metadata of this UpdateLifeCycleHookResponse.
|
|
225
238
|
|
|
226
239
|
自定义通知消息。
|
|
227
240
|
|
|
228
241
|
:param notification_metadata: The notification_metadata of this UpdateLifeCycleHookResponse.
|
|
229
|
-
:type: str
|
|
242
|
+
:type notification_metadata: str
|
|
230
243
|
"""
|
|
231
244
|
self._notification_metadata = notification_metadata
|
|
232
245
|
|
|
233
246
|
@property
|
|
234
247
|
def create_time(self):
|
|
235
|
-
"""Gets the create_time of this UpdateLifeCycleHookResponse.
|
|
248
|
+
r"""Gets the create_time of this UpdateLifeCycleHookResponse.
|
|
236
249
|
|
|
237
250
|
生命周期挂钩创建时间,遵循UTC时间。
|
|
238
251
|
|
|
239
252
|
:return: The create_time of this UpdateLifeCycleHookResponse.
|
|
240
|
-
:rtype:
|
|
253
|
+
:rtype: str
|
|
241
254
|
"""
|
|
242
255
|
return self._create_time
|
|
243
256
|
|
|
244
257
|
@create_time.setter
|
|
245
258
|
def create_time(self, create_time):
|
|
246
|
-
"""Sets the create_time of this UpdateLifeCycleHookResponse.
|
|
259
|
+
r"""Sets the create_time of this UpdateLifeCycleHookResponse.
|
|
247
260
|
|
|
248
261
|
生命周期挂钩创建时间,遵循UTC时间。
|
|
249
262
|
|
|
250
263
|
:param create_time: The create_time of this UpdateLifeCycleHookResponse.
|
|
251
|
-
:type:
|
|
264
|
+
:type create_time: str
|
|
252
265
|
"""
|
|
253
266
|
self._create_time = create_time
|
|
254
267
|
|
|
255
268
|
def to_dict(self):
|
|
256
|
-
|
|
269
|
+
import warnings
|
|
270
|
+
warnings.warn("UpdateLifeCycleHookResponse.to_dict() is deprecated and no longer maintained, "
|
|
271
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
257
272
|
result = {}
|
|
258
273
|
|
|
259
|
-
for attr, _ in
|
|
274
|
+
for attr, _ in self.openapi_types.items():
|
|
260
275
|
value = getattr(self, attr)
|
|
261
276
|
if isinstance(value, list):
|
|
262
277
|
result[attr] = list(map(
|
|
@@ -281,10 +296,11 @@ class UpdateLifeCycleHookResponse(SdkResponse):
|
|
|
281
296
|
|
|
282
297
|
def to_str(self):
|
|
283
298
|
"""Returns the string representation of the model"""
|
|
284
|
-
|
|
299
|
+
import simplejson as json
|
|
300
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
285
301
|
|
|
286
302
|
def __repr__(self):
|
|
287
|
-
"""For `print`
|
|
303
|
+
"""For `print`"""
|
|
288
304
|
return self.to_str()
|
|
289
305
|
|
|
290
306
|
def __eq__(self, other):
|