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 CreateLifyCycleHookResponse(SdkResponse):
13
8
 
14
-
15
9
  """
16
10
  Attributes:
17
11
  openapi_types (dict): The key is attribute name
@@ -19,7 +13,6 @@ class CreateLifyCycleHookResponse(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 CreateLifyCycleHookResponse(SdkResponse):
30
23
  'notification_topic_urn': 'str',
31
24
  'notification_topic_name': 'str',
32
25
  'notification_metadata': 'str',
33
- 'create_time': 'datetime'
26
+ 'create_time': 'str'
34
27
  }
35
28
 
36
29
  attribute_map = {
@@ -45,7 +38,27 @@ class CreateLifyCycleHookResponse(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
- """CreateLifyCycleHookResponse - a model defined in huaweicloud sdk"""
41
+ r"""CreateLifyCycleHookResponse
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 CreateLifyCycleHookResponse(SdkResponse):
78
91
 
79
92
  @property
80
93
  def lifecycle_hook_name(self):
81
- """Gets the lifecycle_hook_name of this CreateLifyCycleHookResponse.
94
+ r"""Gets the lifecycle_hook_name of this CreateLifyCycleHookResponse.
82
95
 
83
96
  生命周期挂钩名称。
84
97
 
@@ -89,18 +102,18 @@ class CreateLifyCycleHookResponse(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 CreateLifyCycleHookResponse.
105
+ r"""Sets the lifecycle_hook_name of this CreateLifyCycleHookResponse.
93
106
 
94
107
  生命周期挂钩名称。
95
108
 
96
109
  :param lifecycle_hook_name: The lifecycle_hook_name of this CreateLifyCycleHookResponse.
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 CreateLifyCycleHookResponse.
116
+ r"""Gets the lifecycle_hook_type of this CreateLifyCycleHookResponse.
104
117
 
105
118
  生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
106
119
 
@@ -111,18 +124,18 @@ class CreateLifyCycleHookResponse(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 CreateLifyCycleHookResponse.
127
+ r"""Sets the lifecycle_hook_type of this CreateLifyCycleHookResponse.
115
128
 
116
129
  生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
117
130
 
118
131
  :param lifecycle_hook_type: The lifecycle_hook_type of this CreateLifyCycleHookResponse.
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 CreateLifyCycleHookResponse.
138
+ r"""Gets the default_result of this CreateLifyCycleHookResponse.
126
139
 
127
140
  生命周期挂钩默认回调操作。ABANDON;CONTINUE
128
141
 
@@ -133,18 +146,18 @@ class CreateLifyCycleHookResponse(SdkResponse):
133
146
 
134
147
  @default_result.setter
135
148
  def default_result(self, default_result):
136
- """Sets the default_result of this CreateLifyCycleHookResponse.
149
+ r"""Sets the default_result of this CreateLifyCycleHookResponse.
137
150
 
138
151
  生命周期挂钩默认回调操作。ABANDON;CONTINUE
139
152
 
140
153
  :param default_result: The default_result of this CreateLifyCycleHookResponse.
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 CreateLifyCycleHookResponse.
160
+ r"""Gets the default_timeout of this CreateLifyCycleHookResponse.
148
161
 
149
162
  生命周期挂钩超时时间,单位秒。
150
163
 
@@ -155,18 +168,18 @@ class CreateLifyCycleHookResponse(SdkResponse):
155
168
 
156
169
  @default_timeout.setter
157
170
  def default_timeout(self, default_timeout):
158
- """Sets the default_timeout of this CreateLifyCycleHookResponse.
171
+ r"""Sets the default_timeout of this CreateLifyCycleHookResponse.
159
172
 
160
173
  生命周期挂钩超时时间,单位秒。
161
174
 
162
175
  :param default_timeout: The default_timeout of this CreateLifyCycleHookResponse.
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 CreateLifyCycleHookResponse.
182
+ r"""Gets the notification_topic_urn of this CreateLifyCycleHookResponse.
170
183
 
171
184
  SMN服务中Topic的唯一的资源标识。
172
185
 
@@ -177,18 +190,18 @@ class CreateLifyCycleHookResponse(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 CreateLifyCycleHookResponse.
193
+ r"""Sets the notification_topic_urn of this CreateLifyCycleHookResponse.
181
194
 
182
195
  SMN服务中Topic的唯一的资源标识。
183
196
 
184
197
  :param notification_topic_urn: The notification_topic_urn of this CreateLifyCycleHookResponse.
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 CreateLifyCycleHookResponse.
204
+ r"""Gets the notification_topic_name of this CreateLifyCycleHookResponse.
192
205
 
193
206
  SMN服务中Topic的资源名称。
194
207
 
@@ -199,18 +212,18 @@ class CreateLifyCycleHookResponse(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 CreateLifyCycleHookResponse.
215
+ r"""Sets the notification_topic_name of this CreateLifyCycleHookResponse.
203
216
 
204
217
  SMN服务中Topic的资源名称。
205
218
 
206
219
  :param notification_topic_name: The notification_topic_name of this CreateLifyCycleHookResponse.
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 CreateLifyCycleHookResponse.
226
+ r"""Gets the notification_metadata of this CreateLifyCycleHookResponse.
214
227
 
215
228
  自定义通知消息。
216
229
 
@@ -221,42 +234,44 @@ class CreateLifyCycleHookResponse(SdkResponse):
221
234
 
222
235
  @notification_metadata.setter
223
236
  def notification_metadata(self, notification_metadata):
224
- """Sets the notification_metadata of this CreateLifyCycleHookResponse.
237
+ r"""Sets the notification_metadata of this CreateLifyCycleHookResponse.
225
238
 
226
239
  自定义通知消息。
227
240
 
228
241
  :param notification_metadata: The notification_metadata of this CreateLifyCycleHookResponse.
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 CreateLifyCycleHookResponse.
248
+ r"""Gets the create_time of this CreateLifyCycleHookResponse.
236
249
 
237
250
  生命周期挂钩创建时间,遵循UTC时间。
238
251
 
239
252
  :return: The create_time of this CreateLifyCycleHookResponse.
240
- :rtype: datetime
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 CreateLifyCycleHookResponse.
259
+ r"""Sets the create_time of this CreateLifyCycleHookResponse.
247
260
 
248
261
  生命周期挂钩创建时间,遵循UTC时间。
249
262
 
250
263
  :param create_time: The create_time of this CreateLifyCycleHookResponse.
251
- :type: datetime
264
+ :type create_time: str
252
265
  """
253
266
  self._create_time = create_time
254
267
 
255
268
  def to_dict(self):
256
- """Returns the model properties as a dict"""
269
+ import warnings
270
+ warnings.warn("CreateLifyCycleHookResponse.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 six.iteritems(self.openapi_types):
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 CreateLifyCycleHookResponse(SdkResponse):
281
296
 
282
297
  def to_str(self):
283
298
  """Returns the string representation of the model"""
284
- return pprint.pformat(self.to_dict())
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` and `pprint`"""
303
+ """For `print`"""
288
304
  return self.to_str()
289
305
 
290
306
  def __eq__(self, other):
@@ -1,16 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
- import pprint
4
- import re
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
5
4
 
6
- import six
7
-
8
-
9
-
10
-
11
-
12
- class CreateNotificationRequestBody:
13
5
 
6
+ class CreateNotificationOption:
14
7
 
15
8
  """
16
9
  Attributes:
@@ -19,7 +12,6 @@ class CreateNotificationRequestBody:
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 = {
@@ -33,7 +25,15 @@ class CreateNotificationRequestBody:
33
25
  }
34
26
 
35
27
  def __init__(self, topic_urn=None, topic_scene=None):
36
- """CreateNotificationRequestBody - a model defined in huaweicloud sdk"""
28
+ r"""CreateNotificationOption
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param topic_urn: SMN服务中Topic的唯一的资源标识。
33
+ :type topic_urn: str
34
+ :param topic_scene: 通知场景,有以下五种类型。SCALING_UP:扩容成功。SCALING_UP_FAIL:扩容失败。SCALING_DOWN:减容成功。SCALING_DOWN_FAIL:减容失败。SCALING_GROUP_ABNORMAL:伸缩组发生异常
35
+ :type topic_scene: list[str]
36
+ """
37
37
 
38
38
 
39
39
 
@@ -41,60 +41,57 @@ class CreateNotificationRequestBody:
41
41
  self._topic_scene = None
42
42
  self.discriminator = None
43
43
 
44
- if topic_urn is not None:
45
- self.topic_urn = topic_urn
46
- if topic_scene is not None:
47
- self.topic_scene = topic_scene
44
+ self.topic_urn = topic_urn
45
+ self.topic_scene = topic_scene
48
46
 
49
47
  @property
50
48
  def topic_urn(self):
51
- """Gets the topic_urn of this CreateNotificationRequestBody.
49
+ r"""Gets the topic_urn of this CreateNotificationOption.
52
50
 
53
51
  SMN服务中Topic的唯一的资源标识。
54
52
 
55
- :return: The topic_urn of this CreateNotificationRequestBody.
53
+ :return: The topic_urn of this CreateNotificationOption.
56
54
  :rtype: str
57
55
  """
58
56
  return self._topic_urn
59
57
 
60
58
  @topic_urn.setter
61
59
  def topic_urn(self, topic_urn):
62
- """Sets the topic_urn of this CreateNotificationRequestBody.
60
+ r"""Sets the topic_urn of this CreateNotificationOption.
63
61
 
64
62
  SMN服务中Topic的唯一的资源标识。
65
63
 
66
- :param topic_urn: The topic_urn of this CreateNotificationRequestBody.
67
- :type: str
64
+ :param topic_urn: The topic_urn of this CreateNotificationOption.
65
+ :type topic_urn: str
68
66
  """
69
67
  self._topic_urn = topic_urn
70
68
 
71
69
  @property
72
70
  def topic_scene(self):
73
- """Gets the topic_scene of this CreateNotificationRequestBody.
71
+ r"""Gets the topic_scene of this CreateNotificationOption.
74
72
 
75
73
  通知场景,有以下五种类型。SCALING_UP:扩容成功。SCALING_UP_FAIL:扩容失败。SCALING_DOWN:减容成功。SCALING_DOWN_FAIL:减容失败。SCALING_GROUP_ABNORMAL:伸缩组发生异常
76
74
 
77
- :return: The topic_scene of this CreateNotificationRequestBody.
75
+ :return: The topic_scene of this CreateNotificationOption.
78
76
  :rtype: list[str]
79
77
  """
80
78
  return self._topic_scene
81
79
 
82
80
  @topic_scene.setter
83
81
  def topic_scene(self, topic_scene):
84
- """Sets the topic_scene of this CreateNotificationRequestBody.
82
+ r"""Sets the topic_scene of this CreateNotificationOption.
85
83
 
86
84
  通知场景,有以下五种类型。SCALING_UP:扩容成功。SCALING_UP_FAIL:扩容失败。SCALING_DOWN:减容成功。SCALING_DOWN_FAIL:减容失败。SCALING_GROUP_ABNORMAL:伸缩组发生异常
87
85
 
88
- :param topic_scene: The topic_scene of this CreateNotificationRequestBody.
89
- :type: list[str]
86
+ :param topic_scene: The topic_scene of this CreateNotificationOption.
87
+ :type topic_scene: list[str]
90
88
  """
91
89
  self._topic_scene = topic_scene
92
90
 
93
91
  def to_dict(self):
94
- """Returns the model properties as a dict"""
95
92
  result = {}
96
93
 
97
- for attr, _ in six.iteritems(self.openapi_types):
94
+ for attr, _ in self.openapi_types.items():
98
95
  value = getattr(self, attr)
99
96
  if isinstance(value, list):
100
97
  result[attr] = list(map(
@@ -119,15 +116,16 @@ class CreateNotificationRequestBody:
119
116
 
120
117
  def to_str(self):
121
118
  """Returns the string representation of the model"""
122
- return pprint.pformat(self.to_dict())
119
+ import simplejson as json
120
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
123
121
 
124
122
  def __repr__(self):
125
- """For `print` and `pprint`"""
123
+ """For `print`"""
126
124
  return self.to_str()
127
125
 
128
126
  def __eq__(self, other):
129
127
  """Returns true if both objects are equal"""
130
- if not isinstance(other, CreateNotificationRequestBody):
128
+ if not isinstance(other, CreateNotificationOption):
131
129
  return False
132
130
 
133
131
  return self.__dict__ == other.__dict__
@@ -0,0 +1,162 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class CreateScalingConfigOption:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'scaling_configuration_name': 'str',
19
+ 'instance_config': 'InstanceConfig',
20
+ 'source_scaling_configuration_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'scaling_configuration_name': 'scaling_configuration_name',
25
+ 'instance_config': 'instance_config',
26
+ 'source_scaling_configuration_id': 'source_scaling_configuration_id'
27
+ }
28
+
29
+ def __init__(self, scaling_configuration_name=None, instance_config=None, source_scaling_configuration_id=None):
30
+ r"""CreateScalingConfigOption
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param scaling_configuration_name: 伸缩配置名称(1-64个字符),只能包含中文、字母、数字、下划线或中划线。
35
+ :type scaling_configuration_name: str
36
+ :param instance_config:
37
+ :type instance_config: :class:`huaweicloudsdkas.v1.InstanceConfig`
38
+ :param source_scaling_configuration_id: 源伸缩配置ID,通过该ID查询已有伸缩配置信息与instance_config中参数进行结合,创建新的伸缩配置。 说明: - 若传入instance_config中的instance_id,则优先使用instance_id相关实例配置创建新的伸缩配置,source_scaling_configuration_id参数不生效。 - 若未传入instance_config中的instance_id,则使用source_scaling_configuration_id与instance_config中的参数相结合创建伸缩配置。 - 若instance_config中的参数值为null,则创建新伸缩配置时该字段不产生修改。 - 若instance_config中的参数值不为null,则创建新伸缩配置时该字段将覆盖原有值,其中值为空时,该字段会被清空。 - 若不指定source_scaling_configuration_id创建伸缩配置,则scaling_configuration_name和instance_config为必选。
39
+ :type source_scaling_configuration_id: str
40
+ """
41
+
42
+
43
+
44
+ self._scaling_configuration_name = None
45
+ self._instance_config = None
46
+ self._source_scaling_configuration_id = None
47
+ self.discriminator = None
48
+
49
+ if scaling_configuration_name is not None:
50
+ self.scaling_configuration_name = scaling_configuration_name
51
+ if instance_config is not None:
52
+ self.instance_config = instance_config
53
+ if source_scaling_configuration_id is not None:
54
+ self.source_scaling_configuration_id = source_scaling_configuration_id
55
+
56
+ @property
57
+ def scaling_configuration_name(self):
58
+ r"""Gets the scaling_configuration_name of this CreateScalingConfigOption.
59
+
60
+ 伸缩配置名称(1-64个字符),只能包含中文、字母、数字、下划线或中划线。
61
+
62
+ :return: The scaling_configuration_name of this CreateScalingConfigOption.
63
+ :rtype: str
64
+ """
65
+ return self._scaling_configuration_name
66
+
67
+ @scaling_configuration_name.setter
68
+ def scaling_configuration_name(self, scaling_configuration_name):
69
+ r"""Sets the scaling_configuration_name of this CreateScalingConfigOption.
70
+
71
+ 伸缩配置名称(1-64个字符),只能包含中文、字母、数字、下划线或中划线。
72
+
73
+ :param scaling_configuration_name: The scaling_configuration_name of this CreateScalingConfigOption.
74
+ :type scaling_configuration_name: str
75
+ """
76
+ self._scaling_configuration_name = scaling_configuration_name
77
+
78
+ @property
79
+ def instance_config(self):
80
+ r"""Gets the instance_config of this CreateScalingConfigOption.
81
+
82
+ :return: The instance_config of this CreateScalingConfigOption.
83
+ :rtype: :class:`huaweicloudsdkas.v1.InstanceConfig`
84
+ """
85
+ return self._instance_config
86
+
87
+ @instance_config.setter
88
+ def instance_config(self, instance_config):
89
+ r"""Sets the instance_config of this CreateScalingConfigOption.
90
+
91
+ :param instance_config: The instance_config of this CreateScalingConfigOption.
92
+ :type instance_config: :class:`huaweicloudsdkas.v1.InstanceConfig`
93
+ """
94
+ self._instance_config = instance_config
95
+
96
+ @property
97
+ def source_scaling_configuration_id(self):
98
+ r"""Gets the source_scaling_configuration_id of this CreateScalingConfigOption.
99
+
100
+ 源伸缩配置ID,通过该ID查询已有伸缩配置信息与instance_config中参数进行结合,创建新的伸缩配置。 说明: - 若传入instance_config中的instance_id,则优先使用instance_id相关实例配置创建新的伸缩配置,source_scaling_configuration_id参数不生效。 - 若未传入instance_config中的instance_id,则使用source_scaling_configuration_id与instance_config中的参数相结合创建伸缩配置。 - 若instance_config中的参数值为null,则创建新伸缩配置时该字段不产生修改。 - 若instance_config中的参数值不为null,则创建新伸缩配置时该字段将覆盖原有值,其中值为空时,该字段会被清空。 - 若不指定source_scaling_configuration_id创建伸缩配置,则scaling_configuration_name和instance_config为必选。
101
+
102
+ :return: The source_scaling_configuration_id of this CreateScalingConfigOption.
103
+ :rtype: str
104
+ """
105
+ return self._source_scaling_configuration_id
106
+
107
+ @source_scaling_configuration_id.setter
108
+ def source_scaling_configuration_id(self, source_scaling_configuration_id):
109
+ r"""Sets the source_scaling_configuration_id of this CreateScalingConfigOption.
110
+
111
+ 源伸缩配置ID,通过该ID查询已有伸缩配置信息与instance_config中参数进行结合,创建新的伸缩配置。 说明: - 若传入instance_config中的instance_id,则优先使用instance_id相关实例配置创建新的伸缩配置,source_scaling_configuration_id参数不生效。 - 若未传入instance_config中的instance_id,则使用source_scaling_configuration_id与instance_config中的参数相结合创建伸缩配置。 - 若instance_config中的参数值为null,则创建新伸缩配置时该字段不产生修改。 - 若instance_config中的参数值不为null,则创建新伸缩配置时该字段将覆盖原有值,其中值为空时,该字段会被清空。 - 若不指定source_scaling_configuration_id创建伸缩配置,则scaling_configuration_name和instance_config为必选。
112
+
113
+ :param source_scaling_configuration_id: The source_scaling_configuration_id of this CreateScalingConfigOption.
114
+ :type source_scaling_configuration_id: str
115
+ """
116
+ self._source_scaling_configuration_id = source_scaling_configuration_id
117
+
118
+ def to_dict(self):
119
+ result = {}
120
+
121
+ for attr, _ in self.openapi_types.items():
122
+ value = getattr(self, attr)
123
+ if isinstance(value, list):
124
+ result[attr] = list(map(
125
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
126
+ value
127
+ ))
128
+ elif hasattr(value, "to_dict"):
129
+ result[attr] = value.to_dict()
130
+ elif isinstance(value, dict):
131
+ result[attr] = dict(map(
132
+ lambda item: (item[0], item[1].to_dict())
133
+ if hasattr(item[1], "to_dict") else item,
134
+ value.items()
135
+ ))
136
+ else:
137
+ if attr in self.sensitive_list:
138
+ result[attr] = "****"
139
+ else:
140
+ result[attr] = value
141
+
142
+ return result
143
+
144
+ def to_str(self):
145
+ """Returns the string representation of the model"""
146
+ import simplejson as json
147
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
148
+
149
+ def __repr__(self):
150
+ """For `print`"""
151
+ return self.to_str()
152
+
153
+ def __eq__(self, other):
154
+ """Returns true if both objects are equal"""
155
+ if not isinstance(other, CreateScalingConfigOption):
156
+ return False
157
+
158
+ return self.__dict__ == other.__dict__
159
+
160
+ def __ne__(self, other):
161
+ """Returns true if both objects are not equal"""
162
+ return not 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 CreateScalingConfigRequest:
13
7
 
14
-
15
8
  """
16
9
  Attributes:
17
10
  openapi_types (dict): The key is attribute name
@@ -19,11 +12,10 @@ class CreateScalingConfigRequest:
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 = {
26
- 'body': 'CreateScalingConfigRequestBody'
18
+ 'body': 'CreateScalingConfigOption'
27
19
  }
28
20
 
29
21
  attribute_map = {
@@ -31,7 +23,13 @@ class CreateScalingConfigRequest:
31
23
  }
32
24
 
33
25
  def __init__(self, body=None):
34
- """CreateScalingConfigRequest - a model defined in huaweicloud sdk"""
26
+ r"""CreateScalingConfigRequest
27
+
28
+ The model defined in huaweicloud sdk
29
+
30
+ :param body: Body of the CreateScalingConfigRequest
31
+ :type body: :class:`huaweicloudsdkas.v1.CreateScalingConfigOption`
32
+ """
35
33
 
36
34
 
37
35
 
@@ -43,29 +41,26 @@ class CreateScalingConfigRequest:
43
41
 
44
42
  @property
45
43
  def body(self):
46
- """Gets the body of this CreateScalingConfigRequest.
47
-
44
+ r"""Gets the body of this CreateScalingConfigRequest.
48
45
 
49
46
  :return: The body of this CreateScalingConfigRequest.
50
- :rtype: CreateScalingConfigRequestBody
47
+ :rtype: :class:`huaweicloudsdkas.v1.CreateScalingConfigOption`
51
48
  """
52
49
  return self._body
53
50
 
54
51
  @body.setter
55
52
  def body(self, body):
56
- """Sets the body of this CreateScalingConfigRequest.
57
-
53
+ r"""Sets the body of this CreateScalingConfigRequest.
58
54
 
59
55
  :param body: The body of this CreateScalingConfigRequest.
60
- :type: CreateScalingConfigRequestBody
56
+ :type body: :class:`huaweicloudsdkas.v1.CreateScalingConfigOption`
61
57
  """
62
58
  self._body = body
63
59
 
64
60
  def to_dict(self):
65
- """Returns the model properties as a dict"""
66
61
  result = {}
67
62
 
68
- for attr, _ in six.iteritems(self.openapi_types):
63
+ for attr, _ in self.openapi_types.items():
69
64
  value = getattr(self, attr)
70
65
  if isinstance(value, list):
71
66
  result[attr] = list(map(
@@ -90,10 +85,11 @@ class CreateScalingConfigRequest:
90
85
 
91
86
  def to_str(self):
92
87
  """Returns the string representation of the model"""
93
- return pprint.pformat(self.to_dict())
88
+ import simplejson as json
89
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
94
90
 
95
91
  def __repr__(self):
96
- """For `print` and `pprint`"""
92
+ """For `print`"""
97
93
  return self.to_str()
98
94
 
99
95
  def __eq__(self, other):