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.

Files changed (230) hide show
  1. huaweicloudsdkas/v1/__init__.py +100 -40
  2. huaweicloudsdkas/v1/as_async_client.py +2698 -1537
  3. huaweicloudsdkas/v1/as_client.py +2696 -1536
  4. huaweicloudsdkas/v1/model/__init__.py +99 -38
  5. huaweicloudsdkas/v1/model/all_quotas.py +19 -14
  6. huaweicloudsdkas/v1/model/all_resources.py +65 -25
  7. huaweicloudsdkas/v1/model/allowed_address_pair.py +115 -0
  8. huaweicloudsdkas/v1/model/attach_callback_instance_life_cycle_hook_request.py +139 -0
  9. huaweicloudsdkas/v1/model/attach_callback_instance_life_cycle_hook_response.py +85 -0
  10. huaweicloudsdkas/v1/model/bandwidth_info.py +201 -0
  11. huaweicloudsdkas/v1/model/{bandwidth.py → bandwidth_result.py} +55 -42
  12. huaweicloudsdkas/v1/model/{update_scaling_group_instance_request_body.py → batch_add_instances_option.py} +43 -32
  13. huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_request.py → batch_add_scaling_instances_request.py} +33 -26
  14. huaweicloudsdkas/v1/model/batch_add_scaling_instances_response.py +85 -0
  15. huaweicloudsdkas/v1/model/{batch_delete_scaling_configs_request_body.py → batch_delete_scaling_config_option.py} +23 -19
  16. huaweicloudsdkas/v1/model/batch_delete_scaling_configs_request.py +20 -17
  17. huaweicloudsdkas/v1/model/batch_delete_scaling_configs_response.py +14 -10
  18. huaweicloudsdkas/v1/model/batch_delete_scaling_policies_option.py +200 -0
  19. huaweicloudsdkas/v1/model/batch_delete_scaling_policies_request.py +111 -0
  20. huaweicloudsdkas/v1/model/{update_scaling_group_instance_response.py → batch_delete_scaling_policies_response.py} +16 -12
  21. huaweicloudsdkas/v1/model/batch_enter_standby_instances_option.py +200 -0
  22. huaweicloudsdkas/v1/model/batch_exit_stand_by_instances_option.py +200 -0
  23. huaweicloudsdkas/v1/model/{execute_scaling_policies_request_body.py → batch_pause_scaling_policies_option.py} +68 -30
  24. huaweicloudsdkas/v1/model/{execute_scaling_policies_request.py → batch_pause_scaling_policies_request.py} +24 -21
  25. huaweicloudsdkas/v1/model/batch_pause_scaling_policies_response.py +85 -0
  26. huaweicloudsdkas/v1/model/batch_protect_instances_option.py +200 -0
  27. huaweicloudsdkas/v1/model/batch_protect_scaling_instances_request.py +139 -0
  28. huaweicloudsdkas/v1/model/batch_protect_scaling_instances_response.py +85 -0
  29. huaweicloudsdkas/v1/model/batch_remove_instances_option.py +200 -0
  30. huaweicloudsdkas/v1/model/batch_remove_scaling_instances_request.py +139 -0
  31. huaweicloudsdkas/v1/model/batch_remove_scaling_instances_response.py +85 -0
  32. huaweicloudsdkas/v1/model/batch_resume_scaling_policies_option.py +200 -0
  33. huaweicloudsdkas/v1/model/batch_resume_scaling_policies_request.py +111 -0
  34. huaweicloudsdkas/v1/model/batch_resume_scaling_policies_response.py +85 -0
  35. huaweicloudsdkas/v1/model/batch_set_scaling_instances_standby_request.py +139 -0
  36. huaweicloudsdkas/v1/model/batch_set_scaling_instances_standby_response.py +85 -0
  37. huaweicloudsdkas/v1/model/batch_unprotect_instances_option.py +200 -0
  38. huaweicloudsdkas/v1/model/batch_unprotect_scaling_instances_request.py +139 -0
  39. huaweicloudsdkas/v1/model/batch_unprotect_scaling_instances_response.py +85 -0
  40. huaweicloudsdkas/v1/model/batch_unset_scaling_instances_stantby_request.py +139 -0
  41. huaweicloudsdkas/v1/model/batch_unset_scaling_instances_stantby_response.py +85 -0
  42. huaweicloudsdkas/v1/model/{complete_lifecycle_action_request_body.py → callback_life_cycle_hook_option.py} +43 -32
  43. huaweicloudsdkas/v1/model/create_group_scheduled_task_request.py +139 -0
  44. huaweicloudsdkas/v1/model/create_group_scheduled_task_response.py +116 -0
  45. huaweicloudsdkas/v1/model/{create_life_cycle_hook_request_body.py → create_life_cycle_hook_option.py} +59 -44
  46. huaweicloudsdkas/v1/model/create_lify_cycle_hook_request.py +27 -20
  47. huaweicloudsdkas/v1/model/create_lify_cycle_hook_response.py +56 -36
  48. huaweicloudsdkas/v1/model/{create_notification_request_body.py → create_notification_option.py} +31 -26
  49. huaweicloudsdkas/v1/model/create_scaling_config_option.py +169 -0
  50. huaweicloudsdkas/v1/model/create_scaling_config_request.py +20 -17
  51. huaweicloudsdkas/v1/model/create_scaling_config_response.py +19 -13
  52. huaweicloudsdkas/v1/model/{create_scaling_group_request_body.py → create_scaling_group_option.py} +289 -131
  53. huaweicloudsdkas/v1/model/create_scaling_group_request.py +20 -17
  54. huaweicloudsdkas/v1/model/create_scaling_group_response.py +19 -13
  55. huaweicloudsdkas/v1/model/create_scaling_notification_request.py +27 -20
  56. huaweicloudsdkas/v1/model/create_scaling_notification_response.py +29 -19
  57. huaweicloudsdkas/v1/model/{create_scaling_policy_request_body.py → create_scaling_policy_option.py} +69 -56
  58. huaweicloudsdkas/v1/model/create_scaling_policy_request.py +20 -17
  59. huaweicloudsdkas/v1/model/create_scaling_policy_response.py +19 -13
  60. huaweicloudsdkas/v1/model/{create_scaling_policy_v2_request_body.py → create_scaling_policy_v2_option.py} +132 -63
  61. huaweicloudsdkas/v1/model/{create_scaling_tags_request.py → create_scaling_tag_info_request.py} +42 -31
  62. huaweicloudsdkas/v1/model/create_scaling_tag_info_response.py +85 -0
  63. huaweicloudsdkas/v1/model/create_scaling_v2_policy_request.py +20 -17
  64. huaweicloudsdkas/v1/model/create_scaling_v2_policy_response.py +19 -13
  65. huaweicloudsdkas/v1/model/create_scheduled_task_option.py +162 -0
  66. huaweicloudsdkas/v1/model/{delete_scaling_tags_request_body.py → create_tags_option.py} +34 -29
  67. huaweicloudsdkas/v1/model/delete_group_scheduled_task_request.py +142 -0
  68. huaweicloudsdkas/v1/model/delete_group_scheduled_task_response.py +85 -0
  69. huaweicloudsdkas/v1/model/delete_lifecycle_hook_request.py +27 -16
  70. huaweicloudsdkas/v1/model/delete_lifecycle_hook_response.py +14 -10
  71. huaweicloudsdkas/v1/model/delete_scaling_config_request.py +20 -13
  72. huaweicloudsdkas/v1/model/delete_scaling_config_response.py +14 -10
  73. huaweicloudsdkas/v1/model/delete_scaling_group_request.py +27 -16
  74. huaweicloudsdkas/v1/model/delete_scaling_group_response.py +14 -10
  75. huaweicloudsdkas/v1/model/delete_scaling_instance_request.py +27 -16
  76. huaweicloudsdkas/v1/model/delete_scaling_instance_response.py +14 -10
  77. huaweicloudsdkas/v1/model/delete_scaling_notification_request.py +27 -16
  78. huaweicloudsdkas/v1/model/delete_scaling_notification_response.py +14 -10
  79. huaweicloudsdkas/v1/model/delete_scaling_policy_request.py +20 -13
  80. huaweicloudsdkas/v1/model/delete_scaling_policy_response.py +14 -10
  81. huaweicloudsdkas/v1/model/{delete_scaling_tags_request.py → delete_scaling_tag_info_request.py} +42 -31
  82. huaweicloudsdkas/v1/model/delete_scaling_tag_info_response.py +85 -0
  83. huaweicloudsdkas/v1/model/delete_tags_option.py +142 -0
  84. huaweicloudsdkas/v1/model/disk_info.py +340 -0
  85. huaweicloudsdkas/v1/model/disk_result.py +343 -0
  86. huaweicloudsdkas/v1/model/{eip.py → eip_info.py} +31 -26
  87. huaweicloudsdkas/v1/model/eip_meta_data.py +173 -0
  88. huaweicloudsdkas/v1/model/eip_result.py +140 -0
  89. huaweicloudsdkas/v1/model/{create_scaling_tags_request_body.py → execute_scaling_policy_option.py} +26 -49
  90. huaweicloudsdkas/v1/model/execute_scaling_policy_request.py +27 -20
  91. huaweicloudsdkas/v1/model/execute_scaling_policy_response.py +14 -10
  92. huaweicloudsdkas/v1/model/instance_config.py +102 -73
  93. huaweicloudsdkas/v1/model/instance_config_result.py +189 -71
  94. huaweicloudsdkas/v1/model/instance_hanging_infos.py +50 -33
  95. huaweicloudsdkas/v1/model/integer_range.py +173 -0
  96. huaweicloudsdkas/v1/model/interval_alarm_actions_v2.py +252 -0
  97. huaweicloudsdkas/v1/model/ipv6_bandwidth.py +18 -13
  98. huaweicloudsdkas/v1/model/job_records.py +55 -36
  99. huaweicloudsdkas/v1/model/lbaas_listener.py +33 -22
  100. huaweicloudsdkas/v1/model/lbaas_listeners.py +63 -26
  101. huaweicloudsdkas/v1/model/lbaas_listeners_result.py +77 -37
  102. huaweicloudsdkas/v1/model/lifecycle_hook_list.py +55 -36
  103. huaweicloudsdkas/v1/model/links.py +144 -0
  104. huaweicloudsdkas/v1/model/list_all_scaling_v2_policies_request.py +115 -43
  105. huaweicloudsdkas/v1/model/list_all_scaling_v2_policies_response.py +35 -23
  106. huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_response.py → list_api_versions_request.py} +16 -13
  107. huaweicloudsdkas/v1/model/list_api_versions_response.py +116 -0
  108. huaweicloudsdkas/v1/model/list_group_scheduled_tasks_request.py +172 -0
  109. huaweicloudsdkas/v1/model/list_group_scheduled_tasks_response.py +141 -0
  110. huaweicloudsdkas/v1/model/list_hook_instances_request.py +27 -16
  111. huaweicloudsdkas/v1/model/list_hook_instances_response.py +20 -14
  112. huaweicloudsdkas/v1/model/list_life_cycle_hooks_request.py +20 -13
  113. huaweicloudsdkas/v1/model/list_life_cycle_hooks_response.py +20 -14
  114. huaweicloudsdkas/v1/model/list_resource_instances_request.py +27 -20
  115. huaweicloudsdkas/v1/model/list_resource_instances_response.py +32 -22
  116. huaweicloudsdkas/v1/model/list_scaling_activity_logs_request.py +52 -29
  117. huaweicloudsdkas/v1/model/list_scaling_activity_logs_response.py +35 -23
  118. huaweicloudsdkas/v1/model/list_scaling_activity_v2_logs_request.py +96 -36
  119. huaweicloudsdkas/v1/model/list_scaling_activity_v2_logs_response.py +35 -23
  120. huaweicloudsdkas/v1/model/list_scaling_configs_request.py +41 -22
  121. huaweicloudsdkas/v1/model/list_scaling_configs_response.py +35 -23
  122. huaweicloudsdkas/v1/model/list_scaling_groups_request.py +80 -28
  123. huaweicloudsdkas/v1/model/list_scaling_groups_response.py +35 -23
  124. huaweicloudsdkas/v1/model/list_scaling_instances_request.py +55 -28
  125. huaweicloudsdkas/v1/model/list_scaling_instances_response.py +35 -23
  126. huaweicloudsdkas/v1/model/list_scaling_notifications_request.py +20 -13
  127. huaweicloudsdkas/v1/model/list_scaling_notifications_response.py +20 -14
  128. huaweicloudsdkas/v1/model/list_scaling_policies_request.py +55 -28
  129. huaweicloudsdkas/v1/model/list_scaling_policies_response.py +36 -24
  130. huaweicloudsdkas/v1/model/list_scaling_policy_execute_logs_request.py +80 -41
  131. huaweicloudsdkas/v1/model/list_scaling_policy_execute_logs_response.py +35 -23
  132. huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_resource_id_request.py +27 -16
  133. huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_resource_id_response.py +26 -18
  134. huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_tenant_id_request.py +20 -13
  135. huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_tenant_id_response.py +20 -14
  136. huaweicloudsdkas/v1/model/list_scaling_v2_policies_request.py +55 -28
  137. huaweicloudsdkas/v1/model/list_scaling_v2_policies_response.py +35 -23
  138. huaweicloudsdkas/v1/model/matches.py +25 -20
  139. huaweicloudsdkas/v1/model/meta_data.py +62 -28
  140. huaweicloudsdkas/v1/model/modify_lb.py +34 -25
  141. huaweicloudsdkas/v1/model/networks.py +63 -27
  142. huaweicloudsdkas/v1/model/networks_result.py +198 -0
  143. huaweicloudsdkas/v1/model/{mete_data.py → page_info.py} +35 -30
  144. huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_request_body.py → pause_scaling_group_option.py} +23 -19
  145. huaweicloudsdkas/v1/model/{update_scaling_group_instance_request.py → pause_scaling_group_request.py} +33 -26
  146. huaweicloudsdkas/v1/model/{delete_scaling_tags_response.py → pause_scaling_group_response.py} +16 -12
  147. huaweicloudsdkas/v1/model/{execute_scaling_policy_request_body.py → pause_scaling_policy_option.py} +23 -19
  148. huaweicloudsdkas/v1/model/pause_scaling_policy_request.py +139 -0
  149. huaweicloudsdkas/v1/model/{complete_lifecycle_action_response.py → pause_scaling_policy_response.py} +16 -12
  150. huaweicloudsdkas/v1/model/{personality.py → personality_info.py} +29 -22
  151. huaweicloudsdkas/v1/model/personality_result.py +144 -0
  152. huaweicloudsdkas/v1/model/policy_instance_quotas.py +19 -14
  153. huaweicloudsdkas/v1/model/policy_instance_resources.py +65 -25
  154. huaweicloudsdkas/v1/model/public_ip.py +20 -17
  155. huaweicloudsdkas/v1/model/publicip_result.py +111 -0
  156. huaweicloudsdkas/v1/model/{show_tags_request_body.py → query_tags_option.py} +94 -73
  157. huaweicloudsdkas/v1/model/resource_tags.py +23 -16
  158. huaweicloudsdkas/v1/model/resources.py +34 -23
  159. huaweicloudsdkas/v1/model/resume_scaling_group_option.py +114 -0
  160. huaweicloudsdkas/v1/model/{complete_lifecycle_action_request.py → resume_scaling_group_request.py} +33 -26
  161. huaweicloudsdkas/v1/model/{create_scaling_tags_response.py → resume_scaling_group_response.py} +16 -12
  162. huaweicloudsdkas/v1/model/resume_scaling_policy_option.py +114 -0
  163. huaweicloudsdkas/v1/model/resume_scaling_policy_request.py +139 -0
  164. huaweicloudsdkas/v1/model/resume_scaling_policy_response.py +85 -0
  165. huaweicloudsdkas/v1/model/scaling_activity_log_list.py +70 -45
  166. huaweicloudsdkas/v1/model/scaling_activity_log_v2.py +141 -75
  167. huaweicloudsdkas/v1/model/scaling_all_policy_detail.py +133 -58
  168. huaweicloudsdkas/v1/model/scaling_configuration.py +71 -31
  169. huaweicloudsdkas/v1/model/scaling_group_instance.py +65 -42
  170. huaweicloudsdkas/v1/model/scaling_groups.py +331 -100
  171. huaweicloudsdkas/v1/model/scaling_instance.py +65 -25
  172. huaweicloudsdkas/v1/model/scaling_policies_v2.py +152 -52
  173. huaweicloudsdkas/v1/model/{scaling_policy_action.py → scaling_policy_action_v1.py} +40 -31
  174. huaweicloudsdkas/v1/model/scaling_policy_action_v2.py +35 -24
  175. huaweicloudsdkas/v1/model/scaling_policy_execute_log_list.py +108 -77
  176. huaweicloudsdkas/v1/model/scaling_policy_v2_meta_data.py +173 -0
  177. huaweicloudsdkas/v1/model/{scaling_policy_detail.py → scaling_v1_policy_detail.py} +113 -67
  178. huaweicloudsdkas/v1/model/scaling_v2_policy_detail.py +133 -58
  179. huaweicloudsdkas/v1/model/scheduled_policy.py +41 -29
  180. huaweicloudsdkas/v1/model/scheduled_task_detail.py +339 -0
  181. huaweicloudsdkas/v1/model/scheduled_task_policy.py +230 -0
  182. huaweicloudsdkas/v1/model/security_group.py +114 -0
  183. huaweicloudsdkas/v1/model/security_groups.py +20 -15
  184. huaweicloudsdkas/v1/model/security_groups_result.py +18 -13
  185. huaweicloudsdkas/v1/model/show_api_version_request.py +114 -0
  186. huaweicloudsdkas/v1/model/show_api_version_response.py +112 -0
  187. huaweicloudsdkas/v1/model/show_life_cycle_hook_request.py +27 -16
  188. huaweicloudsdkas/v1/model/show_life_cycle_hook_response.py +56 -36
  189. huaweicloudsdkas/v1/model/show_policy_and_instance_quota_request.py +20 -13
  190. huaweicloudsdkas/v1/model/show_policy_and_instance_quota_response.py +33 -29
  191. huaweicloudsdkas/v1/model/show_resource_quota_request.py +13 -10
  192. huaweicloudsdkas/v1/model/show_resource_quota_response.py +20 -16
  193. huaweicloudsdkas/v1/model/show_scaling_config_request.py +20 -13
  194. huaweicloudsdkas/v1/model/show_scaling_config_response.py +20 -16
  195. huaweicloudsdkas/v1/model/show_scaling_group_request.py +20 -13
  196. huaweicloudsdkas/v1/model/show_scaling_group_response.py +20 -16
  197. huaweicloudsdkas/v1/model/show_scaling_policy_request.py +20 -13
  198. huaweicloudsdkas/v1/model/show_scaling_policy_response.py +21 -17
  199. huaweicloudsdkas/v1/model/show_scaling_v2_policy_request.py +20 -13
  200. huaweicloudsdkas/v1/model/show_scaling_v2_policy_response.py +20 -16
  201. huaweicloudsdkas/v1/model/tags_multi_value.py +29 -24
  202. huaweicloudsdkas/v1/model/tags_single_value.py +28 -22
  203. huaweicloudsdkas/v1/model/topics.py +28 -19
  204. huaweicloudsdkas/v1/model/update_group_scheduled_task_request.py +167 -0
  205. huaweicloudsdkas/v1/model/update_group_scheduled_task_response.py +85 -0
  206. huaweicloudsdkas/v1/model/{update_life_cycle_hook_request_body.py → update_life_cycle_hook_option.py} +52 -39
  207. huaweicloudsdkas/v1/model/update_life_cycle_hook_request.py +34 -23
  208. huaweicloudsdkas/v1/model/update_life_cycle_hook_response.py +56 -36
  209. huaweicloudsdkas/v1/model/{update_scaling_group_request_body.py → update_scaling_group_option.py} +266 -111
  210. huaweicloudsdkas/v1/model/update_scaling_group_request.py +27 -20
  211. huaweicloudsdkas/v1/model/update_scaling_group_response.py +19 -13
  212. huaweicloudsdkas/v1/model/{update_scaling_policy_request_body.py → update_scaling_policy_option.py} +62 -51
  213. huaweicloudsdkas/v1/model/update_scaling_policy_request.py +27 -20
  214. huaweicloudsdkas/v1/model/update_scaling_policy_response.py +19 -13
  215. huaweicloudsdkas/v1/model/{update_scaling_v2_policy_request_body.py → update_scaling_v2_policy_option.py} +130 -61
  216. huaweicloudsdkas/v1/model/update_scaling_v2_policy_request.py +27 -20
  217. huaweicloudsdkas/v1/model/update_scaling_v2_policy_response.py +19 -13
  218. huaweicloudsdkas/v1/model/update_scheduled_task_option.py +165 -0
  219. huaweicloudsdkas/v1/model/version_info.py +260 -0
  220. huaweicloudsdkas/v1/model/vm_meta_data.py +115 -0
  221. huaweicloudsdkas/v1/region/as_region.py +109 -38
  222. {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.161.dist-info}/METADATA +9 -9
  223. huaweicloudsdkas-3.1.161.dist-info/RECORD +228 -0
  224. {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.161.dist-info}/WHEEL +1 -1
  225. huaweicloudsdkas/v1/model/create_scaling_config_request_body.py +0 -133
  226. huaweicloudsdkas/v1/model/disk.py +0 -242
  227. huaweicloudsdkas/v1/model/execute_scaling_policies_response.py +0 -81
  228. huaweicloudsdkas-3.0.43rc0.dist-info/RECORD +0 -167
  229. {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.161.dist-info}/LICENSE +0 -0
  230. {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.161.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 ListScalingGroupsResponse(SdkResponse):
13
10
 
14
-
15
11
  """
16
12
  Attributes:
17
13
  openapi_types (dict): The key is attribute name
@@ -19,7 +15,6 @@ class ListScalingGroupsResponse(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 = {
@@ -37,9 +32,21 @@ class ListScalingGroupsResponse(SdkResponse):
37
32
  }
38
33
 
39
34
  def __init__(self, total_number=None, start_number=None, limit=None, scaling_groups=None):
40
- """ListScalingGroupsResponse - a model defined in huaweicloud sdk"""
35
+ r"""ListScalingGroupsResponse
36
+
37
+ The model defined in huaweicloud sdk
38
+
39
+ :param total_number: 总记录数
40
+ :type total_number: int
41
+ :param start_number: 查询的开始记录号
42
+ :type start_number: int
43
+ :param limit: 查询记录数
44
+ :type limit: int
45
+ :param scaling_groups: 伸缩组列表
46
+ :type scaling_groups: list[:class:`huaweicloudsdkas.v1.ScalingGroups`]
47
+ """
41
48
 
42
- super().__init__()
49
+ super(ListScalingGroupsResponse, self).__init__()
43
50
 
44
51
  self._total_number = None
45
52
  self._start_number = None
@@ -58,7 +65,7 @@ class ListScalingGroupsResponse(SdkResponse):
58
65
 
59
66
  @property
60
67
  def total_number(self):
61
- """Gets the total_number of this ListScalingGroupsResponse.
68
+ r"""Gets the total_number of this ListScalingGroupsResponse.
62
69
 
63
70
  总记录数
64
71
 
@@ -69,18 +76,18 @@ class ListScalingGroupsResponse(SdkResponse):
69
76
 
70
77
  @total_number.setter
71
78
  def total_number(self, total_number):
72
- """Sets the total_number of this ListScalingGroupsResponse.
79
+ r"""Sets the total_number of this ListScalingGroupsResponse.
73
80
 
74
81
  总记录数
75
82
 
76
83
  :param total_number: The total_number of this ListScalingGroupsResponse.
77
- :type: int
84
+ :type total_number: int
78
85
  """
79
86
  self._total_number = total_number
80
87
 
81
88
  @property
82
89
  def start_number(self):
83
- """Gets the start_number of this ListScalingGroupsResponse.
90
+ r"""Gets the start_number of this ListScalingGroupsResponse.
84
91
 
85
92
  查询的开始记录号
86
93
 
@@ -91,18 +98,18 @@ class ListScalingGroupsResponse(SdkResponse):
91
98
 
92
99
  @start_number.setter
93
100
  def start_number(self, start_number):
94
- """Sets the start_number of this ListScalingGroupsResponse.
101
+ r"""Sets the start_number of this ListScalingGroupsResponse.
95
102
 
96
103
  查询的开始记录号
97
104
 
98
105
  :param start_number: The start_number of this ListScalingGroupsResponse.
99
- :type: int
106
+ :type start_number: int
100
107
  """
101
108
  self._start_number = start_number
102
109
 
103
110
  @property
104
111
  def limit(self):
105
- """Gets the limit of this ListScalingGroupsResponse.
112
+ r"""Gets the limit of this ListScalingGroupsResponse.
106
113
 
107
114
  查询记录数
108
115
 
@@ -113,34 +120,34 @@ class ListScalingGroupsResponse(SdkResponse):
113
120
 
114
121
  @limit.setter
115
122
  def limit(self, limit):
116
- """Sets the limit of this ListScalingGroupsResponse.
123
+ r"""Sets the limit of this ListScalingGroupsResponse.
117
124
 
118
125
  查询记录数
119
126
 
120
127
  :param limit: The limit of this ListScalingGroupsResponse.
121
- :type: int
128
+ :type limit: int
122
129
  """
123
130
  self._limit = limit
124
131
 
125
132
  @property
126
133
  def scaling_groups(self):
127
- """Gets the scaling_groups of this ListScalingGroupsResponse.
134
+ r"""Gets the scaling_groups of this ListScalingGroupsResponse.
128
135
 
129
136
  伸缩组列表
130
137
 
131
138
  :return: The scaling_groups of this ListScalingGroupsResponse.
132
- :rtype: list[ScalingGroups]
139
+ :rtype: list[:class:`huaweicloudsdkas.v1.ScalingGroups`]
133
140
  """
134
141
  return self._scaling_groups
135
142
 
136
143
  @scaling_groups.setter
137
144
  def scaling_groups(self, scaling_groups):
138
- """Sets the scaling_groups of this ListScalingGroupsResponse.
145
+ r"""Sets the scaling_groups of this ListScalingGroupsResponse.
139
146
 
140
147
  伸缩组列表
141
148
 
142
149
  :param scaling_groups: The scaling_groups of this ListScalingGroupsResponse.
143
- :type: list[ScalingGroups]
150
+ :type scaling_groups: list[:class:`huaweicloudsdkas.v1.ScalingGroups`]
144
151
  """
145
152
  self._scaling_groups = scaling_groups
146
153
 
@@ -173,10 +180,15 @@ class ListScalingGroupsResponse(SdkResponse):
173
180
 
174
181
  def to_str(self):
175
182
  """Returns the string representation of the model"""
176
- return pprint.pformat(self.to_dict())
183
+ import simplejson as json
184
+ if six.PY2:
185
+ import sys
186
+ reload(sys)
187
+ sys.setdefaultencoding("utf-8")
188
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
177
189
 
178
190
  def __repr__(self):
179
- """For `print` and `pprint`"""
191
+ """For `print`"""
180
192
  return self.to_str()
181
193
 
182
194
  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 ListScalingInstancesRequest:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class ListScalingInstancesRequest:
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 = {
@@ -41,7 +35,23 @@ class ListScalingInstancesRequest:
41
35
  }
42
36
 
43
37
  def __init__(self, scaling_group_id=None, life_cycle_state=None, health_status=None, protect_from_scaling_down=None, start_number=None, limit=None):
44
- """ListScalingInstancesRequest - a model defined in huaweicloud sdk"""
38
+ r"""ListScalingInstancesRequest
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param scaling_group_id: 伸缩组ID。
43
+ :type scaling_group_id: str
44
+ :param life_cycle_state: 实例在伸缩组中的生命周期状态:INSERVICE: 正在使用。PENDING:正在加入伸缩组。REMOVING:正在移出伸缩组。PENDING_WAIT:正在加入伸缩组:等待。REMOVING_WAIT:正在移出伸缩组:等待。
45
+ :type life_cycle_state: str
46
+ :param health_status: 实例健康状态:INITIALIZING:初始化。NORMAL:正常。ERROR:异常
47
+ :type health_status: str
48
+ :param protect_from_scaling_down: 实例保护状态:true:已设置实例保护。false:未设置实例保护。
49
+ :type protect_from_scaling_down: str
50
+ :param start_number: 查询的起始行号,默认为0。
51
+ :type start_number: int
52
+ :param limit: 查询的记录条数,默认为20。
53
+ :type limit: int
54
+ """
45
55
 
46
56
 
47
57
 
@@ -67,8 +77,9 @@ class ListScalingInstancesRequest:
67
77
 
68
78
  @property
69
79
  def scaling_group_id(self):
70
- """Gets the scaling_group_id of this ListScalingInstancesRequest.
80
+ r"""Gets the scaling_group_id of this ListScalingInstancesRequest.
71
81
 
82
+ 伸缩组ID。
72
83
 
73
84
  :return: The scaling_group_id of this ListScalingInstancesRequest.
74
85
  :rtype: str
@@ -77,18 +88,20 @@ class ListScalingInstancesRequest:
77
88
 
78
89
  @scaling_group_id.setter
79
90
  def scaling_group_id(self, scaling_group_id):
80
- """Sets the scaling_group_id of this ListScalingInstancesRequest.
91
+ r"""Sets the scaling_group_id of this ListScalingInstancesRequest.
81
92
 
93
+ 伸缩组ID。
82
94
 
83
95
  :param scaling_group_id: The scaling_group_id of this ListScalingInstancesRequest.
84
- :type: str
96
+ :type scaling_group_id: str
85
97
  """
86
98
  self._scaling_group_id = scaling_group_id
87
99
 
88
100
  @property
89
101
  def life_cycle_state(self):
90
- """Gets the life_cycle_state of this ListScalingInstancesRequest.
102
+ r"""Gets the life_cycle_state of this ListScalingInstancesRequest.
91
103
 
104
+ 实例在伸缩组中的生命周期状态:INSERVICE: 正在使用。PENDING:正在加入伸缩组。REMOVING:正在移出伸缩组。PENDING_WAIT:正在加入伸缩组:等待。REMOVING_WAIT:正在移出伸缩组:等待。
92
105
 
93
106
  :return: The life_cycle_state of this ListScalingInstancesRequest.
94
107
  :rtype: str
@@ -97,18 +110,20 @@ class ListScalingInstancesRequest:
97
110
 
98
111
  @life_cycle_state.setter
99
112
  def life_cycle_state(self, life_cycle_state):
100
- """Sets the life_cycle_state of this ListScalingInstancesRequest.
113
+ r"""Sets the life_cycle_state of this ListScalingInstancesRequest.
101
114
 
115
+ 实例在伸缩组中的生命周期状态:INSERVICE: 正在使用。PENDING:正在加入伸缩组。REMOVING:正在移出伸缩组。PENDING_WAIT:正在加入伸缩组:等待。REMOVING_WAIT:正在移出伸缩组:等待。
102
116
 
103
117
  :param life_cycle_state: The life_cycle_state of this ListScalingInstancesRequest.
104
- :type: str
118
+ :type life_cycle_state: str
105
119
  """
106
120
  self._life_cycle_state = life_cycle_state
107
121
 
108
122
  @property
109
123
  def health_status(self):
110
- """Gets the health_status of this ListScalingInstancesRequest.
124
+ r"""Gets the health_status of this ListScalingInstancesRequest.
111
125
 
126
+ 实例健康状态:INITIALIZING:初始化。NORMAL:正常。ERROR:异常
112
127
 
113
128
  :return: The health_status of this ListScalingInstancesRequest.
114
129
  :rtype: str
@@ -117,18 +132,20 @@ class ListScalingInstancesRequest:
117
132
 
118
133
  @health_status.setter
119
134
  def health_status(self, health_status):
120
- """Sets the health_status of this ListScalingInstancesRequest.
135
+ r"""Sets the health_status of this ListScalingInstancesRequest.
121
136
 
137
+ 实例健康状态:INITIALIZING:初始化。NORMAL:正常。ERROR:异常
122
138
 
123
139
  :param health_status: The health_status of this ListScalingInstancesRequest.
124
- :type: str
140
+ :type health_status: str
125
141
  """
126
142
  self._health_status = health_status
127
143
 
128
144
  @property
129
145
  def protect_from_scaling_down(self):
130
- """Gets the protect_from_scaling_down of this ListScalingInstancesRequest.
146
+ r"""Gets the protect_from_scaling_down of this ListScalingInstancesRequest.
131
147
 
148
+ 实例保护状态:true:已设置实例保护。false:未设置实例保护。
132
149
 
133
150
  :return: The protect_from_scaling_down of this ListScalingInstancesRequest.
134
151
  :rtype: str
@@ -137,18 +154,20 @@ class ListScalingInstancesRequest:
137
154
 
138
155
  @protect_from_scaling_down.setter
139
156
  def protect_from_scaling_down(self, protect_from_scaling_down):
140
- """Sets the protect_from_scaling_down of this ListScalingInstancesRequest.
157
+ r"""Sets the protect_from_scaling_down of this ListScalingInstancesRequest.
141
158
 
159
+ 实例保护状态:true:已设置实例保护。false:未设置实例保护。
142
160
 
143
161
  :param protect_from_scaling_down: The protect_from_scaling_down of this ListScalingInstancesRequest.
144
- :type: str
162
+ :type protect_from_scaling_down: str
145
163
  """
146
164
  self._protect_from_scaling_down = protect_from_scaling_down
147
165
 
148
166
  @property
149
167
  def start_number(self):
150
- """Gets the start_number of this ListScalingInstancesRequest.
168
+ r"""Gets the start_number of this ListScalingInstancesRequest.
151
169
 
170
+ 查询的起始行号,默认为0。
152
171
 
153
172
  :return: The start_number of this ListScalingInstancesRequest.
154
173
  :rtype: int
@@ -157,18 +176,20 @@ class ListScalingInstancesRequest:
157
176
 
158
177
  @start_number.setter
159
178
  def start_number(self, start_number):
160
- """Sets the start_number of this ListScalingInstancesRequest.
179
+ r"""Sets the start_number of this ListScalingInstancesRequest.
161
180
 
181
+ 查询的起始行号,默认为0。
162
182
 
163
183
  :param start_number: The start_number of this ListScalingInstancesRequest.
164
- :type: int
184
+ :type start_number: int
165
185
  """
166
186
  self._start_number = start_number
167
187
 
168
188
  @property
169
189
  def limit(self):
170
- """Gets the limit of this ListScalingInstancesRequest.
190
+ r"""Gets the limit of this ListScalingInstancesRequest.
171
191
 
192
+ 查询的记录条数,默认为20。
172
193
 
173
194
  :return: The limit of this ListScalingInstancesRequest.
174
195
  :rtype: int
@@ -177,11 +198,12 @@ class ListScalingInstancesRequest:
177
198
 
178
199
  @limit.setter
179
200
  def limit(self, limit):
180
- """Sets the limit of this ListScalingInstancesRequest.
201
+ r"""Sets the limit of this ListScalingInstancesRequest.
181
202
 
203
+ 查询的记录条数,默认为20。
182
204
 
183
205
  :param limit: The limit of this ListScalingInstancesRequest.
184
- :type: int
206
+ :type limit: int
185
207
  """
186
208
  self._limit = limit
187
209
 
@@ -214,10 +236,15 @@ class ListScalingInstancesRequest:
214
236
 
215
237
  def to_str(self):
216
238
  """Returns the string representation of the model"""
217
- return pprint.pformat(self.to_dict())
239
+ import simplejson as json
240
+ if six.PY2:
241
+ import sys
242
+ reload(sys)
243
+ sys.setdefaultencoding("utf-8")
244
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
218
245
 
219
246
  def __repr__(self):
220
- """For `print` and `pprint`"""
247
+ """For `print`"""
221
248
  return self.to_str()
222
249
 
223
250
  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 ListScalingInstancesResponse(SdkResponse):
13
10
 
14
-
15
11
  """
16
12
  Attributes:
17
13
  openapi_types (dict): The key is attribute name
@@ -19,7 +15,6 @@ class ListScalingInstancesResponse(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 = {
@@ -37,9 +32,21 @@ class ListScalingInstancesResponse(SdkResponse):
37
32
  }
38
33
 
39
34
  def __init__(self, total_number=None, start_number=None, limit=None, scaling_group_instances=None):
40
- """ListScalingInstancesResponse - a model defined in huaweicloud sdk"""
35
+ r"""ListScalingInstancesResponse
36
+
37
+ The model defined in huaweicloud sdk
38
+
39
+ :param total_number: 总记录数。
40
+ :type total_number: int
41
+ :param start_number: 查询的起始行号。
42
+ :type start_number: int
43
+ :param limit: 伸缩组实例详情。
44
+ :type limit: int
45
+ :param scaling_group_instances: 伸缩组实例详情。
46
+ :type scaling_group_instances: list[:class:`huaweicloudsdkas.v1.ScalingGroupInstance`]
47
+ """
41
48
 
42
- super().__init__()
49
+ super(ListScalingInstancesResponse, self).__init__()
43
50
 
44
51
  self._total_number = None
45
52
  self._start_number = None
@@ -58,7 +65,7 @@ class ListScalingInstancesResponse(SdkResponse):
58
65
 
59
66
  @property
60
67
  def total_number(self):
61
- """Gets the total_number of this ListScalingInstancesResponse.
68
+ r"""Gets the total_number of this ListScalingInstancesResponse.
62
69
 
63
70
  总记录数。
64
71
 
@@ -69,18 +76,18 @@ class ListScalingInstancesResponse(SdkResponse):
69
76
 
70
77
  @total_number.setter
71
78
  def total_number(self, total_number):
72
- """Sets the total_number of this ListScalingInstancesResponse.
79
+ r"""Sets the total_number of this ListScalingInstancesResponse.
73
80
 
74
81
  总记录数。
75
82
 
76
83
  :param total_number: The total_number of this ListScalingInstancesResponse.
77
- :type: int
84
+ :type total_number: int
78
85
  """
79
86
  self._total_number = total_number
80
87
 
81
88
  @property
82
89
  def start_number(self):
83
- """Gets the start_number of this ListScalingInstancesResponse.
90
+ r"""Gets the start_number of this ListScalingInstancesResponse.
84
91
 
85
92
  查询的起始行号。
86
93
 
@@ -91,18 +98,18 @@ class ListScalingInstancesResponse(SdkResponse):
91
98
 
92
99
  @start_number.setter
93
100
  def start_number(self, start_number):
94
- """Sets the start_number of this ListScalingInstancesResponse.
101
+ r"""Sets the start_number of this ListScalingInstancesResponse.
95
102
 
96
103
  查询的起始行号。
97
104
 
98
105
  :param start_number: The start_number of this ListScalingInstancesResponse.
99
- :type: int
106
+ :type start_number: int
100
107
  """
101
108
  self._start_number = start_number
102
109
 
103
110
  @property
104
111
  def limit(self):
105
- """Gets the limit of this ListScalingInstancesResponse.
112
+ r"""Gets the limit of this ListScalingInstancesResponse.
106
113
 
107
114
  伸缩组实例详情。
108
115
 
@@ -113,34 +120,34 @@ class ListScalingInstancesResponse(SdkResponse):
113
120
 
114
121
  @limit.setter
115
122
  def limit(self, limit):
116
- """Sets the limit of this ListScalingInstancesResponse.
123
+ r"""Sets the limit of this ListScalingInstancesResponse.
117
124
 
118
125
  伸缩组实例详情。
119
126
 
120
127
  :param limit: The limit of this ListScalingInstancesResponse.
121
- :type: int
128
+ :type limit: int
122
129
  """
123
130
  self._limit = limit
124
131
 
125
132
  @property
126
133
  def scaling_group_instances(self):
127
- """Gets the scaling_group_instances of this ListScalingInstancesResponse.
134
+ r"""Gets the scaling_group_instances of this ListScalingInstancesResponse.
128
135
 
129
136
  伸缩组实例详情。
130
137
 
131
138
  :return: The scaling_group_instances of this ListScalingInstancesResponse.
132
- :rtype: list[ScalingGroupInstance]
139
+ :rtype: list[:class:`huaweicloudsdkas.v1.ScalingGroupInstance`]
133
140
  """
134
141
  return self._scaling_group_instances
135
142
 
136
143
  @scaling_group_instances.setter
137
144
  def scaling_group_instances(self, scaling_group_instances):
138
- """Sets the scaling_group_instances of this ListScalingInstancesResponse.
145
+ r"""Sets the scaling_group_instances of this ListScalingInstancesResponse.
139
146
 
140
147
  伸缩组实例详情。
141
148
 
142
149
  :param scaling_group_instances: The scaling_group_instances of this ListScalingInstancesResponse.
143
- :type: list[ScalingGroupInstance]
150
+ :type scaling_group_instances: list[:class:`huaweicloudsdkas.v1.ScalingGroupInstance`]
144
151
  """
145
152
  self._scaling_group_instances = scaling_group_instances
146
153
 
@@ -173,10 +180,15 @@ class ListScalingInstancesResponse(SdkResponse):
173
180
 
174
181
  def to_str(self):
175
182
  """Returns the string representation of the model"""
176
- return pprint.pformat(self.to_dict())
183
+ import simplejson as json
184
+ if six.PY2:
185
+ import sys
186
+ reload(sys)
187
+ sys.setdefaultencoding("utf-8")
188
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
177
189
 
178
190
  def __repr__(self):
179
- """For `print` and `pprint`"""
191
+ """For `print`"""
180
192
  return self.to_str()
181
193
 
182
194
  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 ListScalingNotificationsRequest:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class ListScalingNotificationsRequest:
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 ListScalingNotificationsRequest:
31
25
  }
32
26
 
33
27
  def __init__(self, scaling_group_id=None):
34
- """ListScalingNotificationsRequest - a model defined in huaweicloud sdk"""
28
+ r"""ListScalingNotificationsRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param scaling_group_id: 伸缩组标识。
33
+ :type scaling_group_id: str
34
+ """
35
35
 
36
36
 
37
37
 
@@ -42,8 +42,9 @@ class ListScalingNotificationsRequest:
42
42
 
43
43
  @property
44
44
  def scaling_group_id(self):
45
- """Gets the scaling_group_id of this ListScalingNotificationsRequest.
45
+ r"""Gets the scaling_group_id of this ListScalingNotificationsRequest.
46
46
 
47
+ 伸缩组标识。
47
48
 
48
49
  :return: The scaling_group_id of this ListScalingNotificationsRequest.
49
50
  :rtype: str
@@ -52,11 +53,12 @@ class ListScalingNotificationsRequest:
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 ListScalingNotificationsRequest.
56
+ r"""Sets the scaling_group_id of this ListScalingNotificationsRequest.
56
57
 
58
+ 伸缩组标识。
57
59
 
58
60
  :param scaling_group_id: The scaling_group_id of this ListScalingNotificationsRequest.
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 ListScalingNotificationsRequest:
89
91
 
90
92
  def to_str(self):
91
93
  """Returns the string representation of the model"""
92
- return pprint.pformat(self.to_dict())
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` and `pprint`"""
102
+ """For `print`"""
96
103
  return self.to_str()
97
104
 
98
105
  def __eq__(self, other):