huaweicloudsdkas 3.0.33rc0__py3-none-any.whl → 3.1.176__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkas/v1/__init__.py +135 -34
- huaweicloudsdkas/v1/as_async_client.py +3419 -1442
- huaweicloudsdkas/v1/as_client.py +3417 -1441
- huaweicloudsdkas/v1/model/__init__.py +134 -32
- huaweicloudsdkas/v1/model/all_quotas.py +16 -18
- huaweicloudsdkas/v1/model/all_resources.py +62 -29
- huaweicloudsdkas/v1/model/allowed_address_pair.py +108 -0
- huaweicloudsdkas/v1/model/attach_callback_instance_life_cycle_hook_request.py +132 -0
- huaweicloudsdkas/v1/model/attach_callback_instance_life_cycle_hook_response.py +81 -0
- huaweicloudsdkas/v1/model/bandwidth_info.py +194 -0
- huaweicloudsdkas/v1/model/{bandwidth.py → bandwidth_result.py} +52 -46
- huaweicloudsdkas/v1/model/{update_scaling_group_instance_request_body.py → batch_add_instances_option.py} +40 -36
- huaweicloudsdkas/v1/model/batch_add_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_add_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/{batch_delete_scaling_configs_request_body.py → batch_delete_scaling_config_option.py} +20 -23
- huaweicloudsdkas/v1/model/batch_delete_scaling_configs_request.py +17 -21
- huaweicloudsdkas/v1/model/batch_delete_scaling_configs_response.py +13 -13
- huaweicloudsdkas/v1/model/batch_delete_scaling_policies_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_delete_scaling_policies_request.py +104 -0
- huaweicloudsdkas/v1/model/{update_scaling_group_instance_response.py → batch_delete_scaling_policies_response.py} +15 -15
- huaweicloudsdkas/v1/model/batch_enter_standby_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_exit_stand_by_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_pause_scaling_policies_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_pause_scaling_policies_request.py +104 -0
- huaweicloudsdkas/v1/model/batch_pause_scaling_policies_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_protect_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_protect_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_protect_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_remove_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_remove_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_remove_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_resume_scaling_policies_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_resume_scaling_policies_request.py +104 -0
- huaweicloudsdkas/v1/model/batch_resume_scaling_policies_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_set_scaling_instances_standby_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_set_scaling_instances_standby_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_unprotect_instances_option.py +193 -0
- huaweicloudsdkas/v1/model/batch_unprotect_scaling_instances_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_unprotect_scaling_instances_response.py +81 -0
- huaweicloudsdkas/v1/model/batch_unset_scaling_instances_stantby_request.py +132 -0
- huaweicloudsdkas/v1/model/batch_unset_scaling_instances_stantby_response.py +81 -0
- huaweicloudsdkas/v1/model/{complete_lifecycle_action_request_body.py → callback_life_cycle_hook_option.py} +40 -36
- huaweicloudsdkas/v1/model/close_warm_pool_request.py +107 -0
- huaweicloudsdkas/v1/model/{complete_lifecycle_action_response.py → close_warm_pool_response.py} +15 -15
- huaweicloudsdkas/v1/model/create_group_scheduled_task_request.py +132 -0
- huaweicloudsdkas/v1/model/create_group_scheduled_task_response.py +112 -0
- huaweicloudsdkas/v1/model/{create_life_cycle_hook_request_body.py → create_life_cycle_hook_option.py} +56 -48
- huaweicloudsdkas/v1/model/create_lify_cycle_hook_request.py +24 -24
- huaweicloudsdkas/v1/model/create_lify_cycle_hook_response.py +55 -39
- huaweicloudsdkas/v1/model/{create_notification_request_body.py → create_notification_option.py} +28 -30
- huaweicloudsdkas/v1/model/create_scaling_config_option.py +162 -0
- huaweicloudsdkas/v1/model/create_scaling_config_request.py +17 -21
- huaweicloudsdkas/v1/model/create_scaling_config_response.py +18 -16
- huaweicloudsdkas/v1/model/{create_scaling_group_request_body.py → create_scaling_group_option.py} +286 -135
- huaweicloudsdkas/v1/model/create_scaling_group_request.py +17 -21
- huaweicloudsdkas/v1/model/create_scaling_group_response.py +18 -16
- huaweicloudsdkas/v1/model/create_scaling_notification_request.py +24 -24
- huaweicloudsdkas/v1/model/create_scaling_notification_response.py +28 -22
- huaweicloudsdkas/v1/model/{create_scaling_policy_request_body.py → create_scaling_policy_option.py} +66 -60
- huaweicloudsdkas/v1/model/create_scaling_policy_request.py +17 -21
- huaweicloudsdkas/v1/model/create_scaling_policy_response.py +18 -16
- huaweicloudsdkas/v1/model/create_scaling_policy_v2_option.py +353 -0
- huaweicloudsdkas/v1/model/{create_scaling_tags_request.py → create_scaling_tag_info_request.py} +39 -35
- huaweicloudsdkas/v1/model/create_scaling_tag_info_response.py +81 -0
- huaweicloudsdkas/v1/model/create_scaling_v2_policy_request.py +104 -0
- huaweicloudsdkas/v1/model/create_scaling_v2_policy_response.py +112 -0
- huaweicloudsdkas/v1/model/create_scheduled_task_option.py +155 -0
- huaweicloudsdkas/v1/model/{delete_scaling_tags_request_body.py → create_tags_option.py} +32 -34
- huaweicloudsdkas/v1/model/delete_group_scheduled_task_request.py +135 -0
- huaweicloudsdkas/v1/model/delete_group_scheduled_task_response.py +81 -0
- huaweicloudsdkas/v1/model/delete_lifecycle_hook_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_lifecycle_hook_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_config_request.py +17 -17
- huaweicloudsdkas/v1/model/delete_scaling_config_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_group_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_scaling_group_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_instance_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_scaling_instance_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_notification_request.py +24 -20
- huaweicloudsdkas/v1/model/delete_scaling_notification_response.py +13 -13
- huaweicloudsdkas/v1/model/delete_scaling_policy_request.py +17 -17
- huaweicloudsdkas/v1/model/delete_scaling_policy_response.py +13 -13
- huaweicloudsdkas/v1/model/{delete_scaling_tags_request.py → delete_scaling_tag_info_request.py} +39 -35
- huaweicloudsdkas/v1/model/delete_scaling_tag_info_response.py +81 -0
- huaweicloudsdkas/v1/model/{create_scaling_tags_request_body.py → delete_tags_option.py} +34 -36
- huaweicloudsdkas/v1/model/disk_info.py +333 -0
- huaweicloudsdkas/v1/model/disk_result.py +336 -0
- huaweicloudsdkas/v1/model/{eip.py → eip_info.py} +28 -30
- huaweicloudsdkas/v1/model/eip_meta_data.py +166 -0
- huaweicloudsdkas/v1/model/eip_result.py +133 -0
- huaweicloudsdkas/v1/model/execute_scaling_policy_option.py +107 -0
- huaweicloudsdkas/v1/model/execute_scaling_policy_request.py +24 -24
- huaweicloudsdkas/v1/model/execute_scaling_policy_response.py +13 -13
- huaweicloudsdkas/v1/model/instance_config.py +99 -77
- huaweicloudsdkas/v1/model/instance_config_result.py +186 -75
- huaweicloudsdkas/v1/model/instance_hanging_infos.py +47 -37
- huaweicloudsdkas/v1/model/integer_range.py +166 -0
- huaweicloudsdkas/v1/model/interval_alarm_actions_v2.py +245 -0
- huaweicloudsdkas/v1/model/ipv6_bandwidth.py +15 -17
- huaweicloudsdkas/v1/model/job_records.py +52 -40
- huaweicloudsdkas/v1/model/lbaas_listener.py +195 -0
- huaweicloudsdkas/v1/model/lbaas_listeners.py +60 -30
- huaweicloudsdkas/v1/model/lbaas_listeners_result.py +74 -41
- huaweicloudsdkas/v1/model/lifecycle_hook_list.py +52 -40
- huaweicloudsdkas/v1/model/links.py +137 -0
- huaweicloudsdkas/v1/model/list_all_scaling_v2_policies_request.py +398 -0
- huaweicloudsdkas/v1/model/list_all_scaling_v2_policies_response.py +199 -0
- huaweicloudsdkas/v1/model/{delete_scaling_tags_response.py → list_api_versions_request.py} +13 -17
- huaweicloudsdkas/v1/model/list_api_versions_response.py +112 -0
- huaweicloudsdkas/v1/model/list_group_scheduled_tasks_request.py +165 -0
- huaweicloudsdkas/v1/model/list_group_scheduled_tasks_response.py +137 -0
- huaweicloudsdkas/v1/model/list_hook_instances_request.py +24 -20
- huaweicloudsdkas/v1/model/list_hook_instances_response.py +19 -17
- huaweicloudsdkas/v1/model/list_life_cycle_hooks_request.py +17 -17
- huaweicloudsdkas/v1/model/list_life_cycle_hooks_response.py +19 -17
- huaweicloudsdkas/v1/model/list_resource_instances_request.py +24 -24
- huaweicloudsdkas/v1/model/list_resource_instances_response.py +31 -25
- huaweicloudsdkas/v1/model/list_scaling_activity_logs_request.py +49 -33
- huaweicloudsdkas/v1/model/list_scaling_activity_logs_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_activity_v2_logs_request.py +310 -0
- huaweicloudsdkas/v1/model/list_scaling_activity_v2_logs_response.py +199 -0
- huaweicloudsdkas/v1/model/list_scaling_configs_request.py +38 -26
- huaweicloudsdkas/v1/model/list_scaling_configs_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_groups_request.py +77 -32
- huaweicloudsdkas/v1/model/list_scaling_groups_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_instances_request.py +52 -32
- huaweicloudsdkas/v1/model/list_scaling_instances_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_notifications_request.py +17 -17
- huaweicloudsdkas/v1/model/list_scaling_notifications_response.py +19 -17
- huaweicloudsdkas/v1/model/list_scaling_policies_request.py +52 -32
- huaweicloudsdkas/v1/model/list_scaling_policies_response.py +35 -27
- huaweicloudsdkas/v1/model/list_scaling_policy_execute_logs_request.py +77 -45
- huaweicloudsdkas/v1/model/list_scaling_policy_execute_logs_response.py +34 -26
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_resource_id_request.py +24 -20
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_resource_id_response.py +25 -21
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_tenant_id_request.py +17 -17
- huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_tenant_id_response.py +19 -17
- huaweicloudsdkas/v1/model/list_scaling_v2_policies_request.py +252 -0
- huaweicloudsdkas/v1/model/list_scaling_v2_policies_response.py +199 -0
- huaweicloudsdkas/v1/model/list_warm_pool_instances_request.py +165 -0
- huaweicloudsdkas/v1/model/list_warm_pool_instances_response.py +137 -0
- huaweicloudsdkas/v1/model/matches.py +22 -24
- huaweicloudsdkas/v1/model/meta_data.py +59 -32
- huaweicloudsdkas/v1/model/modify_lb.py +191 -0
- huaweicloudsdkas/v1/model/networks.py +60 -31
- huaweicloudsdkas/v1/model/networks_result.py +191 -0
- huaweicloudsdkas/v1/model/page_info.py +108 -0
- huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_request_body.py → pause_scaling_group_option.py} +20 -23
- huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_request.py → pause_scaling_group_request.py} +30 -30
- huaweicloudsdkas/v1/model/{create_scaling_tags_response.py → pause_scaling_group_response.py} +15 -15
- huaweicloudsdkas/v1/model/{execute_scaling_policy_request_body.py → pause_scaling_policy_option.py} +20 -23
- huaweicloudsdkas/v1/model/pause_scaling_policy_request.py +132 -0
- huaweicloudsdkas/v1/model/pause_scaling_policy_response.py +81 -0
- huaweicloudsdkas/v1/model/{personality.py → personality_info.py} +26 -26
- huaweicloudsdkas/v1/model/personality_result.py +137 -0
- huaweicloudsdkas/v1/model/policy_instance_quotas.py +16 -18
- huaweicloudsdkas/v1/model/policy_instance_resources.py +62 -29
- huaweicloudsdkas/v1/model/public_ip.py +17 -21
- huaweicloudsdkas/v1/model/publicip_result.py +104 -0
- huaweicloudsdkas/v1/model/put_warm_pool_option.py +166 -0
- huaweicloudsdkas/v1/model/{complete_lifecycle_action_request.py → put_warm_pool_request.py} +30 -30
- huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_response.py → put_warm_pool_response.py} +15 -15
- huaweicloudsdkas/v1/model/{show_tags_request_body.py → query_tags_option.py} +91 -77
- huaweicloudsdkas/v1/model/resource_tags.py +20 -20
- huaweicloudsdkas/v1/model/resources.py +31 -27
- huaweicloudsdkas/v1/model/resume_scaling_group_option.py +107 -0
- huaweicloudsdkas/v1/model/{update_scaling_group_instance_request.py → resume_scaling_group_request.py} +30 -30
- huaweicloudsdkas/v1/model/resume_scaling_group_response.py +81 -0
- huaweicloudsdkas/v1/model/resume_scaling_policy_option.py +107 -0
- huaweicloudsdkas/v1/model/resume_scaling_policy_request.py +132 -0
- huaweicloudsdkas/v1/model/resume_scaling_policy_response.py +81 -0
- huaweicloudsdkas/v1/model/scaling_activity_log_list.py +67 -49
- huaweicloudsdkas/v1/model/scaling_activity_log_v2.py +601 -0
- huaweicloudsdkas/v1/model/scaling_all_policy_detail.py +469 -0
- huaweicloudsdkas/v1/model/scaling_configuration.py +68 -35
- huaweicloudsdkas/v1/model/scaling_group_instance.py +62 -46
- huaweicloudsdkas/v1/model/scaling_groups.py +328 -104
- huaweicloudsdkas/v1/model/scaling_instance.py +224 -0
- huaweicloudsdkas/v1/model/scaling_policies_v2.py +469 -0
- huaweicloudsdkas/v1/model/{scaling_policy_action.py → scaling_policy_action_v1.py} +37 -35
- huaweicloudsdkas/v1/model/scaling_policy_action_v2.py +195 -0
- huaweicloudsdkas/v1/model/scaling_policy_execute_log_list.py +105 -81
- huaweicloudsdkas/v1/model/scaling_policy_v2_meta_data.py +166 -0
- huaweicloudsdkas/v1/model/{scaling_policy_detail.py → scaling_v1_policy_detail.py} +110 -71
- huaweicloudsdkas/v1/model/scaling_v2_policy_detail.py +469 -0
- huaweicloudsdkas/v1/model/scheduled_policy.py +38 -33
- huaweicloudsdkas/v1/model/scheduled_task_detail.py +332 -0
- huaweicloudsdkas/v1/model/scheduled_task_policy.py +223 -0
- huaweicloudsdkas/v1/model/security_group.py +107 -0
- huaweicloudsdkas/v1/model/security_groups.py +17 -19
- huaweicloudsdkas/v1/model/security_groups_result.py +15 -17
- huaweicloudsdkas/v1/model/show_api_version_request.py +107 -0
- huaweicloudsdkas/v1/model/show_api_version_response.py +108 -0
- huaweicloudsdkas/v1/model/show_life_cycle_hook_request.py +24 -20
- huaweicloudsdkas/v1/model/show_life_cycle_hook_response.py +55 -39
- huaweicloudsdkas/v1/model/show_policy_and_instance_quota_request.py +17 -17
- huaweicloudsdkas/v1/model/show_policy_and_instance_quota_response.py +32 -32
- huaweicloudsdkas/v1/model/show_resource_quota_request.py +10 -14
- huaweicloudsdkas/v1/model/show_resource_quota_response.py +19 -19
- huaweicloudsdkas/v1/model/show_scaling_config_request.py +17 -17
- huaweicloudsdkas/v1/model/show_scaling_config_response.py +19 -19
- huaweicloudsdkas/v1/model/show_scaling_group_request.py +17 -17
- huaweicloudsdkas/v1/model/show_scaling_group_response.py +19 -19
- huaweicloudsdkas/v1/model/show_scaling_policy_request.py +17 -17
- huaweicloudsdkas/v1/model/show_scaling_policy_response.py +20 -20
- huaweicloudsdkas/v1/model/show_scaling_v2_policy_request.py +107 -0
- huaweicloudsdkas/v1/model/show_scaling_v2_policy_response.py +108 -0
- huaweicloudsdkas/v1/model/show_warm_pool_request.py +107 -0
- huaweicloudsdkas/v1/model/show_warm_pool_response.py +108 -0
- huaweicloudsdkas/v1/model/tags_multi_value.py +26 -28
- huaweicloudsdkas/v1/model/tags_single_value.py +25 -26
- huaweicloudsdkas/v1/model/topics.py +25 -23
- huaweicloudsdkas/v1/model/update_group_scheduled_task_request.py +160 -0
- huaweicloudsdkas/v1/model/update_group_scheduled_task_response.py +81 -0
- huaweicloudsdkas/v1/model/update_instance_config.py +107 -0
- huaweicloudsdkas/v1/model/{update_life_cycle_hook_request_body.py → update_life_cycle_hook_option.py} +49 -43
- huaweicloudsdkas/v1/model/update_life_cycle_hook_request.py +31 -27
- huaweicloudsdkas/v1/model/update_life_cycle_hook_response.py +55 -39
- huaweicloudsdkas/v1/model/update_scaling_config_option.py +103 -0
- huaweicloudsdkas/v1/model/update_scaling_config_request.py +128 -0
- huaweicloudsdkas/v1/model/update_scaling_config_response.py +81 -0
- huaweicloudsdkas/v1/model/{update_scaling_group_request_body.py → update_scaling_group_option.py} +263 -115
- huaweicloudsdkas/v1/model/update_scaling_group_request.py +24 -24
- huaweicloudsdkas/v1/model/update_scaling_group_response.py +18 -16
- huaweicloudsdkas/v1/model/{update_scaling_policy_request_body.py → update_scaling_policy_option.py} +59 -55
- huaweicloudsdkas/v1/model/update_scaling_policy_request.py +24 -24
- huaweicloudsdkas/v1/model/update_scaling_policy_response.py +18 -16
- huaweicloudsdkas/v1/model/update_scaling_v2_policy_option.py +357 -0
- huaweicloudsdkas/v1/model/update_scaling_v2_policy_request.py +132 -0
- huaweicloudsdkas/v1/model/update_scaling_v2_policy_response.py +112 -0
- huaweicloudsdkas/v1/model/update_scheduled_task_option.py +158 -0
- huaweicloudsdkas/v1/model/version_info.py +253 -0
- huaweicloudsdkas/v1/model/vm_meta_data.py +108 -0
- huaweicloudsdkas/v1/model/warm_pool_info.py +195 -0
- huaweicloudsdkas/v1/model/warm_pool_instance.py +195 -0
- huaweicloudsdkas/v1/region/as_region.py +112 -38
- huaweicloudsdkas-3.1.176.dist-info/METADATA +25 -0
- huaweicloudsdkas-3.1.176.dist-info/RECORD +242 -0
- {huaweicloudsdkas-3.0.33rc0.dist-info → huaweicloudsdkas-3.1.176.dist-info}/WHEEL +1 -2
- huaweicloudsdkas/v1/model/create_scaling_config_request_body.py +0 -133
- huaweicloudsdkas/v1/model/disk.py +0 -242
- huaweicloudsdkas-3.0.33rc0.dist-info/METADATA +0 -26
- huaweicloudsdkas-3.0.33rc0.dist-info/RECORD +0 -141
- huaweicloudsdkas-3.0.33rc0.dist-info/top_level.txt +0 -1
- {huaweicloudsdkas-3.0.33rc0.dist-info → huaweicloudsdkas-3.1.176.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
|
-
import six
|
|
7
|
-
|
|
8
|
-
|
|
9
3
|
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
5
|
|
|
11
6
|
|
|
12
7
|
class ShowLifeCycleHookResponse(SdkResponse):
|
|
13
8
|
|
|
14
|
-
|
|
15
9
|
"""
|
|
16
10
|
Attributes:
|
|
17
11
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +13,6 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
19
13
|
attribute_map (dict): The key is attribute name
|
|
20
14
|
and the value is json key in definition.
|
|
21
15
|
"""
|
|
22
|
-
|
|
23
16
|
sensitive_list = []
|
|
24
17
|
|
|
25
18
|
openapi_types = {
|
|
@@ -30,7 +23,7 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
30
23
|
'notification_topic_urn': 'str',
|
|
31
24
|
'notification_topic_name': 'str',
|
|
32
25
|
'notification_metadata': 'str',
|
|
33
|
-
'create_time': '
|
|
26
|
+
'create_time': 'str'
|
|
34
27
|
}
|
|
35
28
|
|
|
36
29
|
attribute_map = {
|
|
@@ -45,7 +38,27 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
45
38
|
}
|
|
46
39
|
|
|
47
40
|
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
|
|
41
|
+
r"""ShowLifeCycleHookResponse
|
|
42
|
+
|
|
43
|
+
The model defined in huaweicloud sdk
|
|
44
|
+
|
|
45
|
+
:param lifecycle_hook_name: 生命周期挂钩名称。
|
|
46
|
+
:type lifecycle_hook_name: str
|
|
47
|
+
:param lifecycle_hook_type: 生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
|
|
48
|
+
:type lifecycle_hook_type: str
|
|
49
|
+
:param default_result: 生命周期挂钩默认回调操作。ABANDON;CONTINUE
|
|
50
|
+
:type default_result: str
|
|
51
|
+
:param default_timeout: 生命周期挂钩超时时间,单位秒。
|
|
52
|
+
:type default_timeout: int
|
|
53
|
+
:param notification_topic_urn: SMN服务中Topic的唯一的资源标识。
|
|
54
|
+
:type notification_topic_urn: str
|
|
55
|
+
:param notification_topic_name: SMN服务中Topic的资源名称。
|
|
56
|
+
:type notification_topic_name: str
|
|
57
|
+
:param notification_metadata: 自定义通知消息。
|
|
58
|
+
:type notification_metadata: str
|
|
59
|
+
:param create_time: 生命周期挂钩创建时间,遵循UTC时间。
|
|
60
|
+
:type create_time: str
|
|
61
|
+
"""
|
|
49
62
|
|
|
50
63
|
super().__init__()
|
|
51
64
|
|
|
@@ -78,7 +91,7 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
78
91
|
|
|
79
92
|
@property
|
|
80
93
|
def lifecycle_hook_name(self):
|
|
81
|
-
"""Gets the lifecycle_hook_name of this ShowLifeCycleHookResponse.
|
|
94
|
+
r"""Gets the lifecycle_hook_name of this ShowLifeCycleHookResponse.
|
|
82
95
|
|
|
83
96
|
生命周期挂钩名称。
|
|
84
97
|
|
|
@@ -89,18 +102,18 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
89
102
|
|
|
90
103
|
@lifecycle_hook_name.setter
|
|
91
104
|
def lifecycle_hook_name(self, lifecycle_hook_name):
|
|
92
|
-
"""Sets the lifecycle_hook_name of this ShowLifeCycleHookResponse.
|
|
105
|
+
r"""Sets the lifecycle_hook_name of this ShowLifeCycleHookResponse.
|
|
93
106
|
|
|
94
107
|
生命周期挂钩名称。
|
|
95
108
|
|
|
96
109
|
:param lifecycle_hook_name: The lifecycle_hook_name of this ShowLifeCycleHookResponse.
|
|
97
|
-
:type: str
|
|
110
|
+
:type lifecycle_hook_name: str
|
|
98
111
|
"""
|
|
99
112
|
self._lifecycle_hook_name = lifecycle_hook_name
|
|
100
113
|
|
|
101
114
|
@property
|
|
102
115
|
def lifecycle_hook_type(self):
|
|
103
|
-
"""Gets the lifecycle_hook_type of this ShowLifeCycleHookResponse.
|
|
116
|
+
r"""Gets the lifecycle_hook_type of this ShowLifeCycleHookResponse.
|
|
104
117
|
|
|
105
118
|
生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
|
|
106
119
|
|
|
@@ -111,18 +124,18 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
111
124
|
|
|
112
125
|
@lifecycle_hook_type.setter
|
|
113
126
|
def lifecycle_hook_type(self, lifecycle_hook_type):
|
|
114
|
-
"""Sets the lifecycle_hook_type of this ShowLifeCycleHookResponse.
|
|
127
|
+
r"""Sets the lifecycle_hook_type of this ShowLifeCycleHookResponse.
|
|
115
128
|
|
|
116
129
|
生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
|
|
117
130
|
|
|
118
131
|
:param lifecycle_hook_type: The lifecycle_hook_type of this ShowLifeCycleHookResponse.
|
|
119
|
-
:type: str
|
|
132
|
+
:type lifecycle_hook_type: str
|
|
120
133
|
"""
|
|
121
134
|
self._lifecycle_hook_type = lifecycle_hook_type
|
|
122
135
|
|
|
123
136
|
@property
|
|
124
137
|
def default_result(self):
|
|
125
|
-
"""Gets the default_result of this ShowLifeCycleHookResponse.
|
|
138
|
+
r"""Gets the default_result of this ShowLifeCycleHookResponse.
|
|
126
139
|
|
|
127
140
|
生命周期挂钩默认回调操作。ABANDON;CONTINUE
|
|
128
141
|
|
|
@@ -133,18 +146,18 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
133
146
|
|
|
134
147
|
@default_result.setter
|
|
135
148
|
def default_result(self, default_result):
|
|
136
|
-
"""Sets the default_result of this ShowLifeCycleHookResponse.
|
|
149
|
+
r"""Sets the default_result of this ShowLifeCycleHookResponse.
|
|
137
150
|
|
|
138
151
|
生命周期挂钩默认回调操作。ABANDON;CONTINUE
|
|
139
152
|
|
|
140
153
|
:param default_result: The default_result of this ShowLifeCycleHookResponse.
|
|
141
|
-
:type: str
|
|
154
|
+
:type default_result: str
|
|
142
155
|
"""
|
|
143
156
|
self._default_result = default_result
|
|
144
157
|
|
|
145
158
|
@property
|
|
146
159
|
def default_timeout(self):
|
|
147
|
-
"""Gets the default_timeout of this ShowLifeCycleHookResponse.
|
|
160
|
+
r"""Gets the default_timeout of this ShowLifeCycleHookResponse.
|
|
148
161
|
|
|
149
162
|
生命周期挂钩超时时间,单位秒。
|
|
150
163
|
|
|
@@ -155,18 +168,18 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
155
168
|
|
|
156
169
|
@default_timeout.setter
|
|
157
170
|
def default_timeout(self, default_timeout):
|
|
158
|
-
"""Sets the default_timeout of this ShowLifeCycleHookResponse.
|
|
171
|
+
r"""Sets the default_timeout of this ShowLifeCycleHookResponse.
|
|
159
172
|
|
|
160
173
|
生命周期挂钩超时时间,单位秒。
|
|
161
174
|
|
|
162
175
|
:param default_timeout: The default_timeout of this ShowLifeCycleHookResponse.
|
|
163
|
-
:type: int
|
|
176
|
+
:type default_timeout: int
|
|
164
177
|
"""
|
|
165
178
|
self._default_timeout = default_timeout
|
|
166
179
|
|
|
167
180
|
@property
|
|
168
181
|
def notification_topic_urn(self):
|
|
169
|
-
"""Gets the notification_topic_urn of this ShowLifeCycleHookResponse.
|
|
182
|
+
r"""Gets the notification_topic_urn of this ShowLifeCycleHookResponse.
|
|
170
183
|
|
|
171
184
|
SMN服务中Topic的唯一的资源标识。
|
|
172
185
|
|
|
@@ -177,18 +190,18 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
177
190
|
|
|
178
191
|
@notification_topic_urn.setter
|
|
179
192
|
def notification_topic_urn(self, notification_topic_urn):
|
|
180
|
-
"""Sets the notification_topic_urn of this ShowLifeCycleHookResponse.
|
|
193
|
+
r"""Sets the notification_topic_urn of this ShowLifeCycleHookResponse.
|
|
181
194
|
|
|
182
195
|
SMN服务中Topic的唯一的资源标识。
|
|
183
196
|
|
|
184
197
|
:param notification_topic_urn: The notification_topic_urn of this ShowLifeCycleHookResponse.
|
|
185
|
-
:type: str
|
|
198
|
+
:type notification_topic_urn: str
|
|
186
199
|
"""
|
|
187
200
|
self._notification_topic_urn = notification_topic_urn
|
|
188
201
|
|
|
189
202
|
@property
|
|
190
203
|
def notification_topic_name(self):
|
|
191
|
-
"""Gets the notification_topic_name of this ShowLifeCycleHookResponse.
|
|
204
|
+
r"""Gets the notification_topic_name of this ShowLifeCycleHookResponse.
|
|
192
205
|
|
|
193
206
|
SMN服务中Topic的资源名称。
|
|
194
207
|
|
|
@@ -199,18 +212,18 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
199
212
|
|
|
200
213
|
@notification_topic_name.setter
|
|
201
214
|
def notification_topic_name(self, notification_topic_name):
|
|
202
|
-
"""Sets the notification_topic_name of this ShowLifeCycleHookResponse.
|
|
215
|
+
r"""Sets the notification_topic_name of this ShowLifeCycleHookResponse.
|
|
203
216
|
|
|
204
217
|
SMN服务中Topic的资源名称。
|
|
205
218
|
|
|
206
219
|
:param notification_topic_name: The notification_topic_name of this ShowLifeCycleHookResponse.
|
|
207
|
-
:type: str
|
|
220
|
+
:type notification_topic_name: str
|
|
208
221
|
"""
|
|
209
222
|
self._notification_topic_name = notification_topic_name
|
|
210
223
|
|
|
211
224
|
@property
|
|
212
225
|
def notification_metadata(self):
|
|
213
|
-
"""Gets the notification_metadata of this ShowLifeCycleHookResponse.
|
|
226
|
+
r"""Gets the notification_metadata of this ShowLifeCycleHookResponse.
|
|
214
227
|
|
|
215
228
|
自定义通知消息。
|
|
216
229
|
|
|
@@ -221,42 +234,44 @@ class ShowLifeCycleHookResponse(SdkResponse):
|
|
|
221
234
|
|
|
222
235
|
@notification_metadata.setter
|
|
223
236
|
def notification_metadata(self, notification_metadata):
|
|
224
|
-
"""Sets the notification_metadata of this ShowLifeCycleHookResponse.
|
|
237
|
+
r"""Sets the notification_metadata of this ShowLifeCycleHookResponse.
|
|
225
238
|
|
|
226
239
|
自定义通知消息。
|
|
227
240
|
|
|
228
241
|
:param notification_metadata: The notification_metadata of this ShowLifeCycleHookResponse.
|
|
229
|
-
:type: str
|
|
242
|
+
:type notification_metadata: str
|
|
230
243
|
"""
|
|
231
244
|
self._notification_metadata = notification_metadata
|
|
232
245
|
|
|
233
246
|
@property
|
|
234
247
|
def create_time(self):
|
|
235
|
-
"""Gets the create_time of this ShowLifeCycleHookResponse.
|
|
248
|
+
r"""Gets the create_time of this ShowLifeCycleHookResponse.
|
|
236
249
|
|
|
237
250
|
生命周期挂钩创建时间,遵循UTC时间。
|
|
238
251
|
|
|
239
252
|
:return: The create_time of this ShowLifeCycleHookResponse.
|
|
240
|
-
:rtype:
|
|
253
|
+
:rtype: str
|
|
241
254
|
"""
|
|
242
255
|
return self._create_time
|
|
243
256
|
|
|
244
257
|
@create_time.setter
|
|
245
258
|
def create_time(self, create_time):
|
|
246
|
-
"""Sets the create_time of this ShowLifeCycleHookResponse.
|
|
259
|
+
r"""Sets the create_time of this ShowLifeCycleHookResponse.
|
|
247
260
|
|
|
248
261
|
生命周期挂钩创建时间,遵循UTC时间。
|
|
249
262
|
|
|
250
263
|
:param create_time: The create_time of this ShowLifeCycleHookResponse.
|
|
251
|
-
:type:
|
|
264
|
+
:type create_time: str
|
|
252
265
|
"""
|
|
253
266
|
self._create_time = create_time
|
|
254
267
|
|
|
255
268
|
def to_dict(self):
|
|
256
|
-
|
|
269
|
+
import warnings
|
|
270
|
+
warnings.warn("ShowLifeCycleHookResponse.to_dict() is deprecated and no longer maintained, "
|
|
271
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
257
272
|
result = {}
|
|
258
273
|
|
|
259
|
-
for attr, _ in
|
|
274
|
+
for attr, _ in self.openapi_types.items():
|
|
260
275
|
value = getattr(self, attr)
|
|
261
276
|
if isinstance(value, list):
|
|
262
277
|
result[attr] = list(map(
|
|
@@ -281,10 +296,11 @@ 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
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
285
301
|
|
|
286
302
|
def __repr__(self):
|
|
287
|
-
"""For `print`
|
|
303
|
+
"""For `print`"""
|
|
288
304
|
return self.to_str()
|
|
289
305
|
|
|
290
306
|
def __eq__(self, other):
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
|
-
import six
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
4
|
|
|
11
5
|
|
|
12
6
|
class ShowPolicyAndInstanceQuotaRequest:
|
|
13
7
|
|
|
14
|
-
|
|
15
8
|
"""
|
|
16
9
|
Attributes:
|
|
17
10
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +12,6 @@ class ShowPolicyAndInstanceQuotaRequest:
|
|
|
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 = {
|
|
@@ -31,7 +23,13 @@ class ShowPolicyAndInstanceQuotaRequest:
|
|
|
31
23
|
}
|
|
32
24
|
|
|
33
25
|
def __init__(self, scaling_group_id=None):
|
|
34
|
-
"""ShowPolicyAndInstanceQuotaRequest
|
|
26
|
+
r"""ShowPolicyAndInstanceQuotaRequest
|
|
27
|
+
|
|
28
|
+
The model defined in huaweicloud sdk
|
|
29
|
+
|
|
30
|
+
:param scaling_group_id: 伸缩组ID。
|
|
31
|
+
:type scaling_group_id: str
|
|
32
|
+
"""
|
|
35
33
|
|
|
36
34
|
|
|
37
35
|
|
|
@@ -42,8 +40,9 @@ class ShowPolicyAndInstanceQuotaRequest:
|
|
|
42
40
|
|
|
43
41
|
@property
|
|
44
42
|
def scaling_group_id(self):
|
|
45
|
-
"""Gets the scaling_group_id of this ShowPolicyAndInstanceQuotaRequest.
|
|
43
|
+
r"""Gets the scaling_group_id of this ShowPolicyAndInstanceQuotaRequest.
|
|
46
44
|
|
|
45
|
+
伸缩组ID。
|
|
47
46
|
|
|
48
47
|
:return: The scaling_group_id of this ShowPolicyAndInstanceQuotaRequest.
|
|
49
48
|
:rtype: str
|
|
@@ -52,19 +51,19 @@ class ShowPolicyAndInstanceQuotaRequest:
|
|
|
52
51
|
|
|
53
52
|
@scaling_group_id.setter
|
|
54
53
|
def scaling_group_id(self, scaling_group_id):
|
|
55
|
-
"""Sets the scaling_group_id of this ShowPolicyAndInstanceQuotaRequest.
|
|
54
|
+
r"""Sets the scaling_group_id of this ShowPolicyAndInstanceQuotaRequest.
|
|
56
55
|
|
|
56
|
+
伸缩组ID。
|
|
57
57
|
|
|
58
58
|
:param scaling_group_id: The scaling_group_id of this ShowPolicyAndInstanceQuotaRequest.
|
|
59
|
-
:type: str
|
|
59
|
+
:type scaling_group_id: str
|
|
60
60
|
"""
|
|
61
61
|
self._scaling_group_id = scaling_group_id
|
|
62
62
|
|
|
63
63
|
def to_dict(self):
|
|
64
|
-
"""Returns the model properties as a dict"""
|
|
65
64
|
result = {}
|
|
66
65
|
|
|
67
|
-
for attr, _ in
|
|
66
|
+
for attr, _ in self.openapi_types.items():
|
|
68
67
|
value = getattr(self, attr)
|
|
69
68
|
if isinstance(value, list):
|
|
70
69
|
result[attr] = list(map(
|
|
@@ -89,10 +88,11 @@ class ShowPolicyAndInstanceQuotaRequest:
|
|
|
89
88
|
|
|
90
89
|
def to_str(self):
|
|
91
90
|
"""Returns the string representation of the model"""
|
|
92
|
-
|
|
91
|
+
import simplejson as json
|
|
92
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
93
93
|
|
|
94
94
|
def __repr__(self):
|
|
95
|
-
"""For `print`
|
|
95
|
+
"""For `print`"""
|
|
96
96
|
return self.to_str()
|
|
97
97
|
|
|
98
98
|
def __eq__(self, other):
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
|
-
import six
|
|
7
|
-
|
|
8
|
-
|
|
9
3
|
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
5
|
|
|
11
6
|
|
|
12
7
|
class ShowPolicyAndInstanceQuotaResponse(SdkResponse):
|
|
13
8
|
|
|
14
|
-
|
|
15
9
|
"""
|
|
16
10
|
Attributes:
|
|
17
11
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,53 +13,58 @@ class ShowPolicyAndInstanceQuotaResponse(SdkResponse):
|
|
|
19
13
|
attribute_map (dict): The key is attribute name
|
|
20
14
|
and the value is json key in definition.
|
|
21
15
|
"""
|
|
22
|
-
|
|
23
16
|
sensitive_list = []
|
|
24
17
|
|
|
25
18
|
openapi_types = {
|
|
26
|
-
'
|
|
19
|
+
'quotas': 'PolicyInstanceQuotas'
|
|
27
20
|
}
|
|
28
21
|
|
|
29
22
|
attribute_map = {
|
|
30
|
-
'
|
|
23
|
+
'quotas': 'quotas'
|
|
31
24
|
}
|
|
32
25
|
|
|
33
|
-
def __init__(self,
|
|
34
|
-
"""ShowPolicyAndInstanceQuotaResponse
|
|
26
|
+
def __init__(self, quotas=None):
|
|
27
|
+
r"""ShowPolicyAndInstanceQuotaResponse
|
|
28
|
+
|
|
29
|
+
The model defined in huaweicloud sdk
|
|
30
|
+
|
|
31
|
+
:param quotas:
|
|
32
|
+
:type quotas: :class:`huaweicloudsdkas.v1.PolicyInstanceQuotas`
|
|
33
|
+
"""
|
|
35
34
|
|
|
36
35
|
super().__init__()
|
|
37
36
|
|
|
38
|
-
self.
|
|
37
|
+
self._quotas = None
|
|
39
38
|
self.discriminator = None
|
|
40
39
|
|
|
41
|
-
if
|
|
42
|
-
self.
|
|
40
|
+
if quotas is not None:
|
|
41
|
+
self.quotas = quotas
|
|
43
42
|
|
|
44
43
|
@property
|
|
45
|
-
def
|
|
46
|
-
"""Gets the
|
|
44
|
+
def quotas(self):
|
|
45
|
+
r"""Gets the quotas of this ShowPolicyAndInstanceQuotaResponse.
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
:
|
|
50
|
-
:rtype: PolicyInstanceQuotas
|
|
47
|
+
:return: The quotas of this ShowPolicyAndInstanceQuotaResponse.
|
|
48
|
+
:rtype: :class:`huaweicloudsdkas.v1.PolicyInstanceQuotas`
|
|
51
49
|
"""
|
|
52
|
-
return self.
|
|
53
|
-
|
|
54
|
-
@all_quotas.setter
|
|
55
|
-
def all_quotas(self, all_quotas):
|
|
56
|
-
"""Sets the all_quotas of this ShowPolicyAndInstanceQuotaResponse.
|
|
50
|
+
return self._quotas
|
|
57
51
|
|
|
52
|
+
@quotas.setter
|
|
53
|
+
def quotas(self, quotas):
|
|
54
|
+
r"""Sets the quotas of this ShowPolicyAndInstanceQuotaResponse.
|
|
58
55
|
|
|
59
|
-
:param
|
|
60
|
-
:type: PolicyInstanceQuotas
|
|
56
|
+
:param quotas: The quotas of this ShowPolicyAndInstanceQuotaResponse.
|
|
57
|
+
:type quotas: :class:`huaweicloudsdkas.v1.PolicyInstanceQuotas`
|
|
61
58
|
"""
|
|
62
|
-
self.
|
|
59
|
+
self._quotas = quotas
|
|
63
60
|
|
|
64
61
|
def to_dict(self):
|
|
65
|
-
|
|
62
|
+
import warnings
|
|
63
|
+
warnings.warn("ShowPolicyAndInstanceQuotaResponse.to_dict() is deprecated and no longer maintained, "
|
|
64
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
66
65
|
result = {}
|
|
67
66
|
|
|
68
|
-
for attr, _ in
|
|
67
|
+
for attr, _ in self.openapi_types.items():
|
|
69
68
|
value = getattr(self, attr)
|
|
70
69
|
if isinstance(value, list):
|
|
71
70
|
result[attr] = list(map(
|
|
@@ -90,10 +89,11 @@ 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
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
94
94
|
|
|
95
95
|
def __repr__(self):
|
|
96
|
-
"""For `print`
|
|
96
|
+
"""For `print`"""
|
|
97
97
|
return self.to_str()
|
|
98
98
|
|
|
99
99
|
def __eq__(self, other):
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
|
-
import six
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
4
|
|
|
11
5
|
|
|
12
6
|
class ShowResourceQuotaRequest:
|
|
13
7
|
|
|
14
|
-
|
|
15
8
|
"""
|
|
16
9
|
Attributes:
|
|
17
10
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +12,6 @@ class ShowResourceQuotaRequest:
|
|
|
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 = {
|
|
@@ -29,16 +21,19 @@ class ShowResourceQuotaRequest:
|
|
|
29
21
|
}
|
|
30
22
|
|
|
31
23
|
def __init__(self):
|
|
32
|
-
"""ShowResourceQuotaRequest
|
|
24
|
+
r"""ShowResourceQuotaRequest
|
|
25
|
+
|
|
26
|
+
The model defined in huaweicloud sdk
|
|
27
|
+
|
|
28
|
+
"""
|
|
33
29
|
|
|
34
30
|
|
|
35
31
|
self.discriminator = None
|
|
36
32
|
|
|
37
33
|
def to_dict(self):
|
|
38
|
-
"""Returns the model properties as a dict"""
|
|
39
34
|
result = {}
|
|
40
35
|
|
|
41
|
-
for attr, _ in
|
|
36
|
+
for attr, _ in self.openapi_types.items():
|
|
42
37
|
value = getattr(self, attr)
|
|
43
38
|
if isinstance(value, list):
|
|
44
39
|
result[attr] = list(map(
|
|
@@ -63,10 +58,11 @@ class ShowResourceQuotaRequest:
|
|
|
63
58
|
|
|
64
59
|
def to_str(self):
|
|
65
60
|
"""Returns the string representation of the model"""
|
|
66
|
-
|
|
61
|
+
import simplejson as json
|
|
62
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
67
63
|
|
|
68
64
|
def __repr__(self):
|
|
69
|
-
"""For `print`
|
|
65
|
+
"""For `print`"""
|
|
70
66
|
return self.to_str()
|
|
71
67
|
|
|
72
68
|
def __eq__(self, other):
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
import pprint
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
|
-
import six
|
|
7
|
-
|
|
8
|
-
|
|
9
3
|
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
10
5
|
|
|
11
6
|
|
|
12
7
|
class ShowResourceQuotaResponse(SdkResponse):
|
|
13
8
|
|
|
14
|
-
|
|
15
9
|
"""
|
|
16
10
|
Attributes:
|
|
17
11
|
openapi_types (dict): The key is attribute name
|
|
@@ -19,7 +13,6 @@ class ShowResourceQuotaResponse(SdkResponse):
|
|
|
19
13
|
attribute_map (dict): The key is attribute name
|
|
20
14
|
and the value is json key in definition.
|
|
21
15
|
"""
|
|
22
|
-
|
|
23
16
|
sensitive_list = []
|
|
24
17
|
|
|
25
18
|
openapi_types = {
|
|
@@ -31,7 +24,13 @@ class ShowResourceQuotaResponse(SdkResponse):
|
|
|
31
24
|
}
|
|
32
25
|
|
|
33
26
|
def __init__(self, quotas=None):
|
|
34
|
-
"""ShowResourceQuotaResponse
|
|
27
|
+
r"""ShowResourceQuotaResponse
|
|
28
|
+
|
|
29
|
+
The model defined in huaweicloud sdk
|
|
30
|
+
|
|
31
|
+
:param quotas:
|
|
32
|
+
:type quotas: :class:`huaweicloudsdkas.v1.AllQuotas`
|
|
33
|
+
"""
|
|
35
34
|
|
|
36
35
|
super().__init__()
|
|
37
36
|
|
|
@@ -43,29 +42,29 @@ class ShowResourceQuotaResponse(SdkResponse):
|
|
|
43
42
|
|
|
44
43
|
@property
|
|
45
44
|
def quotas(self):
|
|
46
|
-
"""Gets the quotas of this ShowResourceQuotaResponse.
|
|
47
|
-
|
|
45
|
+
r"""Gets the quotas of this ShowResourceQuotaResponse.
|
|
48
46
|
|
|
49
47
|
:return: The quotas of this ShowResourceQuotaResponse.
|
|
50
|
-
:rtype: AllQuotas
|
|
48
|
+
:rtype: :class:`huaweicloudsdkas.v1.AllQuotas`
|
|
51
49
|
"""
|
|
52
50
|
return self._quotas
|
|
53
51
|
|
|
54
52
|
@quotas.setter
|
|
55
53
|
def quotas(self, quotas):
|
|
56
|
-
"""Sets the quotas of this ShowResourceQuotaResponse.
|
|
57
|
-
|
|
54
|
+
r"""Sets the quotas of this ShowResourceQuotaResponse.
|
|
58
55
|
|
|
59
56
|
:param quotas: The quotas of this ShowResourceQuotaResponse.
|
|
60
|
-
:type: AllQuotas
|
|
57
|
+
:type quotas: :class:`huaweicloudsdkas.v1.AllQuotas`
|
|
61
58
|
"""
|
|
62
59
|
self._quotas = quotas
|
|
63
60
|
|
|
64
61
|
def to_dict(self):
|
|
65
|
-
|
|
62
|
+
import warnings
|
|
63
|
+
warnings.warn("ShowResourceQuotaResponse.to_dict() is deprecated and no longer maintained, "
|
|
64
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
66
65
|
result = {}
|
|
67
66
|
|
|
68
|
-
for attr, _ in
|
|
67
|
+
for attr, _ in self.openapi_types.items():
|
|
69
68
|
value = getattr(self, attr)
|
|
70
69
|
if isinstance(value, list):
|
|
71
70
|
result[attr] = list(map(
|
|
@@ -90,10 +89,11 @@ 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
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
94
94
|
|
|
95
95
|
def __repr__(self):
|
|
96
|
-
"""For `print`
|
|
96
|
+
"""For `print`"""
|
|
97
97
|
return self.to_str()
|
|
98
98
|
|
|
99
99
|
def __eq__(self, other):
|