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.
- huaweicloudsdkelb/v3/__init__.py +29 -0
- huaweicloudsdkelb/v3/elb_async_client.py +171 -34
- huaweicloudsdkelb/v3/elb_client.py +171 -34
- huaweicloudsdkelb/v3/model/__init__.py +29 -0
- huaweicloudsdkelb/v3/model/availability_zone.py +3 -3
- huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
- huaweicloudsdkelb/v3/model/batch_create_members_option.py +3 -3
- huaweicloudsdkelb/v3/model/batch_delete_ip_list_option.py +3 -3
- huaweicloudsdkelb/v3/model/batch_delete_ip_list_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_delete_ip_list_response.py +3 -3
- huaweicloudsdkelb/v3/model/batch_member.py +67 -9
- huaweicloudsdkelb/v3/model/batch_update_member.py +67 -9
- huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +3 -3
- huaweicloudsdkelb/v3/model/certificate_info.py +93 -6
- huaweicloudsdkelb/v3/model/change_loadbalancer_charge_mode_request_body.py +3 -3
- huaweicloudsdkelb/v3/model/connection_drain.py +3 -3
- huaweicloudsdkelb/v3/model/count_preoccupy_ip_num_request.py +6 -6
- huaweicloudsdkelb/v3/model/create_certificate_option.py +5 -4
- huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request.py +111 -0
- huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request_body.py +114 -0
- huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_response.py +145 -0
- huaweicloudsdkelb/v3/model/create_fixted_response_config.py +78 -3
- huaweicloudsdkelb/v3/model/create_health_monitor_option.py +9 -9
- huaweicloudsdkelb/v3/model/create_insert_header_config.py +170 -0
- huaweicloudsdkelb/v3/model/create_insert_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/create_ip_group_ip_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_ip_group_option.py +15 -15
- huaweicloudsdkelb/v3/model/create_ip_group_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_l7_policy_option.py +61 -7
- huaweicloudsdkelb/v3/model/create_l7_policy_rule_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_listener_ip_group_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_listener_option.py +33 -33
- huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +18 -18
- huaweicloudsdkelb/v3/model/create_load_balancer_option.py +76 -105
- huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +12 -12
- huaweicloudsdkelb/v3/model/create_load_balancer_response.py +6 -6
- huaweicloudsdkelb/v3/model/create_loadbalancer_autoscaling_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_member_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_pool_option.py +84 -30
- huaweicloudsdkelb/v3/model/create_redirect_pools_config.py +143 -0
- huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +81 -6
- huaweicloudsdkelb/v3/model/create_redirect_pools_sticky_session_config.py +144 -0
- huaweicloudsdkelb/v3/model/create_redirect_url_config.py +53 -3
- huaweicloudsdkelb/v3/model/create_remove_header_config.py +114 -0
- huaweicloudsdkelb/v3/model/create_remove_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/create_rewrite_url_config.py +9 -9
- huaweicloudsdkelb/v3/model/create_rule_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_traffic_limit_config.py +173 -0
- huaweicloudsdkelb/v3/model/delete_ip_group_request.py +3 -3
- huaweicloudsdkelb/v3/model/fixted_response_config.py +78 -3
- huaweicloudsdkelb/v3/model/flavor.py +79 -21
- huaweicloudsdkelb/v3/model/health_monitor.py +9 -9
- huaweicloudsdkelb/v3/model/insert_header_config.py +170 -0
- huaweicloudsdkelb/v3/model/insert_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/ip_group.py +119 -90
- huaweicloudsdkelb/v3/model/ip_group_ip.py +3 -3
- huaweicloudsdkelb/v3/model/ip_info.py +6 -6
- huaweicloudsdkelb/v3/model/l7_policy.py +67 -13
- huaweicloudsdkelb/v3/model/l7_rule.py +15 -15
- huaweicloudsdkelb/v3/model/list_all_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_all_members_response.py +4 -4
- huaweicloudsdkelb/v3/model/list_certificates_request.py +64 -6
- huaweicloudsdkelb/v3/model/list_flavors_request.py +21 -21
- huaweicloudsdkelb/v3/model/list_flavors_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_health_monitors_request.py +12 -12
- huaweicloudsdkelb/v3/model/list_ip_groups_request.py +53 -24
- huaweicloudsdkelb/v3/model/list_ip_groups_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_l7_policies_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_l7_rules_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_listeners_request.py +24 -24
- huaweicloudsdkelb/v3/model/list_load_balancers_request.py +30 -30
- huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +6 -6
- huaweicloudsdkelb/v3/model/list_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_pools_request.py +105 -18
- huaweicloudsdkelb/v3/model/list_security_policies_request.py +3 -3
- huaweicloudsdkelb/v3/model/listener.py +27 -27
- huaweicloudsdkelb/v3/model/listener_ref.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer.py +27 -27
- huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
- huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +6 -6
- huaweicloudsdkelb/v3/model/master_slave_member.py +3 -3
- huaweicloudsdkelb/v3/model/master_slave_pool.py +15 -15
- huaweicloudsdkelb/v3/model/member.py +13 -158
- huaweicloudsdkelb/v3/model/member_info.py +656 -0
- huaweicloudsdkelb/v3/model/page_info.py +9 -9
- huaweicloudsdkelb/v3/model/pool.py +110 -27
- huaweicloudsdkelb/v3/model/pool_health.py +115 -0
- huaweicloudsdkelb/v3/model/prepaid_create_option.py +12 -12
- huaweicloudsdkelb/v3/model/quota.py +12 -12
- huaweicloudsdkelb/v3/model/quota_info.py +3 -3
- huaweicloudsdkelb/v3/model/redirect_pools_config.py +144 -0
- huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +81 -6
- huaweicloudsdkelb/v3/model/redirect_pools_sticky_session_config.py +144 -0
- huaweicloudsdkelb/v3/model/redirect_url_config.py +65 -9
- huaweicloudsdkelb/v3/model/remove_header_config.py +114 -0
- huaweicloudsdkelb/v3/model/remove_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/rewrite_url_config.py +9 -9
- huaweicloudsdkelb/v3/model/session_persistence.py +6 -6
- huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_request.py +84 -0
- huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_response.py +145 -0
- huaweicloudsdkelb/v3/model/show_flavor_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_flavor_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_ip_group_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_ip_group_response.py +3 -3
- huaweicloudsdkelb/v3/model/traffic_limit_config.py +173 -0
- huaweicloudsdkelb/v3/model/upadate_ip_group_ip_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_certificate_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_fixted_response_config.py +78 -3
- huaweicloudsdkelb/v3/model/update_health_monitor_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_insert_header_config.py +170 -0
- huaweicloudsdkelb/v3/model/update_insert_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/update_ip_group_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_ip_group_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_ip_group_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_ip_list_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_ip_list_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_ip_list_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_l7_policy_option.py +58 -4
- huaweicloudsdkelb/v3/model/update_l7_rule_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_listener_ip_group_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_listener_option.py +24 -24
- huaweicloudsdkelb/v3/model/update_load_balancer_option.py +24 -24
- huaweicloudsdkelb/v3/model/update_load_balancer_response.py +6 -6
- huaweicloudsdkelb/v3/model/update_pool_option.py +37 -12
- huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_redirect_pools_config.py +143 -0
- huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +81 -6
- huaweicloudsdkelb/v3/model/update_redirect_pools_sticky_session_config.py +144 -0
- huaweicloudsdkelb/v3/model/update_redirect_url_config.py +53 -3
- huaweicloudsdkelb/v3/model/update_remove_header_config.py +114 -0
- huaweicloudsdkelb/v3/model/update_remove_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/update_rewrite_url_config.py +173 -0
- huaweicloudsdkelb/v3/model/update_traffic_limit_config.py +173 -0
- {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/RECORD +142 -113
- {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/top_level.txt +0 -0
@@ -22,7 +22,9 @@ class UpdateRedirectUrlConfig:
|
|
22
22
|
'port': 'str',
|
23
23
|
'path': 'str',
|
24
24
|
'query': 'str',
|
25
|
-
'status_code': 'str'
|
25
|
+
'status_code': 'str',
|
26
|
+
'insert_headers_config': 'UpdateInsertHeadersConfig',
|
27
|
+
'remove_headers_config': 'UpdateRemoveHeadersConfig'
|
26
28
|
}
|
27
29
|
|
28
30
|
attribute_map = {
|
@@ -31,10 +33,12 @@ class UpdateRedirectUrlConfig:
|
|
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
|
"""UpdateRedirectUrlConfig
|
39
43
|
|
40
44
|
The model defined in huaweicloud sdk
|
@@ -51,6 +55,10 @@ class UpdateRedirectUrlConfig:
|
|
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.UpdateInsertHeadersConfig`
|
60
|
+
:param remove_headers_config:
|
61
|
+
:type remove_headers_config: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
|
54
62
|
"""
|
55
63
|
|
56
64
|
|
@@ -61,6 +69,8 @@ class UpdateRedirectUrlConfig:
|
|
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:
|
@@ -75,6 +85,10 @@ class UpdateRedirectUrlConfig:
|
|
75
85
|
self.query = query
|
76
86
|
if status_code is not None:
|
77
87
|
self.status_code = status_code
|
88
|
+
if insert_headers_config is not None:
|
89
|
+
self.insert_headers_config = insert_headers_config
|
90
|
+
if remove_headers_config is not None:
|
91
|
+
self.remove_headers_config = remove_headers_config
|
78
92
|
|
79
93
|
@property
|
80
94
|
def protocol(self):
|
@@ -208,6 +222,42 @@ class UpdateRedirectUrlConfig:
|
|
208
222
|
"""
|
209
223
|
self._status_code = status_code
|
210
224
|
|
225
|
+
@property
|
226
|
+
def insert_headers_config(self):
|
227
|
+
"""Gets the insert_headers_config of this UpdateRedirectUrlConfig.
|
228
|
+
|
229
|
+
:return: The insert_headers_config of this UpdateRedirectUrlConfig.
|
230
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig`
|
231
|
+
"""
|
232
|
+
return self._insert_headers_config
|
233
|
+
|
234
|
+
@insert_headers_config.setter
|
235
|
+
def insert_headers_config(self, insert_headers_config):
|
236
|
+
"""Sets the insert_headers_config of this UpdateRedirectUrlConfig.
|
237
|
+
|
238
|
+
:param insert_headers_config: The insert_headers_config of this UpdateRedirectUrlConfig.
|
239
|
+
:type insert_headers_config: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig`
|
240
|
+
"""
|
241
|
+
self._insert_headers_config = insert_headers_config
|
242
|
+
|
243
|
+
@property
|
244
|
+
def remove_headers_config(self):
|
245
|
+
"""Gets the remove_headers_config of this UpdateRedirectUrlConfig.
|
246
|
+
|
247
|
+
:return: The remove_headers_config of this UpdateRedirectUrlConfig.
|
248
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
|
249
|
+
"""
|
250
|
+
return self._remove_headers_config
|
251
|
+
|
252
|
+
@remove_headers_config.setter
|
253
|
+
def remove_headers_config(self, remove_headers_config):
|
254
|
+
"""Sets the remove_headers_config of this UpdateRedirectUrlConfig.
|
255
|
+
|
256
|
+
:param remove_headers_config: The remove_headers_config of this UpdateRedirectUrlConfig.
|
257
|
+
:type remove_headers_config: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
|
258
|
+
"""
|
259
|
+
self._remove_headers_config = remove_headers_config
|
260
|
+
|
211
261
|
def to_dict(self):
|
212
262
|
"""Returns the model properties as a dict"""
|
213
263
|
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 UpdateRemoveHeaderConfig:
|
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
|
+
"""UpdateRemoveHeaderConfig
|
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 UpdateRemoveHeaderConfig.
|
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 UpdateRemoveHeaderConfig.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._key
|
53
|
+
|
54
|
+
@key.setter
|
55
|
+
def key(self, key):
|
56
|
+
"""Sets the key of this UpdateRemoveHeaderConfig.
|
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 UpdateRemoveHeaderConfig.
|
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, UpdateRemoveHeaderConfig):
|
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 UpdateRemoveHeadersConfig:
|
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[UpdateRemoveHeaderConfig]'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'configs': 'configs'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, configs=None):
|
28
|
+
"""UpdateRemoveHeadersConfig
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param configs: 要移除的请求头参数列表。
|
33
|
+
:type configs: list[:class:`huaweicloudsdkelb.v3.UpdateRemoveHeaderConfig`]
|
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 UpdateRemoveHeadersConfig.
|
46
|
+
|
47
|
+
要移除的请求头参数列表。
|
48
|
+
|
49
|
+
:return: The configs of this UpdateRemoveHeadersConfig.
|
50
|
+
:rtype: list[:class:`huaweicloudsdkelb.v3.UpdateRemoveHeaderConfig`]
|
51
|
+
"""
|
52
|
+
return self._configs
|
53
|
+
|
54
|
+
@configs.setter
|
55
|
+
def configs(self, configs):
|
56
|
+
"""Sets the configs of this UpdateRemoveHeadersConfig.
|
57
|
+
|
58
|
+
要移除的请求头参数列表。
|
59
|
+
|
60
|
+
:param configs: The configs of this UpdateRemoveHeadersConfig.
|
61
|
+
:type configs: list[:class:`huaweicloudsdkelb.v3.UpdateRemoveHeaderConfig`]
|
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, UpdateRemoveHeadersConfig):
|
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,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateRewriteUrlConfig:
|
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
|
+
'host': 'str',
|
21
|
+
'path': 'str',
|
22
|
+
'query': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'host': 'host',
|
27
|
+
'path': 'path',
|
28
|
+
'query': 'query'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, host=None, path=None, query=None):
|
32
|
+
"""UpdateRewriteUrlConfig
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param host: 重定向的域名。取值只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host},表示继承原值(即与被重写请求host保持一致)。
|
37
|
+
:type host: str
|
38
|
+
:param path: 重定向的请求路径。 取值只能包含英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认值${path}表示继承原值(即与被重写请求保持一致)。
|
39
|
+
:type path: str
|
40
|
+
:param query: 重定向的查询字符串。取值只能包含英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认${query},表示继承原值(即与被重写请求保持一致)。
|
41
|
+
:type query: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._host = None
|
47
|
+
self._path = None
|
48
|
+
self._query = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if host is not None:
|
52
|
+
self.host = host
|
53
|
+
if path is not None:
|
54
|
+
self.path = path
|
55
|
+
if query is not None:
|
56
|
+
self.query = query
|
57
|
+
|
58
|
+
@property
|
59
|
+
def host(self):
|
60
|
+
"""Gets the host of this UpdateRewriteUrlConfig.
|
61
|
+
|
62
|
+
重定向的域名。取值只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host},表示继承原值(即与被重写请求host保持一致)。
|
63
|
+
|
64
|
+
:return: The host of this UpdateRewriteUrlConfig.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._host
|
68
|
+
|
69
|
+
@host.setter
|
70
|
+
def host(self, host):
|
71
|
+
"""Sets the host of this UpdateRewriteUrlConfig.
|
72
|
+
|
73
|
+
重定向的域名。取值只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host},表示继承原值(即与被重写请求host保持一致)。
|
74
|
+
|
75
|
+
:param host: The host of this UpdateRewriteUrlConfig.
|
76
|
+
:type host: str
|
77
|
+
"""
|
78
|
+
self._host = host
|
79
|
+
|
80
|
+
@property
|
81
|
+
def path(self):
|
82
|
+
"""Gets the path of this UpdateRewriteUrlConfig.
|
83
|
+
|
84
|
+
重定向的请求路径。 取值只能包含英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认值${path}表示继承原值(即与被重写请求保持一致)。
|
85
|
+
|
86
|
+
:return: The path of this UpdateRewriteUrlConfig.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._path
|
90
|
+
|
91
|
+
@path.setter
|
92
|
+
def path(self, path):
|
93
|
+
"""Sets the path of this UpdateRewriteUrlConfig.
|
94
|
+
|
95
|
+
重定向的请求路径。 取值只能包含英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认值${path}表示继承原值(即与被重写请求保持一致)。
|
96
|
+
|
97
|
+
:param path: The path of this UpdateRewriteUrlConfig.
|
98
|
+
:type path: str
|
99
|
+
"""
|
100
|
+
self._path = path
|
101
|
+
|
102
|
+
@property
|
103
|
+
def query(self):
|
104
|
+
"""Gets the query of this UpdateRewriteUrlConfig.
|
105
|
+
|
106
|
+
重定向的查询字符串。取值只能包含英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认${query},表示继承原值(即与被重写请求保持一致)。
|
107
|
+
|
108
|
+
:return: The query of this UpdateRewriteUrlConfig.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._query
|
112
|
+
|
113
|
+
@query.setter
|
114
|
+
def query(self, query):
|
115
|
+
"""Sets the query of this UpdateRewriteUrlConfig.
|
116
|
+
|
117
|
+
重定向的查询字符串。取值只能包含英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认${query},表示继承原值(即与被重写请求保持一致)。
|
118
|
+
|
119
|
+
:param query: The query of this UpdateRewriteUrlConfig.
|
120
|
+
:type query: str
|
121
|
+
"""
|
122
|
+
self._query = query
|
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, UpdateRewriteUrlConfig):
|
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
|
@@ -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 UpdateTrafficLimitConfig:
|
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
|
+
"""UpdateTrafficLimitConfig
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param qps: 转发策略整体限速。取值: 0-100000s。0表示不限速
|
37
|
+
:type qps: int
|
38
|
+
:param per_source_ip_qps: 对转发策略单源进行限速。 quic监听器下转发策略不支持配置单源限速,指定该字段时,赋值可以为0或者为null 取值: 0-100000s。0表示不限速,如果qps不为0,per_ip_qps需要小于qps。
|
39
|
+
:type per_source_ip_qps: int
|
40
|
+
:param burst: 对转发策略单源进行限速。取值: 0-100000s。当qps超限的时候,不返回503,支持允许局部突增burst大小的请求。
|
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 UpdateTrafficLimitConfig.
|
61
|
+
|
62
|
+
转发策略整体限速。取值: 0-100000s。0表示不限速
|
63
|
+
|
64
|
+
:return: The qps of this UpdateTrafficLimitConfig.
|
65
|
+
:rtype: int
|
66
|
+
"""
|
67
|
+
return self._qps
|
68
|
+
|
69
|
+
@qps.setter
|
70
|
+
def qps(self, qps):
|
71
|
+
"""Sets the qps of this UpdateTrafficLimitConfig.
|
72
|
+
|
73
|
+
转发策略整体限速。取值: 0-100000s。0表示不限速
|
74
|
+
|
75
|
+
:param qps: The qps of this UpdateTrafficLimitConfig.
|
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 UpdateTrafficLimitConfig.
|
83
|
+
|
84
|
+
对转发策略单源进行限速。 quic监听器下转发策略不支持配置单源限速,指定该字段时,赋值可以为0或者为null 取值: 0-100000s。0表示不限速,如果qps不为0,per_ip_qps需要小于qps。
|
85
|
+
|
86
|
+
:return: The per_source_ip_qps of this UpdateTrafficLimitConfig.
|
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 UpdateTrafficLimitConfig.
|
94
|
+
|
95
|
+
对转发策略单源进行限速。 quic监听器下转发策略不支持配置单源限速,指定该字段时,赋值可以为0或者为null 取值: 0-100000s。0表示不限速,如果qps不为0,per_ip_qps需要小于qps。
|
96
|
+
|
97
|
+
:param per_source_ip_qps: The per_source_ip_qps of this UpdateTrafficLimitConfig.
|
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 UpdateTrafficLimitConfig.
|
105
|
+
|
106
|
+
对转发策略单源进行限速。取值: 0-100000s。当qps超限的时候,不返回503,支持允许局部突增burst大小的请求。
|
107
|
+
|
108
|
+
:return: The burst of this UpdateTrafficLimitConfig.
|
109
|
+
:rtype: int
|
110
|
+
"""
|
111
|
+
return self._burst
|
112
|
+
|
113
|
+
@burst.setter
|
114
|
+
def burst(self, burst):
|
115
|
+
"""Sets the burst of this UpdateTrafficLimitConfig.
|
116
|
+
|
117
|
+
对转发策略单源进行限速。取值: 0-100000s。当qps超限的时候,不返回503,支持允许局部突增burst大小的请求。
|
118
|
+
|
119
|
+
:param burst: The burst of this UpdateTrafficLimitConfig.
|
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, UpdateTrafficLimitConfig):
|
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
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkelb
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.106
|
4
4
|
Summary: ELB
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
6
6
|
Author: HuaweiCloud SDK
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
23
23
|
Description-Content-Type: text/markdown
|
24
24
|
License-File: LICENSE
|
25
|
-
Requires-Dist: huaweicloudsdkcore >=3.1.
|
25
|
+
Requires-Dist: huaweicloudsdkcore >=3.1.106
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|