huaweicloudsdkelb 3.1.104__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.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/RECORD +142 -113
- {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,170 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateInsertHeaderConfig:
|
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
|
+
'value_type': 'str',
|
22
|
+
'value': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'key': 'key',
|
27
|
+
'value_type': 'value_type',
|
28
|
+
'value': 'value'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, key=None, value_type=None, value=None):
|
32
|
+
"""CreateInsertHeaderConfig
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param key: 支持1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 key不能是以下字符: 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。
|
37
|
+
:type key: str
|
38
|
+
:param value_type: 可选值:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。
|
39
|
+
:type value_type: str
|
40
|
+
:param value: header值。当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符, 支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。
|
41
|
+
:type value: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._key = None
|
47
|
+
self._value_type = None
|
48
|
+
self._value = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.key = key
|
52
|
+
self.value_type = value_type
|
53
|
+
self.value = value
|
54
|
+
|
55
|
+
@property
|
56
|
+
def key(self):
|
57
|
+
"""Gets the key of this CreateInsertHeaderConfig.
|
58
|
+
|
59
|
+
支持1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 key不能是以下字符: 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。
|
60
|
+
|
61
|
+
:return: The key of this CreateInsertHeaderConfig.
|
62
|
+
:rtype: str
|
63
|
+
"""
|
64
|
+
return self._key
|
65
|
+
|
66
|
+
@key.setter
|
67
|
+
def key(self, key):
|
68
|
+
"""Sets the key of this CreateInsertHeaderConfig.
|
69
|
+
|
70
|
+
支持1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 key不能是以下字符: 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。
|
71
|
+
|
72
|
+
:param key: The key of this CreateInsertHeaderConfig.
|
73
|
+
:type key: str
|
74
|
+
"""
|
75
|
+
self._key = key
|
76
|
+
|
77
|
+
@property
|
78
|
+
def value_type(self):
|
79
|
+
"""Gets the value_type of this CreateInsertHeaderConfig.
|
80
|
+
|
81
|
+
可选值:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。
|
82
|
+
|
83
|
+
:return: The value_type of this CreateInsertHeaderConfig.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._value_type
|
87
|
+
|
88
|
+
@value_type.setter
|
89
|
+
def value_type(self, value_type):
|
90
|
+
"""Sets the value_type of this CreateInsertHeaderConfig.
|
91
|
+
|
92
|
+
可选值:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。
|
93
|
+
|
94
|
+
:param value_type: The value_type of this CreateInsertHeaderConfig.
|
95
|
+
:type value_type: str
|
96
|
+
"""
|
97
|
+
self._value_type = value_type
|
98
|
+
|
99
|
+
@property
|
100
|
+
def value(self):
|
101
|
+
"""Gets the value of this CreateInsertHeaderConfig.
|
102
|
+
|
103
|
+
header值。当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符, 支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。
|
104
|
+
|
105
|
+
:return: The value of this CreateInsertHeaderConfig.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._value
|
109
|
+
|
110
|
+
@value.setter
|
111
|
+
def value(self, value):
|
112
|
+
"""Sets the value of this CreateInsertHeaderConfig.
|
113
|
+
|
114
|
+
header值。当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符, 支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。
|
115
|
+
|
116
|
+
:param value: The value of this CreateInsertHeaderConfig.
|
117
|
+
:type value: str
|
118
|
+
"""
|
119
|
+
self._value = value
|
120
|
+
|
121
|
+
def to_dict(self):
|
122
|
+
"""Returns the model properties as a dict"""
|
123
|
+
result = {}
|
124
|
+
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
126
|
+
value = getattr(self, attr)
|
127
|
+
if isinstance(value, list):
|
128
|
+
result[attr] = list(map(
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
130
|
+
value
|
131
|
+
))
|
132
|
+
elif hasattr(value, "to_dict"):
|
133
|
+
result[attr] = value.to_dict()
|
134
|
+
elif isinstance(value, dict):
|
135
|
+
result[attr] = dict(map(
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
138
|
+
value.items()
|
139
|
+
))
|
140
|
+
else:
|
141
|
+
if attr in self.sensitive_list:
|
142
|
+
result[attr] = "****"
|
143
|
+
else:
|
144
|
+
result[attr] = value
|
145
|
+
|
146
|
+
return result
|
147
|
+
|
148
|
+
def to_str(self):
|
149
|
+
"""Returns the string representation of the model"""
|
150
|
+
import simplejson as json
|
151
|
+
if six.PY2:
|
152
|
+
import sys
|
153
|
+
reload(sys)
|
154
|
+
sys.setdefaultencoding("utf-8")
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
156
|
+
|
157
|
+
def __repr__(self):
|
158
|
+
"""For `print`"""
|
159
|
+
return self.to_str()
|
160
|
+
|
161
|
+
def __eq__(self, other):
|
162
|
+
"""Returns true if both objects are equal"""
|
163
|
+
if not isinstance(other, CreateInsertHeaderConfig):
|
164
|
+
return False
|
165
|
+
|
166
|
+
return self.__dict__ == other.__dict__
|
167
|
+
|
168
|
+
def __ne__(self, other):
|
169
|
+
"""Returns true if both objects are not equal"""
|
170
|
+
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 CreateInsertHeadersConfig:
|
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[CreateInsertHeaderConfig]'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'configs': 'configs'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, configs=None):
|
28
|
+
"""CreateInsertHeadersConfig
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param configs: 要添加请求头参数列表。
|
33
|
+
:type configs: list[:class:`huaweicloudsdkelb.v3.CreateInsertHeaderConfig`]
|
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 CreateInsertHeadersConfig.
|
46
|
+
|
47
|
+
要添加请求头参数列表。
|
48
|
+
|
49
|
+
:return: The configs of this CreateInsertHeadersConfig.
|
50
|
+
:rtype: list[:class:`huaweicloudsdkelb.v3.CreateInsertHeaderConfig`]
|
51
|
+
"""
|
52
|
+
return self._configs
|
53
|
+
|
54
|
+
@configs.setter
|
55
|
+
def configs(self, configs):
|
56
|
+
"""Sets the configs of this CreateInsertHeadersConfig.
|
57
|
+
|
58
|
+
要添加请求头参数列表。
|
59
|
+
|
60
|
+
:param configs: The configs of this CreateInsertHeadersConfig.
|
61
|
+
:type configs: list[:class:`huaweicloudsdkelb.v3.CreateInsertHeaderConfig`]
|
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, CreateInsertHeadersConfig):
|
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
|
@@ -31,9 +31,9 @@ class CreateIpGroupIpOption:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param ip: IP地址。支持IPv4、IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
34
|
+
:param ip: 参数解释:IP地址。支持IPv4、IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
35
35
|
:type ip: str
|
36
|
-
:param description:
|
36
|
+
:param description: 参数解释:备注信息。
|
37
37
|
:type description: str
|
38
38
|
"""
|
39
39
|
|
@@ -51,7 +51,7 @@ class CreateIpGroupIpOption:
|
|
51
51
|
def ip(self):
|
52
52
|
"""Gets the ip of this CreateIpGroupIpOption.
|
53
53
|
|
54
|
-
IP地址。支持IPv4、IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
54
|
+
参数解释:IP地址。支持IPv4、IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
55
55
|
|
56
56
|
:return: The ip of this CreateIpGroupIpOption.
|
57
57
|
:rtype: str
|
@@ -62,7 +62,7 @@ class CreateIpGroupIpOption:
|
|
62
62
|
def ip(self, ip):
|
63
63
|
"""Sets the ip of this CreateIpGroupIpOption.
|
64
64
|
|
65
|
-
IP地址。支持IPv4、IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
65
|
+
参数解释:IP地址。支持IPv4、IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
66
66
|
|
67
67
|
:param ip: The ip of this CreateIpGroupIpOption.
|
68
68
|
:type ip: str
|
@@ -73,7 +73,7 @@ class CreateIpGroupIpOption:
|
|
73
73
|
def description(self):
|
74
74
|
"""Gets the description of this CreateIpGroupIpOption.
|
75
75
|
|
76
|
-
|
76
|
+
参数解释:备注信息。
|
77
77
|
|
78
78
|
:return: The description of this CreateIpGroupIpOption.
|
79
79
|
:rtype: str
|
@@ -84,7 +84,7 @@ class CreateIpGroupIpOption:
|
|
84
84
|
def description(self, description):
|
85
85
|
"""Sets the description of this CreateIpGroupIpOption.
|
86
86
|
|
87
|
-
|
87
|
+
参数解释:备注信息。
|
88
88
|
|
89
89
|
:param description: The description of this CreateIpGroupIpOption.
|
90
90
|
:type description: str
|
@@ -37,15 +37,15 @@ class CreateIpGroupOption:
|
|
37
37
|
|
38
38
|
The model defined in huaweicloud sdk
|
39
39
|
|
40
|
-
:param project_id: IP地址组所在的项目ID。
|
40
|
+
:param project_id: 参数解释:IP地址组所在的项目ID。
|
41
41
|
:type project_id: str
|
42
|
-
:param description: IP地址组的描述。
|
42
|
+
:param description: 参数解释:IP地址组的描述。
|
43
43
|
:type description: str
|
44
|
-
:param name: IP地址组的名称。
|
44
|
+
:param name: 参数解释:IP地址组的名称。
|
45
45
|
:type name: str
|
46
|
-
:param ip_list: IP地址组中包含的IP或网段列表。[]表示任意IP。
|
46
|
+
:param ip_list: 参数解释:IP地址组中包含的IP或网段列表。[]表示任意IP。
|
47
47
|
:type ip_list: list[:class:`huaweicloudsdkelb.v3.CreateIpGroupIpOption`]
|
48
|
-
:param enterprise_project_id: IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
48
|
+
:param enterprise_project_id: 参数解释:IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
49
49
|
:type enterprise_project_id: str
|
50
50
|
"""
|
51
51
|
|
@@ -72,7 +72,7 @@ class CreateIpGroupOption:
|
|
72
72
|
def project_id(self):
|
73
73
|
"""Gets the project_id of this CreateIpGroupOption.
|
74
74
|
|
75
|
-
IP地址组所在的项目ID。
|
75
|
+
参数解释:IP地址组所在的项目ID。
|
76
76
|
|
77
77
|
:return: The project_id of this CreateIpGroupOption.
|
78
78
|
:rtype: str
|
@@ -83,7 +83,7 @@ class CreateIpGroupOption:
|
|
83
83
|
def project_id(self, project_id):
|
84
84
|
"""Sets the project_id of this CreateIpGroupOption.
|
85
85
|
|
86
|
-
IP地址组所在的项目ID。
|
86
|
+
参数解释:IP地址组所在的项目ID。
|
87
87
|
|
88
88
|
:param project_id: The project_id of this CreateIpGroupOption.
|
89
89
|
:type project_id: str
|
@@ -94,7 +94,7 @@ class CreateIpGroupOption:
|
|
94
94
|
def description(self):
|
95
95
|
"""Gets the description of this CreateIpGroupOption.
|
96
96
|
|
97
|
-
IP地址组的描述。
|
97
|
+
参数解释:IP地址组的描述。
|
98
98
|
|
99
99
|
:return: The description of this CreateIpGroupOption.
|
100
100
|
:rtype: str
|
@@ -105,7 +105,7 @@ class CreateIpGroupOption:
|
|
105
105
|
def description(self, description):
|
106
106
|
"""Sets the description of this CreateIpGroupOption.
|
107
107
|
|
108
|
-
IP地址组的描述。
|
108
|
+
参数解释:IP地址组的描述。
|
109
109
|
|
110
110
|
:param description: The description of this CreateIpGroupOption.
|
111
111
|
:type description: str
|
@@ -116,7 +116,7 @@ class CreateIpGroupOption:
|
|
116
116
|
def name(self):
|
117
117
|
"""Gets the name of this CreateIpGroupOption.
|
118
118
|
|
119
|
-
IP地址组的名称。
|
119
|
+
参数解释:IP地址组的名称。
|
120
120
|
|
121
121
|
:return: The name of this CreateIpGroupOption.
|
122
122
|
:rtype: str
|
@@ -127,7 +127,7 @@ class CreateIpGroupOption:
|
|
127
127
|
def name(self, name):
|
128
128
|
"""Sets the name of this CreateIpGroupOption.
|
129
129
|
|
130
|
-
IP地址组的名称。
|
130
|
+
参数解释:IP地址组的名称。
|
131
131
|
|
132
132
|
:param name: The name of this CreateIpGroupOption.
|
133
133
|
:type name: str
|
@@ -138,7 +138,7 @@ class CreateIpGroupOption:
|
|
138
138
|
def ip_list(self):
|
139
139
|
"""Gets the ip_list of this CreateIpGroupOption.
|
140
140
|
|
141
|
-
IP地址组中包含的IP或网段列表。[]表示任意IP。
|
141
|
+
参数解释:IP地址组中包含的IP或网段列表。[]表示任意IP。
|
142
142
|
|
143
143
|
:return: The ip_list of this CreateIpGroupOption.
|
144
144
|
:rtype: list[:class:`huaweicloudsdkelb.v3.CreateIpGroupIpOption`]
|
@@ -149,7 +149,7 @@ class CreateIpGroupOption:
|
|
149
149
|
def ip_list(self, ip_list):
|
150
150
|
"""Sets the ip_list of this CreateIpGroupOption.
|
151
151
|
|
152
|
-
IP地址组中包含的IP或网段列表。[]表示任意IP。
|
152
|
+
参数解释:IP地址组中包含的IP或网段列表。[]表示任意IP。
|
153
153
|
|
154
154
|
:param ip_list: The ip_list of this CreateIpGroupOption.
|
155
155
|
:type ip_list: list[:class:`huaweicloudsdkelb.v3.CreateIpGroupIpOption`]
|
@@ -160,7 +160,7 @@ class CreateIpGroupOption:
|
|
160
160
|
def enterprise_project_id(self):
|
161
161
|
"""Gets the enterprise_project_id of this CreateIpGroupOption.
|
162
162
|
|
163
|
-
IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
163
|
+
参数解释:IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
164
164
|
|
165
165
|
:return: The enterprise_project_id of this CreateIpGroupOption.
|
166
166
|
:rtype: str
|
@@ -171,7 +171,7 @@ class CreateIpGroupOption:
|
|
171
171
|
def enterprise_project_id(self, enterprise_project_id):
|
172
172
|
"""Sets the enterprise_project_id of this CreateIpGroupOption.
|
173
173
|
|
174
|
-
IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
174
|
+
参数解释:IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
175
175
|
|
176
176
|
:param enterprise_project_id: The enterprise_project_id of this CreateIpGroupOption.
|
177
177
|
:type enterprise_project_id: str
|
@@ -34,7 +34,7 @@ class CreateIpGroupResponse(SdkResponse):
|
|
34
34
|
|
35
35
|
:param ipgroup:
|
36
36
|
:type ipgroup: :class:`huaweicloudsdkelb.v3.IpGroup`
|
37
|
-
:param request_id:
|
37
|
+
:param request_id: 参数解释:请求ID。 注:自动生成 。
|
38
38
|
:type request_id: str
|
39
39
|
"""
|
40
40
|
|
@@ -71,7 +71,7 @@ class CreateIpGroupResponse(SdkResponse):
|
|
71
71
|
def request_id(self):
|
72
72
|
"""Gets the request_id of this CreateIpGroupResponse.
|
73
73
|
|
74
|
-
|
74
|
+
参数解释:请求ID。 注:自动生成 。
|
75
75
|
|
76
76
|
:return: The request_id of this CreateIpGroupResponse.
|
77
77
|
:rtype: str
|
@@ -82,7 +82,7 @@ class CreateIpGroupResponse(SdkResponse):
|
|
82
82
|
def request_id(self, request_id):
|
83
83
|
"""Sets the request_id of this CreateIpGroupResponse.
|
84
84
|
|
85
|
-
|
85
|
+
参数解释:请求ID。 注:自动生成 。
|
86
86
|
|
87
87
|
:param request_id: The request_id of this CreateIpGroupResponse.
|
88
88
|
:type request_id: str
|
@@ -29,6 +29,8 @@ class CreateL7PolicyOption:
|
|
29
29
|
'redirect_pool_id': 'str',
|
30
30
|
'redirect_url': 'str',
|
31
31
|
'redirect_url_config': 'CreateRedirectUrlConfig',
|
32
|
+
'redirect_pools_config': 'list[CreateRedirectPoolsConfig]',
|
33
|
+
'redirect_pools_sticky_session_config': 'CreateRedirectPoolsStickySessionConfig',
|
32
34
|
'fixed_response_config': 'CreateFixtedResponseConfig',
|
33
35
|
'redirect_pools_extend_config': 'CreateRedirectPoolsExtendConfig',
|
34
36
|
'rules': 'list[CreateL7PolicyRuleOption]'
|
@@ -47,12 +49,14 @@ class CreateL7PolicyOption:
|
|
47
49
|
'redirect_pool_id': 'redirect_pool_id',
|
48
50
|
'redirect_url': 'redirect_url',
|
49
51
|
'redirect_url_config': 'redirect_url_config',
|
52
|
+
'redirect_pools_config': 'redirect_pools_config',
|
53
|
+
'redirect_pools_sticky_session_config': 'redirect_pools_sticky_session_config',
|
50
54
|
'fixed_response_config': 'fixed_response_config',
|
51
55
|
'redirect_pools_extend_config': 'redirect_pools_extend_config',
|
52
56
|
'rules': 'rules'
|
53
57
|
}
|
54
58
|
|
55
|
-
def __init__(self, action=None, admin_state_up=None, description=None, listener_id=None, name=None, position=None, priority=None, project_id=None, redirect_listener_id=None, redirect_pool_id=None, redirect_url=None, redirect_url_config=None, fixed_response_config=None, redirect_pools_extend_config=None, rules=None):
|
59
|
+
def __init__(self, action=None, admin_state_up=None, description=None, listener_id=None, name=None, position=None, priority=None, project_id=None, redirect_listener_id=None, redirect_pool_id=None, redirect_url=None, redirect_url_config=None, redirect_pools_config=None, redirect_pools_sticky_session_config=None, fixed_response_config=None, redirect_pools_extend_config=None, rules=None):
|
56
60
|
"""CreateL7PolicyOption
|
57
61
|
|
58
62
|
The model defined in huaweicloud sdk
|
@@ -69,11 +73,11 @@ class CreateL7PolicyOption:
|
|
69
73
|
:type name: str
|
70
74
|
:param position: 转发策略的优先级,不支持更新。 不支持该字段,请勿使用。
|
71
75
|
:type position: int
|
72
|
-
:param priority: 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
|
76
|
+
:param priority: 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
73
77
|
:type priority: int
|
74
78
|
:param project_id: 转发策略所在的项目ID。
|
75
79
|
:type project_id: str
|
76
|
-
:param redirect_listener_id: 转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 [- 共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
|
80
|
+
:param redirect_listener_id: 转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 [- 共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
77
81
|
:type redirect_listener_id: str
|
78
82
|
:param redirect_pool_id: 转发到pool的ID。当action为REDIRECT_TO_POOL时生效。 使用说明: - 当action为REDIRECT_TO_LISTENER时,不可指定。
|
79
83
|
:type redirect_pool_id: str
|
@@ -81,6 +85,10 @@ class CreateL7PolicyOption:
|
|
81
85
|
:type redirect_url: str
|
82
86
|
:param redirect_url_config:
|
83
87
|
:type redirect_url_config: :class:`huaweicloudsdkelb.v3.CreateRedirectUrlConfig`
|
88
|
+
:param redirect_pools_config: 转发到多个主机组列表。一个policy最多配置5个pool。
|
89
|
+
:type redirect_pools_config: list[:class:`huaweicloudsdkelb.v3.CreateRedirectPoolsConfig`]
|
90
|
+
:param redirect_pools_sticky_session_config:
|
91
|
+
:type redirect_pools_sticky_session_config: :class:`huaweicloudsdkelb.v3.CreateRedirectPoolsStickySessionConfig`
|
84
92
|
:param fixed_response_config:
|
85
93
|
:type fixed_response_config: :class:`huaweicloudsdkelb.v3.CreateFixtedResponseConfig`
|
86
94
|
:param redirect_pools_extend_config:
|
@@ -103,6 +111,8 @@ class CreateL7PolicyOption:
|
|
103
111
|
self._redirect_pool_id = None
|
104
112
|
self._redirect_url = None
|
105
113
|
self._redirect_url_config = None
|
114
|
+
self._redirect_pools_config = None
|
115
|
+
self._redirect_pools_sticky_session_config = None
|
106
116
|
self._fixed_response_config = None
|
107
117
|
self._redirect_pools_extend_config = None
|
108
118
|
self._rules = None
|
@@ -130,6 +140,10 @@ class CreateL7PolicyOption:
|
|
130
140
|
self.redirect_url = redirect_url
|
131
141
|
if redirect_url_config is not None:
|
132
142
|
self.redirect_url_config = redirect_url_config
|
143
|
+
if redirect_pools_config is not None:
|
144
|
+
self.redirect_pools_config = redirect_pools_config
|
145
|
+
if redirect_pools_sticky_session_config is not None:
|
146
|
+
self.redirect_pools_sticky_session_config = redirect_pools_sticky_session_config
|
133
147
|
if fixed_response_config is not None:
|
134
148
|
self.fixed_response_config = fixed_response_config
|
135
149
|
if redirect_pools_extend_config is not None:
|
@@ -273,7 +287,7 @@ class CreateL7PolicyOption:
|
|
273
287
|
def priority(self):
|
274
288
|
"""Gets the priority of this CreateL7PolicyOption.
|
275
289
|
|
276
|
-
转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
|
290
|
+
转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
277
291
|
|
278
292
|
:return: The priority of this CreateL7PolicyOption.
|
279
293
|
:rtype: int
|
@@ -284,7 +298,7 @@ class CreateL7PolicyOption:
|
|
284
298
|
def priority(self, priority):
|
285
299
|
"""Sets the priority of this CreateL7PolicyOption.
|
286
300
|
|
287
|
-
转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
|
301
|
+
转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
288
302
|
|
289
303
|
:param priority: The priority of this CreateL7PolicyOption.
|
290
304
|
:type priority: int
|
@@ -317,7 +331,7 @@ class CreateL7PolicyOption:
|
|
317
331
|
def redirect_listener_id(self):
|
318
332
|
"""Gets the redirect_listener_id of this CreateL7PolicyOption.
|
319
333
|
|
320
|
-
转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 [- 共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
|
334
|
+
转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 [- 共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
321
335
|
|
322
336
|
:return: The redirect_listener_id of this CreateL7PolicyOption.
|
323
337
|
:rtype: str
|
@@ -328,7 +342,7 @@ class CreateL7PolicyOption:
|
|
328
342
|
def redirect_listener_id(self, redirect_listener_id):
|
329
343
|
"""Sets the redirect_listener_id of this CreateL7PolicyOption.
|
330
344
|
|
331
|
-
转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 [- 共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
|
345
|
+
转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 [- 共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
332
346
|
|
333
347
|
:param redirect_listener_id: The redirect_listener_id of this CreateL7PolicyOption.
|
334
348
|
:type redirect_listener_id: str
|
@@ -397,6 +411,46 @@ class CreateL7PolicyOption:
|
|
397
411
|
"""
|
398
412
|
self._redirect_url_config = redirect_url_config
|
399
413
|
|
414
|
+
@property
|
415
|
+
def redirect_pools_config(self):
|
416
|
+
"""Gets the redirect_pools_config of this CreateL7PolicyOption.
|
417
|
+
|
418
|
+
转发到多个主机组列表。一个policy最多配置5个pool。
|
419
|
+
|
420
|
+
:return: The redirect_pools_config of this CreateL7PolicyOption.
|
421
|
+
:rtype: list[:class:`huaweicloudsdkelb.v3.CreateRedirectPoolsConfig`]
|
422
|
+
"""
|
423
|
+
return self._redirect_pools_config
|
424
|
+
|
425
|
+
@redirect_pools_config.setter
|
426
|
+
def redirect_pools_config(self, redirect_pools_config):
|
427
|
+
"""Sets the redirect_pools_config of this CreateL7PolicyOption.
|
428
|
+
|
429
|
+
转发到多个主机组列表。一个policy最多配置5个pool。
|
430
|
+
|
431
|
+
:param redirect_pools_config: The redirect_pools_config of this CreateL7PolicyOption.
|
432
|
+
:type redirect_pools_config: list[:class:`huaweicloudsdkelb.v3.CreateRedirectPoolsConfig`]
|
433
|
+
"""
|
434
|
+
self._redirect_pools_config = redirect_pools_config
|
435
|
+
|
436
|
+
@property
|
437
|
+
def redirect_pools_sticky_session_config(self):
|
438
|
+
"""Gets the redirect_pools_sticky_session_config of this CreateL7PolicyOption.
|
439
|
+
|
440
|
+
:return: The redirect_pools_sticky_session_config of this CreateL7PolicyOption.
|
441
|
+
:rtype: :class:`huaweicloudsdkelb.v3.CreateRedirectPoolsStickySessionConfig`
|
442
|
+
"""
|
443
|
+
return self._redirect_pools_sticky_session_config
|
444
|
+
|
445
|
+
@redirect_pools_sticky_session_config.setter
|
446
|
+
def redirect_pools_sticky_session_config(self, redirect_pools_sticky_session_config):
|
447
|
+
"""Sets the redirect_pools_sticky_session_config of this CreateL7PolicyOption.
|
448
|
+
|
449
|
+
:param redirect_pools_sticky_session_config: The redirect_pools_sticky_session_config of this CreateL7PolicyOption.
|
450
|
+
:type redirect_pools_sticky_session_config: :class:`huaweicloudsdkelb.v3.CreateRedirectPoolsStickySessionConfig`
|
451
|
+
"""
|
452
|
+
self._redirect_pools_sticky_session_config = redirect_pools_sticky_session_config
|
453
|
+
|
400
454
|
@property
|
401
455
|
def fixed_response_config(self):
|
402
456
|
"""Gets the fixed_response_config of this CreateL7PolicyOption.
|