huaweicloudsdkas 3.0.43rc0__py3-none-any.whl → 3.1.161__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of huaweicloudsdkas might be problematic. Click here for more details.
- huaweicloudsdkas/v1/__init__.py +100 -40
- huaweicloudsdkas/v1/as_async_client.py +2698 -1537
- huaweicloudsdkas/v1/as_client.py +2696 -1536
- huaweicloudsdkas/v1/model/__init__.py +99 -38
- huaweicloudsdkas/v1/model/all_quotas.py +19 -14
- huaweicloudsdkas/v1/model/all_resources.py +65 -25
- huaweicloudsdkas/v1/model/allowed_address_pair.py +115 -0
- huaweicloudsdkas/v1/model/attach_callback_instance_life_cycle_hook_request.py +139 -0
- huaweicloudsdkas/v1/model/attach_callback_instance_life_cycle_hook_response.py +85 -0
- huaweicloudsdkas/v1/model/bandwidth_info.py +201 -0
- huaweicloudsdkas/v1/model/{bandwidth.py → bandwidth_result.py} +55 -42
- huaweicloudsdkas/v1/model/{update_scaling_group_instance_request_body.py → batch_add_instances_option.py} +43 -32
- huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_request.py → batch_add_scaling_instances_request.py} +33 -26
- huaweicloudsdkas/v1/model/batch_add_scaling_instances_response.py +85 -0
- huaweicloudsdkas/v1/model/{batch_delete_scaling_configs_request_body.py → batch_delete_scaling_config_option.py} +23 -19
- huaweicloudsdkas/v1/model/batch_delete_scaling_configs_request.py +20 -17
- huaweicloudsdkas/v1/model/batch_delete_scaling_configs_response.py +14 -10
- huaweicloudsdkas/v1/model/batch_delete_scaling_policies_option.py +200 -0
- huaweicloudsdkas/v1/model/batch_delete_scaling_policies_request.py +111 -0
- huaweicloudsdkas/v1/model/{update_scaling_group_instance_response.py → batch_delete_scaling_policies_response.py} +16 -12
- huaweicloudsdkas/v1/model/batch_enter_standby_instances_option.py +200 -0
- huaweicloudsdkas/v1/model/batch_exit_stand_by_instances_option.py +200 -0
- huaweicloudsdkas/v1/model/{execute_scaling_policies_request_body.py → batch_pause_scaling_policies_option.py} +68 -30
- huaweicloudsdkas/v1/model/{execute_scaling_policies_request.py → batch_pause_scaling_policies_request.py} +24 -21
- huaweicloudsdkas/v1/model/batch_pause_scaling_policies_response.py +85 -0
- huaweicloudsdkas/v1/model/batch_protect_instances_option.py +200 -0
- huaweicloudsdkas/v1/model/batch_protect_scaling_instances_request.py +139 -0
- huaweicloudsdkas/v1/model/batch_protect_scaling_instances_response.py +85 -0
- huaweicloudsdkas/v1/model/batch_remove_instances_option.py +200 -0
- huaweicloudsdkas/v1/model/batch_remove_scaling_instances_request.py +139 -0
- huaweicloudsdkas/v1/model/batch_remove_scaling_instances_response.py +85 -0
- huaweicloudsdkas/v1/model/batch_resume_scaling_policies_option.py +200 -0
- huaweicloudsdkas/v1/model/batch_resume_scaling_policies_request.py +111 -0
- huaweicloudsdkas/v1/model/batch_resume_scaling_policies_response.py +85 -0
- huaweicloudsdkas/v1/model/batch_set_scaling_instances_standby_request.py +139 -0
- huaweicloudsdkas/v1/model/batch_set_scaling_instances_standby_response.py +85 -0
- huaweicloudsdkas/v1/model/batch_unprotect_instances_option.py +200 -0
- huaweicloudsdkas/v1/model/batch_unprotect_scaling_instances_request.py +139 -0
- huaweicloudsdkas/v1/model/batch_unprotect_scaling_instances_response.py +85 -0
- huaweicloudsdkas/v1/model/batch_unset_scaling_instances_stantby_request.py +139 -0
- huaweicloudsdkas/v1/model/batch_unset_scaling_instances_stantby_response.py +85 -0
- huaweicloudsdkas/v1/model/{complete_lifecycle_action_request_body.py → callback_life_cycle_hook_option.py} +43 -32
- huaweicloudsdkas/v1/model/create_group_scheduled_task_request.py +139 -0
- huaweicloudsdkas/v1/model/create_group_scheduled_task_response.py +116 -0
- huaweicloudsdkas/v1/model/{create_life_cycle_hook_request_body.py → create_life_cycle_hook_option.py} +59 -44
- huaweicloudsdkas/v1/model/create_lify_cycle_hook_request.py +27 -20
- huaweicloudsdkas/v1/model/create_lify_cycle_hook_response.py +56 -36
- huaweicloudsdkas/v1/model/{create_notification_request_body.py → create_notification_option.py} +31 -26
- huaweicloudsdkas/v1/model/create_scaling_config_option.py +169 -0
- huaweicloudsdkas/v1/model/create_scaling_config_request.py +20 -17
- huaweicloudsdkas/v1/model/create_scaling_config_response.py +19 -13
- huaweicloudsdkas/v1/model/{create_scaling_group_request_body.py → create_scaling_group_option.py} +289 -131
- huaweicloudsdkas/v1/model/create_scaling_group_request.py +20 -17
- huaweicloudsdkas/v1/model/create_scaling_group_response.py +19 -13
- huaweicloudsdkas/v1/model/create_scaling_notification_request.py +27 -20
- huaweicloudsdkas/v1/model/create_scaling_notification_response.py +29 -19
- huaweicloudsdkas/v1/model/{create_scaling_policy_request_body.py → create_scaling_policy_option.py} +69 -56
- huaweicloudsdkas/v1/model/create_scaling_policy_request.py +20 -17
- huaweicloudsdkas/v1/model/create_scaling_policy_response.py +19 -13
- huaweicloudsdkas/v1/model/{create_scaling_policy_v2_request_body.py → create_scaling_policy_v2_option.py} +132 -63
- huaweicloudsdkas/v1/model/{create_scaling_tags_request.py → create_scaling_tag_info_request.py} +42 -31
- huaweicloudsdkas/v1/model/create_scaling_tag_info_response.py +85 -0
- huaweicloudsdkas/v1/model/create_scaling_v2_policy_request.py +20 -17
- huaweicloudsdkas/v1/model/create_scaling_v2_policy_response.py +19 -13
- huaweicloudsdkas/v1/model/create_scheduled_task_option.py +162 -0
- huaweicloudsdkas/v1/model/{delete_scaling_tags_request_body.py → create_tags_option.py} +34 -29
- huaweicloudsdkas/v1/model/delete_group_scheduled_task_request.py +142 -0
- huaweicloudsdkas/v1/model/delete_group_scheduled_task_response.py +85 -0
- huaweicloudsdkas/v1/model/delete_lifecycle_hook_request.py +27 -16
- huaweicloudsdkas/v1/model/delete_lifecycle_hook_response.py +14 -10
- huaweicloudsdkas/v1/model/delete_scaling_config_request.py +20 -13
- huaweicloudsdkas/v1/model/delete_scaling_config_response.py +14 -10
- huaweicloudsdkas/v1/model/delete_scaling_group_request.py +27 -16
- huaweicloudsdkas/v1/model/delete_scaling_group_response.py +14 -10
- huaweicloudsdkas/v1/model/delete_scaling_instance_request.py +27 -16
- huaweicloudsdkas/v1/model/delete_scaling_instance_response.py +14 -10
- huaweicloudsdkas/v1/model/delete_scaling_notification_request.py +27 -16
- huaweicloudsdkas/v1/model/delete_scaling_notification_response.py +14 -10
- huaweicloudsdkas/v1/model/delete_scaling_policy_request.py +20 -13
- huaweicloudsdkas/v1/model/delete_scaling_policy_response.py +14 -10
- huaweicloudsdkas/v1/model/{delete_scaling_tags_request.py → delete_scaling_tag_info_request.py} +42 -31
- huaweicloudsdkas/v1/model/delete_scaling_tag_info_response.py +85 -0
- huaweicloudsdkas/v1/model/delete_tags_option.py +142 -0
- huaweicloudsdkas/v1/model/disk_info.py +340 -0
- huaweicloudsdkas/v1/model/disk_result.py +343 -0
- huaweicloudsdkas/v1/model/{eip.py → eip_info.py} +31 -26
- huaweicloudsdkas/v1/model/eip_meta_data.py +173 -0
- huaweicloudsdkas/v1/model/eip_result.py +140 -0
- huaweicloudsdkas/v1/model/{create_scaling_tags_request_body.py → execute_scaling_policy_option.py} +26 -49
- huaweicloudsdkas/v1/model/execute_scaling_policy_request.py +27 -20
- huaweicloudsdkas/v1/model/execute_scaling_policy_response.py +14 -10
- huaweicloudsdkas/v1/model/instance_config.py +102 -73
- huaweicloudsdkas/v1/model/instance_config_result.py +189 -71
- huaweicloudsdkas/v1/model/instance_hanging_infos.py +50 -33
- huaweicloudsdkas/v1/model/integer_range.py +173 -0
- huaweicloudsdkas/v1/model/interval_alarm_actions_v2.py +252 -0
- huaweicloudsdkas/v1/model/ipv6_bandwidth.py +18 -13
- huaweicloudsdkas/v1/model/job_records.py +55 -36
- huaweicloudsdkas/v1/model/lbaas_listener.py +33 -22
- huaweicloudsdkas/v1/model/lbaas_listeners.py +63 -26
- huaweicloudsdkas/v1/model/lbaas_listeners_result.py +77 -37
- huaweicloudsdkas/v1/model/lifecycle_hook_list.py +55 -36
- huaweicloudsdkas/v1/model/links.py +144 -0
- huaweicloudsdkas/v1/model/list_all_scaling_v2_policies_request.py +115 -43
- huaweicloudsdkas/v1/model/list_all_scaling_v2_policies_response.py +35 -23
- huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_response.py → list_api_versions_request.py} +16 -13
- huaweicloudsdkas/v1/model/list_api_versions_response.py +116 -0
- huaweicloudsdkas/v1/model/list_group_scheduled_tasks_request.py +172 -0
- huaweicloudsdkas/v1/model/list_group_scheduled_tasks_response.py +141 -0
- huaweicloudsdkas/v1/model/list_hook_instances_request.py +27 -16
- huaweicloudsdkas/v1/model/list_hook_instances_response.py +20 -14
- huaweicloudsdkas/v1/model/list_life_cycle_hooks_request.py +20 -13
- huaweicloudsdkas/v1/model/list_life_cycle_hooks_response.py +20 -14
- huaweicloudsdkas/v1/model/list_resource_instances_request.py +27 -20
- huaweicloudsdkas/v1/model/list_resource_instances_response.py +32 -22
- huaweicloudsdkas/v1/model/list_scaling_activity_logs_request.py +52 -29
- huaweicloudsdkas/v1/model/list_scaling_activity_logs_response.py +35 -23
- huaweicloudsdkas/v1/model/list_scaling_activity_v2_logs_request.py +96 -36
- huaweicloudsdkas/v1/model/list_scaling_activity_v2_logs_response.py +35 -23
- huaweicloudsdkas/v1/model/list_scaling_configs_request.py +41 -22
- huaweicloudsdkas/v1/model/list_scaling_configs_response.py +35 -23
- huaweicloudsdkas/v1/model/list_scaling_groups_request.py +80 -28
- huaweicloudsdkas/v1/model/list_scaling_groups_response.py +35 -23
- huaweicloudsdkas/v1/model/list_scaling_instances_request.py +55 -28
- huaweicloudsdkas/v1/model/list_scaling_instances_response.py +35 -23
- huaweicloudsdkas/v1/model/list_scaling_notifications_request.py +20 -13
- huaweicloudsdkas/v1/model/list_scaling_notifications_response.py +20 -14
- huaweicloudsdkas/v1/model/list_scaling_policies_request.py +55 -28
- huaweicloudsdkas/v1/model/list_scaling_policies_response.py +36 -24
- huaweicloudsdkas/v1/model/list_scaling_policy_execute_logs_request.py +80 -41
- huaweicloudsdkas/v1/model/list_scaling_policy_execute_logs_response.py +35 -23
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_resource_id_request.py +27 -16
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_resource_id_response.py +26 -18
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_tenant_id_request.py +20 -13
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_tenant_id_response.py +20 -14
- huaweicloudsdkas/v1/model/list_scaling_v2_policies_request.py +55 -28
- huaweicloudsdkas/v1/model/list_scaling_v2_policies_response.py +35 -23
- huaweicloudsdkas/v1/model/matches.py +25 -20
- huaweicloudsdkas/v1/model/meta_data.py +62 -28
- huaweicloudsdkas/v1/model/modify_lb.py +34 -25
- huaweicloudsdkas/v1/model/networks.py +63 -27
- huaweicloudsdkas/v1/model/networks_result.py +198 -0
- huaweicloudsdkas/v1/model/{mete_data.py → page_info.py} +35 -30
- huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_request_body.py → pause_scaling_group_option.py} +23 -19
- huaweicloudsdkas/v1/model/{update_scaling_group_instance_request.py → pause_scaling_group_request.py} +33 -26
- huaweicloudsdkas/v1/model/{delete_scaling_tags_response.py → pause_scaling_group_response.py} +16 -12
- huaweicloudsdkas/v1/model/{execute_scaling_policy_request_body.py → pause_scaling_policy_option.py} +23 -19
- huaweicloudsdkas/v1/model/pause_scaling_policy_request.py +139 -0
- huaweicloudsdkas/v1/model/{complete_lifecycle_action_response.py → pause_scaling_policy_response.py} +16 -12
- huaweicloudsdkas/v1/model/{personality.py → personality_info.py} +29 -22
- huaweicloudsdkas/v1/model/personality_result.py +144 -0
- huaweicloudsdkas/v1/model/policy_instance_quotas.py +19 -14
- huaweicloudsdkas/v1/model/policy_instance_resources.py +65 -25
- huaweicloudsdkas/v1/model/public_ip.py +20 -17
- huaweicloudsdkas/v1/model/publicip_result.py +111 -0
- huaweicloudsdkas/v1/model/{show_tags_request_body.py → query_tags_option.py} +94 -73
- huaweicloudsdkas/v1/model/resource_tags.py +23 -16
- huaweicloudsdkas/v1/model/resources.py +34 -23
- huaweicloudsdkas/v1/model/resume_scaling_group_option.py +114 -0
- huaweicloudsdkas/v1/model/{complete_lifecycle_action_request.py → resume_scaling_group_request.py} +33 -26
- huaweicloudsdkas/v1/model/{create_scaling_tags_response.py → resume_scaling_group_response.py} +16 -12
- huaweicloudsdkas/v1/model/resume_scaling_policy_option.py +114 -0
- huaweicloudsdkas/v1/model/resume_scaling_policy_request.py +139 -0
- huaweicloudsdkas/v1/model/resume_scaling_policy_response.py +85 -0
- huaweicloudsdkas/v1/model/scaling_activity_log_list.py +70 -45
- huaweicloudsdkas/v1/model/scaling_activity_log_v2.py +141 -75
- huaweicloudsdkas/v1/model/scaling_all_policy_detail.py +133 -58
- huaweicloudsdkas/v1/model/scaling_configuration.py +71 -31
- huaweicloudsdkas/v1/model/scaling_group_instance.py +65 -42
- huaweicloudsdkas/v1/model/scaling_groups.py +331 -100
- huaweicloudsdkas/v1/model/scaling_instance.py +65 -25
- huaweicloudsdkas/v1/model/scaling_policies_v2.py +152 -52
- huaweicloudsdkas/v1/model/{scaling_policy_action.py → scaling_policy_action_v1.py} +40 -31
- huaweicloudsdkas/v1/model/scaling_policy_action_v2.py +35 -24
- huaweicloudsdkas/v1/model/scaling_policy_execute_log_list.py +108 -77
- huaweicloudsdkas/v1/model/scaling_policy_v2_meta_data.py +173 -0
- huaweicloudsdkas/v1/model/{scaling_policy_detail.py → scaling_v1_policy_detail.py} +113 -67
- huaweicloudsdkas/v1/model/scaling_v2_policy_detail.py +133 -58
- huaweicloudsdkas/v1/model/scheduled_policy.py +41 -29
- huaweicloudsdkas/v1/model/scheduled_task_detail.py +339 -0
- huaweicloudsdkas/v1/model/scheduled_task_policy.py +230 -0
- huaweicloudsdkas/v1/model/security_group.py +114 -0
- huaweicloudsdkas/v1/model/security_groups.py +20 -15
- huaweicloudsdkas/v1/model/security_groups_result.py +18 -13
- huaweicloudsdkas/v1/model/show_api_version_request.py +114 -0
- huaweicloudsdkas/v1/model/show_api_version_response.py +112 -0
- huaweicloudsdkas/v1/model/show_life_cycle_hook_request.py +27 -16
- huaweicloudsdkas/v1/model/show_life_cycle_hook_response.py +56 -36
- huaweicloudsdkas/v1/model/show_policy_and_instance_quota_request.py +20 -13
- huaweicloudsdkas/v1/model/show_policy_and_instance_quota_response.py +33 -29
- huaweicloudsdkas/v1/model/show_resource_quota_request.py +13 -10
- huaweicloudsdkas/v1/model/show_resource_quota_response.py +20 -16
- huaweicloudsdkas/v1/model/show_scaling_config_request.py +20 -13
- huaweicloudsdkas/v1/model/show_scaling_config_response.py +20 -16
- huaweicloudsdkas/v1/model/show_scaling_group_request.py +20 -13
- huaweicloudsdkas/v1/model/show_scaling_group_response.py +20 -16
- huaweicloudsdkas/v1/model/show_scaling_policy_request.py +20 -13
- huaweicloudsdkas/v1/model/show_scaling_policy_response.py +21 -17
- huaweicloudsdkas/v1/model/show_scaling_v2_policy_request.py +20 -13
- huaweicloudsdkas/v1/model/show_scaling_v2_policy_response.py +20 -16
- huaweicloudsdkas/v1/model/tags_multi_value.py +29 -24
- huaweicloudsdkas/v1/model/tags_single_value.py +28 -22
- huaweicloudsdkas/v1/model/topics.py +28 -19
- huaweicloudsdkas/v1/model/update_group_scheduled_task_request.py +167 -0
- huaweicloudsdkas/v1/model/update_group_scheduled_task_response.py +85 -0
- huaweicloudsdkas/v1/model/{update_life_cycle_hook_request_body.py → update_life_cycle_hook_option.py} +52 -39
- huaweicloudsdkas/v1/model/update_life_cycle_hook_request.py +34 -23
- huaweicloudsdkas/v1/model/update_life_cycle_hook_response.py +56 -36
- huaweicloudsdkas/v1/model/{update_scaling_group_request_body.py → update_scaling_group_option.py} +266 -111
- huaweicloudsdkas/v1/model/update_scaling_group_request.py +27 -20
- huaweicloudsdkas/v1/model/update_scaling_group_response.py +19 -13
- huaweicloudsdkas/v1/model/{update_scaling_policy_request_body.py → update_scaling_policy_option.py} +62 -51
- huaweicloudsdkas/v1/model/update_scaling_policy_request.py +27 -20
- huaweicloudsdkas/v1/model/update_scaling_policy_response.py +19 -13
- huaweicloudsdkas/v1/model/{update_scaling_v2_policy_request_body.py → update_scaling_v2_policy_option.py} +130 -61
- huaweicloudsdkas/v1/model/update_scaling_v2_policy_request.py +27 -20
- huaweicloudsdkas/v1/model/update_scaling_v2_policy_response.py +19 -13
- huaweicloudsdkas/v1/model/update_scheduled_task_option.py +165 -0
- huaweicloudsdkas/v1/model/version_info.py +260 -0
- huaweicloudsdkas/v1/model/vm_meta_data.py +115 -0
- huaweicloudsdkas/v1/region/as_region.py +109 -38
- {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.161.dist-info}/METADATA +9 -9
- huaweicloudsdkas-3.1.161.dist-info/RECORD +228 -0
- {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.161.dist-info}/WHEEL +1 -1
- huaweicloudsdkas/v1/model/create_scaling_config_request_body.py +0 -133
- huaweicloudsdkas/v1/model/disk.py +0 -242
- huaweicloudsdkas/v1/model/execute_scaling_policies_response.py +0 -81
- huaweicloudsdkas-3.0.43rc0.dist-info/RECORD +0 -167
- {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.161.dist-info}/LICENSE +0 -0
- {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.161.dist-info}/top_level.txt +0 -0
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
3
|
import six
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
6
|
|
|
11
7
|
|
|
12
8
|
class ListScalingConfigsRequest:
|
|
13
9
|
|
|
14
|
-
|
|
15
10
|
"""
|
|
16
11
|
Attributes:
|
|
17
12
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +14,6 @@ class ListScalingConfigsRequest:
|
|
|
19
14
|
attribute_map (dict): The key is attribute name
|
|
20
15
|
and the value is json key in definition.
|
|
21
16
|
"""
|
|
22
|
-
|
|
23
17
|
sensitive_list = []
|
|
24
18
|
|
|
25
19
|
openapi_types = {
|
|
@@ -37,7 +31,19 @@ class ListScalingConfigsRequest:
|
|
|
37
31
|
}
|
|
38
32
|
|
|
39
33
|
def __init__(self, scaling_configuration_name=None, image_id=None, start_number=None, limit=None):
|
|
40
|
-
"""ListScalingConfigsRequest
|
|
34
|
+
r"""ListScalingConfigsRequest
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param scaling_configuration_name: 伸缩配置名称。
|
|
39
|
+
:type scaling_configuration_name: str
|
|
40
|
+
:param image_id: 镜像ID,同imageRef。
|
|
41
|
+
:type image_id: str
|
|
42
|
+
:param start_number: 查询的起始行号,默认为0。
|
|
43
|
+
:type start_number: int
|
|
44
|
+
:param limit: 查询的记录条数,默认为20。
|
|
45
|
+
:type limit: int
|
|
46
|
+
"""
|
|
41
47
|
|
|
42
48
|
|
|
43
49
|
|
|
@@ -58,8 +64,9 @@ class ListScalingConfigsRequest:
|
|
|
58
64
|
|
|
59
65
|
@property
|
|
60
66
|
def scaling_configuration_name(self):
|
|
61
|
-
"""Gets the scaling_configuration_name of this ListScalingConfigsRequest.
|
|
67
|
+
r"""Gets the scaling_configuration_name of this ListScalingConfigsRequest.
|
|
62
68
|
|
|
69
|
+
伸缩配置名称。
|
|
63
70
|
|
|
64
71
|
:return: The scaling_configuration_name of this ListScalingConfigsRequest.
|
|
65
72
|
:rtype: str
|
|
@@ -68,18 +75,20 @@ class ListScalingConfigsRequest:
|
|
|
68
75
|
|
|
69
76
|
@scaling_configuration_name.setter
|
|
70
77
|
def scaling_configuration_name(self, scaling_configuration_name):
|
|
71
|
-
"""Sets the scaling_configuration_name of this ListScalingConfigsRequest.
|
|
78
|
+
r"""Sets the scaling_configuration_name of this ListScalingConfigsRequest.
|
|
72
79
|
|
|
80
|
+
伸缩配置名称。
|
|
73
81
|
|
|
74
82
|
:param scaling_configuration_name: The scaling_configuration_name of this ListScalingConfigsRequest.
|
|
75
|
-
:type: str
|
|
83
|
+
:type scaling_configuration_name: str
|
|
76
84
|
"""
|
|
77
85
|
self._scaling_configuration_name = scaling_configuration_name
|
|
78
86
|
|
|
79
87
|
@property
|
|
80
88
|
def image_id(self):
|
|
81
|
-
"""Gets the image_id of this ListScalingConfigsRequest.
|
|
89
|
+
r"""Gets the image_id of this ListScalingConfigsRequest.
|
|
82
90
|
|
|
91
|
+
镜像ID,同imageRef。
|
|
83
92
|
|
|
84
93
|
:return: The image_id of this ListScalingConfigsRequest.
|
|
85
94
|
:rtype: str
|
|
@@ -88,18 +97,20 @@ class ListScalingConfigsRequest:
|
|
|
88
97
|
|
|
89
98
|
@image_id.setter
|
|
90
99
|
def image_id(self, image_id):
|
|
91
|
-
"""Sets the image_id of this ListScalingConfigsRequest.
|
|
100
|
+
r"""Sets the image_id of this ListScalingConfigsRequest.
|
|
92
101
|
|
|
102
|
+
镜像ID,同imageRef。
|
|
93
103
|
|
|
94
104
|
:param image_id: The image_id of this ListScalingConfigsRequest.
|
|
95
|
-
:type: str
|
|
105
|
+
:type image_id: str
|
|
96
106
|
"""
|
|
97
107
|
self._image_id = image_id
|
|
98
108
|
|
|
99
109
|
@property
|
|
100
110
|
def start_number(self):
|
|
101
|
-
"""Gets the start_number of this ListScalingConfigsRequest.
|
|
111
|
+
r"""Gets the start_number of this ListScalingConfigsRequest.
|
|
102
112
|
|
|
113
|
+
查询的起始行号,默认为0。
|
|
103
114
|
|
|
104
115
|
:return: The start_number of this ListScalingConfigsRequest.
|
|
105
116
|
:rtype: int
|
|
@@ -108,18 +119,20 @@ class ListScalingConfigsRequest:
|
|
|
108
119
|
|
|
109
120
|
@start_number.setter
|
|
110
121
|
def start_number(self, start_number):
|
|
111
|
-
"""Sets the start_number of this ListScalingConfigsRequest.
|
|
122
|
+
r"""Sets the start_number of this ListScalingConfigsRequest.
|
|
112
123
|
|
|
124
|
+
查询的起始行号,默认为0。
|
|
113
125
|
|
|
114
126
|
:param start_number: The start_number of this ListScalingConfigsRequest.
|
|
115
|
-
:type: int
|
|
127
|
+
:type start_number: int
|
|
116
128
|
"""
|
|
117
129
|
self._start_number = start_number
|
|
118
130
|
|
|
119
131
|
@property
|
|
120
132
|
def limit(self):
|
|
121
|
-
"""Gets the limit of this ListScalingConfigsRequest.
|
|
133
|
+
r"""Gets the limit of this ListScalingConfigsRequest.
|
|
122
134
|
|
|
135
|
+
查询的记录条数,默认为20。
|
|
123
136
|
|
|
124
137
|
:return: The limit of this ListScalingConfigsRequest.
|
|
125
138
|
:rtype: int
|
|
@@ -128,11 +141,12 @@ class ListScalingConfigsRequest:
|
|
|
128
141
|
|
|
129
142
|
@limit.setter
|
|
130
143
|
def limit(self, limit):
|
|
131
|
-
"""Sets the limit of this ListScalingConfigsRequest.
|
|
144
|
+
r"""Sets the limit of this ListScalingConfigsRequest.
|
|
132
145
|
|
|
146
|
+
查询的记录条数,默认为20。
|
|
133
147
|
|
|
134
148
|
:param limit: The limit of this ListScalingConfigsRequest.
|
|
135
|
-
:type: int
|
|
149
|
+
:type limit: int
|
|
136
150
|
"""
|
|
137
151
|
self._limit = limit
|
|
138
152
|
|
|
@@ -165,10 +179,15 @@ class ListScalingConfigsRequest:
|
|
|
165
179
|
|
|
166
180
|
def to_str(self):
|
|
167
181
|
"""Returns the string representation of the model"""
|
|
168
|
-
|
|
182
|
+
import simplejson as json
|
|
183
|
+
if six.PY2:
|
|
184
|
+
import sys
|
|
185
|
+
reload(sys)
|
|
186
|
+
sys.setdefaultencoding("utf-8")
|
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
169
188
|
|
|
170
189
|
def __repr__(self):
|
|
171
|
-
"""For `print`
|
|
190
|
+
"""For `print`"""
|
|
172
191
|
return self.to_str()
|
|
173
192
|
|
|
174
193
|
def __eq__(self, other):
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
3
|
import six
|
|
7
4
|
|
|
8
|
-
|
|
9
5
|
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
7
|
|
|
11
8
|
|
|
12
9
|
class ListScalingConfigsResponse(SdkResponse):
|
|
13
10
|
|
|
14
|
-
|
|
15
11
|
"""
|
|
16
12
|
Attributes:
|
|
17
13
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +15,6 @@ class ListScalingConfigsResponse(SdkResponse):
|
|
|
19
15
|
attribute_map (dict): The key is attribute name
|
|
20
16
|
and the value is json key in definition.
|
|
21
17
|
"""
|
|
22
|
-
|
|
23
18
|
sensitive_list = []
|
|
24
19
|
|
|
25
20
|
openapi_types = {
|
|
@@ -37,9 +32,21 @@ class ListScalingConfigsResponse(SdkResponse):
|
|
|
37
32
|
}
|
|
38
33
|
|
|
39
34
|
def __init__(self, total_number=None, start_number=None, limit=None, scaling_configurations=None):
|
|
40
|
-
"""ListScalingConfigsResponse
|
|
35
|
+
r"""ListScalingConfigsResponse
|
|
36
|
+
|
|
37
|
+
The model defined in huaweicloud sdk
|
|
38
|
+
|
|
39
|
+
:param total_number: 总记录数。
|
|
40
|
+
:type total_number: int
|
|
41
|
+
:param start_number: 查询的起始行号。
|
|
42
|
+
:type start_number: int
|
|
43
|
+
:param limit: 查询记录数。
|
|
44
|
+
:type limit: int
|
|
45
|
+
:param scaling_configurations: 伸缩配置列表
|
|
46
|
+
:type scaling_configurations: list[:class:`huaweicloudsdkas.v1.ScalingConfiguration`]
|
|
47
|
+
"""
|
|
41
48
|
|
|
42
|
-
super().__init__()
|
|
49
|
+
super(ListScalingConfigsResponse, self).__init__()
|
|
43
50
|
|
|
44
51
|
self._total_number = None
|
|
45
52
|
self._start_number = None
|
|
@@ -58,7 +65,7 @@ class ListScalingConfigsResponse(SdkResponse):
|
|
|
58
65
|
|
|
59
66
|
@property
|
|
60
67
|
def total_number(self):
|
|
61
|
-
"""Gets the total_number of this ListScalingConfigsResponse.
|
|
68
|
+
r"""Gets the total_number of this ListScalingConfigsResponse.
|
|
62
69
|
|
|
63
70
|
总记录数。
|
|
64
71
|
|
|
@@ -69,18 +76,18 @@ class ListScalingConfigsResponse(SdkResponse):
|
|
|
69
76
|
|
|
70
77
|
@total_number.setter
|
|
71
78
|
def total_number(self, total_number):
|
|
72
|
-
"""Sets the total_number of this ListScalingConfigsResponse.
|
|
79
|
+
r"""Sets the total_number of this ListScalingConfigsResponse.
|
|
73
80
|
|
|
74
81
|
总记录数。
|
|
75
82
|
|
|
76
83
|
:param total_number: The total_number of this ListScalingConfigsResponse.
|
|
77
|
-
:type: int
|
|
84
|
+
:type total_number: int
|
|
78
85
|
"""
|
|
79
86
|
self._total_number = total_number
|
|
80
87
|
|
|
81
88
|
@property
|
|
82
89
|
def start_number(self):
|
|
83
|
-
"""Gets the start_number of this ListScalingConfigsResponse.
|
|
90
|
+
r"""Gets the start_number of this ListScalingConfigsResponse.
|
|
84
91
|
|
|
85
92
|
查询的起始行号。
|
|
86
93
|
|
|
@@ -91,18 +98,18 @@ class ListScalingConfigsResponse(SdkResponse):
|
|
|
91
98
|
|
|
92
99
|
@start_number.setter
|
|
93
100
|
def start_number(self, start_number):
|
|
94
|
-
"""Sets the start_number of this ListScalingConfigsResponse.
|
|
101
|
+
r"""Sets the start_number of this ListScalingConfigsResponse.
|
|
95
102
|
|
|
96
103
|
查询的起始行号。
|
|
97
104
|
|
|
98
105
|
:param start_number: The start_number of this ListScalingConfigsResponse.
|
|
99
|
-
:type: int
|
|
106
|
+
:type start_number: int
|
|
100
107
|
"""
|
|
101
108
|
self._start_number = start_number
|
|
102
109
|
|
|
103
110
|
@property
|
|
104
111
|
def limit(self):
|
|
105
|
-
"""Gets the limit of this ListScalingConfigsResponse.
|
|
112
|
+
r"""Gets the limit of this ListScalingConfigsResponse.
|
|
106
113
|
|
|
107
114
|
查询记录数。
|
|
108
115
|
|
|
@@ -113,34 +120,34 @@ class ListScalingConfigsResponse(SdkResponse):
|
|
|
113
120
|
|
|
114
121
|
@limit.setter
|
|
115
122
|
def limit(self, limit):
|
|
116
|
-
"""Sets the limit of this ListScalingConfigsResponse.
|
|
123
|
+
r"""Sets the limit of this ListScalingConfigsResponse.
|
|
117
124
|
|
|
118
125
|
查询记录数。
|
|
119
126
|
|
|
120
127
|
:param limit: The limit of this ListScalingConfigsResponse.
|
|
121
|
-
:type: int
|
|
128
|
+
:type limit: int
|
|
122
129
|
"""
|
|
123
130
|
self._limit = limit
|
|
124
131
|
|
|
125
132
|
@property
|
|
126
133
|
def scaling_configurations(self):
|
|
127
|
-
"""Gets the scaling_configurations of this ListScalingConfigsResponse.
|
|
134
|
+
r"""Gets the scaling_configurations of this ListScalingConfigsResponse.
|
|
128
135
|
|
|
129
136
|
伸缩配置列表
|
|
130
137
|
|
|
131
138
|
:return: The scaling_configurations of this ListScalingConfigsResponse.
|
|
132
|
-
:rtype: list[ScalingConfiguration]
|
|
139
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.ScalingConfiguration`]
|
|
133
140
|
"""
|
|
134
141
|
return self._scaling_configurations
|
|
135
142
|
|
|
136
143
|
@scaling_configurations.setter
|
|
137
144
|
def scaling_configurations(self, scaling_configurations):
|
|
138
|
-
"""Sets the scaling_configurations of this ListScalingConfigsResponse.
|
|
145
|
+
r"""Sets the scaling_configurations of this ListScalingConfigsResponse.
|
|
139
146
|
|
|
140
147
|
伸缩配置列表
|
|
141
148
|
|
|
142
149
|
:param scaling_configurations: The scaling_configurations of this ListScalingConfigsResponse.
|
|
143
|
-
:type: list[ScalingConfiguration]
|
|
150
|
+
:type scaling_configurations: list[:class:`huaweicloudsdkas.v1.ScalingConfiguration`]
|
|
144
151
|
"""
|
|
145
152
|
self._scaling_configurations = scaling_configurations
|
|
146
153
|
|
|
@@ -173,10 +180,15 @@ class ListScalingConfigsResponse(SdkResponse):
|
|
|
173
180
|
|
|
174
181
|
def to_str(self):
|
|
175
182
|
"""Returns the string representation of the model"""
|
|
176
|
-
|
|
183
|
+
import simplejson as json
|
|
184
|
+
if six.PY2:
|
|
185
|
+
import sys
|
|
186
|
+
reload(sys)
|
|
187
|
+
sys.setdefaultencoding("utf-8")
|
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
177
189
|
|
|
178
190
|
def __repr__(self):
|
|
179
|
-
"""For `print`
|
|
191
|
+
"""For `print`"""
|
|
180
192
|
return self.to_str()
|
|
181
193
|
|
|
182
194
|
def __eq__(self, other):
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
3
|
import six
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
6
|
|
|
11
7
|
|
|
12
8
|
class ListScalingGroupsRequest:
|
|
13
9
|
|
|
14
|
-
|
|
15
10
|
"""
|
|
16
11
|
Attributes:
|
|
17
12
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +14,6 @@ class ListScalingGroupsRequest:
|
|
|
19
14
|
attribute_map (dict): The key is attribute name
|
|
20
15
|
and the value is json key in definition.
|
|
21
16
|
"""
|
|
22
|
-
|
|
23
17
|
sensitive_list = []
|
|
24
18
|
|
|
25
19
|
openapi_types = {
|
|
@@ -27,7 +21,8 @@ class ListScalingGroupsRequest:
|
|
|
27
21
|
'scaling_configuration_id': 'str',
|
|
28
22
|
'scaling_group_status': 'str',
|
|
29
23
|
'start_number': 'int',
|
|
30
|
-
'limit': 'int'
|
|
24
|
+
'limit': 'int',
|
|
25
|
+
'enterprise_project_id': 'str'
|
|
31
26
|
}
|
|
32
27
|
|
|
33
28
|
attribute_map = {
|
|
@@ -35,11 +30,28 @@ class ListScalingGroupsRequest:
|
|
|
35
30
|
'scaling_configuration_id': 'scaling_configuration_id',
|
|
36
31
|
'scaling_group_status': 'scaling_group_status',
|
|
37
32
|
'start_number': 'start_number',
|
|
38
|
-
'limit': 'limit'
|
|
33
|
+
'limit': 'limit',
|
|
34
|
+
'enterprise_project_id': 'enterprise_project_id'
|
|
39
35
|
}
|
|
40
36
|
|
|
41
|
-
def __init__(self, scaling_group_name=None, scaling_configuration_id=None, scaling_group_status=None, start_number=None, limit=None):
|
|
42
|
-
"""ListScalingGroupsRequest
|
|
37
|
+
def __init__(self, scaling_group_name=None, scaling_configuration_id=None, scaling_group_status=None, start_number=None, limit=None, enterprise_project_id=None):
|
|
38
|
+
r"""ListScalingGroupsRequest
|
|
39
|
+
|
|
40
|
+
The model defined in huaweicloud sdk
|
|
41
|
+
|
|
42
|
+
:param scaling_group_name: 伸缩组名称
|
|
43
|
+
:type scaling_group_name: str
|
|
44
|
+
:param scaling_configuration_id: 伸缩配置ID,通过查询弹性伸缩配置列表接口获取,详见[查询弹性伸缩配置列表](https://support.huaweicloud.com/api-as/as_06_0202.html)。
|
|
45
|
+
:type scaling_configuration_id: str
|
|
46
|
+
:param scaling_group_status: 伸缩组状态,取值如下: - INSERVICE:正常状态 - PAUSED:停用状态 - ERROR:异常状态 - DELETING:删除中 - FREEZED:已冻结
|
|
47
|
+
:type scaling_group_status: str
|
|
48
|
+
:param start_number: 查询的起始行号,默认为0。最小值为0,最大值没有限制。
|
|
49
|
+
:type start_number: int
|
|
50
|
+
:param limit: 查询的记录条数,默认为20。取值范围为:0~100。
|
|
51
|
+
:type limit: int
|
|
52
|
+
:param enterprise_project_id: 企业项目ID,当传入all_granted_eps时表示查询该用户所有授权的企业项目下的伸缩组列表,如何获取企业项目ID,请参考[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)。说明:华为云帐号和拥有全局权限的IAM用户可以查询该用户所有伸缩组列表。授予部分企业项目的IAM用户,如果拥有超过100个企业项目,则只能返回有权限的前100个企业项目对应的伸缩组列表。
|
|
53
|
+
:type enterprise_project_id: str
|
|
54
|
+
"""
|
|
43
55
|
|
|
44
56
|
|
|
45
57
|
|
|
@@ -48,6 +60,7 @@ class ListScalingGroupsRequest:
|
|
|
48
60
|
self._scaling_group_status = None
|
|
49
61
|
self._start_number = None
|
|
50
62
|
self._limit = None
|
|
63
|
+
self._enterprise_project_id = None
|
|
51
64
|
self.discriminator = None
|
|
52
65
|
|
|
53
66
|
if scaling_group_name is not None:
|
|
@@ -60,11 +73,14 @@ class ListScalingGroupsRequest:
|
|
|
60
73
|
self.start_number = start_number
|
|
61
74
|
if limit is not None:
|
|
62
75
|
self.limit = limit
|
|
76
|
+
if enterprise_project_id is not None:
|
|
77
|
+
self.enterprise_project_id = enterprise_project_id
|
|
63
78
|
|
|
64
79
|
@property
|
|
65
80
|
def scaling_group_name(self):
|
|
66
|
-
"""Gets the scaling_group_name of this ListScalingGroupsRequest.
|
|
81
|
+
r"""Gets the scaling_group_name of this ListScalingGroupsRequest.
|
|
67
82
|
|
|
83
|
+
伸缩组名称
|
|
68
84
|
|
|
69
85
|
:return: The scaling_group_name of this ListScalingGroupsRequest.
|
|
70
86
|
:rtype: str
|
|
@@ -73,18 +89,20 @@ class ListScalingGroupsRequest:
|
|
|
73
89
|
|
|
74
90
|
@scaling_group_name.setter
|
|
75
91
|
def scaling_group_name(self, scaling_group_name):
|
|
76
|
-
"""Sets the scaling_group_name of this ListScalingGroupsRequest.
|
|
92
|
+
r"""Sets the scaling_group_name of this ListScalingGroupsRequest.
|
|
77
93
|
|
|
94
|
+
伸缩组名称
|
|
78
95
|
|
|
79
96
|
:param scaling_group_name: The scaling_group_name of this ListScalingGroupsRequest.
|
|
80
|
-
:type: str
|
|
97
|
+
:type scaling_group_name: str
|
|
81
98
|
"""
|
|
82
99
|
self._scaling_group_name = scaling_group_name
|
|
83
100
|
|
|
84
101
|
@property
|
|
85
102
|
def scaling_configuration_id(self):
|
|
86
|
-
"""Gets the scaling_configuration_id of this ListScalingGroupsRequest.
|
|
103
|
+
r"""Gets the scaling_configuration_id of this ListScalingGroupsRequest.
|
|
87
104
|
|
|
105
|
+
伸缩配置ID,通过查询弹性伸缩配置列表接口获取,详见[查询弹性伸缩配置列表](https://support.huaweicloud.com/api-as/as_06_0202.html)。
|
|
88
106
|
|
|
89
107
|
:return: The scaling_configuration_id of this ListScalingGroupsRequest.
|
|
90
108
|
:rtype: str
|
|
@@ -93,18 +111,20 @@ class ListScalingGroupsRequest:
|
|
|
93
111
|
|
|
94
112
|
@scaling_configuration_id.setter
|
|
95
113
|
def scaling_configuration_id(self, scaling_configuration_id):
|
|
96
|
-
"""Sets the scaling_configuration_id of this ListScalingGroupsRequest.
|
|
114
|
+
r"""Sets the scaling_configuration_id of this ListScalingGroupsRequest.
|
|
97
115
|
|
|
116
|
+
伸缩配置ID,通过查询弹性伸缩配置列表接口获取,详见[查询弹性伸缩配置列表](https://support.huaweicloud.com/api-as/as_06_0202.html)。
|
|
98
117
|
|
|
99
118
|
:param scaling_configuration_id: The scaling_configuration_id of this ListScalingGroupsRequest.
|
|
100
|
-
:type: str
|
|
119
|
+
:type scaling_configuration_id: str
|
|
101
120
|
"""
|
|
102
121
|
self._scaling_configuration_id = scaling_configuration_id
|
|
103
122
|
|
|
104
123
|
@property
|
|
105
124
|
def scaling_group_status(self):
|
|
106
|
-
"""Gets the scaling_group_status of this ListScalingGroupsRequest.
|
|
125
|
+
r"""Gets the scaling_group_status of this ListScalingGroupsRequest.
|
|
107
126
|
|
|
127
|
+
伸缩组状态,取值如下: - INSERVICE:正常状态 - PAUSED:停用状态 - ERROR:异常状态 - DELETING:删除中 - FREEZED:已冻结
|
|
108
128
|
|
|
109
129
|
:return: The scaling_group_status of this ListScalingGroupsRequest.
|
|
110
130
|
:rtype: str
|
|
@@ -113,18 +133,20 @@ class ListScalingGroupsRequest:
|
|
|
113
133
|
|
|
114
134
|
@scaling_group_status.setter
|
|
115
135
|
def scaling_group_status(self, scaling_group_status):
|
|
116
|
-
"""Sets the scaling_group_status of this ListScalingGroupsRequest.
|
|
136
|
+
r"""Sets the scaling_group_status of this ListScalingGroupsRequest.
|
|
117
137
|
|
|
138
|
+
伸缩组状态,取值如下: - INSERVICE:正常状态 - PAUSED:停用状态 - ERROR:异常状态 - DELETING:删除中 - FREEZED:已冻结
|
|
118
139
|
|
|
119
140
|
:param scaling_group_status: The scaling_group_status of this ListScalingGroupsRequest.
|
|
120
|
-
:type: str
|
|
141
|
+
:type scaling_group_status: str
|
|
121
142
|
"""
|
|
122
143
|
self._scaling_group_status = scaling_group_status
|
|
123
144
|
|
|
124
145
|
@property
|
|
125
146
|
def start_number(self):
|
|
126
|
-
"""Gets the start_number of this ListScalingGroupsRequest.
|
|
147
|
+
r"""Gets the start_number of this ListScalingGroupsRequest.
|
|
127
148
|
|
|
149
|
+
查询的起始行号,默认为0。最小值为0,最大值没有限制。
|
|
128
150
|
|
|
129
151
|
:return: The start_number of this ListScalingGroupsRequest.
|
|
130
152
|
:rtype: int
|
|
@@ -133,18 +155,20 @@ class ListScalingGroupsRequest:
|
|
|
133
155
|
|
|
134
156
|
@start_number.setter
|
|
135
157
|
def start_number(self, start_number):
|
|
136
|
-
"""Sets the start_number of this ListScalingGroupsRequest.
|
|
158
|
+
r"""Sets the start_number of this ListScalingGroupsRequest.
|
|
137
159
|
|
|
160
|
+
查询的起始行号,默认为0。最小值为0,最大值没有限制。
|
|
138
161
|
|
|
139
162
|
:param start_number: The start_number of this ListScalingGroupsRequest.
|
|
140
|
-
:type: int
|
|
163
|
+
:type start_number: int
|
|
141
164
|
"""
|
|
142
165
|
self._start_number = start_number
|
|
143
166
|
|
|
144
167
|
@property
|
|
145
168
|
def limit(self):
|
|
146
|
-
"""Gets the limit of this ListScalingGroupsRequest.
|
|
169
|
+
r"""Gets the limit of this ListScalingGroupsRequest.
|
|
147
170
|
|
|
171
|
+
查询的记录条数,默认为20。取值范围为:0~100。
|
|
148
172
|
|
|
149
173
|
:return: The limit of this ListScalingGroupsRequest.
|
|
150
174
|
:rtype: int
|
|
@@ -153,14 +177,37 @@ class ListScalingGroupsRequest:
|
|
|
153
177
|
|
|
154
178
|
@limit.setter
|
|
155
179
|
def limit(self, limit):
|
|
156
|
-
"""Sets the limit of this ListScalingGroupsRequest.
|
|
180
|
+
r"""Sets the limit of this ListScalingGroupsRequest.
|
|
157
181
|
|
|
182
|
+
查询的记录条数,默认为20。取值范围为:0~100。
|
|
158
183
|
|
|
159
184
|
:param limit: The limit of this ListScalingGroupsRequest.
|
|
160
|
-
:type: int
|
|
185
|
+
:type limit: int
|
|
161
186
|
"""
|
|
162
187
|
self._limit = limit
|
|
163
188
|
|
|
189
|
+
@property
|
|
190
|
+
def enterprise_project_id(self):
|
|
191
|
+
r"""Gets the enterprise_project_id of this ListScalingGroupsRequest.
|
|
192
|
+
|
|
193
|
+
企业项目ID,当传入all_granted_eps时表示查询该用户所有授权的企业项目下的伸缩组列表,如何获取企业项目ID,请参考[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)。说明:华为云帐号和拥有全局权限的IAM用户可以查询该用户所有伸缩组列表。授予部分企业项目的IAM用户,如果拥有超过100个企业项目,则只能返回有权限的前100个企业项目对应的伸缩组列表。
|
|
194
|
+
|
|
195
|
+
:return: The enterprise_project_id of this ListScalingGroupsRequest.
|
|
196
|
+
:rtype: str
|
|
197
|
+
"""
|
|
198
|
+
return self._enterprise_project_id
|
|
199
|
+
|
|
200
|
+
@enterprise_project_id.setter
|
|
201
|
+
def enterprise_project_id(self, enterprise_project_id):
|
|
202
|
+
r"""Sets the enterprise_project_id of this ListScalingGroupsRequest.
|
|
203
|
+
|
|
204
|
+
企业项目ID,当传入all_granted_eps时表示查询该用户所有授权的企业项目下的伸缩组列表,如何获取企业项目ID,请参考[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)。说明:华为云帐号和拥有全局权限的IAM用户可以查询该用户所有伸缩组列表。授予部分企业项目的IAM用户,如果拥有超过100个企业项目,则只能返回有权限的前100个企业项目对应的伸缩组列表。
|
|
205
|
+
|
|
206
|
+
:param enterprise_project_id: The enterprise_project_id of this ListScalingGroupsRequest.
|
|
207
|
+
:type enterprise_project_id: str
|
|
208
|
+
"""
|
|
209
|
+
self._enterprise_project_id = enterprise_project_id
|
|
210
|
+
|
|
164
211
|
def to_dict(self):
|
|
165
212
|
"""Returns the model properties as a dict"""
|
|
166
213
|
result = {}
|
|
@@ -190,10 +237,15 @@ class ListScalingGroupsRequest:
|
|
|
190
237
|
|
|
191
238
|
def to_str(self):
|
|
192
239
|
"""Returns the string representation of the model"""
|
|
193
|
-
|
|
240
|
+
import simplejson as json
|
|
241
|
+
if six.PY2:
|
|
242
|
+
import sys
|
|
243
|
+
reload(sys)
|
|
244
|
+
sys.setdefaultencoding("utf-8")
|
|
245
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
194
246
|
|
|
195
247
|
def __repr__(self):
|
|
196
|
-
"""For `print`
|
|
248
|
+
"""For `print`"""
|
|
197
249
|
return self.to_str()
|
|
198
250
|
|
|
199
251
|
def __eq__(self, other):
|