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,11 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
|
-
import six
|
|
7
|
-
|
|
8
|
-
|
|
9
3
|
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
5
|
|
|
11
6
|
|
|
12
7
|
class ListScalingPoliciesResponse(SdkResponse):
|
|
13
8
|
|
|
14
|
-
|
|
15
9
|
"""
|
|
16
10
|
Attributes:
|
|
17
11
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,14 +13,13 @@ class ListScalingPoliciesResponse(SdkResponse):
|
|
|
19
13
|
attribute_map (dict): The key is attribute name
|
|
20
14
|
and the value is json key in definition.
|
|
21
15
|
"""
|
|
22
|
-
|
|
23
16
|
sensitive_list = []
|
|
24
17
|
|
|
25
18
|
openapi_types = {
|
|
26
19
|
'total_number': 'int',
|
|
27
20
|
'start_number': 'int',
|
|
28
21
|
'limit': 'int',
|
|
29
|
-
'scaling_policies': 'list[
|
|
22
|
+
'scaling_policies': 'list[ScalingV1PolicyDetail]'
|
|
30
23
|
}
|
|
31
24
|
|
|
32
25
|
attribute_map = {
|
|
@@ -37,7 +30,19 @@ class ListScalingPoliciesResponse(SdkResponse):
|
|
|
37
30
|
}
|
|
38
31
|
|
|
39
32
|
def __init__(self, total_number=None, start_number=None, limit=None, scaling_policies=None):
|
|
40
|
-
"""ListScalingPoliciesResponse
|
|
33
|
+
r"""ListScalingPoliciesResponse
|
|
34
|
+
|
|
35
|
+
The model defined in huaweicloud sdk
|
|
36
|
+
|
|
37
|
+
:param total_number: 总记录数。
|
|
38
|
+
:type total_number: int
|
|
39
|
+
:param start_number: 查询的起始行号。
|
|
40
|
+
:type start_number: int
|
|
41
|
+
:param limit: 查询记录数。
|
|
42
|
+
:type limit: int
|
|
43
|
+
:param scaling_policies: 伸缩策略列表
|
|
44
|
+
:type scaling_policies: list[:class:`huaweicloudsdkas.v1.ScalingV1PolicyDetail`]
|
|
45
|
+
"""
|
|
41
46
|
|
|
42
47
|
super().__init__()
|
|
43
48
|
|
|
@@ -58,7 +63,7 @@ class ListScalingPoliciesResponse(SdkResponse):
|
|
|
58
63
|
|
|
59
64
|
@property
|
|
60
65
|
def total_number(self):
|
|
61
|
-
"""Gets the total_number of this ListScalingPoliciesResponse.
|
|
66
|
+
r"""Gets the total_number of this ListScalingPoliciesResponse.
|
|
62
67
|
|
|
63
68
|
总记录数。
|
|
64
69
|
|
|
@@ -69,18 +74,18 @@ class ListScalingPoliciesResponse(SdkResponse):
|
|
|
69
74
|
|
|
70
75
|
@total_number.setter
|
|
71
76
|
def total_number(self, total_number):
|
|
72
|
-
"""Sets the total_number of this ListScalingPoliciesResponse.
|
|
77
|
+
r"""Sets the total_number of this ListScalingPoliciesResponse.
|
|
73
78
|
|
|
74
79
|
总记录数。
|
|
75
80
|
|
|
76
81
|
:param total_number: The total_number of this ListScalingPoliciesResponse.
|
|
77
|
-
:type: int
|
|
82
|
+
:type total_number: int
|
|
78
83
|
"""
|
|
79
84
|
self._total_number = total_number
|
|
80
85
|
|
|
81
86
|
@property
|
|
82
87
|
def start_number(self):
|
|
83
|
-
"""Gets the start_number of this ListScalingPoliciesResponse.
|
|
88
|
+
r"""Gets the start_number of this ListScalingPoliciesResponse.
|
|
84
89
|
|
|
85
90
|
查询的起始行号。
|
|
86
91
|
|
|
@@ -91,18 +96,18 @@ class ListScalingPoliciesResponse(SdkResponse):
|
|
|
91
96
|
|
|
92
97
|
@start_number.setter
|
|
93
98
|
def start_number(self, start_number):
|
|
94
|
-
"""Sets the start_number of this ListScalingPoliciesResponse.
|
|
99
|
+
r"""Sets the start_number of this ListScalingPoliciesResponse.
|
|
95
100
|
|
|
96
101
|
查询的起始行号。
|
|
97
102
|
|
|
98
103
|
:param start_number: The start_number of this ListScalingPoliciesResponse.
|
|
99
|
-
:type: int
|
|
104
|
+
:type start_number: int
|
|
100
105
|
"""
|
|
101
106
|
self._start_number = start_number
|
|
102
107
|
|
|
103
108
|
@property
|
|
104
109
|
def limit(self):
|
|
105
|
-
"""Gets the limit of this ListScalingPoliciesResponse.
|
|
110
|
+
r"""Gets the limit of this ListScalingPoliciesResponse.
|
|
106
111
|
|
|
107
112
|
查询记录数。
|
|
108
113
|
|
|
@@ -113,42 +118,44 @@ class ListScalingPoliciesResponse(SdkResponse):
|
|
|
113
118
|
|
|
114
119
|
@limit.setter
|
|
115
120
|
def limit(self, limit):
|
|
116
|
-
"""Sets the limit of this ListScalingPoliciesResponse.
|
|
121
|
+
r"""Sets the limit of this ListScalingPoliciesResponse.
|
|
117
122
|
|
|
118
123
|
查询记录数。
|
|
119
124
|
|
|
120
125
|
:param limit: The limit of this ListScalingPoliciesResponse.
|
|
121
|
-
:type: int
|
|
126
|
+
:type limit: int
|
|
122
127
|
"""
|
|
123
128
|
self._limit = limit
|
|
124
129
|
|
|
125
130
|
@property
|
|
126
131
|
def scaling_policies(self):
|
|
127
|
-
"""Gets the scaling_policies of this ListScalingPoliciesResponse.
|
|
132
|
+
r"""Gets the scaling_policies of this ListScalingPoliciesResponse.
|
|
128
133
|
|
|
129
134
|
伸缩策略列表
|
|
130
135
|
|
|
131
136
|
:return: The scaling_policies of this ListScalingPoliciesResponse.
|
|
132
|
-
:rtype: list[
|
|
137
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.ScalingV1PolicyDetail`]
|
|
133
138
|
"""
|
|
134
139
|
return self._scaling_policies
|
|
135
140
|
|
|
136
141
|
@scaling_policies.setter
|
|
137
142
|
def scaling_policies(self, scaling_policies):
|
|
138
|
-
"""Sets the scaling_policies of this ListScalingPoliciesResponse.
|
|
143
|
+
r"""Sets the scaling_policies of this ListScalingPoliciesResponse.
|
|
139
144
|
|
|
140
145
|
伸缩策略列表
|
|
141
146
|
|
|
142
147
|
:param scaling_policies: The scaling_policies of this ListScalingPoliciesResponse.
|
|
143
|
-
:type: list[
|
|
148
|
+
:type scaling_policies: list[:class:`huaweicloudsdkas.v1.ScalingV1PolicyDetail`]
|
|
144
149
|
"""
|
|
145
150
|
self._scaling_policies = scaling_policies
|
|
146
151
|
|
|
147
152
|
def to_dict(self):
|
|
148
|
-
|
|
153
|
+
import warnings
|
|
154
|
+
warnings.warn("ListScalingPoliciesResponse.to_dict() is deprecated and no longer maintained, "
|
|
155
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
149
156
|
result = {}
|
|
150
157
|
|
|
151
|
-
for attr, _ in
|
|
158
|
+
for attr, _ in self.openapi_types.items():
|
|
152
159
|
value = getattr(self, attr)
|
|
153
160
|
if isinstance(value, list):
|
|
154
161
|
result[attr] = list(map(
|
|
@@ -173,10 +180,11 @@ class ListScalingPoliciesResponse(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
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
177
185
|
|
|
178
186
|
def __repr__(self):
|
|
179
|
-
"""For `print`
|
|
187
|
+
"""For `print`"""
|
|
180
188
|
return self.to_str()
|
|
181
189
|
|
|
182
190
|
def __eq__(self, other):
|
|
@@ -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 ListScalingPolicyExecuteLogsRequest:
|
|
13
7
|
|
|
14
|
-
|
|
15
8
|
"""
|
|
16
9
|
Attributes:
|
|
17
10
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +12,6 @@ class ListScalingPolicyExecuteLogsRequest:
|
|
|
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 = {
|
|
@@ -28,8 +20,8 @@ class ListScalingPolicyExecuteLogsRequest:
|
|
|
28
20
|
'scaling_resource_type': 'str',
|
|
29
21
|
'scaling_resource_id': 'str',
|
|
30
22
|
'execute_type': 'str',
|
|
31
|
-
'start_time': '
|
|
32
|
-
'end_time': '
|
|
23
|
+
'start_time': 'str',
|
|
24
|
+
'end_time': 'str',
|
|
33
25
|
'start_number': 'int',
|
|
34
26
|
'limit': 'int'
|
|
35
27
|
}
|
|
@@ -47,7 +39,29 @@ class ListScalingPolicyExecuteLogsRequest:
|
|
|
47
39
|
}
|
|
48
40
|
|
|
49
41
|
def __init__(self, scaling_policy_id=None, log_id=None, scaling_resource_type=None, scaling_resource_id=None, execute_type=None, start_time=None, end_time=None, start_number=None, limit=None):
|
|
50
|
-
"""ListScalingPolicyExecuteLogsRequest
|
|
42
|
+
r"""ListScalingPolicyExecuteLogsRequest
|
|
43
|
+
|
|
44
|
+
The model defined in huaweicloud sdk
|
|
45
|
+
|
|
46
|
+
:param scaling_policy_id: 伸缩策略ID。
|
|
47
|
+
:type scaling_policy_id: str
|
|
48
|
+
:param log_id: 日志ID。
|
|
49
|
+
:type log_id: str
|
|
50
|
+
:param scaling_resource_type: 伸缩资源类型:伸缩组:SCALING_GROUP。带宽:BANDWIDTH
|
|
51
|
+
:type scaling_resource_type: str
|
|
52
|
+
:param scaling_resource_id: 伸缩资源ID。
|
|
53
|
+
:type scaling_resource_id: str
|
|
54
|
+
:param execute_type: 策略执行类型:SCHEDULED:自动触发(定时)。RECURRENCE:自动触发(周期)。ALARM:自动触发(告警)。MANUAL:手动触发。
|
|
55
|
+
:type execute_type: str
|
|
56
|
+
:param start_time: 查询的起始时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
|
|
57
|
+
:type start_time: str
|
|
58
|
+
:param end_time: 查询的截止时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
|
|
59
|
+
:type end_time: str
|
|
60
|
+
:param start_number: 查询的起始行号,默认为0。
|
|
61
|
+
:type start_number: int
|
|
62
|
+
:param limit: 查询记录数,默认20,最大100。
|
|
63
|
+
:type limit: int
|
|
64
|
+
"""
|
|
51
65
|
|
|
52
66
|
|
|
53
67
|
|
|
@@ -82,8 +96,9 @@ class ListScalingPolicyExecuteLogsRequest:
|
|
|
82
96
|
|
|
83
97
|
@property
|
|
84
98
|
def scaling_policy_id(self):
|
|
85
|
-
"""Gets the scaling_policy_id of this ListScalingPolicyExecuteLogsRequest.
|
|
99
|
+
r"""Gets the scaling_policy_id of this ListScalingPolicyExecuteLogsRequest.
|
|
86
100
|
|
|
101
|
+
伸缩策略ID。
|
|
87
102
|
|
|
88
103
|
:return: The scaling_policy_id of this ListScalingPolicyExecuteLogsRequest.
|
|
89
104
|
:rtype: str
|
|
@@ -92,18 +107,20 @@ class ListScalingPolicyExecuteLogsRequest:
|
|
|
92
107
|
|
|
93
108
|
@scaling_policy_id.setter
|
|
94
109
|
def scaling_policy_id(self, scaling_policy_id):
|
|
95
|
-
"""Sets the scaling_policy_id of this ListScalingPolicyExecuteLogsRequest.
|
|
110
|
+
r"""Sets the scaling_policy_id of this ListScalingPolicyExecuteLogsRequest.
|
|
96
111
|
|
|
112
|
+
伸缩策略ID。
|
|
97
113
|
|
|
98
114
|
:param scaling_policy_id: The scaling_policy_id of this ListScalingPolicyExecuteLogsRequest.
|
|
99
|
-
:type: str
|
|
115
|
+
:type scaling_policy_id: str
|
|
100
116
|
"""
|
|
101
117
|
self._scaling_policy_id = scaling_policy_id
|
|
102
118
|
|
|
103
119
|
@property
|
|
104
120
|
def log_id(self):
|
|
105
|
-
"""Gets the log_id of this ListScalingPolicyExecuteLogsRequest.
|
|
121
|
+
r"""Gets the log_id of this ListScalingPolicyExecuteLogsRequest.
|
|
106
122
|
|
|
123
|
+
日志ID。
|
|
107
124
|
|
|
108
125
|
:return: The log_id of this ListScalingPolicyExecuteLogsRequest.
|
|
109
126
|
:rtype: str
|
|
@@ -112,18 +129,20 @@ class ListScalingPolicyExecuteLogsRequest:
|
|
|
112
129
|
|
|
113
130
|
@log_id.setter
|
|
114
131
|
def log_id(self, log_id):
|
|
115
|
-
"""Sets the log_id of this ListScalingPolicyExecuteLogsRequest.
|
|
132
|
+
r"""Sets the log_id of this ListScalingPolicyExecuteLogsRequest.
|
|
116
133
|
|
|
134
|
+
日志ID。
|
|
117
135
|
|
|
118
136
|
:param log_id: The log_id of this ListScalingPolicyExecuteLogsRequest.
|
|
119
|
-
:type: str
|
|
137
|
+
:type log_id: str
|
|
120
138
|
"""
|
|
121
139
|
self._log_id = log_id
|
|
122
140
|
|
|
123
141
|
@property
|
|
124
142
|
def scaling_resource_type(self):
|
|
125
|
-
"""Gets the scaling_resource_type of this ListScalingPolicyExecuteLogsRequest.
|
|
143
|
+
r"""Gets the scaling_resource_type of this ListScalingPolicyExecuteLogsRequest.
|
|
126
144
|
|
|
145
|
+
伸缩资源类型:伸缩组:SCALING_GROUP。带宽:BANDWIDTH
|
|
127
146
|
|
|
128
147
|
:return: The scaling_resource_type of this ListScalingPolicyExecuteLogsRequest.
|
|
129
148
|
:rtype: str
|
|
@@ -132,18 +151,20 @@ class ListScalingPolicyExecuteLogsRequest:
|
|
|
132
151
|
|
|
133
152
|
@scaling_resource_type.setter
|
|
134
153
|
def scaling_resource_type(self, scaling_resource_type):
|
|
135
|
-
"""Sets the scaling_resource_type of this ListScalingPolicyExecuteLogsRequest.
|
|
154
|
+
r"""Sets the scaling_resource_type of this ListScalingPolicyExecuteLogsRequest.
|
|
136
155
|
|
|
156
|
+
伸缩资源类型:伸缩组:SCALING_GROUP。带宽:BANDWIDTH
|
|
137
157
|
|
|
138
158
|
:param scaling_resource_type: The scaling_resource_type of this ListScalingPolicyExecuteLogsRequest.
|
|
139
|
-
:type: str
|
|
159
|
+
:type scaling_resource_type: str
|
|
140
160
|
"""
|
|
141
161
|
self._scaling_resource_type = scaling_resource_type
|
|
142
162
|
|
|
143
163
|
@property
|
|
144
164
|
def scaling_resource_id(self):
|
|
145
|
-
"""Gets the scaling_resource_id of this ListScalingPolicyExecuteLogsRequest.
|
|
165
|
+
r"""Gets the scaling_resource_id of this ListScalingPolicyExecuteLogsRequest.
|
|
146
166
|
|
|
167
|
+
伸缩资源ID。
|
|
147
168
|
|
|
148
169
|
:return: The scaling_resource_id of this ListScalingPolicyExecuteLogsRequest.
|
|
149
170
|
:rtype: str
|
|
@@ -152,18 +173,20 @@ class ListScalingPolicyExecuteLogsRequest:
|
|
|
152
173
|
|
|
153
174
|
@scaling_resource_id.setter
|
|
154
175
|
def scaling_resource_id(self, scaling_resource_id):
|
|
155
|
-
"""Sets the scaling_resource_id of this ListScalingPolicyExecuteLogsRequest.
|
|
176
|
+
r"""Sets the scaling_resource_id of this ListScalingPolicyExecuteLogsRequest.
|
|
156
177
|
|
|
178
|
+
伸缩资源ID。
|
|
157
179
|
|
|
158
180
|
:param scaling_resource_id: The scaling_resource_id of this ListScalingPolicyExecuteLogsRequest.
|
|
159
|
-
:type: str
|
|
181
|
+
:type scaling_resource_id: str
|
|
160
182
|
"""
|
|
161
183
|
self._scaling_resource_id = scaling_resource_id
|
|
162
184
|
|
|
163
185
|
@property
|
|
164
186
|
def execute_type(self):
|
|
165
|
-
"""Gets the execute_type of this ListScalingPolicyExecuteLogsRequest.
|
|
187
|
+
r"""Gets the execute_type of this ListScalingPolicyExecuteLogsRequest.
|
|
166
188
|
|
|
189
|
+
策略执行类型:SCHEDULED:自动触发(定时)。RECURRENCE:自动触发(周期)。ALARM:自动触发(告警)。MANUAL:手动触发。
|
|
167
190
|
|
|
168
191
|
:return: The execute_type of this ListScalingPolicyExecuteLogsRequest.
|
|
169
192
|
:rtype: str
|
|
@@ -172,58 +195,64 @@ class ListScalingPolicyExecuteLogsRequest:
|
|
|
172
195
|
|
|
173
196
|
@execute_type.setter
|
|
174
197
|
def execute_type(self, execute_type):
|
|
175
|
-
"""Sets the execute_type of this ListScalingPolicyExecuteLogsRequest.
|
|
198
|
+
r"""Sets the execute_type of this ListScalingPolicyExecuteLogsRequest.
|
|
176
199
|
|
|
200
|
+
策略执行类型:SCHEDULED:自动触发(定时)。RECURRENCE:自动触发(周期)。ALARM:自动触发(告警)。MANUAL:手动触发。
|
|
177
201
|
|
|
178
202
|
:param execute_type: The execute_type of this ListScalingPolicyExecuteLogsRequest.
|
|
179
|
-
:type: str
|
|
203
|
+
:type execute_type: str
|
|
180
204
|
"""
|
|
181
205
|
self._execute_type = execute_type
|
|
182
206
|
|
|
183
207
|
@property
|
|
184
208
|
def start_time(self):
|
|
185
|
-
"""Gets the start_time of this ListScalingPolicyExecuteLogsRequest.
|
|
209
|
+
r"""Gets the start_time of this ListScalingPolicyExecuteLogsRequest.
|
|
186
210
|
|
|
211
|
+
查询的起始时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
|
|
187
212
|
|
|
188
213
|
:return: The start_time of this ListScalingPolicyExecuteLogsRequest.
|
|
189
|
-
:rtype:
|
|
214
|
+
:rtype: str
|
|
190
215
|
"""
|
|
191
216
|
return self._start_time
|
|
192
217
|
|
|
193
218
|
@start_time.setter
|
|
194
219
|
def start_time(self, start_time):
|
|
195
|
-
"""Sets the start_time of this ListScalingPolicyExecuteLogsRequest.
|
|
220
|
+
r"""Sets the start_time of this ListScalingPolicyExecuteLogsRequest.
|
|
196
221
|
|
|
222
|
+
查询的起始时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
|
|
197
223
|
|
|
198
224
|
:param start_time: The start_time of this ListScalingPolicyExecuteLogsRequest.
|
|
199
|
-
:type:
|
|
225
|
+
:type start_time: str
|
|
200
226
|
"""
|
|
201
227
|
self._start_time = start_time
|
|
202
228
|
|
|
203
229
|
@property
|
|
204
230
|
def end_time(self):
|
|
205
|
-
"""Gets the end_time of this ListScalingPolicyExecuteLogsRequest.
|
|
231
|
+
r"""Gets the end_time of this ListScalingPolicyExecuteLogsRequest.
|
|
206
232
|
|
|
233
|
+
查询的截止时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
|
|
207
234
|
|
|
208
235
|
:return: The end_time of this ListScalingPolicyExecuteLogsRequest.
|
|
209
|
-
:rtype:
|
|
236
|
+
:rtype: str
|
|
210
237
|
"""
|
|
211
238
|
return self._end_time
|
|
212
239
|
|
|
213
240
|
@end_time.setter
|
|
214
241
|
def end_time(self, end_time):
|
|
215
|
-
"""Sets the end_time of this ListScalingPolicyExecuteLogsRequest.
|
|
242
|
+
r"""Sets the end_time of this ListScalingPolicyExecuteLogsRequest.
|
|
216
243
|
|
|
244
|
+
查询的截止时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
|
|
217
245
|
|
|
218
246
|
:param end_time: The end_time of this ListScalingPolicyExecuteLogsRequest.
|
|
219
|
-
:type:
|
|
247
|
+
:type end_time: str
|
|
220
248
|
"""
|
|
221
249
|
self._end_time = end_time
|
|
222
250
|
|
|
223
251
|
@property
|
|
224
252
|
def start_number(self):
|
|
225
|
-
"""Gets the start_number of this ListScalingPolicyExecuteLogsRequest.
|
|
253
|
+
r"""Gets the start_number of this ListScalingPolicyExecuteLogsRequest.
|
|
226
254
|
|
|
255
|
+
查询的起始行号,默认为0。
|
|
227
256
|
|
|
228
257
|
:return: The start_number of this ListScalingPolicyExecuteLogsRequest.
|
|
229
258
|
:rtype: int
|
|
@@ -232,18 +261,20 @@ class ListScalingPolicyExecuteLogsRequest:
|
|
|
232
261
|
|
|
233
262
|
@start_number.setter
|
|
234
263
|
def start_number(self, start_number):
|
|
235
|
-
"""Sets the start_number of this ListScalingPolicyExecuteLogsRequest.
|
|
264
|
+
r"""Sets the start_number of this ListScalingPolicyExecuteLogsRequest.
|
|
236
265
|
|
|
266
|
+
查询的起始行号,默认为0。
|
|
237
267
|
|
|
238
268
|
:param start_number: The start_number of this ListScalingPolicyExecuteLogsRequest.
|
|
239
|
-
:type: int
|
|
269
|
+
:type start_number: int
|
|
240
270
|
"""
|
|
241
271
|
self._start_number = start_number
|
|
242
272
|
|
|
243
273
|
@property
|
|
244
274
|
def limit(self):
|
|
245
|
-
"""Gets the limit of this ListScalingPolicyExecuteLogsRequest.
|
|
275
|
+
r"""Gets the limit of this ListScalingPolicyExecuteLogsRequest.
|
|
246
276
|
|
|
277
|
+
查询记录数,默认20,最大100。
|
|
247
278
|
|
|
248
279
|
:return: The limit of this ListScalingPolicyExecuteLogsRequest.
|
|
249
280
|
:rtype: int
|
|
@@ -252,19 +283,19 @@ class ListScalingPolicyExecuteLogsRequest:
|
|
|
252
283
|
|
|
253
284
|
@limit.setter
|
|
254
285
|
def limit(self, limit):
|
|
255
|
-
"""Sets the limit of this ListScalingPolicyExecuteLogsRequest.
|
|
286
|
+
r"""Sets the limit of this ListScalingPolicyExecuteLogsRequest.
|
|
256
287
|
|
|
288
|
+
查询记录数,默认20,最大100。
|
|
257
289
|
|
|
258
290
|
:param limit: The limit of this ListScalingPolicyExecuteLogsRequest.
|
|
259
|
-
:type: int
|
|
291
|
+
:type limit: int
|
|
260
292
|
"""
|
|
261
293
|
self._limit = limit
|
|
262
294
|
|
|
263
295
|
def to_dict(self):
|
|
264
|
-
"""Returns the model properties as a dict"""
|
|
265
296
|
result = {}
|
|
266
297
|
|
|
267
|
-
for attr, _ in
|
|
298
|
+
for attr, _ in self.openapi_types.items():
|
|
268
299
|
value = getattr(self, attr)
|
|
269
300
|
if isinstance(value, list):
|
|
270
301
|
result[attr] = list(map(
|
|
@@ -289,10 +320,11 @@ class ListScalingPolicyExecuteLogsRequest:
|
|
|
289
320
|
|
|
290
321
|
def to_str(self):
|
|
291
322
|
"""Returns the string representation of the model"""
|
|
292
|
-
|
|
323
|
+
import simplejson as json
|
|
324
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
293
325
|
|
|
294
326
|
def __repr__(self):
|
|
295
|
-
"""For `print`
|
|
327
|
+
"""For `print`"""
|
|
296
328
|
return self.to_str()
|
|
297
329
|
|
|
298
330
|
def __eq__(self, other):
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
|
-
import six
|
|
7
|
-
|
|
8
|
-
|
|
9
3
|
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
5
|
|
|
11
6
|
|
|
12
7
|
class ListScalingPolicyExecuteLogsResponse(SdkResponse):
|
|
13
8
|
|
|
14
|
-
|
|
15
9
|
"""
|
|
16
10
|
Attributes:
|
|
17
11
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +13,6 @@ class ListScalingPolicyExecuteLogsResponse(SdkResponse):
|
|
|
19
13
|
attribute_map (dict): The key is attribute name
|
|
20
14
|
and the value is json key in definition.
|
|
21
15
|
"""
|
|
22
|
-
|
|
23
16
|
sensitive_list = []
|
|
24
17
|
|
|
25
18
|
openapi_types = {
|
|
@@ -37,7 +30,19 @@ class ListScalingPolicyExecuteLogsResponse(SdkResponse):
|
|
|
37
30
|
}
|
|
38
31
|
|
|
39
32
|
def __init__(self, total_number=None, start_number=None, limit=None, scaling_policy_execute_log=None):
|
|
40
|
-
"""ListScalingPolicyExecuteLogsResponse
|
|
33
|
+
r"""ListScalingPolicyExecuteLogsResponse
|
|
34
|
+
|
|
35
|
+
The model defined in huaweicloud sdk
|
|
36
|
+
|
|
37
|
+
:param total_number: 总记录数。
|
|
38
|
+
:type total_number: int
|
|
39
|
+
:param start_number: 查询的起始行号。
|
|
40
|
+
:type start_number: int
|
|
41
|
+
:param limit: 查询记录数。
|
|
42
|
+
:type limit: int
|
|
43
|
+
:param scaling_policy_execute_log: 伸缩策略执行日志列表。
|
|
44
|
+
:type scaling_policy_execute_log: list[:class:`huaweicloudsdkas.v1.ScalingPolicyExecuteLogList`]
|
|
45
|
+
"""
|
|
41
46
|
|
|
42
47
|
super().__init__()
|
|
43
48
|
|
|
@@ -58,7 +63,7 @@ class ListScalingPolicyExecuteLogsResponse(SdkResponse):
|
|
|
58
63
|
|
|
59
64
|
@property
|
|
60
65
|
def total_number(self):
|
|
61
|
-
"""Gets the total_number of this ListScalingPolicyExecuteLogsResponse.
|
|
66
|
+
r"""Gets the total_number of this ListScalingPolicyExecuteLogsResponse.
|
|
62
67
|
|
|
63
68
|
总记录数。
|
|
64
69
|
|
|
@@ -69,18 +74,18 @@ class ListScalingPolicyExecuteLogsResponse(SdkResponse):
|
|
|
69
74
|
|
|
70
75
|
@total_number.setter
|
|
71
76
|
def total_number(self, total_number):
|
|
72
|
-
"""Sets the total_number of this ListScalingPolicyExecuteLogsResponse.
|
|
77
|
+
r"""Sets the total_number of this ListScalingPolicyExecuteLogsResponse.
|
|
73
78
|
|
|
74
79
|
总记录数。
|
|
75
80
|
|
|
76
81
|
:param total_number: The total_number of this ListScalingPolicyExecuteLogsResponse.
|
|
77
|
-
:type: int
|
|
82
|
+
:type total_number: int
|
|
78
83
|
"""
|
|
79
84
|
self._total_number = total_number
|
|
80
85
|
|
|
81
86
|
@property
|
|
82
87
|
def start_number(self):
|
|
83
|
-
"""Gets the start_number of this ListScalingPolicyExecuteLogsResponse.
|
|
88
|
+
r"""Gets the start_number of this ListScalingPolicyExecuteLogsResponse.
|
|
84
89
|
|
|
85
90
|
查询的起始行号。
|
|
86
91
|
|
|
@@ -91,18 +96,18 @@ class ListScalingPolicyExecuteLogsResponse(SdkResponse):
|
|
|
91
96
|
|
|
92
97
|
@start_number.setter
|
|
93
98
|
def start_number(self, start_number):
|
|
94
|
-
"""Sets the start_number of this ListScalingPolicyExecuteLogsResponse.
|
|
99
|
+
r"""Sets the start_number of this ListScalingPolicyExecuteLogsResponse.
|
|
95
100
|
|
|
96
101
|
查询的起始行号。
|
|
97
102
|
|
|
98
103
|
:param start_number: The start_number of this ListScalingPolicyExecuteLogsResponse.
|
|
99
|
-
:type: int
|
|
104
|
+
:type start_number: int
|
|
100
105
|
"""
|
|
101
106
|
self._start_number = start_number
|
|
102
107
|
|
|
103
108
|
@property
|
|
104
109
|
def limit(self):
|
|
105
|
-
"""Gets the limit of this ListScalingPolicyExecuteLogsResponse.
|
|
110
|
+
r"""Gets the limit of this ListScalingPolicyExecuteLogsResponse.
|
|
106
111
|
|
|
107
112
|
查询记录数。
|
|
108
113
|
|
|
@@ -113,42 +118,44 @@ class ListScalingPolicyExecuteLogsResponse(SdkResponse):
|
|
|
113
118
|
|
|
114
119
|
@limit.setter
|
|
115
120
|
def limit(self, limit):
|
|
116
|
-
"""Sets the limit of this ListScalingPolicyExecuteLogsResponse.
|
|
121
|
+
r"""Sets the limit of this ListScalingPolicyExecuteLogsResponse.
|
|
117
122
|
|
|
118
123
|
查询记录数。
|
|
119
124
|
|
|
120
125
|
:param limit: The limit of this ListScalingPolicyExecuteLogsResponse.
|
|
121
|
-
:type: int
|
|
126
|
+
:type limit: int
|
|
122
127
|
"""
|
|
123
128
|
self._limit = limit
|
|
124
129
|
|
|
125
130
|
@property
|
|
126
131
|
def scaling_policy_execute_log(self):
|
|
127
|
-
"""Gets the scaling_policy_execute_log of this ListScalingPolicyExecuteLogsResponse.
|
|
132
|
+
r"""Gets the scaling_policy_execute_log of this ListScalingPolicyExecuteLogsResponse.
|
|
128
133
|
|
|
129
134
|
伸缩策略执行日志列表。
|
|
130
135
|
|
|
131
136
|
:return: The scaling_policy_execute_log of this ListScalingPolicyExecuteLogsResponse.
|
|
132
|
-
:rtype: list[ScalingPolicyExecuteLogList]
|
|
137
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.ScalingPolicyExecuteLogList`]
|
|
133
138
|
"""
|
|
134
139
|
return self._scaling_policy_execute_log
|
|
135
140
|
|
|
136
141
|
@scaling_policy_execute_log.setter
|
|
137
142
|
def scaling_policy_execute_log(self, scaling_policy_execute_log):
|
|
138
|
-
"""Sets the scaling_policy_execute_log of this ListScalingPolicyExecuteLogsResponse.
|
|
143
|
+
r"""Sets the scaling_policy_execute_log of this ListScalingPolicyExecuteLogsResponse.
|
|
139
144
|
|
|
140
145
|
伸缩策略执行日志列表。
|
|
141
146
|
|
|
142
147
|
:param scaling_policy_execute_log: The scaling_policy_execute_log of this ListScalingPolicyExecuteLogsResponse.
|
|
143
|
-
:type: list[ScalingPolicyExecuteLogList]
|
|
148
|
+
:type scaling_policy_execute_log: list[:class:`huaweicloudsdkas.v1.ScalingPolicyExecuteLogList`]
|
|
144
149
|
"""
|
|
145
150
|
self._scaling_policy_execute_log = scaling_policy_execute_log
|
|
146
151
|
|
|
147
152
|
def to_dict(self):
|
|
148
|
-
|
|
153
|
+
import warnings
|
|
154
|
+
warnings.warn("ListScalingPolicyExecuteLogsResponse.to_dict() is deprecated and no longer maintained, "
|
|
155
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
149
156
|
result = {}
|
|
150
157
|
|
|
151
|
-
for attr, _ in
|
|
158
|
+
for attr, _ in self.openapi_types.items():
|
|
152
159
|
value = getattr(self, attr)
|
|
153
160
|
if isinstance(value, list):
|
|
154
161
|
result[attr] = list(map(
|
|
@@ -173,10 +180,11 @@ class ListScalingPolicyExecuteLogsResponse(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
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
177
185
|
|
|
178
186
|
def __repr__(self):
|
|
179
|
-
"""For `print`
|
|
187
|
+
"""For `print`"""
|
|
180
188
|
return self.to_str()
|
|
181
189
|
|
|
182
190
|
def __eq__(self, other):
|