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