huaweicloudsdkas 3.0.33rc0__py3-none-any.whl → 3.1.176__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkas/v1/__init__.py +135 -34
- huaweicloudsdkas/v1/as_async_client.py +3419 -1442
- huaweicloudsdkas/v1/as_client.py +3417 -1441
- huaweicloudsdkas/v1/model/__init__.py +134 -32
- huaweicloudsdkas/v1/model/all_quotas.py +16 -18
- huaweicloudsdkas/v1/model/all_resources.py +62 -29
- huaweicloudsdkas/v1/model/allowed_address_pair.py +108 -0
- huaweicloudsdkas/v1/model/attach_callback_instance_life_cycle_hook_request.py +132 -0
- huaweicloudsdkas/v1/model/attach_callback_instance_life_cycle_hook_response.py +81 -0
- huaweicloudsdkas/v1/model/bandwidth_info.py +194 -0
- huaweicloudsdkas/v1/model/{bandwidth.py → bandwidth_result.py} +52 -46
- huaweicloudsdkas/v1/model/{update_scaling_group_instance_request_body.py → batch_add_instances_option.py} +40 -36
- huaweicloudsdkas/v1/model/batch_add_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_add_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/{batch_delete_scaling_configs_request_body.py → batch_delete_scaling_config_option.py} +20 -23
- huaweicloudsdkas/v1/model/batch_delete_scaling_configs_request.py +17 -21
- huaweicloudsdkas/v1/model/batch_delete_scaling_configs_response.py +13 -13
- huaweicloudsdkas/v1/model/batch_delete_scaling_policies_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_delete_scaling_policies_request.py +104 -0
- huaweicloudsdkas/v1/model/{update_scaling_group_instance_response.py → batch_delete_scaling_policies_response.py} +15 -15
- huaweicloudsdkas/v1/model/batch_enter_standby_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_exit_stand_by_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_pause_scaling_policies_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_pause_scaling_policies_request.py +104 -0
- huaweicloudsdkas/v1/model/batch_pause_scaling_policies_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_protect_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_protect_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_protect_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_remove_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_remove_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_remove_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_resume_scaling_policies_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_resume_scaling_policies_request.py +104 -0
- huaweicloudsdkas/v1/model/batch_resume_scaling_policies_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_set_scaling_instances_standby_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_set_scaling_instances_standby_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_unprotect_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_unprotect_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_unprotect_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_unset_scaling_instances_stantby_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_unset_scaling_instances_stantby_response.py +81 -0
- huaweicloudsdkas/v1/model/{complete_lifecycle_action_request_body.py → callback_life_cycle_hook_option.py} +40 -36
- huaweicloudsdkas/v1/model/close_warm_pool_request.py +107 -0
- huaweicloudsdkas/v1/model/{complete_lifecycle_action_response.py → close_warm_pool_response.py} +15 -15
- huaweicloudsdkas/v1/model/create_group_scheduled_task_request.py +132 -0
- huaweicloudsdkas/v1/model/create_group_scheduled_task_response.py +112 -0
- huaweicloudsdkas/v1/model/{create_life_cycle_hook_request_body.py → create_life_cycle_hook_option.py} +56 -48
- huaweicloudsdkas/v1/model/create_lify_cycle_hook_request.py +24 -24
- huaweicloudsdkas/v1/model/create_lify_cycle_hook_response.py +55 -39
- huaweicloudsdkas/v1/model/{create_notification_request_body.py → create_notification_option.py} +28 -30
- huaweicloudsdkas/v1/model/create_scaling_config_option.py +162 -0
- huaweicloudsdkas/v1/model/create_scaling_config_request.py +17 -21
- huaweicloudsdkas/v1/model/create_scaling_config_response.py +18 -16
- huaweicloudsdkas/v1/model/{create_scaling_group_request_body.py → create_scaling_group_option.py} +286 -135
- huaweicloudsdkas/v1/model/create_scaling_group_request.py +17 -21
- huaweicloudsdkas/v1/model/create_scaling_group_response.py +18 -16
- huaweicloudsdkas/v1/model/create_scaling_notification_request.py +24 -24
- huaweicloudsdkas/v1/model/create_scaling_notification_response.py +28 -22
- huaweicloudsdkas/v1/model/{create_scaling_policy_request_body.py → create_scaling_policy_option.py} +66 -60
- huaweicloudsdkas/v1/model/create_scaling_policy_request.py +17 -21
- huaweicloudsdkas/v1/model/create_scaling_policy_response.py +18 -16
- huaweicloudsdkas/v1/model/create_scaling_policy_v2_option.py +353 -0
- huaweicloudsdkas/v1/model/{create_scaling_tags_request.py → create_scaling_tag_info_request.py} +39 -35
- huaweicloudsdkas/v1/model/create_scaling_tag_info_response.py +81 -0
- huaweicloudsdkas/v1/model/create_scaling_v2_policy_request.py +104 -0
- huaweicloudsdkas/v1/model/create_scaling_v2_policy_response.py +112 -0
- huaweicloudsdkas/v1/model/create_scheduled_task_option.py +155 -0
- huaweicloudsdkas/v1/model/{delete_scaling_tags_request_body.py → create_tags_option.py} +32 -34
- huaweicloudsdkas/v1/model/delete_group_scheduled_task_request.py +135 -0
- huaweicloudsdkas/v1/model/delete_group_scheduled_task_response.py +81 -0
- huaweicloudsdkas/v1/model/delete_lifecycle_hook_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_lifecycle_hook_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_config_request.py +17 -17
- huaweicloudsdkas/v1/model/delete_scaling_config_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_group_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_scaling_group_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_instance_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_scaling_instance_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_notification_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_scaling_notification_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_policy_request.py +17 -17
- huaweicloudsdkas/v1/model/delete_scaling_policy_response.py +13 -13
- huaweicloudsdkas/v1/model/{delete_scaling_tags_request.py → delete_scaling_tag_info_request.py} +39 -35
- huaweicloudsdkas/v1/model/delete_scaling_tag_info_response.py +81 -0
- huaweicloudsdkas/v1/model/{create_scaling_tags_request_body.py → delete_tags_option.py} +34 -36
- huaweicloudsdkas/v1/model/disk_info.py +333 -0
- huaweicloudsdkas/v1/model/disk_result.py +336 -0
- huaweicloudsdkas/v1/model/{eip.py → eip_info.py} +28 -30
- huaweicloudsdkas/v1/model/eip_meta_data.py +166 -0
- huaweicloudsdkas/v1/model/eip_result.py +133 -0
- huaweicloudsdkas/v1/model/execute_scaling_policy_option.py +107 -0
- huaweicloudsdkas/v1/model/execute_scaling_policy_request.py +24 -24
- huaweicloudsdkas/v1/model/execute_scaling_policy_response.py +13 -13
- huaweicloudsdkas/v1/model/instance_config.py +99 -77
- huaweicloudsdkas/v1/model/instance_config_result.py +186 -75
- huaweicloudsdkas/v1/model/instance_hanging_infos.py +47 -37
- huaweicloudsdkas/v1/model/integer_range.py +166 -0
- huaweicloudsdkas/v1/model/interval_alarm_actions_v2.py +245 -0
- huaweicloudsdkas/v1/model/ipv6_bandwidth.py +15 -17
- huaweicloudsdkas/v1/model/job_records.py +52 -40
- huaweicloudsdkas/v1/model/lbaas_listener.py +195 -0
- huaweicloudsdkas/v1/model/lbaas_listeners.py +60 -30
- huaweicloudsdkas/v1/model/lbaas_listeners_result.py +74 -41
- huaweicloudsdkas/v1/model/lifecycle_hook_list.py +52 -40
- huaweicloudsdkas/v1/model/links.py +137 -0
- huaweicloudsdkas/v1/model/list_all_scaling_v2_policies_request.py +398 -0
- huaweicloudsdkas/v1/model/list_all_scaling_v2_policies_response.py +199 -0
- huaweicloudsdkas/v1/model/{delete_scaling_tags_response.py → list_api_versions_request.py} +13 -17
- huaweicloudsdkas/v1/model/list_api_versions_response.py +112 -0
- huaweicloudsdkas/v1/model/list_group_scheduled_tasks_request.py +165 -0
- huaweicloudsdkas/v1/model/list_group_scheduled_tasks_response.py +137 -0
- huaweicloudsdkas/v1/model/list_hook_instances_request.py +24 -20
- huaweicloudsdkas/v1/model/list_hook_instances_response.py +19 -17
- huaweicloudsdkas/v1/model/list_life_cycle_hooks_request.py +17 -17
- huaweicloudsdkas/v1/model/list_life_cycle_hooks_response.py +19 -17
- huaweicloudsdkas/v1/model/list_resource_instances_request.py +24 -24
- huaweicloudsdkas/v1/model/list_resource_instances_response.py +31 -25
- huaweicloudsdkas/v1/model/list_scaling_activity_logs_request.py +49 -33
- huaweicloudsdkas/v1/model/list_scaling_activity_logs_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_activity_v2_logs_request.py +310 -0
- huaweicloudsdkas/v1/model/list_scaling_activity_v2_logs_response.py +199 -0
- huaweicloudsdkas/v1/model/list_scaling_configs_request.py +38 -26
- huaweicloudsdkas/v1/model/list_scaling_configs_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_groups_request.py +77 -32
- huaweicloudsdkas/v1/model/list_scaling_groups_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_instances_request.py +52 -32
- huaweicloudsdkas/v1/model/list_scaling_instances_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_notifications_request.py +17 -17
- huaweicloudsdkas/v1/model/list_scaling_notifications_response.py +19 -17
- huaweicloudsdkas/v1/model/list_scaling_policies_request.py +52 -32
- huaweicloudsdkas/v1/model/list_scaling_policies_response.py +35 -27
- huaweicloudsdkas/v1/model/list_scaling_policy_execute_logs_request.py +77 -45
- huaweicloudsdkas/v1/model/list_scaling_policy_execute_logs_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_resource_id_request.py +24 -20
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_resource_id_response.py +25 -21
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_tenant_id_request.py +17 -17
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_tenant_id_response.py +19 -17
- huaweicloudsdkas/v1/model/list_scaling_v2_policies_request.py +252 -0
- huaweicloudsdkas/v1/model/list_scaling_v2_policies_response.py +199 -0
- huaweicloudsdkas/v1/model/list_warm_pool_instances_request.py +165 -0
- huaweicloudsdkas/v1/model/list_warm_pool_instances_response.py +137 -0
- huaweicloudsdkas/v1/model/matches.py +22 -24
- huaweicloudsdkas/v1/model/meta_data.py +59 -32
- huaweicloudsdkas/v1/model/modify_lb.py +191 -0
- huaweicloudsdkas/v1/model/networks.py +60 -31
- huaweicloudsdkas/v1/model/networks_result.py +191 -0
- huaweicloudsdkas/v1/model/page_info.py +108 -0
- huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_request_body.py → pause_scaling_group_option.py} +20 -23
- huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_request.py → pause_scaling_group_request.py} +30 -30
- huaweicloudsdkas/v1/model/{create_scaling_tags_response.py → pause_scaling_group_response.py} +15 -15
- huaweicloudsdkas/v1/model/{execute_scaling_policy_request_body.py → pause_scaling_policy_option.py} +20 -23
- huaweicloudsdkas/v1/model/pause_scaling_policy_request.py +132 -0
- huaweicloudsdkas/v1/model/pause_scaling_policy_response.py +81 -0
- huaweicloudsdkas/v1/model/{personality.py → personality_info.py} +26 -26
- huaweicloudsdkas/v1/model/personality_result.py +137 -0
- huaweicloudsdkas/v1/model/policy_instance_quotas.py +16 -18
- huaweicloudsdkas/v1/model/policy_instance_resources.py +62 -29
- huaweicloudsdkas/v1/model/public_ip.py +17 -21
- huaweicloudsdkas/v1/model/publicip_result.py +104 -0
- huaweicloudsdkas/v1/model/put_warm_pool_option.py +166 -0
- huaweicloudsdkas/v1/model/{complete_lifecycle_action_request.py → put_warm_pool_request.py} +30 -30
- huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_response.py → put_warm_pool_response.py} +15 -15
- huaweicloudsdkas/v1/model/{show_tags_request_body.py → query_tags_option.py} +91 -77
- huaweicloudsdkas/v1/model/resource_tags.py +20 -20
- huaweicloudsdkas/v1/model/resources.py +31 -27
- huaweicloudsdkas/v1/model/resume_scaling_group_option.py +107 -0
- huaweicloudsdkas/v1/model/{update_scaling_group_instance_request.py → resume_scaling_group_request.py} +30 -30
- huaweicloudsdkas/v1/model/resume_scaling_group_response.py +81 -0
- huaweicloudsdkas/v1/model/resume_scaling_policy_option.py +107 -0
- huaweicloudsdkas/v1/model/resume_scaling_policy_request.py +132 -0
- huaweicloudsdkas/v1/model/resume_scaling_policy_response.py +81 -0
- huaweicloudsdkas/v1/model/scaling_activity_log_list.py +67 -49
- huaweicloudsdkas/v1/model/scaling_activity_log_v2.py +601 -0
- huaweicloudsdkas/v1/model/scaling_all_policy_detail.py +469 -0
- huaweicloudsdkas/v1/model/scaling_configuration.py +68 -35
- huaweicloudsdkas/v1/model/scaling_group_instance.py +62 -46
- huaweicloudsdkas/v1/model/scaling_groups.py +328 -104
- huaweicloudsdkas/v1/model/scaling_instance.py +224 -0
- huaweicloudsdkas/v1/model/scaling_policies_v2.py +469 -0
- huaweicloudsdkas/v1/model/{scaling_policy_action.py → scaling_policy_action_v1.py} +37 -35
- huaweicloudsdkas/v1/model/scaling_policy_action_v2.py +195 -0
- huaweicloudsdkas/v1/model/scaling_policy_execute_log_list.py +105 -81
- huaweicloudsdkas/v1/model/scaling_policy_v2_meta_data.py +166 -0
- huaweicloudsdkas/v1/model/{scaling_policy_detail.py → scaling_v1_policy_detail.py} +110 -71
- huaweicloudsdkas/v1/model/scaling_v2_policy_detail.py +469 -0
- huaweicloudsdkas/v1/model/scheduled_policy.py +38 -33
- huaweicloudsdkas/v1/model/scheduled_task_detail.py +332 -0
- huaweicloudsdkas/v1/model/scheduled_task_policy.py +223 -0
- huaweicloudsdkas/v1/model/security_group.py +107 -0
- huaweicloudsdkas/v1/model/security_groups.py +17 -19
- huaweicloudsdkas/v1/model/security_groups_result.py +15 -17
- huaweicloudsdkas/v1/model/show_api_version_request.py +107 -0
- huaweicloudsdkas/v1/model/show_api_version_response.py +108 -0
- huaweicloudsdkas/v1/model/show_life_cycle_hook_request.py +24 -20
- huaweicloudsdkas/v1/model/show_life_cycle_hook_response.py +55 -39
- huaweicloudsdkas/v1/model/show_policy_and_instance_quota_request.py +17 -17
- huaweicloudsdkas/v1/model/show_policy_and_instance_quota_response.py +32 -32
- huaweicloudsdkas/v1/model/show_resource_quota_request.py +10 -14
- huaweicloudsdkas/v1/model/show_resource_quota_response.py +19 -19
- huaweicloudsdkas/v1/model/show_scaling_config_request.py +17 -17
- huaweicloudsdkas/v1/model/show_scaling_config_response.py +19 -19
- huaweicloudsdkas/v1/model/show_scaling_group_request.py +17 -17
- huaweicloudsdkas/v1/model/show_scaling_group_response.py +19 -19
- huaweicloudsdkas/v1/model/show_scaling_policy_request.py +17 -17
- huaweicloudsdkas/v1/model/show_scaling_policy_response.py +20 -20
- huaweicloudsdkas/v1/model/show_scaling_v2_policy_request.py +107 -0
- huaweicloudsdkas/v1/model/show_scaling_v2_policy_response.py +108 -0
- huaweicloudsdkas/v1/model/show_warm_pool_request.py +107 -0
- huaweicloudsdkas/v1/model/show_warm_pool_response.py +108 -0
- huaweicloudsdkas/v1/model/tags_multi_value.py +26 -28
- huaweicloudsdkas/v1/model/tags_single_value.py +25 -26
- huaweicloudsdkas/v1/model/topics.py +25 -23
- huaweicloudsdkas/v1/model/update_group_scheduled_task_request.py +160 -0
- huaweicloudsdkas/v1/model/update_group_scheduled_task_response.py +81 -0
- huaweicloudsdkas/v1/model/update_instance_config.py +107 -0
- huaweicloudsdkas/v1/model/{update_life_cycle_hook_request_body.py → update_life_cycle_hook_option.py} +49 -43
- huaweicloudsdkas/v1/model/update_life_cycle_hook_request.py +31 -27
- huaweicloudsdkas/v1/model/update_life_cycle_hook_response.py +55 -39
- huaweicloudsdkas/v1/model/update_scaling_config_option.py +103 -0
- huaweicloudsdkas/v1/model/update_scaling_config_request.py +128 -0
- huaweicloudsdkas/v1/model/update_scaling_config_response.py +81 -0
- huaweicloudsdkas/v1/model/{update_scaling_group_request_body.py → update_scaling_group_option.py} +263 -115
- huaweicloudsdkas/v1/model/update_scaling_group_request.py +24 -24
- huaweicloudsdkas/v1/model/update_scaling_group_response.py +18 -16
- huaweicloudsdkas/v1/model/{update_scaling_policy_request_body.py → update_scaling_policy_option.py} +59 -55
- huaweicloudsdkas/v1/model/update_scaling_policy_request.py +24 -24
- huaweicloudsdkas/v1/model/update_scaling_policy_response.py +18 -16
- huaweicloudsdkas/v1/model/update_scaling_v2_policy_option.py +357 -0
- huaweicloudsdkas/v1/model/update_scaling_v2_policy_request.py +132 -0
- huaweicloudsdkas/v1/model/update_scaling_v2_policy_response.py +112 -0
- huaweicloudsdkas/v1/model/update_scheduled_task_option.py +158 -0
- huaweicloudsdkas/v1/model/version_info.py +253 -0
- huaweicloudsdkas/v1/model/vm_meta_data.py +108 -0
- huaweicloudsdkas/v1/model/warm_pool_info.py +195 -0
- huaweicloudsdkas/v1/model/warm_pool_instance.py +195 -0
- huaweicloudsdkas/v1/region/as_region.py +112 -38
- huaweicloudsdkas-3.1.176.dist-info/METADATA +25 -0
- huaweicloudsdkas-3.1.176.dist-info/RECORD +242 -0
- {huaweicloudsdkas-3.0.33rc0.dist-info → huaweicloudsdkas-3.1.176.dist-info}/WHEEL +1 -2
- huaweicloudsdkas/v1/model/create_scaling_config_request_body.py +0 -133
- huaweicloudsdkas/v1/model/disk.py +0 -242
- huaweicloudsdkas-3.0.33rc0.dist-info/METADATA +0 -26
- huaweicloudsdkas-3.0.33rc0.dist-info/RECORD +0 -141
- huaweicloudsdkas-3.0.33rc0.dist-info/top_level.txt +0 -1
- {huaweicloudsdkas-3.0.33rc0.dist-info → huaweicloudsdkas-3.1.176.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
|
-
import six
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
4
|
|
|
11
5
|
|
|
12
6
|
class ScalingPolicyExecuteLogList:
|
|
13
7
|
|
|
14
|
-
|
|
15
8
|
"""
|
|
16
9
|
Attributes:
|
|
17
10
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,25 +12,24 @@ class ScalingPolicyExecuteLogList:
|
|
|
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 = {
|
|
26
18
|
'status': 'str',
|
|
27
19
|
'failed_reason': 'str',
|
|
28
20
|
'execute_type': 'str',
|
|
29
|
-
'execute_time': '
|
|
21
|
+
'execute_time': 'str',
|
|
30
22
|
'id': 'str',
|
|
31
|
-
'
|
|
23
|
+
'tenant_id': 'str',
|
|
32
24
|
'scaling_policy_id': 'str',
|
|
33
25
|
'scaling_resource_type': 'str',
|
|
34
26
|
'scaling_resource_id': 'str',
|
|
35
27
|
'old_value': 'str',
|
|
36
28
|
'desire_value': 'str',
|
|
37
|
-
'limit_value': '
|
|
29
|
+
'limit_value': 'str',
|
|
38
30
|
'type': 'str',
|
|
39
31
|
'job_records': 'list[JobRecords]',
|
|
40
|
-
'meta_data': '
|
|
32
|
+
'meta_data': 'EipMetaData'
|
|
41
33
|
}
|
|
42
34
|
|
|
43
35
|
attribute_map = {
|
|
@@ -46,7 +38,7 @@ class ScalingPolicyExecuteLogList:
|
|
|
46
38
|
'execute_type': 'execute_type',
|
|
47
39
|
'execute_time': 'execute_time',
|
|
48
40
|
'id': 'id',
|
|
49
|
-
'
|
|
41
|
+
'tenant_id': 'tenant_id',
|
|
50
42
|
'scaling_policy_id': 'scaling_policy_id',
|
|
51
43
|
'scaling_resource_type': 'scaling_resource_type',
|
|
52
44
|
'scaling_resource_id': 'scaling_resource_id',
|
|
@@ -58,8 +50,42 @@ class ScalingPolicyExecuteLogList:
|
|
|
58
50
|
'meta_data': 'meta_data'
|
|
59
51
|
}
|
|
60
52
|
|
|
61
|
-
def __init__(self, status=None, failed_reason=None, execute_type=None, execute_time=None, id=None,
|
|
62
|
-
"""ScalingPolicyExecuteLogList
|
|
53
|
+
def __init__(self, status=None, failed_reason=None, execute_type=None, execute_time=None, id=None, tenant_id=None, scaling_policy_id=None, scaling_resource_type=None, scaling_resource_id=None, old_value=None, desire_value=None, limit_value=None, type=None, job_records=None, meta_data=None):
|
|
54
|
+
r"""ScalingPolicyExecuteLogList
|
|
55
|
+
|
|
56
|
+
The model defined in huaweicloud sdk
|
|
57
|
+
|
|
58
|
+
:param status: 策略执行状态:SUCCESS:成功。FAIL:失败。EXECUTING:执行中
|
|
59
|
+
:type status: str
|
|
60
|
+
:param failed_reason: 策略执行失败原因。
|
|
61
|
+
:type failed_reason: str
|
|
62
|
+
:param execute_type: 策略执行类型:SCHEDULE:自动触发(定时)。RECURRENCE:自动触发(周期)。ALARM:自动警告(告警)。MANUAL:手动触发
|
|
63
|
+
:type execute_type: str
|
|
64
|
+
:param execute_time: 策略执行时间,遵循UTC时间。
|
|
65
|
+
:type execute_time: str
|
|
66
|
+
:param id: 策略执行日志ID。
|
|
67
|
+
:type id: str
|
|
68
|
+
:param tenant_id: 租户id。
|
|
69
|
+
:type tenant_id: str
|
|
70
|
+
:param scaling_policy_id: 伸缩策略ID。
|
|
71
|
+
:type scaling_policy_id: str
|
|
72
|
+
:param scaling_resource_type: 伸缩资源类型:伸缩组:SCALING_GROUP 带宽:BANDWIDTH
|
|
73
|
+
:type scaling_resource_type: str
|
|
74
|
+
:param scaling_resource_id: 伸缩资源ID。
|
|
75
|
+
:type scaling_resource_id: str
|
|
76
|
+
:param old_value: 伸缩原始值。
|
|
77
|
+
:type old_value: str
|
|
78
|
+
:param desire_value: 伸缩目标值。
|
|
79
|
+
:type desire_value: str
|
|
80
|
+
:param limit_value: 操作限制。当scaling_resource_type为BANDWIDTH时,且operation不为SET时,limit_value生效,单位为Mbit/s。此时,当operation为ADD时,limit_value表示最高带宽限制;当operation为REDUCE时,limit_value表示最低带宽限制。
|
|
81
|
+
:type limit_value: str
|
|
82
|
+
:param type: 策略执行任务类型。ADD:添加。REMOVE:减少。SET:设置为
|
|
83
|
+
:type type: str
|
|
84
|
+
:param job_records: 策略执行动作包含的具体任务
|
|
85
|
+
:type job_records: list[:class:`huaweicloudsdkas.v1.JobRecords`]
|
|
86
|
+
:param meta_data:
|
|
87
|
+
:type meta_data: :class:`huaweicloudsdkas.v1.EipMetaData`
|
|
88
|
+
"""
|
|
63
89
|
|
|
64
90
|
|
|
65
91
|
|
|
@@ -68,7 +94,7 @@ class ScalingPolicyExecuteLogList:
|
|
|
68
94
|
self._execute_type = None
|
|
69
95
|
self._execute_time = None
|
|
70
96
|
self._id = None
|
|
71
|
-
self.
|
|
97
|
+
self._tenant_id = None
|
|
72
98
|
self._scaling_policy_id = None
|
|
73
99
|
self._scaling_resource_type = None
|
|
74
100
|
self._scaling_resource_id = None
|
|
@@ -90,8 +116,8 @@ class ScalingPolicyExecuteLogList:
|
|
|
90
116
|
self.execute_time = execute_time
|
|
91
117
|
if id is not None:
|
|
92
118
|
self.id = id
|
|
93
|
-
if
|
|
94
|
-
self.
|
|
119
|
+
if tenant_id is not None:
|
|
120
|
+
self.tenant_id = tenant_id
|
|
95
121
|
if scaling_policy_id is not None:
|
|
96
122
|
self.scaling_policy_id = scaling_policy_id
|
|
97
123
|
if scaling_resource_type is not None:
|
|
@@ -113,7 +139,7 @@ class ScalingPolicyExecuteLogList:
|
|
|
113
139
|
|
|
114
140
|
@property
|
|
115
141
|
def status(self):
|
|
116
|
-
"""Gets the status of this ScalingPolicyExecuteLogList.
|
|
142
|
+
r"""Gets the status of this ScalingPolicyExecuteLogList.
|
|
117
143
|
|
|
118
144
|
策略执行状态:SUCCESS:成功。FAIL:失败。EXECUTING:执行中
|
|
119
145
|
|
|
@@ -124,18 +150,18 @@ class ScalingPolicyExecuteLogList:
|
|
|
124
150
|
|
|
125
151
|
@status.setter
|
|
126
152
|
def status(self, status):
|
|
127
|
-
"""Sets the status of this ScalingPolicyExecuteLogList.
|
|
153
|
+
r"""Sets the status of this ScalingPolicyExecuteLogList.
|
|
128
154
|
|
|
129
155
|
策略执行状态:SUCCESS:成功。FAIL:失败。EXECUTING:执行中
|
|
130
156
|
|
|
131
157
|
:param status: The status of this ScalingPolicyExecuteLogList.
|
|
132
|
-
:type: str
|
|
158
|
+
:type status: str
|
|
133
159
|
"""
|
|
134
160
|
self._status = status
|
|
135
161
|
|
|
136
162
|
@property
|
|
137
163
|
def failed_reason(self):
|
|
138
|
-
"""Gets the failed_reason of this ScalingPolicyExecuteLogList.
|
|
164
|
+
r"""Gets the failed_reason of this ScalingPolicyExecuteLogList.
|
|
139
165
|
|
|
140
166
|
策略执行失败原因。
|
|
141
167
|
|
|
@@ -146,18 +172,18 @@ class ScalingPolicyExecuteLogList:
|
|
|
146
172
|
|
|
147
173
|
@failed_reason.setter
|
|
148
174
|
def failed_reason(self, failed_reason):
|
|
149
|
-
"""Sets the failed_reason of this ScalingPolicyExecuteLogList.
|
|
175
|
+
r"""Sets the failed_reason of this ScalingPolicyExecuteLogList.
|
|
150
176
|
|
|
151
177
|
策略执行失败原因。
|
|
152
178
|
|
|
153
179
|
:param failed_reason: The failed_reason of this ScalingPolicyExecuteLogList.
|
|
154
|
-
:type: str
|
|
180
|
+
:type failed_reason: str
|
|
155
181
|
"""
|
|
156
182
|
self._failed_reason = failed_reason
|
|
157
183
|
|
|
158
184
|
@property
|
|
159
185
|
def execute_type(self):
|
|
160
|
-
"""Gets the execute_type of this ScalingPolicyExecuteLogList.
|
|
186
|
+
r"""Gets the execute_type of this ScalingPolicyExecuteLogList.
|
|
161
187
|
|
|
162
188
|
策略执行类型:SCHEDULE:自动触发(定时)。RECURRENCE:自动触发(周期)。ALARM:自动警告(告警)。MANUAL:手动触发
|
|
163
189
|
|
|
@@ -168,40 +194,40 @@ class ScalingPolicyExecuteLogList:
|
|
|
168
194
|
|
|
169
195
|
@execute_type.setter
|
|
170
196
|
def execute_type(self, execute_type):
|
|
171
|
-
"""Sets the execute_type of this ScalingPolicyExecuteLogList.
|
|
197
|
+
r"""Sets the execute_type of this ScalingPolicyExecuteLogList.
|
|
172
198
|
|
|
173
199
|
策略执行类型:SCHEDULE:自动触发(定时)。RECURRENCE:自动触发(周期)。ALARM:自动警告(告警)。MANUAL:手动触发
|
|
174
200
|
|
|
175
201
|
:param execute_type: The execute_type of this ScalingPolicyExecuteLogList.
|
|
176
|
-
:type: str
|
|
202
|
+
:type execute_type: str
|
|
177
203
|
"""
|
|
178
204
|
self._execute_type = execute_type
|
|
179
205
|
|
|
180
206
|
@property
|
|
181
207
|
def execute_time(self):
|
|
182
|
-
"""Gets the execute_time of this ScalingPolicyExecuteLogList.
|
|
208
|
+
r"""Gets the execute_time of this ScalingPolicyExecuteLogList.
|
|
183
209
|
|
|
184
210
|
策略执行时间,遵循UTC时间。
|
|
185
211
|
|
|
186
212
|
:return: The execute_time of this ScalingPolicyExecuteLogList.
|
|
187
|
-
:rtype:
|
|
213
|
+
:rtype: str
|
|
188
214
|
"""
|
|
189
215
|
return self._execute_time
|
|
190
216
|
|
|
191
217
|
@execute_time.setter
|
|
192
218
|
def execute_time(self, execute_time):
|
|
193
|
-
"""Sets the execute_time of this ScalingPolicyExecuteLogList.
|
|
219
|
+
r"""Sets the execute_time of this ScalingPolicyExecuteLogList.
|
|
194
220
|
|
|
195
221
|
策略执行时间,遵循UTC时间。
|
|
196
222
|
|
|
197
223
|
:param execute_time: The execute_time of this ScalingPolicyExecuteLogList.
|
|
198
|
-
:type:
|
|
224
|
+
:type execute_time: str
|
|
199
225
|
"""
|
|
200
226
|
self._execute_time = execute_time
|
|
201
227
|
|
|
202
228
|
@property
|
|
203
229
|
def id(self):
|
|
204
|
-
"""Gets the id of this ScalingPolicyExecuteLogList.
|
|
230
|
+
r"""Gets the id of this ScalingPolicyExecuteLogList.
|
|
205
231
|
|
|
206
232
|
策略执行日志ID。
|
|
207
233
|
|
|
@@ -212,40 +238,40 @@ class ScalingPolicyExecuteLogList:
|
|
|
212
238
|
|
|
213
239
|
@id.setter
|
|
214
240
|
def id(self, id):
|
|
215
|
-
"""Sets the id of this ScalingPolicyExecuteLogList.
|
|
241
|
+
r"""Sets the id of this ScalingPolicyExecuteLogList.
|
|
216
242
|
|
|
217
243
|
策略执行日志ID。
|
|
218
244
|
|
|
219
245
|
:param id: The id of this ScalingPolicyExecuteLogList.
|
|
220
|
-
:type: str
|
|
246
|
+
:type id: str
|
|
221
247
|
"""
|
|
222
248
|
self._id = id
|
|
223
249
|
|
|
224
250
|
@property
|
|
225
|
-
def
|
|
226
|
-
"""Gets the
|
|
251
|
+
def tenant_id(self):
|
|
252
|
+
r"""Gets the tenant_id of this ScalingPolicyExecuteLogList.
|
|
227
253
|
|
|
228
254
|
租户id。
|
|
229
255
|
|
|
230
|
-
:return: The
|
|
256
|
+
:return: The tenant_id of this ScalingPolicyExecuteLogList.
|
|
231
257
|
:rtype: str
|
|
232
258
|
"""
|
|
233
|
-
return self.
|
|
259
|
+
return self._tenant_id
|
|
234
260
|
|
|
235
|
-
@
|
|
236
|
-
def
|
|
237
|
-
"""Sets the
|
|
261
|
+
@tenant_id.setter
|
|
262
|
+
def tenant_id(self, tenant_id):
|
|
263
|
+
r"""Sets the tenant_id of this ScalingPolicyExecuteLogList.
|
|
238
264
|
|
|
239
265
|
租户id。
|
|
240
266
|
|
|
241
|
-
:param
|
|
242
|
-
:type: str
|
|
267
|
+
:param tenant_id: The tenant_id of this ScalingPolicyExecuteLogList.
|
|
268
|
+
:type tenant_id: str
|
|
243
269
|
"""
|
|
244
|
-
self.
|
|
270
|
+
self._tenant_id = tenant_id
|
|
245
271
|
|
|
246
272
|
@property
|
|
247
273
|
def scaling_policy_id(self):
|
|
248
|
-
"""Gets the scaling_policy_id of this ScalingPolicyExecuteLogList.
|
|
274
|
+
r"""Gets the scaling_policy_id of this ScalingPolicyExecuteLogList.
|
|
249
275
|
|
|
250
276
|
伸缩策略ID。
|
|
251
277
|
|
|
@@ -256,18 +282,18 @@ class ScalingPolicyExecuteLogList:
|
|
|
256
282
|
|
|
257
283
|
@scaling_policy_id.setter
|
|
258
284
|
def scaling_policy_id(self, scaling_policy_id):
|
|
259
|
-
"""Sets the scaling_policy_id of this ScalingPolicyExecuteLogList.
|
|
285
|
+
r"""Sets the scaling_policy_id of this ScalingPolicyExecuteLogList.
|
|
260
286
|
|
|
261
287
|
伸缩策略ID。
|
|
262
288
|
|
|
263
289
|
:param scaling_policy_id: The scaling_policy_id of this ScalingPolicyExecuteLogList.
|
|
264
|
-
:type: str
|
|
290
|
+
:type scaling_policy_id: str
|
|
265
291
|
"""
|
|
266
292
|
self._scaling_policy_id = scaling_policy_id
|
|
267
293
|
|
|
268
294
|
@property
|
|
269
295
|
def scaling_resource_type(self):
|
|
270
|
-
"""Gets the scaling_resource_type of this ScalingPolicyExecuteLogList.
|
|
296
|
+
r"""Gets the scaling_resource_type of this ScalingPolicyExecuteLogList.
|
|
271
297
|
|
|
272
298
|
伸缩资源类型:伸缩组:SCALING_GROUP 带宽:BANDWIDTH
|
|
273
299
|
|
|
@@ -278,18 +304,18 @@ class ScalingPolicyExecuteLogList:
|
|
|
278
304
|
|
|
279
305
|
@scaling_resource_type.setter
|
|
280
306
|
def scaling_resource_type(self, scaling_resource_type):
|
|
281
|
-
"""Sets the scaling_resource_type of this ScalingPolicyExecuteLogList.
|
|
307
|
+
r"""Sets the scaling_resource_type of this ScalingPolicyExecuteLogList.
|
|
282
308
|
|
|
283
309
|
伸缩资源类型:伸缩组:SCALING_GROUP 带宽:BANDWIDTH
|
|
284
310
|
|
|
285
311
|
:param scaling_resource_type: The scaling_resource_type of this ScalingPolicyExecuteLogList.
|
|
286
|
-
:type: str
|
|
312
|
+
:type scaling_resource_type: str
|
|
287
313
|
"""
|
|
288
314
|
self._scaling_resource_type = scaling_resource_type
|
|
289
315
|
|
|
290
316
|
@property
|
|
291
317
|
def scaling_resource_id(self):
|
|
292
|
-
"""Gets the scaling_resource_id of this ScalingPolicyExecuteLogList.
|
|
318
|
+
r"""Gets the scaling_resource_id of this ScalingPolicyExecuteLogList.
|
|
293
319
|
|
|
294
320
|
伸缩资源ID。
|
|
295
321
|
|
|
@@ -300,18 +326,18 @@ class ScalingPolicyExecuteLogList:
|
|
|
300
326
|
|
|
301
327
|
@scaling_resource_id.setter
|
|
302
328
|
def scaling_resource_id(self, scaling_resource_id):
|
|
303
|
-
"""Sets the scaling_resource_id of this ScalingPolicyExecuteLogList.
|
|
329
|
+
r"""Sets the scaling_resource_id of this ScalingPolicyExecuteLogList.
|
|
304
330
|
|
|
305
331
|
伸缩资源ID。
|
|
306
332
|
|
|
307
333
|
:param scaling_resource_id: The scaling_resource_id of this ScalingPolicyExecuteLogList.
|
|
308
|
-
:type: str
|
|
334
|
+
:type scaling_resource_id: str
|
|
309
335
|
"""
|
|
310
336
|
self._scaling_resource_id = scaling_resource_id
|
|
311
337
|
|
|
312
338
|
@property
|
|
313
339
|
def old_value(self):
|
|
314
|
-
"""Gets the old_value of this ScalingPolicyExecuteLogList.
|
|
340
|
+
r"""Gets the old_value of this ScalingPolicyExecuteLogList.
|
|
315
341
|
|
|
316
342
|
伸缩原始值。
|
|
317
343
|
|
|
@@ -322,18 +348,18 @@ class ScalingPolicyExecuteLogList:
|
|
|
322
348
|
|
|
323
349
|
@old_value.setter
|
|
324
350
|
def old_value(self, old_value):
|
|
325
|
-
"""Sets the old_value of this ScalingPolicyExecuteLogList.
|
|
351
|
+
r"""Sets the old_value of this ScalingPolicyExecuteLogList.
|
|
326
352
|
|
|
327
353
|
伸缩原始值。
|
|
328
354
|
|
|
329
355
|
:param old_value: The old_value of this ScalingPolicyExecuteLogList.
|
|
330
|
-
:type: str
|
|
356
|
+
:type old_value: str
|
|
331
357
|
"""
|
|
332
358
|
self._old_value = old_value
|
|
333
359
|
|
|
334
360
|
@property
|
|
335
361
|
def desire_value(self):
|
|
336
|
-
"""Gets the desire_value of this ScalingPolicyExecuteLogList.
|
|
362
|
+
r"""Gets the desire_value of this ScalingPolicyExecuteLogList.
|
|
337
363
|
|
|
338
364
|
伸缩目标值。
|
|
339
365
|
|
|
@@ -344,40 +370,40 @@ class ScalingPolicyExecuteLogList:
|
|
|
344
370
|
|
|
345
371
|
@desire_value.setter
|
|
346
372
|
def desire_value(self, desire_value):
|
|
347
|
-
"""Sets the desire_value of this ScalingPolicyExecuteLogList.
|
|
373
|
+
r"""Sets the desire_value of this ScalingPolicyExecuteLogList.
|
|
348
374
|
|
|
349
375
|
伸缩目标值。
|
|
350
376
|
|
|
351
377
|
:param desire_value: The desire_value of this ScalingPolicyExecuteLogList.
|
|
352
|
-
:type: str
|
|
378
|
+
:type desire_value: str
|
|
353
379
|
"""
|
|
354
380
|
self._desire_value = desire_value
|
|
355
381
|
|
|
356
382
|
@property
|
|
357
383
|
def limit_value(self):
|
|
358
|
-
"""Gets the limit_value of this ScalingPolicyExecuteLogList.
|
|
384
|
+
r"""Gets the limit_value of this ScalingPolicyExecuteLogList.
|
|
359
385
|
|
|
360
386
|
操作限制。当scaling_resource_type为BANDWIDTH时,且operation不为SET时,limit_value生效,单位为Mbit/s。此时,当operation为ADD时,limit_value表示最高带宽限制;当operation为REDUCE时,limit_value表示最低带宽限制。
|
|
361
387
|
|
|
362
388
|
:return: The limit_value of this ScalingPolicyExecuteLogList.
|
|
363
|
-
:rtype:
|
|
389
|
+
:rtype: str
|
|
364
390
|
"""
|
|
365
391
|
return self._limit_value
|
|
366
392
|
|
|
367
393
|
@limit_value.setter
|
|
368
394
|
def limit_value(self, limit_value):
|
|
369
|
-
"""Sets the limit_value of this ScalingPolicyExecuteLogList.
|
|
395
|
+
r"""Sets the limit_value of this ScalingPolicyExecuteLogList.
|
|
370
396
|
|
|
371
397
|
操作限制。当scaling_resource_type为BANDWIDTH时,且operation不为SET时,limit_value生效,单位为Mbit/s。此时,当operation为ADD时,limit_value表示最高带宽限制;当operation为REDUCE时,limit_value表示最低带宽限制。
|
|
372
398
|
|
|
373
399
|
:param limit_value: The limit_value of this ScalingPolicyExecuteLogList.
|
|
374
|
-
:type:
|
|
400
|
+
:type limit_value: str
|
|
375
401
|
"""
|
|
376
402
|
self._limit_value = limit_value
|
|
377
403
|
|
|
378
404
|
@property
|
|
379
405
|
def type(self):
|
|
380
|
-
"""Gets the type of this ScalingPolicyExecuteLogList.
|
|
406
|
+
r"""Gets the type of this ScalingPolicyExecuteLogList.
|
|
381
407
|
|
|
382
408
|
策略执行任务类型。ADD:添加。REMOVE:减少。SET:设置为
|
|
383
409
|
|
|
@@ -388,62 +414,59 @@ class ScalingPolicyExecuteLogList:
|
|
|
388
414
|
|
|
389
415
|
@type.setter
|
|
390
416
|
def type(self, type):
|
|
391
|
-
"""Sets the type of this ScalingPolicyExecuteLogList.
|
|
417
|
+
r"""Sets the type of this ScalingPolicyExecuteLogList.
|
|
392
418
|
|
|
393
419
|
策略执行任务类型。ADD:添加。REMOVE:减少。SET:设置为
|
|
394
420
|
|
|
395
421
|
:param type: The type of this ScalingPolicyExecuteLogList.
|
|
396
|
-
:type: str
|
|
422
|
+
:type type: str
|
|
397
423
|
"""
|
|
398
424
|
self._type = type
|
|
399
425
|
|
|
400
426
|
@property
|
|
401
427
|
def job_records(self):
|
|
402
|
-
"""Gets the job_records of this ScalingPolicyExecuteLogList.
|
|
428
|
+
r"""Gets the job_records of this ScalingPolicyExecuteLogList.
|
|
403
429
|
|
|
404
430
|
策略执行动作包含的具体任务
|
|
405
431
|
|
|
406
432
|
:return: The job_records of this ScalingPolicyExecuteLogList.
|
|
407
|
-
:rtype: list[JobRecords]
|
|
433
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.JobRecords`]
|
|
408
434
|
"""
|
|
409
435
|
return self._job_records
|
|
410
436
|
|
|
411
437
|
@job_records.setter
|
|
412
438
|
def job_records(self, job_records):
|
|
413
|
-
"""Sets the job_records of this ScalingPolicyExecuteLogList.
|
|
439
|
+
r"""Sets the job_records of this ScalingPolicyExecuteLogList.
|
|
414
440
|
|
|
415
441
|
策略执行动作包含的具体任务
|
|
416
442
|
|
|
417
443
|
:param job_records: The job_records of this ScalingPolicyExecuteLogList.
|
|
418
|
-
:type: list[JobRecords]
|
|
444
|
+
:type job_records: list[:class:`huaweicloudsdkas.v1.JobRecords`]
|
|
419
445
|
"""
|
|
420
446
|
self._job_records = job_records
|
|
421
447
|
|
|
422
448
|
@property
|
|
423
449
|
def meta_data(self):
|
|
424
|
-
"""Gets the meta_data of this ScalingPolicyExecuteLogList.
|
|
425
|
-
|
|
450
|
+
r"""Gets the meta_data of this ScalingPolicyExecuteLogList.
|
|
426
451
|
|
|
427
452
|
:return: The meta_data of this ScalingPolicyExecuteLogList.
|
|
428
|
-
:rtype:
|
|
453
|
+
:rtype: :class:`huaweicloudsdkas.v1.EipMetaData`
|
|
429
454
|
"""
|
|
430
455
|
return self._meta_data
|
|
431
456
|
|
|
432
457
|
@meta_data.setter
|
|
433
458
|
def meta_data(self, meta_data):
|
|
434
|
-
"""Sets the meta_data of this ScalingPolicyExecuteLogList.
|
|
435
|
-
|
|
459
|
+
r"""Sets the meta_data of this ScalingPolicyExecuteLogList.
|
|
436
460
|
|
|
437
461
|
:param meta_data: The meta_data of this ScalingPolicyExecuteLogList.
|
|
438
|
-
:type:
|
|
462
|
+
:type meta_data: :class:`huaweicloudsdkas.v1.EipMetaData`
|
|
439
463
|
"""
|
|
440
464
|
self._meta_data = meta_data
|
|
441
465
|
|
|
442
466
|
def to_dict(self):
|
|
443
|
-
"""Returns the model properties as a dict"""
|
|
444
467
|
result = {}
|
|
445
468
|
|
|
446
|
-
for attr, _ in
|
|
469
|
+
for attr, _ in self.openapi_types.items():
|
|
447
470
|
value = getattr(self, attr)
|
|
448
471
|
if isinstance(value, list):
|
|
449
472
|
result[attr] = list(map(
|
|
@@ -468,10 +491,11 @@ class ScalingPolicyExecuteLogList:
|
|
|
468
491
|
|
|
469
492
|
def to_str(self):
|
|
470
493
|
"""Returns the string representation of the model"""
|
|
471
|
-
|
|
494
|
+
import simplejson as json
|
|
495
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
472
496
|
|
|
473
497
|
def __repr__(self):
|
|
474
|
-
"""For `print`
|
|
498
|
+
"""For `print`"""
|
|
475
499
|
return self.to_str()
|
|
476
500
|
|
|
477
501
|
def __eq__(self, other):
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ScalingPolicyV2MetaData:
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Attributes:
|
|
10
|
+
openapi_types (dict): The key is attribute name
|
|
11
|
+
and the value is attribute type.
|
|
12
|
+
attribute_map (dict): The key is attribute name
|
|
13
|
+
and the value is json key in definition.
|
|
14
|
+
"""
|
|
15
|
+
sensitive_list = []
|
|
16
|
+
|
|
17
|
+
openapi_types = {
|
|
18
|
+
'metadata_bandwidth_share_type': 'str',
|
|
19
|
+
'metadata_eip_id': 'str',
|
|
20
|
+
'metadata_eip_address': 'str'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'metadata_bandwidth_share_type': 'metadata_bandwidth_share_type',
|
|
25
|
+
'metadata_eip_id': 'metadata_eip_id',
|
|
26
|
+
'metadata_eip_address': 'metadata_eip_address'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, metadata_bandwidth_share_type=None, metadata_eip_id=None, metadata_eip_address=None):
|
|
30
|
+
r"""ScalingPolicyV2MetaData
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param metadata_bandwidth_share_type: 伸缩带宽策略中带宽对应的共享类型
|
|
35
|
+
:type metadata_bandwidth_share_type: str
|
|
36
|
+
:param metadata_eip_id: 伸缩带宽策略中带宽对应的EIP的ID
|
|
37
|
+
:type metadata_eip_id: str
|
|
38
|
+
:param metadata_eip_address: 伸缩带宽策略中带宽对应的EIP地址
|
|
39
|
+
:type metadata_eip_address: str
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
self._metadata_bandwidth_share_type = None
|
|
45
|
+
self._metadata_eip_id = None
|
|
46
|
+
self._metadata_eip_address = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
|
|
49
|
+
if metadata_bandwidth_share_type is not None:
|
|
50
|
+
self.metadata_bandwidth_share_type = metadata_bandwidth_share_type
|
|
51
|
+
if metadata_eip_id is not None:
|
|
52
|
+
self.metadata_eip_id = metadata_eip_id
|
|
53
|
+
if metadata_eip_address is not None:
|
|
54
|
+
self.metadata_eip_address = metadata_eip_address
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def metadata_bandwidth_share_type(self):
|
|
58
|
+
r"""Gets the metadata_bandwidth_share_type of this ScalingPolicyV2MetaData.
|
|
59
|
+
|
|
60
|
+
伸缩带宽策略中带宽对应的共享类型
|
|
61
|
+
|
|
62
|
+
:return: The metadata_bandwidth_share_type of this ScalingPolicyV2MetaData.
|
|
63
|
+
:rtype: str
|
|
64
|
+
"""
|
|
65
|
+
return self._metadata_bandwidth_share_type
|
|
66
|
+
|
|
67
|
+
@metadata_bandwidth_share_type.setter
|
|
68
|
+
def metadata_bandwidth_share_type(self, metadata_bandwidth_share_type):
|
|
69
|
+
r"""Sets the metadata_bandwidth_share_type of this ScalingPolicyV2MetaData.
|
|
70
|
+
|
|
71
|
+
伸缩带宽策略中带宽对应的共享类型
|
|
72
|
+
|
|
73
|
+
:param metadata_bandwidth_share_type: The metadata_bandwidth_share_type of this ScalingPolicyV2MetaData.
|
|
74
|
+
:type metadata_bandwidth_share_type: str
|
|
75
|
+
"""
|
|
76
|
+
self._metadata_bandwidth_share_type = metadata_bandwidth_share_type
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def metadata_eip_id(self):
|
|
80
|
+
r"""Gets the metadata_eip_id of this ScalingPolicyV2MetaData.
|
|
81
|
+
|
|
82
|
+
伸缩带宽策略中带宽对应的EIP的ID
|
|
83
|
+
|
|
84
|
+
:return: The metadata_eip_id of this ScalingPolicyV2MetaData.
|
|
85
|
+
:rtype: str
|
|
86
|
+
"""
|
|
87
|
+
return self._metadata_eip_id
|
|
88
|
+
|
|
89
|
+
@metadata_eip_id.setter
|
|
90
|
+
def metadata_eip_id(self, metadata_eip_id):
|
|
91
|
+
r"""Sets the metadata_eip_id of this ScalingPolicyV2MetaData.
|
|
92
|
+
|
|
93
|
+
伸缩带宽策略中带宽对应的EIP的ID
|
|
94
|
+
|
|
95
|
+
:param metadata_eip_id: The metadata_eip_id of this ScalingPolicyV2MetaData.
|
|
96
|
+
:type metadata_eip_id: str
|
|
97
|
+
"""
|
|
98
|
+
self._metadata_eip_id = metadata_eip_id
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def metadata_eip_address(self):
|
|
102
|
+
r"""Gets the metadata_eip_address of this ScalingPolicyV2MetaData.
|
|
103
|
+
|
|
104
|
+
伸缩带宽策略中带宽对应的EIP地址
|
|
105
|
+
|
|
106
|
+
:return: The metadata_eip_address of this ScalingPolicyV2MetaData.
|
|
107
|
+
:rtype: str
|
|
108
|
+
"""
|
|
109
|
+
return self._metadata_eip_address
|
|
110
|
+
|
|
111
|
+
@metadata_eip_address.setter
|
|
112
|
+
def metadata_eip_address(self, metadata_eip_address):
|
|
113
|
+
r"""Sets the metadata_eip_address of this ScalingPolicyV2MetaData.
|
|
114
|
+
|
|
115
|
+
伸缩带宽策略中带宽对应的EIP地址
|
|
116
|
+
|
|
117
|
+
:param metadata_eip_address: The metadata_eip_address of this ScalingPolicyV2MetaData.
|
|
118
|
+
:type metadata_eip_address: str
|
|
119
|
+
"""
|
|
120
|
+
self._metadata_eip_address = metadata_eip_address
|
|
121
|
+
|
|
122
|
+
def to_dict(self):
|
|
123
|
+
result = {}
|
|
124
|
+
|
|
125
|
+
for attr, _ in self.openapi_types.items():
|
|
126
|
+
value = getattr(self, attr)
|
|
127
|
+
if isinstance(value, list):
|
|
128
|
+
result[attr] = list(map(
|
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
130
|
+
value
|
|
131
|
+
))
|
|
132
|
+
elif hasattr(value, "to_dict"):
|
|
133
|
+
result[attr] = value.to_dict()
|
|
134
|
+
elif isinstance(value, dict):
|
|
135
|
+
result[attr] = dict(map(
|
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
|
138
|
+
value.items()
|
|
139
|
+
))
|
|
140
|
+
else:
|
|
141
|
+
if attr in self.sensitive_list:
|
|
142
|
+
result[attr] = "****"
|
|
143
|
+
else:
|
|
144
|
+
result[attr] = value
|
|
145
|
+
|
|
146
|
+
return result
|
|
147
|
+
|
|
148
|
+
def to_str(self):
|
|
149
|
+
"""Returns the string representation of the model"""
|
|
150
|
+
import simplejson as json
|
|
151
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
152
|
+
|
|
153
|
+
def __repr__(self):
|
|
154
|
+
"""For `print`"""
|
|
155
|
+
return self.to_str()
|
|
156
|
+
|
|
157
|
+
def __eq__(self, other):
|
|
158
|
+
"""Returns true if both objects are equal"""
|
|
159
|
+
if not isinstance(other, ScalingPolicyV2MetaData):
|
|
160
|
+
return False
|
|
161
|
+
|
|
162
|
+
return self.__dict__ == other.__dict__
|
|
163
|
+
|
|
164
|
+
def __ne__(self, other):
|
|
165
|
+
"""Returns true if both objects are not equal"""
|
|
166
|
+
return not self == other
|