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,16 +1,11 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
3
|
import six
|
|
7
4
|
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
8
6
|
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class CreateScalingPolicyV2RequestBody:
|
|
13
|
-
|
|
8
|
+
class CreateScalingPolicyV2Option:
|
|
14
9
|
|
|
15
10
|
"""
|
|
16
11
|
Attributes:
|
|
@@ -19,7 +14,6 @@ class CreateScalingPolicyV2RequestBody:
|
|
|
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 = {
|
|
@@ -30,7 +24,9 @@ class CreateScalingPolicyV2RequestBody:
|
|
|
30
24
|
'alarm_id': 'str',
|
|
31
25
|
'scheduled_policy': 'ScheduledPolicy',
|
|
32
26
|
'scaling_policy_action': 'ScalingPolicyActionV2',
|
|
33
|
-
'
|
|
27
|
+
'interval_alarm_actions': 'list[IntervalAlarmActionsV2]',
|
|
28
|
+
'cool_down_time': 'int',
|
|
29
|
+
'description': 'str'
|
|
34
30
|
}
|
|
35
31
|
|
|
36
32
|
attribute_map = {
|
|
@@ -41,11 +37,37 @@ class CreateScalingPolicyV2RequestBody:
|
|
|
41
37
|
'alarm_id': 'alarm_id',
|
|
42
38
|
'scheduled_policy': 'scheduled_policy',
|
|
43
39
|
'scaling_policy_action': 'scaling_policy_action',
|
|
44
|
-
'
|
|
40
|
+
'interval_alarm_actions': 'interval_alarm_actions',
|
|
41
|
+
'cool_down_time': 'cool_down_time',
|
|
42
|
+
'description': 'description'
|
|
45
43
|
}
|
|
46
44
|
|
|
47
|
-
def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_resource_type=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None):
|
|
48
|
-
"""
|
|
45
|
+
def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_resource_type=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, interval_alarm_actions=None, cool_down_time=None, description=None):
|
|
46
|
+
r"""CreateScalingPolicyV2Option
|
|
47
|
+
|
|
48
|
+
The model defined in huaweicloud sdk
|
|
49
|
+
|
|
50
|
+
:param scaling_policy_name: 策略名称(1-64)字符,可以用中文、字母、数字、下划线、中划线的组合。
|
|
51
|
+
:type scaling_policy_name: str
|
|
52
|
+
:param scaling_resource_id: 伸缩资源ID,伸缩组唯一标识或带宽唯一标识。如果scaling_resource_type为SCALING_GROUP,对应伸缩组唯一标识。如果scaling_resource_type为BANDWIDTH,对应带宽唯一标识。说明:- 弹性伸缩不支持对包年包月的带宽进行调整。
|
|
53
|
+
:type scaling_resource_id: str
|
|
54
|
+
:param scaling_resource_type: 伸缩资源类型。伸缩组:SCALING_GROUP。带宽:BANDWIDTH。
|
|
55
|
+
:type scaling_resource_type: str
|
|
56
|
+
:param scaling_policy_type: 策略类型。告警策略:ALARM(与alarm_id对应);定时策略:SCHEDULED(与scheduled_policy对应);周期策略:RECURRENCE(与scheduled_policy对应)
|
|
57
|
+
:type scaling_policy_type: str
|
|
58
|
+
:param alarm_id: 告警ID,即告警规则的ID,当scaling_policy_type为ALARM时该项必选,此时scheduled_policy不生效。创建告警策略成功后,会自动为该告警ID对应的告警规则的alarm_actions字段增加类型为autoscaling的告警触发动作。告警ID通过查询云监控告警规则列表获取,详见《云监控API参考》的“查询告警规则列表”。
|
|
59
|
+
:type alarm_id: str
|
|
60
|
+
:param scheduled_policy:
|
|
61
|
+
:type scheduled_policy: :class:`huaweicloudsdkas.v1.ScheduledPolicy`
|
|
62
|
+
:param scaling_policy_action:
|
|
63
|
+
:type scaling_policy_action: :class:`huaweicloudsdkas.v1.ScalingPolicyActionV2`
|
|
64
|
+
:param interval_alarm_actions:
|
|
65
|
+
:type interval_alarm_actions: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
|
|
66
|
+
:param cool_down_time: 冷却时间,取值范围0-86400,默认为300,单位是秒。
|
|
67
|
+
:type cool_down_time: int
|
|
68
|
+
:param description: 伸缩策略描述(1-256个字符)
|
|
69
|
+
:type description: str
|
|
70
|
+
"""
|
|
49
71
|
|
|
50
72
|
|
|
51
73
|
|
|
@@ -56,7 +78,9 @@ class CreateScalingPolicyV2RequestBody:
|
|
|
56
78
|
self._alarm_id = None
|
|
57
79
|
self._scheduled_policy = None
|
|
58
80
|
self._scaling_policy_action = None
|
|
81
|
+
self._interval_alarm_actions = None
|
|
59
82
|
self._cool_down_time = None
|
|
83
|
+
self._description = None
|
|
60
84
|
self.discriminator = None
|
|
61
85
|
|
|
62
86
|
self.scaling_policy_name = scaling_policy_name
|
|
@@ -69,181 +93,221 @@ class CreateScalingPolicyV2RequestBody:
|
|
|
69
93
|
self.scheduled_policy = scheduled_policy
|
|
70
94
|
if scaling_policy_action is not None:
|
|
71
95
|
self.scaling_policy_action = scaling_policy_action
|
|
96
|
+
if interval_alarm_actions is not None:
|
|
97
|
+
self.interval_alarm_actions = interval_alarm_actions
|
|
72
98
|
if cool_down_time is not None:
|
|
73
99
|
self.cool_down_time = cool_down_time
|
|
100
|
+
if description is not None:
|
|
101
|
+
self.description = description
|
|
74
102
|
|
|
75
103
|
@property
|
|
76
104
|
def scaling_policy_name(self):
|
|
77
|
-
"""Gets the scaling_policy_name of this
|
|
105
|
+
r"""Gets the scaling_policy_name of this CreateScalingPolicyV2Option.
|
|
78
106
|
|
|
79
107
|
策略名称(1-64)字符,可以用中文、字母、数字、下划线、中划线的组合。
|
|
80
108
|
|
|
81
|
-
:return: The scaling_policy_name of this
|
|
109
|
+
:return: The scaling_policy_name of this CreateScalingPolicyV2Option.
|
|
82
110
|
:rtype: str
|
|
83
111
|
"""
|
|
84
112
|
return self._scaling_policy_name
|
|
85
113
|
|
|
86
114
|
@scaling_policy_name.setter
|
|
87
115
|
def scaling_policy_name(self, scaling_policy_name):
|
|
88
|
-
"""Sets the scaling_policy_name of this
|
|
116
|
+
r"""Sets the scaling_policy_name of this CreateScalingPolicyV2Option.
|
|
89
117
|
|
|
90
118
|
策略名称(1-64)字符,可以用中文、字母、数字、下划线、中划线的组合。
|
|
91
119
|
|
|
92
|
-
:param scaling_policy_name: The scaling_policy_name of this
|
|
93
|
-
:type: str
|
|
120
|
+
:param scaling_policy_name: The scaling_policy_name of this CreateScalingPolicyV2Option.
|
|
121
|
+
:type scaling_policy_name: str
|
|
94
122
|
"""
|
|
95
123
|
self._scaling_policy_name = scaling_policy_name
|
|
96
124
|
|
|
97
125
|
@property
|
|
98
126
|
def scaling_resource_id(self):
|
|
99
|
-
"""Gets the scaling_resource_id of this
|
|
127
|
+
r"""Gets the scaling_resource_id of this CreateScalingPolicyV2Option.
|
|
100
128
|
|
|
101
|
-
伸缩资源ID,伸缩组唯一标识或带宽唯一标识。如果scaling_resource_type为SCALING_GROUP,对应伸缩组唯一标识。如果scaling_resource_type为BANDWIDTH
|
|
129
|
+
伸缩资源ID,伸缩组唯一标识或带宽唯一标识。如果scaling_resource_type为SCALING_GROUP,对应伸缩组唯一标识。如果scaling_resource_type为BANDWIDTH,对应带宽唯一标识。说明:- 弹性伸缩不支持对包年包月的带宽进行调整。
|
|
102
130
|
|
|
103
|
-
:return: The scaling_resource_id of this
|
|
131
|
+
:return: The scaling_resource_id of this CreateScalingPolicyV2Option.
|
|
104
132
|
:rtype: str
|
|
105
133
|
"""
|
|
106
134
|
return self._scaling_resource_id
|
|
107
135
|
|
|
108
136
|
@scaling_resource_id.setter
|
|
109
137
|
def scaling_resource_id(self, scaling_resource_id):
|
|
110
|
-
"""Sets the scaling_resource_id of this
|
|
138
|
+
r"""Sets the scaling_resource_id of this CreateScalingPolicyV2Option.
|
|
111
139
|
|
|
112
|
-
伸缩资源ID,伸缩组唯一标识或带宽唯一标识。如果scaling_resource_type为SCALING_GROUP,对应伸缩组唯一标识。如果scaling_resource_type为BANDWIDTH
|
|
140
|
+
伸缩资源ID,伸缩组唯一标识或带宽唯一标识。如果scaling_resource_type为SCALING_GROUP,对应伸缩组唯一标识。如果scaling_resource_type为BANDWIDTH,对应带宽唯一标识。说明:- 弹性伸缩不支持对包年包月的带宽进行调整。
|
|
113
141
|
|
|
114
|
-
:param scaling_resource_id: The scaling_resource_id of this
|
|
115
|
-
:type: str
|
|
142
|
+
:param scaling_resource_id: The scaling_resource_id of this CreateScalingPolicyV2Option.
|
|
143
|
+
:type scaling_resource_id: str
|
|
116
144
|
"""
|
|
117
145
|
self._scaling_resource_id = scaling_resource_id
|
|
118
146
|
|
|
119
147
|
@property
|
|
120
148
|
def scaling_resource_type(self):
|
|
121
|
-
"""Gets the scaling_resource_type of this
|
|
149
|
+
r"""Gets the scaling_resource_type of this CreateScalingPolicyV2Option.
|
|
122
150
|
|
|
123
151
|
伸缩资源类型。伸缩组:SCALING_GROUP。带宽:BANDWIDTH。
|
|
124
152
|
|
|
125
|
-
:return: The scaling_resource_type of this
|
|
153
|
+
:return: The scaling_resource_type of this CreateScalingPolicyV2Option.
|
|
126
154
|
:rtype: str
|
|
127
155
|
"""
|
|
128
156
|
return self._scaling_resource_type
|
|
129
157
|
|
|
130
158
|
@scaling_resource_type.setter
|
|
131
159
|
def scaling_resource_type(self, scaling_resource_type):
|
|
132
|
-
"""Sets the scaling_resource_type of this
|
|
160
|
+
r"""Sets the scaling_resource_type of this CreateScalingPolicyV2Option.
|
|
133
161
|
|
|
134
162
|
伸缩资源类型。伸缩组:SCALING_GROUP。带宽:BANDWIDTH。
|
|
135
163
|
|
|
136
|
-
:param scaling_resource_type: The scaling_resource_type of this
|
|
137
|
-
:type: str
|
|
164
|
+
:param scaling_resource_type: The scaling_resource_type of this CreateScalingPolicyV2Option.
|
|
165
|
+
:type scaling_resource_type: str
|
|
138
166
|
"""
|
|
139
167
|
self._scaling_resource_type = scaling_resource_type
|
|
140
168
|
|
|
141
169
|
@property
|
|
142
170
|
def scaling_policy_type(self):
|
|
143
|
-
"""Gets the scaling_policy_type of this
|
|
171
|
+
r"""Gets the scaling_policy_type of this CreateScalingPolicyV2Option.
|
|
144
172
|
|
|
145
173
|
策略类型。告警策略:ALARM(与alarm_id对应);定时策略:SCHEDULED(与scheduled_policy对应);周期策略:RECURRENCE(与scheduled_policy对应)
|
|
146
174
|
|
|
147
|
-
:return: The scaling_policy_type of this
|
|
175
|
+
:return: The scaling_policy_type of this CreateScalingPolicyV2Option.
|
|
148
176
|
:rtype: str
|
|
149
177
|
"""
|
|
150
178
|
return self._scaling_policy_type
|
|
151
179
|
|
|
152
180
|
@scaling_policy_type.setter
|
|
153
181
|
def scaling_policy_type(self, scaling_policy_type):
|
|
154
|
-
"""Sets the scaling_policy_type of this
|
|
182
|
+
r"""Sets the scaling_policy_type of this CreateScalingPolicyV2Option.
|
|
155
183
|
|
|
156
184
|
策略类型。告警策略:ALARM(与alarm_id对应);定时策略:SCHEDULED(与scheduled_policy对应);周期策略:RECURRENCE(与scheduled_policy对应)
|
|
157
185
|
|
|
158
|
-
:param scaling_policy_type: The scaling_policy_type of this
|
|
159
|
-
:type: str
|
|
186
|
+
:param scaling_policy_type: The scaling_policy_type of this CreateScalingPolicyV2Option.
|
|
187
|
+
:type scaling_policy_type: str
|
|
160
188
|
"""
|
|
161
189
|
self._scaling_policy_type = scaling_policy_type
|
|
162
190
|
|
|
163
191
|
@property
|
|
164
192
|
def alarm_id(self):
|
|
165
|
-
"""Gets the alarm_id of this
|
|
193
|
+
r"""Gets the alarm_id of this CreateScalingPolicyV2Option.
|
|
166
194
|
|
|
167
195
|
告警ID,即告警规则的ID,当scaling_policy_type为ALARM时该项必选,此时scheduled_policy不生效。创建告警策略成功后,会自动为该告警ID对应的告警规则的alarm_actions字段增加类型为autoscaling的告警触发动作。告警ID通过查询云监控告警规则列表获取,详见《云监控API参考》的“查询告警规则列表”。
|
|
168
196
|
|
|
169
|
-
:return: The alarm_id of this
|
|
197
|
+
:return: The alarm_id of this CreateScalingPolicyV2Option.
|
|
170
198
|
:rtype: str
|
|
171
199
|
"""
|
|
172
200
|
return self._alarm_id
|
|
173
201
|
|
|
174
202
|
@alarm_id.setter
|
|
175
203
|
def alarm_id(self, alarm_id):
|
|
176
|
-
"""Sets the alarm_id of this
|
|
204
|
+
r"""Sets the alarm_id of this CreateScalingPolicyV2Option.
|
|
177
205
|
|
|
178
206
|
告警ID,即告警规则的ID,当scaling_policy_type为ALARM时该项必选,此时scheduled_policy不生效。创建告警策略成功后,会自动为该告警ID对应的告警规则的alarm_actions字段增加类型为autoscaling的告警触发动作。告警ID通过查询云监控告警规则列表获取,详见《云监控API参考》的“查询告警规则列表”。
|
|
179
207
|
|
|
180
|
-
:param alarm_id: The alarm_id of this
|
|
181
|
-
:type: str
|
|
208
|
+
:param alarm_id: The alarm_id of this CreateScalingPolicyV2Option.
|
|
209
|
+
:type alarm_id: str
|
|
182
210
|
"""
|
|
183
211
|
self._alarm_id = alarm_id
|
|
184
212
|
|
|
185
213
|
@property
|
|
186
214
|
def scheduled_policy(self):
|
|
187
|
-
"""Gets the scheduled_policy of this
|
|
188
|
-
|
|
215
|
+
r"""Gets the scheduled_policy of this CreateScalingPolicyV2Option.
|
|
189
216
|
|
|
190
|
-
:return: The scheduled_policy of this
|
|
191
|
-
:rtype: ScheduledPolicy
|
|
217
|
+
:return: The scheduled_policy of this CreateScalingPolicyV2Option.
|
|
218
|
+
:rtype: :class:`huaweicloudsdkas.v1.ScheduledPolicy`
|
|
192
219
|
"""
|
|
193
220
|
return self._scheduled_policy
|
|
194
221
|
|
|
195
222
|
@scheduled_policy.setter
|
|
196
223
|
def scheduled_policy(self, scheduled_policy):
|
|
197
|
-
"""Sets the scheduled_policy of this
|
|
224
|
+
r"""Sets the scheduled_policy of this CreateScalingPolicyV2Option.
|
|
198
225
|
|
|
199
|
-
|
|
200
|
-
:
|
|
201
|
-
:type: ScheduledPolicy
|
|
226
|
+
:param scheduled_policy: The scheduled_policy of this CreateScalingPolicyV2Option.
|
|
227
|
+
:type scheduled_policy: :class:`huaweicloudsdkas.v1.ScheduledPolicy`
|
|
202
228
|
"""
|
|
203
229
|
self._scheduled_policy = scheduled_policy
|
|
204
230
|
|
|
205
231
|
@property
|
|
206
232
|
def scaling_policy_action(self):
|
|
207
|
-
"""Gets the scaling_policy_action of this
|
|
208
|
-
|
|
233
|
+
r"""Gets the scaling_policy_action of this CreateScalingPolicyV2Option.
|
|
209
234
|
|
|
210
|
-
:return: The scaling_policy_action of this
|
|
211
|
-
:rtype: ScalingPolicyActionV2
|
|
235
|
+
:return: The scaling_policy_action of this CreateScalingPolicyV2Option.
|
|
236
|
+
:rtype: :class:`huaweicloudsdkas.v1.ScalingPolicyActionV2`
|
|
212
237
|
"""
|
|
213
238
|
return self._scaling_policy_action
|
|
214
239
|
|
|
215
240
|
@scaling_policy_action.setter
|
|
216
241
|
def scaling_policy_action(self, scaling_policy_action):
|
|
217
|
-
"""Sets the scaling_policy_action of this
|
|
242
|
+
r"""Sets the scaling_policy_action of this CreateScalingPolicyV2Option.
|
|
218
243
|
|
|
219
|
-
|
|
220
|
-
:
|
|
221
|
-
:type: ScalingPolicyActionV2
|
|
244
|
+
:param scaling_policy_action: The scaling_policy_action of this CreateScalingPolicyV2Option.
|
|
245
|
+
:type scaling_policy_action: :class:`huaweicloudsdkas.v1.ScalingPolicyActionV2`
|
|
222
246
|
"""
|
|
223
247
|
self._scaling_policy_action = scaling_policy_action
|
|
224
248
|
|
|
249
|
+
@property
|
|
250
|
+
def interval_alarm_actions(self):
|
|
251
|
+
r"""Gets the interval_alarm_actions of this CreateScalingPolicyV2Option.
|
|
252
|
+
|
|
253
|
+
:return: The interval_alarm_actions of this CreateScalingPolicyV2Option.
|
|
254
|
+
:rtype: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
|
|
255
|
+
"""
|
|
256
|
+
return self._interval_alarm_actions
|
|
257
|
+
|
|
258
|
+
@interval_alarm_actions.setter
|
|
259
|
+
def interval_alarm_actions(self, interval_alarm_actions):
|
|
260
|
+
r"""Sets the interval_alarm_actions of this CreateScalingPolicyV2Option.
|
|
261
|
+
|
|
262
|
+
:param interval_alarm_actions: The interval_alarm_actions of this CreateScalingPolicyV2Option.
|
|
263
|
+
:type interval_alarm_actions: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
|
|
264
|
+
"""
|
|
265
|
+
self._interval_alarm_actions = interval_alarm_actions
|
|
266
|
+
|
|
225
267
|
@property
|
|
226
268
|
def cool_down_time(self):
|
|
227
|
-
"""Gets the cool_down_time of this
|
|
269
|
+
r"""Gets the cool_down_time of this CreateScalingPolicyV2Option.
|
|
228
270
|
|
|
229
271
|
冷却时间,取值范围0-86400,默认为300,单位是秒。
|
|
230
272
|
|
|
231
|
-
:return: The cool_down_time of this
|
|
273
|
+
:return: The cool_down_time of this CreateScalingPolicyV2Option.
|
|
232
274
|
:rtype: int
|
|
233
275
|
"""
|
|
234
276
|
return self._cool_down_time
|
|
235
277
|
|
|
236
278
|
@cool_down_time.setter
|
|
237
279
|
def cool_down_time(self, cool_down_time):
|
|
238
|
-
"""Sets the cool_down_time of this
|
|
280
|
+
r"""Sets the cool_down_time of this CreateScalingPolicyV2Option.
|
|
239
281
|
|
|
240
282
|
冷却时间,取值范围0-86400,默认为300,单位是秒。
|
|
241
283
|
|
|
242
|
-
:param cool_down_time: The cool_down_time of this
|
|
243
|
-
:type: int
|
|
284
|
+
:param cool_down_time: The cool_down_time of this CreateScalingPolicyV2Option.
|
|
285
|
+
:type cool_down_time: int
|
|
244
286
|
"""
|
|
245
287
|
self._cool_down_time = cool_down_time
|
|
246
288
|
|
|
289
|
+
@property
|
|
290
|
+
def description(self):
|
|
291
|
+
r"""Gets the description of this CreateScalingPolicyV2Option.
|
|
292
|
+
|
|
293
|
+
伸缩策略描述(1-256个字符)
|
|
294
|
+
|
|
295
|
+
:return: The description of this CreateScalingPolicyV2Option.
|
|
296
|
+
:rtype: str
|
|
297
|
+
"""
|
|
298
|
+
return self._description
|
|
299
|
+
|
|
300
|
+
@description.setter
|
|
301
|
+
def description(self, description):
|
|
302
|
+
r"""Sets the description of this CreateScalingPolicyV2Option.
|
|
303
|
+
|
|
304
|
+
伸缩策略描述(1-256个字符)
|
|
305
|
+
|
|
306
|
+
:param description: The description of this CreateScalingPolicyV2Option.
|
|
307
|
+
:type description: str
|
|
308
|
+
"""
|
|
309
|
+
self._description = description
|
|
310
|
+
|
|
247
311
|
def to_dict(self):
|
|
248
312
|
"""Returns the model properties as a dict"""
|
|
249
313
|
result = {}
|
|
@@ -273,15 +337,20 @@ class CreateScalingPolicyV2RequestBody:
|
|
|
273
337
|
|
|
274
338
|
def to_str(self):
|
|
275
339
|
"""Returns the string representation of the model"""
|
|
276
|
-
|
|
340
|
+
import simplejson as json
|
|
341
|
+
if six.PY2:
|
|
342
|
+
import sys
|
|
343
|
+
reload(sys)
|
|
344
|
+
sys.setdefaultencoding("utf-8")
|
|
345
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
277
346
|
|
|
278
347
|
def __repr__(self):
|
|
279
|
-
"""For `print`
|
|
348
|
+
"""For `print`"""
|
|
280
349
|
return self.to_str()
|
|
281
350
|
|
|
282
351
|
def __eq__(self, other):
|
|
283
352
|
"""Returns true if both objects are equal"""
|
|
284
|
-
if not isinstance(other,
|
|
353
|
+
if not isinstance(other, CreateScalingPolicyV2Option):
|
|
285
354
|
return False
|
|
286
355
|
|
|
287
356
|
return self.__dict__ == other.__dict__
|
huaweicloudsdkas/v1/model/{create_scaling_tags_request.py → create_scaling_tag_info_request.py}
RENAMED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
3
|
import six
|
|
7
4
|
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
8
6
|
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class CreateScalingTagsRequest:
|
|
13
|
-
|
|
8
|
+
class CreateScalingTagInfoRequest:
|
|
14
9
|
|
|
15
10
|
"""
|
|
16
11
|
Attributes:
|
|
@@ -19,13 +14,12 @@ class CreateScalingTagsRequest:
|
|
|
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 = {
|
|
26
20
|
'resource_type': 'str',
|
|
27
21
|
'resource_id': 'str',
|
|
28
|
-
'body': '
|
|
22
|
+
'body': 'CreateTagsOption'
|
|
29
23
|
}
|
|
30
24
|
|
|
31
25
|
attribute_map = {
|
|
@@ -35,7 +29,17 @@ class CreateScalingTagsRequest:
|
|
|
35
29
|
}
|
|
36
30
|
|
|
37
31
|
def __init__(self, resource_type=None, resource_id=None, body=None):
|
|
38
|
-
"""
|
|
32
|
+
r"""CreateScalingTagInfoRequest
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param resource_type: 资源类型,枚举类:scaling_group_tag。scaling_group_tag表示资源类型为伸缩组。
|
|
37
|
+
:type resource_type: str
|
|
38
|
+
:param resource_id: 资源ID。
|
|
39
|
+
:type resource_id: str
|
|
40
|
+
:param body: Body of the CreateScalingTagInfoRequest
|
|
41
|
+
:type body: :class:`huaweicloudsdkas.v1.CreateTagsOption`
|
|
42
|
+
"""
|
|
39
43
|
|
|
40
44
|
|
|
41
45
|
|
|
@@ -51,61 +55,63 @@ class CreateScalingTagsRequest:
|
|
|
51
55
|
|
|
52
56
|
@property
|
|
53
57
|
def resource_type(self):
|
|
54
|
-
"""Gets the resource_type of this
|
|
58
|
+
r"""Gets the resource_type of this CreateScalingTagInfoRequest.
|
|
55
59
|
|
|
60
|
+
资源类型,枚举类:scaling_group_tag。scaling_group_tag表示资源类型为伸缩组。
|
|
56
61
|
|
|
57
|
-
:return: The resource_type of this
|
|
62
|
+
:return: The resource_type of this CreateScalingTagInfoRequest.
|
|
58
63
|
:rtype: str
|
|
59
64
|
"""
|
|
60
65
|
return self._resource_type
|
|
61
66
|
|
|
62
67
|
@resource_type.setter
|
|
63
68
|
def resource_type(self, resource_type):
|
|
64
|
-
"""Sets the resource_type of this
|
|
69
|
+
r"""Sets the resource_type of this CreateScalingTagInfoRequest.
|
|
65
70
|
|
|
71
|
+
资源类型,枚举类:scaling_group_tag。scaling_group_tag表示资源类型为伸缩组。
|
|
66
72
|
|
|
67
|
-
:param resource_type: The resource_type of this
|
|
68
|
-
:type: str
|
|
73
|
+
:param resource_type: The resource_type of this CreateScalingTagInfoRequest.
|
|
74
|
+
:type resource_type: str
|
|
69
75
|
"""
|
|
70
76
|
self._resource_type = resource_type
|
|
71
77
|
|
|
72
78
|
@property
|
|
73
79
|
def resource_id(self):
|
|
74
|
-
"""Gets the resource_id of this
|
|
80
|
+
r"""Gets the resource_id of this CreateScalingTagInfoRequest.
|
|
75
81
|
|
|
82
|
+
资源ID。
|
|
76
83
|
|
|
77
|
-
:return: The resource_id of this
|
|
84
|
+
:return: The resource_id of this CreateScalingTagInfoRequest.
|
|
78
85
|
:rtype: str
|
|
79
86
|
"""
|
|
80
87
|
return self._resource_id
|
|
81
88
|
|
|
82
89
|
@resource_id.setter
|
|
83
90
|
def resource_id(self, resource_id):
|
|
84
|
-
"""Sets the resource_id of this
|
|
91
|
+
r"""Sets the resource_id of this CreateScalingTagInfoRequest.
|
|
85
92
|
|
|
93
|
+
资源ID。
|
|
86
94
|
|
|
87
|
-
:param resource_id: The resource_id of this
|
|
88
|
-
:type: str
|
|
95
|
+
:param resource_id: The resource_id of this CreateScalingTagInfoRequest.
|
|
96
|
+
:type resource_id: str
|
|
89
97
|
"""
|
|
90
98
|
self._resource_id = resource_id
|
|
91
99
|
|
|
92
100
|
@property
|
|
93
101
|
def body(self):
|
|
94
|
-
"""Gets the body of this
|
|
102
|
+
r"""Gets the body of this CreateScalingTagInfoRequest.
|
|
95
103
|
|
|
96
|
-
|
|
97
|
-
:
|
|
98
|
-
:rtype: CreateScalingTagsRequestBody
|
|
104
|
+
:return: The body of this CreateScalingTagInfoRequest.
|
|
105
|
+
:rtype: :class:`huaweicloudsdkas.v1.CreateTagsOption`
|
|
99
106
|
"""
|
|
100
107
|
return self._body
|
|
101
108
|
|
|
102
109
|
@body.setter
|
|
103
110
|
def body(self, body):
|
|
104
|
-
"""Sets the body of this
|
|
105
|
-
|
|
111
|
+
r"""Sets the body of this CreateScalingTagInfoRequest.
|
|
106
112
|
|
|
107
|
-
:param body: The body of this
|
|
108
|
-
:type:
|
|
113
|
+
:param body: The body of this CreateScalingTagInfoRequest.
|
|
114
|
+
:type body: :class:`huaweicloudsdkas.v1.CreateTagsOption`
|
|
109
115
|
"""
|
|
110
116
|
self._body = body
|
|
111
117
|
|
|
@@ -138,15 +144,20 @@ class CreateScalingTagsRequest:
|
|
|
138
144
|
|
|
139
145
|
def to_str(self):
|
|
140
146
|
"""Returns the string representation of the model"""
|
|
141
|
-
|
|
147
|
+
import simplejson as json
|
|
148
|
+
if six.PY2:
|
|
149
|
+
import sys
|
|
150
|
+
reload(sys)
|
|
151
|
+
sys.setdefaultencoding("utf-8")
|
|
152
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
142
153
|
|
|
143
154
|
def __repr__(self):
|
|
144
|
-
"""For `print`
|
|
155
|
+
"""For `print`"""
|
|
145
156
|
return self.to_str()
|
|
146
157
|
|
|
147
158
|
def __eq__(self, other):
|
|
148
159
|
"""Returns true if both objects are equal"""
|
|
149
|
-
if not isinstance(other,
|
|
160
|
+
if not isinstance(other, CreateScalingTagInfoRequest):
|
|
150
161
|
return False
|
|
151
162
|
|
|
152
163
|
return self.__dict__ == other.__dict__
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class CreateScalingTagInfoResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""CreateScalingTagInfoResponse
|
|
28
|
+
|
|
29
|
+
The model defined in huaweicloud sdk
|
|
30
|
+
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
super(CreateScalingTagInfoResponse, self).__init__()
|
|
34
|
+
self.discriminator = None
|
|
35
|
+
|
|
36
|
+
def to_dict(self):
|
|
37
|
+
"""Returns the model properties as a dict"""
|
|
38
|
+
result = {}
|
|
39
|
+
|
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
41
|
+
value = getattr(self, attr)
|
|
42
|
+
if isinstance(value, list):
|
|
43
|
+
result[attr] = list(map(
|
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
45
|
+
value
|
|
46
|
+
))
|
|
47
|
+
elif hasattr(value, "to_dict"):
|
|
48
|
+
result[attr] = value.to_dict()
|
|
49
|
+
elif isinstance(value, dict):
|
|
50
|
+
result[attr] = dict(map(
|
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
|
53
|
+
value.items()
|
|
54
|
+
))
|
|
55
|
+
else:
|
|
56
|
+
if attr in self.sensitive_list:
|
|
57
|
+
result[attr] = "****"
|
|
58
|
+
else:
|
|
59
|
+
result[attr] = value
|
|
60
|
+
|
|
61
|
+
return result
|
|
62
|
+
|
|
63
|
+
def to_str(self):
|
|
64
|
+
"""Returns the string representation of the model"""
|
|
65
|
+
import simplejson as json
|
|
66
|
+
if six.PY2:
|
|
67
|
+
import sys
|
|
68
|
+
reload(sys)
|
|
69
|
+
sys.setdefaultencoding("utf-8")
|
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
71
|
+
|
|
72
|
+
def __repr__(self):
|
|
73
|
+
"""For `print`"""
|
|
74
|
+
return self.to_str()
|
|
75
|
+
|
|
76
|
+
def __eq__(self, other):
|
|
77
|
+
"""Returns true if both objects are equal"""
|
|
78
|
+
if not isinstance(other, CreateScalingTagInfoResponse):
|
|
79
|
+
return False
|
|
80
|
+
|
|
81
|
+
return self.__dict__ == other.__dict__
|
|
82
|
+
|
|
83
|
+
def __ne__(self, other):
|
|
84
|
+
"""Returns true if both objects are not equal"""
|
|
85
|
+
return not self == other
|