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,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 ListScalingTagInfosByResourceIdResponse(SdkResponse):
|
|
13
10
|
|
|
14
|
-
|
|
15
11
|
"""
|
|
16
12
|
Attributes:
|
|
17
13
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +15,6 @@ class ListScalingTagInfosByResourceIdResponse(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 = {
|
|
@@ -33,9 +28,17 @@ class ListScalingTagInfosByResourceIdResponse(SdkResponse):
|
|
|
33
28
|
}
|
|
34
29
|
|
|
35
30
|
def __init__(self, tags=None, sys_tags=None):
|
|
36
|
-
"""ListScalingTagInfosByResourceIdResponse
|
|
31
|
+
r"""ListScalingTagInfosByResourceIdResponse
|
|
32
|
+
|
|
33
|
+
The model defined in huaweicloud sdk
|
|
34
|
+
|
|
35
|
+
:param tags: 资源标签列表。
|
|
36
|
+
:type tags: list[:class:`huaweicloudsdkas.v1.TagsSingleValue`]
|
|
37
|
+
:param sys_tags: 系统资源标签列表。
|
|
38
|
+
:type sys_tags: list[:class:`huaweicloudsdkas.v1.TagsSingleValue`]
|
|
39
|
+
"""
|
|
37
40
|
|
|
38
|
-
super().__init__()
|
|
41
|
+
super(ListScalingTagInfosByResourceIdResponse, self).__init__()
|
|
39
42
|
|
|
40
43
|
self._tags = None
|
|
41
44
|
self._sys_tags = None
|
|
@@ -48,45 +51,45 @@ class ListScalingTagInfosByResourceIdResponse(SdkResponse):
|
|
|
48
51
|
|
|
49
52
|
@property
|
|
50
53
|
def tags(self):
|
|
51
|
-
"""Gets the tags of this ListScalingTagInfosByResourceIdResponse.
|
|
54
|
+
r"""Gets the tags of this ListScalingTagInfosByResourceIdResponse.
|
|
52
55
|
|
|
53
56
|
资源标签列表。
|
|
54
57
|
|
|
55
58
|
:return: The tags of this ListScalingTagInfosByResourceIdResponse.
|
|
56
|
-
:rtype: list[TagsSingleValue]
|
|
59
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.TagsSingleValue`]
|
|
57
60
|
"""
|
|
58
61
|
return self._tags
|
|
59
62
|
|
|
60
63
|
@tags.setter
|
|
61
64
|
def tags(self, tags):
|
|
62
|
-
"""Sets the tags of this ListScalingTagInfosByResourceIdResponse.
|
|
65
|
+
r"""Sets the tags of this ListScalingTagInfosByResourceIdResponse.
|
|
63
66
|
|
|
64
67
|
资源标签列表。
|
|
65
68
|
|
|
66
69
|
:param tags: The tags of this ListScalingTagInfosByResourceIdResponse.
|
|
67
|
-
:type: list[TagsSingleValue]
|
|
70
|
+
:type tags: list[:class:`huaweicloudsdkas.v1.TagsSingleValue`]
|
|
68
71
|
"""
|
|
69
72
|
self._tags = tags
|
|
70
73
|
|
|
71
74
|
@property
|
|
72
75
|
def sys_tags(self):
|
|
73
|
-
"""Gets the sys_tags of this ListScalingTagInfosByResourceIdResponse.
|
|
76
|
+
r"""Gets the sys_tags of this ListScalingTagInfosByResourceIdResponse.
|
|
74
77
|
|
|
75
78
|
系统资源标签列表。
|
|
76
79
|
|
|
77
80
|
:return: The sys_tags of this ListScalingTagInfosByResourceIdResponse.
|
|
78
|
-
:rtype: list[TagsSingleValue]
|
|
81
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.TagsSingleValue`]
|
|
79
82
|
"""
|
|
80
83
|
return self._sys_tags
|
|
81
84
|
|
|
82
85
|
@sys_tags.setter
|
|
83
86
|
def sys_tags(self, sys_tags):
|
|
84
|
-
"""Sets the sys_tags of this ListScalingTagInfosByResourceIdResponse.
|
|
87
|
+
r"""Sets the sys_tags of this ListScalingTagInfosByResourceIdResponse.
|
|
85
88
|
|
|
86
89
|
系统资源标签列表。
|
|
87
90
|
|
|
88
91
|
:param sys_tags: The sys_tags of this ListScalingTagInfosByResourceIdResponse.
|
|
89
|
-
:type: list[TagsSingleValue]
|
|
92
|
+
:type sys_tags: list[:class:`huaweicloudsdkas.v1.TagsSingleValue`]
|
|
90
93
|
"""
|
|
91
94
|
self._sys_tags = sys_tags
|
|
92
95
|
|
|
@@ -119,10 +122,15 @@ class ListScalingTagInfosByResourceIdResponse(SdkResponse):
|
|
|
119
122
|
|
|
120
123
|
def to_str(self):
|
|
121
124
|
"""Returns the string representation of the model"""
|
|
122
|
-
|
|
125
|
+
import simplejson as json
|
|
126
|
+
if six.PY2:
|
|
127
|
+
import sys
|
|
128
|
+
reload(sys)
|
|
129
|
+
sys.setdefaultencoding("utf-8")
|
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
123
131
|
|
|
124
132
|
def __repr__(self):
|
|
125
|
-
"""For `print`
|
|
133
|
+
"""For `print`"""
|
|
126
134
|
return self.to_str()
|
|
127
135
|
|
|
128
136
|
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 ListScalingTagInfosByTenantIdRequest:
|
|
13
9
|
|
|
14
|
-
|
|
15
10
|
"""
|
|
16
11
|
Attributes:
|
|
17
12
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +14,6 @@ class ListScalingTagInfosByTenantIdRequest:
|
|
|
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 = {
|
|
@@ -31,7 +25,13 @@ class ListScalingTagInfosByTenantIdRequest:
|
|
|
31
25
|
}
|
|
32
26
|
|
|
33
27
|
def __init__(self, resource_type=None):
|
|
34
|
-
"""ListScalingTagInfosByTenantIdRequest
|
|
28
|
+
r"""ListScalingTagInfosByTenantIdRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param resource_type: 资源类型,枚举类:scaling_group_tag。scaling_group_tag表示资源类型为伸缩组。
|
|
33
|
+
:type resource_type: str
|
|
34
|
+
"""
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
@@ -42,8 +42,9 @@ class ListScalingTagInfosByTenantIdRequest:
|
|
|
42
42
|
|
|
43
43
|
@property
|
|
44
44
|
def resource_type(self):
|
|
45
|
-
"""Gets the resource_type of this ListScalingTagInfosByTenantIdRequest.
|
|
45
|
+
r"""Gets the resource_type of this ListScalingTagInfosByTenantIdRequest.
|
|
46
46
|
|
|
47
|
+
资源类型,枚举类:scaling_group_tag。scaling_group_tag表示资源类型为伸缩组。
|
|
47
48
|
|
|
48
49
|
:return: The resource_type of this ListScalingTagInfosByTenantIdRequest.
|
|
49
50
|
:rtype: str
|
|
@@ -52,11 +53,12 @@ class ListScalingTagInfosByTenantIdRequest:
|
|
|
52
53
|
|
|
53
54
|
@resource_type.setter
|
|
54
55
|
def resource_type(self, resource_type):
|
|
55
|
-
"""Sets the resource_type of this ListScalingTagInfosByTenantIdRequest.
|
|
56
|
+
r"""Sets the resource_type of this ListScalingTagInfosByTenantIdRequest.
|
|
56
57
|
|
|
58
|
+
资源类型,枚举类:scaling_group_tag。scaling_group_tag表示资源类型为伸缩组。
|
|
57
59
|
|
|
58
60
|
:param resource_type: The resource_type of this ListScalingTagInfosByTenantIdRequest.
|
|
59
|
-
:type: str
|
|
61
|
+
:type resource_type: str
|
|
60
62
|
"""
|
|
61
63
|
self._resource_type = resource_type
|
|
62
64
|
|
|
@@ -89,10 +91,15 @@ class ListScalingTagInfosByTenantIdRequest:
|
|
|
89
91
|
|
|
90
92
|
def to_str(self):
|
|
91
93
|
"""Returns the string representation of the model"""
|
|
92
|
-
|
|
94
|
+
import simplejson as json
|
|
95
|
+
if six.PY2:
|
|
96
|
+
import sys
|
|
97
|
+
reload(sys)
|
|
98
|
+
sys.setdefaultencoding("utf-8")
|
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
93
100
|
|
|
94
101
|
def __repr__(self):
|
|
95
|
-
"""For `print`
|
|
102
|
+
"""For `print`"""
|
|
96
103
|
return self.to_str()
|
|
97
104
|
|
|
98
105
|
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 ListScalingTagInfosByTenantIdResponse(SdkResponse):
|
|
13
10
|
|
|
14
|
-
|
|
15
11
|
"""
|
|
16
12
|
Attributes:
|
|
17
13
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +15,6 @@ class ListScalingTagInfosByTenantIdResponse(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 = {
|
|
@@ -31,9 +26,15 @@ class ListScalingTagInfosByTenantIdResponse(SdkResponse):
|
|
|
31
26
|
}
|
|
32
27
|
|
|
33
28
|
def __init__(self, tags=None):
|
|
34
|
-
"""ListScalingTagInfosByTenantIdResponse
|
|
29
|
+
r"""ListScalingTagInfosByTenantIdResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param tags: 资源标签。
|
|
34
|
+
:type tags: list[:class:`huaweicloudsdkas.v1.TagsMultiValue`]
|
|
35
|
+
"""
|
|
35
36
|
|
|
36
|
-
super().__init__()
|
|
37
|
+
super(ListScalingTagInfosByTenantIdResponse, self).__init__()
|
|
37
38
|
|
|
38
39
|
self._tags = None
|
|
39
40
|
self.discriminator = None
|
|
@@ -43,23 +44,23 @@ class ListScalingTagInfosByTenantIdResponse(SdkResponse):
|
|
|
43
44
|
|
|
44
45
|
@property
|
|
45
46
|
def tags(self):
|
|
46
|
-
"""Gets the tags of this ListScalingTagInfosByTenantIdResponse.
|
|
47
|
+
r"""Gets the tags of this ListScalingTagInfosByTenantIdResponse.
|
|
47
48
|
|
|
48
49
|
资源标签。
|
|
49
50
|
|
|
50
51
|
:return: The tags of this ListScalingTagInfosByTenantIdResponse.
|
|
51
|
-
:rtype: list[TagsMultiValue]
|
|
52
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.TagsMultiValue`]
|
|
52
53
|
"""
|
|
53
54
|
return self._tags
|
|
54
55
|
|
|
55
56
|
@tags.setter
|
|
56
57
|
def tags(self, tags):
|
|
57
|
-
"""Sets the tags of this ListScalingTagInfosByTenantIdResponse.
|
|
58
|
+
r"""Sets the tags of this ListScalingTagInfosByTenantIdResponse.
|
|
58
59
|
|
|
59
60
|
资源标签。
|
|
60
61
|
|
|
61
62
|
:param tags: The tags of this ListScalingTagInfosByTenantIdResponse.
|
|
62
|
-
:type: list[TagsMultiValue]
|
|
63
|
+
:type tags: list[:class:`huaweicloudsdkas.v1.TagsMultiValue`]
|
|
63
64
|
"""
|
|
64
65
|
self._tags = tags
|
|
65
66
|
|
|
@@ -92,10 +93,15 @@ class ListScalingTagInfosByTenantIdResponse(SdkResponse):
|
|
|
92
93
|
|
|
93
94
|
def to_str(self):
|
|
94
95
|
"""Returns the string representation of the model"""
|
|
95
|
-
|
|
96
|
+
import simplejson as json
|
|
97
|
+
if six.PY2:
|
|
98
|
+
import sys
|
|
99
|
+
reload(sys)
|
|
100
|
+
sys.setdefaultencoding("utf-8")
|
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
96
102
|
|
|
97
103
|
def __repr__(self):
|
|
98
|
-
"""For `print`
|
|
104
|
+
"""For `print`"""
|
|
99
105
|
return self.to_str()
|
|
100
106
|
|
|
101
107
|
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 ListScalingV2PoliciesRequest:
|
|
13
9
|
|
|
14
|
-
|
|
15
10
|
"""
|
|
16
11
|
Attributes:
|
|
17
12
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +14,6 @@ class ListScalingV2PoliciesRequest:
|
|
|
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 = {
|
|
@@ -41,7 +35,23 @@ class ListScalingV2PoliciesRequest:
|
|
|
41
35
|
}
|
|
42
36
|
|
|
43
37
|
def __init__(self, scaling_resource_id=None, scaling_policy_name=None, scaling_policy_type=None, scaling_policy_id=None, start_number=None, limit=None):
|
|
44
|
-
"""ListScalingV2PoliciesRequest
|
|
38
|
+
r"""ListScalingV2PoliciesRequest
|
|
39
|
+
|
|
40
|
+
The model defined in huaweicloud sdk
|
|
41
|
+
|
|
42
|
+
:param scaling_resource_id: 伸缩组ID。
|
|
43
|
+
:type scaling_resource_id: str
|
|
44
|
+
:param scaling_policy_name: 伸缩策略名称。
|
|
45
|
+
:type scaling_policy_name: str
|
|
46
|
+
:param scaling_policy_type: 策略类型: - 告警策略:ALARM - 定时策略:SCHEDULED - 周期策略:RECURRENCE
|
|
47
|
+
:type scaling_policy_type: str
|
|
48
|
+
:param scaling_policy_id: 伸缩策略ID。
|
|
49
|
+
:type scaling_policy_id: str
|
|
50
|
+
:param start_number: 查询的起始行号,默认为0。
|
|
51
|
+
:type start_number: int
|
|
52
|
+
:param limit: 查询记录数,默认20,最大100。
|
|
53
|
+
:type limit: int
|
|
54
|
+
"""
|
|
45
55
|
|
|
46
56
|
|
|
47
57
|
|
|
@@ -67,8 +77,9 @@ class ListScalingV2PoliciesRequest:
|
|
|
67
77
|
|
|
68
78
|
@property
|
|
69
79
|
def scaling_resource_id(self):
|
|
70
|
-
"""Gets the scaling_resource_id of this ListScalingV2PoliciesRequest.
|
|
80
|
+
r"""Gets the scaling_resource_id of this ListScalingV2PoliciesRequest.
|
|
71
81
|
|
|
82
|
+
伸缩组ID。
|
|
72
83
|
|
|
73
84
|
:return: The scaling_resource_id of this ListScalingV2PoliciesRequest.
|
|
74
85
|
:rtype: str
|
|
@@ -77,18 +88,20 @@ class ListScalingV2PoliciesRequest:
|
|
|
77
88
|
|
|
78
89
|
@scaling_resource_id.setter
|
|
79
90
|
def scaling_resource_id(self, scaling_resource_id):
|
|
80
|
-
"""Sets the scaling_resource_id of this ListScalingV2PoliciesRequest.
|
|
91
|
+
r"""Sets the scaling_resource_id of this ListScalingV2PoliciesRequest.
|
|
81
92
|
|
|
93
|
+
伸缩组ID。
|
|
82
94
|
|
|
83
95
|
:param scaling_resource_id: The scaling_resource_id of this ListScalingV2PoliciesRequest.
|
|
84
|
-
:type: str
|
|
96
|
+
:type scaling_resource_id: str
|
|
85
97
|
"""
|
|
86
98
|
self._scaling_resource_id = scaling_resource_id
|
|
87
99
|
|
|
88
100
|
@property
|
|
89
101
|
def scaling_policy_name(self):
|
|
90
|
-
"""Gets the scaling_policy_name of this ListScalingV2PoliciesRequest.
|
|
102
|
+
r"""Gets the scaling_policy_name of this ListScalingV2PoliciesRequest.
|
|
91
103
|
|
|
104
|
+
伸缩策略名称。
|
|
92
105
|
|
|
93
106
|
:return: The scaling_policy_name of this ListScalingV2PoliciesRequest.
|
|
94
107
|
:rtype: str
|
|
@@ -97,18 +110,20 @@ class ListScalingV2PoliciesRequest:
|
|
|
97
110
|
|
|
98
111
|
@scaling_policy_name.setter
|
|
99
112
|
def scaling_policy_name(self, scaling_policy_name):
|
|
100
|
-
"""Sets the scaling_policy_name of this ListScalingV2PoliciesRequest.
|
|
113
|
+
r"""Sets the scaling_policy_name of this ListScalingV2PoliciesRequest.
|
|
101
114
|
|
|
115
|
+
伸缩策略名称。
|
|
102
116
|
|
|
103
117
|
:param scaling_policy_name: The scaling_policy_name of this ListScalingV2PoliciesRequest.
|
|
104
|
-
:type: str
|
|
118
|
+
:type scaling_policy_name: str
|
|
105
119
|
"""
|
|
106
120
|
self._scaling_policy_name = scaling_policy_name
|
|
107
121
|
|
|
108
122
|
@property
|
|
109
123
|
def scaling_policy_type(self):
|
|
110
|
-
"""Gets the scaling_policy_type of this ListScalingV2PoliciesRequest.
|
|
124
|
+
r"""Gets the scaling_policy_type of this ListScalingV2PoliciesRequest.
|
|
111
125
|
|
|
126
|
+
策略类型: - 告警策略:ALARM - 定时策略:SCHEDULED - 周期策略:RECURRENCE
|
|
112
127
|
|
|
113
128
|
:return: The scaling_policy_type of this ListScalingV2PoliciesRequest.
|
|
114
129
|
:rtype: str
|
|
@@ -117,18 +132,20 @@ class ListScalingV2PoliciesRequest:
|
|
|
117
132
|
|
|
118
133
|
@scaling_policy_type.setter
|
|
119
134
|
def scaling_policy_type(self, scaling_policy_type):
|
|
120
|
-
"""Sets the scaling_policy_type of this ListScalingV2PoliciesRequest.
|
|
135
|
+
r"""Sets the scaling_policy_type of this ListScalingV2PoliciesRequest.
|
|
121
136
|
|
|
137
|
+
策略类型: - 告警策略:ALARM - 定时策略:SCHEDULED - 周期策略:RECURRENCE
|
|
122
138
|
|
|
123
139
|
:param scaling_policy_type: The scaling_policy_type of this ListScalingV2PoliciesRequest.
|
|
124
|
-
:type: str
|
|
140
|
+
:type scaling_policy_type: str
|
|
125
141
|
"""
|
|
126
142
|
self._scaling_policy_type = scaling_policy_type
|
|
127
143
|
|
|
128
144
|
@property
|
|
129
145
|
def scaling_policy_id(self):
|
|
130
|
-
"""Gets the scaling_policy_id of this ListScalingV2PoliciesRequest.
|
|
146
|
+
r"""Gets the scaling_policy_id of this ListScalingV2PoliciesRequest.
|
|
131
147
|
|
|
148
|
+
伸缩策略ID。
|
|
132
149
|
|
|
133
150
|
:return: The scaling_policy_id of this ListScalingV2PoliciesRequest.
|
|
134
151
|
:rtype: str
|
|
@@ -137,18 +154,20 @@ class ListScalingV2PoliciesRequest:
|
|
|
137
154
|
|
|
138
155
|
@scaling_policy_id.setter
|
|
139
156
|
def scaling_policy_id(self, scaling_policy_id):
|
|
140
|
-
"""Sets the scaling_policy_id of this ListScalingV2PoliciesRequest.
|
|
157
|
+
r"""Sets the scaling_policy_id of this ListScalingV2PoliciesRequest.
|
|
141
158
|
|
|
159
|
+
伸缩策略ID。
|
|
142
160
|
|
|
143
161
|
:param scaling_policy_id: The scaling_policy_id of this ListScalingV2PoliciesRequest.
|
|
144
|
-
:type: str
|
|
162
|
+
:type scaling_policy_id: str
|
|
145
163
|
"""
|
|
146
164
|
self._scaling_policy_id = scaling_policy_id
|
|
147
165
|
|
|
148
166
|
@property
|
|
149
167
|
def start_number(self):
|
|
150
|
-
"""Gets the start_number of this ListScalingV2PoliciesRequest.
|
|
168
|
+
r"""Gets the start_number of this ListScalingV2PoliciesRequest.
|
|
151
169
|
|
|
170
|
+
查询的起始行号,默认为0。
|
|
152
171
|
|
|
153
172
|
:return: The start_number of this ListScalingV2PoliciesRequest.
|
|
154
173
|
:rtype: int
|
|
@@ -157,18 +176,20 @@ class ListScalingV2PoliciesRequest:
|
|
|
157
176
|
|
|
158
177
|
@start_number.setter
|
|
159
178
|
def start_number(self, start_number):
|
|
160
|
-
"""Sets the start_number of this ListScalingV2PoliciesRequest.
|
|
179
|
+
r"""Sets the start_number of this ListScalingV2PoliciesRequest.
|
|
161
180
|
|
|
181
|
+
查询的起始行号,默认为0。
|
|
162
182
|
|
|
163
183
|
:param start_number: The start_number of this ListScalingV2PoliciesRequest.
|
|
164
|
-
:type: int
|
|
184
|
+
:type start_number: int
|
|
165
185
|
"""
|
|
166
186
|
self._start_number = start_number
|
|
167
187
|
|
|
168
188
|
@property
|
|
169
189
|
def limit(self):
|
|
170
|
-
"""Gets the limit of this ListScalingV2PoliciesRequest.
|
|
190
|
+
r"""Gets the limit of this ListScalingV2PoliciesRequest.
|
|
171
191
|
|
|
192
|
+
查询记录数,默认20,最大100。
|
|
172
193
|
|
|
173
194
|
:return: The limit of this ListScalingV2PoliciesRequest.
|
|
174
195
|
:rtype: int
|
|
@@ -177,11 +198,12 @@ class ListScalingV2PoliciesRequest:
|
|
|
177
198
|
|
|
178
199
|
@limit.setter
|
|
179
200
|
def limit(self, limit):
|
|
180
|
-
"""Sets the limit of this ListScalingV2PoliciesRequest.
|
|
201
|
+
r"""Sets the limit of this ListScalingV2PoliciesRequest.
|
|
181
202
|
|
|
203
|
+
查询记录数,默认20,最大100。
|
|
182
204
|
|
|
183
205
|
:param limit: The limit of this ListScalingV2PoliciesRequest.
|
|
184
|
-
:type: int
|
|
206
|
+
:type limit: int
|
|
185
207
|
"""
|
|
186
208
|
self._limit = limit
|
|
187
209
|
|
|
@@ -214,10 +236,15 @@ class ListScalingV2PoliciesRequest:
|
|
|
214
236
|
|
|
215
237
|
def to_str(self):
|
|
216
238
|
"""Returns the string representation of the model"""
|
|
217
|
-
|
|
239
|
+
import simplejson as json
|
|
240
|
+
if six.PY2:
|
|
241
|
+
import sys
|
|
242
|
+
reload(sys)
|
|
243
|
+
sys.setdefaultencoding("utf-8")
|
|
244
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
218
245
|
|
|
219
246
|
def __repr__(self):
|
|
220
|
-
"""For `print`
|
|
247
|
+
"""For `print`"""
|
|
221
248
|
return self.to_str()
|
|
222
249
|
|
|
223
250
|
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 ListScalingV2PoliciesResponse(SdkResponse):
|
|
13
10
|
|
|
14
|
-
|
|
15
11
|
"""
|
|
16
12
|
Attributes:
|
|
17
13
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +15,6 @@ class ListScalingV2PoliciesResponse(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 ListScalingV2PoliciesResponse(SdkResponse):
|
|
|
37
32
|
}
|
|
38
33
|
|
|
39
34
|
def __init__(self, total_number=None, start_number=None, limit=None, scaling_policies=None):
|
|
40
|
-
"""ListScalingV2PoliciesResponse
|
|
35
|
+
r"""ListScalingV2PoliciesResponse
|
|
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_policies: 伸缩策略列表
|
|
46
|
+
:type scaling_policies: list[:class:`huaweicloudsdkas.v1.ScalingPoliciesV2`]
|
|
47
|
+
"""
|
|
41
48
|
|
|
42
|
-
super().__init__()
|
|
49
|
+
super(ListScalingV2PoliciesResponse, self).__init__()
|
|
43
50
|
|
|
44
51
|
self._total_number = None
|
|
45
52
|
self._start_number = None
|
|
@@ -58,7 +65,7 @@ class ListScalingV2PoliciesResponse(SdkResponse):
|
|
|
58
65
|
|
|
59
66
|
@property
|
|
60
67
|
def total_number(self):
|
|
61
|
-
"""Gets the total_number of this ListScalingV2PoliciesResponse.
|
|
68
|
+
r"""Gets the total_number of this ListScalingV2PoliciesResponse.
|
|
62
69
|
|
|
63
70
|
总记录数。
|
|
64
71
|
|
|
@@ -69,18 +76,18 @@ class ListScalingV2PoliciesResponse(SdkResponse):
|
|
|
69
76
|
|
|
70
77
|
@total_number.setter
|
|
71
78
|
def total_number(self, total_number):
|
|
72
|
-
"""Sets the total_number of this ListScalingV2PoliciesResponse.
|
|
79
|
+
r"""Sets the total_number of this ListScalingV2PoliciesResponse.
|
|
73
80
|
|
|
74
81
|
总记录数。
|
|
75
82
|
|
|
76
83
|
:param total_number: The total_number of this ListScalingV2PoliciesResponse.
|
|
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 ListScalingV2PoliciesResponse.
|
|
90
|
+
r"""Gets the start_number of this ListScalingV2PoliciesResponse.
|
|
84
91
|
|
|
85
92
|
查询的起始行号。
|
|
86
93
|
|
|
@@ -91,18 +98,18 @@ class ListScalingV2PoliciesResponse(SdkResponse):
|
|
|
91
98
|
|
|
92
99
|
@start_number.setter
|
|
93
100
|
def start_number(self, start_number):
|
|
94
|
-
"""Sets the start_number of this ListScalingV2PoliciesResponse.
|
|
101
|
+
r"""Sets the start_number of this ListScalingV2PoliciesResponse.
|
|
95
102
|
|
|
96
103
|
查询的起始行号。
|
|
97
104
|
|
|
98
105
|
:param start_number: The start_number of this ListScalingV2PoliciesResponse.
|
|
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 ListScalingV2PoliciesResponse.
|
|
112
|
+
r"""Gets the limit of this ListScalingV2PoliciesResponse.
|
|
106
113
|
|
|
107
114
|
查询记录数。
|
|
108
115
|
|
|
@@ -113,34 +120,34 @@ class ListScalingV2PoliciesResponse(SdkResponse):
|
|
|
113
120
|
|
|
114
121
|
@limit.setter
|
|
115
122
|
def limit(self, limit):
|
|
116
|
-
"""Sets the limit of this ListScalingV2PoliciesResponse.
|
|
123
|
+
r"""Sets the limit of this ListScalingV2PoliciesResponse.
|
|
117
124
|
|
|
118
125
|
查询记录数。
|
|
119
126
|
|
|
120
127
|
:param limit: The limit of this ListScalingV2PoliciesResponse.
|
|
121
|
-
:type: int
|
|
128
|
+
:type limit: int
|
|
122
129
|
"""
|
|
123
130
|
self._limit = limit
|
|
124
131
|
|
|
125
132
|
@property
|
|
126
133
|
def scaling_policies(self):
|
|
127
|
-
"""Gets the scaling_policies of this ListScalingV2PoliciesResponse.
|
|
134
|
+
r"""Gets the scaling_policies of this ListScalingV2PoliciesResponse.
|
|
128
135
|
|
|
129
136
|
伸缩策略列表
|
|
130
137
|
|
|
131
138
|
:return: The scaling_policies of this ListScalingV2PoliciesResponse.
|
|
132
|
-
:rtype: list[ScalingPoliciesV2]
|
|
139
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.ScalingPoliciesV2`]
|
|
133
140
|
"""
|
|
134
141
|
return self._scaling_policies
|
|
135
142
|
|
|
136
143
|
@scaling_policies.setter
|
|
137
144
|
def scaling_policies(self, scaling_policies):
|
|
138
|
-
"""Sets the scaling_policies of this ListScalingV2PoliciesResponse.
|
|
145
|
+
r"""Sets the scaling_policies of this ListScalingV2PoliciesResponse.
|
|
139
146
|
|
|
140
147
|
伸缩策略列表
|
|
141
148
|
|
|
142
149
|
:param scaling_policies: The scaling_policies of this ListScalingV2PoliciesResponse.
|
|
143
|
-
:type: list[ScalingPoliciesV2]
|
|
150
|
+
:type scaling_policies: list[:class:`huaweicloudsdkas.v1.ScalingPoliciesV2`]
|
|
144
151
|
"""
|
|
145
152
|
self._scaling_policies = scaling_policies
|
|
146
153
|
|
|
@@ -173,10 +180,15 @@ class ListScalingV2PoliciesResponse(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):
|