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,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateTrafficLimitConfig:
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
+ 'qps': 'int',
21
+ 'per_source_ip_qps': 'int',
22
+ 'burst': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'qps': 'qps',
27
+ 'per_source_ip_qps': 'per_source_ip_qps',
28
+ 'burst': 'burst'
29
+ }
30
+
31
+ def __init__(self, qps=None, per_source_ip_qps=None, burst=None):
32
+ """CreateTrafficLimitConfig
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param qps: 参数解释:转发策略qps限速。 取值范围:0-100000,单位:个/秒。0表示不限速。
37
+ :type qps: int
38
+ :param per_source_ip_qps: 参数解释:对转发策略单源(单个客户端IP)进行限速。 约束限制: - quic监听器下转发策略不支持配置单源限速。 - 指定该字段时,赋值可以为0或者为null。 - 如果qps不为0,per_source_ip_qps需要小于qps。 取值范围:0-100000,单位:个/秒。0表示不限速。
39
+ :type per_source_ip_qps: int
40
+ :param burst: 参数解释:设置当单源qps超限时,允许的局部突增请求数量。超出该限制的请求将返回503。 取值范围:0-100000,单位:个/秒。
41
+ :type burst: int
42
+ """
43
+
44
+
45
+
46
+ self._qps = None
47
+ self._per_source_ip_qps = None
48
+ self._burst = None
49
+ self.discriminator = None
50
+
51
+ if qps is not None:
52
+ self.qps = qps
53
+ if per_source_ip_qps is not None:
54
+ self.per_source_ip_qps = per_source_ip_qps
55
+ if burst is not None:
56
+ self.burst = burst
57
+
58
+ @property
59
+ def qps(self):
60
+ """Gets the qps of this CreateTrafficLimitConfig.
61
+
62
+ 参数解释:转发策略qps限速。 取值范围:0-100000,单位:个/秒。0表示不限速。
63
+
64
+ :return: The qps of this CreateTrafficLimitConfig.
65
+ :rtype: int
66
+ """
67
+ return self._qps
68
+
69
+ @qps.setter
70
+ def qps(self, qps):
71
+ """Sets the qps of this CreateTrafficLimitConfig.
72
+
73
+ 参数解释:转发策略qps限速。 取值范围:0-100000,单位:个/秒。0表示不限速。
74
+
75
+ :param qps: The qps of this CreateTrafficLimitConfig.
76
+ :type qps: int
77
+ """
78
+ self._qps = qps
79
+
80
+ @property
81
+ def per_source_ip_qps(self):
82
+ """Gets the per_source_ip_qps of this CreateTrafficLimitConfig.
83
+
84
+ 参数解释:对转发策略单源(单个客户端IP)进行限速。 约束限制: - quic监听器下转发策略不支持配置单源限速。 - 指定该字段时,赋值可以为0或者为null。 - 如果qps不为0,per_source_ip_qps需要小于qps。 取值范围:0-100000,单位:个/秒。0表示不限速。
85
+
86
+ :return: The per_source_ip_qps of this CreateTrafficLimitConfig.
87
+ :rtype: int
88
+ """
89
+ return self._per_source_ip_qps
90
+
91
+ @per_source_ip_qps.setter
92
+ def per_source_ip_qps(self, per_source_ip_qps):
93
+ """Sets the per_source_ip_qps of this CreateTrafficLimitConfig.
94
+
95
+ 参数解释:对转发策略单源(单个客户端IP)进行限速。 约束限制: - quic监听器下转发策略不支持配置单源限速。 - 指定该字段时,赋值可以为0或者为null。 - 如果qps不为0,per_source_ip_qps需要小于qps。 取值范围:0-100000,单位:个/秒。0表示不限速。
96
+
97
+ :param per_source_ip_qps: The per_source_ip_qps of this CreateTrafficLimitConfig.
98
+ :type per_source_ip_qps: int
99
+ """
100
+ self._per_source_ip_qps = per_source_ip_qps
101
+
102
+ @property
103
+ def burst(self):
104
+ """Gets the burst of this CreateTrafficLimitConfig.
105
+
106
+ 参数解释:设置当单源qps超限时,允许的局部突增请求数量。超出该限制的请求将返回503。 取值范围:0-100000,单位:个/秒。
107
+
108
+ :return: The burst of this CreateTrafficLimitConfig.
109
+ :rtype: int
110
+ """
111
+ return self._burst
112
+
113
+ @burst.setter
114
+ def burst(self, burst):
115
+ """Sets the burst of this CreateTrafficLimitConfig.
116
+
117
+ 参数解释:设置当单源qps超限时,允许的局部突增请求数量。超出该限制的请求将返回503。 取值范围:0-100000,单位:个/秒。
118
+
119
+ :param burst: The burst of this CreateTrafficLimitConfig.
120
+ :type burst: int
121
+ """
122
+ self._burst = burst
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, CreateTrafficLimitConfig):
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
@@ -29,7 +29,7 @@ class DeleteIpGroupRequest:
29
29
 
30
30
  The model defined in huaweicloud sdk
31
31
 
32
- :param ipgroup_id: IP地址组的ID。
32
+ :param ipgroup_id: 参数解释:IP地址组的ID。
33
33
  :type ipgroup_id: str
34
34
  """
35
35
 
@@ -44,7 +44,7 @@ class DeleteIpGroupRequest:
44
44
  def ipgroup_id(self):
45
45
  """Gets the ipgroup_id of this DeleteIpGroupRequest.
46
46
 
47
- IP地址组的ID。
47
+ 参数解释:IP地址组的ID。
48
48
 
49
49
  :return: The ipgroup_id of this DeleteIpGroupRequest.
50
50
  :rtype: str
@@ -55,7 +55,7 @@ class DeleteIpGroupRequest:
55
55
  def ipgroup_id(self, ipgroup_id):
56
56
  """Sets the ipgroup_id of this DeleteIpGroupRequest.
57
57
 
58
- IP地址组的ID。
58
+ 参数解释:IP地址组的ID。
59
59
 
60
60
  :param ipgroup_id: The ipgroup_id of this DeleteIpGroupRequest.
61
61
  :type ipgroup_id: str
@@ -29,7 +29,7 @@ class DeleteL7PolicyRequest:
29
29
 
30
30
  The model defined in huaweicloud sdk
31
31
 
32
- :param l7policy_id: 转发策略ID。
32
+ :param l7policy_id: 参数解释:转发策略ID。
33
33
  :type l7policy_id: str
34
34
  """
35
35
 
@@ -44,7 +44,7 @@ class DeleteL7PolicyRequest:
44
44
  def l7policy_id(self):
45
45
  """Gets the l7policy_id of this DeleteL7PolicyRequest.
46
46
 
47
- 转发策略ID。
47
+ 参数解释:转发策略ID。
48
48
 
49
49
  :return: The l7policy_id of this DeleteL7PolicyRequest.
50
50
  :rtype: str
@@ -55,7 +55,7 @@ class DeleteL7PolicyRequest:
55
55
  def l7policy_id(self, l7policy_id):
56
56
  """Sets the l7policy_id of this DeleteL7PolicyRequest.
57
57
 
58
- 转发策略ID。
58
+ 参数解释:转发策略ID。
59
59
 
60
60
  :param l7policy_id: The l7policy_id of this DeleteL7PolicyRequest.
61
61
  :type l7policy_id: str
@@ -29,7 +29,7 @@ class DeleteMasterSlavePoolRequest:
29
29
 
30
30
  The model defined in huaweicloud sdk
31
31
 
32
- :param pool_id: 后端服务器组ID。
32
+ :param pool_id: 参数解释:后端服务器组ID。
33
33
  :type pool_id: str
34
34
  """
35
35
 
@@ -44,7 +44,7 @@ class DeleteMasterSlavePoolRequest:
44
44
  def pool_id(self):
45
45
  """Gets the pool_id of this DeleteMasterSlavePoolRequest.
46
46
 
47
- 后端服务器组ID。
47
+ 参数解释:后端服务器组ID。
48
48
 
49
49
  :return: The pool_id of this DeleteMasterSlavePoolRequest.
50
50
  :rtype: str
@@ -55,7 +55,7 @@ class DeleteMasterSlavePoolRequest:
55
55
  def pool_id(self, pool_id):
56
56
  """Sets the pool_id of this DeleteMasterSlavePoolRequest.
57
57
 
58
- 后端服务器组ID。
58
+ 参数解释:后端服务器组ID。
59
59
 
60
60
  :param pool_id: The pool_id of this DeleteMasterSlavePoolRequest.
61
61
  :type pool_id: str
@@ -31,9 +31,9 @@ class DeleteMemberRequest:
31
31
 
32
32
  The model defined in huaweicloud sdk
33
33
 
34
- :param pool_id: 后端服务器组ID。
34
+ :param pool_id: 参数解释:后端服务器组ID。
35
35
  :type pool_id: str
36
- :param member_id: 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 member ID可以通过[查询后端云服务器列表](ListMembers.xml)获取。
36
+ :param member_id: 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 member ID可以通过[查询后端服务器列表](ListMembers.xml)获取。
37
37
  :type member_id: str
38
38
  """
39
39
 
@@ -50,7 +50,7 @@ class DeleteMemberRequest:
50
50
  def pool_id(self):
51
51
  """Gets the pool_id of this DeleteMemberRequest.
52
52
 
53
- 后端服务器组ID。
53
+ 参数解释:后端服务器组ID。
54
54
 
55
55
  :return: The pool_id of this DeleteMemberRequest.
56
56
  :rtype: str
@@ -61,7 +61,7 @@ class DeleteMemberRequest:
61
61
  def pool_id(self, pool_id):
62
62
  """Sets the pool_id of this DeleteMemberRequest.
63
63
 
64
- 后端服务器组ID。
64
+ 参数解释:后端服务器组ID。
65
65
 
66
66
  :param pool_id: The pool_id of this DeleteMemberRequest.
67
67
  :type pool_id: str
@@ -72,7 +72,7 @@ class DeleteMemberRequest:
72
72
  def member_id(self):
73
73
  """Gets the member_id of this DeleteMemberRequest.
74
74
 
75
- 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 member ID可以通过[查询后端云服务器列表](ListMembers.xml)获取。
75
+ 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 member ID可以通过[查询后端服务器列表](ListMembers.xml)获取。
76
76
 
77
77
  :return: The member_id of this DeleteMemberRequest.
78
78
  :rtype: str
@@ -83,7 +83,7 @@ class DeleteMemberRequest:
83
83
  def member_id(self, member_id):
84
84
  """Sets the member_id of this DeleteMemberRequest.
85
85
 
86
- 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 member ID可以通过[查询后端云服务器列表](ListMembers.xml)获取。
86
+ 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 member ID可以通过[查询后端服务器列表](ListMembers.xml)获取。
87
87
 
88
88
  :param member_id: The member_id of this DeleteMemberRequest.
89
89
  :type member_id: str
@@ -29,7 +29,7 @@ class DeletePoolRequest:
29
29
 
30
30
  The model defined in huaweicloud sdk
31
31
 
32
- :param pool_id: 后端服务器组ID。
32
+ :param pool_id: 参数解释:后端服务器组ID。
33
33
  :type pool_id: str
34
34
  """
35
35
 
@@ -44,7 +44,7 @@ class DeletePoolRequest:
44
44
  def pool_id(self):
45
45
  """Gets the pool_id of this DeletePoolRequest.
46
46
 
47
- 后端服务器组ID。
47
+ 参数解释:后端服务器组ID。
48
48
 
49
49
  :return: The pool_id of this DeletePoolRequest.
50
50
  :rtype: str
@@ -55,7 +55,7 @@ class DeletePoolRequest:
55
55
  def pool_id(self, pool_id):
56
56
  """Sets the pool_id of this DeletePoolRequest.
57
57
 
58
- 后端服务器组ID。
58
+ 参数解释:后端服务器组ID。
59
59
 
60
60
  :param pool_id: The pool_id of this DeletePoolRequest.
61
61
  :type pool_id: str
@@ -33,11 +33,11 @@ class EipInfo:
33
33
 
34
34
  The model defined in huaweicloud sdk
35
35
 
36
- :param eip_id: eip_id
36
+ :param eip_id: 参数解释:弹性IP的ID。
37
37
  :type eip_id: str
38
- :param eip_address: eip_address
38
+ :param eip_address: 参数解释:弹性IP的IP地址。
39
39
  :type eip_address: str
40
- :param ip_version: IP版本号。 取值:4表示IPv4,6表示IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
40
+ :param ip_version: 参数解释:IP版本号。 取值范围: - 4表示IPv4。 - 6表示IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
41
41
  :type ip_version: int
42
42
  """
43
43
 
@@ -59,7 +59,7 @@ class EipInfo:
59
59
  def eip_id(self):
60
60
  """Gets the eip_id of this EipInfo.
61
61
 
62
- eip_id
62
+ 参数解释:弹性IP的ID。
63
63
 
64
64
  :return: The eip_id of this EipInfo.
65
65
  :rtype: str
@@ -70,7 +70,7 @@ class EipInfo:
70
70
  def eip_id(self, eip_id):
71
71
  """Sets the eip_id of this EipInfo.
72
72
 
73
- eip_id
73
+ 参数解释:弹性IP的ID。
74
74
 
75
75
  :param eip_id: The eip_id of this EipInfo.
76
76
  :type eip_id: str
@@ -81,7 +81,7 @@ class EipInfo:
81
81
  def eip_address(self):
82
82
  """Gets the eip_address of this EipInfo.
83
83
 
84
- eip_address
84
+ 参数解释:弹性IP的IP地址。
85
85
 
86
86
  :return: The eip_address of this EipInfo.
87
87
  :rtype: str
@@ -92,7 +92,7 @@ class EipInfo:
92
92
  def eip_address(self, eip_address):
93
93
  """Sets the eip_address of this EipInfo.
94
94
 
95
- eip_address
95
+ 参数解释:弹性IP的IP地址。
96
96
 
97
97
  :param eip_address: The eip_address of this EipInfo.
98
98
  :type eip_address: str
@@ -103,7 +103,7 @@ class EipInfo:
103
103
  def ip_version(self):
104
104
  """Gets the ip_version of this EipInfo.
105
105
 
106
- IP版本号。 取值:4表示IPv4,6表示IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
106
+ 参数解释:IP版本号。 取值范围: - 4表示IPv4。 - 6表示IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
107
107
 
108
108
  :return: The ip_version of this EipInfo.
109
109
  :rtype: int
@@ -114,7 +114,7 @@ class EipInfo:
114
114
  def ip_version(self, ip_version):
115
115
  """Sets the ip_version of this EipInfo.
116
116
 
117
- IP版本号。 取值:4表示IPv4,6表示IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
117
+ 参数解释:IP版本号。 取值范围: - 4表示IPv4。 - 6表示IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
118
118
 
119
119
  :param ip_version: The ip_version of this EipInfo.
120
120
  :type ip_version: int
@@ -19,26 +19,38 @@ class FixtedResponseConfig:
19
19
  openapi_types = {
20
20
  'status_code': 'str',
21
21
  'content_type': 'str',
22
- 'message_body': 'str'
22
+ 'message_body': 'str',
23
+ 'insert_headers_config': 'InsertHeadersConfig',
24
+ 'remove_headers_config': 'RemoveHeadersConfig',
25
+ 'traffic_limit_config': 'TrafficLimitConfig'
23
26
  }
24
27
 
25
28
  attribute_map = {
26
29
  'status_code': 'status_code',
27
30
  'content_type': 'content_type',
28
- 'message_body': 'message_body'
31
+ 'message_body': 'message_body',
32
+ 'insert_headers_config': 'insert_headers_config',
33
+ 'remove_headers_config': 'remove_headers_config',
34
+ 'traffic_limit_config': 'traffic_limit_config'
29
35
  }
30
36
 
31
- def __init__(self, status_code=None, content_type=None, message_body=None):
37
+ def __init__(self, status_code=None, content_type=None, message_body=None, insert_headers_config=None, remove_headers_config=None, traffic_limit_config=None):
32
38
  """FixtedResponseConfig
33
39
 
34
40
  The model defined in huaweicloud sdk
35
41
 
36
- :param status_code: 返回码。支持200~299,400~499,500~599。
42
+ :param status_code: 参数解释:返回码。支持200~299,400~499,500~599。
37
43
  :type status_code: str
38
- :param content_type: 返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json
44
+ :param content_type: 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json
39
45
  :type content_type: str
40
- :param message_body: 返回消息内容。
46
+ :param message_body: 参数解释:返回消息内容。
41
47
  :type message_body: str
48
+ :param insert_headers_config:
49
+ :type insert_headers_config: :class:`huaweicloudsdkelb.v3.InsertHeadersConfig`
50
+ :param remove_headers_config:
51
+ :type remove_headers_config: :class:`huaweicloudsdkelb.v3.RemoveHeadersConfig`
52
+ :param traffic_limit_config:
53
+ :type traffic_limit_config: :class:`huaweicloudsdkelb.v3.TrafficLimitConfig`
42
54
  """
43
55
 
44
56
 
@@ -46,17 +58,26 @@ class FixtedResponseConfig:
46
58
  self._status_code = None
47
59
  self._content_type = None
48
60
  self._message_body = None
61
+ self._insert_headers_config = None
62
+ self._remove_headers_config = None
63
+ self._traffic_limit_config = None
49
64
  self.discriminator = None
50
65
 
51
66
  self.status_code = status_code
52
67
  self.content_type = content_type
53
68
  self.message_body = message_body
69
+ if insert_headers_config is not None:
70
+ self.insert_headers_config = insert_headers_config
71
+ if remove_headers_config is not None:
72
+ self.remove_headers_config = remove_headers_config
73
+ if traffic_limit_config is not None:
74
+ self.traffic_limit_config = traffic_limit_config
54
75
 
55
76
  @property
56
77
  def status_code(self):
57
78
  """Gets the status_code of this FixtedResponseConfig.
58
79
 
59
- 返回码。支持200~299,400~499,500~599。
80
+ 参数解释:返回码。支持200~299,400~499,500~599。
60
81
 
61
82
  :return: The status_code of this FixtedResponseConfig.
62
83
  :rtype: str
@@ -67,7 +88,7 @@ class FixtedResponseConfig:
67
88
  def status_code(self, status_code):
68
89
  """Sets the status_code of this FixtedResponseConfig.
69
90
 
70
- 返回码。支持200~299,400~499,500~599。
91
+ 参数解释:返回码。支持200~299,400~499,500~599。
71
92
 
72
93
  :param status_code: The status_code of this FixtedResponseConfig.
73
94
  :type status_code: str
@@ -78,7 +99,7 @@ class FixtedResponseConfig:
78
99
  def content_type(self):
79
100
  """Gets the content_type of this FixtedResponseConfig.
80
101
 
81
- 返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json
102
+ 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json
82
103
 
83
104
  :return: The content_type of this FixtedResponseConfig.
84
105
  :rtype: str
@@ -89,7 +110,7 @@ class FixtedResponseConfig:
89
110
  def content_type(self, content_type):
90
111
  """Sets the content_type of this FixtedResponseConfig.
91
112
 
92
- 返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json
113
+ 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json
93
114
 
94
115
  :param content_type: The content_type of this FixtedResponseConfig.
95
116
  :type content_type: str
@@ -100,7 +121,7 @@ class FixtedResponseConfig:
100
121
  def message_body(self):
101
122
  """Gets the message_body of this FixtedResponseConfig.
102
123
 
103
- 返回消息内容。
124
+ 参数解释:返回消息内容。
104
125
 
105
126
  :return: The message_body of this FixtedResponseConfig.
106
127
  :rtype: str
@@ -111,13 +132,67 @@ class FixtedResponseConfig:
111
132
  def message_body(self, message_body):
112
133
  """Sets the message_body of this FixtedResponseConfig.
113
134
 
114
- 返回消息内容。
135
+ 参数解释:返回消息内容。
115
136
 
116
137
  :param message_body: The message_body of this FixtedResponseConfig.
117
138
  :type message_body: str
118
139
  """
119
140
  self._message_body = message_body
120
141
 
142
+ @property
143
+ def insert_headers_config(self):
144
+ """Gets the insert_headers_config of this FixtedResponseConfig.
145
+
146
+ :return: The insert_headers_config of this FixtedResponseConfig.
147
+ :rtype: :class:`huaweicloudsdkelb.v3.InsertHeadersConfig`
148
+ """
149
+ return self._insert_headers_config
150
+
151
+ @insert_headers_config.setter
152
+ def insert_headers_config(self, insert_headers_config):
153
+ """Sets the insert_headers_config of this FixtedResponseConfig.
154
+
155
+ :param insert_headers_config: The insert_headers_config of this FixtedResponseConfig.
156
+ :type insert_headers_config: :class:`huaweicloudsdkelb.v3.InsertHeadersConfig`
157
+ """
158
+ self._insert_headers_config = insert_headers_config
159
+
160
+ @property
161
+ def remove_headers_config(self):
162
+ """Gets the remove_headers_config of this FixtedResponseConfig.
163
+
164
+ :return: The remove_headers_config of this FixtedResponseConfig.
165
+ :rtype: :class:`huaweicloudsdkelb.v3.RemoveHeadersConfig`
166
+ """
167
+ return self._remove_headers_config
168
+
169
+ @remove_headers_config.setter
170
+ def remove_headers_config(self, remove_headers_config):
171
+ """Sets the remove_headers_config of this FixtedResponseConfig.
172
+
173
+ :param remove_headers_config: The remove_headers_config of this FixtedResponseConfig.
174
+ :type remove_headers_config: :class:`huaweicloudsdkelb.v3.RemoveHeadersConfig`
175
+ """
176
+ self._remove_headers_config = remove_headers_config
177
+
178
+ @property
179
+ def traffic_limit_config(self):
180
+ """Gets the traffic_limit_config of this FixtedResponseConfig.
181
+
182
+ :return: The traffic_limit_config of this FixtedResponseConfig.
183
+ :rtype: :class:`huaweicloudsdkelb.v3.TrafficLimitConfig`
184
+ """
185
+ return self._traffic_limit_config
186
+
187
+ @traffic_limit_config.setter
188
+ def traffic_limit_config(self, traffic_limit_config):
189
+ """Sets the traffic_limit_config of this FixtedResponseConfig.
190
+
191
+ :param traffic_limit_config: The traffic_limit_config of this FixtedResponseConfig.
192
+ :type traffic_limit_config: :class:`huaweicloudsdkelb.v3.TrafficLimitConfig`
193
+ """
194
+ self._traffic_limit_config = traffic_limit_config
195
+
121
196
  def to_dict(self):
122
197
  """Returns the model properties as a dict"""
123
198
  result = {}