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 UpdateScalingGroupRequestBody:
13
-
8
+ class UpdateScalingGroupOption:
14
9
 
15
10
  """
16
11
  Attributes:
@@ -19,7 +14,6 @@ class UpdateScalingGroupRequestBody:
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 = {
@@ -30,7 +24,7 @@ class UpdateScalingGroupRequestBody:
30
24
  'cool_down_time': 'int',
31
25
  'available_zones': 'list[str]',
32
26
  'networks': 'list[Networks]',
33
- 'security_groups': 'list[SecurityGroups]',
27
+ 'security_groups': 'list[SecurityGroup]',
34
28
  'lb_listener_id': 'str',
35
29
  'lbaas_listeners': 'list[LbaasListeners]',
36
30
  'health_periodic_audit_method': 'str',
@@ -40,7 +34,11 @@ class UpdateScalingGroupRequestBody:
40
34
  'scaling_configuration_id': 'str',
41
35
  'notifications': 'list[str]',
42
36
  'delete_publicip': 'bool',
43
- 'enterprise_project_id': 'str'
37
+ 'delete_volume': 'bool',
38
+ 'enterprise_project_id': 'str',
39
+ 'multi_az_priority_policy': 'str',
40
+ 'iam_agency_name': 'str',
41
+ 'description': 'str'
44
42
  }
45
43
 
46
44
  attribute_map = {
@@ -61,11 +59,63 @@ class UpdateScalingGroupRequestBody:
61
59
  'scaling_configuration_id': 'scaling_configuration_id',
62
60
  'notifications': 'notifications',
63
61
  'delete_publicip': 'delete_publicip',
64
- 'enterprise_project_id': 'enterprise_project_id'
62
+ 'delete_volume': 'delete_volume',
63
+ 'enterprise_project_id': 'enterprise_project_id',
64
+ 'multi_az_priority_policy': 'multi_az_priority_policy',
65
+ 'iam_agency_name': 'iam_agency_name',
66
+ 'description': 'description'
65
67
  }
66
68
 
67
- def __init__(self, scaling_group_name=None, desire_instance_number=None, min_instance_number=None, max_instance_number=None, cool_down_time=None, available_zones=None, networks=None, security_groups=None, lb_listener_id=None, lbaas_listeners=None, health_periodic_audit_method=None, health_periodic_audit_time=None, health_periodic_audit_grace_period=None, instance_terminate_policy=None, scaling_configuration_id=None, notifications=None, delete_publicip=None, enterprise_project_id=None):
68
- """UpdateScalingGroupRequestBody - a model defined in huaweicloud sdk"""
69
+ def __init__(self, scaling_group_name=None, desire_instance_number=None, min_instance_number=None, max_instance_number=None, cool_down_time=None, available_zones=None, networks=None, security_groups=None, lb_listener_id=None, lbaas_listeners=None, health_periodic_audit_method=None, health_periodic_audit_time=None, health_periodic_audit_grace_period=None, instance_terminate_policy=None, scaling_configuration_id=None, notifications=None, delete_publicip=None, delete_volume=None, enterprise_project_id=None, multi_az_priority_policy=None, iam_agency_name=None, description=None):
70
+ r"""UpdateScalingGroupOption
71
+
72
+ The model defined in huaweicloud sdk
73
+
74
+ :param scaling_group_name: 伸缩组名称(1-64个字符),只能包含中文、字母、数字、下划线、中划线。
75
+ :type scaling_group_name: str
76
+ :param desire_instance_number: 期望实例数量,默认值为最小实例数。最小实例数<=期望实例数<=最大实例数
77
+ :type desire_instance_number: int
78
+ :param min_instance_number: 最小实例数量。
79
+ :type min_instance_number: int
80
+ :param max_instance_number: 最大实例数量,大于等于最小实例数。
81
+ :type max_instance_number: int
82
+ :param cool_down_time: 冷却时间,取值范围0-86400,单位是秒。
83
+ :type cool_down_time: int
84
+ :param available_zones: 可用分区信息。弹性伸缩活动中自动添加的云服务器会被创建在指定的可用区中。如果没有指定可用分区,会由系统自动指定可用分区。详情请参考地区和终端节点。仅当同时满足以下条件时才可以修改:伸缩组中无伸缩活动;实例数为0;伸缩组为非启用状态。
85
+ :type available_zones: list[str]
86
+ :param networks: 网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。使用vpc_id通过查询VPC服务子网列表接口获取,仅当同时满足以下条件时,才可以修改:伸缩组中无伸缩活动;实例数为0;伸缩组为非启用状态。
87
+ :type networks: list[:class:`huaweicloudsdkas.v1.Networks`]
88
+ :param security_groups: 安全组信息,最多支持选择1个安全组。使用vpc_id通过查询VPC服务安全组列表接口获取,详见《虚拟私有云API参考》的“查询安全组列表”。当伸缩配置和伸缩组同时指定安全组时,将以伸缩配置中的安全组为准;当伸缩配置和伸缩组都没有指定安全组时,将使用默认安全组。为了使用灵活性更高,推荐在伸缩配置中指定安全组。仅当同时满足以下条件时,才可以修改:伸缩组无伸缩活动;实例数为0;伸缩组为非启用状态。
89
+ :type security_groups: list[:class:`huaweicloudsdkas.v1.SecurityGroup`]
90
+ :param lb_listener_id: 弹性负载均衡(经典型)监听器ID,最多支持绑定3个负载均衡监听器,多个负载均衡监听器ID以逗号分隔。首先使用vpc_id通过查询ELB服务负载均衡器列表接口获取负载均衡器的ID,详见《弹性负载均衡API参考》的“查询负载均衡器列表”,再使用该ID查询监听器列表获取,详见《弹性负载均衡API参考》的“查询监听器列表”。仅当同时满足以下条件时,才可以修改:伸缩组无伸缩活动;实例数为0;伸缩组为非启用状态。
91
+ :type lb_listener_id: str
92
+ :param lbaas_listeners: 弹性负载均衡器(增强型)信息,最多支持绑定3个负载均衡。该字段与lb_listener_id互斥。
93
+ :type lbaas_listeners: list[:class:`huaweicloudsdkas.v1.LbaasListeners`]
94
+ :param health_periodic_audit_method: 伸缩组实例健康检查方式:ELB_AUDIT和NOVA_AUDIT。当伸缩组参数中设置负载均衡时,默认为ELB_AUDIT;否则默认为NOVA_AUDIT。ELB_AUDIT表示负载均衡健康检查方式,在有监听器的伸缩组中有效。NOVA_AUDIT表示弹性伸缩自带的健康检查方式。
95
+ :type health_periodic_audit_method: str
96
+ :param health_periodic_audit_time: 伸缩组实例健康检查周期(分钟):1、5、15、60、180。若设置为0,可以实现10秒级健康检查。
97
+ :type health_periodic_audit_time: int
98
+ :param health_periodic_audit_grace_period: 伸缩组实例健康状况检查宽限期,取值范围0-86400,单位是秒。当实例加入伸缩组并且进入已启用状态后,健康状况检查宽限期才会启动,伸缩组会等健康状况检查宽限期结束后才检查实例的运行状况。当伸缩组实例健康检查方式为ELB_AUDIT时,该参数生效,若不设置该参数,默认为10分钟。
99
+ :type health_periodic_audit_grace_period: int
100
+ :param instance_terminate_policy: 伸缩组实例移除策略:OLD_CONFIG_OLD_INSTANCE(默认):从根据“较早创建的配置”创建的实例中筛选出较早创建的实例被优先移除。OLD_CONFIG_NEW_INSTANCE:从根据“较早创建的配置”创建的实例中筛选出较新创建的实例被优先移除。OLD_INSTANCE:较早创建的实例被优先移除。NEW_INSTANCE:较新创建的实例将被优先移除。
101
+ :type instance_terminate_policy: str
102
+ :param scaling_configuration_id: 伸缩配置ID,通过查询弹性伸缩配置列表接口获取,详见查询弹性伸缩配置列表
103
+ :type scaling_configuration_id: str
104
+ :param notifications: 通知方式:EMAIL为发送邮件通知。该通知方式即将被废除,建议给弹性伸缩组配置通知功能。详见通知。
105
+ :type notifications: list[str]
106
+ :param delete_publicip: 配置删除云服务器时是否删除云服务器绑定的弹性IP。取值为true或false,默认为false。true:删除云服务器时,会同时删除绑定在云服务器上的弹性IP。当弹性IP的计费方式为包年包月时,不会被删除。false:删除云服务器时,仅解绑定在云服务器上的弹性IP,不删除弹性IP。
107
+ :type delete_publicip: bool
108
+ :param delete_volume: 配置删除云服务器时是否删除云服务器绑定的数据盘。取值为true或false,默认为false。 true:删除云服务器时,会同时删除绑定在云服务器上的数据盘。当数据盘的计费方式为包年包月时,不会被删除。 false:删除务器时,仅云服解绑定在云服务器上的数据盘,不删除数据盘。
109
+ :type delete_volume: bool
110
+ :param enterprise_project_id: 企业项目ID,用于指定伸缩组归属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目,如何获取企业项目ID,请参考[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)。当伸缩组配置企业项目时,由该伸缩组创建的弹性云服务器将归属于该企业项目。否则将使用默认企业项目。说明:关于企业项目特性的详细信息,请参见[企业项目管理](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0131965280.html)。
111
+ :type enterprise_project_id: str
112
+ :param multi_az_priority_policy: 伸缩组扩缩容时目标AZ选择的优先级策略: EQUILIBRIUM_DISTRIBUTE(默认):均衡分布,虚拟机扩缩容时优先保证available_zones列表中各AZ下虚拟机数量均衡,当无法在目标AZ下完成虚拟机扩容时,按照PICK_FIRST原则选择其他可用AZ。 PICK_FIRST:选择优先,虚拟机扩缩容时目标AZ的选择按照available_zones列表的顺序进行优先级排序。
113
+ :type multi_az_priority_policy: str
114
+ :param iam_agency_name: 委托的名称委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
115
+ :type iam_agency_name: str
116
+ :param description: 伸缩组描述信息(0-256个字符)
117
+ :type description: str
118
+ """
69
119
 
70
120
 
71
121
 
@@ -86,7 +136,11 @@ class UpdateScalingGroupRequestBody:
86
136
  self._scaling_configuration_id = None
87
137
  self._notifications = None
88
138
  self._delete_publicip = None
139
+ self._delete_volume = None
89
140
  self._enterprise_project_id = None
141
+ self._multi_az_priority_policy = None
142
+ self._iam_agency_name = None
143
+ self._description = None
90
144
  self.discriminator = None
91
145
 
92
146
  if scaling_group_name is not None:
@@ -123,405 +177,501 @@ class UpdateScalingGroupRequestBody:
123
177
  self.notifications = notifications
124
178
  if delete_publicip is not None:
125
179
  self.delete_publicip = delete_publicip
180
+ if delete_volume is not None:
181
+ self.delete_volume = delete_volume
126
182
  if enterprise_project_id is not None:
127
183
  self.enterprise_project_id = enterprise_project_id
184
+ if multi_az_priority_policy is not None:
185
+ self.multi_az_priority_policy = multi_az_priority_policy
186
+ if iam_agency_name is not None:
187
+ self.iam_agency_name = iam_agency_name
188
+ if description is not None:
189
+ self.description = description
128
190
 
129
191
  @property
130
192
  def scaling_group_name(self):
131
- """Gets the scaling_group_name of this UpdateScalingGroupRequestBody.
193
+ r"""Gets the scaling_group_name of this UpdateScalingGroupOption.
132
194
 
133
195
  伸缩组名称(1-64个字符),只能包含中文、字母、数字、下划线、中划线。
134
196
 
135
- :return: The scaling_group_name of this UpdateScalingGroupRequestBody.
197
+ :return: The scaling_group_name of this UpdateScalingGroupOption.
136
198
  :rtype: str
137
199
  """
138
200
  return self._scaling_group_name
139
201
 
140
202
  @scaling_group_name.setter
141
203
  def scaling_group_name(self, scaling_group_name):
142
- """Sets the scaling_group_name of this UpdateScalingGroupRequestBody.
204
+ r"""Sets the scaling_group_name of this UpdateScalingGroupOption.
143
205
 
144
206
  伸缩组名称(1-64个字符),只能包含中文、字母、数字、下划线、中划线。
145
207
 
146
- :param scaling_group_name: The scaling_group_name of this UpdateScalingGroupRequestBody.
147
- :type: str
208
+ :param scaling_group_name: The scaling_group_name of this UpdateScalingGroupOption.
209
+ :type scaling_group_name: str
148
210
  """
149
211
  self._scaling_group_name = scaling_group_name
150
212
 
151
213
  @property
152
214
  def desire_instance_number(self):
153
- """Gets the desire_instance_number of this UpdateScalingGroupRequestBody.
215
+ r"""Gets the desire_instance_number of this UpdateScalingGroupOption.
154
216
 
155
217
  期望实例数量,默认值为最小实例数。最小实例数<=期望实例数<=最大实例数
156
218
 
157
- :return: The desire_instance_number of this UpdateScalingGroupRequestBody.
219
+ :return: The desire_instance_number of this UpdateScalingGroupOption.
158
220
  :rtype: int
159
221
  """
160
222
  return self._desire_instance_number
161
223
 
162
224
  @desire_instance_number.setter
163
225
  def desire_instance_number(self, desire_instance_number):
164
- """Sets the desire_instance_number of this UpdateScalingGroupRequestBody.
226
+ r"""Sets the desire_instance_number of this UpdateScalingGroupOption.
165
227
 
166
228
  期望实例数量,默认值为最小实例数。最小实例数<=期望实例数<=最大实例数
167
229
 
168
- :param desire_instance_number: The desire_instance_number of this UpdateScalingGroupRequestBody.
169
- :type: int
230
+ :param desire_instance_number: The desire_instance_number of this UpdateScalingGroupOption.
231
+ :type desire_instance_number: int
170
232
  """
171
233
  self._desire_instance_number = desire_instance_number
172
234
 
173
235
  @property
174
236
  def min_instance_number(self):
175
- """Gets the min_instance_number of this UpdateScalingGroupRequestBody.
237
+ r"""Gets the min_instance_number of this UpdateScalingGroupOption.
176
238
 
177
239
  最小实例数量。
178
240
 
179
- :return: The min_instance_number of this UpdateScalingGroupRequestBody.
241
+ :return: The min_instance_number of this UpdateScalingGroupOption.
180
242
  :rtype: int
181
243
  """
182
244
  return self._min_instance_number
183
245
 
184
246
  @min_instance_number.setter
185
247
  def min_instance_number(self, min_instance_number):
186
- """Sets the min_instance_number of this UpdateScalingGroupRequestBody.
248
+ r"""Sets the min_instance_number of this UpdateScalingGroupOption.
187
249
 
188
250
  最小实例数量。
189
251
 
190
- :param min_instance_number: The min_instance_number of this UpdateScalingGroupRequestBody.
191
- :type: int
252
+ :param min_instance_number: The min_instance_number of this UpdateScalingGroupOption.
253
+ :type min_instance_number: int
192
254
  """
193
255
  self._min_instance_number = min_instance_number
194
256
 
195
257
  @property
196
258
  def max_instance_number(self):
197
- """Gets the max_instance_number of this UpdateScalingGroupRequestBody.
259
+ r"""Gets the max_instance_number of this UpdateScalingGroupOption.
198
260
 
199
261
  最大实例数量,大于等于最小实例数。
200
262
 
201
- :return: The max_instance_number of this UpdateScalingGroupRequestBody.
263
+ :return: The max_instance_number of this UpdateScalingGroupOption.
202
264
  :rtype: int
203
265
  """
204
266
  return self._max_instance_number
205
267
 
206
268
  @max_instance_number.setter
207
269
  def max_instance_number(self, max_instance_number):
208
- """Sets the max_instance_number of this UpdateScalingGroupRequestBody.
270
+ r"""Sets the max_instance_number of this UpdateScalingGroupOption.
209
271
 
210
272
  最大实例数量,大于等于最小实例数。
211
273
 
212
- :param max_instance_number: The max_instance_number of this UpdateScalingGroupRequestBody.
213
- :type: int
274
+ :param max_instance_number: The max_instance_number of this UpdateScalingGroupOption.
275
+ :type max_instance_number: int
214
276
  """
215
277
  self._max_instance_number = max_instance_number
216
278
 
217
279
  @property
218
280
  def cool_down_time(self):
219
- """Gets the cool_down_time of this UpdateScalingGroupRequestBody.
281
+ r"""Gets the cool_down_time of this UpdateScalingGroupOption.
220
282
 
221
283
  冷却时间,取值范围0-86400,单位是秒。
222
284
 
223
- :return: The cool_down_time of this UpdateScalingGroupRequestBody.
285
+ :return: The cool_down_time of this UpdateScalingGroupOption.
224
286
  :rtype: int
225
287
  """
226
288
  return self._cool_down_time
227
289
 
228
290
  @cool_down_time.setter
229
291
  def cool_down_time(self, cool_down_time):
230
- """Sets the cool_down_time of this UpdateScalingGroupRequestBody.
292
+ r"""Sets the cool_down_time of this UpdateScalingGroupOption.
231
293
 
232
294
  冷却时间,取值范围0-86400,单位是秒。
233
295
 
234
- :param cool_down_time: The cool_down_time of this UpdateScalingGroupRequestBody.
235
- :type: int
296
+ :param cool_down_time: The cool_down_time of this UpdateScalingGroupOption.
297
+ :type cool_down_time: int
236
298
  """
237
299
  self._cool_down_time = cool_down_time
238
300
 
239
301
  @property
240
302
  def available_zones(self):
241
- """Gets the available_zones of this UpdateScalingGroupRequestBody.
303
+ r"""Gets the available_zones of this UpdateScalingGroupOption.
242
304
 
243
305
  可用分区信息。弹性伸缩活动中自动添加的云服务器会被创建在指定的可用区中。如果没有指定可用分区,会由系统自动指定可用分区。详情请参考地区和终端节点。仅当同时满足以下条件时才可以修改:伸缩组中无伸缩活动;实例数为0;伸缩组为非启用状态。
244
306
 
245
- :return: The available_zones of this UpdateScalingGroupRequestBody.
307
+ :return: The available_zones of this UpdateScalingGroupOption.
246
308
  :rtype: list[str]
247
309
  """
248
310
  return self._available_zones
249
311
 
250
312
  @available_zones.setter
251
313
  def available_zones(self, available_zones):
252
- """Sets the available_zones of this UpdateScalingGroupRequestBody.
314
+ r"""Sets the available_zones of this UpdateScalingGroupOption.
253
315
 
254
316
  可用分区信息。弹性伸缩活动中自动添加的云服务器会被创建在指定的可用区中。如果没有指定可用分区,会由系统自动指定可用分区。详情请参考地区和终端节点。仅当同时满足以下条件时才可以修改:伸缩组中无伸缩活动;实例数为0;伸缩组为非启用状态。
255
317
 
256
- :param available_zones: The available_zones of this UpdateScalingGroupRequestBody.
257
- :type: list[str]
318
+ :param available_zones: The available_zones of this UpdateScalingGroupOption.
319
+ :type available_zones: list[str]
258
320
  """
259
321
  self._available_zones = available_zones
260
322
 
261
323
  @property
262
324
  def networks(self):
263
- """Gets the networks of this UpdateScalingGroupRequestBody.
325
+ r"""Gets the networks of this UpdateScalingGroupOption.
264
326
 
265
327
  网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。使用vpc_id通过查询VPC服务子网列表接口获取,仅当同时满足以下条件时,才可以修改:伸缩组中无伸缩活动;实例数为0;伸缩组为非启用状态。
266
328
 
267
- :return: The networks of this UpdateScalingGroupRequestBody.
268
- :rtype: list[Networks]
329
+ :return: The networks of this UpdateScalingGroupOption.
330
+ :rtype: list[:class:`huaweicloudsdkas.v1.Networks`]
269
331
  """
270
332
  return self._networks
271
333
 
272
334
  @networks.setter
273
335
  def networks(self, networks):
274
- """Sets the networks of this UpdateScalingGroupRequestBody.
336
+ r"""Sets the networks of this UpdateScalingGroupOption.
275
337
 
276
338
  网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。使用vpc_id通过查询VPC服务子网列表接口获取,仅当同时满足以下条件时,才可以修改:伸缩组中无伸缩活动;实例数为0;伸缩组为非启用状态。
277
339
 
278
- :param networks: The networks of this UpdateScalingGroupRequestBody.
279
- :type: list[Networks]
340
+ :param networks: The networks of this UpdateScalingGroupOption.
341
+ :type networks: list[:class:`huaweicloudsdkas.v1.Networks`]
280
342
  """
281
343
  self._networks = networks
282
344
 
283
345
  @property
284
346
  def security_groups(self):
285
- """Gets the security_groups of this UpdateScalingGroupRequestBody.
347
+ r"""Gets the security_groups of this UpdateScalingGroupOption.
286
348
 
287
349
  安全组信息,最多支持选择1个安全组。使用vpc_id通过查询VPC服务安全组列表接口获取,详见《虚拟私有云API参考》的“查询安全组列表”。当伸缩配置和伸缩组同时指定安全组时,将以伸缩配置中的安全组为准;当伸缩配置和伸缩组都没有指定安全组时,将使用默认安全组。为了使用灵活性更高,推荐在伸缩配置中指定安全组。仅当同时满足以下条件时,才可以修改:伸缩组无伸缩活动;实例数为0;伸缩组为非启用状态。
288
350
 
289
- :return: The security_groups of this UpdateScalingGroupRequestBody.
290
- :rtype: list[SecurityGroups]
351
+ :return: The security_groups of this UpdateScalingGroupOption.
352
+ :rtype: list[:class:`huaweicloudsdkas.v1.SecurityGroup`]
291
353
  """
292
354
  return self._security_groups
293
355
 
294
356
  @security_groups.setter
295
357
  def security_groups(self, security_groups):
296
- """Sets the security_groups of this UpdateScalingGroupRequestBody.
358
+ r"""Sets the security_groups of this UpdateScalingGroupOption.
297
359
 
298
360
  安全组信息,最多支持选择1个安全组。使用vpc_id通过查询VPC服务安全组列表接口获取,详见《虚拟私有云API参考》的“查询安全组列表”。当伸缩配置和伸缩组同时指定安全组时,将以伸缩配置中的安全组为准;当伸缩配置和伸缩组都没有指定安全组时,将使用默认安全组。为了使用灵活性更高,推荐在伸缩配置中指定安全组。仅当同时满足以下条件时,才可以修改:伸缩组无伸缩活动;实例数为0;伸缩组为非启用状态。
299
361
 
300
- :param security_groups: The security_groups of this UpdateScalingGroupRequestBody.
301
- :type: list[SecurityGroups]
362
+ :param security_groups: The security_groups of this UpdateScalingGroupOption.
363
+ :type security_groups: list[:class:`huaweicloudsdkas.v1.SecurityGroup`]
302
364
  """
303
365
  self._security_groups = security_groups
304
366
 
305
367
  @property
306
368
  def lb_listener_id(self):
307
- """Gets the lb_listener_id of this UpdateScalingGroupRequestBody.
369
+ r"""Gets the lb_listener_id of this UpdateScalingGroupOption.
308
370
 
309
371
  弹性负载均衡(经典型)监听器ID,最多支持绑定3个负载均衡监听器,多个负载均衡监听器ID以逗号分隔。首先使用vpc_id通过查询ELB服务负载均衡器列表接口获取负载均衡器的ID,详见《弹性负载均衡API参考》的“查询负载均衡器列表”,再使用该ID查询监听器列表获取,详见《弹性负载均衡API参考》的“查询监听器列表”。仅当同时满足以下条件时,才可以修改:伸缩组无伸缩活动;实例数为0;伸缩组为非启用状态。
310
372
 
311
- :return: The lb_listener_id of this UpdateScalingGroupRequestBody.
373
+ :return: The lb_listener_id of this UpdateScalingGroupOption.
312
374
  :rtype: str
313
375
  """
314
376
  return self._lb_listener_id
315
377
 
316
378
  @lb_listener_id.setter
317
379
  def lb_listener_id(self, lb_listener_id):
318
- """Sets the lb_listener_id of this UpdateScalingGroupRequestBody.
380
+ r"""Sets the lb_listener_id of this UpdateScalingGroupOption.
319
381
 
320
382
  弹性负载均衡(经典型)监听器ID,最多支持绑定3个负载均衡监听器,多个负载均衡监听器ID以逗号分隔。首先使用vpc_id通过查询ELB服务负载均衡器列表接口获取负载均衡器的ID,详见《弹性负载均衡API参考》的“查询负载均衡器列表”,再使用该ID查询监听器列表获取,详见《弹性负载均衡API参考》的“查询监听器列表”。仅当同时满足以下条件时,才可以修改:伸缩组无伸缩活动;实例数为0;伸缩组为非启用状态。
321
383
 
322
- :param lb_listener_id: The lb_listener_id of this UpdateScalingGroupRequestBody.
323
- :type: str
384
+ :param lb_listener_id: The lb_listener_id of this UpdateScalingGroupOption.
385
+ :type lb_listener_id: str
324
386
  """
325
387
  self._lb_listener_id = lb_listener_id
326
388
 
327
389
  @property
328
390
  def lbaas_listeners(self):
329
- """Gets the lbaas_listeners of this UpdateScalingGroupRequestBody.
391
+ r"""Gets the lbaas_listeners of this UpdateScalingGroupOption.
330
392
 
331
393
  弹性负载均衡器(增强型)信息,最多支持绑定3个负载均衡。该字段与lb_listener_id互斥。
332
394
 
333
- :return: The lbaas_listeners of this UpdateScalingGroupRequestBody.
334
- :rtype: list[LbaasListeners]
395
+ :return: The lbaas_listeners of this UpdateScalingGroupOption.
396
+ :rtype: list[:class:`huaweicloudsdkas.v1.LbaasListeners`]
335
397
  """
336
398
  return self._lbaas_listeners
337
399
 
338
400
  @lbaas_listeners.setter
339
401
  def lbaas_listeners(self, lbaas_listeners):
340
- """Sets the lbaas_listeners of this UpdateScalingGroupRequestBody.
402
+ r"""Sets the lbaas_listeners of this UpdateScalingGroupOption.
341
403
 
342
404
  弹性负载均衡器(增强型)信息,最多支持绑定3个负载均衡。该字段与lb_listener_id互斥。
343
405
 
344
- :param lbaas_listeners: The lbaas_listeners of this UpdateScalingGroupRequestBody.
345
- :type: list[LbaasListeners]
406
+ :param lbaas_listeners: The lbaas_listeners of this UpdateScalingGroupOption.
407
+ :type lbaas_listeners: list[:class:`huaweicloudsdkas.v1.LbaasListeners`]
346
408
  """
347
409
  self._lbaas_listeners = lbaas_listeners
348
410
 
349
411
  @property
350
412
  def health_periodic_audit_method(self):
351
- """Gets the health_periodic_audit_method of this UpdateScalingGroupRequestBody.
413
+ r"""Gets the health_periodic_audit_method of this UpdateScalingGroupOption.
352
414
 
353
415
  伸缩组实例健康检查方式:ELB_AUDIT和NOVA_AUDIT。当伸缩组参数中设置负载均衡时,默认为ELB_AUDIT;否则默认为NOVA_AUDIT。ELB_AUDIT表示负载均衡健康检查方式,在有监听器的伸缩组中有效。NOVA_AUDIT表示弹性伸缩自带的健康检查方式。
354
416
 
355
- :return: The health_periodic_audit_method of this UpdateScalingGroupRequestBody.
417
+ :return: The health_periodic_audit_method of this UpdateScalingGroupOption.
356
418
  :rtype: str
357
419
  """
358
420
  return self._health_periodic_audit_method
359
421
 
360
422
  @health_periodic_audit_method.setter
361
423
  def health_periodic_audit_method(self, health_periodic_audit_method):
362
- """Sets the health_periodic_audit_method of this UpdateScalingGroupRequestBody.
424
+ r"""Sets the health_periodic_audit_method of this UpdateScalingGroupOption.
363
425
 
364
426
  伸缩组实例健康检查方式:ELB_AUDIT和NOVA_AUDIT。当伸缩组参数中设置负载均衡时,默认为ELB_AUDIT;否则默认为NOVA_AUDIT。ELB_AUDIT表示负载均衡健康检查方式,在有监听器的伸缩组中有效。NOVA_AUDIT表示弹性伸缩自带的健康检查方式。
365
427
 
366
- :param health_periodic_audit_method: The health_periodic_audit_method of this UpdateScalingGroupRequestBody.
367
- :type: str
428
+ :param health_periodic_audit_method: The health_periodic_audit_method of this UpdateScalingGroupOption.
429
+ :type health_periodic_audit_method: str
368
430
  """
369
431
  self._health_periodic_audit_method = health_periodic_audit_method
370
432
 
371
433
  @property
372
434
  def health_periodic_audit_time(self):
373
- """Gets the health_periodic_audit_time of this UpdateScalingGroupRequestBody.
435
+ r"""Gets the health_periodic_audit_time of this UpdateScalingGroupOption.
374
436
 
375
437
  伸缩组实例健康检查周期(分钟):1、5、15、60、180。若设置为0,可以实现10秒级健康检查。
376
438
 
377
- :return: The health_periodic_audit_time of this UpdateScalingGroupRequestBody.
439
+ :return: The health_periodic_audit_time of this UpdateScalingGroupOption.
378
440
  :rtype: int
379
441
  """
380
442
  return self._health_periodic_audit_time
381
443
 
382
444
  @health_periodic_audit_time.setter
383
445
  def health_periodic_audit_time(self, health_periodic_audit_time):
384
- """Sets the health_periodic_audit_time of this UpdateScalingGroupRequestBody.
446
+ r"""Sets the health_periodic_audit_time of this UpdateScalingGroupOption.
385
447
 
386
448
  伸缩组实例健康检查周期(分钟):1、5、15、60、180。若设置为0,可以实现10秒级健康检查。
387
449
 
388
- :param health_periodic_audit_time: The health_periodic_audit_time of this UpdateScalingGroupRequestBody.
389
- :type: int
450
+ :param health_periodic_audit_time: The health_periodic_audit_time of this UpdateScalingGroupOption.
451
+ :type health_periodic_audit_time: int
390
452
  """
391
453
  self._health_periodic_audit_time = health_periodic_audit_time
392
454
 
393
455
  @property
394
456
  def health_periodic_audit_grace_period(self):
395
- """Gets the health_periodic_audit_grace_period of this UpdateScalingGroupRequestBody.
457
+ r"""Gets the health_periodic_audit_grace_period of this UpdateScalingGroupOption.
396
458
 
397
459
  伸缩组实例健康状况检查宽限期,取值范围0-86400,单位是秒。当实例加入伸缩组并且进入已启用状态后,健康状况检查宽限期才会启动,伸缩组会等健康状况检查宽限期结束后才检查实例的运行状况。当伸缩组实例健康检查方式为ELB_AUDIT时,该参数生效,若不设置该参数,默认为10分钟。
398
460
 
399
- :return: The health_periodic_audit_grace_period of this UpdateScalingGroupRequestBody.
461
+ :return: The health_periodic_audit_grace_period of this UpdateScalingGroupOption.
400
462
  :rtype: int
401
463
  """
402
464
  return self._health_periodic_audit_grace_period
403
465
 
404
466
  @health_periodic_audit_grace_period.setter
405
467
  def health_periodic_audit_grace_period(self, health_periodic_audit_grace_period):
406
- """Sets the health_periodic_audit_grace_period of this UpdateScalingGroupRequestBody.
468
+ r"""Sets the health_periodic_audit_grace_period of this UpdateScalingGroupOption.
407
469
 
408
470
  伸缩组实例健康状况检查宽限期,取值范围0-86400,单位是秒。当实例加入伸缩组并且进入已启用状态后,健康状况检查宽限期才会启动,伸缩组会等健康状况检查宽限期结束后才检查实例的运行状况。当伸缩组实例健康检查方式为ELB_AUDIT时,该参数生效,若不设置该参数,默认为10分钟。
409
471
 
410
- :param health_periodic_audit_grace_period: The health_periodic_audit_grace_period of this UpdateScalingGroupRequestBody.
411
- :type: int
472
+ :param health_periodic_audit_grace_period: The health_periodic_audit_grace_period of this UpdateScalingGroupOption.
473
+ :type health_periodic_audit_grace_period: int
412
474
  """
413
475
  self._health_periodic_audit_grace_period = health_periodic_audit_grace_period
414
476
 
415
477
  @property
416
478
  def instance_terminate_policy(self):
417
- """Gets the instance_terminate_policy of this UpdateScalingGroupRequestBody.
479
+ r"""Gets the instance_terminate_policy of this UpdateScalingGroupOption.
418
480
 
419
481
  伸缩组实例移除策略:OLD_CONFIG_OLD_INSTANCE(默认):从根据“较早创建的配置”创建的实例中筛选出较早创建的实例被优先移除。OLD_CONFIG_NEW_INSTANCE:从根据“较早创建的配置”创建的实例中筛选出较新创建的实例被优先移除。OLD_INSTANCE:较早创建的实例被优先移除。NEW_INSTANCE:较新创建的实例将被优先移除。
420
482
 
421
- :return: The instance_terminate_policy of this UpdateScalingGroupRequestBody.
483
+ :return: The instance_terminate_policy of this UpdateScalingGroupOption.
422
484
  :rtype: str
423
485
  """
424
486
  return self._instance_terminate_policy
425
487
 
426
488
  @instance_terminate_policy.setter
427
489
  def instance_terminate_policy(self, instance_terminate_policy):
428
- """Sets the instance_terminate_policy of this UpdateScalingGroupRequestBody.
490
+ r"""Sets the instance_terminate_policy of this UpdateScalingGroupOption.
429
491
 
430
492
  伸缩组实例移除策略:OLD_CONFIG_OLD_INSTANCE(默认):从根据“较早创建的配置”创建的实例中筛选出较早创建的实例被优先移除。OLD_CONFIG_NEW_INSTANCE:从根据“较早创建的配置”创建的实例中筛选出较新创建的实例被优先移除。OLD_INSTANCE:较早创建的实例被优先移除。NEW_INSTANCE:较新创建的实例将被优先移除。
431
493
 
432
- :param instance_terminate_policy: The instance_terminate_policy of this UpdateScalingGroupRequestBody.
433
- :type: str
494
+ :param instance_terminate_policy: The instance_terminate_policy of this UpdateScalingGroupOption.
495
+ :type instance_terminate_policy: str
434
496
  """
435
497
  self._instance_terminate_policy = instance_terminate_policy
436
498
 
437
499
  @property
438
500
  def scaling_configuration_id(self):
439
- """Gets the scaling_configuration_id of this UpdateScalingGroupRequestBody.
501
+ r"""Gets the scaling_configuration_id of this UpdateScalingGroupOption.
440
502
 
441
503
  伸缩配置ID,通过查询弹性伸缩配置列表接口获取,详见查询弹性伸缩配置列表
442
504
 
443
- :return: The scaling_configuration_id of this UpdateScalingGroupRequestBody.
505
+ :return: The scaling_configuration_id of this UpdateScalingGroupOption.
444
506
  :rtype: str
445
507
  """
446
508
  return self._scaling_configuration_id
447
509
 
448
510
  @scaling_configuration_id.setter
449
511
  def scaling_configuration_id(self, scaling_configuration_id):
450
- """Sets the scaling_configuration_id of this UpdateScalingGroupRequestBody.
512
+ r"""Sets the scaling_configuration_id of this UpdateScalingGroupOption.
451
513
 
452
514
  伸缩配置ID,通过查询弹性伸缩配置列表接口获取,详见查询弹性伸缩配置列表
453
515
 
454
- :param scaling_configuration_id: The scaling_configuration_id of this UpdateScalingGroupRequestBody.
455
- :type: str
516
+ :param scaling_configuration_id: The scaling_configuration_id of this UpdateScalingGroupOption.
517
+ :type scaling_configuration_id: str
456
518
  """
457
519
  self._scaling_configuration_id = scaling_configuration_id
458
520
 
459
521
  @property
460
522
  def notifications(self):
461
- """Gets the notifications of this UpdateScalingGroupRequestBody.
523
+ r"""Gets the notifications of this UpdateScalingGroupOption.
462
524
 
463
525
  通知方式:EMAIL为发送邮件通知。该通知方式即将被废除,建议给弹性伸缩组配置通知功能。详见通知。
464
526
 
465
- :return: The notifications of this UpdateScalingGroupRequestBody.
527
+ :return: The notifications of this UpdateScalingGroupOption.
466
528
  :rtype: list[str]
467
529
  """
468
530
  return self._notifications
469
531
 
470
532
  @notifications.setter
471
533
  def notifications(self, notifications):
472
- """Sets the notifications of this UpdateScalingGroupRequestBody.
534
+ r"""Sets the notifications of this UpdateScalingGroupOption.
473
535
 
474
536
  通知方式:EMAIL为发送邮件通知。该通知方式即将被废除,建议给弹性伸缩组配置通知功能。详见通知。
475
537
 
476
- :param notifications: The notifications of this UpdateScalingGroupRequestBody.
477
- :type: list[str]
538
+ :param notifications: The notifications of this UpdateScalingGroupOption.
539
+ :type notifications: list[str]
478
540
  """
479
541
  self._notifications = notifications
480
542
 
481
543
  @property
482
544
  def delete_publicip(self):
483
- """Gets the delete_publicip of this UpdateScalingGroupRequestBody.
545
+ r"""Gets the delete_publicip of this UpdateScalingGroupOption.
484
546
 
485
547
  配置删除云服务器时是否删除云服务器绑定的弹性IP。取值为true或false,默认为false。true:删除云服务器时,会同时删除绑定在云服务器上的弹性IP。当弹性IP的计费方式为包年包月时,不会被删除。false:删除云服务器时,仅解绑定在云服务器上的弹性IP,不删除弹性IP。
486
548
 
487
- :return: The delete_publicip of this UpdateScalingGroupRequestBody.
549
+ :return: The delete_publicip of this UpdateScalingGroupOption.
488
550
  :rtype: bool
489
551
  """
490
552
  return self._delete_publicip
491
553
 
492
554
  @delete_publicip.setter
493
555
  def delete_publicip(self, delete_publicip):
494
- """Sets the delete_publicip of this UpdateScalingGroupRequestBody.
556
+ r"""Sets the delete_publicip of this UpdateScalingGroupOption.
495
557
 
496
558
  配置删除云服务器时是否删除云服务器绑定的弹性IP。取值为true或false,默认为false。true:删除云服务器时,会同时删除绑定在云服务器上的弹性IP。当弹性IP的计费方式为包年包月时,不会被删除。false:删除云服务器时,仅解绑定在云服务器上的弹性IP,不删除弹性IP。
497
559
 
498
- :param delete_publicip: The delete_publicip of this UpdateScalingGroupRequestBody.
499
- :type: bool
560
+ :param delete_publicip: The delete_publicip of this UpdateScalingGroupOption.
561
+ :type delete_publicip: bool
500
562
  """
501
563
  self._delete_publicip = delete_publicip
502
564
 
565
+ @property
566
+ def delete_volume(self):
567
+ r"""Gets the delete_volume of this UpdateScalingGroupOption.
568
+
569
+ 配置删除云服务器时是否删除云服务器绑定的数据盘。取值为true或false,默认为false。 true:删除云服务器时,会同时删除绑定在云服务器上的数据盘。当数据盘的计费方式为包年包月时,不会被删除。 false:删除务器时,仅云服解绑定在云服务器上的数据盘,不删除数据盘。
570
+
571
+ :return: The delete_volume of this UpdateScalingGroupOption.
572
+ :rtype: bool
573
+ """
574
+ return self._delete_volume
575
+
576
+ @delete_volume.setter
577
+ def delete_volume(self, delete_volume):
578
+ r"""Sets the delete_volume of this UpdateScalingGroupOption.
579
+
580
+ 配置删除云服务器时是否删除云服务器绑定的数据盘。取值为true或false,默认为false。 true:删除云服务器时,会同时删除绑定在云服务器上的数据盘。当数据盘的计费方式为包年包月时,不会被删除。 false:删除务器时,仅云服解绑定在云服务器上的数据盘,不删除数据盘。
581
+
582
+ :param delete_volume: The delete_volume of this UpdateScalingGroupOption.
583
+ :type delete_volume: bool
584
+ """
585
+ self._delete_volume = delete_volume
586
+
503
587
  @property
504
588
  def enterprise_project_id(self):
505
- """Gets the enterprise_project_id of this UpdateScalingGroupRequestBody.
589
+ r"""Gets the enterprise_project_id of this UpdateScalingGroupOption.
506
590
 
507
- 企业项目ID,用于指定伸缩组归属的企业项目。当伸缩组配置企业项目时,由该伸缩组创建的弹性云服务器将归属于该企业项目。当没有指定企业项目时,将使用企业项目ID为0的默认项目。
591
+ 企业项目ID,用于指定伸缩组归属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目,如何获取企业项目ID,请参考[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)。当伸缩组配置企业项目时,由该伸缩组创建的弹性云服务器将归属于该企业项目。否则将使用默认企业项目。说明:关于企业项目特性的详细信息,请参见[企业项目管理](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0131965280.html)。
508
592
 
509
- :return: The enterprise_project_id of this UpdateScalingGroupRequestBody.
593
+ :return: The enterprise_project_id of this UpdateScalingGroupOption.
510
594
  :rtype: str
511
595
  """
512
596
  return self._enterprise_project_id
513
597
 
514
598
  @enterprise_project_id.setter
515
599
  def enterprise_project_id(self, enterprise_project_id):
516
- """Sets the enterprise_project_id of this UpdateScalingGroupRequestBody.
600
+ r"""Sets the enterprise_project_id of this UpdateScalingGroupOption.
517
601
 
518
- 企业项目ID,用于指定伸缩组归属的企业项目。当伸缩组配置企业项目时,由该伸缩组创建的弹性云服务器将归属于该企业项目。当没有指定企业项目时,将使用企业项目ID为0的默认项目。
602
+ 企业项目ID,用于指定伸缩组归属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目,如何获取企业项目ID,请参考[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)。当伸缩组配置企业项目时,由该伸缩组创建的弹性云服务器将归属于该企业项目。否则将使用默认企业项目。说明:关于企业项目特性的详细信息,请参见[企业项目管理](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0131965280.html)。
519
603
 
520
- :param enterprise_project_id: The enterprise_project_id of this UpdateScalingGroupRequestBody.
521
- :type: str
604
+ :param enterprise_project_id: The enterprise_project_id of this UpdateScalingGroupOption.
605
+ :type enterprise_project_id: str
522
606
  """
523
607
  self._enterprise_project_id = enterprise_project_id
524
608
 
609
+ @property
610
+ def multi_az_priority_policy(self):
611
+ r"""Gets the multi_az_priority_policy of this UpdateScalingGroupOption.
612
+
613
+ 伸缩组扩缩容时目标AZ选择的优先级策略: EQUILIBRIUM_DISTRIBUTE(默认):均衡分布,虚拟机扩缩容时优先保证available_zones列表中各AZ下虚拟机数量均衡,当无法在目标AZ下完成虚拟机扩容时,按照PICK_FIRST原则选择其他可用AZ。 PICK_FIRST:选择优先,虚拟机扩缩容时目标AZ的选择按照available_zones列表的顺序进行优先级排序。
614
+
615
+ :return: The multi_az_priority_policy of this UpdateScalingGroupOption.
616
+ :rtype: str
617
+ """
618
+ return self._multi_az_priority_policy
619
+
620
+ @multi_az_priority_policy.setter
621
+ def multi_az_priority_policy(self, multi_az_priority_policy):
622
+ r"""Sets the multi_az_priority_policy of this UpdateScalingGroupOption.
623
+
624
+ 伸缩组扩缩容时目标AZ选择的优先级策略: EQUILIBRIUM_DISTRIBUTE(默认):均衡分布,虚拟机扩缩容时优先保证available_zones列表中各AZ下虚拟机数量均衡,当无法在目标AZ下完成虚拟机扩容时,按照PICK_FIRST原则选择其他可用AZ。 PICK_FIRST:选择优先,虚拟机扩缩容时目标AZ的选择按照available_zones列表的顺序进行优先级排序。
625
+
626
+ :param multi_az_priority_policy: The multi_az_priority_policy of this UpdateScalingGroupOption.
627
+ :type multi_az_priority_policy: str
628
+ """
629
+ self._multi_az_priority_policy = multi_az_priority_policy
630
+
631
+ @property
632
+ def iam_agency_name(self):
633
+ r"""Gets the iam_agency_name of this UpdateScalingGroupOption.
634
+
635
+ 委托的名称委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
636
+
637
+ :return: The iam_agency_name of this UpdateScalingGroupOption.
638
+ :rtype: str
639
+ """
640
+ return self._iam_agency_name
641
+
642
+ @iam_agency_name.setter
643
+ def iam_agency_name(self, iam_agency_name):
644
+ r"""Sets the iam_agency_name of this UpdateScalingGroupOption.
645
+
646
+ 委托的名称委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
647
+
648
+ :param iam_agency_name: The iam_agency_name of this UpdateScalingGroupOption.
649
+ :type iam_agency_name: str
650
+ """
651
+ self._iam_agency_name = iam_agency_name
652
+
653
+ @property
654
+ def description(self):
655
+ r"""Gets the description of this UpdateScalingGroupOption.
656
+
657
+ 伸缩组描述信息(0-256个字符)
658
+
659
+ :return: The description of this UpdateScalingGroupOption.
660
+ :rtype: str
661
+ """
662
+ return self._description
663
+
664
+ @description.setter
665
+ def description(self, description):
666
+ r"""Sets the description of this UpdateScalingGroupOption.
667
+
668
+ 伸缩组描述信息(0-256个字符)
669
+
670
+ :param description: The description of this UpdateScalingGroupOption.
671
+ :type description: str
672
+ """
673
+ self._description = description
674
+
525
675
  def to_dict(self):
526
676
  """Returns the model properties as a dict"""
527
677
  result = {}
@@ -551,15 +701,20 @@ class UpdateScalingGroupRequestBody:
551
701
 
552
702
  def to_str(self):
553
703
  """Returns the string representation of the model"""
554
- return pprint.pformat(self.to_dict())
704
+ import simplejson as json
705
+ if six.PY2:
706
+ import sys
707
+ reload(sys)
708
+ sys.setdefaultencoding("utf-8")
709
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
555
710
 
556
711
  def __repr__(self):
557
- """For `print` and `pprint`"""
712
+ """For `print`"""
558
713
  return self.to_str()
559
714
 
560
715
  def __eq__(self, other):
561
716
  """Returns true if both objects are equal"""
562
- if not isinstance(other, UpdateScalingGroupRequestBody):
717
+ if not isinstance(other, UpdateScalingGroupOption):
563
718
  return False
564
719
 
565
720
  return self.__dict__ == other.__dict__