huaweicloudsdkas 3.0.43rc0__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.43rc0.dist-info → huaweicloudsdkas-3.1.160.dist-info}/METADATA +9 -9
- huaweicloudsdkas-3.1.160.dist-info/RECORD +228 -0
- {huaweicloudsdkas-3.0.43rc0.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.43rc0.dist-info/RECORD +0 -167
- {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.160.dist-info}/LICENSE +0 -0
- {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.160.dist-info}/top_level.txt +0 -0
huaweicloudsdkas/v1/model/{create_scaling_group_request_body.py → create_scaling_group_option.py}
RENAMED
|
@@ -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 CreateScalingGroupRequestBody:
|
|
13
|
-
|
|
8
|
+
class CreateScalingGroupOption:
|
|
14
9
|
|
|
15
10
|
"""
|
|
16
11
|
Attributes:
|
|
@@ -19,7 +14,6 @@ class CreateScalingGroupRequestBody:
|
|
|
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 = {
|
|
@@ -33,7 +27,7 @@ class CreateScalingGroupRequestBody:
|
|
|
33
27
|
'lbaas_listeners': 'list[LbaasListeners]',
|
|
34
28
|
'available_zones': 'list[str]',
|
|
35
29
|
'networks': 'list[Networks]',
|
|
36
|
-
'security_groups': 'list[
|
|
30
|
+
'security_groups': 'list[SecurityGroup]',
|
|
37
31
|
'vpc_id': 'str',
|
|
38
32
|
'health_periodic_audit_method': 'str',
|
|
39
33
|
'health_periodic_audit_time': 'int',
|
|
@@ -41,8 +35,12 @@ class CreateScalingGroupRequestBody:
|
|
|
41
35
|
'instance_terminate_policy': 'str',
|
|
42
36
|
'notifications': 'list[str]',
|
|
43
37
|
'delete_publicip': 'bool',
|
|
38
|
+
'delete_volume': 'bool',
|
|
44
39
|
'enterprise_project_id': 'str',
|
|
45
|
-
'multi_az_priority_policy': 'str'
|
|
40
|
+
'multi_az_priority_policy': 'str',
|
|
41
|
+
'iam_agency_name': 'str',
|
|
42
|
+
'description': 'str',
|
|
43
|
+
'tags': 'list[TagsSingleValue]'
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
attribute_map = {
|
|
@@ -64,12 +62,68 @@ class CreateScalingGroupRequestBody:
|
|
|
64
62
|
'instance_terminate_policy': 'instance_terminate_policy',
|
|
65
63
|
'notifications': 'notifications',
|
|
66
64
|
'delete_publicip': 'delete_publicip',
|
|
65
|
+
'delete_volume': 'delete_volume',
|
|
67
66
|
'enterprise_project_id': 'enterprise_project_id',
|
|
68
|
-
'multi_az_priority_policy': 'multi_az_priority_policy'
|
|
67
|
+
'multi_az_priority_policy': 'multi_az_priority_policy',
|
|
68
|
+
'iam_agency_name': 'iam_agency_name',
|
|
69
|
+
'description': 'description',
|
|
70
|
+
'tags': 'tags'
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
def __init__(self, scaling_group_name=None, scaling_configuration_id=None, desire_instance_number=None, min_instance_number=None, max_instance_number=None, cool_down_time=None, lb_listener_id=None, lbaas_listeners=None, available_zones=None, networks=None, security_groups=None, vpc_id=None, health_periodic_audit_method=None, health_periodic_audit_time=None, health_periodic_audit_grace_period=None, instance_terminate_policy=None, notifications=None, delete_publicip=None, enterprise_project_id=None, multi_az_priority_policy=None):
|
|
72
|
-
"""
|
|
73
|
+
def __init__(self, scaling_group_name=None, scaling_configuration_id=None, desire_instance_number=None, min_instance_number=None, max_instance_number=None, cool_down_time=None, lb_listener_id=None, lbaas_listeners=None, available_zones=None, networks=None, security_groups=None, vpc_id=None, health_periodic_audit_method=None, health_periodic_audit_time=None, health_periodic_audit_grace_period=None, instance_terminate_policy=None, notifications=None, delete_publicip=None, delete_volume=None, enterprise_project_id=None, multi_az_priority_policy=None, iam_agency_name=None, description=None, tags=None):
|
|
74
|
+
r"""CreateScalingGroupOption
|
|
75
|
+
|
|
76
|
+
The model defined in huaweicloud sdk
|
|
77
|
+
|
|
78
|
+
:param scaling_group_name: 伸缩组名称(1-64个字符),只能包含中文、字母、数字、下划线、中划线。
|
|
79
|
+
:type scaling_group_name: str
|
|
80
|
+
:param scaling_configuration_id: 伸缩配置ID,通过查询弹性伸缩配置列表接口获取。
|
|
81
|
+
:type scaling_configuration_id: str
|
|
82
|
+
:param desire_instance_number: 期望实例数量,默认值为最小实例数。最小实例数<=期望实例数<=最大实例数
|
|
83
|
+
:type desire_instance_number: int
|
|
84
|
+
:param min_instance_number: 最小实例数量,默认值为0。
|
|
85
|
+
:type min_instance_number: int
|
|
86
|
+
:param max_instance_number: 最大实例数量,默认值为0。
|
|
87
|
+
:type max_instance_number: int
|
|
88
|
+
:param cool_down_time: 冷却时间,取值范围0-86400,默认为300,单位是秒。 只针对告警策略生效,定时、周期策略和手动触发策略不受该参数限制。
|
|
89
|
+
:type cool_down_time: int
|
|
90
|
+
:param lb_listener_id: 弹性负载均衡(经典型)监听器ID,最多支持绑定6个负载均衡监听器,多个负载均衡监听器ID以逗号分隔。首先使用vpc_id通过查询ELB服务负载均衡器列表接口获取负载均衡器的ID,详见《弹性负载均衡API参考》的“查询负载均衡器列表”,再使用该ID查询监听器列表获取,详见《弹性负载均衡API参考》的“查询监听器列表”。
|
|
91
|
+
:type lb_listener_id: str
|
|
92
|
+
:param lbaas_listeners: 弹性负载均衡器(增强型)信息,最多支持绑定6个负载均衡。该字段与lb_listener_id互斥。
|
|
93
|
+
:type lbaas_listeners: list[:class:`huaweicloudsdkas.v1.LbaasListeners`]
|
|
94
|
+
:param available_zones: 可用分区信息。弹性伸缩活动中自动添加的云服务器会被创建在指定的可用区中。如果没有指定可用分区,会由系统自动指定可用分区。详情请参考地区和终端节点。
|
|
95
|
+
:type available_zones: list[str]
|
|
96
|
+
:param networks: 网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。获取子网信息请参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
|
|
97
|
+
:type networks: list[:class:`huaweicloudsdkas.v1.Networks`]
|
|
98
|
+
:param security_groups: 安全组信息,最多支持选择1个安全组。使用vpc_id通过查询VPC服务安全组列表接口获取,详见《虚拟私有云API参考》的“查询安全组列表”。当伸缩配置和伸缩组同时指定安全组时,将以伸缩配置中的安全组为准;当伸缩配置和伸缩组都没有指定安全组时,将使用默认安全组。为了使用灵活性更高,推荐在伸缩配置中指定安全组。
|
|
99
|
+
:type security_groups: list[:class:`huaweicloudsdkas.v1.SecurityGroup`]
|
|
100
|
+
:param vpc_id: VPC信息,通过查询VPC服务VPC列表接口获取,详见《虚拟私有云API参考》的“查询VPC列表”。
|
|
101
|
+
:type vpc_id: str
|
|
102
|
+
:param health_periodic_audit_method: 伸缩组实例健康检查方式:ELB_AUDIT和NOVA_AUDIT。当伸缩组参数中设置负载均衡时,默认为ELB_AUDIT;否则默认为NOVA_AUDIT。ELB_AUDIT表示负载均衡健康检查方式,在有监听器的伸缩组中有效。NOVA_AUDIT表示弹性伸缩自带的健康检查方式。
|
|
103
|
+
:type health_periodic_audit_method: str
|
|
104
|
+
:param health_periodic_audit_time: 伸缩组实例的健康检查周期,可设置为1、5、15、60、180(分钟),若不设置该参数,默认为5。若设置为0,可以实现10秒级健康检查。
|
|
105
|
+
:type health_periodic_audit_time: int
|
|
106
|
+
:param health_periodic_audit_grace_period: 伸缩组实例健康状况检查宽限期,取值范围0-86400,单位是秒。当实例加入伸缩组并且进入已启用状态后,健康状况检查宽限期才会启动,伸缩组会等健康状况检查宽限期结束后才检查实例的运行状况。当伸缩组实例健康检查方式为ELB_AUDIT时,该参数生效,若不设置该参数,默认为600秒。
|
|
107
|
+
:type health_periodic_audit_grace_period: int
|
|
108
|
+
:param instance_terminate_policy: 伸缩组实例移除策略:OLD_CONFIG_OLD_INSTANCE(默认):从根据“较早创建的配置”创建的实例中筛选出较早创建的实例被优先移除。OLD_CONFIG_NEW_INSTANCE:从根据“较早创建的配置”创建的实例中筛选出较新创建的实例被优先移除。OLD_INSTANCE:较早创建的实例被优先移除。NEW_INSTANCE:较新创建的实例将被优先移除。
|
|
109
|
+
:type instance_terminate_policy: str
|
|
110
|
+
:param notifications: 通知方式:EMAIL为发送邮件通知。该通知方式即将被废除,建议给弹性伸缩组配置通知功能。详见通知。
|
|
111
|
+
:type notifications: list[str]
|
|
112
|
+
:param delete_publicip: 配置删除云服务器时是否删除云服务器绑定的弹性IP。取值为true或false,默认为false。true:删除云服务器时,会同时删除绑定在云服务器上的弹性IP。当弹性IP的计费方式为包年包月时,不会被删除。false:删除云服务器时,仅解绑定在云服务器上的弹性IP,不删除弹性IP。
|
|
113
|
+
:type delete_publicip: bool
|
|
114
|
+
:param delete_volume: 配置删除云服务器时是否删除云服务器绑定的数据盘。取值为true或false,默认为false。 true:删除云服务器时,会同时删除绑定在云服务器上的数据盘。当数据盘的计费方式为包年包月时,不会被删除。 false:删除云服务器时,仅解绑定在云服务器上的数据盘,不删除数据盘。
|
|
115
|
+
:type delete_volume: bool
|
|
116
|
+
:param enterprise_project_id: 企业项目ID,用于指定伸缩组归属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目,如何获取企业项目ID,请参考[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)。当伸缩组配置企业项目时,由该伸缩组创建的弹性云服务器将归属于该企业项目。否则将使用默认企业项目。说明:关于企业项目特性的详细信息,请参见[企业项目管理](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0131965280.html)。
|
|
117
|
+
:type enterprise_project_id: str
|
|
118
|
+
:param multi_az_priority_policy: 伸缩组扩缩容时目标AZ选择的优先级策略:EQUILIBRIUM_DISTRIBUTE(默认):均衡分布,云服务器扩缩容时优先保证available_zones列表中各AZ下虚拟机数量均衡,当无法在目标AZ下完成虚拟机扩容时,按照PICK_FIRST原则选择其他可用AZ。PICK_FIRST:选择优先,虚拟机扩缩容时目标AZ的选择按照available_zones列表的顺序进行优先级排序。
|
|
119
|
+
:type multi_az_priority_policy: str
|
|
120
|
+
:param iam_agency_name: 委托的名称委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
|
|
121
|
+
:type iam_agency_name: str
|
|
122
|
+
:param description: 伸缩组描述信息(0-256个字符)
|
|
123
|
+
:type description: str
|
|
124
|
+
:param tags: 创建特定标签并将其添加到伸缩组。每个伸缩组最多添加10个标签。
|
|
125
|
+
:type tags: list[:class:`huaweicloudsdkas.v1.TagsSingleValue`]
|
|
126
|
+
"""
|
|
73
127
|
|
|
74
128
|
|
|
75
129
|
|
|
@@ -91,13 +145,16 @@ class CreateScalingGroupRequestBody:
|
|
|
91
145
|
self._instance_terminate_policy = None
|
|
92
146
|
self._notifications = None
|
|
93
147
|
self._delete_publicip = None
|
|
148
|
+
self._delete_volume = None
|
|
94
149
|
self._enterprise_project_id = None
|
|
95
150
|
self._multi_az_priority_policy = None
|
|
151
|
+
self._iam_agency_name = None
|
|
152
|
+
self._description = None
|
|
153
|
+
self._tags = None
|
|
96
154
|
self.discriminator = None
|
|
97
155
|
|
|
98
156
|
self.scaling_group_name = scaling_group_name
|
|
99
|
-
|
|
100
|
-
self.scaling_configuration_id = scaling_configuration_id
|
|
157
|
+
self.scaling_configuration_id = scaling_configuration_id
|
|
101
158
|
if desire_instance_number is not None:
|
|
102
159
|
self.desire_instance_number = desire_instance_number
|
|
103
160
|
if min_instance_number is not None:
|
|
@@ -128,451 +185,547 @@ class CreateScalingGroupRequestBody:
|
|
|
128
185
|
self.notifications = notifications
|
|
129
186
|
if delete_publicip is not None:
|
|
130
187
|
self.delete_publicip = delete_publicip
|
|
188
|
+
if delete_volume is not None:
|
|
189
|
+
self.delete_volume = delete_volume
|
|
131
190
|
if enterprise_project_id is not None:
|
|
132
191
|
self.enterprise_project_id = enterprise_project_id
|
|
133
192
|
if multi_az_priority_policy is not None:
|
|
134
193
|
self.multi_az_priority_policy = multi_az_priority_policy
|
|
194
|
+
if iam_agency_name is not None:
|
|
195
|
+
self.iam_agency_name = iam_agency_name
|
|
196
|
+
if description is not None:
|
|
197
|
+
self.description = description
|
|
198
|
+
if tags is not None:
|
|
199
|
+
self.tags = tags
|
|
135
200
|
|
|
136
201
|
@property
|
|
137
202
|
def scaling_group_name(self):
|
|
138
|
-
"""Gets the scaling_group_name of this
|
|
203
|
+
r"""Gets the scaling_group_name of this CreateScalingGroupOption.
|
|
139
204
|
|
|
140
205
|
伸缩组名称(1-64个字符),只能包含中文、字母、数字、下划线、中划线。
|
|
141
206
|
|
|
142
|
-
:return: The scaling_group_name of this
|
|
207
|
+
:return: The scaling_group_name of this CreateScalingGroupOption.
|
|
143
208
|
:rtype: str
|
|
144
209
|
"""
|
|
145
210
|
return self._scaling_group_name
|
|
146
211
|
|
|
147
212
|
@scaling_group_name.setter
|
|
148
213
|
def scaling_group_name(self, scaling_group_name):
|
|
149
|
-
"""Sets the scaling_group_name of this
|
|
214
|
+
r"""Sets the scaling_group_name of this CreateScalingGroupOption.
|
|
150
215
|
|
|
151
216
|
伸缩组名称(1-64个字符),只能包含中文、字母、数字、下划线、中划线。
|
|
152
217
|
|
|
153
|
-
:param scaling_group_name: The scaling_group_name of this
|
|
154
|
-
:type: str
|
|
218
|
+
:param scaling_group_name: The scaling_group_name of this CreateScalingGroupOption.
|
|
219
|
+
:type scaling_group_name: str
|
|
155
220
|
"""
|
|
156
221
|
self._scaling_group_name = scaling_group_name
|
|
157
222
|
|
|
158
223
|
@property
|
|
159
224
|
def scaling_configuration_id(self):
|
|
160
|
-
"""Gets the scaling_configuration_id of this
|
|
225
|
+
r"""Gets the scaling_configuration_id of this CreateScalingGroupOption.
|
|
161
226
|
|
|
162
227
|
伸缩配置ID,通过查询弹性伸缩配置列表接口获取。
|
|
163
228
|
|
|
164
|
-
:return: The scaling_configuration_id of this
|
|
229
|
+
:return: The scaling_configuration_id of this CreateScalingGroupOption.
|
|
165
230
|
:rtype: str
|
|
166
231
|
"""
|
|
167
232
|
return self._scaling_configuration_id
|
|
168
233
|
|
|
169
234
|
@scaling_configuration_id.setter
|
|
170
235
|
def scaling_configuration_id(self, scaling_configuration_id):
|
|
171
|
-
"""Sets the scaling_configuration_id of this
|
|
236
|
+
r"""Sets the scaling_configuration_id of this CreateScalingGroupOption.
|
|
172
237
|
|
|
173
238
|
伸缩配置ID,通过查询弹性伸缩配置列表接口获取。
|
|
174
239
|
|
|
175
|
-
:param scaling_configuration_id: The scaling_configuration_id of this
|
|
176
|
-
:type: str
|
|
240
|
+
:param scaling_configuration_id: The scaling_configuration_id of this CreateScalingGroupOption.
|
|
241
|
+
:type scaling_configuration_id: str
|
|
177
242
|
"""
|
|
178
243
|
self._scaling_configuration_id = scaling_configuration_id
|
|
179
244
|
|
|
180
245
|
@property
|
|
181
246
|
def desire_instance_number(self):
|
|
182
|
-
"""Gets the desire_instance_number of this
|
|
247
|
+
r"""Gets the desire_instance_number of this CreateScalingGroupOption.
|
|
183
248
|
|
|
184
249
|
期望实例数量,默认值为最小实例数。最小实例数<=期望实例数<=最大实例数
|
|
185
250
|
|
|
186
|
-
:return: The desire_instance_number of this
|
|
251
|
+
:return: The desire_instance_number of this CreateScalingGroupOption.
|
|
187
252
|
:rtype: int
|
|
188
253
|
"""
|
|
189
254
|
return self._desire_instance_number
|
|
190
255
|
|
|
191
256
|
@desire_instance_number.setter
|
|
192
257
|
def desire_instance_number(self, desire_instance_number):
|
|
193
|
-
"""Sets the desire_instance_number of this
|
|
258
|
+
r"""Sets the desire_instance_number of this CreateScalingGroupOption.
|
|
194
259
|
|
|
195
260
|
期望实例数量,默认值为最小实例数。最小实例数<=期望实例数<=最大实例数
|
|
196
261
|
|
|
197
|
-
:param desire_instance_number: The desire_instance_number of this
|
|
198
|
-
:type: int
|
|
262
|
+
:param desire_instance_number: The desire_instance_number of this CreateScalingGroupOption.
|
|
263
|
+
:type desire_instance_number: int
|
|
199
264
|
"""
|
|
200
265
|
self._desire_instance_number = desire_instance_number
|
|
201
266
|
|
|
202
267
|
@property
|
|
203
268
|
def min_instance_number(self):
|
|
204
|
-
"""Gets the min_instance_number of this
|
|
269
|
+
r"""Gets the min_instance_number of this CreateScalingGroupOption.
|
|
205
270
|
|
|
206
271
|
最小实例数量,默认值为0。
|
|
207
272
|
|
|
208
|
-
:return: The min_instance_number of this
|
|
273
|
+
:return: The min_instance_number of this CreateScalingGroupOption.
|
|
209
274
|
:rtype: int
|
|
210
275
|
"""
|
|
211
276
|
return self._min_instance_number
|
|
212
277
|
|
|
213
278
|
@min_instance_number.setter
|
|
214
279
|
def min_instance_number(self, min_instance_number):
|
|
215
|
-
"""Sets the min_instance_number of this
|
|
280
|
+
r"""Sets the min_instance_number of this CreateScalingGroupOption.
|
|
216
281
|
|
|
217
282
|
最小实例数量,默认值为0。
|
|
218
283
|
|
|
219
|
-
:param min_instance_number: The min_instance_number of this
|
|
220
|
-
:type: int
|
|
284
|
+
:param min_instance_number: The min_instance_number of this CreateScalingGroupOption.
|
|
285
|
+
:type min_instance_number: int
|
|
221
286
|
"""
|
|
222
287
|
self._min_instance_number = min_instance_number
|
|
223
288
|
|
|
224
289
|
@property
|
|
225
290
|
def max_instance_number(self):
|
|
226
|
-
"""Gets the max_instance_number of this
|
|
291
|
+
r"""Gets the max_instance_number of this CreateScalingGroupOption.
|
|
227
292
|
|
|
228
293
|
最大实例数量,默认值为0。
|
|
229
294
|
|
|
230
|
-
:return: The max_instance_number of this
|
|
295
|
+
:return: The max_instance_number of this CreateScalingGroupOption.
|
|
231
296
|
:rtype: int
|
|
232
297
|
"""
|
|
233
298
|
return self._max_instance_number
|
|
234
299
|
|
|
235
300
|
@max_instance_number.setter
|
|
236
301
|
def max_instance_number(self, max_instance_number):
|
|
237
|
-
"""Sets the max_instance_number of this
|
|
302
|
+
r"""Sets the max_instance_number of this CreateScalingGroupOption.
|
|
238
303
|
|
|
239
304
|
最大实例数量,默认值为0。
|
|
240
305
|
|
|
241
|
-
:param max_instance_number: The max_instance_number of this
|
|
242
|
-
:type: int
|
|
306
|
+
:param max_instance_number: The max_instance_number of this CreateScalingGroupOption.
|
|
307
|
+
:type max_instance_number: int
|
|
243
308
|
"""
|
|
244
309
|
self._max_instance_number = max_instance_number
|
|
245
310
|
|
|
246
311
|
@property
|
|
247
312
|
def cool_down_time(self):
|
|
248
|
-
"""Gets the cool_down_time of this
|
|
313
|
+
r"""Gets the cool_down_time of this CreateScalingGroupOption.
|
|
249
314
|
|
|
250
|
-
冷却时间,取值范围0-86400,默认为
|
|
315
|
+
冷却时间,取值范围0-86400,默认为300,单位是秒。 只针对告警策略生效,定时、周期策略和手动触发策略不受该参数限制。
|
|
251
316
|
|
|
252
|
-
:return: The cool_down_time of this
|
|
317
|
+
:return: The cool_down_time of this CreateScalingGroupOption.
|
|
253
318
|
:rtype: int
|
|
254
319
|
"""
|
|
255
320
|
return self._cool_down_time
|
|
256
321
|
|
|
257
322
|
@cool_down_time.setter
|
|
258
323
|
def cool_down_time(self, cool_down_time):
|
|
259
|
-
"""Sets the cool_down_time of this
|
|
324
|
+
r"""Sets the cool_down_time of this CreateScalingGroupOption.
|
|
260
325
|
|
|
261
|
-
冷却时间,取值范围0-86400,默认为
|
|
326
|
+
冷却时间,取值范围0-86400,默认为300,单位是秒。 只针对告警策略生效,定时、周期策略和手动触发策略不受该参数限制。
|
|
262
327
|
|
|
263
|
-
:param cool_down_time: The cool_down_time of this
|
|
264
|
-
:type: int
|
|
328
|
+
:param cool_down_time: The cool_down_time of this CreateScalingGroupOption.
|
|
329
|
+
:type cool_down_time: int
|
|
265
330
|
"""
|
|
266
331
|
self._cool_down_time = cool_down_time
|
|
267
332
|
|
|
268
333
|
@property
|
|
269
334
|
def lb_listener_id(self):
|
|
270
|
-
"""Gets the lb_listener_id of this
|
|
335
|
+
r"""Gets the lb_listener_id of this CreateScalingGroupOption.
|
|
271
336
|
|
|
272
|
-
弹性负载均衡(经典型)监听器ID,最多支持绑定
|
|
337
|
+
弹性负载均衡(经典型)监听器ID,最多支持绑定6个负载均衡监听器,多个负载均衡监听器ID以逗号分隔。首先使用vpc_id通过查询ELB服务负载均衡器列表接口获取负载均衡器的ID,详见《弹性负载均衡API参考》的“查询负载均衡器列表”,再使用该ID查询监听器列表获取,详见《弹性负载均衡API参考》的“查询监听器列表”。
|
|
273
338
|
|
|
274
|
-
:return: The lb_listener_id of this
|
|
339
|
+
:return: The lb_listener_id of this CreateScalingGroupOption.
|
|
275
340
|
:rtype: str
|
|
276
341
|
"""
|
|
277
342
|
return self._lb_listener_id
|
|
278
343
|
|
|
279
344
|
@lb_listener_id.setter
|
|
280
345
|
def lb_listener_id(self, lb_listener_id):
|
|
281
|
-
"""Sets the lb_listener_id of this
|
|
346
|
+
r"""Sets the lb_listener_id of this CreateScalingGroupOption.
|
|
282
347
|
|
|
283
|
-
弹性负载均衡(经典型)监听器ID,最多支持绑定
|
|
348
|
+
弹性负载均衡(经典型)监听器ID,最多支持绑定6个负载均衡监听器,多个负载均衡监听器ID以逗号分隔。首先使用vpc_id通过查询ELB服务负载均衡器列表接口获取负载均衡器的ID,详见《弹性负载均衡API参考》的“查询负载均衡器列表”,再使用该ID查询监听器列表获取,详见《弹性负载均衡API参考》的“查询监听器列表”。
|
|
284
349
|
|
|
285
|
-
:param lb_listener_id: The lb_listener_id of this
|
|
286
|
-
:type: str
|
|
350
|
+
:param lb_listener_id: The lb_listener_id of this CreateScalingGroupOption.
|
|
351
|
+
:type lb_listener_id: str
|
|
287
352
|
"""
|
|
288
353
|
self._lb_listener_id = lb_listener_id
|
|
289
354
|
|
|
290
355
|
@property
|
|
291
356
|
def lbaas_listeners(self):
|
|
292
|
-
"""Gets the lbaas_listeners of this
|
|
357
|
+
r"""Gets the lbaas_listeners of this CreateScalingGroupOption.
|
|
293
358
|
|
|
294
|
-
弹性负载均衡器(增强型)信息,最多支持绑定
|
|
359
|
+
弹性负载均衡器(增强型)信息,最多支持绑定6个负载均衡。该字段与lb_listener_id互斥。
|
|
295
360
|
|
|
296
|
-
:return: The lbaas_listeners of this
|
|
297
|
-
:rtype: list[LbaasListeners]
|
|
361
|
+
:return: The lbaas_listeners of this CreateScalingGroupOption.
|
|
362
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.LbaasListeners`]
|
|
298
363
|
"""
|
|
299
364
|
return self._lbaas_listeners
|
|
300
365
|
|
|
301
366
|
@lbaas_listeners.setter
|
|
302
367
|
def lbaas_listeners(self, lbaas_listeners):
|
|
303
|
-
"""Sets the lbaas_listeners of this
|
|
368
|
+
r"""Sets the lbaas_listeners of this CreateScalingGroupOption.
|
|
304
369
|
|
|
305
|
-
弹性负载均衡器(增强型)信息,最多支持绑定
|
|
370
|
+
弹性负载均衡器(增强型)信息,最多支持绑定6个负载均衡。该字段与lb_listener_id互斥。
|
|
306
371
|
|
|
307
|
-
:param lbaas_listeners: The lbaas_listeners of this
|
|
308
|
-
:type: list[LbaasListeners]
|
|
372
|
+
:param lbaas_listeners: The lbaas_listeners of this CreateScalingGroupOption.
|
|
373
|
+
:type lbaas_listeners: list[:class:`huaweicloudsdkas.v1.LbaasListeners`]
|
|
309
374
|
"""
|
|
310
375
|
self._lbaas_listeners = lbaas_listeners
|
|
311
376
|
|
|
312
377
|
@property
|
|
313
378
|
def available_zones(self):
|
|
314
|
-
"""Gets the available_zones of this
|
|
379
|
+
r"""Gets the available_zones of this CreateScalingGroupOption.
|
|
315
380
|
|
|
316
381
|
可用分区信息。弹性伸缩活动中自动添加的云服务器会被创建在指定的可用区中。如果没有指定可用分区,会由系统自动指定可用分区。详情请参考地区和终端节点。
|
|
317
382
|
|
|
318
|
-
:return: The available_zones of this
|
|
383
|
+
:return: The available_zones of this CreateScalingGroupOption.
|
|
319
384
|
:rtype: list[str]
|
|
320
385
|
"""
|
|
321
386
|
return self._available_zones
|
|
322
387
|
|
|
323
388
|
@available_zones.setter
|
|
324
389
|
def available_zones(self, available_zones):
|
|
325
|
-
"""Sets the available_zones of this
|
|
390
|
+
r"""Sets the available_zones of this CreateScalingGroupOption.
|
|
326
391
|
|
|
327
392
|
可用分区信息。弹性伸缩活动中自动添加的云服务器会被创建在指定的可用区中。如果没有指定可用分区,会由系统自动指定可用分区。详情请参考地区和终端节点。
|
|
328
393
|
|
|
329
|
-
:param available_zones: The available_zones of this
|
|
330
|
-
:type: list[str]
|
|
394
|
+
:param available_zones: The available_zones of this CreateScalingGroupOption.
|
|
395
|
+
:type available_zones: list[str]
|
|
331
396
|
"""
|
|
332
397
|
self._available_zones = available_zones
|
|
333
398
|
|
|
334
399
|
@property
|
|
335
400
|
def networks(self):
|
|
336
|
-
"""Gets the networks of this
|
|
401
|
+
r"""Gets the networks of this CreateScalingGroupOption.
|
|
337
402
|
|
|
338
|
-
网络信息,最多支持选择5
|
|
403
|
+
网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。获取子网信息请参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
|
|
339
404
|
|
|
340
|
-
:return: The networks of this
|
|
341
|
-
:rtype: list[Networks]
|
|
405
|
+
:return: The networks of this CreateScalingGroupOption.
|
|
406
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.Networks`]
|
|
342
407
|
"""
|
|
343
408
|
return self._networks
|
|
344
409
|
|
|
345
410
|
@networks.setter
|
|
346
411
|
def networks(self, networks):
|
|
347
|
-
"""Sets the networks of this
|
|
412
|
+
r"""Sets the networks of this CreateScalingGroupOption.
|
|
348
413
|
|
|
349
|
-
网络信息,最多支持选择5
|
|
414
|
+
网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。获取子网信息请参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
|
|
350
415
|
|
|
351
|
-
:param networks: The networks of this
|
|
352
|
-
:type: list[Networks]
|
|
416
|
+
:param networks: The networks of this CreateScalingGroupOption.
|
|
417
|
+
:type networks: list[:class:`huaweicloudsdkas.v1.Networks`]
|
|
353
418
|
"""
|
|
354
419
|
self._networks = networks
|
|
355
420
|
|
|
356
421
|
@property
|
|
357
422
|
def security_groups(self):
|
|
358
|
-
"""Gets the security_groups of this
|
|
423
|
+
r"""Gets the security_groups of this CreateScalingGroupOption.
|
|
359
424
|
|
|
360
425
|
安全组信息,最多支持选择1个安全组。使用vpc_id通过查询VPC服务安全组列表接口获取,详见《虚拟私有云API参考》的“查询安全组列表”。当伸缩配置和伸缩组同时指定安全组时,将以伸缩配置中的安全组为准;当伸缩配置和伸缩组都没有指定安全组时,将使用默认安全组。为了使用灵活性更高,推荐在伸缩配置中指定安全组。
|
|
361
426
|
|
|
362
|
-
:return: The security_groups of this
|
|
363
|
-
:rtype: list[
|
|
427
|
+
:return: The security_groups of this CreateScalingGroupOption.
|
|
428
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.SecurityGroup`]
|
|
364
429
|
"""
|
|
365
430
|
return self._security_groups
|
|
366
431
|
|
|
367
432
|
@security_groups.setter
|
|
368
433
|
def security_groups(self, security_groups):
|
|
369
|
-
"""Sets the security_groups of this
|
|
434
|
+
r"""Sets the security_groups of this CreateScalingGroupOption.
|
|
370
435
|
|
|
371
436
|
安全组信息,最多支持选择1个安全组。使用vpc_id通过查询VPC服务安全组列表接口获取,详见《虚拟私有云API参考》的“查询安全组列表”。当伸缩配置和伸缩组同时指定安全组时,将以伸缩配置中的安全组为准;当伸缩配置和伸缩组都没有指定安全组时,将使用默认安全组。为了使用灵活性更高,推荐在伸缩配置中指定安全组。
|
|
372
437
|
|
|
373
|
-
:param security_groups: The security_groups of this
|
|
374
|
-
:type: list[
|
|
438
|
+
:param security_groups: The security_groups of this CreateScalingGroupOption.
|
|
439
|
+
:type security_groups: list[:class:`huaweicloudsdkas.v1.SecurityGroup`]
|
|
375
440
|
"""
|
|
376
441
|
self._security_groups = security_groups
|
|
377
442
|
|
|
378
443
|
@property
|
|
379
444
|
def vpc_id(self):
|
|
380
|
-
"""Gets the vpc_id of this
|
|
445
|
+
r"""Gets the vpc_id of this CreateScalingGroupOption.
|
|
381
446
|
|
|
382
447
|
VPC信息,通过查询VPC服务VPC列表接口获取,详见《虚拟私有云API参考》的“查询VPC列表”。
|
|
383
448
|
|
|
384
|
-
:return: The vpc_id of this
|
|
449
|
+
:return: The vpc_id of this CreateScalingGroupOption.
|
|
385
450
|
:rtype: str
|
|
386
451
|
"""
|
|
387
452
|
return self._vpc_id
|
|
388
453
|
|
|
389
454
|
@vpc_id.setter
|
|
390
455
|
def vpc_id(self, vpc_id):
|
|
391
|
-
"""Sets the vpc_id of this
|
|
456
|
+
r"""Sets the vpc_id of this CreateScalingGroupOption.
|
|
392
457
|
|
|
393
458
|
VPC信息,通过查询VPC服务VPC列表接口获取,详见《虚拟私有云API参考》的“查询VPC列表”。
|
|
394
459
|
|
|
395
|
-
:param vpc_id: The vpc_id of this
|
|
396
|
-
:type: str
|
|
460
|
+
:param vpc_id: The vpc_id of this CreateScalingGroupOption.
|
|
461
|
+
:type vpc_id: str
|
|
397
462
|
"""
|
|
398
463
|
self._vpc_id = vpc_id
|
|
399
464
|
|
|
400
465
|
@property
|
|
401
466
|
def health_periodic_audit_method(self):
|
|
402
|
-
"""Gets the health_periodic_audit_method of this
|
|
467
|
+
r"""Gets the health_periodic_audit_method of this CreateScalingGroupOption.
|
|
403
468
|
|
|
404
469
|
伸缩组实例健康检查方式:ELB_AUDIT和NOVA_AUDIT。当伸缩组参数中设置负载均衡时,默认为ELB_AUDIT;否则默认为NOVA_AUDIT。ELB_AUDIT表示负载均衡健康检查方式,在有监听器的伸缩组中有效。NOVA_AUDIT表示弹性伸缩自带的健康检查方式。
|
|
405
470
|
|
|
406
|
-
:return: The health_periodic_audit_method of this
|
|
471
|
+
:return: The health_periodic_audit_method of this CreateScalingGroupOption.
|
|
407
472
|
:rtype: str
|
|
408
473
|
"""
|
|
409
474
|
return self._health_periodic_audit_method
|
|
410
475
|
|
|
411
476
|
@health_periodic_audit_method.setter
|
|
412
477
|
def health_periodic_audit_method(self, health_periodic_audit_method):
|
|
413
|
-
"""Sets the health_periodic_audit_method of this
|
|
478
|
+
r"""Sets the health_periodic_audit_method of this CreateScalingGroupOption.
|
|
414
479
|
|
|
415
480
|
伸缩组实例健康检查方式:ELB_AUDIT和NOVA_AUDIT。当伸缩组参数中设置负载均衡时,默认为ELB_AUDIT;否则默认为NOVA_AUDIT。ELB_AUDIT表示负载均衡健康检查方式,在有监听器的伸缩组中有效。NOVA_AUDIT表示弹性伸缩自带的健康检查方式。
|
|
416
481
|
|
|
417
|
-
:param health_periodic_audit_method: The health_periodic_audit_method of this
|
|
418
|
-
:type: str
|
|
482
|
+
:param health_periodic_audit_method: The health_periodic_audit_method of this CreateScalingGroupOption.
|
|
483
|
+
:type health_periodic_audit_method: str
|
|
419
484
|
"""
|
|
420
485
|
self._health_periodic_audit_method = health_periodic_audit_method
|
|
421
486
|
|
|
422
487
|
@property
|
|
423
488
|
def health_periodic_audit_time(self):
|
|
424
|
-
"""Gets the health_periodic_audit_time of this
|
|
489
|
+
r"""Gets the health_periodic_audit_time of this CreateScalingGroupOption.
|
|
425
490
|
|
|
426
491
|
伸缩组实例的健康检查周期,可设置为1、5、15、60、180(分钟),若不设置该参数,默认为5。若设置为0,可以实现10秒级健康检查。
|
|
427
492
|
|
|
428
|
-
:return: The health_periodic_audit_time of this
|
|
493
|
+
:return: The health_periodic_audit_time of this CreateScalingGroupOption.
|
|
429
494
|
:rtype: int
|
|
430
495
|
"""
|
|
431
496
|
return self._health_periodic_audit_time
|
|
432
497
|
|
|
433
498
|
@health_periodic_audit_time.setter
|
|
434
499
|
def health_periodic_audit_time(self, health_periodic_audit_time):
|
|
435
|
-
"""Sets the health_periodic_audit_time of this
|
|
500
|
+
r"""Sets the health_periodic_audit_time of this CreateScalingGroupOption.
|
|
436
501
|
|
|
437
502
|
伸缩组实例的健康检查周期,可设置为1、5、15、60、180(分钟),若不设置该参数,默认为5。若设置为0,可以实现10秒级健康检查。
|
|
438
503
|
|
|
439
|
-
:param health_periodic_audit_time: The health_periodic_audit_time of this
|
|
440
|
-
:type: int
|
|
504
|
+
:param health_periodic_audit_time: The health_periodic_audit_time of this CreateScalingGroupOption.
|
|
505
|
+
:type health_periodic_audit_time: int
|
|
441
506
|
"""
|
|
442
507
|
self._health_periodic_audit_time = health_periodic_audit_time
|
|
443
508
|
|
|
444
509
|
@property
|
|
445
510
|
def health_periodic_audit_grace_period(self):
|
|
446
|
-
"""Gets the health_periodic_audit_grace_period of this
|
|
511
|
+
r"""Gets the health_periodic_audit_grace_period of this CreateScalingGroupOption.
|
|
447
512
|
|
|
448
513
|
伸缩组实例健康状况检查宽限期,取值范围0-86400,单位是秒。当实例加入伸缩组并且进入已启用状态后,健康状况检查宽限期才会启动,伸缩组会等健康状况检查宽限期结束后才检查实例的运行状况。当伸缩组实例健康检查方式为ELB_AUDIT时,该参数生效,若不设置该参数,默认为600秒。
|
|
449
514
|
|
|
450
|
-
:return: The health_periodic_audit_grace_period of this
|
|
515
|
+
:return: The health_periodic_audit_grace_period of this CreateScalingGroupOption.
|
|
451
516
|
:rtype: int
|
|
452
517
|
"""
|
|
453
518
|
return self._health_periodic_audit_grace_period
|
|
454
519
|
|
|
455
520
|
@health_periodic_audit_grace_period.setter
|
|
456
521
|
def health_periodic_audit_grace_period(self, health_periodic_audit_grace_period):
|
|
457
|
-
"""Sets the health_periodic_audit_grace_period of this
|
|
522
|
+
r"""Sets the health_periodic_audit_grace_period of this CreateScalingGroupOption.
|
|
458
523
|
|
|
459
524
|
伸缩组实例健康状况检查宽限期,取值范围0-86400,单位是秒。当实例加入伸缩组并且进入已启用状态后,健康状况检查宽限期才会启动,伸缩组会等健康状况检查宽限期结束后才检查实例的运行状况。当伸缩组实例健康检查方式为ELB_AUDIT时,该参数生效,若不设置该参数,默认为600秒。
|
|
460
525
|
|
|
461
|
-
:param health_periodic_audit_grace_period: The health_periodic_audit_grace_period of this
|
|
462
|
-
:type: int
|
|
526
|
+
:param health_periodic_audit_grace_period: The health_periodic_audit_grace_period of this CreateScalingGroupOption.
|
|
527
|
+
:type health_periodic_audit_grace_period: int
|
|
463
528
|
"""
|
|
464
529
|
self._health_periodic_audit_grace_period = health_periodic_audit_grace_period
|
|
465
530
|
|
|
466
531
|
@property
|
|
467
532
|
def instance_terminate_policy(self):
|
|
468
|
-
"""Gets the instance_terminate_policy of this
|
|
533
|
+
r"""Gets the instance_terminate_policy of this CreateScalingGroupOption.
|
|
469
534
|
|
|
470
535
|
伸缩组实例移除策略:OLD_CONFIG_OLD_INSTANCE(默认):从根据“较早创建的配置”创建的实例中筛选出较早创建的实例被优先移除。OLD_CONFIG_NEW_INSTANCE:从根据“较早创建的配置”创建的实例中筛选出较新创建的实例被优先移除。OLD_INSTANCE:较早创建的实例被优先移除。NEW_INSTANCE:较新创建的实例将被优先移除。
|
|
471
536
|
|
|
472
|
-
:return: The instance_terminate_policy of this
|
|
537
|
+
:return: The instance_terminate_policy of this CreateScalingGroupOption.
|
|
473
538
|
:rtype: str
|
|
474
539
|
"""
|
|
475
540
|
return self._instance_terminate_policy
|
|
476
541
|
|
|
477
542
|
@instance_terminate_policy.setter
|
|
478
543
|
def instance_terminate_policy(self, instance_terminate_policy):
|
|
479
|
-
"""Sets the instance_terminate_policy of this
|
|
544
|
+
r"""Sets the instance_terminate_policy of this CreateScalingGroupOption.
|
|
480
545
|
|
|
481
546
|
伸缩组实例移除策略:OLD_CONFIG_OLD_INSTANCE(默认):从根据“较早创建的配置”创建的实例中筛选出较早创建的实例被优先移除。OLD_CONFIG_NEW_INSTANCE:从根据“较早创建的配置”创建的实例中筛选出较新创建的实例被优先移除。OLD_INSTANCE:较早创建的实例被优先移除。NEW_INSTANCE:较新创建的实例将被优先移除。
|
|
482
547
|
|
|
483
|
-
:param instance_terminate_policy: The instance_terminate_policy of this
|
|
484
|
-
:type: str
|
|
548
|
+
:param instance_terminate_policy: The instance_terminate_policy of this CreateScalingGroupOption.
|
|
549
|
+
:type instance_terminate_policy: str
|
|
485
550
|
"""
|
|
486
551
|
self._instance_terminate_policy = instance_terminate_policy
|
|
487
552
|
|
|
488
553
|
@property
|
|
489
554
|
def notifications(self):
|
|
490
|
-
"""Gets the notifications of this
|
|
555
|
+
r"""Gets the notifications of this CreateScalingGroupOption.
|
|
491
556
|
|
|
492
557
|
通知方式:EMAIL为发送邮件通知。该通知方式即将被废除,建议给弹性伸缩组配置通知功能。详见通知。
|
|
493
558
|
|
|
494
|
-
:return: The notifications of this
|
|
559
|
+
:return: The notifications of this CreateScalingGroupOption.
|
|
495
560
|
:rtype: list[str]
|
|
496
561
|
"""
|
|
497
562
|
return self._notifications
|
|
498
563
|
|
|
499
564
|
@notifications.setter
|
|
500
565
|
def notifications(self, notifications):
|
|
501
|
-
"""Sets the notifications of this
|
|
566
|
+
r"""Sets the notifications of this CreateScalingGroupOption.
|
|
502
567
|
|
|
503
568
|
通知方式:EMAIL为发送邮件通知。该通知方式即将被废除,建议给弹性伸缩组配置通知功能。详见通知。
|
|
504
569
|
|
|
505
|
-
:param notifications: The notifications of this
|
|
506
|
-
:type: list[str]
|
|
570
|
+
:param notifications: The notifications of this CreateScalingGroupOption.
|
|
571
|
+
:type notifications: list[str]
|
|
507
572
|
"""
|
|
508
573
|
self._notifications = notifications
|
|
509
574
|
|
|
510
575
|
@property
|
|
511
576
|
def delete_publicip(self):
|
|
512
|
-
"""Gets the delete_publicip of this
|
|
577
|
+
r"""Gets the delete_publicip of this CreateScalingGroupOption.
|
|
513
578
|
|
|
514
579
|
配置删除云服务器时是否删除云服务器绑定的弹性IP。取值为true或false,默认为false。true:删除云服务器时,会同时删除绑定在云服务器上的弹性IP。当弹性IP的计费方式为包年包月时,不会被删除。false:删除云服务器时,仅解绑定在云服务器上的弹性IP,不删除弹性IP。
|
|
515
580
|
|
|
516
|
-
:return: The delete_publicip of this
|
|
581
|
+
:return: The delete_publicip of this CreateScalingGroupOption.
|
|
517
582
|
:rtype: bool
|
|
518
583
|
"""
|
|
519
584
|
return self._delete_publicip
|
|
520
585
|
|
|
521
586
|
@delete_publicip.setter
|
|
522
587
|
def delete_publicip(self, delete_publicip):
|
|
523
|
-
"""Sets the delete_publicip of this
|
|
588
|
+
r"""Sets the delete_publicip of this CreateScalingGroupOption.
|
|
524
589
|
|
|
525
590
|
配置删除云服务器时是否删除云服务器绑定的弹性IP。取值为true或false,默认为false。true:删除云服务器时,会同时删除绑定在云服务器上的弹性IP。当弹性IP的计费方式为包年包月时,不会被删除。false:删除云服务器时,仅解绑定在云服务器上的弹性IP,不删除弹性IP。
|
|
526
591
|
|
|
527
|
-
:param delete_publicip: The delete_publicip of this
|
|
528
|
-
:type: bool
|
|
592
|
+
:param delete_publicip: The delete_publicip of this CreateScalingGroupOption.
|
|
593
|
+
:type delete_publicip: bool
|
|
529
594
|
"""
|
|
530
595
|
self._delete_publicip = delete_publicip
|
|
531
596
|
|
|
597
|
+
@property
|
|
598
|
+
def delete_volume(self):
|
|
599
|
+
r"""Gets the delete_volume of this CreateScalingGroupOption.
|
|
600
|
+
|
|
601
|
+
配置删除云服务器时是否删除云服务器绑定的数据盘。取值为true或false,默认为false。 true:删除云服务器时,会同时删除绑定在云服务器上的数据盘。当数据盘的计费方式为包年包月时,不会被删除。 false:删除云服务器时,仅解绑定在云服务器上的数据盘,不删除数据盘。
|
|
602
|
+
|
|
603
|
+
:return: The delete_volume of this CreateScalingGroupOption.
|
|
604
|
+
:rtype: bool
|
|
605
|
+
"""
|
|
606
|
+
return self._delete_volume
|
|
607
|
+
|
|
608
|
+
@delete_volume.setter
|
|
609
|
+
def delete_volume(self, delete_volume):
|
|
610
|
+
r"""Sets the delete_volume of this CreateScalingGroupOption.
|
|
611
|
+
|
|
612
|
+
配置删除云服务器时是否删除云服务器绑定的数据盘。取值为true或false,默认为false。 true:删除云服务器时,会同时删除绑定在云服务器上的数据盘。当数据盘的计费方式为包年包月时,不会被删除。 false:删除云服务器时,仅解绑定在云服务器上的数据盘,不删除数据盘。
|
|
613
|
+
|
|
614
|
+
:param delete_volume: The delete_volume of this CreateScalingGroupOption.
|
|
615
|
+
:type delete_volume: bool
|
|
616
|
+
"""
|
|
617
|
+
self._delete_volume = delete_volume
|
|
618
|
+
|
|
532
619
|
@property
|
|
533
620
|
def enterprise_project_id(self):
|
|
534
|
-
"""Gets the enterprise_project_id of this
|
|
621
|
+
r"""Gets the enterprise_project_id of this CreateScalingGroupOption.
|
|
535
622
|
|
|
536
|
-
企业项目ID
|
|
623
|
+
企业项目ID,用于指定伸缩组归属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目,如何获取企业项目ID,请参考[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)。当伸缩组配置企业项目时,由该伸缩组创建的弹性云服务器将归属于该企业项目。否则将使用默认企业项目。说明:关于企业项目特性的详细信息,请参见[企业项目管理](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0131965280.html)。
|
|
537
624
|
|
|
538
|
-
:return: The enterprise_project_id of this
|
|
625
|
+
:return: The enterprise_project_id of this CreateScalingGroupOption.
|
|
539
626
|
:rtype: str
|
|
540
627
|
"""
|
|
541
628
|
return self._enterprise_project_id
|
|
542
629
|
|
|
543
630
|
@enterprise_project_id.setter
|
|
544
631
|
def enterprise_project_id(self, enterprise_project_id):
|
|
545
|
-
"""Sets the enterprise_project_id of this
|
|
632
|
+
r"""Sets the enterprise_project_id of this CreateScalingGroupOption.
|
|
546
633
|
|
|
547
|
-
企业项目ID
|
|
634
|
+
企业项目ID,用于指定伸缩组归属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目,如何获取企业项目ID,请参考[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)。当伸缩组配置企业项目时,由该伸缩组创建的弹性云服务器将归属于该企业项目。否则将使用默认企业项目。说明:关于企业项目特性的详细信息,请参见[企业项目管理](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0131965280.html)。
|
|
548
635
|
|
|
549
|
-
:param enterprise_project_id: The enterprise_project_id of this
|
|
550
|
-
:type: str
|
|
636
|
+
:param enterprise_project_id: The enterprise_project_id of this CreateScalingGroupOption.
|
|
637
|
+
:type enterprise_project_id: str
|
|
551
638
|
"""
|
|
552
639
|
self._enterprise_project_id = enterprise_project_id
|
|
553
640
|
|
|
554
641
|
@property
|
|
555
642
|
def multi_az_priority_policy(self):
|
|
556
|
-
"""Gets the multi_az_priority_policy of this
|
|
643
|
+
r"""Gets the multi_az_priority_policy of this CreateScalingGroupOption.
|
|
557
644
|
|
|
558
645
|
伸缩组扩缩容时目标AZ选择的优先级策略:EQUILIBRIUM_DISTRIBUTE(默认):均衡分布,云服务器扩缩容时优先保证available_zones列表中各AZ下虚拟机数量均衡,当无法在目标AZ下完成虚拟机扩容时,按照PICK_FIRST原则选择其他可用AZ。PICK_FIRST:选择优先,虚拟机扩缩容时目标AZ的选择按照available_zones列表的顺序进行优先级排序。
|
|
559
646
|
|
|
560
|
-
:return: The multi_az_priority_policy of this
|
|
647
|
+
:return: The multi_az_priority_policy of this CreateScalingGroupOption.
|
|
561
648
|
:rtype: str
|
|
562
649
|
"""
|
|
563
650
|
return self._multi_az_priority_policy
|
|
564
651
|
|
|
565
652
|
@multi_az_priority_policy.setter
|
|
566
653
|
def multi_az_priority_policy(self, multi_az_priority_policy):
|
|
567
|
-
"""Sets the multi_az_priority_policy of this
|
|
654
|
+
r"""Sets the multi_az_priority_policy of this CreateScalingGroupOption.
|
|
568
655
|
|
|
569
656
|
伸缩组扩缩容时目标AZ选择的优先级策略:EQUILIBRIUM_DISTRIBUTE(默认):均衡分布,云服务器扩缩容时优先保证available_zones列表中各AZ下虚拟机数量均衡,当无法在目标AZ下完成虚拟机扩容时,按照PICK_FIRST原则选择其他可用AZ。PICK_FIRST:选择优先,虚拟机扩缩容时目标AZ的选择按照available_zones列表的顺序进行优先级排序。
|
|
570
657
|
|
|
571
|
-
:param multi_az_priority_policy: The multi_az_priority_policy of this
|
|
572
|
-
:type: str
|
|
658
|
+
:param multi_az_priority_policy: The multi_az_priority_policy of this CreateScalingGroupOption.
|
|
659
|
+
:type multi_az_priority_policy: str
|
|
573
660
|
"""
|
|
574
661
|
self._multi_az_priority_policy = multi_az_priority_policy
|
|
575
662
|
|
|
663
|
+
@property
|
|
664
|
+
def iam_agency_name(self):
|
|
665
|
+
r"""Gets the iam_agency_name of this CreateScalingGroupOption.
|
|
666
|
+
|
|
667
|
+
委托的名称委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
|
|
668
|
+
|
|
669
|
+
:return: The iam_agency_name of this CreateScalingGroupOption.
|
|
670
|
+
:rtype: str
|
|
671
|
+
"""
|
|
672
|
+
return self._iam_agency_name
|
|
673
|
+
|
|
674
|
+
@iam_agency_name.setter
|
|
675
|
+
def iam_agency_name(self, iam_agency_name):
|
|
676
|
+
r"""Sets the iam_agency_name of this CreateScalingGroupOption.
|
|
677
|
+
|
|
678
|
+
委托的名称委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
|
|
679
|
+
|
|
680
|
+
:param iam_agency_name: The iam_agency_name of this CreateScalingGroupOption.
|
|
681
|
+
:type iam_agency_name: str
|
|
682
|
+
"""
|
|
683
|
+
self._iam_agency_name = iam_agency_name
|
|
684
|
+
|
|
685
|
+
@property
|
|
686
|
+
def description(self):
|
|
687
|
+
r"""Gets the description of this CreateScalingGroupOption.
|
|
688
|
+
|
|
689
|
+
伸缩组描述信息(0-256个字符)
|
|
690
|
+
|
|
691
|
+
:return: The description of this CreateScalingGroupOption.
|
|
692
|
+
:rtype: str
|
|
693
|
+
"""
|
|
694
|
+
return self._description
|
|
695
|
+
|
|
696
|
+
@description.setter
|
|
697
|
+
def description(self, description):
|
|
698
|
+
r"""Sets the description of this CreateScalingGroupOption.
|
|
699
|
+
|
|
700
|
+
伸缩组描述信息(0-256个字符)
|
|
701
|
+
|
|
702
|
+
:param description: The description of this CreateScalingGroupOption.
|
|
703
|
+
:type description: str
|
|
704
|
+
"""
|
|
705
|
+
self._description = description
|
|
706
|
+
|
|
707
|
+
@property
|
|
708
|
+
def tags(self):
|
|
709
|
+
r"""Gets the tags of this CreateScalingGroupOption.
|
|
710
|
+
|
|
711
|
+
创建特定标签并将其添加到伸缩组。每个伸缩组最多添加10个标签。
|
|
712
|
+
|
|
713
|
+
:return: The tags of this CreateScalingGroupOption.
|
|
714
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.TagsSingleValue`]
|
|
715
|
+
"""
|
|
716
|
+
return self._tags
|
|
717
|
+
|
|
718
|
+
@tags.setter
|
|
719
|
+
def tags(self, tags):
|
|
720
|
+
r"""Sets the tags of this CreateScalingGroupOption.
|
|
721
|
+
|
|
722
|
+
创建特定标签并将其添加到伸缩组。每个伸缩组最多添加10个标签。
|
|
723
|
+
|
|
724
|
+
:param tags: The tags of this CreateScalingGroupOption.
|
|
725
|
+
:type tags: list[:class:`huaweicloudsdkas.v1.TagsSingleValue`]
|
|
726
|
+
"""
|
|
727
|
+
self._tags = tags
|
|
728
|
+
|
|
576
729
|
def to_dict(self):
|
|
577
730
|
"""Returns the model properties as a dict"""
|
|
578
731
|
result = {}
|
|
@@ -602,15 +755,20 @@ class CreateScalingGroupRequestBody:
|
|
|
602
755
|
|
|
603
756
|
def to_str(self):
|
|
604
757
|
"""Returns the string representation of the model"""
|
|
605
|
-
|
|
758
|
+
import simplejson as json
|
|
759
|
+
if six.PY2:
|
|
760
|
+
import sys
|
|
761
|
+
reload(sys)
|
|
762
|
+
sys.setdefaultencoding("utf-8")
|
|
763
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
606
764
|
|
|
607
765
|
def __repr__(self):
|
|
608
|
-
"""For `print`
|
|
766
|
+
"""For `print`"""
|
|
609
767
|
return self.to_str()
|
|
610
768
|
|
|
611
769
|
def __eq__(self, other):
|
|
612
770
|
"""Returns true if both objects are equal"""
|
|
613
|
-
if not isinstance(other,
|
|
771
|
+
if not isinstance(other, CreateScalingGroupOption):
|
|
614
772
|
return False
|
|
615
773
|
|
|
616
774
|
return self.__dict__ == other.__dict__
|