huaweicloudsdkas 3.0.42rc0__py3-none-any.whl → 3.1.160__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 +91 -38
- {huaweicloudsdkas-3.0.42rc0.dist-info → huaweicloudsdkas-3.1.160.dist-info}/METADATA +9 -9
- huaweicloudsdkas-3.1.160.dist-info/RECORD +228 -0
- {huaweicloudsdkas-3.0.42rc0.dist-info → huaweicloudsdkas-3.1.160.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.42rc0.dist-info/RECORD +0 -167
- {huaweicloudsdkas-3.0.42rc0.dist-info → huaweicloudsdkas-3.1.160.dist-info}/LICENSE +0 -0
- {huaweicloudsdkas-3.0.42rc0.dist-info → huaweicloudsdkas-3.1.160.dist-info}/top_level.txt +0 -0
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
3
|
import six
|
|
7
4
|
|
|
8
|
-
|
|
9
5
|
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
7
|
|
|
11
8
|
|
|
12
9
|
class ShowLifeCycleHookResponse(SdkResponse):
|
|
13
10
|
|
|
14
|
-
|
|
15
11
|
"""
|
|
16
12
|
Attributes:
|
|
17
13
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +15,6 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
19
15
|
attribute_map (dict): The key is attribute name
|
|
20
16
|
and the value is json key in definition.
|
|
21
17
|
"""
|
|
22
|
-
|
|
23
18
|
sensitive_list = []
|
|
24
19
|
|
|
25
20
|
openapi_types = {
|
|
@@ -30,7 +25,7 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
30
25
|
'notification_topic_urn': 'str',
|
|
31
26
|
'notification_topic_name': 'str',
|
|
32
27
|
'notification_metadata': 'str',
|
|
33
|
-
'create_time': '
|
|
28
|
+
'create_time': 'str'
|
|
34
29
|
}
|
|
35
30
|
|
|
36
31
|
attribute_map = {
|
|
@@ -45,9 +40,29 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
45
40
|
}
|
|
46
41
|
|
|
47
42
|
def __init__(self, lifecycle_hook_name=None, lifecycle_hook_type=None, default_result=None, default_timeout=None, notification_topic_urn=None, notification_topic_name=None, notification_metadata=None, create_time=None):
|
|
48
|
-
"""ShowLifeCycleHookResponse
|
|
43
|
+
r"""ShowLifeCycleHookResponse
|
|
44
|
+
|
|
45
|
+
The model defined in huaweicloud sdk
|
|
46
|
+
|
|
47
|
+
:param lifecycle_hook_name: 生命周期挂钩名称。
|
|
48
|
+
:type lifecycle_hook_name: str
|
|
49
|
+
:param lifecycle_hook_type: 生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
|
|
50
|
+
:type lifecycle_hook_type: str
|
|
51
|
+
:param default_result: 生命周期挂钩默认回调操作。ABANDON;CONTINUE
|
|
52
|
+
:type default_result: str
|
|
53
|
+
:param default_timeout: 生命周期挂钩超时时间,单位秒。
|
|
54
|
+
:type default_timeout: int
|
|
55
|
+
:param notification_topic_urn: SMN服务中Topic的唯一的资源标识。
|
|
56
|
+
:type notification_topic_urn: str
|
|
57
|
+
:param notification_topic_name: SMN服务中Topic的资源名称。
|
|
58
|
+
:type notification_topic_name: str
|
|
59
|
+
:param notification_metadata: 自定义通知消息。
|
|
60
|
+
:type notification_metadata: str
|
|
61
|
+
:param create_time: 生命周期挂钩创建时间,遵循UTC时间。
|
|
62
|
+
:type create_time: str
|
|
63
|
+
"""
|
|
49
64
|
|
|
50
|
-
super().__init__()
|
|
65
|
+
super(ShowLifeCycleHookResponse, self).__init__()
|
|
51
66
|
|
|
52
67
|
self._lifecycle_hook_name = None
|
|
53
68
|
self._lifecycle_hook_type = None
|
|
@@ -78,7 +93,7 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
78
93
|
|
|
79
94
|
@property
|
|
80
95
|
def lifecycle_hook_name(self):
|
|
81
|
-
"""Gets the lifecycle_hook_name of this ShowLifeCycleHookResponse.
|
|
96
|
+
r"""Gets the lifecycle_hook_name of this ShowLifeCycleHookResponse.
|
|
82
97
|
|
|
83
98
|
生命周期挂钩名称。
|
|
84
99
|
|
|
@@ -89,18 +104,18 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
89
104
|
|
|
90
105
|
@lifecycle_hook_name.setter
|
|
91
106
|
def lifecycle_hook_name(self, lifecycle_hook_name):
|
|
92
|
-
"""Sets the lifecycle_hook_name of this ShowLifeCycleHookResponse.
|
|
107
|
+
r"""Sets the lifecycle_hook_name of this ShowLifeCycleHookResponse.
|
|
93
108
|
|
|
94
109
|
生命周期挂钩名称。
|
|
95
110
|
|
|
96
111
|
:param lifecycle_hook_name: The lifecycle_hook_name of this ShowLifeCycleHookResponse.
|
|
97
|
-
:type: str
|
|
112
|
+
:type lifecycle_hook_name: str
|
|
98
113
|
"""
|
|
99
114
|
self._lifecycle_hook_name = lifecycle_hook_name
|
|
100
115
|
|
|
101
116
|
@property
|
|
102
117
|
def lifecycle_hook_type(self):
|
|
103
|
-
"""Gets the lifecycle_hook_type of this ShowLifeCycleHookResponse.
|
|
118
|
+
r"""Gets the lifecycle_hook_type of this ShowLifeCycleHookResponse.
|
|
104
119
|
|
|
105
120
|
生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
|
|
106
121
|
|
|
@@ -111,18 +126,18 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
111
126
|
|
|
112
127
|
@lifecycle_hook_type.setter
|
|
113
128
|
def lifecycle_hook_type(self, lifecycle_hook_type):
|
|
114
|
-
"""Sets the lifecycle_hook_type of this ShowLifeCycleHookResponse.
|
|
129
|
+
r"""Sets the lifecycle_hook_type of this ShowLifeCycleHookResponse.
|
|
115
130
|
|
|
116
131
|
生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
|
|
117
132
|
|
|
118
133
|
:param lifecycle_hook_type: The lifecycle_hook_type of this ShowLifeCycleHookResponse.
|
|
119
|
-
:type: str
|
|
134
|
+
:type lifecycle_hook_type: str
|
|
120
135
|
"""
|
|
121
136
|
self._lifecycle_hook_type = lifecycle_hook_type
|
|
122
137
|
|
|
123
138
|
@property
|
|
124
139
|
def default_result(self):
|
|
125
|
-
"""Gets the default_result of this ShowLifeCycleHookResponse.
|
|
140
|
+
r"""Gets the default_result of this ShowLifeCycleHookResponse.
|
|
126
141
|
|
|
127
142
|
生命周期挂钩默认回调操作。ABANDON;CONTINUE
|
|
128
143
|
|
|
@@ -133,18 +148,18 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
133
148
|
|
|
134
149
|
@default_result.setter
|
|
135
150
|
def default_result(self, default_result):
|
|
136
|
-
"""Sets the default_result of this ShowLifeCycleHookResponse.
|
|
151
|
+
r"""Sets the default_result of this ShowLifeCycleHookResponse.
|
|
137
152
|
|
|
138
153
|
生命周期挂钩默认回调操作。ABANDON;CONTINUE
|
|
139
154
|
|
|
140
155
|
:param default_result: The default_result of this ShowLifeCycleHookResponse.
|
|
141
|
-
:type: str
|
|
156
|
+
:type default_result: str
|
|
142
157
|
"""
|
|
143
158
|
self._default_result = default_result
|
|
144
159
|
|
|
145
160
|
@property
|
|
146
161
|
def default_timeout(self):
|
|
147
|
-
"""Gets the default_timeout of this ShowLifeCycleHookResponse.
|
|
162
|
+
r"""Gets the default_timeout of this ShowLifeCycleHookResponse.
|
|
148
163
|
|
|
149
164
|
生命周期挂钩超时时间,单位秒。
|
|
150
165
|
|
|
@@ -155,18 +170,18 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
155
170
|
|
|
156
171
|
@default_timeout.setter
|
|
157
172
|
def default_timeout(self, default_timeout):
|
|
158
|
-
"""Sets the default_timeout of this ShowLifeCycleHookResponse.
|
|
173
|
+
r"""Sets the default_timeout of this ShowLifeCycleHookResponse.
|
|
159
174
|
|
|
160
175
|
生命周期挂钩超时时间,单位秒。
|
|
161
176
|
|
|
162
177
|
:param default_timeout: The default_timeout of this ShowLifeCycleHookResponse.
|
|
163
|
-
:type: int
|
|
178
|
+
:type default_timeout: int
|
|
164
179
|
"""
|
|
165
180
|
self._default_timeout = default_timeout
|
|
166
181
|
|
|
167
182
|
@property
|
|
168
183
|
def notification_topic_urn(self):
|
|
169
|
-
"""Gets the notification_topic_urn of this ShowLifeCycleHookResponse.
|
|
184
|
+
r"""Gets the notification_topic_urn of this ShowLifeCycleHookResponse.
|
|
170
185
|
|
|
171
186
|
SMN服务中Topic的唯一的资源标识。
|
|
172
187
|
|
|
@@ -177,18 +192,18 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
177
192
|
|
|
178
193
|
@notification_topic_urn.setter
|
|
179
194
|
def notification_topic_urn(self, notification_topic_urn):
|
|
180
|
-
"""Sets the notification_topic_urn of this ShowLifeCycleHookResponse.
|
|
195
|
+
r"""Sets the notification_topic_urn of this ShowLifeCycleHookResponse.
|
|
181
196
|
|
|
182
197
|
SMN服务中Topic的唯一的资源标识。
|
|
183
198
|
|
|
184
199
|
:param notification_topic_urn: The notification_topic_urn of this ShowLifeCycleHookResponse.
|
|
185
|
-
:type: str
|
|
200
|
+
:type notification_topic_urn: str
|
|
186
201
|
"""
|
|
187
202
|
self._notification_topic_urn = notification_topic_urn
|
|
188
203
|
|
|
189
204
|
@property
|
|
190
205
|
def notification_topic_name(self):
|
|
191
|
-
"""Gets the notification_topic_name of this ShowLifeCycleHookResponse.
|
|
206
|
+
r"""Gets the notification_topic_name of this ShowLifeCycleHookResponse.
|
|
192
207
|
|
|
193
208
|
SMN服务中Topic的资源名称。
|
|
194
209
|
|
|
@@ -199,18 +214,18 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
199
214
|
|
|
200
215
|
@notification_topic_name.setter
|
|
201
216
|
def notification_topic_name(self, notification_topic_name):
|
|
202
|
-
"""Sets the notification_topic_name of this ShowLifeCycleHookResponse.
|
|
217
|
+
r"""Sets the notification_topic_name of this ShowLifeCycleHookResponse.
|
|
203
218
|
|
|
204
219
|
SMN服务中Topic的资源名称。
|
|
205
220
|
|
|
206
221
|
:param notification_topic_name: The notification_topic_name of this ShowLifeCycleHookResponse.
|
|
207
|
-
:type: str
|
|
222
|
+
:type notification_topic_name: str
|
|
208
223
|
"""
|
|
209
224
|
self._notification_topic_name = notification_topic_name
|
|
210
225
|
|
|
211
226
|
@property
|
|
212
227
|
def notification_metadata(self):
|
|
213
|
-
"""Gets the notification_metadata of this ShowLifeCycleHookResponse.
|
|
228
|
+
r"""Gets the notification_metadata of this ShowLifeCycleHookResponse.
|
|
214
229
|
|
|
215
230
|
自定义通知消息。
|
|
216
231
|
|
|
@@ -221,34 +236,34 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
221
236
|
|
|
222
237
|
@notification_metadata.setter
|
|
223
238
|
def notification_metadata(self, notification_metadata):
|
|
224
|
-
"""Sets the notification_metadata of this ShowLifeCycleHookResponse.
|
|
239
|
+
r"""Sets the notification_metadata of this ShowLifeCycleHookResponse.
|
|
225
240
|
|
|
226
241
|
自定义通知消息。
|
|
227
242
|
|
|
228
243
|
:param notification_metadata: The notification_metadata of this ShowLifeCycleHookResponse.
|
|
229
|
-
:type: str
|
|
244
|
+
:type notification_metadata: str
|
|
230
245
|
"""
|
|
231
246
|
self._notification_metadata = notification_metadata
|
|
232
247
|
|
|
233
248
|
@property
|
|
234
249
|
def create_time(self):
|
|
235
|
-
"""Gets the create_time of this ShowLifeCycleHookResponse.
|
|
250
|
+
r"""Gets the create_time of this ShowLifeCycleHookResponse.
|
|
236
251
|
|
|
237
252
|
生命周期挂钩创建时间,遵循UTC时间。
|
|
238
253
|
|
|
239
254
|
:return: The create_time of this ShowLifeCycleHookResponse.
|
|
240
|
-
:rtype:
|
|
255
|
+
:rtype: str
|
|
241
256
|
"""
|
|
242
257
|
return self._create_time
|
|
243
258
|
|
|
244
259
|
@create_time.setter
|
|
245
260
|
def create_time(self, create_time):
|
|
246
|
-
"""Sets the create_time of this ShowLifeCycleHookResponse.
|
|
261
|
+
r"""Sets the create_time of this ShowLifeCycleHookResponse.
|
|
247
262
|
|
|
248
263
|
生命周期挂钩创建时间,遵循UTC时间。
|
|
249
264
|
|
|
250
265
|
:param create_time: The create_time of this ShowLifeCycleHookResponse.
|
|
251
|
-
:type:
|
|
266
|
+
:type create_time: str
|
|
252
267
|
"""
|
|
253
268
|
self._create_time = create_time
|
|
254
269
|
|
|
@@ -281,10 +296,15 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
281
296
|
|
|
282
297
|
def to_str(self):
|
|
283
298
|
"""Returns the string representation of the model"""
|
|
284
|
-
|
|
299
|
+
import simplejson as json
|
|
300
|
+
if six.PY2:
|
|
301
|
+
import sys
|
|
302
|
+
reload(sys)
|
|
303
|
+
sys.setdefaultencoding("utf-8")
|
|
304
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
285
305
|
|
|
286
306
|
def __repr__(self):
|
|
287
|
-
"""For `print`
|
|
307
|
+
"""For `print`"""
|
|
288
308
|
return self.to_str()
|
|
289
309
|
|
|
290
310
|
def __eq__(self, other):
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
3
|
import six
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
6
|
|
|
11
7
|
|
|
12
8
|
class ShowPolicyAndInstanceQuotaRequest:
|
|
13
9
|
|
|
14
|
-
|
|
15
10
|
"""
|
|
16
11
|
Attributes:
|
|
17
12
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +14,6 @@ class ShowPolicyAndInstanceQuotaRequest:
|
|
|
19
14
|
attribute_map (dict): The key is attribute name
|
|
20
15
|
and the value is json key in definition.
|
|
21
16
|
"""
|
|
22
|
-
|
|
23
17
|
sensitive_list = []
|
|
24
18
|
|
|
25
19
|
openapi_types = {
|
|
@@ -31,7 +25,13 @@ class ShowPolicyAndInstanceQuotaRequest:
|
|
|
31
25
|
}
|
|
32
26
|
|
|
33
27
|
def __init__(self, scaling_group_id=None):
|
|
34
|
-
"""ShowPolicyAndInstanceQuotaRequest
|
|
28
|
+
r"""ShowPolicyAndInstanceQuotaRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param scaling_group_id: 伸缩组ID。
|
|
33
|
+
:type scaling_group_id: str
|
|
34
|
+
"""
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
@@ -42,8 +42,9 @@ class ShowPolicyAndInstanceQuotaRequest:
|
|
|
42
42
|
|
|
43
43
|
@property
|
|
44
44
|
def scaling_group_id(self):
|
|
45
|
-
"""Gets the scaling_group_id of this ShowPolicyAndInstanceQuotaRequest.
|
|
45
|
+
r"""Gets the scaling_group_id of this ShowPolicyAndInstanceQuotaRequest.
|
|
46
46
|
|
|
47
|
+
伸缩组ID。
|
|
47
48
|
|
|
48
49
|
:return: The scaling_group_id of this ShowPolicyAndInstanceQuotaRequest.
|
|
49
50
|
:rtype: str
|
|
@@ -52,11 +53,12 @@ class ShowPolicyAndInstanceQuotaRequest:
|
|
|
52
53
|
|
|
53
54
|
@scaling_group_id.setter
|
|
54
55
|
def scaling_group_id(self, scaling_group_id):
|
|
55
|
-
"""Sets the scaling_group_id of this ShowPolicyAndInstanceQuotaRequest.
|
|
56
|
+
r"""Sets the scaling_group_id of this ShowPolicyAndInstanceQuotaRequest.
|
|
56
57
|
|
|
58
|
+
伸缩组ID。
|
|
57
59
|
|
|
58
60
|
:param scaling_group_id: The scaling_group_id of this ShowPolicyAndInstanceQuotaRequest.
|
|
59
|
-
:type: str
|
|
61
|
+
:type scaling_group_id: str
|
|
60
62
|
"""
|
|
61
63
|
self._scaling_group_id = scaling_group_id
|
|
62
64
|
|
|
@@ -89,10 +91,15 @@ class ShowPolicyAndInstanceQuotaRequest:
|
|
|
89
91
|
|
|
90
92
|
def to_str(self):
|
|
91
93
|
"""Returns the string representation of the model"""
|
|
92
|
-
|
|
94
|
+
import simplejson as json
|
|
95
|
+
if six.PY2:
|
|
96
|
+
import sys
|
|
97
|
+
reload(sys)
|
|
98
|
+
sys.setdefaultencoding("utf-8")
|
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
93
100
|
|
|
94
101
|
def __repr__(self):
|
|
95
|
-
"""For `print`
|
|
102
|
+
"""For `print`"""
|
|
96
103
|
return self.to_str()
|
|
97
104
|
|
|
98
105
|
def __eq__(self, other):
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
3
|
import six
|
|
7
4
|
|
|
8
|
-
|
|
9
5
|
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
7
|
|
|
11
8
|
|
|
12
9
|
class ShowPolicyAndInstanceQuotaResponse(SdkResponse):
|
|
13
10
|
|
|
14
|
-
|
|
15
11
|
"""
|
|
16
12
|
Attributes:
|
|
17
13
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,47 +15,50 @@ class ShowPolicyAndInstanceQuotaResponse(SdkResponse):
|
|
|
19
15
|
attribute_map (dict): The key is attribute name
|
|
20
16
|
and the value is json key in definition.
|
|
21
17
|
"""
|
|
22
|
-
|
|
23
18
|
sensitive_list = []
|
|
24
19
|
|
|
25
20
|
openapi_types = {
|
|
26
|
-
'
|
|
21
|
+
'quotas': 'PolicyInstanceQuotas'
|
|
27
22
|
}
|
|
28
23
|
|
|
29
24
|
attribute_map = {
|
|
30
|
-
'
|
|
25
|
+
'quotas': 'quotas'
|
|
31
26
|
}
|
|
32
27
|
|
|
33
|
-
def __init__(self,
|
|
34
|
-
"""ShowPolicyAndInstanceQuotaResponse
|
|
28
|
+
def __init__(self, quotas=None):
|
|
29
|
+
r"""ShowPolicyAndInstanceQuotaResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param quotas:
|
|
34
|
+
:type quotas: :class:`huaweicloudsdkas.v1.PolicyInstanceQuotas`
|
|
35
|
+
"""
|
|
35
36
|
|
|
36
|
-
super().__init__()
|
|
37
|
+
super(ShowPolicyAndInstanceQuotaResponse, self).__init__()
|
|
37
38
|
|
|
38
|
-
self.
|
|
39
|
+
self._quotas = None
|
|
39
40
|
self.discriminator = None
|
|
40
41
|
|
|
41
|
-
if
|
|
42
|
-
self.
|
|
42
|
+
if quotas is not None:
|
|
43
|
+
self.quotas = quotas
|
|
43
44
|
|
|
44
45
|
@property
|
|
45
|
-
def
|
|
46
|
-
"""Gets the
|
|
46
|
+
def quotas(self):
|
|
47
|
+
r"""Gets the quotas of this ShowPolicyAndInstanceQuotaResponse.
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
:
|
|
50
|
-
:rtype: PolicyInstanceQuotas
|
|
49
|
+
:return: The quotas of this ShowPolicyAndInstanceQuotaResponse.
|
|
50
|
+
:rtype: :class:`huaweicloudsdkas.v1.PolicyInstanceQuotas`
|
|
51
51
|
"""
|
|
52
|
-
return self.
|
|
53
|
-
|
|
54
|
-
@all_quotas.setter
|
|
55
|
-
def all_quotas(self, all_quotas):
|
|
56
|
-
"""Sets the all_quotas of this ShowPolicyAndInstanceQuotaResponse.
|
|
52
|
+
return self._quotas
|
|
57
53
|
|
|
54
|
+
@quotas.setter
|
|
55
|
+
def quotas(self, quotas):
|
|
56
|
+
r"""Sets the quotas of this ShowPolicyAndInstanceQuotaResponse.
|
|
58
57
|
|
|
59
|
-
:param
|
|
60
|
-
:type: PolicyInstanceQuotas
|
|
58
|
+
:param quotas: The quotas of this ShowPolicyAndInstanceQuotaResponse.
|
|
59
|
+
:type quotas: :class:`huaweicloudsdkas.v1.PolicyInstanceQuotas`
|
|
61
60
|
"""
|
|
62
|
-
self.
|
|
61
|
+
self._quotas = quotas
|
|
63
62
|
|
|
64
63
|
def to_dict(self):
|
|
65
64
|
"""Returns the model properties as a dict"""
|
|
@@ -90,10 +89,15 @@ class ShowPolicyAndInstanceQuotaResponse(SdkResponse):
|
|
|
90
89
|
|
|
91
90
|
def to_str(self):
|
|
92
91
|
"""Returns the string representation of the model"""
|
|
93
|
-
|
|
92
|
+
import simplejson as json
|
|
93
|
+
if six.PY2:
|
|
94
|
+
import sys
|
|
95
|
+
reload(sys)
|
|
96
|
+
sys.setdefaultencoding("utf-8")
|
|
97
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
94
98
|
|
|
95
99
|
def __repr__(self):
|
|
96
|
-
"""For `print`
|
|
100
|
+
"""For `print`"""
|
|
97
101
|
return self.to_str()
|
|
98
102
|
|
|
99
103
|
def __eq__(self, other):
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
3
|
import six
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
6
|
|
|
11
7
|
|
|
12
8
|
class ShowResourceQuotaRequest:
|
|
13
9
|
|
|
14
|
-
|
|
15
10
|
"""
|
|
16
11
|
Attributes:
|
|
17
12
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +14,6 @@ class ShowResourceQuotaRequest:
|
|
|
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 = {
|
|
@@ -29,7 +23,11 @@ class ShowResourceQuotaRequest:
|
|
|
29
23
|
}
|
|
30
24
|
|
|
31
25
|
def __init__(self):
|
|
32
|
-
"""ShowResourceQuotaRequest
|
|
26
|
+
r"""ShowResourceQuotaRequest
|
|
27
|
+
|
|
28
|
+
The model defined in huaweicloud sdk
|
|
29
|
+
|
|
30
|
+
"""
|
|
33
31
|
|
|
34
32
|
|
|
35
33
|
self.discriminator = None
|
|
@@ -63,10 +61,15 @@ class ShowResourceQuotaRequest:
|
|
|
63
61
|
|
|
64
62
|
def to_str(self):
|
|
65
63
|
"""Returns the string representation of the model"""
|
|
66
|
-
|
|
64
|
+
import simplejson as json
|
|
65
|
+
if six.PY2:
|
|
66
|
+
import sys
|
|
67
|
+
reload(sys)
|
|
68
|
+
sys.setdefaultencoding("utf-8")
|
|
69
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
67
70
|
|
|
68
71
|
def __repr__(self):
|
|
69
|
-
"""For `print`
|
|
72
|
+
"""For `print`"""
|
|
70
73
|
return self.to_str()
|
|
71
74
|
|
|
72
75
|
def __eq__(self, other):
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
3
|
import six
|
|
7
4
|
|
|
8
|
-
|
|
9
5
|
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
7
|
|
|
11
8
|
|
|
12
9
|
class ShowResourceQuotaResponse(SdkResponse):
|
|
13
10
|
|
|
14
|
-
|
|
15
11
|
"""
|
|
16
12
|
Attributes:
|
|
17
13
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +15,6 @@ class ShowResourceQuotaResponse(SdkResponse):
|
|
|
19
15
|
attribute_map (dict): The key is attribute name
|
|
20
16
|
and the value is json key in definition.
|
|
21
17
|
"""
|
|
22
|
-
|
|
23
18
|
sensitive_list = []
|
|
24
19
|
|
|
25
20
|
openapi_types = {
|
|
@@ -31,9 +26,15 @@ class ShowResourceQuotaResponse(SdkResponse):
|
|
|
31
26
|
}
|
|
32
27
|
|
|
33
28
|
def __init__(self, quotas=None):
|
|
34
|
-
"""ShowResourceQuotaResponse
|
|
29
|
+
r"""ShowResourceQuotaResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param quotas:
|
|
34
|
+
:type quotas: :class:`huaweicloudsdkas.v1.AllQuotas`
|
|
35
|
+
"""
|
|
35
36
|
|
|
36
|
-
super().__init__()
|
|
37
|
+
super(ShowResourceQuotaResponse, self).__init__()
|
|
37
38
|
|
|
38
39
|
self._quotas = None
|
|
39
40
|
self.discriminator = None
|
|
@@ -43,21 +44,19 @@ class ShowResourceQuotaResponse(SdkResponse):
|
|
|
43
44
|
|
|
44
45
|
@property
|
|
45
46
|
def quotas(self):
|
|
46
|
-
"""Gets the quotas of this ShowResourceQuotaResponse.
|
|
47
|
-
|
|
47
|
+
r"""Gets the quotas of this ShowResourceQuotaResponse.
|
|
48
48
|
|
|
49
49
|
:return: The quotas of this ShowResourceQuotaResponse.
|
|
50
|
-
:rtype: AllQuotas
|
|
50
|
+
:rtype: :class:`huaweicloudsdkas.v1.AllQuotas`
|
|
51
51
|
"""
|
|
52
52
|
return self._quotas
|
|
53
53
|
|
|
54
54
|
@quotas.setter
|
|
55
55
|
def quotas(self, quotas):
|
|
56
|
-
"""Sets the quotas of this ShowResourceQuotaResponse.
|
|
57
|
-
|
|
56
|
+
r"""Sets the quotas of this ShowResourceQuotaResponse.
|
|
58
57
|
|
|
59
58
|
:param quotas: The quotas of this ShowResourceQuotaResponse.
|
|
60
|
-
:type: AllQuotas
|
|
59
|
+
:type quotas: :class:`huaweicloudsdkas.v1.AllQuotas`
|
|
61
60
|
"""
|
|
62
61
|
self._quotas = quotas
|
|
63
62
|
|
|
@@ -90,10 +89,15 @@ class ShowResourceQuotaResponse(SdkResponse):
|
|
|
90
89
|
|
|
91
90
|
def to_str(self):
|
|
92
91
|
"""Returns the string representation of the model"""
|
|
93
|
-
|
|
92
|
+
import simplejson as json
|
|
93
|
+
if six.PY2:
|
|
94
|
+
import sys
|
|
95
|
+
reload(sys)
|
|
96
|
+
sys.setdefaultencoding("utf-8")
|
|
97
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
94
98
|
|
|
95
99
|
def __repr__(self):
|
|
96
|
-
"""For `print`
|
|
100
|
+
"""For `print`"""
|
|
97
101
|
return self.to_str()
|
|
98
102
|
|
|
99
103
|
def __eq__(self, other):
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
3
|
import six
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
6
|
|
|
11
7
|
|
|
12
8
|
class ShowScalingConfigRequest:
|
|
13
9
|
|
|
14
|
-
|
|
15
10
|
"""
|
|
16
11
|
Attributes:
|
|
17
12
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +14,6 @@ class ShowScalingConfigRequest:
|
|
|
19
14
|
attribute_map (dict): The key is attribute name
|
|
20
15
|
and the value is json key in definition.
|
|
21
16
|
"""
|
|
22
|
-
|
|
23
17
|
sensitive_list = []
|
|
24
18
|
|
|
25
19
|
openapi_types = {
|
|
@@ -31,7 +25,13 @@ class ShowScalingConfigRequest:
|
|
|
31
25
|
}
|
|
32
26
|
|
|
33
27
|
def __init__(self, scaling_configuration_id=None):
|
|
34
|
-
"""ShowScalingConfigRequest
|
|
28
|
+
r"""ShowScalingConfigRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param scaling_configuration_id: 伸缩配置ID,查询唯一配置。
|
|
33
|
+
:type scaling_configuration_id: str
|
|
34
|
+
"""
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
@@ -42,8 +42,9 @@ class ShowScalingConfigRequest:
|
|
|
42
42
|
|
|
43
43
|
@property
|
|
44
44
|
def scaling_configuration_id(self):
|
|
45
|
-
"""Gets the scaling_configuration_id of this ShowScalingConfigRequest.
|
|
45
|
+
r"""Gets the scaling_configuration_id of this ShowScalingConfigRequest.
|
|
46
46
|
|
|
47
|
+
伸缩配置ID,查询唯一配置。
|
|
47
48
|
|
|
48
49
|
:return: The scaling_configuration_id of this ShowScalingConfigRequest.
|
|
49
50
|
:rtype: str
|
|
@@ -52,11 +53,12 @@ class ShowScalingConfigRequest:
|
|
|
52
53
|
|
|
53
54
|
@scaling_configuration_id.setter
|
|
54
55
|
def scaling_configuration_id(self, scaling_configuration_id):
|
|
55
|
-
"""Sets the scaling_configuration_id of this ShowScalingConfigRequest.
|
|
56
|
+
r"""Sets the scaling_configuration_id of this ShowScalingConfigRequest.
|
|
56
57
|
|
|
58
|
+
伸缩配置ID,查询唯一配置。
|
|
57
59
|
|
|
58
60
|
:param scaling_configuration_id: The scaling_configuration_id of this ShowScalingConfigRequest.
|
|
59
|
-
:type: str
|
|
61
|
+
:type scaling_configuration_id: str
|
|
60
62
|
"""
|
|
61
63
|
self._scaling_configuration_id = scaling_configuration_id
|
|
62
64
|
|
|
@@ -89,10 +91,15 @@ class ShowScalingConfigRequest:
|
|
|
89
91
|
|
|
90
92
|
def to_str(self):
|
|
91
93
|
"""Returns the string representation of the model"""
|
|
92
|
-
|
|
94
|
+
import simplejson as json
|
|
95
|
+
if six.PY2:
|
|
96
|
+
import sys
|
|
97
|
+
reload(sys)
|
|
98
|
+
sys.setdefaultencoding("utf-8")
|
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
93
100
|
|
|
94
101
|
def __repr__(self):
|
|
95
|
-
"""For `print`
|
|
102
|
+
"""For `print`"""
|
|
96
103
|
return self.to_str()
|
|
97
104
|
|
|
98
105
|
def __eq__(self, other):
|