huaweicloudsdkas 3.0.43rc0__py3-none-any.whl → 3.1.161__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 +109 -38
- {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.161.dist-info}/METADATA +9 -9
- huaweicloudsdkas-3.1.161.dist-info/RECORD +228 -0
- {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.161.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.43rc0.dist-info/RECORD +0 -167
- {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.161.dist-info}/LICENSE +0 -0
- {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.161.dist-info}/top_level.txt +0 -0
|
@@ -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 ScalingInstance:
|
|
13
9
|
|
|
14
|
-
|
|
15
10
|
"""
|
|
16
11
|
Attributes:
|
|
17
12
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,25 +14,40 @@ class ScalingInstance:
|
|
|
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
|
'instance_name': 'str',
|
|
27
21
|
'instance_id': 'str',
|
|
28
22
|
'failed_reason': 'str',
|
|
29
|
-
'failed_details': 'str'
|
|
23
|
+
'failed_details': 'str',
|
|
24
|
+
'instance_config': 'str'
|
|
30
25
|
}
|
|
31
26
|
|
|
32
27
|
attribute_map = {
|
|
33
28
|
'instance_name': 'instance_name',
|
|
34
29
|
'instance_id': 'instance_id',
|
|
35
30
|
'failed_reason': 'failed_reason',
|
|
36
|
-
'failed_details': 'failed_details'
|
|
31
|
+
'failed_details': 'failed_details',
|
|
32
|
+
'instance_config': 'instance_config'
|
|
37
33
|
}
|
|
38
34
|
|
|
39
|
-
def __init__(self, instance_name=None, instance_id=None, failed_reason=None, failed_details=None):
|
|
40
|
-
"""ScalingInstance
|
|
35
|
+
def __init__(self, instance_name=None, instance_id=None, failed_reason=None, failed_details=None, instance_config=None):
|
|
36
|
+
r"""ScalingInstance
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param instance_name: 云服务器名称。
|
|
41
|
+
:type instance_name: str
|
|
42
|
+
:param instance_id: 云服务器id。
|
|
43
|
+
:type instance_id: str
|
|
44
|
+
:param failed_reason: 实例伸缩失败原因。
|
|
45
|
+
:type failed_reason: str
|
|
46
|
+
:param failed_details: 实例伸缩失败详情。
|
|
47
|
+
:type failed_details: str
|
|
48
|
+
:param instance_config: 实例配置信息。
|
|
49
|
+
:type instance_config: str
|
|
50
|
+
"""
|
|
41
51
|
|
|
42
52
|
|
|
43
53
|
|
|
@@ -45,6 +55,7 @@ class ScalingInstance:
|
|
|
45
55
|
self._instance_id = None
|
|
46
56
|
self._failed_reason = None
|
|
47
57
|
self._failed_details = None
|
|
58
|
+
self._instance_config = None
|
|
48
59
|
self.discriminator = None
|
|
49
60
|
|
|
50
61
|
if instance_name is not None:
|
|
@@ -55,10 +66,12 @@ class ScalingInstance:
|
|
|
55
66
|
self.failed_reason = failed_reason
|
|
56
67
|
if failed_details is not None:
|
|
57
68
|
self.failed_details = failed_details
|
|
69
|
+
if instance_config is not None:
|
|
70
|
+
self.instance_config = instance_config
|
|
58
71
|
|
|
59
72
|
@property
|
|
60
73
|
def instance_name(self):
|
|
61
|
-
"""Gets the instance_name of this ScalingInstance.
|
|
74
|
+
r"""Gets the instance_name of this ScalingInstance.
|
|
62
75
|
|
|
63
76
|
云服务器名称。
|
|
64
77
|
|
|
@@ -69,18 +82,18 @@ class ScalingInstance:
|
|
|
69
82
|
|
|
70
83
|
@instance_name.setter
|
|
71
84
|
def instance_name(self, instance_name):
|
|
72
|
-
"""Sets the instance_name of this ScalingInstance.
|
|
85
|
+
r"""Sets the instance_name of this ScalingInstance.
|
|
73
86
|
|
|
74
87
|
云服务器名称。
|
|
75
88
|
|
|
76
89
|
:param instance_name: The instance_name of this ScalingInstance.
|
|
77
|
-
:type: str
|
|
90
|
+
:type instance_name: str
|
|
78
91
|
"""
|
|
79
92
|
self._instance_name = instance_name
|
|
80
93
|
|
|
81
94
|
@property
|
|
82
95
|
def instance_id(self):
|
|
83
|
-
"""Gets the instance_id of this ScalingInstance.
|
|
96
|
+
r"""Gets the instance_id of this ScalingInstance.
|
|
84
97
|
|
|
85
98
|
云服务器id。
|
|
86
99
|
|
|
@@ -91,18 +104,18 @@ class ScalingInstance:
|
|
|
91
104
|
|
|
92
105
|
@instance_id.setter
|
|
93
106
|
def instance_id(self, instance_id):
|
|
94
|
-
"""Sets the instance_id of this ScalingInstance.
|
|
107
|
+
r"""Sets the instance_id of this ScalingInstance.
|
|
95
108
|
|
|
96
109
|
云服务器id。
|
|
97
110
|
|
|
98
111
|
:param instance_id: The instance_id of this ScalingInstance.
|
|
99
|
-
:type: str
|
|
112
|
+
:type instance_id: str
|
|
100
113
|
"""
|
|
101
114
|
self._instance_id = instance_id
|
|
102
115
|
|
|
103
116
|
@property
|
|
104
117
|
def failed_reason(self):
|
|
105
|
-
"""Gets the failed_reason of this ScalingInstance.
|
|
118
|
+
r"""Gets the failed_reason of this ScalingInstance.
|
|
106
119
|
|
|
107
120
|
实例伸缩失败原因。
|
|
108
121
|
|
|
@@ -113,18 +126,18 @@ class ScalingInstance:
|
|
|
113
126
|
|
|
114
127
|
@failed_reason.setter
|
|
115
128
|
def failed_reason(self, failed_reason):
|
|
116
|
-
"""Sets the failed_reason of this ScalingInstance.
|
|
129
|
+
r"""Sets the failed_reason of this ScalingInstance.
|
|
117
130
|
|
|
118
131
|
实例伸缩失败原因。
|
|
119
132
|
|
|
120
133
|
:param failed_reason: The failed_reason of this ScalingInstance.
|
|
121
|
-
:type: str
|
|
134
|
+
:type failed_reason: str
|
|
122
135
|
"""
|
|
123
136
|
self._failed_reason = failed_reason
|
|
124
137
|
|
|
125
138
|
@property
|
|
126
139
|
def failed_details(self):
|
|
127
|
-
"""Gets the failed_details of this ScalingInstance.
|
|
140
|
+
r"""Gets the failed_details of this ScalingInstance.
|
|
128
141
|
|
|
129
142
|
实例伸缩失败详情。
|
|
130
143
|
|
|
@@ -135,15 +148,37 @@ class ScalingInstance:
|
|
|
135
148
|
|
|
136
149
|
@failed_details.setter
|
|
137
150
|
def failed_details(self, failed_details):
|
|
138
|
-
"""Sets the failed_details of this ScalingInstance.
|
|
151
|
+
r"""Sets the failed_details of this ScalingInstance.
|
|
139
152
|
|
|
140
153
|
实例伸缩失败详情。
|
|
141
154
|
|
|
142
155
|
:param failed_details: The failed_details of this ScalingInstance.
|
|
143
|
-
:type: str
|
|
156
|
+
:type failed_details: str
|
|
144
157
|
"""
|
|
145
158
|
self._failed_details = failed_details
|
|
146
159
|
|
|
160
|
+
@property
|
|
161
|
+
def instance_config(self):
|
|
162
|
+
r"""Gets the instance_config of this ScalingInstance.
|
|
163
|
+
|
|
164
|
+
实例配置信息。
|
|
165
|
+
|
|
166
|
+
:return: The instance_config of this ScalingInstance.
|
|
167
|
+
:rtype: str
|
|
168
|
+
"""
|
|
169
|
+
return self._instance_config
|
|
170
|
+
|
|
171
|
+
@instance_config.setter
|
|
172
|
+
def instance_config(self, instance_config):
|
|
173
|
+
r"""Sets the instance_config of this ScalingInstance.
|
|
174
|
+
|
|
175
|
+
实例配置信息。
|
|
176
|
+
|
|
177
|
+
:param instance_config: The instance_config of this ScalingInstance.
|
|
178
|
+
:type instance_config: str
|
|
179
|
+
"""
|
|
180
|
+
self._instance_config = instance_config
|
|
181
|
+
|
|
147
182
|
def to_dict(self):
|
|
148
183
|
"""Returns the model properties as a dict"""
|
|
149
184
|
result = {}
|
|
@@ -173,10 +208,15 @@ class ScalingInstance:
|
|
|
173
208
|
|
|
174
209
|
def to_str(self):
|
|
175
210
|
"""Returns the string representation of the model"""
|
|
176
|
-
|
|
211
|
+
import simplejson as json
|
|
212
|
+
if six.PY2:
|
|
213
|
+
import sys
|
|
214
|
+
reload(sys)
|
|
215
|
+
sys.setdefaultencoding("utf-8")
|
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
177
217
|
|
|
178
218
|
def __repr__(self):
|
|
179
|
-
"""For `print`
|
|
219
|
+
"""For `print`"""
|
|
180
220
|
return self.to_str()
|
|
181
221
|
|
|
182
222
|
def __eq__(self, other):
|
|
@@ -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 ScalingPoliciesV2:
|
|
13
9
|
|
|
14
|
-
|
|
15
10
|
"""
|
|
16
11
|
Attributes:
|
|
17
12
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +14,6 @@ class ScalingPoliciesV2:
|
|
|
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 = {
|
|
@@ -32,8 +26,11 @@ class ScalingPoliciesV2:
|
|
|
32
26
|
'alarm_id': 'str',
|
|
33
27
|
'scheduled_policy': 'ScheduledPolicy',
|
|
34
28
|
'scaling_policy_action': 'ScalingPolicyActionV2',
|
|
29
|
+
'interval_alarm_actions': 'list[IntervalAlarmActionsV2]',
|
|
35
30
|
'cool_down_time': 'int',
|
|
36
|
-
'create_time': 'datetime'
|
|
31
|
+
'create_time': 'datetime',
|
|
32
|
+
'meta_data': 'ScalingPolicyV2MetaData',
|
|
33
|
+
'description': 'str'
|
|
37
34
|
}
|
|
38
35
|
|
|
39
36
|
attribute_map = {
|
|
@@ -46,12 +43,47 @@ class ScalingPoliciesV2:
|
|
|
46
43
|
'alarm_id': 'alarm_id',
|
|
47
44
|
'scheduled_policy': 'scheduled_policy',
|
|
48
45
|
'scaling_policy_action': 'scaling_policy_action',
|
|
46
|
+
'interval_alarm_actions': 'interval_alarm_actions',
|
|
49
47
|
'cool_down_time': 'cool_down_time',
|
|
50
|
-
'create_time': 'create_time'
|
|
48
|
+
'create_time': 'create_time',
|
|
49
|
+
'meta_data': 'meta_data',
|
|
50
|
+
'description': 'description'
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_resource_id=None, scaling_resource_type=None, policy_status=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None, create_time=None):
|
|
54
|
-
"""ScalingPoliciesV2
|
|
53
|
+
def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_resource_id=None, scaling_resource_type=None, policy_status=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, interval_alarm_actions=None, cool_down_time=None, create_time=None, meta_data=None, description=None):
|
|
54
|
+
r"""ScalingPoliciesV2
|
|
55
|
+
|
|
56
|
+
The model defined in huaweicloud sdk
|
|
57
|
+
|
|
58
|
+
:param scaling_policy_name: 伸缩策略名称。
|
|
59
|
+
:type scaling_policy_name: str
|
|
60
|
+
:param scaling_policy_id: 伸缩策略ID。
|
|
61
|
+
:type scaling_policy_id: str
|
|
62
|
+
:param scaling_resource_id: 伸缩资源ID。
|
|
63
|
+
:type scaling_resource_id: str
|
|
64
|
+
:param scaling_resource_type: 伸缩资源类型。伸缩组:SCALING_GROUP。带宽:BANDWIDTH。
|
|
65
|
+
:type scaling_resource_type: str
|
|
66
|
+
:param policy_status: 伸缩策略状态。INSERVICE:使用中。PAUSED:停止。EXECUTING:执行中。
|
|
67
|
+
:type policy_status: str
|
|
68
|
+
:param scaling_policy_type: 伸缩策略类型:ALARM:告警策略,此时alarm_id有返回,scheduled_policy不会返回。SCHEDULED:定时策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time不会返回。RECURRENCE:周期策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time有返回。
|
|
69
|
+
:type scaling_policy_type: str
|
|
70
|
+
:param alarm_id: 告警ID。
|
|
71
|
+
:type alarm_id: str
|
|
72
|
+
:param scheduled_policy:
|
|
73
|
+
:type scheduled_policy: :class:`huaweicloudsdkas.v1.ScheduledPolicy`
|
|
74
|
+
:param scaling_policy_action:
|
|
75
|
+
:type scaling_policy_action: :class:`huaweicloudsdkas.v1.ScalingPolicyActionV2`
|
|
76
|
+
:param interval_alarm_actions:
|
|
77
|
+
:type interval_alarm_actions: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
|
|
78
|
+
:param cool_down_time: 冷却时间,取值范围0-86400,默认为300,单位是秒。
|
|
79
|
+
:type cool_down_time: int
|
|
80
|
+
:param create_time: 创建伸缩策略时间,遵循UTC时间
|
|
81
|
+
:type create_time: datetime
|
|
82
|
+
:param meta_data:
|
|
83
|
+
:type meta_data: :class:`huaweicloudsdkas.v1.ScalingPolicyV2MetaData`
|
|
84
|
+
:param description: 伸缩策略描述(1-256个字符)
|
|
85
|
+
:type description: str
|
|
86
|
+
"""
|
|
55
87
|
|
|
56
88
|
|
|
57
89
|
|
|
@@ -64,8 +96,11 @@ class ScalingPoliciesV2:
|
|
|
64
96
|
self._alarm_id = None
|
|
65
97
|
self._scheduled_policy = None
|
|
66
98
|
self._scaling_policy_action = None
|
|
99
|
+
self._interval_alarm_actions = None
|
|
67
100
|
self._cool_down_time = None
|
|
68
101
|
self._create_time = None
|
|
102
|
+
self._meta_data = None
|
|
103
|
+
self._description = None
|
|
69
104
|
self.discriminator = None
|
|
70
105
|
|
|
71
106
|
if scaling_policy_name is not None:
|
|
@@ -86,14 +121,20 @@ class ScalingPoliciesV2:
|
|
|
86
121
|
self.scheduled_policy = scheduled_policy
|
|
87
122
|
if scaling_policy_action is not None:
|
|
88
123
|
self.scaling_policy_action = scaling_policy_action
|
|
124
|
+
if interval_alarm_actions is not None:
|
|
125
|
+
self.interval_alarm_actions = interval_alarm_actions
|
|
89
126
|
if cool_down_time is not None:
|
|
90
127
|
self.cool_down_time = cool_down_time
|
|
91
128
|
if create_time is not None:
|
|
92
129
|
self.create_time = create_time
|
|
130
|
+
if meta_data is not None:
|
|
131
|
+
self.meta_data = meta_data
|
|
132
|
+
if description is not None:
|
|
133
|
+
self.description = description
|
|
93
134
|
|
|
94
135
|
@property
|
|
95
136
|
def scaling_policy_name(self):
|
|
96
|
-
"""Gets the scaling_policy_name of this ScalingPoliciesV2.
|
|
137
|
+
r"""Gets the scaling_policy_name of this ScalingPoliciesV2.
|
|
97
138
|
|
|
98
139
|
伸缩策略名称。
|
|
99
140
|
|
|
@@ -104,18 +145,18 @@ class ScalingPoliciesV2:
|
|
|
104
145
|
|
|
105
146
|
@scaling_policy_name.setter
|
|
106
147
|
def scaling_policy_name(self, scaling_policy_name):
|
|
107
|
-
"""Sets the scaling_policy_name of this ScalingPoliciesV2.
|
|
148
|
+
r"""Sets the scaling_policy_name of this ScalingPoliciesV2.
|
|
108
149
|
|
|
109
150
|
伸缩策略名称。
|
|
110
151
|
|
|
111
152
|
:param scaling_policy_name: The scaling_policy_name of this ScalingPoliciesV2.
|
|
112
|
-
:type: str
|
|
153
|
+
:type scaling_policy_name: str
|
|
113
154
|
"""
|
|
114
155
|
self._scaling_policy_name = scaling_policy_name
|
|
115
156
|
|
|
116
157
|
@property
|
|
117
158
|
def scaling_policy_id(self):
|
|
118
|
-
"""Gets the scaling_policy_id of this ScalingPoliciesV2.
|
|
159
|
+
r"""Gets the scaling_policy_id of this ScalingPoliciesV2.
|
|
119
160
|
|
|
120
161
|
伸缩策略ID。
|
|
121
162
|
|
|
@@ -126,18 +167,18 @@ class ScalingPoliciesV2:
|
|
|
126
167
|
|
|
127
168
|
@scaling_policy_id.setter
|
|
128
169
|
def scaling_policy_id(self, scaling_policy_id):
|
|
129
|
-
"""Sets the scaling_policy_id of this ScalingPoliciesV2.
|
|
170
|
+
r"""Sets the scaling_policy_id of this ScalingPoliciesV2.
|
|
130
171
|
|
|
131
172
|
伸缩策略ID。
|
|
132
173
|
|
|
133
174
|
:param scaling_policy_id: The scaling_policy_id of this ScalingPoliciesV2.
|
|
134
|
-
:type: str
|
|
175
|
+
:type scaling_policy_id: str
|
|
135
176
|
"""
|
|
136
177
|
self._scaling_policy_id = scaling_policy_id
|
|
137
178
|
|
|
138
179
|
@property
|
|
139
180
|
def scaling_resource_id(self):
|
|
140
|
-
"""Gets the scaling_resource_id of this ScalingPoliciesV2.
|
|
181
|
+
r"""Gets the scaling_resource_id of this ScalingPoliciesV2.
|
|
141
182
|
|
|
142
183
|
伸缩资源ID。
|
|
143
184
|
|
|
@@ -148,18 +189,18 @@ class ScalingPoliciesV2:
|
|
|
148
189
|
|
|
149
190
|
@scaling_resource_id.setter
|
|
150
191
|
def scaling_resource_id(self, scaling_resource_id):
|
|
151
|
-
"""Sets the scaling_resource_id of this ScalingPoliciesV2.
|
|
192
|
+
r"""Sets the scaling_resource_id of this ScalingPoliciesV2.
|
|
152
193
|
|
|
153
194
|
伸缩资源ID。
|
|
154
195
|
|
|
155
196
|
:param scaling_resource_id: The scaling_resource_id of this ScalingPoliciesV2.
|
|
156
|
-
:type: str
|
|
197
|
+
:type scaling_resource_id: str
|
|
157
198
|
"""
|
|
158
199
|
self._scaling_resource_id = scaling_resource_id
|
|
159
200
|
|
|
160
201
|
@property
|
|
161
202
|
def scaling_resource_type(self):
|
|
162
|
-
"""Gets the scaling_resource_type of this ScalingPoliciesV2.
|
|
203
|
+
r"""Gets the scaling_resource_type of this ScalingPoliciesV2.
|
|
163
204
|
|
|
164
205
|
伸缩资源类型。伸缩组:SCALING_GROUP。带宽:BANDWIDTH。
|
|
165
206
|
|
|
@@ -170,18 +211,18 @@ class ScalingPoliciesV2:
|
|
|
170
211
|
|
|
171
212
|
@scaling_resource_type.setter
|
|
172
213
|
def scaling_resource_type(self, scaling_resource_type):
|
|
173
|
-
"""Sets the scaling_resource_type of this ScalingPoliciesV2.
|
|
214
|
+
r"""Sets the scaling_resource_type of this ScalingPoliciesV2.
|
|
174
215
|
|
|
175
216
|
伸缩资源类型。伸缩组:SCALING_GROUP。带宽:BANDWIDTH。
|
|
176
217
|
|
|
177
218
|
:param scaling_resource_type: The scaling_resource_type of this ScalingPoliciesV2.
|
|
178
|
-
:type: str
|
|
219
|
+
:type scaling_resource_type: str
|
|
179
220
|
"""
|
|
180
221
|
self._scaling_resource_type = scaling_resource_type
|
|
181
222
|
|
|
182
223
|
@property
|
|
183
224
|
def policy_status(self):
|
|
184
|
-
"""Gets the policy_status of this ScalingPoliciesV2.
|
|
225
|
+
r"""Gets the policy_status of this ScalingPoliciesV2.
|
|
185
226
|
|
|
186
227
|
伸缩策略状态。INSERVICE:使用中。PAUSED:停止。EXECUTING:执行中。
|
|
187
228
|
|
|
@@ -192,18 +233,18 @@ class ScalingPoliciesV2:
|
|
|
192
233
|
|
|
193
234
|
@policy_status.setter
|
|
194
235
|
def policy_status(self, policy_status):
|
|
195
|
-
"""Sets the policy_status of this ScalingPoliciesV2.
|
|
236
|
+
r"""Sets the policy_status of this ScalingPoliciesV2.
|
|
196
237
|
|
|
197
238
|
伸缩策略状态。INSERVICE:使用中。PAUSED:停止。EXECUTING:执行中。
|
|
198
239
|
|
|
199
240
|
:param policy_status: The policy_status of this ScalingPoliciesV2.
|
|
200
|
-
:type: str
|
|
241
|
+
:type policy_status: str
|
|
201
242
|
"""
|
|
202
243
|
self._policy_status = policy_status
|
|
203
244
|
|
|
204
245
|
@property
|
|
205
246
|
def scaling_policy_type(self):
|
|
206
|
-
"""Gets the scaling_policy_type of this ScalingPoliciesV2.
|
|
247
|
+
r"""Gets the scaling_policy_type of this ScalingPoliciesV2.
|
|
207
248
|
|
|
208
249
|
伸缩策略类型:ALARM:告警策略,此时alarm_id有返回,scheduled_policy不会返回。SCHEDULED:定时策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time不会返回。RECURRENCE:周期策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time有返回。
|
|
209
250
|
|
|
@@ -214,18 +255,18 @@ class ScalingPoliciesV2:
|
|
|
214
255
|
|
|
215
256
|
@scaling_policy_type.setter
|
|
216
257
|
def scaling_policy_type(self, scaling_policy_type):
|
|
217
|
-
"""Sets the scaling_policy_type of this ScalingPoliciesV2.
|
|
258
|
+
r"""Sets the scaling_policy_type of this ScalingPoliciesV2.
|
|
218
259
|
|
|
219
260
|
伸缩策略类型:ALARM:告警策略,此时alarm_id有返回,scheduled_policy不会返回。SCHEDULED:定时策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time不会返回。RECURRENCE:周期策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time有返回。
|
|
220
261
|
|
|
221
262
|
:param scaling_policy_type: The scaling_policy_type of this ScalingPoliciesV2.
|
|
222
|
-
:type: str
|
|
263
|
+
:type scaling_policy_type: str
|
|
223
264
|
"""
|
|
224
265
|
self._scaling_policy_type = scaling_policy_type
|
|
225
266
|
|
|
226
267
|
@property
|
|
227
268
|
def alarm_id(self):
|
|
228
|
-
"""Gets the alarm_id of this ScalingPoliciesV2.
|
|
269
|
+
r"""Gets the alarm_id of this ScalingPoliciesV2.
|
|
229
270
|
|
|
230
271
|
告警ID。
|
|
231
272
|
|
|
@@ -236,58 +277,72 @@ class ScalingPoliciesV2:
|
|
|
236
277
|
|
|
237
278
|
@alarm_id.setter
|
|
238
279
|
def alarm_id(self, alarm_id):
|
|
239
|
-
"""Sets the alarm_id of this ScalingPoliciesV2.
|
|
280
|
+
r"""Sets the alarm_id of this ScalingPoliciesV2.
|
|
240
281
|
|
|
241
282
|
告警ID。
|
|
242
283
|
|
|
243
284
|
:param alarm_id: The alarm_id of this ScalingPoliciesV2.
|
|
244
|
-
:type: str
|
|
285
|
+
:type alarm_id: str
|
|
245
286
|
"""
|
|
246
287
|
self._alarm_id = alarm_id
|
|
247
288
|
|
|
248
289
|
@property
|
|
249
290
|
def scheduled_policy(self):
|
|
250
|
-
"""Gets the scheduled_policy of this ScalingPoliciesV2.
|
|
251
|
-
|
|
291
|
+
r"""Gets the scheduled_policy of this ScalingPoliciesV2.
|
|
252
292
|
|
|
253
293
|
:return: The scheduled_policy of this ScalingPoliciesV2.
|
|
254
|
-
:rtype: ScheduledPolicy
|
|
294
|
+
:rtype: :class:`huaweicloudsdkas.v1.ScheduledPolicy`
|
|
255
295
|
"""
|
|
256
296
|
return self._scheduled_policy
|
|
257
297
|
|
|
258
298
|
@scheduled_policy.setter
|
|
259
299
|
def scheduled_policy(self, scheduled_policy):
|
|
260
|
-
"""Sets the scheduled_policy of this ScalingPoliciesV2.
|
|
261
|
-
|
|
300
|
+
r"""Sets the scheduled_policy of this ScalingPoliciesV2.
|
|
262
301
|
|
|
263
302
|
:param scheduled_policy: The scheduled_policy of this ScalingPoliciesV2.
|
|
264
|
-
:type: ScheduledPolicy
|
|
303
|
+
:type scheduled_policy: :class:`huaweicloudsdkas.v1.ScheduledPolicy`
|
|
265
304
|
"""
|
|
266
305
|
self._scheduled_policy = scheduled_policy
|
|
267
306
|
|
|
268
307
|
@property
|
|
269
308
|
def scaling_policy_action(self):
|
|
270
|
-
"""Gets the scaling_policy_action of this ScalingPoliciesV2.
|
|
271
|
-
|
|
309
|
+
r"""Gets the scaling_policy_action of this ScalingPoliciesV2.
|
|
272
310
|
|
|
273
311
|
:return: The scaling_policy_action of this ScalingPoliciesV2.
|
|
274
|
-
:rtype: ScalingPolicyActionV2
|
|
312
|
+
:rtype: :class:`huaweicloudsdkas.v1.ScalingPolicyActionV2`
|
|
275
313
|
"""
|
|
276
314
|
return self._scaling_policy_action
|
|
277
315
|
|
|
278
316
|
@scaling_policy_action.setter
|
|
279
317
|
def scaling_policy_action(self, scaling_policy_action):
|
|
280
|
-
"""Sets the scaling_policy_action of this ScalingPoliciesV2.
|
|
281
|
-
|
|
318
|
+
r"""Sets the scaling_policy_action of this ScalingPoliciesV2.
|
|
282
319
|
|
|
283
320
|
:param scaling_policy_action: The scaling_policy_action of this ScalingPoliciesV2.
|
|
284
|
-
:type: ScalingPolicyActionV2
|
|
321
|
+
:type scaling_policy_action: :class:`huaweicloudsdkas.v1.ScalingPolicyActionV2`
|
|
285
322
|
"""
|
|
286
323
|
self._scaling_policy_action = scaling_policy_action
|
|
287
324
|
|
|
325
|
+
@property
|
|
326
|
+
def interval_alarm_actions(self):
|
|
327
|
+
r"""Gets the interval_alarm_actions of this ScalingPoliciesV2.
|
|
328
|
+
|
|
329
|
+
:return: The interval_alarm_actions of this ScalingPoliciesV2.
|
|
330
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
|
|
331
|
+
"""
|
|
332
|
+
return self._interval_alarm_actions
|
|
333
|
+
|
|
334
|
+
@interval_alarm_actions.setter
|
|
335
|
+
def interval_alarm_actions(self, interval_alarm_actions):
|
|
336
|
+
r"""Sets the interval_alarm_actions of this ScalingPoliciesV2.
|
|
337
|
+
|
|
338
|
+
:param interval_alarm_actions: The interval_alarm_actions of this ScalingPoliciesV2.
|
|
339
|
+
:type interval_alarm_actions: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
|
|
340
|
+
"""
|
|
341
|
+
self._interval_alarm_actions = interval_alarm_actions
|
|
342
|
+
|
|
288
343
|
@property
|
|
289
344
|
def cool_down_time(self):
|
|
290
|
-
"""Gets the cool_down_time of this ScalingPoliciesV2.
|
|
345
|
+
r"""Gets the cool_down_time of this ScalingPoliciesV2.
|
|
291
346
|
|
|
292
347
|
冷却时间,取值范围0-86400,默认为300,单位是秒。
|
|
293
348
|
|
|
@@ -298,18 +353,18 @@ class ScalingPoliciesV2:
|
|
|
298
353
|
|
|
299
354
|
@cool_down_time.setter
|
|
300
355
|
def cool_down_time(self, cool_down_time):
|
|
301
|
-
"""Sets the cool_down_time of this ScalingPoliciesV2.
|
|
356
|
+
r"""Sets the cool_down_time of this ScalingPoliciesV2.
|
|
302
357
|
|
|
303
358
|
冷却时间,取值范围0-86400,默认为300,单位是秒。
|
|
304
359
|
|
|
305
360
|
:param cool_down_time: The cool_down_time of this ScalingPoliciesV2.
|
|
306
|
-
:type: int
|
|
361
|
+
:type cool_down_time: int
|
|
307
362
|
"""
|
|
308
363
|
self._cool_down_time = cool_down_time
|
|
309
364
|
|
|
310
365
|
@property
|
|
311
366
|
def create_time(self):
|
|
312
|
-
"""Gets the create_time of this ScalingPoliciesV2.
|
|
367
|
+
r"""Gets the create_time of this ScalingPoliciesV2.
|
|
313
368
|
|
|
314
369
|
创建伸缩策略时间,遵循UTC时间
|
|
315
370
|
|
|
@@ -320,15 +375,55 @@ class ScalingPoliciesV2:
|
|
|
320
375
|
|
|
321
376
|
@create_time.setter
|
|
322
377
|
def create_time(self, create_time):
|
|
323
|
-
"""Sets the create_time of this ScalingPoliciesV2.
|
|
378
|
+
r"""Sets the create_time of this ScalingPoliciesV2.
|
|
324
379
|
|
|
325
380
|
创建伸缩策略时间,遵循UTC时间
|
|
326
381
|
|
|
327
382
|
:param create_time: The create_time of this ScalingPoliciesV2.
|
|
328
|
-
:type: datetime
|
|
383
|
+
:type create_time: datetime
|
|
329
384
|
"""
|
|
330
385
|
self._create_time = create_time
|
|
331
386
|
|
|
387
|
+
@property
|
|
388
|
+
def meta_data(self):
|
|
389
|
+
r"""Gets the meta_data of this ScalingPoliciesV2.
|
|
390
|
+
|
|
391
|
+
:return: The meta_data of this ScalingPoliciesV2.
|
|
392
|
+
:rtype: :class:`huaweicloudsdkas.v1.ScalingPolicyV2MetaData`
|
|
393
|
+
"""
|
|
394
|
+
return self._meta_data
|
|
395
|
+
|
|
396
|
+
@meta_data.setter
|
|
397
|
+
def meta_data(self, meta_data):
|
|
398
|
+
r"""Sets the meta_data of this ScalingPoliciesV2.
|
|
399
|
+
|
|
400
|
+
:param meta_data: The meta_data of this ScalingPoliciesV2.
|
|
401
|
+
:type meta_data: :class:`huaweicloudsdkas.v1.ScalingPolicyV2MetaData`
|
|
402
|
+
"""
|
|
403
|
+
self._meta_data = meta_data
|
|
404
|
+
|
|
405
|
+
@property
|
|
406
|
+
def description(self):
|
|
407
|
+
r"""Gets the description of this ScalingPoliciesV2.
|
|
408
|
+
|
|
409
|
+
伸缩策略描述(1-256个字符)
|
|
410
|
+
|
|
411
|
+
:return: The description of this ScalingPoliciesV2.
|
|
412
|
+
:rtype: str
|
|
413
|
+
"""
|
|
414
|
+
return self._description
|
|
415
|
+
|
|
416
|
+
@description.setter
|
|
417
|
+
def description(self, description):
|
|
418
|
+
r"""Sets the description of this ScalingPoliciesV2.
|
|
419
|
+
|
|
420
|
+
伸缩策略描述(1-256个字符)
|
|
421
|
+
|
|
422
|
+
:param description: The description of this ScalingPoliciesV2.
|
|
423
|
+
:type description: str
|
|
424
|
+
"""
|
|
425
|
+
self._description = description
|
|
426
|
+
|
|
332
427
|
def to_dict(self):
|
|
333
428
|
"""Returns the model properties as a dict"""
|
|
334
429
|
result = {}
|
|
@@ -358,10 +453,15 @@ class ScalingPoliciesV2:
|
|
|
358
453
|
|
|
359
454
|
def to_str(self):
|
|
360
455
|
"""Returns the string representation of the model"""
|
|
361
|
-
|
|
456
|
+
import simplejson as json
|
|
457
|
+
if six.PY2:
|
|
458
|
+
import sys
|
|
459
|
+
reload(sys)
|
|
460
|
+
sys.setdefaultencoding("utf-8")
|
|
461
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
362
462
|
|
|
363
463
|
def __repr__(self):
|
|
364
|
-
"""For `print`
|
|
464
|
+
"""For `print`"""
|
|
365
465
|
return self.to_str()
|
|
366
466
|
|
|
367
467
|
def __eq__(self, other):
|