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
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
|
-
import six
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
4
|
|
|
11
5
|
|
|
12
6
|
class ScalingGroups:
|
|
13
7
|
|
|
14
|
-
|
|
15
8
|
"""
|
|
16
9
|
Attributes:
|
|
17
10
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +12,6 @@ class ScalingGroups:
|
|
|
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 = {
|
|
@@ -36,7 +28,7 @@ class ScalingGroups:
|
|
|
36
28
|
'lb_listener_id': 'str',
|
|
37
29
|
'lbaas_listeners': 'list[LbaasListenersResult]',
|
|
38
30
|
'available_zones': 'list[str]',
|
|
39
|
-
'networks': 'list[
|
|
31
|
+
'networks': 'list[NetworksResult]',
|
|
40
32
|
'security_groups': 'list[SecurityGroupsResult]',
|
|
41
33
|
'create_time': 'datetime',
|
|
42
34
|
'vpc_id': 'str',
|
|
@@ -48,8 +40,14 @@ class ScalingGroups:
|
|
|
48
40
|
'instance_terminate_policy': 'str',
|
|
49
41
|
'notifications': 'list[str]',
|
|
50
42
|
'delete_publicip': 'bool',
|
|
43
|
+
'delete_volume': 'bool',
|
|
51
44
|
'cloud_location_id': 'str',
|
|
52
|
-
'enterprise_project_id': 'str'
|
|
45
|
+
'enterprise_project_id': 'str',
|
|
46
|
+
'activity_type': 'str',
|
|
47
|
+
'multi_az_priority_policy': 'str',
|
|
48
|
+
'iam_agency_name': 'str',
|
|
49
|
+
'description': 'str',
|
|
50
|
+
'tags': 'list[TagsSingleValue]'
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
attribute_map = {
|
|
@@ -78,12 +76,88 @@ class ScalingGroups:
|
|
|
78
76
|
'instance_terminate_policy': 'instance_terminate_policy',
|
|
79
77
|
'notifications': 'notifications',
|
|
80
78
|
'delete_publicip': 'delete_publicip',
|
|
79
|
+
'delete_volume': 'delete_volume',
|
|
81
80
|
'cloud_location_id': 'cloud_location_id',
|
|
82
|
-
'enterprise_project_id': 'enterprise_project_id'
|
|
81
|
+
'enterprise_project_id': 'enterprise_project_id',
|
|
82
|
+
'activity_type': 'activity_type',
|
|
83
|
+
'multi_az_priority_policy': 'multi_az_priority_policy',
|
|
84
|
+
'iam_agency_name': 'iam_agency_name',
|
|
85
|
+
'description': 'description',
|
|
86
|
+
'tags': 'tags'
|
|
83
87
|
}
|
|
84
88
|
|
|
85
|
-
def __init__(self, scaling_group_name=None, scaling_group_id=None, scaling_group_status=None, scaling_configuration_id=None, scaling_configuration_name=None, current_instance_number=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, create_time=None, vpc_id=None, detail=None, is_scaling=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, cloud_location_id=None, enterprise_project_id=None):
|
|
86
|
-
"""ScalingGroups
|
|
89
|
+
def __init__(self, scaling_group_name=None, scaling_group_id=None, scaling_group_status=None, scaling_configuration_id=None, scaling_configuration_name=None, current_instance_number=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, create_time=None, vpc_id=None, detail=None, is_scaling=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, cloud_location_id=None, enterprise_project_id=None, activity_type=None, multi_az_priority_policy=None, iam_agency_name=None, description=None, tags=None):
|
|
90
|
+
r"""ScalingGroups
|
|
91
|
+
|
|
92
|
+
The model defined in huaweicloud sdk
|
|
93
|
+
|
|
94
|
+
:param scaling_group_name: 伸缩组名称。
|
|
95
|
+
:type scaling_group_name: str
|
|
96
|
+
:param scaling_group_id: 伸缩组ID。
|
|
97
|
+
:type scaling_group_id: str
|
|
98
|
+
:param scaling_group_status: 伸缩组状态。
|
|
99
|
+
:type scaling_group_status: str
|
|
100
|
+
:param scaling_configuration_id: 伸缩配置ID。
|
|
101
|
+
:type scaling_configuration_id: str
|
|
102
|
+
:param scaling_configuration_name: 伸缩配置名称。
|
|
103
|
+
:type scaling_configuration_name: str
|
|
104
|
+
:param current_instance_number: 伸缩组中当前实例数。
|
|
105
|
+
:type current_instance_number: int
|
|
106
|
+
:param desire_instance_number: 伸缩组期望实例数。
|
|
107
|
+
:type desire_instance_number: int
|
|
108
|
+
:param min_instance_number: 伸缩组最小实例数。
|
|
109
|
+
:type min_instance_number: int
|
|
110
|
+
:param max_instance_number: 伸缩组最大实例数
|
|
111
|
+
:type max_instance_number: int
|
|
112
|
+
:param cool_down_time: 冷却时间,单位是秒。
|
|
113
|
+
:type cool_down_time: int
|
|
114
|
+
:param lb_listener_id: 经典型负载均衡监听器ID,多个负载均衡监听器ID以逗号分隔。
|
|
115
|
+
:type lb_listener_id: str
|
|
116
|
+
:param lbaas_listeners: 增强型负载均衡器信息,该参数为预留字段。
|
|
117
|
+
:type lbaas_listeners: list[:class:`huaweicloudsdkas.v1.LbaasListenersResult`]
|
|
118
|
+
:param available_zones: 可用分区信息
|
|
119
|
+
:type available_zones: list[str]
|
|
120
|
+
:param networks: 网络信息
|
|
121
|
+
:type networks: list[:class:`huaweicloudsdkas.v1.NetworksResult`]
|
|
122
|
+
:param security_groups: 安全组信息
|
|
123
|
+
:type security_groups: list[:class:`huaweicloudsdkas.v1.SecurityGroupsResult`]
|
|
124
|
+
:param create_time: 创建伸缩组时间,遵循UTC时间。
|
|
125
|
+
:type create_time: datetime
|
|
126
|
+
:param vpc_id: 伸缩组所在的VPC ID。
|
|
127
|
+
:type vpc_id: str
|
|
128
|
+
:param detail: 伸缩组详情。
|
|
129
|
+
:type detail: str
|
|
130
|
+
:param is_scaling: 伸缩组伸缩标志。
|
|
131
|
+
:type is_scaling: bool
|
|
132
|
+
:param health_periodic_audit_method: 健康检查方式。
|
|
133
|
+
:type health_periodic_audit_method: str
|
|
134
|
+
:param health_periodic_audit_time: 健康检查的间隔时间。
|
|
135
|
+
:type health_periodic_audit_time: int
|
|
136
|
+
:param health_periodic_audit_grace_period: 健康状况检查宽限期。
|
|
137
|
+
:type health_periodic_audit_grace_period: int
|
|
138
|
+
:param instance_terminate_policy: 移除策略。
|
|
139
|
+
:type instance_terminate_policy: str
|
|
140
|
+
:param notifications: 通知方式:EMAIL为发送邮件通知。该通知方式已经被废除,建议给弹性伸缩组配置通知功能。请参考[通知](https://support.huaweicloud.com/api-as/as_06_0800.html)。
|
|
141
|
+
:type notifications: list[str]
|
|
142
|
+
:param delete_publicip: 删除云服务器是否删除云服务器绑定的弹性IP。
|
|
143
|
+
:type delete_publicip: bool
|
|
144
|
+
:param delete_volume: 删除云服务器是否删除云服务器绑定的数据盘
|
|
145
|
+
:type delete_volume: bool
|
|
146
|
+
:param cloud_location_id: 该参数为预留字段
|
|
147
|
+
:type cloud_location_id: str
|
|
148
|
+
:param enterprise_project_id: 企业项目ID
|
|
149
|
+
:type enterprise_project_id: str
|
|
150
|
+
:param activity_type: 伸缩组活动类型
|
|
151
|
+
:type activity_type: str
|
|
152
|
+
:param multi_az_priority_policy: 伸缩组扩缩容时目标AZ选择的优先级策略
|
|
153
|
+
:type multi_az_priority_policy: str
|
|
154
|
+
:param iam_agency_name: 委托的名称委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
|
|
155
|
+
:type iam_agency_name: str
|
|
156
|
+
:param description: 伸缩组描述信息
|
|
157
|
+
:type description: str
|
|
158
|
+
:param tags: 添加到伸缩组的标签。
|
|
159
|
+
:type tags: list[:class:`huaweicloudsdkas.v1.TagsSingleValue`]
|
|
160
|
+
"""
|
|
87
161
|
|
|
88
162
|
|
|
89
163
|
|
|
@@ -112,8 +186,14 @@ class ScalingGroups:
|
|
|
112
186
|
self._instance_terminate_policy = None
|
|
113
187
|
self._notifications = None
|
|
114
188
|
self._delete_publicip = None
|
|
189
|
+
self._delete_volume = None
|
|
115
190
|
self._cloud_location_id = None
|
|
116
191
|
self._enterprise_project_id = None
|
|
192
|
+
self._activity_type = None
|
|
193
|
+
self._multi_az_priority_policy = None
|
|
194
|
+
self._iam_agency_name = None
|
|
195
|
+
self._description = None
|
|
196
|
+
self._tags = None
|
|
117
197
|
self.discriminator = None
|
|
118
198
|
|
|
119
199
|
if scaling_group_name is not None:
|
|
@@ -166,14 +246,26 @@ class ScalingGroups:
|
|
|
166
246
|
self.notifications = notifications
|
|
167
247
|
if delete_publicip is not None:
|
|
168
248
|
self.delete_publicip = delete_publicip
|
|
249
|
+
if delete_volume is not None:
|
|
250
|
+
self.delete_volume = delete_volume
|
|
169
251
|
if cloud_location_id is not None:
|
|
170
252
|
self.cloud_location_id = cloud_location_id
|
|
171
253
|
if enterprise_project_id is not None:
|
|
172
254
|
self.enterprise_project_id = enterprise_project_id
|
|
255
|
+
if activity_type is not None:
|
|
256
|
+
self.activity_type = activity_type
|
|
257
|
+
if multi_az_priority_policy is not None:
|
|
258
|
+
self.multi_az_priority_policy = multi_az_priority_policy
|
|
259
|
+
if iam_agency_name is not None:
|
|
260
|
+
self.iam_agency_name = iam_agency_name
|
|
261
|
+
if description is not None:
|
|
262
|
+
self.description = description
|
|
263
|
+
if tags is not None:
|
|
264
|
+
self.tags = tags
|
|
173
265
|
|
|
174
266
|
@property
|
|
175
267
|
def scaling_group_name(self):
|
|
176
|
-
"""Gets the scaling_group_name of this ScalingGroups.
|
|
268
|
+
r"""Gets the scaling_group_name of this ScalingGroups.
|
|
177
269
|
|
|
178
270
|
伸缩组名称。
|
|
179
271
|
|
|
@@ -184,18 +276,18 @@ class ScalingGroups:
|
|
|
184
276
|
|
|
185
277
|
@scaling_group_name.setter
|
|
186
278
|
def scaling_group_name(self, scaling_group_name):
|
|
187
|
-
"""Sets the scaling_group_name of this ScalingGroups.
|
|
279
|
+
r"""Sets the scaling_group_name of this ScalingGroups.
|
|
188
280
|
|
|
189
281
|
伸缩组名称。
|
|
190
282
|
|
|
191
283
|
:param scaling_group_name: The scaling_group_name of this ScalingGroups.
|
|
192
|
-
:type: str
|
|
284
|
+
:type scaling_group_name: str
|
|
193
285
|
"""
|
|
194
286
|
self._scaling_group_name = scaling_group_name
|
|
195
287
|
|
|
196
288
|
@property
|
|
197
289
|
def scaling_group_id(self):
|
|
198
|
-
"""Gets the scaling_group_id of this ScalingGroups.
|
|
290
|
+
r"""Gets the scaling_group_id of this ScalingGroups.
|
|
199
291
|
|
|
200
292
|
伸缩组ID。
|
|
201
293
|
|
|
@@ -206,18 +298,18 @@ class ScalingGroups:
|
|
|
206
298
|
|
|
207
299
|
@scaling_group_id.setter
|
|
208
300
|
def scaling_group_id(self, scaling_group_id):
|
|
209
|
-
"""Sets the scaling_group_id of this ScalingGroups.
|
|
301
|
+
r"""Sets the scaling_group_id of this ScalingGroups.
|
|
210
302
|
|
|
211
303
|
伸缩组ID。
|
|
212
304
|
|
|
213
305
|
:param scaling_group_id: The scaling_group_id of this ScalingGroups.
|
|
214
|
-
:type: str
|
|
306
|
+
:type scaling_group_id: str
|
|
215
307
|
"""
|
|
216
308
|
self._scaling_group_id = scaling_group_id
|
|
217
309
|
|
|
218
310
|
@property
|
|
219
311
|
def scaling_group_status(self):
|
|
220
|
-
"""Gets the scaling_group_status of this ScalingGroups.
|
|
312
|
+
r"""Gets the scaling_group_status of this ScalingGroups.
|
|
221
313
|
|
|
222
314
|
伸缩组状态。
|
|
223
315
|
|
|
@@ -228,18 +320,18 @@ class ScalingGroups:
|
|
|
228
320
|
|
|
229
321
|
@scaling_group_status.setter
|
|
230
322
|
def scaling_group_status(self, scaling_group_status):
|
|
231
|
-
"""Sets the scaling_group_status of this ScalingGroups.
|
|
323
|
+
r"""Sets the scaling_group_status of this ScalingGroups.
|
|
232
324
|
|
|
233
325
|
伸缩组状态。
|
|
234
326
|
|
|
235
327
|
:param scaling_group_status: The scaling_group_status of this ScalingGroups.
|
|
236
|
-
:type: str
|
|
328
|
+
:type scaling_group_status: str
|
|
237
329
|
"""
|
|
238
330
|
self._scaling_group_status = scaling_group_status
|
|
239
331
|
|
|
240
332
|
@property
|
|
241
333
|
def scaling_configuration_id(self):
|
|
242
|
-
"""Gets the scaling_configuration_id of this ScalingGroups.
|
|
334
|
+
r"""Gets the scaling_configuration_id of this ScalingGroups.
|
|
243
335
|
|
|
244
336
|
伸缩配置ID。
|
|
245
337
|
|
|
@@ -250,18 +342,18 @@ class ScalingGroups:
|
|
|
250
342
|
|
|
251
343
|
@scaling_configuration_id.setter
|
|
252
344
|
def scaling_configuration_id(self, scaling_configuration_id):
|
|
253
|
-
"""Sets the scaling_configuration_id of this ScalingGroups.
|
|
345
|
+
r"""Sets the scaling_configuration_id of this ScalingGroups.
|
|
254
346
|
|
|
255
347
|
伸缩配置ID。
|
|
256
348
|
|
|
257
349
|
:param scaling_configuration_id: The scaling_configuration_id of this ScalingGroups.
|
|
258
|
-
:type: str
|
|
350
|
+
:type scaling_configuration_id: str
|
|
259
351
|
"""
|
|
260
352
|
self._scaling_configuration_id = scaling_configuration_id
|
|
261
353
|
|
|
262
354
|
@property
|
|
263
355
|
def scaling_configuration_name(self):
|
|
264
|
-
"""Gets the scaling_configuration_name of this ScalingGroups.
|
|
356
|
+
r"""Gets the scaling_configuration_name of this ScalingGroups.
|
|
265
357
|
|
|
266
358
|
伸缩配置名称。
|
|
267
359
|
|
|
@@ -272,18 +364,18 @@ class ScalingGroups:
|
|
|
272
364
|
|
|
273
365
|
@scaling_configuration_name.setter
|
|
274
366
|
def scaling_configuration_name(self, scaling_configuration_name):
|
|
275
|
-
"""Sets the scaling_configuration_name of this ScalingGroups.
|
|
367
|
+
r"""Sets the scaling_configuration_name of this ScalingGroups.
|
|
276
368
|
|
|
277
369
|
伸缩配置名称。
|
|
278
370
|
|
|
279
371
|
:param scaling_configuration_name: The scaling_configuration_name of this ScalingGroups.
|
|
280
|
-
:type: str
|
|
372
|
+
:type scaling_configuration_name: str
|
|
281
373
|
"""
|
|
282
374
|
self._scaling_configuration_name = scaling_configuration_name
|
|
283
375
|
|
|
284
376
|
@property
|
|
285
377
|
def current_instance_number(self):
|
|
286
|
-
"""Gets the current_instance_number of this ScalingGroups.
|
|
378
|
+
r"""Gets the current_instance_number of this ScalingGroups.
|
|
287
379
|
|
|
288
380
|
伸缩组中当前实例数。
|
|
289
381
|
|
|
@@ -294,18 +386,18 @@ class ScalingGroups:
|
|
|
294
386
|
|
|
295
387
|
@current_instance_number.setter
|
|
296
388
|
def current_instance_number(self, current_instance_number):
|
|
297
|
-
"""Sets the current_instance_number of this ScalingGroups.
|
|
389
|
+
r"""Sets the current_instance_number of this ScalingGroups.
|
|
298
390
|
|
|
299
391
|
伸缩组中当前实例数。
|
|
300
392
|
|
|
301
393
|
:param current_instance_number: The current_instance_number of this ScalingGroups.
|
|
302
|
-
:type: int
|
|
394
|
+
:type current_instance_number: int
|
|
303
395
|
"""
|
|
304
396
|
self._current_instance_number = current_instance_number
|
|
305
397
|
|
|
306
398
|
@property
|
|
307
399
|
def desire_instance_number(self):
|
|
308
|
-
"""Gets the desire_instance_number of this ScalingGroups.
|
|
400
|
+
r"""Gets the desire_instance_number of this ScalingGroups.
|
|
309
401
|
|
|
310
402
|
伸缩组期望实例数。
|
|
311
403
|
|
|
@@ -316,18 +408,18 @@ class ScalingGroups:
|
|
|
316
408
|
|
|
317
409
|
@desire_instance_number.setter
|
|
318
410
|
def desire_instance_number(self, desire_instance_number):
|
|
319
|
-
"""Sets the desire_instance_number of this ScalingGroups.
|
|
411
|
+
r"""Sets the desire_instance_number of this ScalingGroups.
|
|
320
412
|
|
|
321
413
|
伸缩组期望实例数。
|
|
322
414
|
|
|
323
415
|
:param desire_instance_number: The desire_instance_number of this ScalingGroups.
|
|
324
|
-
:type: int
|
|
416
|
+
:type desire_instance_number: int
|
|
325
417
|
"""
|
|
326
418
|
self._desire_instance_number = desire_instance_number
|
|
327
419
|
|
|
328
420
|
@property
|
|
329
421
|
def min_instance_number(self):
|
|
330
|
-
"""Gets the min_instance_number of this ScalingGroups.
|
|
422
|
+
r"""Gets the min_instance_number of this ScalingGroups.
|
|
331
423
|
|
|
332
424
|
伸缩组最小实例数。
|
|
333
425
|
|
|
@@ -338,18 +430,18 @@ class ScalingGroups:
|
|
|
338
430
|
|
|
339
431
|
@min_instance_number.setter
|
|
340
432
|
def min_instance_number(self, min_instance_number):
|
|
341
|
-
"""Sets the min_instance_number of this ScalingGroups.
|
|
433
|
+
r"""Sets the min_instance_number of this ScalingGroups.
|
|
342
434
|
|
|
343
435
|
伸缩组最小实例数。
|
|
344
436
|
|
|
345
437
|
:param min_instance_number: The min_instance_number of this ScalingGroups.
|
|
346
|
-
:type: int
|
|
438
|
+
:type min_instance_number: int
|
|
347
439
|
"""
|
|
348
440
|
self._min_instance_number = min_instance_number
|
|
349
441
|
|
|
350
442
|
@property
|
|
351
443
|
def max_instance_number(self):
|
|
352
|
-
"""Gets the max_instance_number of this ScalingGroups.
|
|
444
|
+
r"""Gets the max_instance_number of this ScalingGroups.
|
|
353
445
|
|
|
354
446
|
伸缩组最大实例数
|
|
355
447
|
|
|
@@ -360,18 +452,18 @@ class ScalingGroups:
|
|
|
360
452
|
|
|
361
453
|
@max_instance_number.setter
|
|
362
454
|
def max_instance_number(self, max_instance_number):
|
|
363
|
-
"""Sets the max_instance_number of this ScalingGroups.
|
|
455
|
+
r"""Sets the max_instance_number of this ScalingGroups.
|
|
364
456
|
|
|
365
457
|
伸缩组最大实例数
|
|
366
458
|
|
|
367
459
|
:param max_instance_number: The max_instance_number of this ScalingGroups.
|
|
368
|
-
:type: int
|
|
460
|
+
:type max_instance_number: int
|
|
369
461
|
"""
|
|
370
462
|
self._max_instance_number = max_instance_number
|
|
371
463
|
|
|
372
464
|
@property
|
|
373
465
|
def cool_down_time(self):
|
|
374
|
-
"""Gets the cool_down_time of this ScalingGroups.
|
|
466
|
+
r"""Gets the cool_down_time of this ScalingGroups.
|
|
375
467
|
|
|
376
468
|
冷却时间,单位是秒。
|
|
377
469
|
|
|
@@ -382,18 +474,18 @@ class ScalingGroups:
|
|
|
382
474
|
|
|
383
475
|
@cool_down_time.setter
|
|
384
476
|
def cool_down_time(self, cool_down_time):
|
|
385
|
-
"""Sets the cool_down_time of this ScalingGroups.
|
|
477
|
+
r"""Sets the cool_down_time of this ScalingGroups.
|
|
386
478
|
|
|
387
479
|
冷却时间,单位是秒。
|
|
388
480
|
|
|
389
481
|
:param cool_down_time: The cool_down_time of this ScalingGroups.
|
|
390
|
-
:type: int
|
|
482
|
+
:type cool_down_time: int
|
|
391
483
|
"""
|
|
392
484
|
self._cool_down_time = cool_down_time
|
|
393
485
|
|
|
394
486
|
@property
|
|
395
487
|
def lb_listener_id(self):
|
|
396
|
-
"""Gets the lb_listener_id of this ScalingGroups.
|
|
488
|
+
r"""Gets the lb_listener_id of this ScalingGroups.
|
|
397
489
|
|
|
398
490
|
经典型负载均衡监听器ID,多个负载均衡监听器ID以逗号分隔。
|
|
399
491
|
|
|
@@ -404,40 +496,40 @@ class ScalingGroups:
|
|
|
404
496
|
|
|
405
497
|
@lb_listener_id.setter
|
|
406
498
|
def lb_listener_id(self, lb_listener_id):
|
|
407
|
-
"""Sets the lb_listener_id of this ScalingGroups.
|
|
499
|
+
r"""Sets the lb_listener_id of this ScalingGroups.
|
|
408
500
|
|
|
409
501
|
经典型负载均衡监听器ID,多个负载均衡监听器ID以逗号分隔。
|
|
410
502
|
|
|
411
503
|
:param lb_listener_id: The lb_listener_id of this ScalingGroups.
|
|
412
|
-
:type: str
|
|
504
|
+
:type lb_listener_id: str
|
|
413
505
|
"""
|
|
414
506
|
self._lb_listener_id = lb_listener_id
|
|
415
507
|
|
|
416
508
|
@property
|
|
417
509
|
def lbaas_listeners(self):
|
|
418
|
-
"""Gets the lbaas_listeners of this ScalingGroups.
|
|
510
|
+
r"""Gets the lbaas_listeners of this ScalingGroups.
|
|
419
511
|
|
|
420
512
|
增强型负载均衡器信息,该参数为预留字段。
|
|
421
513
|
|
|
422
514
|
:return: The lbaas_listeners of this ScalingGroups.
|
|
423
|
-
:rtype: list[LbaasListenersResult]
|
|
515
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.LbaasListenersResult`]
|
|
424
516
|
"""
|
|
425
517
|
return self._lbaas_listeners
|
|
426
518
|
|
|
427
519
|
@lbaas_listeners.setter
|
|
428
520
|
def lbaas_listeners(self, lbaas_listeners):
|
|
429
|
-
"""Sets the lbaas_listeners of this ScalingGroups.
|
|
521
|
+
r"""Sets the lbaas_listeners of this ScalingGroups.
|
|
430
522
|
|
|
431
523
|
增强型负载均衡器信息,该参数为预留字段。
|
|
432
524
|
|
|
433
525
|
:param lbaas_listeners: The lbaas_listeners of this ScalingGroups.
|
|
434
|
-
:type: list[LbaasListenersResult]
|
|
526
|
+
:type lbaas_listeners: list[:class:`huaweicloudsdkas.v1.LbaasListenersResult`]
|
|
435
527
|
"""
|
|
436
528
|
self._lbaas_listeners = lbaas_listeners
|
|
437
529
|
|
|
438
530
|
@property
|
|
439
531
|
def available_zones(self):
|
|
440
|
-
"""Gets the available_zones of this ScalingGroups.
|
|
532
|
+
r"""Gets the available_zones of this ScalingGroups.
|
|
441
533
|
|
|
442
534
|
可用分区信息
|
|
443
535
|
|
|
@@ -448,62 +540,62 @@ class ScalingGroups:
|
|
|
448
540
|
|
|
449
541
|
@available_zones.setter
|
|
450
542
|
def available_zones(self, available_zones):
|
|
451
|
-
"""Sets the available_zones of this ScalingGroups.
|
|
543
|
+
r"""Sets the available_zones of this ScalingGroups.
|
|
452
544
|
|
|
453
545
|
可用分区信息
|
|
454
546
|
|
|
455
547
|
:param available_zones: The available_zones of this ScalingGroups.
|
|
456
|
-
:type: list[str]
|
|
548
|
+
:type available_zones: list[str]
|
|
457
549
|
"""
|
|
458
550
|
self._available_zones = available_zones
|
|
459
551
|
|
|
460
552
|
@property
|
|
461
553
|
def networks(self):
|
|
462
|
-
"""Gets the networks of this ScalingGroups.
|
|
554
|
+
r"""Gets the networks of this ScalingGroups.
|
|
463
555
|
|
|
464
556
|
网络信息
|
|
465
557
|
|
|
466
558
|
:return: The networks of this ScalingGroups.
|
|
467
|
-
:rtype: list[
|
|
559
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.NetworksResult`]
|
|
468
560
|
"""
|
|
469
561
|
return self._networks
|
|
470
562
|
|
|
471
563
|
@networks.setter
|
|
472
564
|
def networks(self, networks):
|
|
473
|
-
"""Sets the networks of this ScalingGroups.
|
|
565
|
+
r"""Sets the networks of this ScalingGroups.
|
|
474
566
|
|
|
475
567
|
网络信息
|
|
476
568
|
|
|
477
569
|
:param networks: The networks of this ScalingGroups.
|
|
478
|
-
:type: list[
|
|
570
|
+
:type networks: list[:class:`huaweicloudsdkas.v1.NetworksResult`]
|
|
479
571
|
"""
|
|
480
572
|
self._networks = networks
|
|
481
573
|
|
|
482
574
|
@property
|
|
483
575
|
def security_groups(self):
|
|
484
|
-
"""Gets the security_groups of this ScalingGroups.
|
|
576
|
+
r"""Gets the security_groups of this ScalingGroups.
|
|
485
577
|
|
|
486
578
|
安全组信息
|
|
487
579
|
|
|
488
580
|
:return: The security_groups of this ScalingGroups.
|
|
489
|
-
:rtype: list[SecurityGroupsResult]
|
|
581
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.SecurityGroupsResult`]
|
|
490
582
|
"""
|
|
491
583
|
return self._security_groups
|
|
492
584
|
|
|
493
585
|
@security_groups.setter
|
|
494
586
|
def security_groups(self, security_groups):
|
|
495
|
-
"""Sets the security_groups of this ScalingGroups.
|
|
587
|
+
r"""Sets the security_groups of this ScalingGroups.
|
|
496
588
|
|
|
497
589
|
安全组信息
|
|
498
590
|
|
|
499
591
|
:param security_groups: The security_groups of this ScalingGroups.
|
|
500
|
-
:type: list[SecurityGroupsResult]
|
|
592
|
+
:type security_groups: list[:class:`huaweicloudsdkas.v1.SecurityGroupsResult`]
|
|
501
593
|
"""
|
|
502
594
|
self._security_groups = security_groups
|
|
503
595
|
|
|
504
596
|
@property
|
|
505
597
|
def create_time(self):
|
|
506
|
-
"""Gets the create_time of this ScalingGroups.
|
|
598
|
+
r"""Gets the create_time of this ScalingGroups.
|
|
507
599
|
|
|
508
600
|
创建伸缩组时间,遵循UTC时间。
|
|
509
601
|
|
|
@@ -514,18 +606,18 @@ class ScalingGroups:
|
|
|
514
606
|
|
|
515
607
|
@create_time.setter
|
|
516
608
|
def create_time(self, create_time):
|
|
517
|
-
"""Sets the create_time of this ScalingGroups.
|
|
609
|
+
r"""Sets the create_time of this ScalingGroups.
|
|
518
610
|
|
|
519
611
|
创建伸缩组时间,遵循UTC时间。
|
|
520
612
|
|
|
521
613
|
:param create_time: The create_time of this ScalingGroups.
|
|
522
|
-
:type: datetime
|
|
614
|
+
:type create_time: datetime
|
|
523
615
|
"""
|
|
524
616
|
self._create_time = create_time
|
|
525
617
|
|
|
526
618
|
@property
|
|
527
619
|
def vpc_id(self):
|
|
528
|
-
"""Gets the vpc_id of this ScalingGroups.
|
|
620
|
+
r"""Gets the vpc_id of this ScalingGroups.
|
|
529
621
|
|
|
530
622
|
伸缩组所在的VPC ID。
|
|
531
623
|
|
|
@@ -536,18 +628,18 @@ class ScalingGroups:
|
|
|
536
628
|
|
|
537
629
|
@vpc_id.setter
|
|
538
630
|
def vpc_id(self, vpc_id):
|
|
539
|
-
"""Sets the vpc_id of this ScalingGroups.
|
|
631
|
+
r"""Sets the vpc_id of this ScalingGroups.
|
|
540
632
|
|
|
541
633
|
伸缩组所在的VPC ID。
|
|
542
634
|
|
|
543
635
|
:param vpc_id: The vpc_id of this ScalingGroups.
|
|
544
|
-
:type: str
|
|
636
|
+
:type vpc_id: str
|
|
545
637
|
"""
|
|
546
638
|
self._vpc_id = vpc_id
|
|
547
639
|
|
|
548
640
|
@property
|
|
549
641
|
def detail(self):
|
|
550
|
-
"""Gets the detail of this ScalingGroups.
|
|
642
|
+
r"""Gets the detail of this ScalingGroups.
|
|
551
643
|
|
|
552
644
|
伸缩组详情。
|
|
553
645
|
|
|
@@ -558,18 +650,18 @@ class ScalingGroups:
|
|
|
558
650
|
|
|
559
651
|
@detail.setter
|
|
560
652
|
def detail(self, detail):
|
|
561
|
-
"""Sets the detail of this ScalingGroups.
|
|
653
|
+
r"""Sets the detail of this ScalingGroups.
|
|
562
654
|
|
|
563
655
|
伸缩组详情。
|
|
564
656
|
|
|
565
657
|
:param detail: The detail of this ScalingGroups.
|
|
566
|
-
:type: str
|
|
658
|
+
:type detail: str
|
|
567
659
|
"""
|
|
568
660
|
self._detail = detail
|
|
569
661
|
|
|
570
662
|
@property
|
|
571
663
|
def is_scaling(self):
|
|
572
|
-
"""Gets the is_scaling of this ScalingGroups.
|
|
664
|
+
r"""Gets the is_scaling of this ScalingGroups.
|
|
573
665
|
|
|
574
666
|
伸缩组伸缩标志。
|
|
575
667
|
|
|
@@ -580,18 +672,18 @@ class ScalingGroups:
|
|
|
580
672
|
|
|
581
673
|
@is_scaling.setter
|
|
582
674
|
def is_scaling(self, is_scaling):
|
|
583
|
-
"""Sets the is_scaling of this ScalingGroups.
|
|
675
|
+
r"""Sets the is_scaling of this ScalingGroups.
|
|
584
676
|
|
|
585
677
|
伸缩组伸缩标志。
|
|
586
678
|
|
|
587
679
|
:param is_scaling: The is_scaling of this ScalingGroups.
|
|
588
|
-
:type: bool
|
|
680
|
+
:type is_scaling: bool
|
|
589
681
|
"""
|
|
590
682
|
self._is_scaling = is_scaling
|
|
591
683
|
|
|
592
684
|
@property
|
|
593
685
|
def health_periodic_audit_method(self):
|
|
594
|
-
"""Gets the health_periodic_audit_method of this ScalingGroups.
|
|
686
|
+
r"""Gets the health_periodic_audit_method of this ScalingGroups.
|
|
595
687
|
|
|
596
688
|
健康检查方式。
|
|
597
689
|
|
|
@@ -602,18 +694,18 @@ class ScalingGroups:
|
|
|
602
694
|
|
|
603
695
|
@health_periodic_audit_method.setter
|
|
604
696
|
def health_periodic_audit_method(self, health_periodic_audit_method):
|
|
605
|
-
"""Sets the health_periodic_audit_method of this ScalingGroups.
|
|
697
|
+
r"""Sets the health_periodic_audit_method of this ScalingGroups.
|
|
606
698
|
|
|
607
699
|
健康检查方式。
|
|
608
700
|
|
|
609
701
|
:param health_periodic_audit_method: The health_periodic_audit_method of this ScalingGroups.
|
|
610
|
-
:type: str
|
|
702
|
+
:type health_periodic_audit_method: str
|
|
611
703
|
"""
|
|
612
704
|
self._health_periodic_audit_method = health_periodic_audit_method
|
|
613
705
|
|
|
614
706
|
@property
|
|
615
707
|
def health_periodic_audit_time(self):
|
|
616
|
-
"""Gets the health_periodic_audit_time of this ScalingGroups.
|
|
708
|
+
r"""Gets the health_periodic_audit_time of this ScalingGroups.
|
|
617
709
|
|
|
618
710
|
健康检查的间隔时间。
|
|
619
711
|
|
|
@@ -624,18 +716,18 @@ class ScalingGroups:
|
|
|
624
716
|
|
|
625
717
|
@health_periodic_audit_time.setter
|
|
626
718
|
def health_periodic_audit_time(self, health_periodic_audit_time):
|
|
627
|
-
"""Sets the health_periodic_audit_time of this ScalingGroups.
|
|
719
|
+
r"""Sets the health_periodic_audit_time of this ScalingGroups.
|
|
628
720
|
|
|
629
721
|
健康检查的间隔时间。
|
|
630
722
|
|
|
631
723
|
:param health_periodic_audit_time: The health_periodic_audit_time of this ScalingGroups.
|
|
632
|
-
:type: int
|
|
724
|
+
:type health_periodic_audit_time: int
|
|
633
725
|
"""
|
|
634
726
|
self._health_periodic_audit_time = health_periodic_audit_time
|
|
635
727
|
|
|
636
728
|
@property
|
|
637
729
|
def health_periodic_audit_grace_period(self):
|
|
638
|
-
"""Gets the health_periodic_audit_grace_period of this ScalingGroups.
|
|
730
|
+
r"""Gets the health_periodic_audit_grace_period of this ScalingGroups.
|
|
639
731
|
|
|
640
732
|
健康状况检查宽限期。
|
|
641
733
|
|
|
@@ -646,18 +738,18 @@ class ScalingGroups:
|
|
|
646
738
|
|
|
647
739
|
@health_periodic_audit_grace_period.setter
|
|
648
740
|
def health_periodic_audit_grace_period(self, health_periodic_audit_grace_period):
|
|
649
|
-
"""Sets the health_periodic_audit_grace_period of this ScalingGroups.
|
|
741
|
+
r"""Sets the health_periodic_audit_grace_period of this ScalingGroups.
|
|
650
742
|
|
|
651
743
|
健康状况检查宽限期。
|
|
652
744
|
|
|
653
745
|
:param health_periodic_audit_grace_period: The health_periodic_audit_grace_period of this ScalingGroups.
|
|
654
|
-
:type: int
|
|
746
|
+
:type health_periodic_audit_grace_period: int
|
|
655
747
|
"""
|
|
656
748
|
self._health_periodic_audit_grace_period = health_periodic_audit_grace_period
|
|
657
749
|
|
|
658
750
|
@property
|
|
659
751
|
def instance_terminate_policy(self):
|
|
660
|
-
"""Gets the instance_terminate_policy of this ScalingGroups.
|
|
752
|
+
r"""Gets the instance_terminate_policy of this ScalingGroups.
|
|
661
753
|
|
|
662
754
|
移除策略。
|
|
663
755
|
|
|
@@ -668,20 +760,20 @@ class ScalingGroups:
|
|
|
668
760
|
|
|
669
761
|
@instance_terminate_policy.setter
|
|
670
762
|
def instance_terminate_policy(self, instance_terminate_policy):
|
|
671
|
-
"""Sets the instance_terminate_policy of this ScalingGroups.
|
|
763
|
+
r"""Sets the instance_terminate_policy of this ScalingGroups.
|
|
672
764
|
|
|
673
765
|
移除策略。
|
|
674
766
|
|
|
675
767
|
:param instance_terminate_policy: The instance_terminate_policy of this ScalingGroups.
|
|
676
|
-
:type: str
|
|
768
|
+
:type instance_terminate_policy: str
|
|
677
769
|
"""
|
|
678
770
|
self._instance_terminate_policy = instance_terminate_policy
|
|
679
771
|
|
|
680
772
|
@property
|
|
681
773
|
def notifications(self):
|
|
682
|
-
"""Gets the notifications of this ScalingGroups.
|
|
774
|
+
r"""Gets the notifications of this ScalingGroups.
|
|
683
775
|
|
|
684
|
-
通知方式:EMAIL
|
|
776
|
+
通知方式:EMAIL为发送邮件通知。该通知方式已经被废除,建议给弹性伸缩组配置通知功能。请参考[通知](https://support.huaweicloud.com/api-as/as_06_0800.html)。
|
|
685
777
|
|
|
686
778
|
:return: The notifications of this ScalingGroups.
|
|
687
779
|
:rtype: list[str]
|
|
@@ -690,18 +782,18 @@ class ScalingGroups:
|
|
|
690
782
|
|
|
691
783
|
@notifications.setter
|
|
692
784
|
def notifications(self, notifications):
|
|
693
|
-
"""Sets the notifications of this ScalingGroups.
|
|
785
|
+
r"""Sets the notifications of this ScalingGroups.
|
|
694
786
|
|
|
695
|
-
通知方式:EMAIL
|
|
787
|
+
通知方式:EMAIL为发送邮件通知。该通知方式已经被废除,建议给弹性伸缩组配置通知功能。请参考[通知](https://support.huaweicloud.com/api-as/as_06_0800.html)。
|
|
696
788
|
|
|
697
789
|
:param notifications: The notifications of this ScalingGroups.
|
|
698
|
-
:type: list[str]
|
|
790
|
+
:type notifications: list[str]
|
|
699
791
|
"""
|
|
700
792
|
self._notifications = notifications
|
|
701
793
|
|
|
702
794
|
@property
|
|
703
795
|
def delete_publicip(self):
|
|
704
|
-
"""Gets the delete_publicip of this ScalingGroups.
|
|
796
|
+
r"""Gets the delete_publicip of this ScalingGroups.
|
|
705
797
|
|
|
706
798
|
删除云服务器是否删除云服务器绑定的弹性IP。
|
|
707
799
|
|
|
@@ -712,18 +804,40 @@ class ScalingGroups:
|
|
|
712
804
|
|
|
713
805
|
@delete_publicip.setter
|
|
714
806
|
def delete_publicip(self, delete_publicip):
|
|
715
|
-
"""Sets the delete_publicip of this ScalingGroups.
|
|
807
|
+
r"""Sets the delete_publicip of this ScalingGroups.
|
|
716
808
|
|
|
717
809
|
删除云服务器是否删除云服务器绑定的弹性IP。
|
|
718
810
|
|
|
719
811
|
:param delete_publicip: The delete_publicip of this ScalingGroups.
|
|
720
|
-
:type: bool
|
|
812
|
+
:type delete_publicip: bool
|
|
721
813
|
"""
|
|
722
814
|
self._delete_publicip = delete_publicip
|
|
723
815
|
|
|
816
|
+
@property
|
|
817
|
+
def delete_volume(self):
|
|
818
|
+
r"""Gets the delete_volume of this ScalingGroups.
|
|
819
|
+
|
|
820
|
+
删除云服务器是否删除云服务器绑定的数据盘
|
|
821
|
+
|
|
822
|
+
:return: The delete_volume of this ScalingGroups.
|
|
823
|
+
:rtype: bool
|
|
824
|
+
"""
|
|
825
|
+
return self._delete_volume
|
|
826
|
+
|
|
827
|
+
@delete_volume.setter
|
|
828
|
+
def delete_volume(self, delete_volume):
|
|
829
|
+
r"""Sets the delete_volume of this ScalingGroups.
|
|
830
|
+
|
|
831
|
+
删除云服务器是否删除云服务器绑定的数据盘
|
|
832
|
+
|
|
833
|
+
:param delete_volume: The delete_volume of this ScalingGroups.
|
|
834
|
+
:type delete_volume: bool
|
|
835
|
+
"""
|
|
836
|
+
self._delete_volume = delete_volume
|
|
837
|
+
|
|
724
838
|
@property
|
|
725
839
|
def cloud_location_id(self):
|
|
726
|
-
"""Gets the cloud_location_id of this ScalingGroups.
|
|
840
|
+
r"""Gets the cloud_location_id of this ScalingGroups.
|
|
727
841
|
|
|
728
842
|
该参数为预留字段
|
|
729
843
|
|
|
@@ -734,18 +848,18 @@ class ScalingGroups:
|
|
|
734
848
|
|
|
735
849
|
@cloud_location_id.setter
|
|
736
850
|
def cloud_location_id(self, cloud_location_id):
|
|
737
|
-
"""Sets the cloud_location_id of this ScalingGroups.
|
|
851
|
+
r"""Sets the cloud_location_id of this ScalingGroups.
|
|
738
852
|
|
|
739
853
|
该参数为预留字段
|
|
740
854
|
|
|
741
855
|
:param cloud_location_id: The cloud_location_id of this ScalingGroups.
|
|
742
|
-
:type: str
|
|
856
|
+
:type cloud_location_id: str
|
|
743
857
|
"""
|
|
744
858
|
self._cloud_location_id = cloud_location_id
|
|
745
859
|
|
|
746
860
|
@property
|
|
747
861
|
def enterprise_project_id(self):
|
|
748
|
-
"""Gets the enterprise_project_id of this ScalingGroups.
|
|
862
|
+
r"""Gets the enterprise_project_id of this ScalingGroups.
|
|
749
863
|
|
|
750
864
|
企业项目ID
|
|
751
865
|
|
|
@@ -756,20 +870,129 @@ class ScalingGroups:
|
|
|
756
870
|
|
|
757
871
|
@enterprise_project_id.setter
|
|
758
872
|
def enterprise_project_id(self, enterprise_project_id):
|
|
759
|
-
"""Sets the enterprise_project_id of this ScalingGroups.
|
|
873
|
+
r"""Sets the enterprise_project_id of this ScalingGroups.
|
|
760
874
|
|
|
761
875
|
企业项目ID
|
|
762
876
|
|
|
763
877
|
:param enterprise_project_id: The enterprise_project_id of this ScalingGroups.
|
|
764
|
-
:type: str
|
|
878
|
+
:type enterprise_project_id: str
|
|
765
879
|
"""
|
|
766
880
|
self._enterprise_project_id = enterprise_project_id
|
|
767
881
|
|
|
882
|
+
@property
|
|
883
|
+
def activity_type(self):
|
|
884
|
+
r"""Gets the activity_type of this ScalingGroups.
|
|
885
|
+
|
|
886
|
+
伸缩组活动类型
|
|
887
|
+
|
|
888
|
+
:return: The activity_type of this ScalingGroups.
|
|
889
|
+
:rtype: str
|
|
890
|
+
"""
|
|
891
|
+
return self._activity_type
|
|
892
|
+
|
|
893
|
+
@activity_type.setter
|
|
894
|
+
def activity_type(self, activity_type):
|
|
895
|
+
r"""Sets the activity_type of this ScalingGroups.
|
|
896
|
+
|
|
897
|
+
伸缩组活动类型
|
|
898
|
+
|
|
899
|
+
:param activity_type: The activity_type of this ScalingGroups.
|
|
900
|
+
:type activity_type: str
|
|
901
|
+
"""
|
|
902
|
+
self._activity_type = activity_type
|
|
903
|
+
|
|
904
|
+
@property
|
|
905
|
+
def multi_az_priority_policy(self):
|
|
906
|
+
r"""Gets the multi_az_priority_policy of this ScalingGroups.
|
|
907
|
+
|
|
908
|
+
伸缩组扩缩容时目标AZ选择的优先级策略
|
|
909
|
+
|
|
910
|
+
:return: The multi_az_priority_policy of this ScalingGroups.
|
|
911
|
+
:rtype: str
|
|
912
|
+
"""
|
|
913
|
+
return self._multi_az_priority_policy
|
|
914
|
+
|
|
915
|
+
@multi_az_priority_policy.setter
|
|
916
|
+
def multi_az_priority_policy(self, multi_az_priority_policy):
|
|
917
|
+
r"""Sets the multi_az_priority_policy of this ScalingGroups.
|
|
918
|
+
|
|
919
|
+
伸缩组扩缩容时目标AZ选择的优先级策略
|
|
920
|
+
|
|
921
|
+
:param multi_az_priority_policy: The multi_az_priority_policy of this ScalingGroups.
|
|
922
|
+
:type multi_az_priority_policy: str
|
|
923
|
+
"""
|
|
924
|
+
self._multi_az_priority_policy = multi_az_priority_policy
|
|
925
|
+
|
|
926
|
+
@property
|
|
927
|
+
def iam_agency_name(self):
|
|
928
|
+
r"""Gets the iam_agency_name of this ScalingGroups.
|
|
929
|
+
|
|
930
|
+
委托的名称委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
|
|
931
|
+
|
|
932
|
+
:return: The iam_agency_name of this ScalingGroups.
|
|
933
|
+
:rtype: str
|
|
934
|
+
"""
|
|
935
|
+
return self._iam_agency_name
|
|
936
|
+
|
|
937
|
+
@iam_agency_name.setter
|
|
938
|
+
def iam_agency_name(self, iam_agency_name):
|
|
939
|
+
r"""Sets the iam_agency_name of this ScalingGroups.
|
|
940
|
+
|
|
941
|
+
委托的名称委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
|
|
942
|
+
|
|
943
|
+
:param iam_agency_name: The iam_agency_name of this ScalingGroups.
|
|
944
|
+
:type iam_agency_name: str
|
|
945
|
+
"""
|
|
946
|
+
self._iam_agency_name = iam_agency_name
|
|
947
|
+
|
|
948
|
+
@property
|
|
949
|
+
def description(self):
|
|
950
|
+
r"""Gets the description of this ScalingGroups.
|
|
951
|
+
|
|
952
|
+
伸缩组描述信息
|
|
953
|
+
|
|
954
|
+
:return: The description of this ScalingGroups.
|
|
955
|
+
:rtype: str
|
|
956
|
+
"""
|
|
957
|
+
return self._description
|
|
958
|
+
|
|
959
|
+
@description.setter
|
|
960
|
+
def description(self, description):
|
|
961
|
+
r"""Sets the description of this ScalingGroups.
|
|
962
|
+
|
|
963
|
+
伸缩组描述信息
|
|
964
|
+
|
|
965
|
+
:param description: The description of this ScalingGroups.
|
|
966
|
+
:type description: str
|
|
967
|
+
"""
|
|
968
|
+
self._description = description
|
|
969
|
+
|
|
970
|
+
@property
|
|
971
|
+
def tags(self):
|
|
972
|
+
r"""Gets the tags of this ScalingGroups.
|
|
973
|
+
|
|
974
|
+
添加到伸缩组的标签。
|
|
975
|
+
|
|
976
|
+
:return: The tags of this ScalingGroups.
|
|
977
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.TagsSingleValue`]
|
|
978
|
+
"""
|
|
979
|
+
return self._tags
|
|
980
|
+
|
|
981
|
+
@tags.setter
|
|
982
|
+
def tags(self, tags):
|
|
983
|
+
r"""Sets the tags of this ScalingGroups.
|
|
984
|
+
|
|
985
|
+
添加到伸缩组的标签。
|
|
986
|
+
|
|
987
|
+
:param tags: The tags of this ScalingGroups.
|
|
988
|
+
:type tags: list[:class:`huaweicloudsdkas.v1.TagsSingleValue`]
|
|
989
|
+
"""
|
|
990
|
+
self._tags = tags
|
|
991
|
+
|
|
768
992
|
def to_dict(self):
|
|
769
|
-
"""Returns the model properties as a dict"""
|
|
770
993
|
result = {}
|
|
771
994
|
|
|
772
|
-
for attr, _ in
|
|
995
|
+
for attr, _ in self.openapi_types.items():
|
|
773
996
|
value = getattr(self, attr)
|
|
774
997
|
if isinstance(value, list):
|
|
775
998
|
result[attr] = list(map(
|
|
@@ -794,10 +1017,11 @@ class ScalingGroups:
|
|
|
794
1017
|
|
|
795
1018
|
def to_str(self):
|
|
796
1019
|
"""Returns the string representation of the model"""
|
|
797
|
-
|
|
1020
|
+
import simplejson as json
|
|
1021
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
798
1022
|
|
|
799
1023
|
def __repr__(self):
|
|
800
|
-
"""For `print`
|
|
1024
|
+
"""For `print`"""
|
|
801
1025
|
return self.to_str()
|
|
802
1026
|
|
|
803
1027
|
def __eq__(self, other):
|