huaweicloudsdkas 3.0.43rc0__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.43rc0.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.43rc0.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.43rc0.dist-info/RECORD +0 -167
  229. {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.160.dist-info}/LICENSE +0 -0
  230. {huaweicloudsdkas-3.0.43rc0.dist-info → huaweicloudsdkas-3.1.160.dist-info}/top_level.txt +0 -0
@@ -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 ScalingPolicyExecuteLogList:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,25 +14,24 @@ class ScalingPolicyExecuteLogList:
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
  'status': 'str',
27
21
  'failed_reason': 'str',
28
22
  'execute_type': 'str',
29
- 'execute_time': 'datetime',
23
+ 'execute_time': 'str',
30
24
  'id': 'str',
31
- 'project_id': 'str',
25
+ 'tenant_id': 'str',
32
26
  'scaling_policy_id': 'str',
33
27
  'scaling_resource_type': 'str',
34
28
  'scaling_resource_id': 'str',
35
29
  'old_value': 'str',
36
30
  'desire_value': 'str',
37
- 'limit_value': 'int',
31
+ 'limit_value': 'str',
38
32
  'type': 'str',
39
33
  'job_records': 'list[JobRecords]',
40
- 'meta_data': 'MetaData'
34
+ 'meta_data': 'EipMetaData'
41
35
  }
42
36
 
43
37
  attribute_map = {
@@ -46,7 +40,7 @@ class ScalingPolicyExecuteLogList:
46
40
  'execute_type': 'execute_type',
47
41
  'execute_time': 'execute_time',
48
42
  'id': 'id',
49
- 'project_id': 'project_id',
43
+ 'tenant_id': 'tenant_id',
50
44
  'scaling_policy_id': 'scaling_policy_id',
51
45
  'scaling_resource_type': 'scaling_resource_type',
52
46
  'scaling_resource_id': 'scaling_resource_id',
@@ -58,8 +52,42 @@ class ScalingPolicyExecuteLogList:
58
52
  'meta_data': 'meta_data'
59
53
  }
60
54
 
61
- def __init__(self, status=None, failed_reason=None, execute_type=None, execute_time=None, id=None, project_id=None, scaling_policy_id=None, scaling_resource_type=None, scaling_resource_id=None, old_value=None, desire_value=None, limit_value=None, type=None, job_records=None, meta_data=None):
62
- """ScalingPolicyExecuteLogList - a model defined in huaweicloud sdk"""
55
+ def __init__(self, status=None, failed_reason=None, execute_type=None, execute_time=None, id=None, tenant_id=None, scaling_policy_id=None, scaling_resource_type=None, scaling_resource_id=None, old_value=None, desire_value=None, limit_value=None, type=None, job_records=None, meta_data=None):
56
+ r"""ScalingPolicyExecuteLogList
57
+
58
+ The model defined in huaweicloud sdk
59
+
60
+ :param status: 策略执行状态:SUCCESS:成功。FAIL:失败。EXECUTING:执行中
61
+ :type status: str
62
+ :param failed_reason: 策略执行失败原因。
63
+ :type failed_reason: str
64
+ :param execute_type: 策略执行类型:SCHEDULE:自动触发(定时)。RECURRENCE:自动触发(周期)。ALARM:自动警告(告警)。MANUAL:手动触发
65
+ :type execute_type: str
66
+ :param execute_time: 策略执行时间,遵循UTC时间。
67
+ :type execute_time: str
68
+ :param id: 策略执行日志ID。
69
+ :type id: str
70
+ :param tenant_id: 租户id。
71
+ :type tenant_id: str
72
+ :param scaling_policy_id: 伸缩策略ID。
73
+ :type scaling_policy_id: str
74
+ :param scaling_resource_type: 伸缩资源类型:伸缩组:SCALING_GROUP 带宽:BANDWIDTH
75
+ :type scaling_resource_type: str
76
+ :param scaling_resource_id: 伸缩资源ID。
77
+ :type scaling_resource_id: str
78
+ :param old_value: 伸缩原始值。
79
+ :type old_value: str
80
+ :param desire_value: 伸缩目标值。
81
+ :type desire_value: str
82
+ :param limit_value: 操作限制。当scaling_resource_type为BANDWIDTH时,且operation不为SET时,limit_value生效,单位为Mbit/s。此时,当operation为ADD时,limit_value表示最高带宽限制;当operation为REDUCE时,limit_value表示最低带宽限制。
83
+ :type limit_value: str
84
+ :param type: 策略执行任务类型。ADD:添加。REMOVE:减少。SET:设置为
85
+ :type type: str
86
+ :param job_records: 策略执行动作包含的具体任务
87
+ :type job_records: list[:class:`huaweicloudsdkas.v1.JobRecords`]
88
+ :param meta_data:
89
+ :type meta_data: :class:`huaweicloudsdkas.v1.EipMetaData`
90
+ """
63
91
 
64
92
 
65
93
 
@@ -68,7 +96,7 @@ class ScalingPolicyExecuteLogList:
68
96
  self._execute_type = None
69
97
  self._execute_time = None
70
98
  self._id = None
71
- self._project_id = None
99
+ self._tenant_id = None
72
100
  self._scaling_policy_id = None
73
101
  self._scaling_resource_type = None
74
102
  self._scaling_resource_id = None
@@ -90,8 +118,8 @@ class ScalingPolicyExecuteLogList:
90
118
  self.execute_time = execute_time
91
119
  if id is not None:
92
120
  self.id = id
93
- if project_id is not None:
94
- self.project_id = project_id
121
+ if tenant_id is not None:
122
+ self.tenant_id = tenant_id
95
123
  if scaling_policy_id is not None:
96
124
  self.scaling_policy_id = scaling_policy_id
97
125
  if scaling_resource_type is not None:
@@ -113,7 +141,7 @@ class ScalingPolicyExecuteLogList:
113
141
 
114
142
  @property
115
143
  def status(self):
116
- """Gets the status of this ScalingPolicyExecuteLogList.
144
+ r"""Gets the status of this ScalingPolicyExecuteLogList.
117
145
 
118
146
  策略执行状态:SUCCESS:成功。FAIL:失败。EXECUTING:执行中
119
147
 
@@ -124,18 +152,18 @@ class ScalingPolicyExecuteLogList:
124
152
 
125
153
  @status.setter
126
154
  def status(self, status):
127
- """Sets the status of this ScalingPolicyExecuteLogList.
155
+ r"""Sets the status of this ScalingPolicyExecuteLogList.
128
156
 
129
157
  策略执行状态:SUCCESS:成功。FAIL:失败。EXECUTING:执行中
130
158
 
131
159
  :param status: The status of this ScalingPolicyExecuteLogList.
132
- :type: str
160
+ :type status: str
133
161
  """
134
162
  self._status = status
135
163
 
136
164
  @property
137
165
  def failed_reason(self):
138
- """Gets the failed_reason of this ScalingPolicyExecuteLogList.
166
+ r"""Gets the failed_reason of this ScalingPolicyExecuteLogList.
139
167
 
140
168
  策略执行失败原因。
141
169
 
@@ -146,18 +174,18 @@ class ScalingPolicyExecuteLogList:
146
174
 
147
175
  @failed_reason.setter
148
176
  def failed_reason(self, failed_reason):
149
- """Sets the failed_reason of this ScalingPolicyExecuteLogList.
177
+ r"""Sets the failed_reason of this ScalingPolicyExecuteLogList.
150
178
 
151
179
  策略执行失败原因。
152
180
 
153
181
  :param failed_reason: The failed_reason of this ScalingPolicyExecuteLogList.
154
- :type: str
182
+ :type failed_reason: str
155
183
  """
156
184
  self._failed_reason = failed_reason
157
185
 
158
186
  @property
159
187
  def execute_type(self):
160
- """Gets the execute_type of this ScalingPolicyExecuteLogList.
188
+ r"""Gets the execute_type of this ScalingPolicyExecuteLogList.
161
189
 
162
190
  策略执行类型:SCHEDULE:自动触发(定时)。RECURRENCE:自动触发(周期)。ALARM:自动警告(告警)。MANUAL:手动触发
163
191
 
@@ -168,40 +196,40 @@ class ScalingPolicyExecuteLogList:
168
196
 
169
197
  @execute_type.setter
170
198
  def execute_type(self, execute_type):
171
- """Sets the execute_type of this ScalingPolicyExecuteLogList.
199
+ r"""Sets the execute_type of this ScalingPolicyExecuteLogList.
172
200
 
173
201
  策略执行类型:SCHEDULE:自动触发(定时)。RECURRENCE:自动触发(周期)。ALARM:自动警告(告警)。MANUAL:手动触发
174
202
 
175
203
  :param execute_type: The execute_type of this ScalingPolicyExecuteLogList.
176
- :type: str
204
+ :type execute_type: str
177
205
  """
178
206
  self._execute_type = execute_type
179
207
 
180
208
  @property
181
209
  def execute_time(self):
182
- """Gets the execute_time of this ScalingPolicyExecuteLogList.
210
+ r"""Gets the execute_time of this ScalingPolicyExecuteLogList.
183
211
 
184
212
  策略执行时间,遵循UTC时间。
185
213
 
186
214
  :return: The execute_time of this ScalingPolicyExecuteLogList.
187
- :rtype: datetime
215
+ :rtype: str
188
216
  """
189
217
  return self._execute_time
190
218
 
191
219
  @execute_time.setter
192
220
  def execute_time(self, execute_time):
193
- """Sets the execute_time of this ScalingPolicyExecuteLogList.
221
+ r"""Sets the execute_time of this ScalingPolicyExecuteLogList.
194
222
 
195
223
  策略执行时间,遵循UTC时间。
196
224
 
197
225
  :param execute_time: The execute_time of this ScalingPolicyExecuteLogList.
198
- :type: datetime
226
+ :type execute_time: str
199
227
  """
200
228
  self._execute_time = execute_time
201
229
 
202
230
  @property
203
231
  def id(self):
204
- """Gets the id of this ScalingPolicyExecuteLogList.
232
+ r"""Gets the id of this ScalingPolicyExecuteLogList.
205
233
 
206
234
  策略执行日志ID。
207
235
 
@@ -212,40 +240,40 @@ class ScalingPolicyExecuteLogList:
212
240
 
213
241
  @id.setter
214
242
  def id(self, id):
215
- """Sets the id of this ScalingPolicyExecuteLogList.
243
+ r"""Sets the id of this ScalingPolicyExecuteLogList.
216
244
 
217
245
  策略执行日志ID。
218
246
 
219
247
  :param id: The id of this ScalingPolicyExecuteLogList.
220
- :type: str
248
+ :type id: str
221
249
  """
222
250
  self._id = id
223
251
 
224
252
  @property
225
- def project_id(self):
226
- """Gets the project_id of this ScalingPolicyExecuteLogList.
253
+ def tenant_id(self):
254
+ r"""Gets the tenant_id of this ScalingPolicyExecuteLogList.
227
255
 
228
256
  租户id。
229
257
 
230
- :return: The project_id of this ScalingPolicyExecuteLogList.
258
+ :return: The tenant_id of this ScalingPolicyExecuteLogList.
231
259
  :rtype: str
232
260
  """
233
- return self._project_id
261
+ return self._tenant_id
234
262
 
235
- @project_id.setter
236
- def project_id(self, project_id):
237
- """Sets the project_id of this ScalingPolicyExecuteLogList.
263
+ @tenant_id.setter
264
+ def tenant_id(self, tenant_id):
265
+ r"""Sets the tenant_id of this ScalingPolicyExecuteLogList.
238
266
 
239
267
  租户id。
240
268
 
241
- :param project_id: The project_id of this ScalingPolicyExecuteLogList.
242
- :type: str
269
+ :param tenant_id: The tenant_id of this ScalingPolicyExecuteLogList.
270
+ :type tenant_id: str
243
271
  """
244
- self._project_id = project_id
272
+ self._tenant_id = tenant_id
245
273
 
246
274
  @property
247
275
  def scaling_policy_id(self):
248
- """Gets the scaling_policy_id of this ScalingPolicyExecuteLogList.
276
+ r"""Gets the scaling_policy_id of this ScalingPolicyExecuteLogList.
249
277
 
250
278
  伸缩策略ID。
251
279
 
@@ -256,18 +284,18 @@ class ScalingPolicyExecuteLogList:
256
284
 
257
285
  @scaling_policy_id.setter
258
286
  def scaling_policy_id(self, scaling_policy_id):
259
- """Sets the scaling_policy_id of this ScalingPolicyExecuteLogList.
287
+ r"""Sets the scaling_policy_id of this ScalingPolicyExecuteLogList.
260
288
 
261
289
  伸缩策略ID。
262
290
 
263
291
  :param scaling_policy_id: The scaling_policy_id of this ScalingPolicyExecuteLogList.
264
- :type: str
292
+ :type scaling_policy_id: str
265
293
  """
266
294
  self._scaling_policy_id = scaling_policy_id
267
295
 
268
296
  @property
269
297
  def scaling_resource_type(self):
270
- """Gets the scaling_resource_type of this ScalingPolicyExecuteLogList.
298
+ r"""Gets the scaling_resource_type of this ScalingPolicyExecuteLogList.
271
299
 
272
300
  伸缩资源类型:伸缩组:SCALING_GROUP 带宽:BANDWIDTH
273
301
 
@@ -278,18 +306,18 @@ class ScalingPolicyExecuteLogList:
278
306
 
279
307
  @scaling_resource_type.setter
280
308
  def scaling_resource_type(self, scaling_resource_type):
281
- """Sets the scaling_resource_type of this ScalingPolicyExecuteLogList.
309
+ r"""Sets the scaling_resource_type of this ScalingPolicyExecuteLogList.
282
310
 
283
311
  伸缩资源类型:伸缩组:SCALING_GROUP 带宽:BANDWIDTH
284
312
 
285
313
  :param scaling_resource_type: The scaling_resource_type of this ScalingPolicyExecuteLogList.
286
- :type: str
314
+ :type scaling_resource_type: str
287
315
  """
288
316
  self._scaling_resource_type = scaling_resource_type
289
317
 
290
318
  @property
291
319
  def scaling_resource_id(self):
292
- """Gets the scaling_resource_id of this ScalingPolicyExecuteLogList.
320
+ r"""Gets the scaling_resource_id of this ScalingPolicyExecuteLogList.
293
321
 
294
322
  伸缩资源ID。
295
323
 
@@ -300,18 +328,18 @@ class ScalingPolicyExecuteLogList:
300
328
 
301
329
  @scaling_resource_id.setter
302
330
  def scaling_resource_id(self, scaling_resource_id):
303
- """Sets the scaling_resource_id of this ScalingPolicyExecuteLogList.
331
+ r"""Sets the scaling_resource_id of this ScalingPolicyExecuteLogList.
304
332
 
305
333
  伸缩资源ID。
306
334
 
307
335
  :param scaling_resource_id: The scaling_resource_id of this ScalingPolicyExecuteLogList.
308
- :type: str
336
+ :type scaling_resource_id: str
309
337
  """
310
338
  self._scaling_resource_id = scaling_resource_id
311
339
 
312
340
  @property
313
341
  def old_value(self):
314
- """Gets the old_value of this ScalingPolicyExecuteLogList.
342
+ r"""Gets the old_value of this ScalingPolicyExecuteLogList.
315
343
 
316
344
  伸缩原始值。
317
345
 
@@ -322,18 +350,18 @@ class ScalingPolicyExecuteLogList:
322
350
 
323
351
  @old_value.setter
324
352
  def old_value(self, old_value):
325
- """Sets the old_value of this ScalingPolicyExecuteLogList.
353
+ r"""Sets the old_value of this ScalingPolicyExecuteLogList.
326
354
 
327
355
  伸缩原始值。
328
356
 
329
357
  :param old_value: The old_value of this ScalingPolicyExecuteLogList.
330
- :type: str
358
+ :type old_value: str
331
359
  """
332
360
  self._old_value = old_value
333
361
 
334
362
  @property
335
363
  def desire_value(self):
336
- """Gets the desire_value of this ScalingPolicyExecuteLogList.
364
+ r"""Gets the desire_value of this ScalingPolicyExecuteLogList.
337
365
 
338
366
  伸缩目标值。
339
367
 
@@ -344,40 +372,40 @@ class ScalingPolicyExecuteLogList:
344
372
 
345
373
  @desire_value.setter
346
374
  def desire_value(self, desire_value):
347
- """Sets the desire_value of this ScalingPolicyExecuteLogList.
375
+ r"""Sets the desire_value of this ScalingPolicyExecuteLogList.
348
376
 
349
377
  伸缩目标值。
350
378
 
351
379
  :param desire_value: The desire_value of this ScalingPolicyExecuteLogList.
352
- :type: str
380
+ :type desire_value: str
353
381
  """
354
382
  self._desire_value = desire_value
355
383
 
356
384
  @property
357
385
  def limit_value(self):
358
- """Gets the limit_value of this ScalingPolicyExecuteLogList.
386
+ r"""Gets the limit_value of this ScalingPolicyExecuteLogList.
359
387
 
360
388
  操作限制。当scaling_resource_type为BANDWIDTH时,且operation不为SET时,limit_value生效,单位为Mbit/s。此时,当operation为ADD时,limit_value表示最高带宽限制;当operation为REDUCE时,limit_value表示最低带宽限制。
361
389
 
362
390
  :return: The limit_value of this ScalingPolicyExecuteLogList.
363
- :rtype: int
391
+ :rtype: str
364
392
  """
365
393
  return self._limit_value
366
394
 
367
395
  @limit_value.setter
368
396
  def limit_value(self, limit_value):
369
- """Sets the limit_value of this ScalingPolicyExecuteLogList.
397
+ r"""Sets the limit_value of this ScalingPolicyExecuteLogList.
370
398
 
371
399
  操作限制。当scaling_resource_type为BANDWIDTH时,且operation不为SET时,limit_value生效,单位为Mbit/s。此时,当operation为ADD时,limit_value表示最高带宽限制;当operation为REDUCE时,limit_value表示最低带宽限制。
372
400
 
373
401
  :param limit_value: The limit_value of this ScalingPolicyExecuteLogList.
374
- :type: int
402
+ :type limit_value: str
375
403
  """
376
404
  self._limit_value = limit_value
377
405
 
378
406
  @property
379
407
  def type(self):
380
- """Gets the type of this ScalingPolicyExecuteLogList.
408
+ r"""Gets the type of this ScalingPolicyExecuteLogList.
381
409
 
382
410
  策略执行任务类型。ADD:添加。REMOVE:减少。SET:设置为
383
411
 
@@ -388,54 +416,52 @@ class ScalingPolicyExecuteLogList:
388
416
 
389
417
  @type.setter
390
418
  def type(self, type):
391
- """Sets the type of this ScalingPolicyExecuteLogList.
419
+ r"""Sets the type of this ScalingPolicyExecuteLogList.
392
420
 
393
421
  策略执行任务类型。ADD:添加。REMOVE:减少。SET:设置为
394
422
 
395
423
  :param type: The type of this ScalingPolicyExecuteLogList.
396
- :type: str
424
+ :type type: str
397
425
  """
398
426
  self._type = type
399
427
 
400
428
  @property
401
429
  def job_records(self):
402
- """Gets the job_records of this ScalingPolicyExecuteLogList.
430
+ r"""Gets the job_records of this ScalingPolicyExecuteLogList.
403
431
 
404
432
  策略执行动作包含的具体任务
405
433
 
406
434
  :return: The job_records of this ScalingPolicyExecuteLogList.
407
- :rtype: list[JobRecords]
435
+ :rtype: list[:class:`huaweicloudsdkas.v1.JobRecords`]
408
436
  """
409
437
  return self._job_records
410
438
 
411
439
  @job_records.setter
412
440
  def job_records(self, job_records):
413
- """Sets the job_records of this ScalingPolicyExecuteLogList.
441
+ r"""Sets the job_records of this ScalingPolicyExecuteLogList.
414
442
 
415
443
  策略执行动作包含的具体任务
416
444
 
417
445
  :param job_records: The job_records of this ScalingPolicyExecuteLogList.
418
- :type: list[JobRecords]
446
+ :type job_records: list[:class:`huaweicloudsdkas.v1.JobRecords`]
419
447
  """
420
448
  self._job_records = job_records
421
449
 
422
450
  @property
423
451
  def meta_data(self):
424
- """Gets the meta_data of this ScalingPolicyExecuteLogList.
425
-
452
+ r"""Gets the meta_data of this ScalingPolicyExecuteLogList.
426
453
 
427
454
  :return: The meta_data of this ScalingPolicyExecuteLogList.
428
- :rtype: MetaData
455
+ :rtype: :class:`huaweicloudsdkas.v1.EipMetaData`
429
456
  """
430
457
  return self._meta_data
431
458
 
432
459
  @meta_data.setter
433
460
  def meta_data(self, meta_data):
434
- """Sets the meta_data of this ScalingPolicyExecuteLogList.
435
-
461
+ r"""Sets the meta_data of this ScalingPolicyExecuteLogList.
436
462
 
437
463
  :param meta_data: The meta_data of this ScalingPolicyExecuteLogList.
438
- :type: MetaData
464
+ :type meta_data: :class:`huaweicloudsdkas.v1.EipMetaData`
439
465
  """
440
466
  self._meta_data = meta_data
441
467
 
@@ -468,10 +494,15 @@ class ScalingPolicyExecuteLogList:
468
494
 
469
495
  def to_str(self):
470
496
  """Returns the string representation of the model"""
471
- return pprint.pformat(self.to_dict())
497
+ import simplejson as json
498
+ if six.PY2:
499
+ import sys
500
+ reload(sys)
501
+ sys.setdefaultencoding("utf-8")
502
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
472
503
 
473
504
  def __repr__(self):
474
- """For `print` and `pprint`"""
505
+ """For `print`"""
475
506
  return self.to_str()
476
507
 
477
508
  def __eq__(self, other):
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ScalingPolicyV2MetaData:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'metadata_bandwidth_share_type': 'str',
21
+ 'metadata_eip_id': 'str',
22
+ 'metadata_eip_address': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'metadata_bandwidth_share_type': 'metadata_bandwidth_share_type',
27
+ 'metadata_eip_id': 'metadata_eip_id',
28
+ 'metadata_eip_address': 'metadata_eip_address'
29
+ }
30
+
31
+ def __init__(self, metadata_bandwidth_share_type=None, metadata_eip_id=None, metadata_eip_address=None):
32
+ r"""ScalingPolicyV2MetaData
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param metadata_bandwidth_share_type: 伸缩带宽策略中带宽对应的共享类型
37
+ :type metadata_bandwidth_share_type: str
38
+ :param metadata_eip_id: 伸缩带宽策略中带宽对应的EIP的ID
39
+ :type metadata_eip_id: str
40
+ :param metadata_eip_address: 伸缩带宽策略中带宽对应的EIP地址
41
+ :type metadata_eip_address: str
42
+ """
43
+
44
+
45
+
46
+ self._metadata_bandwidth_share_type = None
47
+ self._metadata_eip_id = None
48
+ self._metadata_eip_address = None
49
+ self.discriminator = None
50
+
51
+ if metadata_bandwidth_share_type is not None:
52
+ self.metadata_bandwidth_share_type = metadata_bandwidth_share_type
53
+ if metadata_eip_id is not None:
54
+ self.metadata_eip_id = metadata_eip_id
55
+ if metadata_eip_address is not None:
56
+ self.metadata_eip_address = metadata_eip_address
57
+
58
+ @property
59
+ def metadata_bandwidth_share_type(self):
60
+ r"""Gets the metadata_bandwidth_share_type of this ScalingPolicyV2MetaData.
61
+
62
+ 伸缩带宽策略中带宽对应的共享类型
63
+
64
+ :return: The metadata_bandwidth_share_type of this ScalingPolicyV2MetaData.
65
+ :rtype: str
66
+ """
67
+ return self._metadata_bandwidth_share_type
68
+
69
+ @metadata_bandwidth_share_type.setter
70
+ def metadata_bandwidth_share_type(self, metadata_bandwidth_share_type):
71
+ r"""Sets the metadata_bandwidth_share_type of this ScalingPolicyV2MetaData.
72
+
73
+ 伸缩带宽策略中带宽对应的共享类型
74
+
75
+ :param metadata_bandwidth_share_type: The metadata_bandwidth_share_type of this ScalingPolicyV2MetaData.
76
+ :type metadata_bandwidth_share_type: str
77
+ """
78
+ self._metadata_bandwidth_share_type = metadata_bandwidth_share_type
79
+
80
+ @property
81
+ def metadata_eip_id(self):
82
+ r"""Gets the metadata_eip_id of this ScalingPolicyV2MetaData.
83
+
84
+ 伸缩带宽策略中带宽对应的EIP的ID
85
+
86
+ :return: The metadata_eip_id of this ScalingPolicyV2MetaData.
87
+ :rtype: str
88
+ """
89
+ return self._metadata_eip_id
90
+
91
+ @metadata_eip_id.setter
92
+ def metadata_eip_id(self, metadata_eip_id):
93
+ r"""Sets the metadata_eip_id of this ScalingPolicyV2MetaData.
94
+
95
+ 伸缩带宽策略中带宽对应的EIP的ID
96
+
97
+ :param metadata_eip_id: The metadata_eip_id of this ScalingPolicyV2MetaData.
98
+ :type metadata_eip_id: str
99
+ """
100
+ self._metadata_eip_id = metadata_eip_id
101
+
102
+ @property
103
+ def metadata_eip_address(self):
104
+ r"""Gets the metadata_eip_address of this ScalingPolicyV2MetaData.
105
+
106
+ 伸缩带宽策略中带宽对应的EIP地址
107
+
108
+ :return: The metadata_eip_address of this ScalingPolicyV2MetaData.
109
+ :rtype: str
110
+ """
111
+ return self._metadata_eip_address
112
+
113
+ @metadata_eip_address.setter
114
+ def metadata_eip_address(self, metadata_eip_address):
115
+ r"""Sets the metadata_eip_address of this ScalingPolicyV2MetaData.
116
+
117
+ 伸缩带宽策略中带宽对应的EIP地址
118
+
119
+ :param metadata_eip_address: The metadata_eip_address of this ScalingPolicyV2MetaData.
120
+ :type metadata_eip_address: str
121
+ """
122
+ self._metadata_eip_address = metadata_eip_address
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, ScalingPolicyV2MetaData):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other