huaweicloudsdkelb 3.1.105__py2.py3-none-any.whl → 3.1.106__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 (142) hide show
  1. huaweicloudsdkelb/v3/__init__.py +29 -0
  2. huaweicloudsdkelb/v3/elb_async_client.py +171 -34
  3. huaweicloudsdkelb/v3/elb_client.py +171 -34
  4. huaweicloudsdkelb/v3/model/__init__.py +29 -0
  5. huaweicloudsdkelb/v3/model/availability_zone.py +3 -3
  6. huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
  7. huaweicloudsdkelb/v3/model/batch_create_members_option.py +3 -3
  8. huaweicloudsdkelb/v3/model/batch_delete_ip_list_option.py +3 -3
  9. huaweicloudsdkelb/v3/model/batch_delete_ip_list_request.py +3 -3
  10. huaweicloudsdkelb/v3/model/batch_delete_ip_list_response.py +3 -3
  11. huaweicloudsdkelb/v3/model/batch_member.py +67 -9
  12. huaweicloudsdkelb/v3/model/batch_update_member.py +67 -9
  13. huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +3 -3
  14. huaweicloudsdkelb/v3/model/certificate_info.py +93 -6
  15. huaweicloudsdkelb/v3/model/change_loadbalancer_charge_mode_request_body.py +3 -3
  16. huaweicloudsdkelb/v3/model/connection_drain.py +3 -3
  17. huaweicloudsdkelb/v3/model/count_preoccupy_ip_num_request.py +6 -6
  18. huaweicloudsdkelb/v3/model/create_certificate_option.py +5 -4
  19. huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request.py +111 -0
  20. huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request_body.py +114 -0
  21. huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_response.py +145 -0
  22. huaweicloudsdkelb/v3/model/create_fixted_response_config.py +78 -3
  23. huaweicloudsdkelb/v3/model/create_health_monitor_option.py +9 -9
  24. huaweicloudsdkelb/v3/model/create_insert_header_config.py +170 -0
  25. huaweicloudsdkelb/v3/model/create_insert_headers_config.py +114 -0
  26. huaweicloudsdkelb/v3/model/create_ip_group_ip_option.py +6 -6
  27. huaweicloudsdkelb/v3/model/create_ip_group_option.py +15 -15
  28. huaweicloudsdkelb/v3/model/create_ip_group_response.py +3 -3
  29. huaweicloudsdkelb/v3/model/create_l7_policy_option.py +61 -7
  30. huaweicloudsdkelb/v3/model/create_l7_policy_rule_option.py +6 -6
  31. huaweicloudsdkelb/v3/model/create_listener_ip_group_option.py +3 -3
  32. huaweicloudsdkelb/v3/model/create_listener_option.py +33 -33
  33. huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +18 -18
  34. huaweicloudsdkelb/v3/model/create_load_balancer_option.py +76 -105
  35. huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +12 -12
  36. huaweicloudsdkelb/v3/model/create_load_balancer_response.py +6 -6
  37. huaweicloudsdkelb/v3/model/create_loadbalancer_autoscaling_option.py +6 -6
  38. huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +6 -6
  39. huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +3 -3
  40. huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +6 -6
  41. huaweicloudsdkelb/v3/model/create_member_option.py +6 -6
  42. huaweicloudsdkelb/v3/model/create_pool_option.py +84 -30
  43. huaweicloudsdkelb/v3/model/create_redirect_pools_config.py +143 -0
  44. huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +81 -6
  45. huaweicloudsdkelb/v3/model/create_redirect_pools_sticky_session_config.py +144 -0
  46. huaweicloudsdkelb/v3/model/create_redirect_url_config.py +53 -3
  47. huaweicloudsdkelb/v3/model/create_remove_header_config.py +114 -0
  48. huaweicloudsdkelb/v3/model/create_remove_headers_config.py +114 -0
  49. huaweicloudsdkelb/v3/model/create_rewrite_url_config.py +9 -9
  50. huaweicloudsdkelb/v3/model/create_rule_option.py +6 -6
  51. huaweicloudsdkelb/v3/model/create_traffic_limit_config.py +173 -0
  52. huaweicloudsdkelb/v3/model/delete_ip_group_request.py +3 -3
  53. huaweicloudsdkelb/v3/model/fixted_response_config.py +78 -3
  54. huaweicloudsdkelb/v3/model/flavor.py +79 -21
  55. huaweicloudsdkelb/v3/model/health_monitor.py +9 -9
  56. huaweicloudsdkelb/v3/model/insert_header_config.py +170 -0
  57. huaweicloudsdkelb/v3/model/insert_headers_config.py +114 -0
  58. huaweicloudsdkelb/v3/model/ip_group.py +119 -90
  59. huaweicloudsdkelb/v3/model/ip_group_ip.py +3 -3
  60. huaweicloudsdkelb/v3/model/ip_info.py +6 -6
  61. huaweicloudsdkelb/v3/model/l7_policy.py +67 -13
  62. huaweicloudsdkelb/v3/model/l7_rule.py +15 -15
  63. huaweicloudsdkelb/v3/model/list_all_members_request.py +3 -3
  64. huaweicloudsdkelb/v3/model/list_all_members_response.py +4 -4
  65. huaweicloudsdkelb/v3/model/list_certificates_request.py +64 -6
  66. huaweicloudsdkelb/v3/model/list_flavors_request.py +21 -21
  67. huaweicloudsdkelb/v3/model/list_flavors_response.py +6 -6
  68. huaweicloudsdkelb/v3/model/list_health_monitors_request.py +12 -12
  69. huaweicloudsdkelb/v3/model/list_ip_groups_request.py +53 -24
  70. huaweicloudsdkelb/v3/model/list_ip_groups_response.py +6 -6
  71. huaweicloudsdkelb/v3/model/list_l7_policies_request.py +3 -3
  72. huaweicloudsdkelb/v3/model/list_l7_rules_request.py +3 -3
  73. huaweicloudsdkelb/v3/model/list_listeners_request.py +24 -24
  74. huaweicloudsdkelb/v3/model/list_load_balancers_request.py +30 -30
  75. huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
  76. huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +6 -6
  77. huaweicloudsdkelb/v3/model/list_members_request.py +3 -3
  78. huaweicloudsdkelb/v3/model/list_pools_request.py +105 -18
  79. huaweicloudsdkelb/v3/model/list_security_policies_request.py +3 -3
  80. huaweicloudsdkelb/v3/model/listener.py +27 -27
  81. huaweicloudsdkelb/v3/model/listener_ref.py +3 -3
  82. huaweicloudsdkelb/v3/model/load_balancer.py +27 -27
  83. huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
  84. huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +6 -6
  85. huaweicloudsdkelb/v3/model/master_slave_member.py +3 -3
  86. huaweicloudsdkelb/v3/model/master_slave_pool.py +15 -15
  87. huaweicloudsdkelb/v3/model/member.py +13 -158
  88. huaweicloudsdkelb/v3/model/member_info.py +656 -0
  89. huaweicloudsdkelb/v3/model/page_info.py +9 -9
  90. huaweicloudsdkelb/v3/model/pool.py +110 -27
  91. huaweicloudsdkelb/v3/model/pool_health.py +115 -0
  92. huaweicloudsdkelb/v3/model/prepaid_create_option.py +12 -12
  93. huaweicloudsdkelb/v3/model/quota.py +12 -12
  94. huaweicloudsdkelb/v3/model/quota_info.py +3 -3
  95. huaweicloudsdkelb/v3/model/redirect_pools_config.py +144 -0
  96. huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +81 -6
  97. huaweicloudsdkelb/v3/model/redirect_pools_sticky_session_config.py +144 -0
  98. huaweicloudsdkelb/v3/model/redirect_url_config.py +65 -9
  99. huaweicloudsdkelb/v3/model/remove_header_config.py +114 -0
  100. huaweicloudsdkelb/v3/model/remove_headers_config.py +114 -0
  101. huaweicloudsdkelb/v3/model/rewrite_url_config.py +9 -9
  102. huaweicloudsdkelb/v3/model/session_persistence.py +6 -6
  103. huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_request.py +84 -0
  104. huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_response.py +145 -0
  105. huaweicloudsdkelb/v3/model/show_flavor_request.py +3 -3
  106. huaweicloudsdkelb/v3/model/show_flavor_response.py +3 -3
  107. huaweicloudsdkelb/v3/model/show_ip_group_request.py +3 -3
  108. huaweicloudsdkelb/v3/model/show_ip_group_response.py +3 -3
  109. huaweicloudsdkelb/v3/model/traffic_limit_config.py +173 -0
  110. huaweicloudsdkelb/v3/model/upadate_ip_group_ip_option.py +6 -6
  111. huaweicloudsdkelb/v3/model/update_certificate_option.py +3 -3
  112. huaweicloudsdkelb/v3/model/update_fixted_response_config.py +78 -3
  113. huaweicloudsdkelb/v3/model/update_health_monitor_option.py +9 -9
  114. huaweicloudsdkelb/v3/model/update_insert_header_config.py +170 -0
  115. huaweicloudsdkelb/v3/model/update_insert_headers_config.py +114 -0
  116. huaweicloudsdkelb/v3/model/update_ip_group_option.py +9 -9
  117. huaweicloudsdkelb/v3/model/update_ip_group_request.py +3 -3
  118. huaweicloudsdkelb/v3/model/update_ip_group_response.py +3 -3
  119. huaweicloudsdkelb/v3/model/update_ip_list_option.py +9 -9
  120. huaweicloudsdkelb/v3/model/update_ip_list_request.py +3 -3
  121. huaweicloudsdkelb/v3/model/update_ip_list_response.py +3 -3
  122. huaweicloudsdkelb/v3/model/update_l7_policy_option.py +58 -4
  123. huaweicloudsdkelb/v3/model/update_l7_rule_option.py +3 -3
  124. huaweicloudsdkelb/v3/model/update_listener_ip_group_option.py +6 -6
  125. huaweicloudsdkelb/v3/model/update_listener_option.py +24 -24
  126. huaweicloudsdkelb/v3/model/update_load_balancer_option.py +24 -24
  127. huaweicloudsdkelb/v3/model/update_load_balancer_response.py +6 -6
  128. huaweicloudsdkelb/v3/model/update_pool_option.py +37 -12
  129. huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +6 -6
  130. huaweicloudsdkelb/v3/model/update_redirect_pools_config.py +143 -0
  131. huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +81 -6
  132. huaweicloudsdkelb/v3/model/update_redirect_pools_sticky_session_config.py +144 -0
  133. huaweicloudsdkelb/v3/model/update_redirect_url_config.py +53 -3
  134. huaweicloudsdkelb/v3/model/update_remove_header_config.py +114 -0
  135. huaweicloudsdkelb/v3/model/update_remove_headers_config.py +114 -0
  136. huaweicloudsdkelb/v3/model/update_rewrite_url_config.py +173 -0
  137. huaweicloudsdkelb/v3/model/update_traffic_limit_config.py +173 -0
  138. {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/METADATA +2 -2
  139. {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/RECORD +142 -113
  140. {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/LICENSE +0 -0
  141. {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/WHEEL +0 -0
  142. {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/top_level.txt +0 -0
@@ -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,10 +33,12 @@ 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
@@ -51,6 +55,10 @@ class CreateRedirectUrlConfig:
51
55
  :type query: str
52
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,6 +84,10 @@ 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):
@@ -207,6 +221,42 @@ class CreateRedirectUrlConfig:
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 = {}
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateRemoveHeaderConfig:
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
+ 'key': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'key': 'key'
25
+ }
26
+
27
+ def __init__(self, key=None):
28
+ """CreateRemoveHeaderConfig
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param key: 被移除的请求头的参数名。取值范围: 1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out
33
+ :type key: str
34
+ """
35
+
36
+
37
+
38
+ self._key = None
39
+ self.discriminator = None
40
+
41
+ self.key = key
42
+
43
+ @property
44
+ def key(self):
45
+ """Gets the key of this CreateRemoveHeaderConfig.
46
+
47
+ 被移除的请求头的参数名。取值范围: 1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out
48
+
49
+ :return: The key of this CreateRemoveHeaderConfig.
50
+ :rtype: str
51
+ """
52
+ return self._key
53
+
54
+ @key.setter
55
+ def key(self, key):
56
+ """Sets the key of this CreateRemoveHeaderConfig.
57
+
58
+ 被移除的请求头的参数名。取值范围: 1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out
59
+
60
+ :param key: The key of this CreateRemoveHeaderConfig.
61
+ :type key: str
62
+ """
63
+ self._key = key
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, CreateRemoveHeaderConfig):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateRemoveHeadersConfig:
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
+ 'configs': 'list[CreateRemoveHeaderConfig]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'configs': 'configs'
25
+ }
26
+
27
+ def __init__(self, configs=None):
28
+ """CreateRemoveHeadersConfig
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param configs: 要移除的请求头参数列表。
33
+ :type configs: list[:class:`huaweicloudsdkelb.v3.CreateRemoveHeaderConfig`]
34
+ """
35
+
36
+
37
+
38
+ self._configs = None
39
+ self.discriminator = None
40
+
41
+ self.configs = configs
42
+
43
+ @property
44
+ def configs(self):
45
+ """Gets the configs of this CreateRemoveHeadersConfig.
46
+
47
+ 要移除的请求头参数列表。
48
+
49
+ :return: The configs of this CreateRemoveHeadersConfig.
50
+ :rtype: list[:class:`huaweicloudsdkelb.v3.CreateRemoveHeaderConfig`]
51
+ """
52
+ return self._configs
53
+
54
+ @configs.setter
55
+ def configs(self, configs):
56
+ """Sets the configs of this CreateRemoveHeadersConfig.
57
+
58
+ 要移除的请求头参数列表。
59
+
60
+ :param configs: The configs of this CreateRemoveHeadersConfig.
61
+ :type configs: list[:class:`huaweicloudsdkelb.v3.CreateRemoveHeaderConfig`]
62
+ """
63
+ self._configs = configs
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, CreateRemoveHeadersConfig):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -33,11 +33,11 @@ class CreateRewriteUrlConfig:
33
33
 
34
34
  The model defined in huaweicloud sdk
35
35
 
36
- :param host: url重写的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。默认值${host}表示继承原值(即与被重写请求保持一致)。
36
+ :param host: 重定向的域名。取值只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host},表示继承原值(即与被重写请求host保持一致)。
37
37
  :type host: str
38
- :param path: url重定向的路径。默认值${path}表示继承原值(即与被重写请求保持一致)。 只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#.
38
+ :param path: 重定向的请求路径。 取值只能包含英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认值${path}表示继承原值(即与被重写请求保持一致)。
39
39
  :type path: str
40
- :param query: url重定向的查询字符串。默认${query}表示继承原值(即与被重写请求保持一致)。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#
40
+ :param query: 重定向的查询字符串。取值只能包含英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认${query},表示继承原值(即与被重写请求保持一致)。
41
41
  :type query: str
42
42
  """
43
43
 
@@ -59,7 +59,7 @@ class CreateRewriteUrlConfig:
59
59
  def host(self):
60
60
  """Gets the host of this CreateRewriteUrlConfig.
61
61
 
62
- url重写的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。默认值${host}表示继承原值(即与被重写请求保持一致)。
62
+ 重定向的域名。取值只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host},表示继承原值(即与被重写请求host保持一致)。
63
63
 
64
64
  :return: The host of this CreateRewriteUrlConfig.
65
65
  :rtype: str
@@ -70,7 +70,7 @@ class CreateRewriteUrlConfig:
70
70
  def host(self, host):
71
71
  """Sets the host of this CreateRewriteUrlConfig.
72
72
 
73
- url重写的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。默认值${host}表示继承原值(即与被重写请求保持一致)。
73
+ 重定向的域名。取值只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host},表示继承原值(即与被重写请求host保持一致)。
74
74
 
75
75
  :param host: The host of this CreateRewriteUrlConfig.
76
76
  :type host: str
@@ -81,7 +81,7 @@ class CreateRewriteUrlConfig:
81
81
  def path(self):
82
82
  """Gets the path of this CreateRewriteUrlConfig.
83
83
 
84
- url重定向的路径。默认值${path}表示继承原值(即与被重写请求保持一致)。 只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#.
84
+ 重定向的请求路径。 取值只能包含英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认值${path}表示继承原值(即与被重写请求保持一致)。
85
85
 
86
86
  :return: The path of this CreateRewriteUrlConfig.
87
87
  :rtype: str
@@ -92,7 +92,7 @@ class CreateRewriteUrlConfig:
92
92
  def path(self, path):
93
93
  """Sets the path of this CreateRewriteUrlConfig.
94
94
 
95
- url重定向的路径。默认值${path}表示继承原值(即与被重写请求保持一致)。 只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#.
95
+ 重定向的请求路径。 取值只能包含英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认值${path}表示继承原值(即与被重写请求保持一致)。
96
96
 
97
97
  :param path: The path of this CreateRewriteUrlConfig.
98
98
  :type path: str
@@ -103,7 +103,7 @@ class CreateRewriteUrlConfig:
103
103
  def query(self):
104
104
  """Gets the query of this CreateRewriteUrlConfig.
105
105
 
106
- url重定向的查询字符串。默认${query}表示继承原值(即与被重写请求保持一致)。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#
106
+ 重定向的查询字符串。取值只能包含英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认${query},表示继承原值(即与被重写请求保持一致)。
107
107
 
108
108
  :return: The query of this CreateRewriteUrlConfig.
109
109
  :rtype: str
@@ -114,7 +114,7 @@ class CreateRewriteUrlConfig:
114
114
  def query(self, query):
115
115
  """Sets the query of this CreateRewriteUrlConfig.
116
116
 
117
- url重定向的查询字符串。默认${query}表示继承原值(即与被重写请求保持一致)。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#
117
+ 重定向的查询字符串。取值只能包含英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认${query},表示继承原值(即与被重写请求保持一致)。
118
118
 
119
119
  :param query: The query of this CreateRewriteUrlConfig.
120
120
  :type query: str
@@ -53,11 +53,11 @@ class CreateRuleOption:
53
53
  :type value: str
54
54
  :param project_id: 转发规则所在的项目ID。
55
55
  :type project_id: str
56
- :param type: 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
56
+ :param type: 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
57
57
  :type type: str
58
58
  :param invert: 是否反向匹配。 取值:true、false,默认false。 不支持该字段,请勿使用。
59
59
  :type invert: bool
60
- :param conditions: 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
60
+ :param conditions: 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
61
61
  :type conditions: list[:class:`huaweicloudsdkelb.v3.CreateRuleCondition`]
62
62
  """
63
63
 
@@ -201,7 +201,7 @@ class CreateRuleOption:
201
201
  def type(self):
202
202
  """Gets the type of this CreateRuleOption.
203
203
 
204
- 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
204
+ 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
205
205
 
206
206
  :return: The type of this CreateRuleOption.
207
207
  :rtype: str
@@ -212,7 +212,7 @@ class CreateRuleOption:
212
212
  def type(self, type):
213
213
  """Sets the type of this CreateRuleOption.
214
214
 
215
- 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
215
+ 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
216
216
 
217
217
  :param type: The type of this CreateRuleOption.
218
218
  :type type: str
@@ -245,7 +245,7 @@ class CreateRuleOption:
245
245
  def conditions(self):
246
246
  """Gets the conditions of this CreateRuleOption.
247
247
 
248
- 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
248
+ 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
249
249
 
250
250
  :return: The conditions of this CreateRuleOption.
251
251
  :rtype: list[:class:`huaweicloudsdkelb.v3.CreateRuleCondition`]
@@ -256,7 +256,7 @@ class CreateRuleOption:
256
256
  def conditions(self, conditions):
257
257
  """Sets the conditions of this CreateRuleOption.
258
258
 
259
- 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
259
+ 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
260
260
 
261
261
  :param conditions: The conditions of this CreateRuleOption.
262
262
  :type conditions: list[:class:`huaweicloudsdkelb.v3.CreateRuleCondition`]