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.
Files changed (245) hide show
  1. huaweicloudsdkas/v1/__init__.py +135 -34
  2. huaweicloudsdkas/v1/as_async_client.py +3419 -1442
  3. huaweicloudsdkas/v1/as_client.py +3417 -1441
  4. huaweicloudsdkas/v1/model/__init__.py +134 -32
  5. huaweicloudsdkas/v1/model/all_quotas.py +16 -18
  6. huaweicloudsdkas/v1/model/all_resources.py +62 -29
  7. huaweicloudsdkas/v1/model/allowed_address_pair.py +108 -0
  8. huaweicloudsdkas/v1/model/attach_callback_instance_life_cycle_hook_request.py +132 -0
  9. huaweicloudsdkas/v1/model/attach_callback_instance_life_cycle_hook_response.py +81 -0
  10. huaweicloudsdkas/v1/model/bandwidth_info.py +194 -0
  11. huaweicloudsdkas/v1/model/{bandwidth.py → bandwidth_result.py} +52 -46
  12. huaweicloudsdkas/v1/model/{update_scaling_group_instance_request_body.py → batch_add_instances_option.py} +40 -36
  13. huaweicloudsdkas/v1/model/batch_add_scaling_instances_request.py +132 -0
  14. huaweicloudsdkas/v1/model/batch_add_scaling_instances_response.py +81 -0
  15. huaweicloudsdkas/v1/model/{batch_delete_scaling_configs_request_body.py → batch_delete_scaling_config_option.py} +20 -23
  16. huaweicloudsdkas/v1/model/batch_delete_scaling_configs_request.py +17 -21
  17. huaweicloudsdkas/v1/model/batch_delete_scaling_configs_response.py +13 -13
  18. huaweicloudsdkas/v1/model/batch_delete_scaling_policies_option.py +193 -0
  19. huaweicloudsdkas/v1/model/batch_delete_scaling_policies_request.py +104 -0
  20. huaweicloudsdkas/v1/model/{update_scaling_group_instance_response.py → batch_delete_scaling_policies_response.py} +15 -15
  21. huaweicloudsdkas/v1/model/batch_enter_standby_instances_option.py +193 -0
  22. huaweicloudsdkas/v1/model/batch_exit_stand_by_instances_option.py +193 -0
  23. huaweicloudsdkas/v1/model/batch_pause_scaling_policies_option.py +193 -0
  24. huaweicloudsdkas/v1/model/batch_pause_scaling_policies_request.py +104 -0
  25. huaweicloudsdkas/v1/model/batch_pause_scaling_policies_response.py +81 -0
  26. huaweicloudsdkas/v1/model/batch_protect_instances_option.py +193 -0
  27. huaweicloudsdkas/v1/model/batch_protect_scaling_instances_request.py +132 -0
  28. huaweicloudsdkas/v1/model/batch_protect_scaling_instances_response.py +81 -0
  29. huaweicloudsdkas/v1/model/batch_remove_instances_option.py +193 -0
  30. huaweicloudsdkas/v1/model/batch_remove_scaling_instances_request.py +132 -0
  31. huaweicloudsdkas/v1/model/batch_remove_scaling_instances_response.py +81 -0
  32. huaweicloudsdkas/v1/model/batch_resume_scaling_policies_option.py +193 -0
  33. huaweicloudsdkas/v1/model/batch_resume_scaling_policies_request.py +104 -0
  34. huaweicloudsdkas/v1/model/batch_resume_scaling_policies_response.py +81 -0
  35. huaweicloudsdkas/v1/model/batch_set_scaling_instances_standby_request.py +132 -0
  36. huaweicloudsdkas/v1/model/batch_set_scaling_instances_standby_response.py +81 -0
  37. huaweicloudsdkas/v1/model/batch_unprotect_instances_option.py +193 -0
  38. huaweicloudsdkas/v1/model/batch_unprotect_scaling_instances_request.py +132 -0
  39. huaweicloudsdkas/v1/model/batch_unprotect_scaling_instances_response.py +81 -0
  40. huaweicloudsdkas/v1/model/batch_unset_scaling_instances_stantby_request.py +132 -0
  41. huaweicloudsdkas/v1/model/batch_unset_scaling_instances_stantby_response.py +81 -0
  42. huaweicloudsdkas/v1/model/{complete_lifecycle_action_request_body.py → callback_life_cycle_hook_option.py} +40 -36
  43. huaweicloudsdkas/v1/model/close_warm_pool_request.py +107 -0
  44. huaweicloudsdkas/v1/model/{complete_lifecycle_action_response.py → close_warm_pool_response.py} +15 -15
  45. huaweicloudsdkas/v1/model/create_group_scheduled_task_request.py +132 -0
  46. huaweicloudsdkas/v1/model/create_group_scheduled_task_response.py +112 -0
  47. huaweicloudsdkas/v1/model/{create_life_cycle_hook_request_body.py → create_life_cycle_hook_option.py} +56 -48
  48. huaweicloudsdkas/v1/model/create_lify_cycle_hook_request.py +24 -24
  49. huaweicloudsdkas/v1/model/create_lify_cycle_hook_response.py +55 -39
  50. huaweicloudsdkas/v1/model/{create_notification_request_body.py → create_notification_option.py} +28 -30
  51. huaweicloudsdkas/v1/model/create_scaling_config_option.py +162 -0
  52. huaweicloudsdkas/v1/model/create_scaling_config_request.py +17 -21
  53. huaweicloudsdkas/v1/model/create_scaling_config_response.py +18 -16
  54. huaweicloudsdkas/v1/model/{create_scaling_group_request_body.py → create_scaling_group_option.py} +286 -135
  55. huaweicloudsdkas/v1/model/create_scaling_group_request.py +17 -21
  56. huaweicloudsdkas/v1/model/create_scaling_group_response.py +18 -16
  57. huaweicloudsdkas/v1/model/create_scaling_notification_request.py +24 -24
  58. huaweicloudsdkas/v1/model/create_scaling_notification_response.py +28 -22
  59. huaweicloudsdkas/v1/model/{create_scaling_policy_request_body.py → create_scaling_policy_option.py} +66 -60
  60. huaweicloudsdkas/v1/model/create_scaling_policy_request.py +17 -21
  61. huaweicloudsdkas/v1/model/create_scaling_policy_response.py +18 -16
  62. huaweicloudsdkas/v1/model/create_scaling_policy_v2_option.py +353 -0
  63. huaweicloudsdkas/v1/model/{create_scaling_tags_request.py → create_scaling_tag_info_request.py} +39 -35
  64. huaweicloudsdkas/v1/model/create_scaling_tag_info_response.py +81 -0
  65. huaweicloudsdkas/v1/model/create_scaling_v2_policy_request.py +104 -0
  66. huaweicloudsdkas/v1/model/create_scaling_v2_policy_response.py +112 -0
  67. huaweicloudsdkas/v1/model/create_scheduled_task_option.py +155 -0
  68. huaweicloudsdkas/v1/model/{delete_scaling_tags_request_body.py → create_tags_option.py} +32 -34
  69. huaweicloudsdkas/v1/model/delete_group_scheduled_task_request.py +135 -0
  70. huaweicloudsdkas/v1/model/delete_group_scheduled_task_response.py +81 -0
  71. huaweicloudsdkas/v1/model/delete_lifecycle_hook_request.py +24 -20
  72. huaweicloudsdkas/v1/model/delete_lifecycle_hook_response.py +13 -13
  73. huaweicloudsdkas/v1/model/delete_scaling_config_request.py +17 -17
  74. huaweicloudsdkas/v1/model/delete_scaling_config_response.py +13 -13
  75. huaweicloudsdkas/v1/model/delete_scaling_group_request.py +24 -20
  76. huaweicloudsdkas/v1/model/delete_scaling_group_response.py +13 -13
  77. huaweicloudsdkas/v1/model/delete_scaling_instance_request.py +24 -20
  78. huaweicloudsdkas/v1/model/delete_scaling_instance_response.py +13 -13
  79. huaweicloudsdkas/v1/model/delete_scaling_notification_request.py +24 -20
  80. huaweicloudsdkas/v1/model/delete_scaling_notification_response.py +13 -13
  81. huaweicloudsdkas/v1/model/delete_scaling_policy_request.py +17 -17
  82. huaweicloudsdkas/v1/model/delete_scaling_policy_response.py +13 -13
  83. huaweicloudsdkas/v1/model/{delete_scaling_tags_request.py → delete_scaling_tag_info_request.py} +39 -35
  84. huaweicloudsdkas/v1/model/delete_scaling_tag_info_response.py +81 -0
  85. huaweicloudsdkas/v1/model/{create_scaling_tags_request_body.py → delete_tags_option.py} +34 -36
  86. huaweicloudsdkas/v1/model/disk_info.py +333 -0
  87. huaweicloudsdkas/v1/model/disk_result.py +336 -0
  88. huaweicloudsdkas/v1/model/{eip.py → eip_info.py} +28 -30
  89. huaweicloudsdkas/v1/model/eip_meta_data.py +166 -0
  90. huaweicloudsdkas/v1/model/eip_result.py +133 -0
  91. huaweicloudsdkas/v1/model/execute_scaling_policy_option.py +107 -0
  92. huaweicloudsdkas/v1/model/execute_scaling_policy_request.py +24 -24
  93. huaweicloudsdkas/v1/model/execute_scaling_policy_response.py +13 -13
  94. huaweicloudsdkas/v1/model/instance_config.py +99 -77
  95. huaweicloudsdkas/v1/model/instance_config_result.py +186 -75
  96. huaweicloudsdkas/v1/model/instance_hanging_infos.py +47 -37
  97. huaweicloudsdkas/v1/model/integer_range.py +166 -0
  98. huaweicloudsdkas/v1/model/interval_alarm_actions_v2.py +245 -0
  99. huaweicloudsdkas/v1/model/ipv6_bandwidth.py +15 -17
  100. huaweicloudsdkas/v1/model/job_records.py +52 -40
  101. huaweicloudsdkas/v1/model/lbaas_listener.py +195 -0
  102. huaweicloudsdkas/v1/model/lbaas_listeners.py +60 -30
  103. huaweicloudsdkas/v1/model/lbaas_listeners_result.py +74 -41
  104. huaweicloudsdkas/v1/model/lifecycle_hook_list.py +52 -40
  105. huaweicloudsdkas/v1/model/links.py +137 -0
  106. huaweicloudsdkas/v1/model/list_all_scaling_v2_policies_request.py +398 -0
  107. huaweicloudsdkas/v1/model/list_all_scaling_v2_policies_response.py +199 -0
  108. huaweicloudsdkas/v1/model/{delete_scaling_tags_response.py → list_api_versions_request.py} +13 -17
  109. huaweicloudsdkas/v1/model/list_api_versions_response.py +112 -0
  110. huaweicloudsdkas/v1/model/list_group_scheduled_tasks_request.py +165 -0
  111. huaweicloudsdkas/v1/model/list_group_scheduled_tasks_response.py +137 -0
  112. huaweicloudsdkas/v1/model/list_hook_instances_request.py +24 -20
  113. huaweicloudsdkas/v1/model/list_hook_instances_response.py +19 -17
  114. huaweicloudsdkas/v1/model/list_life_cycle_hooks_request.py +17 -17
  115. huaweicloudsdkas/v1/model/list_life_cycle_hooks_response.py +19 -17
  116. huaweicloudsdkas/v1/model/list_resource_instances_request.py +24 -24
  117. huaweicloudsdkas/v1/model/list_resource_instances_response.py +31 -25
  118. huaweicloudsdkas/v1/model/list_scaling_activity_logs_request.py +49 -33
  119. huaweicloudsdkas/v1/model/list_scaling_activity_logs_response.py +34 -26
  120. huaweicloudsdkas/v1/model/list_scaling_activity_v2_logs_request.py +310 -0
  121. huaweicloudsdkas/v1/model/list_scaling_activity_v2_logs_response.py +199 -0
  122. huaweicloudsdkas/v1/model/list_scaling_configs_request.py +38 -26
  123. huaweicloudsdkas/v1/model/list_scaling_configs_response.py +34 -26
  124. huaweicloudsdkas/v1/model/list_scaling_groups_request.py +77 -32
  125. huaweicloudsdkas/v1/model/list_scaling_groups_response.py +34 -26
  126. huaweicloudsdkas/v1/model/list_scaling_instances_request.py +52 -32
  127. huaweicloudsdkas/v1/model/list_scaling_instances_response.py +34 -26
  128. huaweicloudsdkas/v1/model/list_scaling_notifications_request.py +17 -17
  129. huaweicloudsdkas/v1/model/list_scaling_notifications_response.py +19 -17
  130. huaweicloudsdkas/v1/model/list_scaling_policies_request.py +52 -32
  131. huaweicloudsdkas/v1/model/list_scaling_policies_response.py +35 -27
  132. huaweicloudsdkas/v1/model/list_scaling_policy_execute_logs_request.py +77 -45
  133. huaweicloudsdkas/v1/model/list_scaling_policy_execute_logs_response.py +34 -26
  134. huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_resource_id_request.py +24 -20
  135. huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_resource_id_response.py +25 -21
  136. huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_tenant_id_request.py +17 -17
  137. huaweicloudsdkas/v1/model/list_scaling_tag_infos_by_tenant_id_response.py +19 -17
  138. huaweicloudsdkas/v1/model/list_scaling_v2_policies_request.py +252 -0
  139. huaweicloudsdkas/v1/model/list_scaling_v2_policies_response.py +199 -0
  140. huaweicloudsdkas/v1/model/list_warm_pool_instances_request.py +165 -0
  141. huaweicloudsdkas/v1/model/list_warm_pool_instances_response.py +137 -0
  142. huaweicloudsdkas/v1/model/matches.py +22 -24
  143. huaweicloudsdkas/v1/model/meta_data.py +59 -32
  144. huaweicloudsdkas/v1/model/modify_lb.py +191 -0
  145. huaweicloudsdkas/v1/model/networks.py +60 -31
  146. huaweicloudsdkas/v1/model/networks_result.py +191 -0
  147. huaweicloudsdkas/v1/model/page_info.py +108 -0
  148. huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_request_body.py → pause_scaling_group_option.py} +20 -23
  149. huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_request.py → pause_scaling_group_request.py} +30 -30
  150. huaweicloudsdkas/v1/model/{create_scaling_tags_response.py → pause_scaling_group_response.py} +15 -15
  151. huaweicloudsdkas/v1/model/{execute_scaling_policy_request_body.py → pause_scaling_policy_option.py} +20 -23
  152. huaweicloudsdkas/v1/model/pause_scaling_policy_request.py +132 -0
  153. huaweicloudsdkas/v1/model/pause_scaling_policy_response.py +81 -0
  154. huaweicloudsdkas/v1/model/{personality.py → personality_info.py} +26 -26
  155. huaweicloudsdkas/v1/model/personality_result.py +137 -0
  156. huaweicloudsdkas/v1/model/policy_instance_quotas.py +16 -18
  157. huaweicloudsdkas/v1/model/policy_instance_resources.py +62 -29
  158. huaweicloudsdkas/v1/model/public_ip.py +17 -21
  159. huaweicloudsdkas/v1/model/publicip_result.py +104 -0
  160. huaweicloudsdkas/v1/model/put_warm_pool_option.py +166 -0
  161. huaweicloudsdkas/v1/model/{complete_lifecycle_action_request.py → put_warm_pool_request.py} +30 -30
  162. huaweicloudsdkas/v1/model/{enable_or_disable_scaling_group_response.py → put_warm_pool_response.py} +15 -15
  163. huaweicloudsdkas/v1/model/{show_tags_request_body.py → query_tags_option.py} +91 -77
  164. huaweicloudsdkas/v1/model/resource_tags.py +20 -20
  165. huaweicloudsdkas/v1/model/resources.py +31 -27
  166. huaweicloudsdkas/v1/model/resume_scaling_group_option.py +107 -0
  167. huaweicloudsdkas/v1/model/{update_scaling_group_instance_request.py → resume_scaling_group_request.py} +30 -30
  168. huaweicloudsdkas/v1/model/resume_scaling_group_response.py +81 -0
  169. huaweicloudsdkas/v1/model/resume_scaling_policy_option.py +107 -0
  170. huaweicloudsdkas/v1/model/resume_scaling_policy_request.py +132 -0
  171. huaweicloudsdkas/v1/model/resume_scaling_policy_response.py +81 -0
  172. huaweicloudsdkas/v1/model/scaling_activity_log_list.py +67 -49
  173. huaweicloudsdkas/v1/model/scaling_activity_log_v2.py +601 -0
  174. huaweicloudsdkas/v1/model/scaling_all_policy_detail.py +469 -0
  175. huaweicloudsdkas/v1/model/scaling_configuration.py +68 -35
  176. huaweicloudsdkas/v1/model/scaling_group_instance.py +62 -46
  177. huaweicloudsdkas/v1/model/scaling_groups.py +328 -104
  178. huaweicloudsdkas/v1/model/scaling_instance.py +224 -0
  179. huaweicloudsdkas/v1/model/scaling_policies_v2.py +469 -0
  180. huaweicloudsdkas/v1/model/{scaling_policy_action.py → scaling_policy_action_v1.py} +37 -35
  181. huaweicloudsdkas/v1/model/scaling_policy_action_v2.py +195 -0
  182. huaweicloudsdkas/v1/model/scaling_policy_execute_log_list.py +105 -81
  183. huaweicloudsdkas/v1/model/scaling_policy_v2_meta_data.py +166 -0
  184. huaweicloudsdkas/v1/model/{scaling_policy_detail.py → scaling_v1_policy_detail.py} +110 -71
  185. huaweicloudsdkas/v1/model/scaling_v2_policy_detail.py +469 -0
  186. huaweicloudsdkas/v1/model/scheduled_policy.py +38 -33
  187. huaweicloudsdkas/v1/model/scheduled_task_detail.py +332 -0
  188. huaweicloudsdkas/v1/model/scheduled_task_policy.py +223 -0
  189. huaweicloudsdkas/v1/model/security_group.py +107 -0
  190. huaweicloudsdkas/v1/model/security_groups.py +17 -19
  191. huaweicloudsdkas/v1/model/security_groups_result.py +15 -17
  192. huaweicloudsdkas/v1/model/show_api_version_request.py +107 -0
  193. huaweicloudsdkas/v1/model/show_api_version_response.py +108 -0
  194. huaweicloudsdkas/v1/model/show_life_cycle_hook_request.py +24 -20
  195. huaweicloudsdkas/v1/model/show_life_cycle_hook_response.py +55 -39
  196. huaweicloudsdkas/v1/model/show_policy_and_instance_quota_request.py +17 -17
  197. huaweicloudsdkas/v1/model/show_policy_and_instance_quota_response.py +32 -32
  198. huaweicloudsdkas/v1/model/show_resource_quota_request.py +10 -14
  199. huaweicloudsdkas/v1/model/show_resource_quota_response.py +19 -19
  200. huaweicloudsdkas/v1/model/show_scaling_config_request.py +17 -17
  201. huaweicloudsdkas/v1/model/show_scaling_config_response.py +19 -19
  202. huaweicloudsdkas/v1/model/show_scaling_group_request.py +17 -17
  203. huaweicloudsdkas/v1/model/show_scaling_group_response.py +19 -19
  204. huaweicloudsdkas/v1/model/show_scaling_policy_request.py +17 -17
  205. huaweicloudsdkas/v1/model/show_scaling_policy_response.py +20 -20
  206. huaweicloudsdkas/v1/model/show_scaling_v2_policy_request.py +107 -0
  207. huaweicloudsdkas/v1/model/show_scaling_v2_policy_response.py +108 -0
  208. huaweicloudsdkas/v1/model/show_warm_pool_request.py +107 -0
  209. huaweicloudsdkas/v1/model/show_warm_pool_response.py +108 -0
  210. huaweicloudsdkas/v1/model/tags_multi_value.py +26 -28
  211. huaweicloudsdkas/v1/model/tags_single_value.py +25 -26
  212. huaweicloudsdkas/v1/model/topics.py +25 -23
  213. huaweicloudsdkas/v1/model/update_group_scheduled_task_request.py +160 -0
  214. huaweicloudsdkas/v1/model/update_group_scheduled_task_response.py +81 -0
  215. huaweicloudsdkas/v1/model/update_instance_config.py +107 -0
  216. huaweicloudsdkas/v1/model/{update_life_cycle_hook_request_body.py → update_life_cycle_hook_option.py} +49 -43
  217. huaweicloudsdkas/v1/model/update_life_cycle_hook_request.py +31 -27
  218. huaweicloudsdkas/v1/model/update_life_cycle_hook_response.py +55 -39
  219. huaweicloudsdkas/v1/model/update_scaling_config_option.py +103 -0
  220. huaweicloudsdkas/v1/model/update_scaling_config_request.py +128 -0
  221. huaweicloudsdkas/v1/model/update_scaling_config_response.py +81 -0
  222. huaweicloudsdkas/v1/model/{update_scaling_group_request_body.py → update_scaling_group_option.py} +263 -115
  223. huaweicloudsdkas/v1/model/update_scaling_group_request.py +24 -24
  224. huaweicloudsdkas/v1/model/update_scaling_group_response.py +18 -16
  225. huaweicloudsdkas/v1/model/{update_scaling_policy_request_body.py → update_scaling_policy_option.py} +59 -55
  226. huaweicloudsdkas/v1/model/update_scaling_policy_request.py +24 -24
  227. huaweicloudsdkas/v1/model/update_scaling_policy_response.py +18 -16
  228. huaweicloudsdkas/v1/model/update_scaling_v2_policy_option.py +357 -0
  229. huaweicloudsdkas/v1/model/update_scaling_v2_policy_request.py +132 -0
  230. huaweicloudsdkas/v1/model/update_scaling_v2_policy_response.py +112 -0
  231. huaweicloudsdkas/v1/model/update_scheduled_task_option.py +158 -0
  232. huaweicloudsdkas/v1/model/version_info.py +253 -0
  233. huaweicloudsdkas/v1/model/vm_meta_data.py +108 -0
  234. huaweicloudsdkas/v1/model/warm_pool_info.py +195 -0
  235. huaweicloudsdkas/v1/model/warm_pool_instance.py +195 -0
  236. huaweicloudsdkas/v1/region/as_region.py +112 -38
  237. huaweicloudsdkas-3.1.176.dist-info/METADATA +25 -0
  238. huaweicloudsdkas-3.1.176.dist-info/RECORD +242 -0
  239. {huaweicloudsdkas-3.0.33rc0.dist-info → huaweicloudsdkas-3.1.176.dist-info}/WHEEL +1 -2
  240. huaweicloudsdkas/v1/model/create_scaling_config_request_body.py +0 -133
  241. huaweicloudsdkas/v1/model/disk.py +0 -242
  242. huaweicloudsdkas-3.0.33rc0.dist-info/METADATA +0 -26
  243. huaweicloudsdkas-3.0.33rc0.dist-info/RECORD +0 -141
  244. huaweicloudsdkas-3.0.33rc0.dist-info/top_level.txt +0 -1
  245. {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 ListScalingPoliciesResponse(SdkResponse):
13
8
 
14
-
15
9
  """
16
10
  Attributes:
17
11
  openapi_types (dict): The key is attribute name
@@ -19,14 +13,13 @@ class ListScalingPoliciesResponse(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
  'total_number': 'int',
27
20
  'start_number': 'int',
28
21
  'limit': 'int',
29
- 'scaling_policies': 'list[ScalingPolicyDetail]'
22
+ 'scaling_policies': 'list[ScalingV1PolicyDetail]'
30
23
  }
31
24
 
32
25
  attribute_map = {
@@ -37,7 +30,19 @@ class ListScalingPoliciesResponse(SdkResponse):
37
30
  }
38
31
 
39
32
  def __init__(self, total_number=None, start_number=None, limit=None, scaling_policies=None):
40
- """ListScalingPoliciesResponse - a model defined in huaweicloud sdk"""
33
+ r"""ListScalingPoliciesResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param total_number: 总记录数。
38
+ :type total_number: int
39
+ :param start_number: 查询的起始行号。
40
+ :type start_number: int
41
+ :param limit: 查询记录数。
42
+ :type limit: int
43
+ :param scaling_policies: 伸缩策略列表
44
+ :type scaling_policies: list[:class:`huaweicloudsdkas.v1.ScalingV1PolicyDetail`]
45
+ """
41
46
 
42
47
  super().__init__()
43
48
 
@@ -58,7 +63,7 @@ class ListScalingPoliciesResponse(SdkResponse):
58
63
 
59
64
  @property
60
65
  def total_number(self):
61
- """Gets the total_number of this ListScalingPoliciesResponse.
66
+ r"""Gets the total_number of this ListScalingPoliciesResponse.
62
67
 
63
68
  总记录数。
64
69
 
@@ -69,18 +74,18 @@ class ListScalingPoliciesResponse(SdkResponse):
69
74
 
70
75
  @total_number.setter
71
76
  def total_number(self, total_number):
72
- """Sets the total_number of this ListScalingPoliciesResponse.
77
+ r"""Sets the total_number of this ListScalingPoliciesResponse.
73
78
 
74
79
  总记录数。
75
80
 
76
81
  :param total_number: The total_number of this ListScalingPoliciesResponse.
77
- :type: int
82
+ :type total_number: int
78
83
  """
79
84
  self._total_number = total_number
80
85
 
81
86
  @property
82
87
  def start_number(self):
83
- """Gets the start_number of this ListScalingPoliciesResponse.
88
+ r"""Gets the start_number of this ListScalingPoliciesResponse.
84
89
 
85
90
  查询的起始行号。
86
91
 
@@ -91,18 +96,18 @@ class ListScalingPoliciesResponse(SdkResponse):
91
96
 
92
97
  @start_number.setter
93
98
  def start_number(self, start_number):
94
- """Sets the start_number of this ListScalingPoliciesResponse.
99
+ r"""Sets the start_number of this ListScalingPoliciesResponse.
95
100
 
96
101
  查询的起始行号。
97
102
 
98
103
  :param start_number: The start_number of this ListScalingPoliciesResponse.
99
- :type: int
104
+ :type start_number: int
100
105
  """
101
106
  self._start_number = start_number
102
107
 
103
108
  @property
104
109
  def limit(self):
105
- """Gets the limit of this ListScalingPoliciesResponse.
110
+ r"""Gets the limit of this ListScalingPoliciesResponse.
106
111
 
107
112
  查询记录数。
108
113
 
@@ -113,42 +118,44 @@ class ListScalingPoliciesResponse(SdkResponse):
113
118
 
114
119
  @limit.setter
115
120
  def limit(self, limit):
116
- """Sets the limit of this ListScalingPoliciesResponse.
121
+ r"""Sets the limit of this ListScalingPoliciesResponse.
117
122
 
118
123
  查询记录数。
119
124
 
120
125
  :param limit: The limit of this ListScalingPoliciesResponse.
121
- :type: int
126
+ :type limit: int
122
127
  """
123
128
  self._limit = limit
124
129
 
125
130
  @property
126
131
  def scaling_policies(self):
127
- """Gets the scaling_policies of this ListScalingPoliciesResponse.
132
+ r"""Gets the scaling_policies of this ListScalingPoliciesResponse.
128
133
 
129
134
  伸缩策略列表
130
135
 
131
136
  :return: The scaling_policies of this ListScalingPoliciesResponse.
132
- :rtype: list[ScalingPolicyDetail]
137
+ :rtype: list[:class:`huaweicloudsdkas.v1.ScalingV1PolicyDetail`]
133
138
  """
134
139
  return self._scaling_policies
135
140
 
136
141
  @scaling_policies.setter
137
142
  def scaling_policies(self, scaling_policies):
138
- """Sets the scaling_policies of this ListScalingPoliciesResponse.
143
+ r"""Sets the scaling_policies of this ListScalingPoliciesResponse.
139
144
 
140
145
  伸缩策略列表
141
146
 
142
147
  :param scaling_policies: The scaling_policies of this ListScalingPoliciesResponse.
143
- :type: list[ScalingPolicyDetail]
148
+ :type scaling_policies: list[:class:`huaweicloudsdkas.v1.ScalingV1PolicyDetail`]
144
149
  """
145
150
  self._scaling_policies = scaling_policies
146
151
 
147
152
  def to_dict(self):
148
- """Returns the model properties as a dict"""
153
+ import warnings
154
+ warnings.warn("ListScalingPoliciesResponse.to_dict() is deprecated and no longer maintained, "
155
+ "use to_json_object() to get the response content.", DeprecationWarning)
149
156
  result = {}
150
157
 
151
- for attr, _ in six.iteritems(self.openapi_types):
158
+ for attr, _ in self.openapi_types.items():
152
159
  value = getattr(self, attr)
153
160
  if isinstance(value, list):
154
161
  result[attr] = list(map(
@@ -173,10 +180,11 @@ class ListScalingPoliciesResponse(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
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
177
185
 
178
186
  def __repr__(self):
179
- """For `print` and `pprint`"""
187
+ """For `print`"""
180
188
  return self.to_str()
181
189
 
182
190
  def __eq__(self, other):
@@ -1,17 +1,10 @@
1
1
  # coding: utf-8
2
2
 
3
- import pprint
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 ListScalingPolicyExecuteLogsRequest:
13
7
 
14
-
15
8
  """
16
9
  Attributes:
17
10
  openapi_types (dict): The key is attribute name
@@ -19,7 +12,6 @@ class ListScalingPolicyExecuteLogsRequest:
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 = {
@@ -28,8 +20,8 @@ class ListScalingPolicyExecuteLogsRequest:
28
20
  'scaling_resource_type': 'str',
29
21
  'scaling_resource_id': 'str',
30
22
  'execute_type': 'str',
31
- 'start_time': 'datetime',
32
- 'end_time': 'datetime',
23
+ 'start_time': 'str',
24
+ 'end_time': 'str',
33
25
  'start_number': 'int',
34
26
  'limit': 'int'
35
27
  }
@@ -47,7 +39,29 @@ class ListScalingPolicyExecuteLogsRequest:
47
39
  }
48
40
 
49
41
  def __init__(self, scaling_policy_id=None, log_id=None, scaling_resource_type=None, scaling_resource_id=None, execute_type=None, start_time=None, end_time=None, start_number=None, limit=None):
50
- """ListScalingPolicyExecuteLogsRequest - a model defined in huaweicloud sdk"""
42
+ r"""ListScalingPolicyExecuteLogsRequest
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param scaling_policy_id: 伸缩策略ID。
47
+ :type scaling_policy_id: str
48
+ :param log_id: 日志ID。
49
+ :type log_id: str
50
+ :param scaling_resource_type: 伸缩资源类型:伸缩组:SCALING_GROUP。带宽:BANDWIDTH
51
+ :type scaling_resource_type: str
52
+ :param scaling_resource_id: 伸缩资源ID。
53
+ :type scaling_resource_id: str
54
+ :param execute_type: 策略执行类型:SCHEDULED:自动触发(定时)。RECURRENCE:自动触发(周期)。ALARM:自动触发(告警)。MANUAL:手动触发。
55
+ :type execute_type: str
56
+ :param start_time: 查询的起始时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
57
+ :type start_time: str
58
+ :param end_time: 查询的截止时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
59
+ :type end_time: str
60
+ :param start_number: 查询的起始行号,默认为0。
61
+ :type start_number: int
62
+ :param limit: 查询记录数,默认20,最大100。
63
+ :type limit: int
64
+ """
51
65
 
52
66
 
53
67
 
@@ -82,8 +96,9 @@ class ListScalingPolicyExecuteLogsRequest:
82
96
 
83
97
  @property
84
98
  def scaling_policy_id(self):
85
- """Gets the scaling_policy_id of this ListScalingPolicyExecuteLogsRequest.
99
+ r"""Gets the scaling_policy_id of this ListScalingPolicyExecuteLogsRequest.
86
100
 
101
+ 伸缩策略ID。
87
102
 
88
103
  :return: The scaling_policy_id of this ListScalingPolicyExecuteLogsRequest.
89
104
  :rtype: str
@@ -92,18 +107,20 @@ class ListScalingPolicyExecuteLogsRequest:
92
107
 
93
108
  @scaling_policy_id.setter
94
109
  def scaling_policy_id(self, scaling_policy_id):
95
- """Sets the scaling_policy_id of this ListScalingPolicyExecuteLogsRequest.
110
+ r"""Sets the scaling_policy_id of this ListScalingPolicyExecuteLogsRequest.
96
111
 
112
+ 伸缩策略ID。
97
113
 
98
114
  :param scaling_policy_id: The scaling_policy_id of this ListScalingPolicyExecuteLogsRequest.
99
- :type: str
115
+ :type scaling_policy_id: str
100
116
  """
101
117
  self._scaling_policy_id = scaling_policy_id
102
118
 
103
119
  @property
104
120
  def log_id(self):
105
- """Gets the log_id of this ListScalingPolicyExecuteLogsRequest.
121
+ r"""Gets the log_id of this ListScalingPolicyExecuteLogsRequest.
106
122
 
123
+ 日志ID。
107
124
 
108
125
  :return: The log_id of this ListScalingPolicyExecuteLogsRequest.
109
126
  :rtype: str
@@ -112,18 +129,20 @@ class ListScalingPolicyExecuteLogsRequest:
112
129
 
113
130
  @log_id.setter
114
131
  def log_id(self, log_id):
115
- """Sets the log_id of this ListScalingPolicyExecuteLogsRequest.
132
+ r"""Sets the log_id of this ListScalingPolicyExecuteLogsRequest.
116
133
 
134
+ 日志ID。
117
135
 
118
136
  :param log_id: The log_id of this ListScalingPolicyExecuteLogsRequest.
119
- :type: str
137
+ :type log_id: str
120
138
  """
121
139
  self._log_id = log_id
122
140
 
123
141
  @property
124
142
  def scaling_resource_type(self):
125
- """Gets the scaling_resource_type of this ListScalingPolicyExecuteLogsRequest.
143
+ r"""Gets the scaling_resource_type of this ListScalingPolicyExecuteLogsRequest.
126
144
 
145
+ 伸缩资源类型:伸缩组:SCALING_GROUP。带宽:BANDWIDTH
127
146
 
128
147
  :return: The scaling_resource_type of this ListScalingPolicyExecuteLogsRequest.
129
148
  :rtype: str
@@ -132,18 +151,20 @@ class ListScalingPolicyExecuteLogsRequest:
132
151
 
133
152
  @scaling_resource_type.setter
134
153
  def scaling_resource_type(self, scaling_resource_type):
135
- """Sets the scaling_resource_type of this ListScalingPolicyExecuteLogsRequest.
154
+ r"""Sets the scaling_resource_type of this ListScalingPolicyExecuteLogsRequest.
136
155
 
156
+ 伸缩资源类型:伸缩组:SCALING_GROUP。带宽:BANDWIDTH
137
157
 
138
158
  :param scaling_resource_type: The scaling_resource_type of this ListScalingPolicyExecuteLogsRequest.
139
- :type: str
159
+ :type scaling_resource_type: str
140
160
  """
141
161
  self._scaling_resource_type = scaling_resource_type
142
162
 
143
163
  @property
144
164
  def scaling_resource_id(self):
145
- """Gets the scaling_resource_id of this ListScalingPolicyExecuteLogsRequest.
165
+ r"""Gets the scaling_resource_id of this ListScalingPolicyExecuteLogsRequest.
146
166
 
167
+ 伸缩资源ID。
147
168
 
148
169
  :return: The scaling_resource_id of this ListScalingPolicyExecuteLogsRequest.
149
170
  :rtype: str
@@ -152,18 +173,20 @@ class ListScalingPolicyExecuteLogsRequest:
152
173
 
153
174
  @scaling_resource_id.setter
154
175
  def scaling_resource_id(self, scaling_resource_id):
155
- """Sets the scaling_resource_id of this ListScalingPolicyExecuteLogsRequest.
176
+ r"""Sets the scaling_resource_id of this ListScalingPolicyExecuteLogsRequest.
156
177
 
178
+ 伸缩资源ID。
157
179
 
158
180
  :param scaling_resource_id: The scaling_resource_id of this ListScalingPolicyExecuteLogsRequest.
159
- :type: str
181
+ :type scaling_resource_id: str
160
182
  """
161
183
  self._scaling_resource_id = scaling_resource_id
162
184
 
163
185
  @property
164
186
  def execute_type(self):
165
- """Gets the execute_type of this ListScalingPolicyExecuteLogsRequest.
187
+ r"""Gets the execute_type of this ListScalingPolicyExecuteLogsRequest.
166
188
 
189
+ 策略执行类型:SCHEDULED:自动触发(定时)。RECURRENCE:自动触发(周期)。ALARM:自动触发(告警)。MANUAL:手动触发。
167
190
 
168
191
  :return: The execute_type of this ListScalingPolicyExecuteLogsRequest.
169
192
  :rtype: str
@@ -172,58 +195,64 @@ class ListScalingPolicyExecuteLogsRequest:
172
195
 
173
196
  @execute_type.setter
174
197
  def execute_type(self, execute_type):
175
- """Sets the execute_type of this ListScalingPolicyExecuteLogsRequest.
198
+ r"""Sets the execute_type of this ListScalingPolicyExecuteLogsRequest.
176
199
 
200
+ 策略执行类型:SCHEDULED:自动触发(定时)。RECURRENCE:自动触发(周期)。ALARM:自动触发(告警)。MANUAL:手动触发。
177
201
 
178
202
  :param execute_type: The execute_type of this ListScalingPolicyExecuteLogsRequest.
179
- :type: str
203
+ :type execute_type: str
180
204
  """
181
205
  self._execute_type = execute_type
182
206
 
183
207
  @property
184
208
  def start_time(self):
185
- """Gets the start_time of this ListScalingPolicyExecuteLogsRequest.
209
+ r"""Gets the start_time of this ListScalingPolicyExecuteLogsRequest.
186
210
 
211
+ 查询的起始时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
187
212
 
188
213
  :return: The start_time of this ListScalingPolicyExecuteLogsRequest.
189
- :rtype: datetime
214
+ :rtype: str
190
215
  """
191
216
  return self._start_time
192
217
 
193
218
  @start_time.setter
194
219
  def start_time(self, start_time):
195
- """Sets the start_time of this ListScalingPolicyExecuteLogsRequest.
220
+ r"""Sets the start_time of this ListScalingPolicyExecuteLogsRequest.
196
221
 
222
+ 查询的起始时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
197
223
 
198
224
  :param start_time: The start_time of this ListScalingPolicyExecuteLogsRequest.
199
- :type: datetime
225
+ :type start_time: str
200
226
  """
201
227
  self._start_time = start_time
202
228
 
203
229
  @property
204
230
  def end_time(self):
205
- """Gets the end_time of this ListScalingPolicyExecuteLogsRequest.
231
+ r"""Gets the end_time of this ListScalingPolicyExecuteLogsRequest.
206
232
 
233
+ 查询的截止时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
207
234
 
208
235
  :return: The end_time of this ListScalingPolicyExecuteLogsRequest.
209
- :rtype: datetime
236
+ :rtype: str
210
237
  """
211
238
  return self._end_time
212
239
 
213
240
  @end_time.setter
214
241
  def end_time(self, end_time):
215
- """Sets the end_time of this ListScalingPolicyExecuteLogsRequest.
242
+ r"""Sets the end_time of this ListScalingPolicyExecuteLogsRequest.
216
243
 
244
+ 查询的截止时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
217
245
 
218
246
  :param end_time: The end_time of this ListScalingPolicyExecuteLogsRequest.
219
- :type: datetime
247
+ :type end_time: str
220
248
  """
221
249
  self._end_time = end_time
222
250
 
223
251
  @property
224
252
  def start_number(self):
225
- """Gets the start_number of this ListScalingPolicyExecuteLogsRequest.
253
+ r"""Gets the start_number of this ListScalingPolicyExecuteLogsRequest.
226
254
 
255
+ 查询的起始行号,默认为0。
227
256
 
228
257
  :return: The start_number of this ListScalingPolicyExecuteLogsRequest.
229
258
  :rtype: int
@@ -232,18 +261,20 @@ class ListScalingPolicyExecuteLogsRequest:
232
261
 
233
262
  @start_number.setter
234
263
  def start_number(self, start_number):
235
- """Sets the start_number of this ListScalingPolicyExecuteLogsRequest.
264
+ r"""Sets the start_number of this ListScalingPolicyExecuteLogsRequest.
236
265
 
266
+ 查询的起始行号,默认为0。
237
267
 
238
268
  :param start_number: The start_number of this ListScalingPolicyExecuteLogsRequest.
239
- :type: int
269
+ :type start_number: int
240
270
  """
241
271
  self._start_number = start_number
242
272
 
243
273
  @property
244
274
  def limit(self):
245
- """Gets the limit of this ListScalingPolicyExecuteLogsRequest.
275
+ r"""Gets the limit of this ListScalingPolicyExecuteLogsRequest.
246
276
 
277
+ 查询记录数,默认20,最大100。
247
278
 
248
279
  :return: The limit of this ListScalingPolicyExecuteLogsRequest.
249
280
  :rtype: int
@@ -252,19 +283,19 @@ class ListScalingPolicyExecuteLogsRequest:
252
283
 
253
284
  @limit.setter
254
285
  def limit(self, limit):
255
- """Sets the limit of this ListScalingPolicyExecuteLogsRequest.
286
+ r"""Sets the limit of this ListScalingPolicyExecuteLogsRequest.
256
287
 
288
+ 查询记录数,默认20,最大100。
257
289
 
258
290
  :param limit: The limit of this ListScalingPolicyExecuteLogsRequest.
259
- :type: int
291
+ :type limit: int
260
292
  """
261
293
  self._limit = limit
262
294
 
263
295
  def to_dict(self):
264
- """Returns the model properties as a dict"""
265
296
  result = {}
266
297
 
267
- for attr, _ in six.iteritems(self.openapi_types):
298
+ for attr, _ in self.openapi_types.items():
268
299
  value = getattr(self, attr)
269
300
  if isinstance(value, list):
270
301
  result[attr] = list(map(
@@ -289,10 +320,11 @@ class ListScalingPolicyExecuteLogsRequest:
289
320
 
290
321
  def to_str(self):
291
322
  """Returns the string representation of the model"""
292
- return pprint.pformat(self.to_dict())
323
+ import simplejson as json
324
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
293
325
 
294
326
  def __repr__(self):
295
- """For `print` and `pprint`"""
327
+ """For `print`"""
296
328
  return self.to_str()
297
329
 
298
330
  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 ListScalingPolicyExecuteLogsResponse(SdkResponse):
13
8
 
14
-
15
9
  """
16
10
  Attributes:
17
11
  openapi_types (dict): The key is attribute name
@@ -19,7 +13,6 @@ class ListScalingPolicyExecuteLogsResponse(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 = {
@@ -37,7 +30,19 @@ class ListScalingPolicyExecuteLogsResponse(SdkResponse):
37
30
  }
38
31
 
39
32
  def __init__(self, total_number=None, start_number=None, limit=None, scaling_policy_execute_log=None):
40
- """ListScalingPolicyExecuteLogsResponse - a model defined in huaweicloud sdk"""
33
+ r"""ListScalingPolicyExecuteLogsResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param total_number: 总记录数。
38
+ :type total_number: int
39
+ :param start_number: 查询的起始行号。
40
+ :type start_number: int
41
+ :param limit: 查询记录数。
42
+ :type limit: int
43
+ :param scaling_policy_execute_log: 伸缩策略执行日志列表。
44
+ :type scaling_policy_execute_log: list[:class:`huaweicloudsdkas.v1.ScalingPolicyExecuteLogList`]
45
+ """
41
46
 
42
47
  super().__init__()
43
48
 
@@ -58,7 +63,7 @@ class ListScalingPolicyExecuteLogsResponse(SdkResponse):
58
63
 
59
64
  @property
60
65
  def total_number(self):
61
- """Gets the total_number of this ListScalingPolicyExecuteLogsResponse.
66
+ r"""Gets the total_number of this ListScalingPolicyExecuteLogsResponse.
62
67
 
63
68
  总记录数。
64
69
 
@@ -69,18 +74,18 @@ class ListScalingPolicyExecuteLogsResponse(SdkResponse):
69
74
 
70
75
  @total_number.setter
71
76
  def total_number(self, total_number):
72
- """Sets the total_number of this ListScalingPolicyExecuteLogsResponse.
77
+ r"""Sets the total_number of this ListScalingPolicyExecuteLogsResponse.
73
78
 
74
79
  总记录数。
75
80
 
76
81
  :param total_number: The total_number of this ListScalingPolicyExecuteLogsResponse.
77
- :type: int
82
+ :type total_number: int
78
83
  """
79
84
  self._total_number = total_number
80
85
 
81
86
  @property
82
87
  def start_number(self):
83
- """Gets the start_number of this ListScalingPolicyExecuteLogsResponse.
88
+ r"""Gets the start_number of this ListScalingPolicyExecuteLogsResponse.
84
89
 
85
90
  查询的起始行号。
86
91
 
@@ -91,18 +96,18 @@ class ListScalingPolicyExecuteLogsResponse(SdkResponse):
91
96
 
92
97
  @start_number.setter
93
98
  def start_number(self, start_number):
94
- """Sets the start_number of this ListScalingPolicyExecuteLogsResponse.
99
+ r"""Sets the start_number of this ListScalingPolicyExecuteLogsResponse.
95
100
 
96
101
  查询的起始行号。
97
102
 
98
103
  :param start_number: The start_number of this ListScalingPolicyExecuteLogsResponse.
99
- :type: int
104
+ :type start_number: int
100
105
  """
101
106
  self._start_number = start_number
102
107
 
103
108
  @property
104
109
  def limit(self):
105
- """Gets the limit of this ListScalingPolicyExecuteLogsResponse.
110
+ r"""Gets the limit of this ListScalingPolicyExecuteLogsResponse.
106
111
 
107
112
  查询记录数。
108
113
 
@@ -113,42 +118,44 @@ class ListScalingPolicyExecuteLogsResponse(SdkResponse):
113
118
 
114
119
  @limit.setter
115
120
  def limit(self, limit):
116
- """Sets the limit of this ListScalingPolicyExecuteLogsResponse.
121
+ r"""Sets the limit of this ListScalingPolicyExecuteLogsResponse.
117
122
 
118
123
  查询记录数。
119
124
 
120
125
  :param limit: The limit of this ListScalingPolicyExecuteLogsResponse.
121
- :type: int
126
+ :type limit: int
122
127
  """
123
128
  self._limit = limit
124
129
 
125
130
  @property
126
131
  def scaling_policy_execute_log(self):
127
- """Gets the scaling_policy_execute_log of this ListScalingPolicyExecuteLogsResponse.
132
+ r"""Gets the scaling_policy_execute_log of this ListScalingPolicyExecuteLogsResponse.
128
133
 
129
134
  伸缩策略执行日志列表。
130
135
 
131
136
  :return: The scaling_policy_execute_log of this ListScalingPolicyExecuteLogsResponse.
132
- :rtype: list[ScalingPolicyExecuteLogList]
137
+ :rtype: list[:class:`huaweicloudsdkas.v1.ScalingPolicyExecuteLogList`]
133
138
  """
134
139
  return self._scaling_policy_execute_log
135
140
 
136
141
  @scaling_policy_execute_log.setter
137
142
  def scaling_policy_execute_log(self, scaling_policy_execute_log):
138
- """Sets the scaling_policy_execute_log of this ListScalingPolicyExecuteLogsResponse.
143
+ r"""Sets the scaling_policy_execute_log of this ListScalingPolicyExecuteLogsResponse.
139
144
 
140
145
  伸缩策略执行日志列表。
141
146
 
142
147
  :param scaling_policy_execute_log: The scaling_policy_execute_log of this ListScalingPolicyExecuteLogsResponse.
143
- :type: list[ScalingPolicyExecuteLogList]
148
+ :type scaling_policy_execute_log: list[:class:`huaweicloudsdkas.v1.ScalingPolicyExecuteLogList`]
144
149
  """
145
150
  self._scaling_policy_execute_log = scaling_policy_execute_log
146
151
 
147
152
  def to_dict(self):
148
- """Returns the model properties as a dict"""
153
+ import warnings
154
+ warnings.warn("ListScalingPolicyExecuteLogsResponse.to_dict() is deprecated and no longer maintained, "
155
+ "use to_json_object() to get the response content.", DeprecationWarning)
149
156
  result = {}
150
157
 
151
- for attr, _ in six.iteritems(self.openapi_types):
158
+ for attr, _ in self.openapi_types.items():
152
159
  value = getattr(self, attr)
153
160
  if isinstance(value, list):
154
161
  result[attr] = list(map(
@@ -173,10 +180,11 @@ class ListScalingPolicyExecuteLogsResponse(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
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
177
185
 
178
186
  def __repr__(self):
179
- """For `print` and `pprint`"""
187
+ """For `print`"""
180
188
  return self.to_str()
181
189
 
182
190
  def __eq__(self, other):