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,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateRedirectPoolsConfig:
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': 'str'
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
+ """CreateRedirectPoolsConfig
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param pool_id: 参数解释:所在后端服务器组ID。
35
+ :type pool_id: str
36
+ :param weight: 参数解释:转发策略主机组的权重。请求将根据该权重进行负载分发到不同的主机组。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值范围:1-100 默认取值:1
37
+ :type weight: str
38
+ """
39
+
40
+
41
+
42
+ self._pool_id = None
43
+ self._weight = None
44
+ self.discriminator = None
45
+
46
+ self.pool_id = pool_id
47
+ if weight is not None:
48
+ self.weight = weight
49
+
50
+ @property
51
+ def pool_id(self):
52
+ """Gets the pool_id of this CreateRedirectPoolsConfig.
53
+
54
+ 参数解释:所在后端服务器组ID。
55
+
56
+ :return: The pool_id of this CreateRedirectPoolsConfig.
57
+ :rtype: str
58
+ """
59
+ return self._pool_id
60
+
61
+ @pool_id.setter
62
+ def pool_id(self, pool_id):
63
+ """Sets the pool_id of this CreateRedirectPoolsConfig.
64
+
65
+ 参数解释:所在后端服务器组ID。
66
+
67
+ :param pool_id: The pool_id of this CreateRedirectPoolsConfig.
68
+ :type pool_id: str
69
+ """
70
+ self._pool_id = pool_id
71
+
72
+ @property
73
+ def weight(self):
74
+ """Gets the weight of this CreateRedirectPoolsConfig.
75
+
76
+ 参数解释:转发策略主机组的权重。请求将根据该权重进行负载分发到不同的主机组。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值范围:1-100 默认取值:1
77
+
78
+ :return: The weight of this CreateRedirectPoolsConfig.
79
+ :rtype: str
80
+ """
81
+ return self._weight
82
+
83
+ @weight.setter
84
+ def weight(self, weight):
85
+ """Sets the weight of this CreateRedirectPoolsConfig.
86
+
87
+ 参数解释:转发策略主机组的权重。请求将根据该权重进行负载分发到不同的主机组。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值范围:1-100 默认取值:1
88
+
89
+ :param weight: The weight of this CreateRedirectPoolsConfig.
90
+ :type weight: str
91
+ """
92
+ self._weight = weight
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, CreateRedirectPoolsConfig):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other
@@ -18,41 +18,62 @@ class CreateRedirectPoolsExtendConfig:
18
18
 
19
19
  openapi_types = {
20
20
  'rewrite_url_enable': 'bool',
21
- 'rewrite_url_config': 'CreateRewriteUrlConfig'
21
+ 'rewrite_url_config': 'CreateRewriteUrlConfig',
22
+ 'insert_headers_config': 'CreateInsertHeadersConfig',
23
+ 'remove_headers_config': 'CreateRemoveHeadersConfig',
24
+ 'traffic_limit_config': 'CreateTrafficLimitConfig'
22
25
  }
23
26
 
24
27
  attribute_map = {
25
28
  'rewrite_url_enable': 'rewrite_url_enable',
26
- 'rewrite_url_config': 'rewrite_url_config'
29
+ 'rewrite_url_config': 'rewrite_url_config',
30
+ 'insert_headers_config': 'insert_headers_config',
31
+ 'remove_headers_config': 'remove_headers_config',
32
+ 'traffic_limit_config': 'traffic_limit_config'
27
33
  }
28
34
 
29
- def __init__(self, rewrite_url_enable=None, rewrite_url_config=None):
35
+ def __init__(self, rewrite_url_enable=None, rewrite_url_config=None, insert_headers_config=None, remove_headers_config=None, traffic_limit_config=None):
30
36
  """CreateRedirectPoolsExtendConfig
31
37
 
32
38
  The model defined in huaweicloud sdk
33
39
 
34
- :param rewrite_url_enable: url重写的开关
40
+ :param rewrite_url_enable: 参数解释:是否开启url重定向。
35
41
  :type rewrite_url_enable: bool
36
42
  :param rewrite_url_config:
37
43
  :type rewrite_url_config: :class:`huaweicloudsdkelb.v3.CreateRewriteUrlConfig`
44
+ :param insert_headers_config:
45
+ :type insert_headers_config: :class:`huaweicloudsdkelb.v3.CreateInsertHeadersConfig`
46
+ :param remove_headers_config:
47
+ :type remove_headers_config: :class:`huaweicloudsdkelb.v3.CreateRemoveHeadersConfig`
48
+ :param traffic_limit_config:
49
+ :type traffic_limit_config: :class:`huaweicloudsdkelb.v3.CreateTrafficLimitConfig`
38
50
  """
39
51
 
40
52
 
41
53
 
42
54
  self._rewrite_url_enable = None
43
55
  self._rewrite_url_config = None
56
+ self._insert_headers_config = None
57
+ self._remove_headers_config = None
58
+ self._traffic_limit_config = None
44
59
  self.discriminator = None
45
60
 
46
61
  if rewrite_url_enable is not None:
47
62
  self.rewrite_url_enable = rewrite_url_enable
48
63
  if rewrite_url_config is not None:
49
64
  self.rewrite_url_config = rewrite_url_config
65
+ if insert_headers_config is not None:
66
+ self.insert_headers_config = insert_headers_config
67
+ if remove_headers_config is not None:
68
+ self.remove_headers_config = remove_headers_config
69
+ if traffic_limit_config is not None:
70
+ self.traffic_limit_config = traffic_limit_config
50
71
 
51
72
  @property
52
73
  def rewrite_url_enable(self):
53
74
  """Gets the rewrite_url_enable of this CreateRedirectPoolsExtendConfig.
54
75
 
55
- url重写的开关
76
+ 参数解释:是否开启url重定向。
56
77
 
57
78
  :return: The rewrite_url_enable of this CreateRedirectPoolsExtendConfig.
58
79
  :rtype: bool
@@ -63,7 +84,7 @@ class CreateRedirectPoolsExtendConfig:
63
84
  def rewrite_url_enable(self, rewrite_url_enable):
64
85
  """Sets the rewrite_url_enable of this CreateRedirectPoolsExtendConfig.
65
86
 
66
- url重写的开关
87
+ 参数解释:是否开启url重定向。
67
88
 
68
89
  :param rewrite_url_enable: The rewrite_url_enable of this CreateRedirectPoolsExtendConfig.
69
90
  :type rewrite_url_enable: bool
@@ -88,6 +109,60 @@ class CreateRedirectPoolsExtendConfig:
88
109
  """
89
110
  self._rewrite_url_config = rewrite_url_config
90
111
 
112
+ @property
113
+ def insert_headers_config(self):
114
+ """Gets the insert_headers_config of this CreateRedirectPoolsExtendConfig.
115
+
116
+ :return: The insert_headers_config of this CreateRedirectPoolsExtendConfig.
117
+ :rtype: :class:`huaweicloudsdkelb.v3.CreateInsertHeadersConfig`
118
+ """
119
+ return self._insert_headers_config
120
+
121
+ @insert_headers_config.setter
122
+ def insert_headers_config(self, insert_headers_config):
123
+ """Sets the insert_headers_config of this CreateRedirectPoolsExtendConfig.
124
+
125
+ :param insert_headers_config: The insert_headers_config of this CreateRedirectPoolsExtendConfig.
126
+ :type insert_headers_config: :class:`huaweicloudsdkelb.v3.CreateInsertHeadersConfig`
127
+ """
128
+ self._insert_headers_config = insert_headers_config
129
+
130
+ @property
131
+ def remove_headers_config(self):
132
+ """Gets the remove_headers_config of this CreateRedirectPoolsExtendConfig.
133
+
134
+ :return: The remove_headers_config of this CreateRedirectPoolsExtendConfig.
135
+ :rtype: :class:`huaweicloudsdkelb.v3.CreateRemoveHeadersConfig`
136
+ """
137
+ return self._remove_headers_config
138
+
139
+ @remove_headers_config.setter
140
+ def remove_headers_config(self, remove_headers_config):
141
+ """Sets the remove_headers_config of this CreateRedirectPoolsExtendConfig.
142
+
143
+ :param remove_headers_config: The remove_headers_config of this CreateRedirectPoolsExtendConfig.
144
+ :type remove_headers_config: :class:`huaweicloudsdkelb.v3.CreateRemoveHeadersConfig`
145
+ """
146
+ self._remove_headers_config = remove_headers_config
147
+
148
+ @property
149
+ def traffic_limit_config(self):
150
+ """Gets the traffic_limit_config of this CreateRedirectPoolsExtendConfig.
151
+
152
+ :return: The traffic_limit_config of this CreateRedirectPoolsExtendConfig.
153
+ :rtype: :class:`huaweicloudsdkelb.v3.CreateTrafficLimitConfig`
154
+ """
155
+ return self._traffic_limit_config
156
+
157
+ @traffic_limit_config.setter
158
+ def traffic_limit_config(self, traffic_limit_config):
159
+ """Sets the traffic_limit_config of this CreateRedirectPoolsExtendConfig.
160
+
161
+ :param traffic_limit_config: The traffic_limit_config of this CreateRedirectPoolsExtendConfig.
162
+ :type traffic_limit_config: :class:`huaweicloudsdkelb.v3.CreateTrafficLimitConfig`
163
+ """
164
+ self._traffic_limit_config = traffic_limit_config
165
+
91
166
  def to_dict(self):
92
167
  """Returns the model properties as a dict"""
93
168
  result = {}
@@ -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 CreateRedirectPoolsStickySessionConfig:
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
+ 'enable': 'bool',
21
+ 'timeout': 'int'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'enable': 'enable',
26
+ 'timeout': 'timeout'
27
+ }
28
+
29
+ def __init__(self, enable=None, timeout=None):
30
+ """CreateRedirectPoolsStickySessionConfig
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param enable: 参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。
35
+ :type enable: bool
36
+ :param timeout: 参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test)
37
+ :type timeout: int
38
+ """
39
+
40
+
41
+
42
+ self._enable = None
43
+ self._timeout = None
44
+ self.discriminator = None
45
+
46
+ if enable is not None:
47
+ self.enable = enable
48
+ if timeout is not None:
49
+ self.timeout = timeout
50
+
51
+ @property
52
+ def enable(self):
53
+ """Gets the enable of this CreateRedirectPoolsStickySessionConfig.
54
+
55
+ 参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。
56
+
57
+ :return: The enable of this CreateRedirectPoolsStickySessionConfig.
58
+ :rtype: bool
59
+ """
60
+ return self._enable
61
+
62
+ @enable.setter
63
+ def enable(self, enable):
64
+ """Sets the enable of this CreateRedirectPoolsStickySessionConfig.
65
+
66
+ 参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。
67
+
68
+ :param enable: The enable of this CreateRedirectPoolsStickySessionConfig.
69
+ :type enable: bool
70
+ """
71
+ self._enable = enable
72
+
73
+ @property
74
+ def timeout(self):
75
+ """Gets the timeout of this CreateRedirectPoolsStickySessionConfig.
76
+
77
+ 参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test)
78
+
79
+ :return: The timeout of this CreateRedirectPoolsStickySessionConfig.
80
+ :rtype: int
81
+ """
82
+ return self._timeout
83
+
84
+ @timeout.setter
85
+ def timeout(self, timeout):
86
+ """Sets the timeout of this CreateRedirectPoolsStickySessionConfig.
87
+
88
+ 参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test)
89
+
90
+ :param timeout: The timeout of this CreateRedirectPoolsStickySessionConfig.
91
+ :type timeout: int
92
+ """
93
+ self._timeout = timeout
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, CreateRedirectPoolsStickySessionConfig):
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
@@ -22,7 +22,9 @@ class CreateRedirectUrlConfig:
22
22
  'port': 'str',
23
23
  'path': 'str',
24
24
  'query': 'str',
25
- 'status_code': 'str'
25
+ 'status_code': 'str',
26
+ 'insert_headers_config': 'CreateInsertHeadersConfig',
27
+ 'remove_headers_config': 'CreateRemoveHeadersConfig'
26
28
  }
27
29
 
28
30
  attribute_map = {
@@ -31,26 +33,32 @@ class CreateRedirectUrlConfig:
31
33
  'port': 'port',
32
34
  'path': 'path',
33
35
  'query': 'query',
34
- 'status_code': 'status_code'
36
+ 'status_code': 'status_code',
37
+ 'insert_headers_config': 'insert_headers_config',
38
+ 'remove_headers_config': 'remove_headers_config'
35
39
  }
36
40
 
37
- def __init__(self, protocol=None, host=None, port=None, path=None, query=None, status_code=None):
41
+ def __init__(self, protocol=None, host=None, port=None, path=None, query=None, status_code=None, insert_headers_config=None, remove_headers_config=None):
38
42
  """CreateRedirectUrlConfig
39
43
 
40
44
  The model defined in huaweicloud sdk
41
45
 
42
- :param protocol: 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值范围: - HTTP - HTTPS - ${protocol}
46
+ :param protocol: 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。 默认取值:${protocol}
43
47
  :type protocol: str
44
- :param host: 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host}表示继承原值(即与被转发请求保持一致)。
48
+ :param host: 参数解释:重定向的主机名。 取值范围:字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被转发请求保持一致)。
45
49
  :type host: str
46
- :param port: 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。
50
+ :param port: 参数解释:重定向到的端口。 默认取值:${port},表示继承原值(即与被转发请求保持一致)。
47
51
  :type port: str
48
- :param path: 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。其中$1,$2会匹配请求url通配符星号(*)
52
+ :param path: 参数解释:重定向的路径。 取值范围:只能包含英文字母、数字、_~';@^-%#&$.\\*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${path},表示继承原值(即与被转发请求保持一致)。
49
53
  :type path: str
50
- :param query: 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(*)
54
+ :param query: 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致)
51
55
  :type query: str
52
- :param status_code: 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
56
+ :param status_code: 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
53
57
  :type status_code: str
58
+ :param insert_headers_config:
59
+ :type insert_headers_config: :class:`huaweicloudsdkelb.v3.CreateInsertHeadersConfig`
60
+ :param remove_headers_config:
61
+ :type remove_headers_config: :class:`huaweicloudsdkelb.v3.CreateRemoveHeadersConfig`
54
62
  """
55
63
 
56
64
 
@@ -61,6 +69,8 @@ class CreateRedirectUrlConfig:
61
69
  self._path = None
62
70
  self._query = None
63
71
  self._status_code = None
72
+ self._insert_headers_config = None
73
+ self._remove_headers_config = None
64
74
  self.discriminator = None
65
75
 
66
76
  if protocol is not None:
@@ -74,12 +84,16 @@ class CreateRedirectUrlConfig:
74
84
  if query is not None:
75
85
  self.query = query
76
86
  self.status_code = status_code
87
+ if insert_headers_config is not None:
88
+ self.insert_headers_config = insert_headers_config
89
+ if remove_headers_config is not None:
90
+ self.remove_headers_config = remove_headers_config
77
91
 
78
92
  @property
79
93
  def protocol(self):
80
94
  """Gets the protocol of this CreateRedirectUrlConfig.
81
95
 
82
- 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值范围: - HTTP - HTTPS - ${protocol}
96
+ 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。 默认取值:${protocol}
83
97
 
84
98
  :return: The protocol of this CreateRedirectUrlConfig.
85
99
  :rtype: str
@@ -90,7 +104,7 @@ class CreateRedirectUrlConfig:
90
104
  def protocol(self, protocol):
91
105
  """Sets the protocol of this CreateRedirectUrlConfig.
92
106
 
93
- 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值范围: - HTTP - HTTPS - ${protocol}
107
+ 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。 默认取值:${protocol}
94
108
 
95
109
  :param protocol: The protocol of this CreateRedirectUrlConfig.
96
110
  :type protocol: str
@@ -101,7 +115,7 @@ class CreateRedirectUrlConfig:
101
115
  def host(self):
102
116
  """Gets the host of this CreateRedirectUrlConfig.
103
117
 
104
- 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host}表示继承原值(即与被转发请求保持一致)。
118
+ 参数解释:重定向的主机名。 取值范围:字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被转发请求保持一致)。
105
119
 
106
120
  :return: The host of this CreateRedirectUrlConfig.
107
121
  :rtype: str
@@ -112,7 +126,7 @@ class CreateRedirectUrlConfig:
112
126
  def host(self, host):
113
127
  """Sets the host of this CreateRedirectUrlConfig.
114
128
 
115
- 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host}表示继承原值(即与被转发请求保持一致)。
129
+ 参数解释:重定向的主机名。 取值范围:字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被转发请求保持一致)。
116
130
 
117
131
  :param host: The host of this CreateRedirectUrlConfig.
118
132
  :type host: str
@@ -123,7 +137,7 @@ class CreateRedirectUrlConfig:
123
137
  def port(self):
124
138
  """Gets the port of this CreateRedirectUrlConfig.
125
139
 
126
- 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。
140
+ 参数解释:重定向到的端口。 默认取值:${port},表示继承原值(即与被转发请求保持一致)。
127
141
 
128
142
  :return: The port of this CreateRedirectUrlConfig.
129
143
  :rtype: str
@@ -134,7 +148,7 @@ class CreateRedirectUrlConfig:
134
148
  def port(self, port):
135
149
  """Sets the port of this CreateRedirectUrlConfig.
136
150
 
137
- 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。
151
+ 参数解释:重定向到的端口。 默认取值:${port},表示继承原值(即与被转发请求保持一致)。
138
152
 
139
153
  :param port: The port of this CreateRedirectUrlConfig.
140
154
  :type port: str
@@ -145,7 +159,7 @@ class CreateRedirectUrlConfig:
145
159
  def path(self):
146
160
  """Gets the path of this CreateRedirectUrlConfig.
147
161
 
148
- 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。其中$1,$2会匹配请求url通配符星号(*)
162
+ 参数解释:重定向的路径。 取值范围:只能包含英文字母、数字、_~';@^-%#&$.\\*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${path},表示继承原值(即与被转发请求保持一致)。
149
163
 
150
164
  :return: The path of this CreateRedirectUrlConfig.
151
165
  :rtype: str
@@ -156,7 +170,7 @@ class CreateRedirectUrlConfig:
156
170
  def path(self, path):
157
171
  """Sets the path of this CreateRedirectUrlConfig.
158
172
 
159
- 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。其中$1,$2会匹配请求url通配符星号(*)
173
+ 参数解释:重定向的路径。 取值范围:只能包含英文字母、数字、_~';@^-%#&$.\\*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${path},表示继承原值(即与被转发请求保持一致)。
160
174
 
161
175
  :param path: The path of this CreateRedirectUrlConfig.
162
176
  :type path: str
@@ -167,7 +181,7 @@ class CreateRedirectUrlConfig:
167
181
  def query(self):
168
182
  """Gets the query of this CreateRedirectUrlConfig.
169
183
 
170
- 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(*)
184
+ 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致)
171
185
 
172
186
  :return: The query of this CreateRedirectUrlConfig.
173
187
  :rtype: str
@@ -178,7 +192,7 @@ class CreateRedirectUrlConfig:
178
192
  def query(self, query):
179
193
  """Sets the query of this CreateRedirectUrlConfig.
180
194
 
181
- 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(*)
195
+ 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致)
182
196
 
183
197
  :param query: The query of this CreateRedirectUrlConfig.
184
198
  :type query: str
@@ -189,7 +203,7 @@ class CreateRedirectUrlConfig:
189
203
  def status_code(self):
190
204
  """Gets the status_code of this CreateRedirectUrlConfig.
191
205
 
192
- 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
206
+ 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
193
207
 
194
208
  :return: The status_code of this CreateRedirectUrlConfig.
195
209
  :rtype: str
@@ -200,13 +214,49 @@ class CreateRedirectUrlConfig:
200
214
  def status_code(self, status_code):
201
215
  """Sets the status_code of this CreateRedirectUrlConfig.
202
216
 
203
- 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
217
+ 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
204
218
 
205
219
  :param status_code: The status_code of this CreateRedirectUrlConfig.
206
220
  :type status_code: str
207
221
  """
208
222
  self._status_code = status_code
209
223
 
224
+ @property
225
+ def insert_headers_config(self):
226
+ """Gets the insert_headers_config of this CreateRedirectUrlConfig.
227
+
228
+ :return: The insert_headers_config of this CreateRedirectUrlConfig.
229
+ :rtype: :class:`huaweicloudsdkelb.v3.CreateInsertHeadersConfig`
230
+ """
231
+ return self._insert_headers_config
232
+
233
+ @insert_headers_config.setter
234
+ def insert_headers_config(self, insert_headers_config):
235
+ """Sets the insert_headers_config of this CreateRedirectUrlConfig.
236
+
237
+ :param insert_headers_config: The insert_headers_config of this CreateRedirectUrlConfig.
238
+ :type insert_headers_config: :class:`huaweicloudsdkelb.v3.CreateInsertHeadersConfig`
239
+ """
240
+ self._insert_headers_config = insert_headers_config
241
+
242
+ @property
243
+ def remove_headers_config(self):
244
+ """Gets the remove_headers_config of this CreateRedirectUrlConfig.
245
+
246
+ :return: The remove_headers_config of this CreateRedirectUrlConfig.
247
+ :rtype: :class:`huaweicloudsdkelb.v3.CreateRemoveHeadersConfig`
248
+ """
249
+ return self._remove_headers_config
250
+
251
+ @remove_headers_config.setter
252
+ def remove_headers_config(self, remove_headers_config):
253
+ """Sets the remove_headers_config of this CreateRedirectUrlConfig.
254
+
255
+ :param remove_headers_config: The remove_headers_config of this CreateRedirectUrlConfig.
256
+ :type remove_headers_config: :class:`huaweicloudsdkelb.v3.CreateRemoveHeadersConfig`
257
+ """
258
+ self._remove_headers_config = remove_headers_config
259
+
210
260
  def to_dict(self):
211
261
  """Returns the model properties as a dict"""
212
262
  result = {}