huaweicloudsdkelb 3.1.85__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. huaweicloudsdkelb/v2/elb_async_client.py +2 -0
  2. huaweicloudsdkelb/v2/elb_client.py +2 -0
  3. huaweicloudsdkelb/v2/model/list_members_request.py +32 -3
  4. huaweicloudsdkelb/v2/region/elb_region.py +19 -1
  5. huaweicloudsdkelb/v3/__init__.py +29 -0
  6. huaweicloudsdkelb/v3/elb_async_client.py +175 -34
  7. huaweicloudsdkelb/v3/elb_client.py +175 -34
  8. huaweicloudsdkelb/v3/model/__init__.py +29 -0
  9. huaweicloudsdkelb/v3/model/autoscaling_ref.py +6 -6
  10. huaweicloudsdkelb/v3/model/availability_zone.py +15 -15
  11. huaweicloudsdkelb/v3/model/bandwidth_ref.py +3 -3
  12. huaweicloudsdkelb/v3/model/batch_add_available_zones_request.py +3 -3
  13. huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
  14. huaweicloudsdkelb/v3/model/batch_create_members_option.py +12 -12
  15. huaweicloudsdkelb/v3/model/batch_create_members_request.py +3 -3
  16. huaweicloudsdkelb/v3/model/batch_delete_ip_list_option.py +3 -3
  17. huaweicloudsdkelb/v3/model/batch_delete_ip_list_request.py +3 -3
  18. huaweicloudsdkelb/v3/model/batch_delete_ip_list_response.py +3 -3
  19. huaweicloudsdkelb/v3/model/batch_delete_members_request.py +3 -3
  20. huaweicloudsdkelb/v3/model/batch_member.py +85 -27
  21. huaweicloudsdkelb/v3/model/batch_update_member.py +85 -27
  22. huaweicloudsdkelb/v3/model/batch_update_members_option.py +9 -9
  23. huaweicloudsdkelb/v3/model/batch_update_members_request.py +3 -3
  24. huaweicloudsdkelb/v3/model/batch_update_policies_priority_request_body.py +3 -3
  25. huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +6 -6
  26. huaweicloudsdkelb/v3/model/certificate_info.py +93 -6
  27. huaweicloudsdkelb/v3/model/change_loadbalancer_charge_mode_request_body.py +3 -3
  28. huaweicloudsdkelb/v3/model/connection_drain.py +6 -6
  29. huaweicloudsdkelb/v3/model/count_preoccupy_ip_num_request.py +6 -6
  30. huaweicloudsdkelb/v3/model/create_certificate_option.py +5 -4
  31. huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request.py +111 -0
  32. huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request_body.py +114 -0
  33. huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_response.py +145 -0
  34. huaweicloudsdkelb/v3/model/create_fixted_response_config.py +87 -12
  35. huaweicloudsdkelb/v3/model/create_health_monitor_option.py +18 -18
  36. huaweicloudsdkelb/v3/model/create_insert_header_config.py +170 -0
  37. huaweicloudsdkelb/v3/model/create_insert_headers_config.py +114 -0
  38. huaweicloudsdkelb/v3/model/create_ip_group_ip_option.py +6 -6
  39. huaweicloudsdkelb/v3/model/create_ip_group_option.py +15 -15
  40. huaweicloudsdkelb/v3/model/create_ip_group_response.py +3 -3
  41. huaweicloudsdkelb/v3/model/create_l7_policy_option.py +91 -37
  42. huaweicloudsdkelb/v3/model/create_l7_policy_response.py +3 -3
  43. huaweicloudsdkelb/v3/model/create_l7_policy_rule_option.py +21 -21
  44. huaweicloudsdkelb/v3/model/create_l7_rule_request.py +3 -3
  45. huaweicloudsdkelb/v3/model/create_l7_rule_response.py +3 -3
  46. huaweicloudsdkelb/v3/model/create_listener_ip_group_option.py +9 -9
  47. huaweicloudsdkelb/v3/model/create_listener_option.py +84 -84
  48. huaweicloudsdkelb/v3/model/create_listener_quic_config_option.py +6 -6
  49. huaweicloudsdkelb/v3/model/create_listener_response.py +3 -3
  50. huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +18 -18
  51. huaweicloudsdkelb/v3/model/create_load_balancer_option.py +76 -105
  52. huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +12 -12
  53. huaweicloudsdkelb/v3/model/create_load_balancer_response.py +9 -9
  54. huaweicloudsdkelb/v3/model/create_loadbalancer_autoscaling_option.py +6 -6
  55. huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +9 -9
  56. huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +12 -12
  57. huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +33 -33
  58. huaweicloudsdkelb/v3/model/create_member_option.py +21 -21
  59. huaweicloudsdkelb/v3/model/create_member_request.py +3 -3
  60. huaweicloudsdkelb/v3/model/create_member_response.py +3 -3
  61. huaweicloudsdkelb/v3/model/create_pool_option.py +102 -48
  62. huaweicloudsdkelb/v3/model/create_pool_response.py +3 -3
  63. huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +9 -9
  64. huaweicloudsdkelb/v3/model/create_pool_slow_start_option.py +6 -6
  65. huaweicloudsdkelb/v3/model/create_redirect_pools_config.py +143 -0
  66. huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +81 -6
  67. huaweicloudsdkelb/v3/model/create_redirect_pools_sticky_session_config.py +144 -0
  68. huaweicloudsdkelb/v3/model/create_redirect_url_config.py +71 -21
  69. huaweicloudsdkelb/v3/model/create_remove_header_config.py +114 -0
  70. huaweicloudsdkelb/v3/model/create_remove_headers_config.py +114 -0
  71. huaweicloudsdkelb/v3/model/create_rewrite_url_config.py +9 -9
  72. huaweicloudsdkelb/v3/model/create_rule_condition.py +6 -6
  73. huaweicloudsdkelb/v3/model/create_rule_option.py +24 -24
  74. huaweicloudsdkelb/v3/model/create_traffic_limit_config.py +173 -0
  75. huaweicloudsdkelb/v3/model/delete_ip_group_request.py +3 -3
  76. huaweicloudsdkelb/v3/model/delete_l7_policy_request.py +3 -3
  77. huaweicloudsdkelb/v3/model/delete_master_slave_pool_request.py +3 -3
  78. huaweicloudsdkelb/v3/model/delete_member_request.py +6 -6
  79. huaweicloudsdkelb/v3/model/delete_pool_request.py +3 -3
  80. huaweicloudsdkelb/v3/model/eip_info.py +9 -9
  81. huaweicloudsdkelb/v3/model/fixted_response_config.py +87 -12
  82. huaweicloudsdkelb/v3/model/flavor.py +79 -21
  83. huaweicloudsdkelb/v3/model/flavor_info.py +18 -18
  84. huaweicloudsdkelb/v3/model/global_eip_info.py +9 -9
  85. huaweicloudsdkelb/v3/model/health_monitor.py +18 -18
  86. huaweicloudsdkelb/v3/model/insert_header_config.py +170 -0
  87. huaweicloudsdkelb/v3/model/insert_headers_config.py +114 -0
  88. huaweicloudsdkelb/v3/model/ip_group.py +119 -90
  89. huaweicloudsdkelb/v3/model/ip_group_ip.py +3 -3
  90. huaweicloudsdkelb/v3/model/ip_info.py +6 -6
  91. huaweicloudsdkelb/v3/model/l7_policy.py +103 -49
  92. huaweicloudsdkelb/v3/model/l7_rule.py +36 -36
  93. huaweicloudsdkelb/v3/model/list_all_members_request.py +24 -24
  94. huaweicloudsdkelb/v3/model/list_all_members_response.py +4 -4
  95. huaweicloudsdkelb/v3/model/list_availability_zones_request.py +3 -3
  96. huaweicloudsdkelb/v3/model/list_availability_zones_response.py +38 -9
  97. huaweicloudsdkelb/v3/model/list_certificates_request.py +64 -6
  98. huaweicloudsdkelb/v3/model/list_flavors_request.py +21 -21
  99. huaweicloudsdkelb/v3/model/list_flavors_response.py +6 -6
  100. huaweicloudsdkelb/v3/model/list_health_monitors_request.py +15 -15
  101. huaweicloudsdkelb/v3/model/list_ip_groups_request.py +53 -24
  102. huaweicloudsdkelb/v3/model/list_ip_groups_response.py +6 -6
  103. huaweicloudsdkelb/v3/model/list_l7_policies_request.py +51 -51
  104. huaweicloudsdkelb/v3/model/list_l7_policies_response.py +6 -6
  105. huaweicloudsdkelb/v3/model/list_l7_rules_request.py +6 -6
  106. huaweicloudsdkelb/v3/model/list_l7_rules_response.py +6 -6
  107. huaweicloudsdkelb/v3/model/list_listeners_request.py +42 -42
  108. huaweicloudsdkelb/v3/model/list_listeners_response.py +6 -6
  109. huaweicloudsdkelb/v3/model/list_load_balancers_request.py +36 -36
  110. huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
  111. huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +39 -39
  112. huaweicloudsdkelb/v3/model/list_members_request.py +27 -27
  113. huaweicloudsdkelb/v3/model/list_pools_request.py +135 -48
  114. huaweicloudsdkelb/v3/model/list_security_policies_request.py +3 -3
  115. huaweicloudsdkelb/v3/model/listener.py +96 -96
  116. huaweicloudsdkelb/v3/model/listener_insert_headers.py +30 -30
  117. huaweicloudsdkelb/v3/model/listener_ip_group.py +9 -9
  118. huaweicloudsdkelb/v3/model/listener_member_info.py +3 -3
  119. huaweicloudsdkelb/v3/model/listener_quic_config.py +6 -6
  120. huaweicloudsdkelb/v3/model/listener_ref.py +3 -3
  121. huaweicloudsdkelb/v3/model/load_balancer.py +129 -129
  122. huaweicloudsdkelb/v3/model/load_balancer_ref.py +3 -3
  123. huaweicloudsdkelb/v3/model/load_balancer_status.py +3 -3
  124. huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
  125. huaweicloudsdkelb/v3/model/load_balancer_status_pool.py +3 -3
  126. huaweicloudsdkelb/v3/model/logtank.py +3 -3
  127. huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +12 -12
  128. huaweicloudsdkelb/v3/model/master_slave_member.py +18 -18
  129. huaweicloudsdkelb/v3/model/master_slave_pool.py +42 -42
  130. huaweicloudsdkelb/v3/model/member.py +46 -191
  131. huaweicloudsdkelb/v3/model/member_info.py +656 -0
  132. huaweicloudsdkelb/v3/model/member_ref.py +3 -3
  133. huaweicloudsdkelb/v3/model/member_status.py +6 -6
  134. huaweicloudsdkelb/v3/model/page_info.py +9 -9
  135. huaweicloudsdkelb/v3/model/pool.py +146 -63
  136. huaweicloudsdkelb/v3/model/pool_health.py +115 -0
  137. huaweicloudsdkelb/v3/model/pool_ref.py +3 -3
  138. huaweicloudsdkelb/v3/model/prepaid_create_option.py +12 -12
  139. huaweicloudsdkelb/v3/model/public_ip_info.py +9 -9
  140. huaweicloudsdkelb/v3/model/quota.py +21 -21
  141. huaweicloudsdkelb/v3/model/quota_info.py +3 -3
  142. huaweicloudsdkelb/v3/model/redirect_pools_config.py +144 -0
  143. huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +81 -6
  144. huaweicloudsdkelb/v3/model/redirect_pools_sticky_session_config.py +144 -0
  145. huaweicloudsdkelb/v3/model/redirect_url_config.py +83 -27
  146. huaweicloudsdkelb/v3/model/remove_header_config.py +114 -0
  147. huaweicloudsdkelb/v3/model/remove_headers_config.py +114 -0
  148. huaweicloudsdkelb/v3/model/rewrite_url_config.py +9 -9
  149. huaweicloudsdkelb/v3/model/rule_condition.py +6 -6
  150. huaweicloudsdkelb/v3/model/rule_ref.py +3 -3
  151. huaweicloudsdkelb/v3/model/session_persistence.py +9 -9
  152. huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_request.py +84 -0
  153. huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_response.py +145 -0
  154. huaweicloudsdkelb/v3/model/show_flavor_request.py +3 -3
  155. huaweicloudsdkelb/v3/model/show_flavor_response.py +3 -3
  156. huaweicloudsdkelb/v3/model/show_ip_group_request.py +3 -3
  157. huaweicloudsdkelb/v3/model/show_ip_group_response.py +3 -3
  158. huaweicloudsdkelb/v3/model/show_l7_policy_request.py +3 -3
  159. huaweicloudsdkelb/v3/model/show_l7_policy_response.py +3 -3
  160. huaweicloudsdkelb/v3/model/show_l7_rule_response.py +3 -3
  161. huaweicloudsdkelb/v3/model/show_listener_response.py +3 -3
  162. huaweicloudsdkelb/v3/model/show_load_balancer_response.py +3 -3
  163. huaweicloudsdkelb/v3/model/show_load_balancer_status_response.py +3 -3
  164. huaweicloudsdkelb/v3/model/show_master_slave_pool_request.py +3 -3
  165. huaweicloudsdkelb/v3/model/show_member_request.py +3 -3
  166. huaweicloudsdkelb/v3/model/show_pool_request.py +3 -3
  167. huaweicloudsdkelb/v3/model/slow_start.py +6 -6
  168. huaweicloudsdkelb/v3/model/tag.py +6 -6
  169. huaweicloudsdkelb/v3/model/traffic_limit_config.py +173 -0
  170. huaweicloudsdkelb/v3/model/upadate_ip_group_ip_option.py +6 -6
  171. huaweicloudsdkelb/v3/model/update_certificate_option.py +3 -3
  172. huaweicloudsdkelb/v3/model/update_fixted_response_config.py +87 -12
  173. huaweicloudsdkelb/v3/model/update_health_monitor_option.py +15 -15
  174. huaweicloudsdkelb/v3/model/update_insert_header_config.py +170 -0
  175. huaweicloudsdkelb/v3/model/update_insert_headers_config.py +114 -0
  176. huaweicloudsdkelb/v3/model/update_ip_group_option.py +9 -9
  177. huaweicloudsdkelb/v3/model/update_ip_group_request.py +3 -3
  178. huaweicloudsdkelb/v3/model/update_ip_group_response.py +3 -3
  179. huaweicloudsdkelb/v3/model/update_ip_list_option.py +9 -9
  180. huaweicloudsdkelb/v3/model/update_ip_list_request.py +3 -3
  181. huaweicloudsdkelb/v3/model/update_ip_list_response.py +3 -3
  182. huaweicloudsdkelb/v3/model/update_l7_policy_option.py +76 -22
  183. huaweicloudsdkelb/v3/model/update_l7_policy_request.py +3 -3
  184. huaweicloudsdkelb/v3/model/update_l7_policy_response.py +3 -3
  185. huaweicloudsdkelb/v3/model/update_l7_rule_option.py +18 -18
  186. huaweicloudsdkelb/v3/model/update_l7_rule_response.py +3 -3
  187. huaweicloudsdkelb/v3/model/update_listener_ip_group_option.py +9 -9
  188. huaweicloudsdkelb/v3/model/update_listener_option.py +66 -66
  189. huaweicloudsdkelb/v3/model/update_listener_quic_config_option.py +6 -6
  190. huaweicloudsdkelb/v3/model/update_listener_response.py +3 -3
  191. huaweicloudsdkelb/v3/model/update_load_balancer_option.py +48 -48
  192. huaweicloudsdkelb/v3/model/update_load_balancer_response.py +9 -9
  193. huaweicloudsdkelb/v3/model/update_loadbalancer_autoscaling_option.py +6 -6
  194. huaweicloudsdkelb/v3/model/update_member_option.py +12 -12
  195. huaweicloudsdkelb/v3/model/update_member_request.py +3 -3
  196. huaweicloudsdkelb/v3/model/update_pool_option.py +52 -27
  197. huaweicloudsdkelb/v3/model/update_pool_request.py +3 -3
  198. huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +6 -6
  199. huaweicloudsdkelb/v3/model/update_redirect_pools_config.py +143 -0
  200. huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +84 -9
  201. huaweicloudsdkelb/v3/model/update_redirect_pools_sticky_session_config.py +144 -0
  202. huaweicloudsdkelb/v3/model/update_redirect_url_config.py +71 -21
  203. huaweicloudsdkelb/v3/model/update_remove_header_config.py +114 -0
  204. huaweicloudsdkelb/v3/model/update_remove_headers_config.py +114 -0
  205. huaweicloudsdkelb/v3/model/update_rewrite_url_config.py +173 -0
  206. huaweicloudsdkelb/v3/model/update_rule_condition.py +6 -6
  207. huaweicloudsdkelb/v3/model/update_traffic_limit_config.py +173 -0
  208. huaweicloudsdkelb/v3/region/elb_region.py +19 -1
  209. {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/METADATA +2 -2
  210. {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/RECORD +213 -184
  211. {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/WHEEL +1 -1
  212. {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/LICENSE +0 -0
  213. {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,115 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class PoolHealth:
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
+ 'minimum_healthy_member_count': 'int'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'minimum_healthy_member_count': 'minimum_healthy_member_count'
25
+ }
26
+
27
+ def __init__(self, minimum_healthy_member_count=None):
28
+ """PoolHealth
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param minimum_healthy_member_count: 参数解释:当健康检查在线的member个数小于该个数,判定pool的state为不健康。 取值范围: - 0:默认值,不生效。 - 1:全下线转发生效。
33
+ :type minimum_healthy_member_count: int
34
+ """
35
+
36
+
37
+
38
+ self._minimum_healthy_member_count = None
39
+ self.discriminator = None
40
+
41
+ if minimum_healthy_member_count is not None:
42
+ self.minimum_healthy_member_count = minimum_healthy_member_count
43
+
44
+ @property
45
+ def minimum_healthy_member_count(self):
46
+ """Gets the minimum_healthy_member_count of this PoolHealth.
47
+
48
+ 参数解释:当健康检查在线的member个数小于该个数,判定pool的state为不健康。 取值范围: - 0:默认值,不生效。 - 1:全下线转发生效。
49
+
50
+ :return: The minimum_healthy_member_count of this PoolHealth.
51
+ :rtype: int
52
+ """
53
+ return self._minimum_healthy_member_count
54
+
55
+ @minimum_healthy_member_count.setter
56
+ def minimum_healthy_member_count(self, minimum_healthy_member_count):
57
+ """Sets the minimum_healthy_member_count of this PoolHealth.
58
+
59
+ 参数解释:当健康检查在线的member个数小于该个数,判定pool的state为不健康。 取值范围: - 0:默认值,不生效。 - 1:全下线转发生效。
60
+
61
+ :param minimum_healthy_member_count: The minimum_healthy_member_count of this PoolHealth.
62
+ :type minimum_healthy_member_count: int
63
+ """
64
+ self._minimum_healthy_member_count = minimum_healthy_member_count
65
+
66
+ def to_dict(self):
67
+ """Returns the model properties as a dict"""
68
+ result = {}
69
+
70
+ for attr, _ in six.iteritems(self.openapi_types):
71
+ value = getattr(self, attr)
72
+ if isinstance(value, list):
73
+ result[attr] = list(map(
74
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
75
+ value
76
+ ))
77
+ elif hasattr(value, "to_dict"):
78
+ result[attr] = value.to_dict()
79
+ elif isinstance(value, dict):
80
+ result[attr] = dict(map(
81
+ lambda item: (item[0], item[1].to_dict())
82
+ if hasattr(item[1], "to_dict") else item,
83
+ value.items()
84
+ ))
85
+ else:
86
+ if attr in self.sensitive_list:
87
+ result[attr] = "****"
88
+ else:
89
+ result[attr] = value
90
+
91
+ return result
92
+
93
+ def to_str(self):
94
+ """Returns the string representation of the model"""
95
+ import simplejson as json
96
+ if six.PY2:
97
+ import sys
98
+ reload(sys)
99
+ sys.setdefaultencoding("utf-8")
100
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
101
+
102
+ def __repr__(self):
103
+ """For `print`"""
104
+ return self.to_str()
105
+
106
+ def __eq__(self, other):
107
+ """Returns true if both objects are equal"""
108
+ if not isinstance(other, PoolHealth):
109
+ return False
110
+
111
+ return self.__dict__ == other.__dict__
112
+
113
+ def __ne__(self, other):
114
+ """Returns true if both objects are not equal"""
115
+ return not self == other
@@ -29,7 +29,7 @@ class PoolRef:
29
29
 
30
30
  The model defined in huaweicloud sdk
31
31
 
32
- :param id: 后端服务器组ID。
32
+ :param id: 参数解释:后端服务器组ID。
33
33
  :type id: str
34
34
  """
35
35
 
@@ -44,7 +44,7 @@ class PoolRef:
44
44
  def id(self):
45
45
  """Gets the id of this PoolRef.
46
46
 
47
- 后端服务器组ID。
47
+ 参数解释:后端服务器组ID。
48
48
 
49
49
  :return: The id of this PoolRef.
50
50
  :rtype: str
@@ -55,7 +55,7 @@ class PoolRef:
55
55
  def id(self, id):
56
56
  """Sets the id of this PoolRef.
57
57
 
58
- 后端服务器组ID。
58
+ 参数解释:后端服务器组ID。
59
59
 
60
60
  :param id: The id of this PoolRef.
61
61
  :type id: str
@@ -35,13 +35,13 @@ class PrepaidCreateOption:
35
35
 
36
36
  The model defined in huaweicloud sdk
37
37
 
38
- :param period_type: 订购周期类型,当前支持包月和包年: month:月; year:年;
38
+ :param period_type: 参数解释:预付费实例的订购周期类型,当前支持月和年。 取值范围: - month:月。 - year:年。
39
39
  :type period_type: str
40
- :param period_num: 订购周期数,取值会随运营策略变化。 period_type为month时,为[1,9] period_type为year时,为[1,3]
40
+ :param period_num: 参数解释:预付费实例的订购周期数。 取值范围: - period_type为month时,为[1,9] - period_type为year时,为[1,3]
41
41
  :type period_num: int
42
- :param auto_renew: 是否自动续订; true:自动续订 false:不自动续订
42
+ :param auto_renew: 参数解释:自动续订开关。 取值范围: - true:开启自动续订。 - false:关闭自动续订。
43
43
  :type auto_renew: bool
44
- :param auto_pay: 下单订购后,是否自动从客户的账户中支付; true:自动支付; false:不自动支付。 自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。
44
+ :param auto_pay: 参数解释:自动支付开关。下单订购后,是否自动从客户的账户中支付。 约束限制:开启自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择关闭自动支付,然后在用户费用中心,选择代金券支付。 取值范围: - true:开启自动支付。 - false:关闭自动支付。
45
45
  :type auto_pay: bool
46
46
  """
47
47
 
@@ -65,7 +65,7 @@ class PrepaidCreateOption:
65
65
  def period_type(self):
66
66
  """Gets the period_type of this PrepaidCreateOption.
67
67
 
68
- 订购周期类型,当前支持包月和包年: month:月; year:年;
68
+ 参数解释:预付费实例的订购周期类型,当前支持月和年。 取值范围: - month:月。 - year:年。
69
69
 
70
70
  :return: The period_type of this PrepaidCreateOption.
71
71
  :rtype: str
@@ -76,7 +76,7 @@ class PrepaidCreateOption:
76
76
  def period_type(self, period_type):
77
77
  """Sets the period_type of this PrepaidCreateOption.
78
78
 
79
- 订购周期类型,当前支持包月和包年: month:月; year:年;
79
+ 参数解释:预付费实例的订购周期类型,当前支持月和年。 取值范围: - month:月。 - year:年。
80
80
 
81
81
  :param period_type: The period_type of this PrepaidCreateOption.
82
82
  :type period_type: str
@@ -87,7 +87,7 @@ class PrepaidCreateOption:
87
87
  def period_num(self):
88
88
  """Gets the period_num of this PrepaidCreateOption.
89
89
 
90
- 订购周期数,取值会随运营策略变化。 period_type为month时,为[1,9] period_type为year时,为[1,3]
90
+ 参数解释:预付费实例的订购周期数。 取值范围: - period_type为month时,为[1,9] - period_type为year时,为[1,3]
91
91
 
92
92
  :return: The period_num of this PrepaidCreateOption.
93
93
  :rtype: int
@@ -98,7 +98,7 @@ class PrepaidCreateOption:
98
98
  def period_num(self, period_num):
99
99
  """Sets the period_num of this PrepaidCreateOption.
100
100
 
101
- 订购周期数,取值会随运营策略变化。 period_type为month时,为[1,9] period_type为year时,为[1,3]
101
+ 参数解释:预付费实例的订购周期数。 取值范围: - period_type为month时,为[1,9] - period_type为year时,为[1,3]
102
102
 
103
103
  :param period_num: The period_num of this PrepaidCreateOption.
104
104
  :type period_num: int
@@ -109,7 +109,7 @@ class PrepaidCreateOption:
109
109
  def auto_renew(self):
110
110
  """Gets the auto_renew of this PrepaidCreateOption.
111
111
 
112
- 是否自动续订; true:自动续订 false:不自动续订
112
+ 参数解释:自动续订开关。 取值范围: - true:开启自动续订。 - false:关闭自动续订。
113
113
 
114
114
  :return: The auto_renew of this PrepaidCreateOption.
115
115
  :rtype: bool
@@ -120,7 +120,7 @@ class PrepaidCreateOption:
120
120
  def auto_renew(self, auto_renew):
121
121
  """Sets the auto_renew of this PrepaidCreateOption.
122
122
 
123
- 是否自动续订; true:自动续订 false:不自动续订
123
+ 参数解释:自动续订开关。 取值范围: - true:开启自动续订。 - false:关闭自动续订。
124
124
 
125
125
  :param auto_renew: The auto_renew of this PrepaidCreateOption.
126
126
  :type auto_renew: bool
@@ -131,7 +131,7 @@ class PrepaidCreateOption:
131
131
  def auto_pay(self):
132
132
  """Gets the auto_pay of this PrepaidCreateOption.
133
133
 
134
- 下单订购后,是否自动从客户的账户中支付; true:自动支付; false:不自动支付。 自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。
134
+ 参数解释:自动支付开关。下单订购后,是否自动从客户的账户中支付。 约束限制:开启自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择关闭自动支付,然后在用户费用中心,选择代金券支付。 取值范围: - true:开启自动支付。 - false:关闭自动支付。
135
135
 
136
136
  :return: The auto_pay of this PrepaidCreateOption.
137
137
  :rtype: bool
@@ -142,7 +142,7 @@ class PrepaidCreateOption:
142
142
  def auto_pay(self, auto_pay):
143
143
  """Sets the auto_pay of this PrepaidCreateOption.
144
144
 
145
- 下单订购后,是否自动从客户的账户中支付; true:自动支付; false:不自动支付。 自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。
145
+ 参数解释:自动支付开关。下单订购后,是否自动从客户的账户中支付。 约束限制:开启自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择关闭自动支付,然后在用户费用中心,选择代金券支付。 取值范围: - true:开启自动支付。 - false:关闭自动支付。
146
146
 
147
147
  :param auto_pay: The auto_pay of this PrepaidCreateOption.
148
148
  :type auto_pay: bool
@@ -33,11 +33,11 @@ class PublicIpInfo:
33
33
 
34
34
  The model defined in huaweicloud sdk
35
35
 
36
- :param publicip_id: 弹性公网ip配置id
36
+ :param publicip_id: 参数解释:弹性公网ip配置id
37
37
  :type publicip_id: str
38
- :param publicip_address: IP地址
38
+ :param publicip_address: 参数解释:IP地址
39
39
  :type publicip_address: str
40
- :param ip_version: IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
40
+ :param ip_version: 参数解释:IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
41
41
  :type ip_version: int
42
42
  """
43
43
 
@@ -56,7 +56,7 @@ class PublicIpInfo:
56
56
  def publicip_id(self):
57
57
  """Gets the publicip_id of this PublicIpInfo.
58
58
 
59
- 弹性公网ip配置id
59
+ 参数解释:弹性公网ip配置id
60
60
 
61
61
  :return: The publicip_id of this PublicIpInfo.
62
62
  :rtype: str
@@ -67,7 +67,7 @@ class PublicIpInfo:
67
67
  def publicip_id(self, publicip_id):
68
68
  """Sets the publicip_id of this PublicIpInfo.
69
69
 
70
- 弹性公网ip配置id
70
+ 参数解释:弹性公网ip配置id
71
71
 
72
72
  :param publicip_id: The publicip_id of this PublicIpInfo.
73
73
  :type publicip_id: str
@@ -78,7 +78,7 @@ class PublicIpInfo:
78
78
  def publicip_address(self):
79
79
  """Gets the publicip_address of this PublicIpInfo.
80
80
 
81
- IP地址
81
+ 参数解释:IP地址
82
82
 
83
83
  :return: The publicip_address of this PublicIpInfo.
84
84
  :rtype: str
@@ -89,7 +89,7 @@ class PublicIpInfo:
89
89
  def publicip_address(self, publicip_address):
90
90
  """Sets the publicip_address of this PublicIpInfo.
91
91
 
92
- IP地址
92
+ 参数解释:IP地址
93
93
 
94
94
  :param publicip_address: The publicip_address of this PublicIpInfo.
95
95
  :type publicip_address: str
@@ -100,7 +100,7 @@ class PublicIpInfo:
100
100
  def ip_version(self):
101
101
  """Gets the ip_version of this PublicIpInfo.
102
102
 
103
- IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
103
+ 参数解释:IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
104
104
 
105
105
  :return: The ip_version of this PublicIpInfo.
106
106
  :rtype: int
@@ -111,7 +111,7 @@ class PublicIpInfo:
111
111
  def ip_version(self, ip_version):
112
112
  """Sets the ip_version of this PublicIpInfo.
113
113
 
114
- IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
114
+ 参数解释:IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
115
115
 
116
116
  :param ip_version: The ip_version of this PublicIpInfo.
117
117
  :type ip_version: int
@@ -59,7 +59,7 @@ class Quota:
59
59
 
60
60
  The model defined in huaweicloud sdk
61
61
 
62
- :param project_id: 项目ID。
62
+ :param project_id: 参数解释:项目ID。
63
63
  :type project_id: str
64
64
  :param loadbalancer: 负载均衡器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
65
65
  :type loadbalancer: int
@@ -69,23 +69,23 @@ class Quota:
69
69
  :type listener: int
70
70
  :param l7policy: 转发策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
71
71
  :type l7policy: int
72
- :param condition_per_policy: 转发策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
72
+ :param condition_per_policy: 单个转发策略下所有转发规则的condition总数配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
73
73
  :type condition_per_policy: int
74
- :param pool: 后端云服务器组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
74
+ :param pool: 后端服务器组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
75
75
  :type pool: int
76
76
  :param healthmonitor: 健康检查配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
77
77
  :type healthmonitor: int
78
- :param member: 后端云服务器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
78
+ :param member: 后端服务器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
79
79
  :type member: int
80
80
  :param members_per_pool: 单个pool下的member的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
81
81
  :type members_per_pool: int
82
- :param listeners_per_pool: 单个pool下的member的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
82
+ :param listeners_per_pool: 单个监听器下的pool的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
83
83
  :type listeners_per_pool: int
84
84
  :param ipgroup: IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
85
85
  :type ipgroup: int
86
- :param ipgroup_bindings: IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
86
+ :param ipgroup_bindings: 单个IP地址组可以关联的监听器数量配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
87
87
  :type ipgroup_bindings: int
88
- :param ipgroup_max_length: IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
88
+ :param ipgroup_max_length: 单个监听器下关联的所有IP地址组的ip列表中的IP总数不能超过ipgroup_max_length。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
89
89
  :type ipgroup_max_length: int
90
90
  :param security_policy: 自定义安全策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
91
91
  :type security_policy: int
@@ -134,7 +134,7 @@ class Quota:
134
134
  def project_id(self):
135
135
  """Gets the project_id of this Quota.
136
136
 
137
- 项目ID。
137
+ 参数解释:项目ID。
138
138
 
139
139
  :return: The project_id of this Quota.
140
140
  :rtype: str
@@ -145,7 +145,7 @@ class Quota:
145
145
  def project_id(self, project_id):
146
146
  """Sets the project_id of this Quota.
147
147
 
148
- 项目ID。
148
+ 参数解释:项目ID。
149
149
 
150
150
  :param project_id: The project_id of this Quota.
151
151
  :type project_id: str
@@ -244,7 +244,7 @@ class Quota:
244
244
  def condition_per_policy(self):
245
245
  """Gets the condition_per_policy of this Quota.
246
246
 
247
- 转发策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
247
+ 单个转发策略下所有转发规则的condition总数配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
248
248
 
249
249
  :return: The condition_per_policy of this Quota.
250
250
  :rtype: int
@@ -255,7 +255,7 @@ class Quota:
255
255
  def condition_per_policy(self, condition_per_policy):
256
256
  """Sets the condition_per_policy of this Quota.
257
257
 
258
- 转发策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
258
+ 单个转发策略下所有转发规则的condition总数配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
259
259
 
260
260
  :param condition_per_policy: The condition_per_policy of this Quota.
261
261
  :type condition_per_policy: int
@@ -266,7 +266,7 @@ class Quota:
266
266
  def pool(self):
267
267
  """Gets the pool of this Quota.
268
268
 
269
- 后端云服务器组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
269
+ 后端服务器组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
270
270
 
271
271
  :return: The pool of this Quota.
272
272
  :rtype: int
@@ -277,7 +277,7 @@ class Quota:
277
277
  def pool(self, pool):
278
278
  """Sets the pool of this Quota.
279
279
 
280
- 后端云服务器组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
280
+ 后端服务器组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
281
281
 
282
282
  :param pool: The pool of this Quota.
283
283
  :type pool: int
@@ -310,7 +310,7 @@ class Quota:
310
310
  def member(self):
311
311
  """Gets the member of this Quota.
312
312
 
313
- 后端云服务器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
313
+ 后端服务器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
314
314
 
315
315
  :return: The member of this Quota.
316
316
  :rtype: int
@@ -321,7 +321,7 @@ class Quota:
321
321
  def member(self, member):
322
322
  """Sets the member of this Quota.
323
323
 
324
- 后端云服务器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
324
+ 后端服务器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
325
325
 
326
326
  :param member: The member of this Quota.
327
327
  :type member: int
@@ -354,7 +354,7 @@ class Quota:
354
354
  def listeners_per_pool(self):
355
355
  """Gets the listeners_per_pool of this Quota.
356
356
 
357
- 单个pool下的member的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
357
+ 单个监听器下的pool的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
358
358
 
359
359
  :return: The listeners_per_pool of this Quota.
360
360
  :rtype: int
@@ -365,7 +365,7 @@ class Quota:
365
365
  def listeners_per_pool(self, listeners_per_pool):
366
366
  """Sets the listeners_per_pool of this Quota.
367
367
 
368
- 单个pool下的member的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
368
+ 单个监听器下的pool的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
369
369
 
370
370
  :param listeners_per_pool: The listeners_per_pool of this Quota.
371
371
  :type listeners_per_pool: int
@@ -398,7 +398,7 @@ class Quota:
398
398
  def ipgroup_bindings(self):
399
399
  """Gets the ipgroup_bindings of this Quota.
400
400
 
401
- IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
401
+ 单个IP地址组可以关联的监听器数量配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
402
402
 
403
403
  :return: The ipgroup_bindings of this Quota.
404
404
  :rtype: int
@@ -409,7 +409,7 @@ class Quota:
409
409
  def ipgroup_bindings(self, ipgroup_bindings):
410
410
  """Sets the ipgroup_bindings of this Quota.
411
411
 
412
- IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
412
+ 单个IP地址组可以关联的监听器数量配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
413
413
 
414
414
  :param ipgroup_bindings: The ipgroup_bindings of this Quota.
415
415
  :type ipgroup_bindings: int
@@ -420,7 +420,7 @@ class Quota:
420
420
  def ipgroup_max_length(self):
421
421
  """Gets the ipgroup_max_length of this Quota.
422
422
 
423
- IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
423
+ 单个监听器下关联的所有IP地址组的ip列表中的IP总数不能超过ipgroup_max_length。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
424
424
 
425
425
  :return: The ipgroup_max_length of this Quota.
426
426
  :rtype: int
@@ -431,7 +431,7 @@ class Quota:
431
431
  def ipgroup_max_length(self, ipgroup_max_length):
432
432
  """Sets the ipgroup_max_length of this Quota.
433
433
 
434
- IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
434
+ 单个监听器下关联的所有IP地址组的ip列表中的IP总数不能超过ipgroup_max_length。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
435
435
 
436
436
  :param ipgroup_max_length: The ipgroup_max_length of this Quota.
437
437
  :type ipgroup_max_length: int
@@ -35,7 +35,7 @@ class QuotaInfo:
35
35
 
36
36
  The model defined in huaweicloud sdk
37
37
 
38
- :param quota_key: 资源类型。 取值:loadbalancer、listener、ipgroup、pool、member、members_per_pool、 healthmonitor、l7policy、certificate、security_policy、condition_per_policy、listeners_per_pool、ipgroup_bindings、ipgroup_max_length。 其中members_per_pool表示一个pool下最多可关联的member数量。
38
+ :param quota_key: 资源类型。 取值:loadbalancer、listener、ipgroup、pool、member、healthmonitor、l7policy、certificate、security_policy、listeners_per_loadbalancer、listeners_per_pool、members_per_pool、condition_per_policy、ipgroup_bindings、ipgroup_max_length。
39
39
  :type quota_key: str
40
40
  :param quota_limit: 总配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
41
41
  :type quota_limit: int
@@ -62,7 +62,7 @@ class QuotaInfo:
62
62
  def quota_key(self):
63
63
  """Gets the quota_key of this QuotaInfo.
64
64
 
65
- 资源类型。 取值:loadbalancer、listener、ipgroup、pool、member、members_per_pool、 healthmonitor、l7policy、certificate、security_policy、condition_per_policy、listeners_per_pool、ipgroup_bindings、ipgroup_max_length。 其中members_per_pool表示一个pool下最多可关联的member数量。
65
+ 资源类型。 取值:loadbalancer、listener、ipgroup、pool、member、healthmonitor、l7policy、certificate、security_policy、listeners_per_loadbalancer、listeners_per_pool、members_per_pool、condition_per_policy、ipgroup_bindings、ipgroup_max_length。
66
66
 
67
67
  :return: The quota_key of this QuotaInfo.
68
68
  :rtype: str
@@ -73,7 +73,7 @@ class QuotaInfo:
73
73
  def quota_key(self, quota_key):
74
74
  """Sets the quota_key of this QuotaInfo.
75
75
 
76
- 资源类型。 取值:loadbalancer、listener、ipgroup、pool、member、members_per_pool、 healthmonitor、l7policy、certificate、security_policy、condition_per_policy、listeners_per_pool、ipgroup_bindings、ipgroup_max_length。 其中members_per_pool表示一个pool下最多可关联的member数量。
76
+ 资源类型。 取值:loadbalancer、listener、ipgroup、pool、member、healthmonitor、l7policy、certificate、security_policy、listeners_per_loadbalancer、listeners_per_pool、members_per_pool、condition_per_policy、ipgroup_bindings、ipgroup_max_length。
77
77
 
78
78
  :param quota_key: The quota_key of this QuotaInfo.
79
79
  :type quota_key: str
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RedirectPoolsConfig:
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
+ 'pool_id': 'str',
21
+ 'weight': 'int'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'pool_id': 'pool_id',
26
+ 'weight': 'weight'
27
+ }
28
+
29
+ def __init__(self, pool_id=None, weight=None):
30
+ """RedirectPoolsConfig
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param pool_id: 参数解释:所在后端服务器组ID。
35
+ :type pool_id: str
36
+ :param weight: 参数解释:转发策略主机组的权重。请求将根据该权重进行负载分发到不同的主机组。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值范围:0-100
37
+ :type weight: int
38
+ """
39
+
40
+
41
+
42
+ self._pool_id = None
43
+ self._weight = None
44
+ self.discriminator = None
45
+
46
+ if pool_id is not None:
47
+ self.pool_id = pool_id
48
+ if weight is not None:
49
+ self.weight = weight
50
+
51
+ @property
52
+ def pool_id(self):
53
+ """Gets the pool_id of this RedirectPoolsConfig.
54
+
55
+ 参数解释:所在后端服务器组ID。
56
+
57
+ :return: The pool_id of this RedirectPoolsConfig.
58
+ :rtype: str
59
+ """
60
+ return self._pool_id
61
+
62
+ @pool_id.setter
63
+ def pool_id(self, pool_id):
64
+ """Sets the pool_id of this RedirectPoolsConfig.
65
+
66
+ 参数解释:所在后端服务器组ID。
67
+
68
+ :param pool_id: The pool_id of this RedirectPoolsConfig.
69
+ :type pool_id: str
70
+ """
71
+ self._pool_id = pool_id
72
+
73
+ @property
74
+ def weight(self):
75
+ """Gets the weight of this RedirectPoolsConfig.
76
+
77
+ 参数解释:转发策略主机组的权重。请求将根据该权重进行负载分发到不同的主机组。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值范围:0-100
78
+
79
+ :return: The weight of this RedirectPoolsConfig.
80
+ :rtype: int
81
+ """
82
+ return self._weight
83
+
84
+ @weight.setter
85
+ def weight(self, weight):
86
+ """Sets the weight of this RedirectPoolsConfig.
87
+
88
+ 参数解释:转发策略主机组的权重。请求将根据该权重进行负载分发到不同的主机组。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值范围:0-100
89
+
90
+ :param weight: The weight of this RedirectPoolsConfig.
91
+ :type weight: int
92
+ """
93
+ self._weight = weight
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, RedirectPoolsConfig):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other