huaweicloudsdkas 3.0.33rc0__py3-none-any.whl → 3.1.176__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkas/v1/__init__.py +135 -34
- huaweicloudsdkas/v1/as_async_client.py +3419 -1442
- huaweicloudsdkas/v1/as_client.py +3417 -1441
- huaweicloudsdkas/v1/model/__init__.py +134 -32
- huaweicloudsdkas/v1/model/all_quotas.py +16 -18
- huaweicloudsdkas/v1/model/all_resources.py +62 -29
- huaweicloudsdkas/v1/model/allowed_address_pair.py +108 -0
- huaweicloudsdkas/v1/model/attach_callback_instance_life_cycle_hook_request.py +132 -0
- huaweicloudsdkas/v1/model/attach_callback_instance_life_cycle_hook_response.py +81 -0
- huaweicloudsdkas/v1/model/bandwidth_info.py +194 -0
- huaweicloudsdkas/v1/model/{bandwidth.py → bandwidth_result.py} +52 -46
- huaweicloudsdkas/v1/model/{update_scaling_group_instance_request_body.py → batch_add_instances_option.py} +40 -36
- huaweicloudsdkas/v1/model/batch_add_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_add_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/{batch_delete_scaling_configs_request_body.py → batch_delete_scaling_config_option.py} +20 -23
- huaweicloudsdkas/v1/model/batch_delete_scaling_configs_request.py +17 -21
- huaweicloudsdkas/v1/model/batch_delete_scaling_configs_response.py +13 -13
- huaweicloudsdkas/v1/model/batch_delete_scaling_policies_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_delete_scaling_policies_request.py +104 -0
- huaweicloudsdkas/v1/model/{update_scaling_group_instance_response.py → batch_delete_scaling_policies_response.py} +15 -15
- huaweicloudsdkas/v1/model/batch_enter_standby_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_exit_stand_by_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_pause_scaling_policies_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_pause_scaling_policies_request.py +104 -0
- huaweicloudsdkas/v1/model/batch_pause_scaling_policies_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_protect_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_protect_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_protect_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_remove_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_remove_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_remove_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_resume_scaling_policies_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_resume_scaling_policies_request.py +104 -0
- huaweicloudsdkas/v1/model/batch_resume_scaling_policies_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_set_scaling_instances_standby_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_set_scaling_instances_standby_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_unprotect_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_unprotect_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_unprotect_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_unset_scaling_instances_stantby_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_unset_scaling_instances_stantby_response.py +81 -0
- huaweicloudsdkas/v1/model/{complete_lifecycle_action_request_body.py → callback_life_cycle_hook_option.py} +40 -36
- huaweicloudsdkas/v1/model/close_warm_pool_request.py +107 -0
- huaweicloudsdkas/v1/model/{complete_lifecycle_action_response.py → close_warm_pool_response.py} +15 -15
- huaweicloudsdkas/v1/model/create_group_scheduled_task_request.py +132 -0
- huaweicloudsdkas/v1/model/create_group_scheduled_task_response.py +112 -0
- huaweicloudsdkas/v1/model/{create_life_cycle_hook_request_body.py → create_life_cycle_hook_option.py} +56 -48
- huaweicloudsdkas/v1/model/create_lify_cycle_hook_request.py +24 -24
- huaweicloudsdkas/v1/model/create_lify_cycle_hook_response.py +55 -39
- huaweicloudsdkas/v1/model/{create_notification_request_body.py → create_notification_option.py} +28 -30
- huaweicloudsdkas/v1/model/create_scaling_config_option.py +162 -0
- huaweicloudsdkas/v1/model/create_scaling_config_request.py +17 -21
- huaweicloudsdkas/v1/model/create_scaling_config_response.py +18 -16
- huaweicloudsdkas/v1/model/{create_scaling_group_request_body.py → create_scaling_group_option.py} +286 -135
- huaweicloudsdkas/v1/model/create_scaling_group_request.py +17 -21
- huaweicloudsdkas/v1/model/create_scaling_group_response.py +18 -16
- huaweicloudsdkas/v1/model/create_scaling_notification_request.py +24 -24
- huaweicloudsdkas/v1/model/create_scaling_notification_response.py +28 -22
- huaweicloudsdkas/v1/model/{create_scaling_policy_request_body.py → create_scaling_policy_option.py} +66 -60
- huaweicloudsdkas/v1/model/create_scaling_policy_request.py +17 -21
- huaweicloudsdkas/v1/model/create_scaling_policy_response.py +18 -16
- huaweicloudsdkas/v1/model/create_scaling_policy_v2_option.py +353 -0
- huaweicloudsdkas/v1/model/{create_scaling_tags_request.py → create_scaling_tag_info_request.py} +39 -35
- huaweicloudsdkas/v1/model/create_scaling_tag_info_response.py +81 -0
- huaweicloudsdkas/v1/model/create_scaling_v2_policy_request.py +104 -0
- huaweicloudsdkas/v1/model/create_scaling_v2_policy_response.py +112 -0
- huaweicloudsdkas/v1/model/create_scheduled_task_option.py +155 -0
- huaweicloudsdkas/v1/model/{delete_scaling_tags_request_body.py → create_tags_option.py} +32 -34
- huaweicloudsdkas/v1/model/delete_group_scheduled_task_request.py +135 -0
- huaweicloudsdkas/v1/model/delete_group_scheduled_task_response.py +81 -0
- huaweicloudsdkas/v1/model/delete_lifecycle_hook_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_lifecycle_hook_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_config_request.py +17 -17
- huaweicloudsdkas/v1/model/delete_scaling_config_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_group_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_scaling_group_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_instance_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_scaling_instance_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_notification_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_scaling_notification_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_policy_request.py +17 -17
- huaweicloudsdkas/v1/model/delete_scaling_policy_response.py +13 -13
- huaweicloudsdkas/v1/model/{delete_scaling_tags_request.py → delete_scaling_tag_info_request.py} +39 -35
- huaweicloudsdkas/v1/model/delete_scaling_tag_info_response.py +81 -0
- huaweicloudsdkas/v1/model/{create_scaling_tags_request_body.py → delete_tags_option.py} +34 -36
- huaweicloudsdkas/v1/model/disk_info.py +333 -0
- huaweicloudsdkas/v1/model/disk_result.py +336 -0
- huaweicloudsdkas/v1/model/{eip.py → eip_info.py} +28 -30
- huaweicloudsdkas/v1/model/eip_meta_data.py +166 -0
- huaweicloudsdkas/v1/model/eip_result.py +133 -0
- huaweicloudsdkas/v1/model/execute_scaling_policy_option.py +107 -0
- huaweicloudsdkas/v1/model/execute_scaling_policy_request.py +24 -24
- huaweicloudsdkas/v1/model/execute_scaling_policy_response.py +13 -13
- huaweicloudsdkas/v1/model/instance_config.py +99 -77
- huaweicloudsdkas/v1/model/instance_config_result.py +186 -75
- huaweicloudsdkas/v1/model/instance_hanging_infos.py +47 -37
- huaweicloudsdkas/v1/model/integer_range.py +166 -0
- huaweicloudsdkas/v1/model/interval_alarm_actions_v2.py +245 -0
- huaweicloudsdkas/v1/model/ipv6_bandwidth.py +15 -17
- huaweicloudsdkas/v1/model/job_records.py +52 -40
- huaweicloudsdkas/v1/model/lbaas_listener.py +195 -0
- huaweicloudsdkas/v1/model/lbaas_listeners.py +60 -30
- huaweicloudsdkas/v1/model/lbaas_listeners_result.py +74 -41
- huaweicloudsdkas/v1/model/lifecycle_hook_list.py +52 -40
- huaweicloudsdkas/v1/model/links.py +137 -0
- huaweicloudsdkas/v1/model/list_all_scaling_v2_policies_request.py +398 -0
- huaweicloudsdkas/v1/model/list_all_scaling_v2_policies_response.py +199 -0
- huaweicloudsdkas/v1/model/{delete_scaling_tags_response.py → list_api_versions_request.py} +13 -17
- huaweicloudsdkas/v1/model/list_api_versions_response.py +112 -0
- huaweicloudsdkas/v1/model/list_group_scheduled_tasks_request.py +165 -0
- huaweicloudsdkas/v1/model/list_group_scheduled_tasks_response.py +137 -0
- huaweicloudsdkas/v1/model/list_hook_instances_request.py +24 -20
- huaweicloudsdkas/v1/model/list_hook_instances_response.py +19 -17
- huaweicloudsdkas/v1/model/list_life_cycle_hooks_request.py +17 -17
- huaweicloudsdkas/v1/model/list_life_cycle_hooks_response.py +19 -17
- huaweicloudsdkas/v1/model/list_resource_instances_request.py +24 -24
- huaweicloudsdkas/v1/model/list_resource_instances_response.py +31 -25
- huaweicloudsdkas/v1/model/list_scaling_activity_logs_request.py +49 -33
- huaweicloudsdkas/v1/model/list_scaling_activity_logs_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_activity_v2_logs_request.py +310 -0
- huaweicloudsdkas/v1/model/list_scaling_activity_v2_logs_response.py +199 -0
- huaweicloudsdkas/v1/model/list_scaling_configs_request.py +38 -26
- huaweicloudsdkas/v1/model/list_scaling_configs_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_groups_request.py +77 -32
- huaweicloudsdkas/v1/model/list_scaling_groups_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_instances_request.py +52 -32
- huaweicloudsdkas/v1/model/list_scaling_instances_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_notifications_request.py +17 -17
- huaweicloudsdkas/v1/model/list_scaling_notifications_response.py +19 -17
- huaweicloudsdkas/v1/model/list_scaling_policies_request.py +52 -32
- huaweicloudsdkas/v1/model/list_scaling_policies_response.py +35 -27
- huaweicloudsdkas/v1/model/list_scaling_policy_execute_logs_request.py +77 -45
- huaweicloudsdkas/v1/model/list_scaling_policy_execute_logs_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_resource_id_request.py +24 -20
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_resource_id_response.py +25 -21
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_tenant_id_request.py +17 -17
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_tenant_id_response.py +19 -17
- huaweicloudsdkas/v1/model/list_scaling_v2_policies_request.py +252 -0
- huaweicloudsdkas/v1/model/list_scaling_v2_policies_response.py +199 -0
- huaweicloudsdkas/v1/model/list_warm_pool_instances_request.py +165 -0
- huaweicloudsdkas/v1/model/list_warm_pool_instances_response.py +137 -0
- huaweicloudsdkas/v1/model/matches.py +22 -24
- huaweicloudsdkas/v1/model/meta_data.py +59 -32
- huaweicloudsdkas/v1/model/modify_lb.py +191 -0
- huaweicloudsdkas/v1/model/networks.py +60 -31
- huaweicloudsdkas/v1/model/networks_result.py +191 -0
- huaweicloudsdkas/v1/model/page_info.py +108 -0
- huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_request_body.py → pause_scaling_group_option.py} +20 -23
- huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_request.py → pause_scaling_group_request.py} +30 -30
- huaweicloudsdkas/v1/model/{create_scaling_tags_response.py → pause_scaling_group_response.py} +15 -15
- huaweicloudsdkas/v1/model/{execute_scaling_policy_request_body.py → pause_scaling_policy_option.py} +20 -23
- huaweicloudsdkas/v1/model/pause_scaling_policy_request.py +132 -0
- huaweicloudsdkas/v1/model/pause_scaling_policy_response.py +81 -0
- huaweicloudsdkas/v1/model/{personality.py → personality_info.py} +26 -26
- huaweicloudsdkas/v1/model/personality_result.py +137 -0
- huaweicloudsdkas/v1/model/policy_instance_quotas.py +16 -18
- huaweicloudsdkas/v1/model/policy_instance_resources.py +62 -29
- huaweicloudsdkas/v1/model/public_ip.py +17 -21
- huaweicloudsdkas/v1/model/publicip_result.py +104 -0
- huaweicloudsdkas/v1/model/put_warm_pool_option.py +166 -0
- huaweicloudsdkas/v1/model/{complete_lifecycle_action_request.py → put_warm_pool_request.py} +30 -30
- huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_response.py → put_warm_pool_response.py} +15 -15
- huaweicloudsdkas/v1/model/{show_tags_request_body.py → query_tags_option.py} +91 -77
- huaweicloudsdkas/v1/model/resource_tags.py +20 -20
- huaweicloudsdkas/v1/model/resources.py +31 -27
- huaweicloudsdkas/v1/model/resume_scaling_group_option.py +107 -0
- huaweicloudsdkas/v1/model/{update_scaling_group_instance_request.py → resume_scaling_group_request.py} +30 -30
- huaweicloudsdkas/v1/model/resume_scaling_group_response.py +81 -0
- huaweicloudsdkas/v1/model/resume_scaling_policy_option.py +107 -0
- huaweicloudsdkas/v1/model/resume_scaling_policy_request.py +132 -0
- huaweicloudsdkas/v1/model/resume_scaling_policy_response.py +81 -0
- huaweicloudsdkas/v1/model/scaling_activity_log_list.py +67 -49
- huaweicloudsdkas/v1/model/scaling_activity_log_v2.py +601 -0
- huaweicloudsdkas/v1/model/scaling_all_policy_detail.py +469 -0
- huaweicloudsdkas/v1/model/scaling_configuration.py +68 -35
- huaweicloudsdkas/v1/model/scaling_group_instance.py +62 -46
- huaweicloudsdkas/v1/model/scaling_groups.py +328 -104
- huaweicloudsdkas/v1/model/scaling_instance.py +224 -0
- huaweicloudsdkas/v1/model/scaling_policies_v2.py +469 -0
- huaweicloudsdkas/v1/model/{scaling_policy_action.py → scaling_policy_action_v1.py} +37 -35
- huaweicloudsdkas/v1/model/scaling_policy_action_v2.py +195 -0
- huaweicloudsdkas/v1/model/scaling_policy_execute_log_list.py +105 -81
- huaweicloudsdkas/v1/model/scaling_policy_v2_meta_data.py +166 -0
- huaweicloudsdkas/v1/model/{scaling_policy_detail.py → scaling_v1_policy_detail.py} +110 -71
- huaweicloudsdkas/v1/model/scaling_v2_policy_detail.py +469 -0
- huaweicloudsdkas/v1/model/scheduled_policy.py +38 -33
- huaweicloudsdkas/v1/model/scheduled_task_detail.py +332 -0
- huaweicloudsdkas/v1/model/scheduled_task_policy.py +223 -0
- huaweicloudsdkas/v1/model/security_group.py +107 -0
- huaweicloudsdkas/v1/model/security_groups.py +17 -19
- huaweicloudsdkas/v1/model/security_groups_result.py +15 -17
- huaweicloudsdkas/v1/model/show_api_version_request.py +107 -0
- huaweicloudsdkas/v1/model/show_api_version_response.py +108 -0
- huaweicloudsdkas/v1/model/show_life_cycle_hook_request.py +24 -20
- huaweicloudsdkas/v1/model/show_life_cycle_hook_response.py +55 -39
- huaweicloudsdkas/v1/model/show_policy_and_instance_quota_request.py +17 -17
- huaweicloudsdkas/v1/model/show_policy_and_instance_quota_response.py +32 -32
- huaweicloudsdkas/v1/model/show_resource_quota_request.py +10 -14
- huaweicloudsdkas/v1/model/show_resource_quota_response.py +19 -19
- huaweicloudsdkas/v1/model/show_scaling_config_request.py +17 -17
- huaweicloudsdkas/v1/model/show_scaling_config_response.py +19 -19
- huaweicloudsdkas/v1/model/show_scaling_group_request.py +17 -17
- huaweicloudsdkas/v1/model/show_scaling_group_response.py +19 -19
- huaweicloudsdkas/v1/model/show_scaling_policy_request.py +17 -17
- huaweicloudsdkas/v1/model/show_scaling_policy_response.py +20 -20
- huaweicloudsdkas/v1/model/show_scaling_v2_policy_request.py +107 -0
- huaweicloudsdkas/v1/model/show_scaling_v2_policy_response.py +108 -0
- huaweicloudsdkas/v1/model/show_warm_pool_request.py +107 -0
- huaweicloudsdkas/v1/model/show_warm_pool_response.py +108 -0
- huaweicloudsdkas/v1/model/tags_multi_value.py +26 -28
- huaweicloudsdkas/v1/model/tags_single_value.py +25 -26
- huaweicloudsdkas/v1/model/topics.py +25 -23
- huaweicloudsdkas/v1/model/update_group_scheduled_task_request.py +160 -0
- huaweicloudsdkas/v1/model/update_group_scheduled_task_response.py +81 -0
- huaweicloudsdkas/v1/model/update_instance_config.py +107 -0
- huaweicloudsdkas/v1/model/{update_life_cycle_hook_request_body.py → update_life_cycle_hook_option.py} +49 -43
- huaweicloudsdkas/v1/model/update_life_cycle_hook_request.py +31 -27
- huaweicloudsdkas/v1/model/update_life_cycle_hook_response.py +55 -39
- huaweicloudsdkas/v1/model/update_scaling_config_option.py +103 -0
- huaweicloudsdkas/v1/model/update_scaling_config_request.py +128 -0
- huaweicloudsdkas/v1/model/update_scaling_config_response.py +81 -0
- huaweicloudsdkas/v1/model/{update_scaling_group_request_body.py → update_scaling_group_option.py} +263 -115
- huaweicloudsdkas/v1/model/update_scaling_group_request.py +24 -24
- huaweicloudsdkas/v1/model/update_scaling_group_response.py +18 -16
- huaweicloudsdkas/v1/model/{update_scaling_policy_request_body.py → update_scaling_policy_option.py} +59 -55
- huaweicloudsdkas/v1/model/update_scaling_policy_request.py +24 -24
- huaweicloudsdkas/v1/model/update_scaling_policy_response.py +18 -16
- huaweicloudsdkas/v1/model/update_scaling_v2_policy_option.py +357 -0
- huaweicloudsdkas/v1/model/update_scaling_v2_policy_request.py +132 -0
- huaweicloudsdkas/v1/model/update_scaling_v2_policy_response.py +112 -0
- huaweicloudsdkas/v1/model/update_scheduled_task_option.py +158 -0
- huaweicloudsdkas/v1/model/version_info.py +253 -0
- huaweicloudsdkas/v1/model/vm_meta_data.py +108 -0
- huaweicloudsdkas/v1/model/warm_pool_info.py +195 -0
- huaweicloudsdkas/v1/model/warm_pool_instance.py +195 -0
- huaweicloudsdkas/v1/region/as_region.py +112 -38
- huaweicloudsdkas-3.1.176.dist-info/METADATA +25 -0
- huaweicloudsdkas-3.1.176.dist-info/RECORD +242 -0
- {huaweicloudsdkas-3.0.33rc0.dist-info → huaweicloudsdkas-3.1.176.dist-info}/WHEEL +1 -2
- huaweicloudsdkas/v1/model/create_scaling_config_request_body.py +0 -133
- huaweicloudsdkas/v1/model/disk.py +0 -242
- huaweicloudsdkas-3.0.33rc0.dist-info/METADATA +0 -26
- huaweicloudsdkas-3.0.33rc0.dist-info/RECORD +0 -141
- huaweicloudsdkas-3.0.33rc0.dist-info/top_level.txt +0 -1
- {huaweicloudsdkas-3.0.33rc0.dist-info → huaweicloudsdkas-3.1.176.dist-info/licenses}/LICENSE +0 -0
huaweicloudsdkas/v1/model/{create_scaling_group_request_body.py → create_scaling_group_option.py}
RENAMED
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import re
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
5
4
|
|
|
6
|
-
import six
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class CreateScalingGroupRequestBody:
|
|
13
5
|
|
|
6
|
+
class CreateScalingGroupOption:
|
|
14
7
|
|
|
15
8
|
"""
|
|
16
9
|
Attributes:
|
|
@@ -19,7 +12,6 @@ class CreateScalingGroupRequestBody:
|
|
|
19
12
|
attribute_map (dict): The key is attribute name
|
|
20
13
|
and the value is json key in definition.
|
|
21
14
|
"""
|
|
22
|
-
|
|
23
15
|
sensitive_list = []
|
|
24
16
|
|
|
25
17
|
openapi_types = {
|
|
@@ -33,7 +25,7 @@ class CreateScalingGroupRequestBody:
|
|
|
33
25
|
'lbaas_listeners': 'list[LbaasListeners]',
|
|
34
26
|
'available_zones': 'list[str]',
|
|
35
27
|
'networks': 'list[Networks]',
|
|
36
|
-
'security_groups': 'list[
|
|
28
|
+
'security_groups': 'list[SecurityGroup]',
|
|
37
29
|
'vpc_id': 'str',
|
|
38
30
|
'health_periodic_audit_method': 'str',
|
|
39
31
|
'health_periodic_audit_time': 'int',
|
|
@@ -41,8 +33,12 @@ class CreateScalingGroupRequestBody:
|
|
|
41
33
|
'instance_terminate_policy': 'str',
|
|
42
34
|
'notifications': 'list[str]',
|
|
43
35
|
'delete_publicip': 'bool',
|
|
36
|
+
'delete_volume': 'bool',
|
|
44
37
|
'enterprise_project_id': 'str',
|
|
45
|
-
'multi_az_priority_policy': 'str'
|
|
38
|
+
'multi_az_priority_policy': 'str',
|
|
39
|
+
'iam_agency_name': 'str',
|
|
40
|
+
'description': 'str',
|
|
41
|
+
'tags': 'list[TagsSingleValue]'
|
|
46
42
|
}
|
|
47
43
|
|
|
48
44
|
attribute_map = {
|
|
@@ -64,12 +60,68 @@ class CreateScalingGroupRequestBody:
|
|
|
64
60
|
'instance_terminate_policy': 'instance_terminate_policy',
|
|
65
61
|
'notifications': 'notifications',
|
|
66
62
|
'delete_publicip': 'delete_publicip',
|
|
63
|
+
'delete_volume': 'delete_volume',
|
|
67
64
|
'enterprise_project_id': 'enterprise_project_id',
|
|
68
|
-
'multi_az_priority_policy': 'multi_az_priority_policy'
|
|
65
|
+
'multi_az_priority_policy': 'multi_az_priority_policy',
|
|
66
|
+
'iam_agency_name': 'iam_agency_name',
|
|
67
|
+
'description': 'description',
|
|
68
|
+
'tags': 'tags'
|
|
69
69
|
}
|
|
70
70
|
|
|
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
|
-
"""
|
|
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, delete_volume=None, enterprise_project_id=None, multi_az_priority_policy=None, iam_agency_name=None, description=None, tags=None):
|
|
72
|
+
r"""CreateScalingGroupOption
|
|
73
|
+
|
|
74
|
+
The model defined in huaweicloud sdk
|
|
75
|
+
|
|
76
|
+
:param scaling_group_name: 伸缩组名称(1-64个字符),只能包含中文、字母、数字、下划线、中划线。
|
|
77
|
+
:type scaling_group_name: str
|
|
78
|
+
:param scaling_configuration_id: 伸缩配置ID,通过查询弹性伸缩配置列表接口获取。
|
|
79
|
+
:type scaling_configuration_id: str
|
|
80
|
+
:param desire_instance_number: 期望实例数量,默认值为最小实例数。最小实例数<=期望实例数<=最大实例数
|
|
81
|
+
:type desire_instance_number: int
|
|
82
|
+
:param min_instance_number: 最小实例数量,默认值为0。
|
|
83
|
+
:type min_instance_number: int
|
|
84
|
+
:param max_instance_number: 最大实例数量,默认值为0。
|
|
85
|
+
:type max_instance_number: int
|
|
86
|
+
:param cool_down_time: 冷却时间,取值范围0-86400,默认为300,单位是秒。 只针对告警策略生效,定时、周期策略和手动触发策略不受该参数限制。
|
|
87
|
+
:type cool_down_time: int
|
|
88
|
+
:param lb_listener_id: 弹性负载均衡(经典型)监听器ID,最多支持绑定6个负载均衡监听器,多个负载均衡监听器ID以逗号分隔。首先使用vpc_id通过查询ELB服务负载均衡器列表接口获取负载均衡器的ID,详见《弹性负载均衡API参考》的“查询负载均衡器列表”,再使用该ID查询监听器列表获取,详见《弹性负载均衡API参考》的“查询监听器列表”。
|
|
89
|
+
:type lb_listener_id: str
|
|
90
|
+
:param lbaas_listeners: 弹性负载均衡器(增强型)信息,最多支持绑定6个负载均衡。该字段与lb_listener_id互斥。
|
|
91
|
+
:type lbaas_listeners: list[:class:`huaweicloudsdkas.v1.LbaasListeners`]
|
|
92
|
+
:param available_zones: 可用分区信息。弹性伸缩活动中自动添加的云服务器会被创建在指定的可用区中。如果没有指定可用分区,会由系统自动指定可用分区。详情请参考地区和终端节点。
|
|
93
|
+
:type available_zones: list[str]
|
|
94
|
+
:param networks: 网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。获取子网信息请参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
|
|
95
|
+
:type networks: list[:class:`huaweicloudsdkas.v1.Networks`]
|
|
96
|
+
:param security_groups: 安全组信息,最多支持选择1个安全组。使用vpc_id通过查询VPC服务安全组列表接口获取,详见《虚拟私有云API参考》的“查询安全组列表”。当伸缩配置和伸缩组同时指定安全组时,将以伸缩配置中的安全组为准;当伸缩配置和伸缩组都没有指定安全组时,将使用默认安全组。为了使用灵活性更高,推荐在伸缩配置中指定安全组。
|
|
97
|
+
:type security_groups: list[:class:`huaweicloudsdkas.v1.SecurityGroup`]
|
|
98
|
+
:param vpc_id: VPC信息,通过查询VPC服务VPC列表接口获取,详见《虚拟私有云API参考》的“查询VPC列表”。
|
|
99
|
+
:type vpc_id: str
|
|
100
|
+
:param health_periodic_audit_method: 伸缩组实例健康检查方式:ELB_AUDIT和NOVA_AUDIT。当伸缩组参数中设置负载均衡时,默认为ELB_AUDIT;否则默认为NOVA_AUDIT。ELB_AUDIT表示负载均衡健康检查方式,在有监听器的伸缩组中有效。NOVA_AUDIT表示弹性伸缩自带的健康检查方式。
|
|
101
|
+
:type health_periodic_audit_method: str
|
|
102
|
+
:param health_periodic_audit_time: 伸缩组实例的健康检查周期,可设置为1、5、15、60、180(分钟),若不设置该参数,默认为5。若设置为0,可以实现10秒级健康检查。
|
|
103
|
+
:type health_periodic_audit_time: int
|
|
104
|
+
:param health_periodic_audit_grace_period: 伸缩组实例健康状况检查宽限期,取值范围0-86400,单位是秒。当实例加入伸缩组并且进入已启用状态后,健康状况检查宽限期才会启动,伸缩组会等健康状况检查宽限期结束后才检查实例的运行状况。当伸缩组实例健康检查方式为ELB_AUDIT时,该参数生效,若不设置该参数,默认为600秒。
|
|
105
|
+
:type health_periodic_audit_grace_period: int
|
|
106
|
+
:param instance_terminate_policy: 伸缩组实例移除策略:OLD_CONFIG_OLD_INSTANCE(默认):从根据“较早创建的配置”创建的实例中筛选出较早创建的实例被优先移除。OLD_CONFIG_NEW_INSTANCE:从根据“较早创建的配置”创建的实例中筛选出较新创建的实例被优先移除。OLD_INSTANCE:较早创建的实例被优先移除。NEW_INSTANCE:较新创建的实例将被优先移除。
|
|
107
|
+
:type instance_terminate_policy: str
|
|
108
|
+
:param notifications: 通知方式:EMAIL为发送邮件通知。该通知方式即将被废除,建议给弹性伸缩组配置通知功能。详见通知。
|
|
109
|
+
:type notifications: list[str]
|
|
110
|
+
:param delete_publicip: 配置删除云服务器时是否删除云服务器绑定的弹性IP。取值为true或false,默认为false。true:删除云服务器时,会同时删除绑定在云服务器上的弹性IP。当弹性IP的计费方式为包年包月时,不会被删除。false:删除云服务器时,仅解绑定在云服务器上的弹性IP,不删除弹性IP。
|
|
111
|
+
:type delete_publicip: bool
|
|
112
|
+
:param delete_volume: 配置删除云服务器时是否删除云服务器绑定的数据盘。取值为true或false,默认为false。 true:删除云服务器时,会同时删除绑定在云服务器上的数据盘。当数据盘的计费方式为包年包月时,不会被删除。 false:删除云服务器时,仅解绑定在云服务器上的数据盘,不删除数据盘。
|
|
113
|
+
:type delete_volume: bool
|
|
114
|
+
: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)。
|
|
115
|
+
:type enterprise_project_id: str
|
|
116
|
+
:param multi_az_priority_policy: 伸缩组扩缩容时目标AZ选择的优先级策略:EQUILIBRIUM_DISTRIBUTE(默认):均衡分布,云服务器扩缩容时优先保证available_zones列表中各AZ下虚拟机数量均衡,当无法在目标AZ下完成虚拟机扩容时,按照PICK_FIRST原则选择其他可用AZ。PICK_FIRST:选择优先,虚拟机扩缩容时目标AZ的选择按照available_zones列表的顺序进行优先级排序。
|
|
117
|
+
:type multi_az_priority_policy: str
|
|
118
|
+
:param iam_agency_name: 委托的名称委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
|
|
119
|
+
:type iam_agency_name: str
|
|
120
|
+
:param description: 伸缩组描述信息(0-256个字符)
|
|
121
|
+
:type description: str
|
|
122
|
+
:param tags: 创建特定标签并将其添加到伸缩组。每个伸缩组最多添加10个标签。
|
|
123
|
+
:type tags: list[:class:`huaweicloudsdkas.v1.TagsSingleValue`]
|
|
124
|
+
"""
|
|
73
125
|
|
|
74
126
|
|
|
75
127
|
|
|
@@ -91,13 +143,16 @@ class CreateScalingGroupRequestBody:
|
|
|
91
143
|
self._instance_terminate_policy = None
|
|
92
144
|
self._notifications = None
|
|
93
145
|
self._delete_publicip = None
|
|
146
|
+
self._delete_volume = None
|
|
94
147
|
self._enterprise_project_id = None
|
|
95
148
|
self._multi_az_priority_policy = None
|
|
149
|
+
self._iam_agency_name = None
|
|
150
|
+
self._description = None
|
|
151
|
+
self._tags = None
|
|
96
152
|
self.discriminator = None
|
|
97
153
|
|
|
98
154
|
self.scaling_group_name = scaling_group_name
|
|
99
|
-
|
|
100
|
-
self.scaling_configuration_id = scaling_configuration_id
|
|
155
|
+
self.scaling_configuration_id = scaling_configuration_id
|
|
101
156
|
if desire_instance_number is not None:
|
|
102
157
|
self.desire_instance_number = desire_instance_number
|
|
103
158
|
if min_instance_number is not None:
|
|
@@ -128,456 +183,551 @@ class CreateScalingGroupRequestBody:
|
|
|
128
183
|
self.notifications = notifications
|
|
129
184
|
if delete_publicip is not None:
|
|
130
185
|
self.delete_publicip = delete_publicip
|
|
186
|
+
if delete_volume is not None:
|
|
187
|
+
self.delete_volume = delete_volume
|
|
131
188
|
if enterprise_project_id is not None:
|
|
132
189
|
self.enterprise_project_id = enterprise_project_id
|
|
133
190
|
if multi_az_priority_policy is not None:
|
|
134
191
|
self.multi_az_priority_policy = multi_az_priority_policy
|
|
192
|
+
if iam_agency_name is not None:
|
|
193
|
+
self.iam_agency_name = iam_agency_name
|
|
194
|
+
if description is not None:
|
|
195
|
+
self.description = description
|
|
196
|
+
if tags is not None:
|
|
197
|
+
self.tags = tags
|
|
135
198
|
|
|
136
199
|
@property
|
|
137
200
|
def scaling_group_name(self):
|
|
138
|
-
"""Gets the scaling_group_name of this
|
|
201
|
+
r"""Gets the scaling_group_name of this CreateScalingGroupOption.
|
|
139
202
|
|
|
140
203
|
伸缩组名称(1-64个字符),只能包含中文、字母、数字、下划线、中划线。
|
|
141
204
|
|
|
142
|
-
:return: The scaling_group_name of this
|
|
205
|
+
:return: The scaling_group_name of this CreateScalingGroupOption.
|
|
143
206
|
:rtype: str
|
|
144
207
|
"""
|
|
145
208
|
return self._scaling_group_name
|
|
146
209
|
|
|
147
210
|
@scaling_group_name.setter
|
|
148
211
|
def scaling_group_name(self, scaling_group_name):
|
|
149
|
-
"""Sets the scaling_group_name of this
|
|
212
|
+
r"""Sets the scaling_group_name of this CreateScalingGroupOption.
|
|
150
213
|
|
|
151
214
|
伸缩组名称(1-64个字符),只能包含中文、字母、数字、下划线、中划线。
|
|
152
215
|
|
|
153
|
-
:param scaling_group_name: The scaling_group_name of this
|
|
154
|
-
:type: str
|
|
216
|
+
:param scaling_group_name: The scaling_group_name of this CreateScalingGroupOption.
|
|
217
|
+
:type scaling_group_name: str
|
|
155
218
|
"""
|
|
156
219
|
self._scaling_group_name = scaling_group_name
|
|
157
220
|
|
|
158
221
|
@property
|
|
159
222
|
def scaling_configuration_id(self):
|
|
160
|
-
"""Gets the scaling_configuration_id of this
|
|
223
|
+
r"""Gets the scaling_configuration_id of this CreateScalingGroupOption.
|
|
161
224
|
|
|
162
225
|
伸缩配置ID,通过查询弹性伸缩配置列表接口获取。
|
|
163
226
|
|
|
164
|
-
:return: The scaling_configuration_id of this
|
|
227
|
+
:return: The scaling_configuration_id of this CreateScalingGroupOption.
|
|
165
228
|
:rtype: str
|
|
166
229
|
"""
|
|
167
230
|
return self._scaling_configuration_id
|
|
168
231
|
|
|
169
232
|
@scaling_configuration_id.setter
|
|
170
233
|
def scaling_configuration_id(self, scaling_configuration_id):
|
|
171
|
-
"""Sets the scaling_configuration_id of this
|
|
234
|
+
r"""Sets the scaling_configuration_id of this CreateScalingGroupOption.
|
|
172
235
|
|
|
173
236
|
伸缩配置ID,通过查询弹性伸缩配置列表接口获取。
|
|
174
237
|
|
|
175
|
-
:param scaling_configuration_id: The scaling_configuration_id of this
|
|
176
|
-
:type: str
|
|
238
|
+
:param scaling_configuration_id: The scaling_configuration_id of this CreateScalingGroupOption.
|
|
239
|
+
:type scaling_configuration_id: str
|
|
177
240
|
"""
|
|
178
241
|
self._scaling_configuration_id = scaling_configuration_id
|
|
179
242
|
|
|
180
243
|
@property
|
|
181
244
|
def desire_instance_number(self):
|
|
182
|
-
"""Gets the desire_instance_number of this
|
|
245
|
+
r"""Gets the desire_instance_number of this CreateScalingGroupOption.
|
|
183
246
|
|
|
184
247
|
期望实例数量,默认值为最小实例数。最小实例数<=期望实例数<=最大实例数
|
|
185
248
|
|
|
186
|
-
:return: The desire_instance_number of this
|
|
249
|
+
:return: The desire_instance_number of this CreateScalingGroupOption.
|
|
187
250
|
:rtype: int
|
|
188
251
|
"""
|
|
189
252
|
return self._desire_instance_number
|
|
190
253
|
|
|
191
254
|
@desire_instance_number.setter
|
|
192
255
|
def desire_instance_number(self, desire_instance_number):
|
|
193
|
-
"""Sets the desire_instance_number of this
|
|
256
|
+
r"""Sets the desire_instance_number of this CreateScalingGroupOption.
|
|
194
257
|
|
|
195
258
|
期望实例数量,默认值为最小实例数。最小实例数<=期望实例数<=最大实例数
|
|
196
259
|
|
|
197
|
-
:param desire_instance_number: The desire_instance_number of this
|
|
198
|
-
:type: int
|
|
260
|
+
:param desire_instance_number: The desire_instance_number of this CreateScalingGroupOption.
|
|
261
|
+
:type desire_instance_number: int
|
|
199
262
|
"""
|
|
200
263
|
self._desire_instance_number = desire_instance_number
|
|
201
264
|
|
|
202
265
|
@property
|
|
203
266
|
def min_instance_number(self):
|
|
204
|
-
"""Gets the min_instance_number of this
|
|
267
|
+
r"""Gets the min_instance_number of this CreateScalingGroupOption.
|
|
205
268
|
|
|
206
269
|
最小实例数量,默认值为0。
|
|
207
270
|
|
|
208
|
-
:return: The min_instance_number of this
|
|
271
|
+
:return: The min_instance_number of this CreateScalingGroupOption.
|
|
209
272
|
:rtype: int
|
|
210
273
|
"""
|
|
211
274
|
return self._min_instance_number
|
|
212
275
|
|
|
213
276
|
@min_instance_number.setter
|
|
214
277
|
def min_instance_number(self, min_instance_number):
|
|
215
|
-
"""Sets the min_instance_number of this
|
|
278
|
+
r"""Sets the min_instance_number of this CreateScalingGroupOption.
|
|
216
279
|
|
|
217
280
|
最小实例数量,默认值为0。
|
|
218
281
|
|
|
219
|
-
:param min_instance_number: The min_instance_number of this
|
|
220
|
-
:type: int
|
|
282
|
+
:param min_instance_number: The min_instance_number of this CreateScalingGroupOption.
|
|
283
|
+
:type min_instance_number: int
|
|
221
284
|
"""
|
|
222
285
|
self._min_instance_number = min_instance_number
|
|
223
286
|
|
|
224
287
|
@property
|
|
225
288
|
def max_instance_number(self):
|
|
226
|
-
"""Gets the max_instance_number of this
|
|
289
|
+
r"""Gets the max_instance_number of this CreateScalingGroupOption.
|
|
227
290
|
|
|
228
291
|
最大实例数量,默认值为0。
|
|
229
292
|
|
|
230
|
-
:return: The max_instance_number of this
|
|
293
|
+
:return: The max_instance_number of this CreateScalingGroupOption.
|
|
231
294
|
:rtype: int
|
|
232
295
|
"""
|
|
233
296
|
return self._max_instance_number
|
|
234
297
|
|
|
235
298
|
@max_instance_number.setter
|
|
236
299
|
def max_instance_number(self, max_instance_number):
|
|
237
|
-
"""Sets the max_instance_number of this
|
|
300
|
+
r"""Sets the max_instance_number of this CreateScalingGroupOption.
|
|
238
301
|
|
|
239
302
|
最大实例数量,默认值为0。
|
|
240
303
|
|
|
241
|
-
:param max_instance_number: The max_instance_number of this
|
|
242
|
-
:type: int
|
|
304
|
+
:param max_instance_number: The max_instance_number of this CreateScalingGroupOption.
|
|
305
|
+
:type max_instance_number: int
|
|
243
306
|
"""
|
|
244
307
|
self._max_instance_number = max_instance_number
|
|
245
308
|
|
|
246
309
|
@property
|
|
247
310
|
def cool_down_time(self):
|
|
248
|
-
"""Gets the cool_down_time of this
|
|
311
|
+
r"""Gets the cool_down_time of this CreateScalingGroupOption.
|
|
249
312
|
|
|
250
|
-
冷却时间,取值范围0-86400,默认为
|
|
313
|
+
冷却时间,取值范围0-86400,默认为300,单位是秒。 只针对告警策略生效,定时、周期策略和手动触发策略不受该参数限制。
|
|
251
314
|
|
|
252
|
-
:return: The cool_down_time of this
|
|
315
|
+
:return: The cool_down_time of this CreateScalingGroupOption.
|
|
253
316
|
:rtype: int
|
|
254
317
|
"""
|
|
255
318
|
return self._cool_down_time
|
|
256
319
|
|
|
257
320
|
@cool_down_time.setter
|
|
258
321
|
def cool_down_time(self, cool_down_time):
|
|
259
|
-
"""Sets the cool_down_time of this
|
|
322
|
+
r"""Sets the cool_down_time of this CreateScalingGroupOption.
|
|
260
323
|
|
|
261
|
-
冷却时间,取值范围0-86400,默认为
|
|
324
|
+
冷却时间,取值范围0-86400,默认为300,单位是秒。 只针对告警策略生效,定时、周期策略和手动触发策略不受该参数限制。
|
|
262
325
|
|
|
263
|
-
:param cool_down_time: The cool_down_time of this
|
|
264
|
-
:type: int
|
|
326
|
+
:param cool_down_time: The cool_down_time of this CreateScalingGroupOption.
|
|
327
|
+
:type cool_down_time: int
|
|
265
328
|
"""
|
|
266
329
|
self._cool_down_time = cool_down_time
|
|
267
330
|
|
|
268
331
|
@property
|
|
269
332
|
def lb_listener_id(self):
|
|
270
|
-
"""Gets the lb_listener_id of this
|
|
333
|
+
r"""Gets the lb_listener_id of this CreateScalingGroupOption.
|
|
271
334
|
|
|
272
|
-
弹性负载均衡(经典型)监听器ID,最多支持绑定
|
|
335
|
+
弹性负载均衡(经典型)监听器ID,最多支持绑定6个负载均衡监听器,多个负载均衡监听器ID以逗号分隔。首先使用vpc_id通过查询ELB服务负载均衡器列表接口获取负载均衡器的ID,详见《弹性负载均衡API参考》的“查询负载均衡器列表”,再使用该ID查询监听器列表获取,详见《弹性负载均衡API参考》的“查询监听器列表”。
|
|
273
336
|
|
|
274
|
-
:return: The lb_listener_id of this
|
|
337
|
+
:return: The lb_listener_id of this CreateScalingGroupOption.
|
|
275
338
|
:rtype: str
|
|
276
339
|
"""
|
|
277
340
|
return self._lb_listener_id
|
|
278
341
|
|
|
279
342
|
@lb_listener_id.setter
|
|
280
343
|
def lb_listener_id(self, lb_listener_id):
|
|
281
|
-
"""Sets the lb_listener_id of this
|
|
344
|
+
r"""Sets the lb_listener_id of this CreateScalingGroupOption.
|
|
282
345
|
|
|
283
|
-
弹性负载均衡(经典型)监听器ID,最多支持绑定
|
|
346
|
+
弹性负载均衡(经典型)监听器ID,最多支持绑定6个负载均衡监听器,多个负载均衡监听器ID以逗号分隔。首先使用vpc_id通过查询ELB服务负载均衡器列表接口获取负载均衡器的ID,详见《弹性负载均衡API参考》的“查询负载均衡器列表”,再使用该ID查询监听器列表获取,详见《弹性负载均衡API参考》的“查询监听器列表”。
|
|
284
347
|
|
|
285
|
-
:param lb_listener_id: The lb_listener_id of this
|
|
286
|
-
:type: str
|
|
348
|
+
:param lb_listener_id: The lb_listener_id of this CreateScalingGroupOption.
|
|
349
|
+
:type lb_listener_id: str
|
|
287
350
|
"""
|
|
288
351
|
self._lb_listener_id = lb_listener_id
|
|
289
352
|
|
|
290
353
|
@property
|
|
291
354
|
def lbaas_listeners(self):
|
|
292
|
-
"""Gets the lbaas_listeners of this
|
|
355
|
+
r"""Gets the lbaas_listeners of this CreateScalingGroupOption.
|
|
293
356
|
|
|
294
|
-
弹性负载均衡器(增强型)信息,最多支持绑定
|
|
357
|
+
弹性负载均衡器(增强型)信息,最多支持绑定6个负载均衡。该字段与lb_listener_id互斥。
|
|
295
358
|
|
|
296
|
-
:return: The lbaas_listeners of this
|
|
297
|
-
:rtype: list[LbaasListeners]
|
|
359
|
+
:return: The lbaas_listeners of this CreateScalingGroupOption.
|
|
360
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.LbaasListeners`]
|
|
298
361
|
"""
|
|
299
362
|
return self._lbaas_listeners
|
|
300
363
|
|
|
301
364
|
@lbaas_listeners.setter
|
|
302
365
|
def lbaas_listeners(self, lbaas_listeners):
|
|
303
|
-
"""Sets the lbaas_listeners of this
|
|
366
|
+
r"""Sets the lbaas_listeners of this CreateScalingGroupOption.
|
|
304
367
|
|
|
305
|
-
弹性负载均衡器(增强型)信息,最多支持绑定
|
|
368
|
+
弹性负载均衡器(增强型)信息,最多支持绑定6个负载均衡。该字段与lb_listener_id互斥。
|
|
306
369
|
|
|
307
|
-
:param lbaas_listeners: The lbaas_listeners of this
|
|
308
|
-
:type: list[LbaasListeners]
|
|
370
|
+
:param lbaas_listeners: The lbaas_listeners of this CreateScalingGroupOption.
|
|
371
|
+
:type lbaas_listeners: list[:class:`huaweicloudsdkas.v1.LbaasListeners`]
|
|
309
372
|
"""
|
|
310
373
|
self._lbaas_listeners = lbaas_listeners
|
|
311
374
|
|
|
312
375
|
@property
|
|
313
376
|
def available_zones(self):
|
|
314
|
-
"""Gets the available_zones of this
|
|
377
|
+
r"""Gets the available_zones of this CreateScalingGroupOption.
|
|
315
378
|
|
|
316
379
|
可用分区信息。弹性伸缩活动中自动添加的云服务器会被创建在指定的可用区中。如果没有指定可用分区,会由系统自动指定可用分区。详情请参考地区和终端节点。
|
|
317
380
|
|
|
318
|
-
:return: The available_zones of this
|
|
381
|
+
:return: The available_zones of this CreateScalingGroupOption.
|
|
319
382
|
:rtype: list[str]
|
|
320
383
|
"""
|
|
321
384
|
return self._available_zones
|
|
322
385
|
|
|
323
386
|
@available_zones.setter
|
|
324
387
|
def available_zones(self, available_zones):
|
|
325
|
-
"""Sets the available_zones of this
|
|
388
|
+
r"""Sets the available_zones of this CreateScalingGroupOption.
|
|
326
389
|
|
|
327
390
|
可用分区信息。弹性伸缩活动中自动添加的云服务器会被创建在指定的可用区中。如果没有指定可用分区,会由系统自动指定可用分区。详情请参考地区和终端节点。
|
|
328
391
|
|
|
329
|
-
:param available_zones: The available_zones of this
|
|
330
|
-
:type: list[str]
|
|
392
|
+
:param available_zones: The available_zones of this CreateScalingGroupOption.
|
|
393
|
+
:type available_zones: list[str]
|
|
331
394
|
"""
|
|
332
395
|
self._available_zones = available_zones
|
|
333
396
|
|
|
334
397
|
@property
|
|
335
398
|
def networks(self):
|
|
336
|
-
"""Gets the networks of this
|
|
399
|
+
r"""Gets the networks of this CreateScalingGroupOption.
|
|
337
400
|
|
|
338
|
-
网络信息,最多支持选择5
|
|
401
|
+
网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。获取子网信息请参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
|
|
339
402
|
|
|
340
|
-
:return: The networks of this
|
|
341
|
-
:rtype: list[Networks]
|
|
403
|
+
:return: The networks of this CreateScalingGroupOption.
|
|
404
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.Networks`]
|
|
342
405
|
"""
|
|
343
406
|
return self._networks
|
|
344
407
|
|
|
345
408
|
@networks.setter
|
|
346
409
|
def networks(self, networks):
|
|
347
|
-
"""Sets the networks of this
|
|
410
|
+
r"""Sets the networks of this CreateScalingGroupOption.
|
|
348
411
|
|
|
349
|
-
网络信息,最多支持选择5
|
|
412
|
+
网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。获取子网信息请参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
|
|
350
413
|
|
|
351
|
-
:param networks: The networks of this
|
|
352
|
-
:type: list[Networks]
|
|
414
|
+
:param networks: The networks of this CreateScalingGroupOption.
|
|
415
|
+
:type networks: list[:class:`huaweicloudsdkas.v1.Networks`]
|
|
353
416
|
"""
|
|
354
417
|
self._networks = networks
|
|
355
418
|
|
|
356
419
|
@property
|
|
357
420
|
def security_groups(self):
|
|
358
|
-
"""Gets the security_groups of this
|
|
421
|
+
r"""Gets the security_groups of this CreateScalingGroupOption.
|
|
359
422
|
|
|
360
423
|
安全组信息,最多支持选择1个安全组。使用vpc_id通过查询VPC服务安全组列表接口获取,详见《虚拟私有云API参考》的“查询安全组列表”。当伸缩配置和伸缩组同时指定安全组时,将以伸缩配置中的安全组为准;当伸缩配置和伸缩组都没有指定安全组时,将使用默认安全组。为了使用灵活性更高,推荐在伸缩配置中指定安全组。
|
|
361
424
|
|
|
362
|
-
:return: The security_groups of this
|
|
363
|
-
:rtype: list[
|
|
425
|
+
:return: The security_groups of this CreateScalingGroupOption.
|
|
426
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.SecurityGroup`]
|
|
364
427
|
"""
|
|
365
428
|
return self._security_groups
|
|
366
429
|
|
|
367
430
|
@security_groups.setter
|
|
368
431
|
def security_groups(self, security_groups):
|
|
369
|
-
"""Sets the security_groups of this
|
|
432
|
+
r"""Sets the security_groups of this CreateScalingGroupOption.
|
|
370
433
|
|
|
371
434
|
安全组信息,最多支持选择1个安全组。使用vpc_id通过查询VPC服务安全组列表接口获取,详见《虚拟私有云API参考》的“查询安全组列表”。当伸缩配置和伸缩组同时指定安全组时,将以伸缩配置中的安全组为准;当伸缩配置和伸缩组都没有指定安全组时,将使用默认安全组。为了使用灵活性更高,推荐在伸缩配置中指定安全组。
|
|
372
435
|
|
|
373
|
-
:param security_groups: The security_groups of this
|
|
374
|
-
:type: list[
|
|
436
|
+
:param security_groups: The security_groups of this CreateScalingGroupOption.
|
|
437
|
+
:type security_groups: list[:class:`huaweicloudsdkas.v1.SecurityGroup`]
|
|
375
438
|
"""
|
|
376
439
|
self._security_groups = security_groups
|
|
377
440
|
|
|
378
441
|
@property
|
|
379
442
|
def vpc_id(self):
|
|
380
|
-
"""Gets the vpc_id of this
|
|
443
|
+
r"""Gets the vpc_id of this CreateScalingGroupOption.
|
|
381
444
|
|
|
382
445
|
VPC信息,通过查询VPC服务VPC列表接口获取,详见《虚拟私有云API参考》的“查询VPC列表”。
|
|
383
446
|
|
|
384
|
-
:return: The vpc_id of this
|
|
447
|
+
:return: The vpc_id of this CreateScalingGroupOption.
|
|
385
448
|
:rtype: str
|
|
386
449
|
"""
|
|
387
450
|
return self._vpc_id
|
|
388
451
|
|
|
389
452
|
@vpc_id.setter
|
|
390
453
|
def vpc_id(self, vpc_id):
|
|
391
|
-
"""Sets the vpc_id of this
|
|
454
|
+
r"""Sets the vpc_id of this CreateScalingGroupOption.
|
|
392
455
|
|
|
393
456
|
VPC信息,通过查询VPC服务VPC列表接口获取,详见《虚拟私有云API参考》的“查询VPC列表”。
|
|
394
457
|
|
|
395
|
-
:param vpc_id: The vpc_id of this
|
|
396
|
-
:type: str
|
|
458
|
+
:param vpc_id: The vpc_id of this CreateScalingGroupOption.
|
|
459
|
+
:type vpc_id: str
|
|
397
460
|
"""
|
|
398
461
|
self._vpc_id = vpc_id
|
|
399
462
|
|
|
400
463
|
@property
|
|
401
464
|
def health_periodic_audit_method(self):
|
|
402
|
-
"""Gets the health_periodic_audit_method of this
|
|
465
|
+
r"""Gets the health_periodic_audit_method of this CreateScalingGroupOption.
|
|
403
466
|
|
|
404
467
|
伸缩组实例健康检查方式:ELB_AUDIT和NOVA_AUDIT。当伸缩组参数中设置负载均衡时,默认为ELB_AUDIT;否则默认为NOVA_AUDIT。ELB_AUDIT表示负载均衡健康检查方式,在有监听器的伸缩组中有效。NOVA_AUDIT表示弹性伸缩自带的健康检查方式。
|
|
405
468
|
|
|
406
|
-
:return: The health_periodic_audit_method of this
|
|
469
|
+
:return: The health_periodic_audit_method of this CreateScalingGroupOption.
|
|
407
470
|
:rtype: str
|
|
408
471
|
"""
|
|
409
472
|
return self._health_periodic_audit_method
|
|
410
473
|
|
|
411
474
|
@health_periodic_audit_method.setter
|
|
412
475
|
def health_periodic_audit_method(self, health_periodic_audit_method):
|
|
413
|
-
"""Sets the health_periodic_audit_method of this
|
|
476
|
+
r"""Sets the health_periodic_audit_method of this CreateScalingGroupOption.
|
|
414
477
|
|
|
415
478
|
伸缩组实例健康检查方式:ELB_AUDIT和NOVA_AUDIT。当伸缩组参数中设置负载均衡时,默认为ELB_AUDIT;否则默认为NOVA_AUDIT。ELB_AUDIT表示负载均衡健康检查方式,在有监听器的伸缩组中有效。NOVA_AUDIT表示弹性伸缩自带的健康检查方式。
|
|
416
479
|
|
|
417
|
-
:param health_periodic_audit_method: The health_periodic_audit_method of this
|
|
418
|
-
:type: str
|
|
480
|
+
:param health_periodic_audit_method: The health_periodic_audit_method of this CreateScalingGroupOption.
|
|
481
|
+
:type health_periodic_audit_method: str
|
|
419
482
|
"""
|
|
420
483
|
self._health_periodic_audit_method = health_periodic_audit_method
|
|
421
484
|
|
|
422
485
|
@property
|
|
423
486
|
def health_periodic_audit_time(self):
|
|
424
|
-
"""Gets the health_periodic_audit_time of this
|
|
487
|
+
r"""Gets the health_periodic_audit_time of this CreateScalingGroupOption.
|
|
425
488
|
|
|
426
489
|
伸缩组实例的健康检查周期,可设置为1、5、15、60、180(分钟),若不设置该参数,默认为5。若设置为0,可以实现10秒级健康检查。
|
|
427
490
|
|
|
428
|
-
:return: The health_periodic_audit_time of this
|
|
491
|
+
:return: The health_periodic_audit_time of this CreateScalingGroupOption.
|
|
429
492
|
:rtype: int
|
|
430
493
|
"""
|
|
431
494
|
return self._health_periodic_audit_time
|
|
432
495
|
|
|
433
496
|
@health_periodic_audit_time.setter
|
|
434
497
|
def health_periodic_audit_time(self, health_periodic_audit_time):
|
|
435
|
-
"""Sets the health_periodic_audit_time of this
|
|
498
|
+
r"""Sets the health_periodic_audit_time of this CreateScalingGroupOption.
|
|
436
499
|
|
|
437
500
|
伸缩组实例的健康检查周期,可设置为1、5、15、60、180(分钟),若不设置该参数,默认为5。若设置为0,可以实现10秒级健康检查。
|
|
438
501
|
|
|
439
|
-
:param health_periodic_audit_time: The health_periodic_audit_time of this
|
|
440
|
-
:type: int
|
|
502
|
+
:param health_periodic_audit_time: The health_periodic_audit_time of this CreateScalingGroupOption.
|
|
503
|
+
:type health_periodic_audit_time: int
|
|
441
504
|
"""
|
|
442
505
|
self._health_periodic_audit_time = health_periodic_audit_time
|
|
443
506
|
|
|
444
507
|
@property
|
|
445
508
|
def health_periodic_audit_grace_period(self):
|
|
446
|
-
"""Gets the health_periodic_audit_grace_period of this
|
|
509
|
+
r"""Gets the health_periodic_audit_grace_period of this CreateScalingGroupOption.
|
|
447
510
|
|
|
448
511
|
伸缩组实例健康状况检查宽限期,取值范围0-86400,单位是秒。当实例加入伸缩组并且进入已启用状态后,健康状况检查宽限期才会启动,伸缩组会等健康状况检查宽限期结束后才检查实例的运行状况。当伸缩组实例健康检查方式为ELB_AUDIT时,该参数生效,若不设置该参数,默认为600秒。
|
|
449
512
|
|
|
450
|
-
:return: The health_periodic_audit_grace_period of this
|
|
513
|
+
:return: The health_periodic_audit_grace_period of this CreateScalingGroupOption.
|
|
451
514
|
:rtype: int
|
|
452
515
|
"""
|
|
453
516
|
return self._health_periodic_audit_grace_period
|
|
454
517
|
|
|
455
518
|
@health_periodic_audit_grace_period.setter
|
|
456
519
|
def health_periodic_audit_grace_period(self, health_periodic_audit_grace_period):
|
|
457
|
-
"""Sets the health_periodic_audit_grace_period of this
|
|
520
|
+
r"""Sets the health_periodic_audit_grace_period of this CreateScalingGroupOption.
|
|
458
521
|
|
|
459
522
|
伸缩组实例健康状况检查宽限期,取值范围0-86400,单位是秒。当实例加入伸缩组并且进入已启用状态后,健康状况检查宽限期才会启动,伸缩组会等健康状况检查宽限期结束后才检查实例的运行状况。当伸缩组实例健康检查方式为ELB_AUDIT时,该参数生效,若不设置该参数,默认为600秒。
|
|
460
523
|
|
|
461
|
-
:param health_periodic_audit_grace_period: The health_periodic_audit_grace_period of this
|
|
462
|
-
:type: int
|
|
524
|
+
:param health_periodic_audit_grace_period: The health_periodic_audit_grace_period of this CreateScalingGroupOption.
|
|
525
|
+
:type health_periodic_audit_grace_period: int
|
|
463
526
|
"""
|
|
464
527
|
self._health_periodic_audit_grace_period = health_periodic_audit_grace_period
|
|
465
528
|
|
|
466
529
|
@property
|
|
467
530
|
def instance_terminate_policy(self):
|
|
468
|
-
"""Gets the instance_terminate_policy of this
|
|
531
|
+
r"""Gets the instance_terminate_policy of this CreateScalingGroupOption.
|
|
469
532
|
|
|
470
533
|
伸缩组实例移除策略:OLD_CONFIG_OLD_INSTANCE(默认):从根据“较早创建的配置”创建的实例中筛选出较早创建的实例被优先移除。OLD_CONFIG_NEW_INSTANCE:从根据“较早创建的配置”创建的实例中筛选出较新创建的实例被优先移除。OLD_INSTANCE:较早创建的实例被优先移除。NEW_INSTANCE:较新创建的实例将被优先移除。
|
|
471
534
|
|
|
472
|
-
:return: The instance_terminate_policy of this
|
|
535
|
+
:return: The instance_terminate_policy of this CreateScalingGroupOption.
|
|
473
536
|
:rtype: str
|
|
474
537
|
"""
|
|
475
538
|
return self._instance_terminate_policy
|
|
476
539
|
|
|
477
540
|
@instance_terminate_policy.setter
|
|
478
541
|
def instance_terminate_policy(self, instance_terminate_policy):
|
|
479
|
-
"""Sets the instance_terminate_policy of this
|
|
542
|
+
r"""Sets the instance_terminate_policy of this CreateScalingGroupOption.
|
|
480
543
|
|
|
481
544
|
伸缩组实例移除策略:OLD_CONFIG_OLD_INSTANCE(默认):从根据“较早创建的配置”创建的实例中筛选出较早创建的实例被优先移除。OLD_CONFIG_NEW_INSTANCE:从根据“较早创建的配置”创建的实例中筛选出较新创建的实例被优先移除。OLD_INSTANCE:较早创建的实例被优先移除。NEW_INSTANCE:较新创建的实例将被优先移除。
|
|
482
545
|
|
|
483
|
-
:param instance_terminate_policy: The instance_terminate_policy of this
|
|
484
|
-
:type: str
|
|
546
|
+
:param instance_terminate_policy: The instance_terminate_policy of this CreateScalingGroupOption.
|
|
547
|
+
:type instance_terminate_policy: str
|
|
485
548
|
"""
|
|
486
549
|
self._instance_terminate_policy = instance_terminate_policy
|
|
487
550
|
|
|
488
551
|
@property
|
|
489
552
|
def notifications(self):
|
|
490
|
-
"""Gets the notifications of this
|
|
553
|
+
r"""Gets the notifications of this CreateScalingGroupOption.
|
|
491
554
|
|
|
492
555
|
通知方式:EMAIL为发送邮件通知。该通知方式即将被废除,建议给弹性伸缩组配置通知功能。详见通知。
|
|
493
556
|
|
|
494
|
-
:return: The notifications of this
|
|
557
|
+
:return: The notifications of this CreateScalingGroupOption.
|
|
495
558
|
:rtype: list[str]
|
|
496
559
|
"""
|
|
497
560
|
return self._notifications
|
|
498
561
|
|
|
499
562
|
@notifications.setter
|
|
500
563
|
def notifications(self, notifications):
|
|
501
|
-
"""Sets the notifications of this
|
|
564
|
+
r"""Sets the notifications of this CreateScalingGroupOption.
|
|
502
565
|
|
|
503
566
|
通知方式:EMAIL为发送邮件通知。该通知方式即将被废除,建议给弹性伸缩组配置通知功能。详见通知。
|
|
504
567
|
|
|
505
|
-
:param notifications: The notifications of this
|
|
506
|
-
:type: list[str]
|
|
568
|
+
:param notifications: The notifications of this CreateScalingGroupOption.
|
|
569
|
+
:type notifications: list[str]
|
|
507
570
|
"""
|
|
508
571
|
self._notifications = notifications
|
|
509
572
|
|
|
510
573
|
@property
|
|
511
574
|
def delete_publicip(self):
|
|
512
|
-
"""Gets the delete_publicip of this
|
|
575
|
+
r"""Gets the delete_publicip of this CreateScalingGroupOption.
|
|
513
576
|
|
|
514
577
|
配置删除云服务器时是否删除云服务器绑定的弹性IP。取值为true或false,默认为false。true:删除云服务器时,会同时删除绑定在云服务器上的弹性IP。当弹性IP的计费方式为包年包月时,不会被删除。false:删除云服务器时,仅解绑定在云服务器上的弹性IP,不删除弹性IP。
|
|
515
578
|
|
|
516
|
-
:return: The delete_publicip of this
|
|
579
|
+
:return: The delete_publicip of this CreateScalingGroupOption.
|
|
517
580
|
:rtype: bool
|
|
518
581
|
"""
|
|
519
582
|
return self._delete_publicip
|
|
520
583
|
|
|
521
584
|
@delete_publicip.setter
|
|
522
585
|
def delete_publicip(self, delete_publicip):
|
|
523
|
-
"""Sets the delete_publicip of this
|
|
586
|
+
r"""Sets the delete_publicip of this CreateScalingGroupOption.
|
|
524
587
|
|
|
525
588
|
配置删除云服务器时是否删除云服务器绑定的弹性IP。取值为true或false,默认为false。true:删除云服务器时,会同时删除绑定在云服务器上的弹性IP。当弹性IP的计费方式为包年包月时,不会被删除。false:删除云服务器时,仅解绑定在云服务器上的弹性IP,不删除弹性IP。
|
|
526
589
|
|
|
527
|
-
:param delete_publicip: The delete_publicip of this
|
|
528
|
-
:type: bool
|
|
590
|
+
:param delete_publicip: The delete_publicip of this CreateScalingGroupOption.
|
|
591
|
+
:type delete_publicip: bool
|
|
529
592
|
"""
|
|
530
593
|
self._delete_publicip = delete_publicip
|
|
531
594
|
|
|
595
|
+
@property
|
|
596
|
+
def delete_volume(self):
|
|
597
|
+
r"""Gets the delete_volume of this CreateScalingGroupOption.
|
|
598
|
+
|
|
599
|
+
配置删除云服务器时是否删除云服务器绑定的数据盘。取值为true或false,默认为false。 true:删除云服务器时,会同时删除绑定在云服务器上的数据盘。当数据盘的计费方式为包年包月时,不会被删除。 false:删除云服务器时,仅解绑定在云服务器上的数据盘,不删除数据盘。
|
|
600
|
+
|
|
601
|
+
:return: The delete_volume of this CreateScalingGroupOption.
|
|
602
|
+
:rtype: bool
|
|
603
|
+
"""
|
|
604
|
+
return self._delete_volume
|
|
605
|
+
|
|
606
|
+
@delete_volume.setter
|
|
607
|
+
def delete_volume(self, delete_volume):
|
|
608
|
+
r"""Sets the delete_volume of this CreateScalingGroupOption.
|
|
609
|
+
|
|
610
|
+
配置删除云服务器时是否删除云服务器绑定的数据盘。取值为true或false,默认为false。 true:删除云服务器时,会同时删除绑定在云服务器上的数据盘。当数据盘的计费方式为包年包月时,不会被删除。 false:删除云服务器时,仅解绑定在云服务器上的数据盘,不删除数据盘。
|
|
611
|
+
|
|
612
|
+
:param delete_volume: The delete_volume of this CreateScalingGroupOption.
|
|
613
|
+
:type delete_volume: bool
|
|
614
|
+
"""
|
|
615
|
+
self._delete_volume = delete_volume
|
|
616
|
+
|
|
532
617
|
@property
|
|
533
618
|
def enterprise_project_id(self):
|
|
534
|
-
"""Gets the enterprise_project_id of this
|
|
619
|
+
r"""Gets the enterprise_project_id of this CreateScalingGroupOption.
|
|
535
620
|
|
|
536
|
-
企业项目ID
|
|
621
|
+
企业项目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
622
|
|
|
538
|
-
:return: The enterprise_project_id of this
|
|
623
|
+
:return: The enterprise_project_id of this CreateScalingGroupOption.
|
|
539
624
|
:rtype: str
|
|
540
625
|
"""
|
|
541
626
|
return self._enterprise_project_id
|
|
542
627
|
|
|
543
628
|
@enterprise_project_id.setter
|
|
544
629
|
def enterprise_project_id(self, enterprise_project_id):
|
|
545
|
-
"""Sets the enterprise_project_id of this
|
|
630
|
+
r"""Sets the enterprise_project_id of this CreateScalingGroupOption.
|
|
546
631
|
|
|
547
|
-
企业项目ID
|
|
632
|
+
企业项目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
633
|
|
|
549
|
-
:param enterprise_project_id: The enterprise_project_id of this
|
|
550
|
-
:type: str
|
|
634
|
+
:param enterprise_project_id: The enterprise_project_id of this CreateScalingGroupOption.
|
|
635
|
+
:type enterprise_project_id: str
|
|
551
636
|
"""
|
|
552
637
|
self._enterprise_project_id = enterprise_project_id
|
|
553
638
|
|
|
554
639
|
@property
|
|
555
640
|
def multi_az_priority_policy(self):
|
|
556
|
-
"""Gets the multi_az_priority_policy of this
|
|
641
|
+
r"""Gets the multi_az_priority_policy of this CreateScalingGroupOption.
|
|
557
642
|
|
|
558
643
|
伸缩组扩缩容时目标AZ选择的优先级策略:EQUILIBRIUM_DISTRIBUTE(默认):均衡分布,云服务器扩缩容时优先保证available_zones列表中各AZ下虚拟机数量均衡,当无法在目标AZ下完成虚拟机扩容时,按照PICK_FIRST原则选择其他可用AZ。PICK_FIRST:选择优先,虚拟机扩缩容时目标AZ的选择按照available_zones列表的顺序进行优先级排序。
|
|
559
644
|
|
|
560
|
-
:return: The multi_az_priority_policy of this
|
|
645
|
+
:return: The multi_az_priority_policy of this CreateScalingGroupOption.
|
|
561
646
|
:rtype: str
|
|
562
647
|
"""
|
|
563
648
|
return self._multi_az_priority_policy
|
|
564
649
|
|
|
565
650
|
@multi_az_priority_policy.setter
|
|
566
651
|
def multi_az_priority_policy(self, multi_az_priority_policy):
|
|
567
|
-
"""Sets the multi_az_priority_policy of this
|
|
652
|
+
r"""Sets the multi_az_priority_policy of this CreateScalingGroupOption.
|
|
568
653
|
|
|
569
654
|
伸缩组扩缩容时目标AZ选择的优先级策略:EQUILIBRIUM_DISTRIBUTE(默认):均衡分布,云服务器扩缩容时优先保证available_zones列表中各AZ下虚拟机数量均衡,当无法在目标AZ下完成虚拟机扩容时,按照PICK_FIRST原则选择其他可用AZ。PICK_FIRST:选择优先,虚拟机扩缩容时目标AZ的选择按照available_zones列表的顺序进行优先级排序。
|
|
570
655
|
|
|
571
|
-
:param multi_az_priority_policy: The multi_az_priority_policy of this
|
|
572
|
-
:type: str
|
|
656
|
+
:param multi_az_priority_policy: The multi_az_priority_policy of this CreateScalingGroupOption.
|
|
657
|
+
:type multi_az_priority_policy: str
|
|
573
658
|
"""
|
|
574
659
|
self._multi_az_priority_policy = multi_az_priority_policy
|
|
575
660
|
|
|
661
|
+
@property
|
|
662
|
+
def iam_agency_name(self):
|
|
663
|
+
r"""Gets the iam_agency_name of this CreateScalingGroupOption.
|
|
664
|
+
|
|
665
|
+
委托的名称委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
|
|
666
|
+
|
|
667
|
+
:return: The iam_agency_name of this CreateScalingGroupOption.
|
|
668
|
+
:rtype: str
|
|
669
|
+
"""
|
|
670
|
+
return self._iam_agency_name
|
|
671
|
+
|
|
672
|
+
@iam_agency_name.setter
|
|
673
|
+
def iam_agency_name(self, iam_agency_name):
|
|
674
|
+
r"""Sets the iam_agency_name of this CreateScalingGroupOption.
|
|
675
|
+
|
|
676
|
+
委托的名称委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
|
|
677
|
+
|
|
678
|
+
:param iam_agency_name: The iam_agency_name of this CreateScalingGroupOption.
|
|
679
|
+
:type iam_agency_name: str
|
|
680
|
+
"""
|
|
681
|
+
self._iam_agency_name = iam_agency_name
|
|
682
|
+
|
|
683
|
+
@property
|
|
684
|
+
def description(self):
|
|
685
|
+
r"""Gets the description of this CreateScalingGroupOption.
|
|
686
|
+
|
|
687
|
+
伸缩组描述信息(0-256个字符)
|
|
688
|
+
|
|
689
|
+
:return: The description of this CreateScalingGroupOption.
|
|
690
|
+
:rtype: str
|
|
691
|
+
"""
|
|
692
|
+
return self._description
|
|
693
|
+
|
|
694
|
+
@description.setter
|
|
695
|
+
def description(self, description):
|
|
696
|
+
r"""Sets the description of this CreateScalingGroupOption.
|
|
697
|
+
|
|
698
|
+
伸缩组描述信息(0-256个字符)
|
|
699
|
+
|
|
700
|
+
:param description: The description of this CreateScalingGroupOption.
|
|
701
|
+
:type description: str
|
|
702
|
+
"""
|
|
703
|
+
self._description = description
|
|
704
|
+
|
|
705
|
+
@property
|
|
706
|
+
def tags(self):
|
|
707
|
+
r"""Gets the tags of this CreateScalingGroupOption.
|
|
708
|
+
|
|
709
|
+
创建特定标签并将其添加到伸缩组。每个伸缩组最多添加10个标签。
|
|
710
|
+
|
|
711
|
+
:return: The tags of this CreateScalingGroupOption.
|
|
712
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.TagsSingleValue`]
|
|
713
|
+
"""
|
|
714
|
+
return self._tags
|
|
715
|
+
|
|
716
|
+
@tags.setter
|
|
717
|
+
def tags(self, tags):
|
|
718
|
+
r"""Sets the tags of this CreateScalingGroupOption.
|
|
719
|
+
|
|
720
|
+
创建特定标签并将其添加到伸缩组。每个伸缩组最多添加10个标签。
|
|
721
|
+
|
|
722
|
+
:param tags: The tags of this CreateScalingGroupOption.
|
|
723
|
+
:type tags: list[:class:`huaweicloudsdkas.v1.TagsSingleValue`]
|
|
724
|
+
"""
|
|
725
|
+
self._tags = tags
|
|
726
|
+
|
|
576
727
|
def to_dict(self):
|
|
577
|
-
"""Returns the model properties as a dict"""
|
|
578
728
|
result = {}
|
|
579
729
|
|
|
580
|
-
for attr, _ in
|
|
730
|
+
for attr, _ in self.openapi_types.items():
|
|
581
731
|
value = getattr(self, attr)
|
|
582
732
|
if isinstance(value, list):
|
|
583
733
|
result[attr] = list(map(
|
|
@@ -602,15 +752,16 @@ class CreateScalingGroupRequestBody:
|
|
|
602
752
|
|
|
603
753
|
def to_str(self):
|
|
604
754
|
"""Returns the string representation of the model"""
|
|
605
|
-
|
|
755
|
+
import simplejson as json
|
|
756
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
606
757
|
|
|
607
758
|
def __repr__(self):
|
|
608
|
-
"""For `print`
|
|
759
|
+
"""For `print`"""
|
|
609
760
|
return self.to_str()
|
|
610
761
|
|
|
611
762
|
def __eq__(self, other):
|
|
612
763
|
"""Returns true if both objects are equal"""
|
|
613
|
-
if not isinstance(other,
|
|
764
|
+
if not isinstance(other, CreateScalingGroupOption):
|
|
614
765
|
return False
|
|
615
766
|
|
|
616
767
|
return self.__dict__ == other.__dict__
|