huaweicloudsdkelb 3.1.132__py2.py3-none-any.whl → 3.1.134__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 +39 -0
- huaweicloudsdkelb/v3/elb_async_client.py +742 -22
- huaweicloudsdkelb/v3/elb_client.py +742 -22
- huaweicloudsdkelb/v3/model/__init__.py +39 -0
- huaweicloudsdkelb/v3/model/availability_zone.py +6 -6
- huaweicloudsdkelb/v3/model/base_job.py +347 -0
- huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
- huaweicloudsdkelb/v3/model/batch_create_load_balancer_option.py +1022 -0
- huaweicloudsdkelb/v3/model/batch_create_load_balancers_request.py +111 -0
- huaweicloudsdkelb/v3/model/batch_create_load_balancers_request_body.py +110 -0
- huaweicloudsdkelb/v3/model/batch_create_load_balancers_response.py +203 -0
- huaweicloudsdkelb/v3/model/batch_member.py +38 -13
- huaweicloudsdkelb/v3/model/batch_update_member.py +32 -7
- huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +3 -3
- huaweicloudsdkelb/v3/model/certificate_info.py +39 -10
- huaweicloudsdkelb/v3/model/clone_loadbalancer_request.py +139 -0
- huaweicloudsdkelb/v3/model/clone_loadbalancer_request_body.py +139 -0
- huaweicloudsdkelb/v3/model/clone_loadbalancer_response.py +174 -0
- huaweicloudsdkelb/v3/model/clone_loadbalancer_response_body_loadbalancer_list.py +115 -0
- huaweicloudsdkelb/v3/model/cors_config.py +260 -0
- huaweicloudsdkelb/v3/model/count_preoccupy_ip_num_request.py +73 -15
- huaweicloudsdkelb/v3/model/create_certificate_option.py +35 -6
- huaweicloudsdkelb/v3/model/create_cors_config.py +260 -0
- huaweicloudsdkelb/v3/model/create_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_l7_policy_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_listener_option.py +126 -39
- huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_load_balancer_option.py +36 -36
- huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_load_balancer_response.py +6 -6
- huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +2 -1
- huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +31 -6
- huaweicloudsdkelb/v3/model/create_member_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_pool_option.py +46 -21
- huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/create_redirect_url_config.py +3 -3
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_option.py +144 -0
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_request.py +139 -0
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_request_body.py +110 -0
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_response.py +85 -0
- huaweicloudsdkelb/v3/model/delete_pool_cascade_request.py +114 -0
- huaweicloudsdkelb/v3/model/delete_pool_cascade_response.py +85 -0
- huaweicloudsdkelb/v3/model/feature_config.py +394 -0
- huaweicloudsdkelb/v3/model/flavor.py +9 -9
- huaweicloudsdkelb/v3/model/global_eip_info.py +3 -3
- huaweicloudsdkelb/v3/model/health_monitor.py +9 -9
- huaweicloudsdkelb/v3/model/job_entities.py +144 -0
- huaweicloudsdkelb/v3/model/l7_policy.py +44 -15
- huaweicloudsdkelb/v3/model/l7_rule.py +9 -9
- huaweicloudsdkelb/v3/model/list_all_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_availability_zones_request.py +35 -6
- huaweicloudsdkelb/v3/model/list_certificates_request.py +30 -1
- huaweicloudsdkelb/v3/model/list_feature_configs_request.py +115 -0
- huaweicloudsdkelb/v3/model/list_feature_configs_response.py +170 -0
- huaweicloudsdkelb/v3/model/list_flavors_request.py +119 -3
- huaweicloudsdkelb/v3/model/list_health_monitors_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_ip_groups_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_jobs_request.py +260 -0
- huaweicloudsdkelb/v3/model/list_jobs_response.py +145 -0
- 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 +79 -21
- huaweicloudsdkelb/v3/model/list_load_balancers_request.py +15 -15
- huaweicloudsdkelb/v3/model/list_loadbalancer_feature_request.py +114 -0
- huaweicloudsdkelb/v3/model/list_loadbalancer_feature_response.py +145 -0
- huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_pools_request.py +67 -9
- huaweicloudsdkelb/v3/model/list_quota_details_request.py +3 -3
- huaweicloudsdkelb/v3/model/listener.py +154 -39
- huaweicloudsdkelb/v3/model/load_balancer.py +21 -21
- huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
- huaweicloudsdkelb/v3/model/loadbalancer_feature.py +170 -0
- huaweicloudsdkelb/v3/model/main_job.py +376 -0
- huaweicloudsdkelb/v3/model/master_slave_member.py +26 -1
- huaweicloudsdkelb/v3/model/master_slave_pool.py +37 -12
- huaweicloudsdkelb/v3/model/member.py +32 -7
- huaweicloudsdkelb/v3/model/member_health_check_failed_reason.py +170 -0
- huaweicloudsdkelb/v3/model/member_info.py +34 -9
- huaweicloudsdkelb/v3/model/member_status.py +28 -3
- huaweicloudsdkelb/v3/model/pool.py +43 -18
- huaweicloudsdkelb/v3/model/quic_cid_hash_strategy.py +142 -0
- huaweicloudsdkelb/v3/model/quota.py +87 -3
- huaweicloudsdkelb/v3/model/quota_info.py +3 -3
- huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/session_persistence.py +6 -6
- huaweicloudsdkelb/v3/model/show_ip_group_related_listeners_request.py +114 -0
- huaweicloudsdkelb/v3/model/show_ip_group_related_listeners_response.py +116 -0
- huaweicloudsdkelb/v3/model/show_job_request.py +114 -0
- huaweicloudsdkelb/v3/model/show_job_response.py +141 -0
- huaweicloudsdkelb/v3/model/sub_job.py +376 -0
- huaweicloudsdkelb/v3/model/target_loadbalancer_param.py +434 -0
- huaweicloudsdkelb/v3/model/update_certificate_option.py +35 -6
- huaweicloudsdkelb/v3/model/update_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_l7_policy_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_listener_option.py +120 -33
- huaweicloudsdkelb/v3/model/update_load_balancer_option.py +15 -15
- huaweicloudsdkelb/v3/model/update_load_balancer_response.py +6 -6
- huaweicloudsdkelb/v3/model/update_pool_option.py +31 -6
- huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/upgrade_loadbalancer_request.py +139 -0
- huaweicloudsdkelb/v3/model/upgrade_loadbalancer_response.py +145 -0
- huaweicloudsdkelb/v3/model/upgrade_prepaid_option.py +200 -0
- huaweicloudsdkelb/v3/model/upgrade_v3_request_body.py +313 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.134.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.134.dist-info}/RECORD +112 -73
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.134.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.134.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.134.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,434 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class TargetLoadbalancerParam:
|
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
|
+
'name': 'str',
|
21
|
+
'availability_zone_list': 'list[str]',
|
22
|
+
'vip_subnet_cidr_id': 'str',
|
23
|
+
'vip_address': 'str',
|
24
|
+
'ipv6_vip_virsubnet_id': 'str',
|
25
|
+
'ipv6_vip_address': 'str',
|
26
|
+
'elb_virsubnet_ids': 'list[str]',
|
27
|
+
'l4_flavor_id': 'str',
|
28
|
+
'l7_flavor_id': 'str',
|
29
|
+
'enterprise_project_id': 'str',
|
30
|
+
'reuse_pool': 'bool',
|
31
|
+
'guaranteed': 'bool'
|
32
|
+
}
|
33
|
+
|
34
|
+
attribute_map = {
|
35
|
+
'name': 'name',
|
36
|
+
'availability_zone_list': 'availability_zone_list',
|
37
|
+
'vip_subnet_cidr_id': 'vip_subnet_cidr_id',
|
38
|
+
'vip_address': 'vip_address',
|
39
|
+
'ipv6_vip_virsubnet_id': 'ipv6_vip_virsubnet_id',
|
40
|
+
'ipv6_vip_address': 'ipv6_vip_address',
|
41
|
+
'elb_virsubnet_ids': 'elb_virsubnet_ids',
|
42
|
+
'l4_flavor_id': 'l4_flavor_id',
|
43
|
+
'l7_flavor_id': 'l7_flavor_id',
|
44
|
+
'enterprise_project_id': 'enterprise_project_id',
|
45
|
+
'reuse_pool': 'reuse_pool',
|
46
|
+
'guaranteed': 'guaranteed'
|
47
|
+
}
|
48
|
+
|
49
|
+
def __init__(self, name=None, availability_zone_list=None, vip_subnet_cidr_id=None, vip_address=None, ipv6_vip_virsubnet_id=None, ipv6_vip_address=None, elb_virsubnet_ids=None, l4_flavor_id=None, l7_flavor_id=None, enterprise_project_id=None, reuse_pool=None, guaranteed=None):
|
50
|
+
"""TargetLoadbalancerParam
|
51
|
+
|
52
|
+
The model defined in huaweicloud sdk
|
53
|
+
|
54
|
+
:param name: 新实例名称。 可选,不选时使用源负载均衡器名称加copy-x的后缀作为新实例名称。
|
55
|
+
:type name: str
|
56
|
+
:param availability_zone_list: 新实例所属可用区。 可选,不选时使用源负载均衡器的可用区。 只在独享型复制场景可配置。
|
57
|
+
:type availability_zone_list: list[str]
|
58
|
+
:param vip_subnet_cidr_id: 新实例所属子网的ipv4子网id。 可选,不选时使用源负载均衡器的ipv4子网。 所选子网需要与源负载均衡器在同一个vpc内。
|
59
|
+
:type vip_subnet_cidr_id: str
|
60
|
+
:param vip_address: 新实例的ipv4私网地址。 可选,不选时随机分配。 只在独享型复制场景、共享型复制为独享型场景可配。
|
61
|
+
:type vip_address: str
|
62
|
+
:param ipv6_vip_virsubnet_id: 新实例ipv6网络所属的子网网络id。 可选,不选时使用源负载均衡器的子网。 所选子网需要与源负载均衡器在同一个vpc内。 只在独享型复制场景可配。
|
63
|
+
:type ipv6_vip_virsubnet_id: str
|
64
|
+
:param ipv6_vip_address: 新实例的ipv6地址。 可选,不选时随机分配。 只在独享型复制场景可配。
|
65
|
+
:type ipv6_vip_address: str
|
66
|
+
:param elb_virsubnet_ids: 新实例后端子网的网络id。 可选,不选时使用源负载均衡器的后端子网。 所选子网需要与源负载均衡器在同一个vpc内。 只在独享型复制场景、共享型复制为独享型场景可配。
|
67
|
+
:type elb_virsubnet_ids: list[str]
|
68
|
+
:param l4_flavor_id: 新实例4层规格。 可选,不选时使用源负载均衡器的4层规格。 只在独享型复制场景、共享型复制为独享型场景可配。
|
69
|
+
:type l4_flavor_id: str
|
70
|
+
:param l7_flavor_id: 新实例7层规格。 可选,不选时使用源负载均衡器的7层规格。 只在独享型复制场景、共享型复制为独享型场景可配。
|
71
|
+
:type l7_flavor_id: str
|
72
|
+
:param enterprise_project_id: 新实例所属企业项目。 可选,不选时使用源负载均衡器的企业项目
|
73
|
+
:type enterprise_project_id: str
|
74
|
+
:param reuse_pool: 新实例是否复用源ELB的后端服务器组和后端服务器标识。 可选,配置为true时需要开启后端服务器组多实例挂载功能。 不选时默认新创建后端服务器组。 enterprise_project_id选项配置使用其他企业项目时,该选项失效。 只在独享型复制场景、共享型复制为独享型场景可配。
|
75
|
+
:type reuse_pool: bool
|
76
|
+
:param guaranteed: 新实例类型。 可选配置。 独享型复制场景默认为true,若显式指定,只能配置为true。 共享型复制场景默认为false,若显式指定,配置为false表示新复制共享型实例,配置为true表示新复制独享型实例。
|
77
|
+
:type guaranteed: bool
|
78
|
+
"""
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
self._name = None
|
83
|
+
self._availability_zone_list = None
|
84
|
+
self._vip_subnet_cidr_id = None
|
85
|
+
self._vip_address = None
|
86
|
+
self._ipv6_vip_virsubnet_id = None
|
87
|
+
self._ipv6_vip_address = None
|
88
|
+
self._elb_virsubnet_ids = None
|
89
|
+
self._l4_flavor_id = None
|
90
|
+
self._l7_flavor_id = None
|
91
|
+
self._enterprise_project_id = None
|
92
|
+
self._reuse_pool = None
|
93
|
+
self._guaranteed = None
|
94
|
+
self.discriminator = None
|
95
|
+
|
96
|
+
if name is not None:
|
97
|
+
self.name = name
|
98
|
+
if availability_zone_list is not None:
|
99
|
+
self.availability_zone_list = availability_zone_list
|
100
|
+
if vip_subnet_cidr_id is not None:
|
101
|
+
self.vip_subnet_cidr_id = vip_subnet_cidr_id
|
102
|
+
if vip_address is not None:
|
103
|
+
self.vip_address = vip_address
|
104
|
+
if ipv6_vip_virsubnet_id is not None:
|
105
|
+
self.ipv6_vip_virsubnet_id = ipv6_vip_virsubnet_id
|
106
|
+
if ipv6_vip_address is not None:
|
107
|
+
self.ipv6_vip_address = ipv6_vip_address
|
108
|
+
if elb_virsubnet_ids is not None:
|
109
|
+
self.elb_virsubnet_ids = elb_virsubnet_ids
|
110
|
+
if l4_flavor_id is not None:
|
111
|
+
self.l4_flavor_id = l4_flavor_id
|
112
|
+
if l7_flavor_id is not None:
|
113
|
+
self.l7_flavor_id = l7_flavor_id
|
114
|
+
if enterprise_project_id is not None:
|
115
|
+
self.enterprise_project_id = enterprise_project_id
|
116
|
+
if reuse_pool is not None:
|
117
|
+
self.reuse_pool = reuse_pool
|
118
|
+
if guaranteed is not None:
|
119
|
+
self.guaranteed = guaranteed
|
120
|
+
|
121
|
+
@property
|
122
|
+
def name(self):
|
123
|
+
"""Gets the name of this TargetLoadbalancerParam.
|
124
|
+
|
125
|
+
新实例名称。 可选,不选时使用源负载均衡器名称加copy-x的后缀作为新实例名称。
|
126
|
+
|
127
|
+
:return: The name of this TargetLoadbalancerParam.
|
128
|
+
:rtype: str
|
129
|
+
"""
|
130
|
+
return self._name
|
131
|
+
|
132
|
+
@name.setter
|
133
|
+
def name(self, name):
|
134
|
+
"""Sets the name of this TargetLoadbalancerParam.
|
135
|
+
|
136
|
+
新实例名称。 可选,不选时使用源负载均衡器名称加copy-x的后缀作为新实例名称。
|
137
|
+
|
138
|
+
:param name: The name of this TargetLoadbalancerParam.
|
139
|
+
:type name: str
|
140
|
+
"""
|
141
|
+
self._name = name
|
142
|
+
|
143
|
+
@property
|
144
|
+
def availability_zone_list(self):
|
145
|
+
"""Gets the availability_zone_list of this TargetLoadbalancerParam.
|
146
|
+
|
147
|
+
新实例所属可用区。 可选,不选时使用源负载均衡器的可用区。 只在独享型复制场景可配置。
|
148
|
+
|
149
|
+
:return: The availability_zone_list of this TargetLoadbalancerParam.
|
150
|
+
:rtype: list[str]
|
151
|
+
"""
|
152
|
+
return self._availability_zone_list
|
153
|
+
|
154
|
+
@availability_zone_list.setter
|
155
|
+
def availability_zone_list(self, availability_zone_list):
|
156
|
+
"""Sets the availability_zone_list of this TargetLoadbalancerParam.
|
157
|
+
|
158
|
+
新实例所属可用区。 可选,不选时使用源负载均衡器的可用区。 只在独享型复制场景可配置。
|
159
|
+
|
160
|
+
:param availability_zone_list: The availability_zone_list of this TargetLoadbalancerParam.
|
161
|
+
:type availability_zone_list: list[str]
|
162
|
+
"""
|
163
|
+
self._availability_zone_list = availability_zone_list
|
164
|
+
|
165
|
+
@property
|
166
|
+
def vip_subnet_cidr_id(self):
|
167
|
+
"""Gets the vip_subnet_cidr_id of this TargetLoadbalancerParam.
|
168
|
+
|
169
|
+
新实例所属子网的ipv4子网id。 可选,不选时使用源负载均衡器的ipv4子网。 所选子网需要与源负载均衡器在同一个vpc内。
|
170
|
+
|
171
|
+
:return: The vip_subnet_cidr_id of this TargetLoadbalancerParam.
|
172
|
+
:rtype: str
|
173
|
+
"""
|
174
|
+
return self._vip_subnet_cidr_id
|
175
|
+
|
176
|
+
@vip_subnet_cidr_id.setter
|
177
|
+
def vip_subnet_cidr_id(self, vip_subnet_cidr_id):
|
178
|
+
"""Sets the vip_subnet_cidr_id of this TargetLoadbalancerParam.
|
179
|
+
|
180
|
+
新实例所属子网的ipv4子网id。 可选,不选时使用源负载均衡器的ipv4子网。 所选子网需要与源负载均衡器在同一个vpc内。
|
181
|
+
|
182
|
+
:param vip_subnet_cidr_id: The vip_subnet_cidr_id of this TargetLoadbalancerParam.
|
183
|
+
:type vip_subnet_cidr_id: str
|
184
|
+
"""
|
185
|
+
self._vip_subnet_cidr_id = vip_subnet_cidr_id
|
186
|
+
|
187
|
+
@property
|
188
|
+
def vip_address(self):
|
189
|
+
"""Gets the vip_address of this TargetLoadbalancerParam.
|
190
|
+
|
191
|
+
新实例的ipv4私网地址。 可选,不选时随机分配。 只在独享型复制场景、共享型复制为独享型场景可配。
|
192
|
+
|
193
|
+
:return: The vip_address of this TargetLoadbalancerParam.
|
194
|
+
:rtype: str
|
195
|
+
"""
|
196
|
+
return self._vip_address
|
197
|
+
|
198
|
+
@vip_address.setter
|
199
|
+
def vip_address(self, vip_address):
|
200
|
+
"""Sets the vip_address of this TargetLoadbalancerParam.
|
201
|
+
|
202
|
+
新实例的ipv4私网地址。 可选,不选时随机分配。 只在独享型复制场景、共享型复制为独享型场景可配。
|
203
|
+
|
204
|
+
:param vip_address: The vip_address of this TargetLoadbalancerParam.
|
205
|
+
:type vip_address: str
|
206
|
+
"""
|
207
|
+
self._vip_address = vip_address
|
208
|
+
|
209
|
+
@property
|
210
|
+
def ipv6_vip_virsubnet_id(self):
|
211
|
+
"""Gets the ipv6_vip_virsubnet_id of this TargetLoadbalancerParam.
|
212
|
+
|
213
|
+
新实例ipv6网络所属的子网网络id。 可选,不选时使用源负载均衡器的子网。 所选子网需要与源负载均衡器在同一个vpc内。 只在独享型复制场景可配。
|
214
|
+
|
215
|
+
:return: The ipv6_vip_virsubnet_id of this TargetLoadbalancerParam.
|
216
|
+
:rtype: str
|
217
|
+
"""
|
218
|
+
return self._ipv6_vip_virsubnet_id
|
219
|
+
|
220
|
+
@ipv6_vip_virsubnet_id.setter
|
221
|
+
def ipv6_vip_virsubnet_id(self, ipv6_vip_virsubnet_id):
|
222
|
+
"""Sets the ipv6_vip_virsubnet_id of this TargetLoadbalancerParam.
|
223
|
+
|
224
|
+
新实例ipv6网络所属的子网网络id。 可选,不选时使用源负载均衡器的子网。 所选子网需要与源负载均衡器在同一个vpc内。 只在独享型复制场景可配。
|
225
|
+
|
226
|
+
:param ipv6_vip_virsubnet_id: The ipv6_vip_virsubnet_id of this TargetLoadbalancerParam.
|
227
|
+
:type ipv6_vip_virsubnet_id: str
|
228
|
+
"""
|
229
|
+
self._ipv6_vip_virsubnet_id = ipv6_vip_virsubnet_id
|
230
|
+
|
231
|
+
@property
|
232
|
+
def ipv6_vip_address(self):
|
233
|
+
"""Gets the ipv6_vip_address of this TargetLoadbalancerParam.
|
234
|
+
|
235
|
+
新实例的ipv6地址。 可选,不选时随机分配。 只在独享型复制场景可配。
|
236
|
+
|
237
|
+
:return: The ipv6_vip_address of this TargetLoadbalancerParam.
|
238
|
+
:rtype: str
|
239
|
+
"""
|
240
|
+
return self._ipv6_vip_address
|
241
|
+
|
242
|
+
@ipv6_vip_address.setter
|
243
|
+
def ipv6_vip_address(self, ipv6_vip_address):
|
244
|
+
"""Sets the ipv6_vip_address of this TargetLoadbalancerParam.
|
245
|
+
|
246
|
+
新实例的ipv6地址。 可选,不选时随机分配。 只在独享型复制场景可配。
|
247
|
+
|
248
|
+
:param ipv6_vip_address: The ipv6_vip_address of this TargetLoadbalancerParam.
|
249
|
+
:type ipv6_vip_address: str
|
250
|
+
"""
|
251
|
+
self._ipv6_vip_address = ipv6_vip_address
|
252
|
+
|
253
|
+
@property
|
254
|
+
def elb_virsubnet_ids(self):
|
255
|
+
"""Gets the elb_virsubnet_ids of this TargetLoadbalancerParam.
|
256
|
+
|
257
|
+
新实例后端子网的网络id。 可选,不选时使用源负载均衡器的后端子网。 所选子网需要与源负载均衡器在同一个vpc内。 只在独享型复制场景、共享型复制为独享型场景可配。
|
258
|
+
|
259
|
+
:return: The elb_virsubnet_ids of this TargetLoadbalancerParam.
|
260
|
+
:rtype: list[str]
|
261
|
+
"""
|
262
|
+
return self._elb_virsubnet_ids
|
263
|
+
|
264
|
+
@elb_virsubnet_ids.setter
|
265
|
+
def elb_virsubnet_ids(self, elb_virsubnet_ids):
|
266
|
+
"""Sets the elb_virsubnet_ids of this TargetLoadbalancerParam.
|
267
|
+
|
268
|
+
新实例后端子网的网络id。 可选,不选时使用源负载均衡器的后端子网。 所选子网需要与源负载均衡器在同一个vpc内。 只在独享型复制场景、共享型复制为独享型场景可配。
|
269
|
+
|
270
|
+
:param elb_virsubnet_ids: The elb_virsubnet_ids of this TargetLoadbalancerParam.
|
271
|
+
:type elb_virsubnet_ids: list[str]
|
272
|
+
"""
|
273
|
+
self._elb_virsubnet_ids = elb_virsubnet_ids
|
274
|
+
|
275
|
+
@property
|
276
|
+
def l4_flavor_id(self):
|
277
|
+
"""Gets the l4_flavor_id of this TargetLoadbalancerParam.
|
278
|
+
|
279
|
+
新实例4层规格。 可选,不选时使用源负载均衡器的4层规格。 只在独享型复制场景、共享型复制为独享型场景可配。
|
280
|
+
|
281
|
+
:return: The l4_flavor_id of this TargetLoadbalancerParam.
|
282
|
+
:rtype: str
|
283
|
+
"""
|
284
|
+
return self._l4_flavor_id
|
285
|
+
|
286
|
+
@l4_flavor_id.setter
|
287
|
+
def l4_flavor_id(self, l4_flavor_id):
|
288
|
+
"""Sets the l4_flavor_id of this TargetLoadbalancerParam.
|
289
|
+
|
290
|
+
新实例4层规格。 可选,不选时使用源负载均衡器的4层规格。 只在独享型复制场景、共享型复制为独享型场景可配。
|
291
|
+
|
292
|
+
:param l4_flavor_id: The l4_flavor_id of this TargetLoadbalancerParam.
|
293
|
+
:type l4_flavor_id: str
|
294
|
+
"""
|
295
|
+
self._l4_flavor_id = l4_flavor_id
|
296
|
+
|
297
|
+
@property
|
298
|
+
def l7_flavor_id(self):
|
299
|
+
"""Gets the l7_flavor_id of this TargetLoadbalancerParam.
|
300
|
+
|
301
|
+
新实例7层规格。 可选,不选时使用源负载均衡器的7层规格。 只在独享型复制场景、共享型复制为独享型场景可配。
|
302
|
+
|
303
|
+
:return: The l7_flavor_id of this TargetLoadbalancerParam.
|
304
|
+
:rtype: str
|
305
|
+
"""
|
306
|
+
return self._l7_flavor_id
|
307
|
+
|
308
|
+
@l7_flavor_id.setter
|
309
|
+
def l7_flavor_id(self, l7_flavor_id):
|
310
|
+
"""Sets the l7_flavor_id of this TargetLoadbalancerParam.
|
311
|
+
|
312
|
+
新实例7层规格。 可选,不选时使用源负载均衡器的7层规格。 只在独享型复制场景、共享型复制为独享型场景可配。
|
313
|
+
|
314
|
+
:param l7_flavor_id: The l7_flavor_id of this TargetLoadbalancerParam.
|
315
|
+
:type l7_flavor_id: str
|
316
|
+
"""
|
317
|
+
self._l7_flavor_id = l7_flavor_id
|
318
|
+
|
319
|
+
@property
|
320
|
+
def enterprise_project_id(self):
|
321
|
+
"""Gets the enterprise_project_id of this TargetLoadbalancerParam.
|
322
|
+
|
323
|
+
新实例所属企业项目。 可选,不选时使用源负载均衡器的企业项目
|
324
|
+
|
325
|
+
:return: The enterprise_project_id of this TargetLoadbalancerParam.
|
326
|
+
:rtype: str
|
327
|
+
"""
|
328
|
+
return self._enterprise_project_id
|
329
|
+
|
330
|
+
@enterprise_project_id.setter
|
331
|
+
def enterprise_project_id(self, enterprise_project_id):
|
332
|
+
"""Sets the enterprise_project_id of this TargetLoadbalancerParam.
|
333
|
+
|
334
|
+
新实例所属企业项目。 可选,不选时使用源负载均衡器的企业项目
|
335
|
+
|
336
|
+
:param enterprise_project_id: The enterprise_project_id of this TargetLoadbalancerParam.
|
337
|
+
:type enterprise_project_id: str
|
338
|
+
"""
|
339
|
+
self._enterprise_project_id = enterprise_project_id
|
340
|
+
|
341
|
+
@property
|
342
|
+
def reuse_pool(self):
|
343
|
+
"""Gets the reuse_pool of this TargetLoadbalancerParam.
|
344
|
+
|
345
|
+
新实例是否复用源ELB的后端服务器组和后端服务器标识。 可选,配置为true时需要开启后端服务器组多实例挂载功能。 不选时默认新创建后端服务器组。 enterprise_project_id选项配置使用其他企业项目时,该选项失效。 只在独享型复制场景、共享型复制为独享型场景可配。
|
346
|
+
|
347
|
+
:return: The reuse_pool of this TargetLoadbalancerParam.
|
348
|
+
:rtype: bool
|
349
|
+
"""
|
350
|
+
return self._reuse_pool
|
351
|
+
|
352
|
+
@reuse_pool.setter
|
353
|
+
def reuse_pool(self, reuse_pool):
|
354
|
+
"""Sets the reuse_pool of this TargetLoadbalancerParam.
|
355
|
+
|
356
|
+
新实例是否复用源ELB的后端服务器组和后端服务器标识。 可选,配置为true时需要开启后端服务器组多实例挂载功能。 不选时默认新创建后端服务器组。 enterprise_project_id选项配置使用其他企业项目时,该选项失效。 只在独享型复制场景、共享型复制为独享型场景可配。
|
357
|
+
|
358
|
+
:param reuse_pool: The reuse_pool of this TargetLoadbalancerParam.
|
359
|
+
:type reuse_pool: bool
|
360
|
+
"""
|
361
|
+
self._reuse_pool = reuse_pool
|
362
|
+
|
363
|
+
@property
|
364
|
+
def guaranteed(self):
|
365
|
+
"""Gets the guaranteed of this TargetLoadbalancerParam.
|
366
|
+
|
367
|
+
新实例类型。 可选配置。 独享型复制场景默认为true,若显式指定,只能配置为true。 共享型复制场景默认为false,若显式指定,配置为false表示新复制共享型实例,配置为true表示新复制独享型实例。
|
368
|
+
|
369
|
+
:return: The guaranteed of this TargetLoadbalancerParam.
|
370
|
+
:rtype: bool
|
371
|
+
"""
|
372
|
+
return self._guaranteed
|
373
|
+
|
374
|
+
@guaranteed.setter
|
375
|
+
def guaranteed(self, guaranteed):
|
376
|
+
"""Sets the guaranteed of this TargetLoadbalancerParam.
|
377
|
+
|
378
|
+
新实例类型。 可选配置。 独享型复制场景默认为true,若显式指定,只能配置为true。 共享型复制场景默认为false,若显式指定,配置为false表示新复制共享型实例,配置为true表示新复制独享型实例。
|
379
|
+
|
380
|
+
:param guaranteed: The guaranteed of this TargetLoadbalancerParam.
|
381
|
+
:type guaranteed: bool
|
382
|
+
"""
|
383
|
+
self._guaranteed = guaranteed
|
384
|
+
|
385
|
+
def to_dict(self):
|
386
|
+
"""Returns the model properties as a dict"""
|
387
|
+
result = {}
|
388
|
+
|
389
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
390
|
+
value = getattr(self, attr)
|
391
|
+
if isinstance(value, list):
|
392
|
+
result[attr] = list(map(
|
393
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
394
|
+
value
|
395
|
+
))
|
396
|
+
elif hasattr(value, "to_dict"):
|
397
|
+
result[attr] = value.to_dict()
|
398
|
+
elif isinstance(value, dict):
|
399
|
+
result[attr] = dict(map(
|
400
|
+
lambda item: (item[0], item[1].to_dict())
|
401
|
+
if hasattr(item[1], "to_dict") else item,
|
402
|
+
value.items()
|
403
|
+
))
|
404
|
+
else:
|
405
|
+
if attr in self.sensitive_list:
|
406
|
+
result[attr] = "****"
|
407
|
+
else:
|
408
|
+
result[attr] = value
|
409
|
+
|
410
|
+
return result
|
411
|
+
|
412
|
+
def to_str(self):
|
413
|
+
"""Returns the string representation of the model"""
|
414
|
+
import simplejson as json
|
415
|
+
if six.PY2:
|
416
|
+
import sys
|
417
|
+
reload(sys)
|
418
|
+
sys.setdefaultencoding("utf-8")
|
419
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
420
|
+
|
421
|
+
def __repr__(self):
|
422
|
+
"""For `print`"""
|
423
|
+
return self.to_str()
|
424
|
+
|
425
|
+
def __eq__(self, other):
|
426
|
+
"""Returns true if both objects are equal"""
|
427
|
+
if not isinstance(other, TargetLoadbalancerParam):
|
428
|
+
return False
|
429
|
+
|
430
|
+
return self.__dict__ == other.__dict__
|
431
|
+
|
432
|
+
def __ne__(self, other):
|
433
|
+
"""Returns true if both objects are not equal"""
|
434
|
+
return not self == other
|
@@ -23,7 +23,8 @@ class UpdateCertificateOption:
|
|
23
23
|
'private_key': 'str',
|
24
24
|
'domain': 'str',
|
25
25
|
'enc_certificate': 'str',
|
26
|
-
'enc_private_key': 'str'
|
26
|
+
'enc_private_key': 'str',
|
27
|
+
'scm_certificate_id': 'str'
|
27
28
|
}
|
28
29
|
|
29
30
|
attribute_map = {
|
@@ -33,10 +34,11 @@ class UpdateCertificateOption:
|
|
33
34
|
'private_key': 'private_key',
|
34
35
|
'domain': 'domain',
|
35
36
|
'enc_certificate': 'enc_certificate',
|
36
|
-
'enc_private_key': 'enc_private_key'
|
37
|
+
'enc_private_key': 'enc_private_key',
|
38
|
+
'scm_certificate_id': 'scm_certificate_id'
|
37
39
|
}
|
38
40
|
|
39
|
-
def __init__(self, certificate=None, description=None, name=None, private_key=None, domain=None, enc_certificate=None, enc_private_key=None):
|
41
|
+
def __init__(self, certificate=None, description=None, name=None, private_key=None, domain=None, enc_certificate=None, enc_private_key=None, scm_certificate_id=None):
|
40
42
|
"""UpdateCertificateOption
|
41
43
|
|
42
44
|
The model defined in huaweicloud sdk
|
@@ -49,12 +51,14 @@ class UpdateCertificateOption:
|
|
49
51
|
:type name: str
|
50
52
|
:param private_key: 服务器证书的私钥。PEM编码格式。 当type为client时,该参数被忽略,不影响证书的创建和使用。若传入不符合格式值,则会报错。 当type为server时,该字段必须符合格式要求,且私钥必须是有效的。 最大长度8192字符。
|
51
53
|
:type private_key: str
|
52
|
-
:param domain: 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"
|
54
|
+
:param domain: 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分隔,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分隔,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
|
53
55
|
:type domain: str
|
54
56
|
:param enc_certificate: HTTPS协议使用的SM加密证书内容。支持证书链,最大11层(含证书和证书链)。 取值:PEM编码格式。最大长度65536字符。 使用说明:仅type为server_sm时有效。
|
55
57
|
:type enc_certificate: str
|
56
58
|
:param enc_private_key: HTTPS协议使用的SM加密证书内容。 取值:PEM编码格式。最大长度8192字符。 使用说明:仅type为server_sm时有效。
|
57
59
|
:type enc_private_key: str
|
60
|
+
:param scm_certificate_id: scm证书id
|
61
|
+
:type scm_certificate_id: str
|
58
62
|
"""
|
59
63
|
|
60
64
|
|
@@ -66,6 +70,7 @@ class UpdateCertificateOption:
|
|
66
70
|
self._domain = None
|
67
71
|
self._enc_certificate = None
|
68
72
|
self._enc_private_key = None
|
73
|
+
self._scm_certificate_id = None
|
69
74
|
self.discriminator = None
|
70
75
|
|
71
76
|
if certificate is not None:
|
@@ -82,6 +87,8 @@ class UpdateCertificateOption:
|
|
82
87
|
self.enc_certificate = enc_certificate
|
83
88
|
if enc_private_key is not None:
|
84
89
|
self.enc_private_key = enc_private_key
|
90
|
+
if scm_certificate_id is not None:
|
91
|
+
self.scm_certificate_id = scm_certificate_id
|
85
92
|
|
86
93
|
@property
|
87
94
|
def certificate(self):
|
@@ -175,7 +182,7 @@ class UpdateCertificateOption:
|
|
175
182
|
def domain(self):
|
176
183
|
"""Gets the domain of this UpdateCertificateOption.
|
177
184
|
|
178
|
-
服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"
|
185
|
+
服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分隔,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分隔,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
|
179
186
|
|
180
187
|
:return: The domain of this UpdateCertificateOption.
|
181
188
|
:rtype: str
|
@@ -186,7 +193,7 @@ class UpdateCertificateOption:
|
|
186
193
|
def domain(self, domain):
|
187
194
|
"""Sets the domain of this UpdateCertificateOption.
|
188
195
|
|
189
|
-
服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"
|
196
|
+
服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分隔,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分隔,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
|
190
197
|
|
191
198
|
:param domain: The domain of this UpdateCertificateOption.
|
192
199
|
:type domain: str
|
@@ -237,6 +244,28 @@ class UpdateCertificateOption:
|
|
237
244
|
"""
|
238
245
|
self._enc_private_key = enc_private_key
|
239
246
|
|
247
|
+
@property
|
248
|
+
def scm_certificate_id(self):
|
249
|
+
"""Gets the scm_certificate_id of this UpdateCertificateOption.
|
250
|
+
|
251
|
+
scm证书id
|
252
|
+
|
253
|
+
:return: The scm_certificate_id of this UpdateCertificateOption.
|
254
|
+
:rtype: str
|
255
|
+
"""
|
256
|
+
return self._scm_certificate_id
|
257
|
+
|
258
|
+
@scm_certificate_id.setter
|
259
|
+
def scm_certificate_id(self, scm_certificate_id):
|
260
|
+
"""Sets the scm_certificate_id of this UpdateCertificateOption.
|
261
|
+
|
262
|
+
scm证书id
|
263
|
+
|
264
|
+
:param scm_certificate_id: The scm_certificate_id of this UpdateCertificateOption.
|
265
|
+
:type scm_certificate_id: str
|
266
|
+
"""
|
267
|
+
self._scm_certificate_id = scm_certificate_id
|
268
|
+
|
240
269
|
def to_dict(self):
|
241
270
|
"""Returns the model properties as a dict"""
|
242
271
|
result = {}
|
@@ -65,7 +65,7 @@ class UpdateHealthMonitorOption:
|
|
65
65
|
:type max_retries: int
|
66
66
|
:param max_retries_down: 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10。
|
67
67
|
:type max_retries_down: int
|
68
|
-
:param monitor_port:
|
68
|
+
:param monitor_port: 参数解释:健康检查端口号。 [约束限制:当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) 取值范围:1-65535和null,传null表示使用后端服务器端口号。
|
69
69
|
:type monitor_port: int
|
70
70
|
:param name: 健康检查名称。
|
71
71
|
:type name: str
|
@@ -276,7 +276,7 @@ class UpdateHealthMonitorOption:
|
|
276
276
|
def monitor_port(self):
|
277
277
|
"""Gets the monitor_port of this UpdateHealthMonitorOption.
|
278
278
|
|
279
|
-
|
279
|
+
参数解释:健康检查端口号。 [约束限制:当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) 取值范围:1-65535和null,传null表示使用后端服务器端口号。
|
280
280
|
|
281
281
|
:return: The monitor_port of this UpdateHealthMonitorOption.
|
282
282
|
:rtype: int
|
@@ -287,7 +287,7 @@ class UpdateHealthMonitorOption:
|
|
287
287
|
def monitor_port(self, monitor_port):
|
288
288
|
"""Sets the monitor_port of this UpdateHealthMonitorOption.
|
289
289
|
|
290
|
-
|
290
|
+
参数解释:健康检查端口号。 [约束限制:当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) 取值范围:1-65535和null,传null表示使用后端服务器端口号。
|
291
291
|
|
292
292
|
:param monitor_port: The monitor_port of this UpdateHealthMonitorOption.
|
293
293
|
:type monitor_port: int
|
@@ -73,7 +73,7 @@ class UpdateL7PolicyOption:
|
|
73
73
|
:type redirect_pools_extend_config: :class:`huaweicloudsdkelb.v3.UpdateRedirectPoolsExtendConfig`
|
74
74
|
:param rules: 参数解释:转发策略关联的转发规则对象。 约束限制: - rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。 - 仅支持全量替换。
|
75
75
|
:type rules: list[:class:`huaweicloudsdkelb.v3.CreateRuleOption`]
|
76
|
-
:param priority: 参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。
|
76
|
+
:param priority: 参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
77
77
|
:type priority: int
|
78
78
|
"""
|
79
79
|
|
@@ -348,7 +348,7 @@ class UpdateL7PolicyOption:
|
|
348
348
|
def priority(self):
|
349
349
|
"""Gets the priority of this UpdateL7PolicyOption.
|
350
350
|
|
351
|
-
参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。
|
351
|
+
参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
352
352
|
|
353
353
|
:return: The priority of this UpdateL7PolicyOption.
|
354
354
|
:rtype: int
|
@@ -359,7 +359,7 @@ class UpdateL7PolicyOption:
|
|
359
359
|
def priority(self, priority):
|
360
360
|
"""Sets the priority of this UpdateL7PolicyOption.
|
361
361
|
|
362
|
-
参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。
|
362
|
+
参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
363
363
|
|
364
364
|
:param priority: The priority of this UpdateL7PolicyOption.
|
365
365
|
:type priority: int
|