huaweicloudsdkas 3.0.42rc0__py3-none-any.whl → 3.1.160__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of huaweicloudsdkas might be problematic. Click here for more details.

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 +91 -38
  222. {huaweicloudsdkas-3.0.42rc0.dist-info → huaweicloudsdkas-3.1.160.dist-info}/METADATA +9 -9
  223. huaweicloudsdkas-3.1.160.dist-info/RECORD +228 -0
  224. {huaweicloudsdkas-3.0.42rc0.dist-info → huaweicloudsdkas-3.1.160.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.42rc0.dist-info/RECORD +0 -167
  229. {huaweicloudsdkas-3.0.42rc0.dist-info → huaweicloudsdkas-3.1.160.dist-info}/LICENSE +0 -0
  230. {huaweicloudsdkas-3.0.42rc0.dist-info → huaweicloudsdkas-3.1.160.dist-info}/top_level.txt +0 -0
@@ -1,16 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
- import pprint
4
- import re
5
-
6
3
  import six
7
4
 
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
8
6
 
9
7
 
10
-
11
-
12
- class UpdateLifeCycleHookRequestBody:
13
-
8
+ class UpdateLifeCycleHookOption:
14
9
 
15
10
  """
16
11
  Attributes:
@@ -19,7 +14,6 @@ class UpdateLifeCycleHookRequestBody:
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 = {
@@ -39,7 +33,21 @@ class UpdateLifeCycleHookRequestBody:
39
33
  }
40
34
 
41
35
  def __init__(self, lifecycle_hook_type=None, default_result=None, default_timeout=None, notification_topic_urn=None, notification_metadata=None):
42
- """UpdateLifeCycleHookRequestBody - a model defined in huaweicloud sdk"""
36
+ r"""UpdateLifeCycleHookOption
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param lifecycle_hook_type: 生命周期挂钩类型。INSTANCE_TERMINATING。INSTANCE_LAUNCHING。INSTANCE_TERMINATING 类型的挂钩负责在实例终止时将实例挂起,INSTANCE_LAUNCHING 类型的挂钩则是在实例启动时将实例挂起。
41
+ :type lifecycle_hook_type: str
42
+ :param default_result: 生命周期挂钩默认回调操作。默认情况下,到达超时时间后执行的操作。ABANDON;CONTINUE;如果实例正在启动,则 CONTINUE 表示用户自定义操作已成功,可将实例投入使用。否则,ABANDON 表示用户自定义操作未成功,终止实例,伸缩活动置为失败,重新创建新实例。如果实例正在终止,则 ABANDON 和 CONTINUE 都允许终止实例。不过,ABANDON 将停止其他生命周期挂钩,而 CONTINUE 将允许完成其他生命周期挂钩。该字段缺省时默认为 ABANDON。
43
+ :type default_result: str
44
+ :param default_timeout: 生命周期挂钩超时时间,取值范围60-86400,默认为3600,单位是秒。默认情况下,实例保持等待状态的时间。您可以延长超时时间,也可以在超时时间结束前进行 CONTINUE 或 ABANDON 操作。
45
+ :type default_timeout: int
46
+ :param notification_topic_urn: SMN 服务中 Topic 的唯一的资源标识。为生命周期挂钩定义一个通知目标,当实例被生命周期挂钩挂起时向该通知目标发送消息。该消息包含实例的基本信息、用户自定义通知消息,以及可用于控制生命周期操作的令牌信息。
47
+ :type notification_topic_urn: str
48
+ :param notification_metadata: 自定义通知消息,长度不超过256位,不能包含字符< > & ' ( )当配置了通知目标时,可向其发送用户自定义的通知内容。
49
+ :type notification_metadata: str
50
+ """
43
51
 
44
52
 
45
53
 
@@ -63,111 +71,111 @@ class UpdateLifeCycleHookRequestBody:
63
71
 
64
72
  @property
65
73
  def lifecycle_hook_type(self):
66
- """Gets the lifecycle_hook_type of this UpdateLifeCycleHookRequestBody.
74
+ r"""Gets the lifecycle_hook_type of this UpdateLifeCycleHookOption.
67
75
 
68
76
  生命周期挂钩类型。INSTANCE_TERMINATING。INSTANCE_LAUNCHING。INSTANCE_TERMINATING 类型的挂钩负责在实例终止时将实例挂起,INSTANCE_LAUNCHING 类型的挂钩则是在实例启动时将实例挂起。
69
77
 
70
- :return: The lifecycle_hook_type of this UpdateLifeCycleHookRequestBody.
78
+ :return: The lifecycle_hook_type of this UpdateLifeCycleHookOption.
71
79
  :rtype: str
72
80
  """
73
81
  return self._lifecycle_hook_type
74
82
 
75
83
  @lifecycle_hook_type.setter
76
84
  def lifecycle_hook_type(self, lifecycle_hook_type):
77
- """Sets the lifecycle_hook_type of this UpdateLifeCycleHookRequestBody.
85
+ r"""Sets the lifecycle_hook_type of this UpdateLifeCycleHookOption.
78
86
 
79
87
  生命周期挂钩类型。INSTANCE_TERMINATING。INSTANCE_LAUNCHING。INSTANCE_TERMINATING 类型的挂钩负责在实例终止时将实例挂起,INSTANCE_LAUNCHING 类型的挂钩则是在实例启动时将实例挂起。
80
88
 
81
- :param lifecycle_hook_type: The lifecycle_hook_type of this UpdateLifeCycleHookRequestBody.
82
- :type: str
89
+ :param lifecycle_hook_type: The lifecycle_hook_type of this UpdateLifeCycleHookOption.
90
+ :type lifecycle_hook_type: str
83
91
  """
84
92
  self._lifecycle_hook_type = lifecycle_hook_type
85
93
 
86
94
  @property
87
95
  def default_result(self):
88
- """Gets the default_result of this UpdateLifeCycleHookRequestBody.
96
+ r"""Gets the default_result of this UpdateLifeCycleHookOption.
89
97
 
90
98
  生命周期挂钩默认回调操作。默认情况下,到达超时时间后执行的操作。ABANDON;CONTINUE;如果实例正在启动,则 CONTINUE 表示用户自定义操作已成功,可将实例投入使用。否则,ABANDON 表示用户自定义操作未成功,终止实例,伸缩活动置为失败,重新创建新实例。如果实例正在终止,则 ABANDON 和 CONTINUE 都允许终止实例。不过,ABANDON 将停止其他生命周期挂钩,而 CONTINUE 将允许完成其他生命周期挂钩。该字段缺省时默认为 ABANDON。
91
99
 
92
- :return: The default_result of this UpdateLifeCycleHookRequestBody.
100
+ :return: The default_result of this UpdateLifeCycleHookOption.
93
101
  :rtype: str
94
102
  """
95
103
  return self._default_result
96
104
 
97
105
  @default_result.setter
98
106
  def default_result(self, default_result):
99
- """Sets the default_result of this UpdateLifeCycleHookRequestBody.
107
+ r"""Sets the default_result of this UpdateLifeCycleHookOption.
100
108
 
101
109
  生命周期挂钩默认回调操作。默认情况下,到达超时时间后执行的操作。ABANDON;CONTINUE;如果实例正在启动,则 CONTINUE 表示用户自定义操作已成功,可将实例投入使用。否则,ABANDON 表示用户自定义操作未成功,终止实例,伸缩活动置为失败,重新创建新实例。如果实例正在终止,则 ABANDON 和 CONTINUE 都允许终止实例。不过,ABANDON 将停止其他生命周期挂钩,而 CONTINUE 将允许完成其他生命周期挂钩。该字段缺省时默认为 ABANDON。
102
110
 
103
- :param default_result: The default_result of this UpdateLifeCycleHookRequestBody.
104
- :type: str
111
+ :param default_result: The default_result of this UpdateLifeCycleHookOption.
112
+ :type default_result: str
105
113
  """
106
114
  self._default_result = default_result
107
115
 
108
116
  @property
109
117
  def default_timeout(self):
110
- """Gets the default_timeout of this UpdateLifeCycleHookRequestBody.
118
+ r"""Gets the default_timeout of this UpdateLifeCycleHookOption.
111
119
 
112
- 生命周期挂钩超时时间,取值范围300-86400,默认为3600,单位是秒。默认情况下,实例保持等待状态的时间。您可以延长超时时间,也可以在超时时间结束前进行 CONTINUE 或 ABANDON 操作。
120
+ 生命周期挂钩超时时间,取值范围60-86400,默认为3600,单位是秒。默认情况下,实例保持等待状态的时间。您可以延长超时时间,也可以在超时时间结束前进行 CONTINUE 或 ABANDON 操作。
113
121
 
114
- :return: The default_timeout of this UpdateLifeCycleHookRequestBody.
122
+ :return: The default_timeout of this UpdateLifeCycleHookOption.
115
123
  :rtype: int
116
124
  """
117
125
  return self._default_timeout
118
126
 
119
127
  @default_timeout.setter
120
128
  def default_timeout(self, default_timeout):
121
- """Sets the default_timeout of this UpdateLifeCycleHookRequestBody.
129
+ r"""Sets the default_timeout of this UpdateLifeCycleHookOption.
122
130
 
123
- 生命周期挂钩超时时间,取值范围300-86400,默认为3600,单位是秒。默认情况下,实例保持等待状态的时间。您可以延长超时时间,也可以在超时时间结束前进行 CONTINUE 或 ABANDON 操作。
131
+ 生命周期挂钩超时时间,取值范围60-86400,默认为3600,单位是秒。默认情况下,实例保持等待状态的时间。您可以延长超时时间,也可以在超时时间结束前进行 CONTINUE 或 ABANDON 操作。
124
132
 
125
- :param default_timeout: The default_timeout of this UpdateLifeCycleHookRequestBody.
126
- :type: int
133
+ :param default_timeout: The default_timeout of this UpdateLifeCycleHookOption.
134
+ :type default_timeout: int
127
135
  """
128
136
  self._default_timeout = default_timeout
129
137
 
130
138
  @property
131
139
  def notification_topic_urn(self):
132
- """Gets the notification_topic_urn of this UpdateLifeCycleHookRequestBody.
140
+ r"""Gets the notification_topic_urn of this UpdateLifeCycleHookOption.
133
141
 
134
142
  SMN 服务中 Topic 的唯一的资源标识。为生命周期挂钩定义一个通知目标,当实例被生命周期挂钩挂起时向该通知目标发送消息。该消息包含实例的基本信息、用户自定义通知消息,以及可用于控制生命周期操作的令牌信息。
135
143
 
136
- :return: The notification_topic_urn of this UpdateLifeCycleHookRequestBody.
144
+ :return: The notification_topic_urn of this UpdateLifeCycleHookOption.
137
145
  :rtype: str
138
146
  """
139
147
  return self._notification_topic_urn
140
148
 
141
149
  @notification_topic_urn.setter
142
150
  def notification_topic_urn(self, notification_topic_urn):
143
- """Sets the notification_topic_urn of this UpdateLifeCycleHookRequestBody.
151
+ r"""Sets the notification_topic_urn of this UpdateLifeCycleHookOption.
144
152
 
145
153
  SMN 服务中 Topic 的唯一的资源标识。为生命周期挂钩定义一个通知目标,当实例被生命周期挂钩挂起时向该通知目标发送消息。该消息包含实例的基本信息、用户自定义通知消息,以及可用于控制生命周期操作的令牌信息。
146
154
 
147
- :param notification_topic_urn: The notification_topic_urn of this UpdateLifeCycleHookRequestBody.
148
- :type: str
155
+ :param notification_topic_urn: The notification_topic_urn of this UpdateLifeCycleHookOption.
156
+ :type notification_topic_urn: str
149
157
  """
150
158
  self._notification_topic_urn = notification_topic_urn
151
159
 
152
160
  @property
153
161
  def notification_metadata(self):
154
- """Gets the notification_metadata of this UpdateLifeCycleHookRequestBody.
162
+ r"""Gets the notification_metadata of this UpdateLifeCycleHookOption.
155
163
 
156
164
  自定义通知消息,长度不超过256位,不能包含字符< > & ' ( )当配置了通知目标时,可向其发送用户自定义的通知内容。
157
165
 
158
- :return: The notification_metadata of this UpdateLifeCycleHookRequestBody.
166
+ :return: The notification_metadata of this UpdateLifeCycleHookOption.
159
167
  :rtype: str
160
168
  """
161
169
  return self._notification_metadata
162
170
 
163
171
  @notification_metadata.setter
164
172
  def notification_metadata(self, notification_metadata):
165
- """Sets the notification_metadata of this UpdateLifeCycleHookRequestBody.
173
+ r"""Sets the notification_metadata of this UpdateLifeCycleHookOption.
166
174
 
167
175
  自定义通知消息,长度不超过256位,不能包含字符< > & ' ( )当配置了通知目标时,可向其发送用户自定义的通知内容。
168
176
 
169
- :param notification_metadata: The notification_metadata of this UpdateLifeCycleHookRequestBody.
170
- :type: str
177
+ :param notification_metadata: The notification_metadata of this UpdateLifeCycleHookOption.
178
+ :type notification_metadata: str
171
179
  """
172
180
  self._notification_metadata = notification_metadata
173
181
 
@@ -200,15 +208,20 @@ class UpdateLifeCycleHookRequestBody:
200
208
 
201
209
  def to_str(self):
202
210
  """Returns the string representation of the model"""
203
- return pprint.pformat(self.to_dict())
211
+ import simplejson as json
212
+ if six.PY2:
213
+ import sys
214
+ reload(sys)
215
+ sys.setdefaultencoding("utf-8")
216
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
204
217
 
205
218
  def __repr__(self):
206
- """For `print` and `pprint`"""
219
+ """For `print`"""
207
220
  return self.to_str()
208
221
 
209
222
  def __eq__(self, other):
210
223
  """Returns true if both objects are equal"""
211
- if not isinstance(other, UpdateLifeCycleHookRequestBody):
224
+ if not isinstance(other, UpdateLifeCycleHookOption):
212
225
  return False
213
226
 
214
227
  return self.__dict__ == other.__dict__
@@ -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 UpdateLifeCycleHookRequest:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,13 +14,12 @@ class UpdateLifeCycleHookRequest:
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 = {
26
20
  'scaling_group_id': 'str',
27
21
  'lifecycle_hook_name': 'str',
28
- 'body': 'UpdateLifeCycleHookRequestBody'
22
+ 'body': 'UpdateLifeCycleHookOption'
29
23
  }
30
24
 
31
25
  attribute_map = {
@@ -35,7 +29,17 @@ class UpdateLifeCycleHookRequest:
35
29
  }
36
30
 
37
31
  def __init__(self, scaling_group_id=None, lifecycle_hook_name=None, body=None):
38
- """UpdateLifeCycleHookRequest - a model defined in huaweicloud sdk"""
32
+ r"""UpdateLifeCycleHookRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param scaling_group_id: 伸缩组标识。
37
+ :type scaling_group_id: str
38
+ :param lifecycle_hook_name: 生命周期挂钩标识。
39
+ :type lifecycle_hook_name: str
40
+ :param body: Body of the UpdateLifeCycleHookRequest
41
+ :type body: :class:`huaweicloudsdkas.v1.UpdateLifeCycleHookOption`
42
+ """
39
43
 
40
44
 
41
45
 
@@ -51,8 +55,9 @@ class UpdateLifeCycleHookRequest:
51
55
 
52
56
  @property
53
57
  def scaling_group_id(self):
54
- """Gets the scaling_group_id of this UpdateLifeCycleHookRequest.
58
+ r"""Gets the scaling_group_id of this UpdateLifeCycleHookRequest.
55
59
 
60
+ 伸缩组标识。
56
61
 
57
62
  :return: The scaling_group_id of this UpdateLifeCycleHookRequest.
58
63
  :rtype: str
@@ -61,18 +66,20 @@ class UpdateLifeCycleHookRequest:
61
66
 
62
67
  @scaling_group_id.setter
63
68
  def scaling_group_id(self, scaling_group_id):
64
- """Sets the scaling_group_id of this UpdateLifeCycleHookRequest.
69
+ r"""Sets the scaling_group_id of this UpdateLifeCycleHookRequest.
65
70
 
71
+ 伸缩组标识。
66
72
 
67
73
  :param scaling_group_id: The scaling_group_id of this UpdateLifeCycleHookRequest.
68
- :type: str
74
+ :type scaling_group_id: str
69
75
  """
70
76
  self._scaling_group_id = scaling_group_id
71
77
 
72
78
  @property
73
79
  def lifecycle_hook_name(self):
74
- """Gets the lifecycle_hook_name of this UpdateLifeCycleHookRequest.
80
+ r"""Gets the lifecycle_hook_name of this UpdateLifeCycleHookRequest.
75
81
 
82
+ 生命周期挂钩标识。
76
83
 
77
84
  :return: The lifecycle_hook_name of this UpdateLifeCycleHookRequest.
78
85
  :rtype: str
@@ -81,31 +88,30 @@ class UpdateLifeCycleHookRequest:
81
88
 
82
89
  @lifecycle_hook_name.setter
83
90
  def lifecycle_hook_name(self, lifecycle_hook_name):
84
- """Sets the lifecycle_hook_name of this UpdateLifeCycleHookRequest.
91
+ r"""Sets the lifecycle_hook_name of this UpdateLifeCycleHookRequest.
85
92
 
93
+ 生命周期挂钩标识。
86
94
 
87
95
  :param lifecycle_hook_name: The lifecycle_hook_name of this UpdateLifeCycleHookRequest.
88
- :type: str
96
+ :type lifecycle_hook_name: str
89
97
  """
90
98
  self._lifecycle_hook_name = lifecycle_hook_name
91
99
 
92
100
  @property
93
101
  def body(self):
94
- """Gets the body of this UpdateLifeCycleHookRequest.
95
-
102
+ r"""Gets the body of this UpdateLifeCycleHookRequest.
96
103
 
97
104
  :return: The body of this UpdateLifeCycleHookRequest.
98
- :rtype: UpdateLifeCycleHookRequestBody
105
+ :rtype: :class:`huaweicloudsdkas.v1.UpdateLifeCycleHookOption`
99
106
  """
100
107
  return self._body
101
108
 
102
109
  @body.setter
103
110
  def body(self, body):
104
- """Sets the body of this UpdateLifeCycleHookRequest.
105
-
111
+ r"""Sets the body of this UpdateLifeCycleHookRequest.
106
112
 
107
113
  :param body: The body of this UpdateLifeCycleHookRequest.
108
- :type: UpdateLifeCycleHookRequestBody
114
+ :type body: :class:`huaweicloudsdkas.v1.UpdateLifeCycleHookOption`
109
115
  """
110
116
  self._body = body
111
117
 
@@ -138,10 +144,15 @@ class UpdateLifeCycleHookRequest:
138
144
 
139
145
  def to_str(self):
140
146
  """Returns the string representation of the model"""
141
- return pprint.pformat(self.to_dict())
147
+ import simplejson as json
148
+ if six.PY2:
149
+ import sys
150
+ reload(sys)
151
+ sys.setdefaultencoding("utf-8")
152
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
142
153
 
143
154
  def __repr__(self):
144
- """For `print` and `pprint`"""
155
+ """For `print`"""
145
156
  return self.to_str()
146
157
 
147
158
  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 UpdateLifeCycleHookResponse(SdkResponse):
13
10
 
14
-
15
11
  """
16
12
  Attributes:
17
13
  openapi_types (dict): The key is attribute name
@@ -19,7 +15,6 @@ class UpdateLifeCycleHookResponse(SdkResponse):
19
15
  attribute_map (dict): The key is attribute name
20
16
  and the value is json key in definition.
21
17
  """
22
-
23
18
  sensitive_list = []
24
19
 
25
20
  openapi_types = {
@@ -30,7 +25,7 @@ class UpdateLifeCycleHookResponse(SdkResponse):
30
25
  'notification_topic_urn': 'str',
31
26
  'notification_topic_name': 'str',
32
27
  'notification_metadata': 'str',
33
- 'create_time': 'datetime'
28
+ 'create_time': 'str'
34
29
  }
35
30
 
36
31
  attribute_map = {
@@ -45,9 +40,29 @@ class UpdateLifeCycleHookResponse(SdkResponse):
45
40
  }
46
41
 
47
42
  def __init__(self, lifecycle_hook_name=None, lifecycle_hook_type=None, default_result=None, default_timeout=None, notification_topic_urn=None, notification_topic_name=None, notification_metadata=None, create_time=None):
48
- """UpdateLifeCycleHookResponse - a model defined in huaweicloud sdk"""
43
+ r"""UpdateLifeCycleHookResponse
44
+
45
+ The model defined in huaweicloud sdk
46
+
47
+ :param lifecycle_hook_name: 生命周期挂钩名称。
48
+ :type lifecycle_hook_name: str
49
+ :param lifecycle_hook_type: 生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
50
+ :type lifecycle_hook_type: str
51
+ :param default_result: 生命周期挂钩默认回调操作。ABANDON;CONTINUE
52
+ :type default_result: str
53
+ :param default_timeout: 生命周期挂钩超时时间,单位秒。
54
+ :type default_timeout: int
55
+ :param notification_topic_urn: SMN服务中Topic的唯一的资源标识。
56
+ :type notification_topic_urn: str
57
+ :param notification_topic_name: SMN服务中Topic的资源名称。
58
+ :type notification_topic_name: str
59
+ :param notification_metadata: 自定义通知消息。
60
+ :type notification_metadata: str
61
+ :param create_time: 生命周期挂钩创建时间,遵循UTC时间。
62
+ :type create_time: str
63
+ """
49
64
 
50
- super().__init__()
65
+ super(UpdateLifeCycleHookResponse, self).__init__()
51
66
 
52
67
  self._lifecycle_hook_name = None
53
68
  self._lifecycle_hook_type = None
@@ -78,7 +93,7 @@ class UpdateLifeCycleHookResponse(SdkResponse):
78
93
 
79
94
  @property
80
95
  def lifecycle_hook_name(self):
81
- """Gets the lifecycle_hook_name of this UpdateLifeCycleHookResponse.
96
+ r"""Gets the lifecycle_hook_name of this UpdateLifeCycleHookResponse.
82
97
 
83
98
  生命周期挂钩名称。
84
99
 
@@ -89,18 +104,18 @@ class UpdateLifeCycleHookResponse(SdkResponse):
89
104
 
90
105
  @lifecycle_hook_name.setter
91
106
  def lifecycle_hook_name(self, lifecycle_hook_name):
92
- """Sets the lifecycle_hook_name of this UpdateLifeCycleHookResponse.
107
+ r"""Sets the lifecycle_hook_name of this UpdateLifeCycleHookResponse.
93
108
 
94
109
  生命周期挂钩名称。
95
110
 
96
111
  :param lifecycle_hook_name: The lifecycle_hook_name of this UpdateLifeCycleHookResponse.
97
- :type: str
112
+ :type lifecycle_hook_name: str
98
113
  """
99
114
  self._lifecycle_hook_name = lifecycle_hook_name
100
115
 
101
116
  @property
102
117
  def lifecycle_hook_type(self):
103
- """Gets the lifecycle_hook_type of this UpdateLifeCycleHookResponse.
118
+ r"""Gets the lifecycle_hook_type of this UpdateLifeCycleHookResponse.
104
119
 
105
120
  生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
106
121
 
@@ -111,18 +126,18 @@ class UpdateLifeCycleHookResponse(SdkResponse):
111
126
 
112
127
  @lifecycle_hook_type.setter
113
128
  def lifecycle_hook_type(self, lifecycle_hook_type):
114
- """Sets the lifecycle_hook_type of this UpdateLifeCycleHookResponse.
129
+ r"""Sets the lifecycle_hook_type of this UpdateLifeCycleHookResponse.
115
130
 
116
131
  生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
117
132
 
118
133
  :param lifecycle_hook_type: The lifecycle_hook_type of this UpdateLifeCycleHookResponse.
119
- :type: str
134
+ :type lifecycle_hook_type: str
120
135
  """
121
136
  self._lifecycle_hook_type = lifecycle_hook_type
122
137
 
123
138
  @property
124
139
  def default_result(self):
125
- """Gets the default_result of this UpdateLifeCycleHookResponse.
140
+ r"""Gets the default_result of this UpdateLifeCycleHookResponse.
126
141
 
127
142
  生命周期挂钩默认回调操作。ABANDON;CONTINUE
128
143
 
@@ -133,18 +148,18 @@ class UpdateLifeCycleHookResponse(SdkResponse):
133
148
 
134
149
  @default_result.setter
135
150
  def default_result(self, default_result):
136
- """Sets the default_result of this UpdateLifeCycleHookResponse.
151
+ r"""Sets the default_result of this UpdateLifeCycleHookResponse.
137
152
 
138
153
  生命周期挂钩默认回调操作。ABANDON;CONTINUE
139
154
 
140
155
  :param default_result: The default_result of this UpdateLifeCycleHookResponse.
141
- :type: str
156
+ :type default_result: str
142
157
  """
143
158
  self._default_result = default_result
144
159
 
145
160
  @property
146
161
  def default_timeout(self):
147
- """Gets the default_timeout of this UpdateLifeCycleHookResponse.
162
+ r"""Gets the default_timeout of this UpdateLifeCycleHookResponse.
148
163
 
149
164
  生命周期挂钩超时时间,单位秒。
150
165
 
@@ -155,18 +170,18 @@ class UpdateLifeCycleHookResponse(SdkResponse):
155
170
 
156
171
  @default_timeout.setter
157
172
  def default_timeout(self, default_timeout):
158
- """Sets the default_timeout of this UpdateLifeCycleHookResponse.
173
+ r"""Sets the default_timeout of this UpdateLifeCycleHookResponse.
159
174
 
160
175
  生命周期挂钩超时时间,单位秒。
161
176
 
162
177
  :param default_timeout: The default_timeout of this UpdateLifeCycleHookResponse.
163
- :type: int
178
+ :type default_timeout: int
164
179
  """
165
180
  self._default_timeout = default_timeout
166
181
 
167
182
  @property
168
183
  def notification_topic_urn(self):
169
- """Gets the notification_topic_urn of this UpdateLifeCycleHookResponse.
184
+ r"""Gets the notification_topic_urn of this UpdateLifeCycleHookResponse.
170
185
 
171
186
  SMN服务中Topic的唯一的资源标识。
172
187
 
@@ -177,18 +192,18 @@ class UpdateLifeCycleHookResponse(SdkResponse):
177
192
 
178
193
  @notification_topic_urn.setter
179
194
  def notification_topic_urn(self, notification_topic_urn):
180
- """Sets the notification_topic_urn of this UpdateLifeCycleHookResponse.
195
+ r"""Sets the notification_topic_urn of this UpdateLifeCycleHookResponse.
181
196
 
182
197
  SMN服务中Topic的唯一的资源标识。
183
198
 
184
199
  :param notification_topic_urn: The notification_topic_urn of this UpdateLifeCycleHookResponse.
185
- :type: str
200
+ :type notification_topic_urn: str
186
201
  """
187
202
  self._notification_topic_urn = notification_topic_urn
188
203
 
189
204
  @property
190
205
  def notification_topic_name(self):
191
- """Gets the notification_topic_name of this UpdateLifeCycleHookResponse.
206
+ r"""Gets the notification_topic_name of this UpdateLifeCycleHookResponse.
192
207
 
193
208
  SMN服务中Topic的资源名称。
194
209
 
@@ -199,18 +214,18 @@ class UpdateLifeCycleHookResponse(SdkResponse):
199
214
 
200
215
  @notification_topic_name.setter
201
216
  def notification_topic_name(self, notification_topic_name):
202
- """Sets the notification_topic_name of this UpdateLifeCycleHookResponse.
217
+ r"""Sets the notification_topic_name of this UpdateLifeCycleHookResponse.
203
218
 
204
219
  SMN服务中Topic的资源名称。
205
220
 
206
221
  :param notification_topic_name: The notification_topic_name of this UpdateLifeCycleHookResponse.
207
- :type: str
222
+ :type notification_topic_name: str
208
223
  """
209
224
  self._notification_topic_name = notification_topic_name
210
225
 
211
226
  @property
212
227
  def notification_metadata(self):
213
- """Gets the notification_metadata of this UpdateLifeCycleHookResponse.
228
+ r"""Gets the notification_metadata of this UpdateLifeCycleHookResponse.
214
229
 
215
230
  自定义通知消息。
216
231
 
@@ -221,34 +236,34 @@ class UpdateLifeCycleHookResponse(SdkResponse):
221
236
 
222
237
  @notification_metadata.setter
223
238
  def notification_metadata(self, notification_metadata):
224
- """Sets the notification_metadata of this UpdateLifeCycleHookResponse.
239
+ r"""Sets the notification_metadata of this UpdateLifeCycleHookResponse.
225
240
 
226
241
  自定义通知消息。
227
242
 
228
243
  :param notification_metadata: The notification_metadata of this UpdateLifeCycleHookResponse.
229
- :type: str
244
+ :type notification_metadata: str
230
245
  """
231
246
  self._notification_metadata = notification_metadata
232
247
 
233
248
  @property
234
249
  def create_time(self):
235
- """Gets the create_time of this UpdateLifeCycleHookResponse.
250
+ r"""Gets the create_time of this UpdateLifeCycleHookResponse.
236
251
 
237
252
  生命周期挂钩创建时间,遵循UTC时间。
238
253
 
239
254
  :return: The create_time of this UpdateLifeCycleHookResponse.
240
- :rtype: datetime
255
+ :rtype: str
241
256
  """
242
257
  return self._create_time
243
258
 
244
259
  @create_time.setter
245
260
  def create_time(self, create_time):
246
- """Sets the create_time of this UpdateLifeCycleHookResponse.
261
+ r"""Sets the create_time of this UpdateLifeCycleHookResponse.
247
262
 
248
263
  生命周期挂钩创建时间,遵循UTC时间。
249
264
 
250
265
  :param create_time: The create_time of this UpdateLifeCycleHookResponse.
251
- :type: datetime
266
+ :type create_time: str
252
267
  """
253
268
  self._create_time = create_time
254
269
 
@@ -281,10 +296,15 @@ class UpdateLifeCycleHookResponse(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
+ if six.PY2:
301
+ import sys
302
+ reload(sys)
303
+ sys.setdefaultencoding("utf-8")
304
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
285
305
 
286
306
  def __repr__(self):
287
- """For `print` and `pprint`"""
307
+ """For `print`"""
288
308
  return self.to_str()
289
309
 
290
310
  def __eq__(self, other):