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