huaweicloudsdkelb 3.1.148__py2.py3-none-any.whl → 3.1.149__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 +34 -0
- huaweicloudsdkelb/v3/elb_async_client.py +631 -3
- huaweicloudsdkelb/v3/elb_client.py +631 -3
- huaweicloudsdkelb/v3/model/__init__.py +34 -0
- huaweicloudsdkelb/v3/model/az_affinity.py +201 -0
- huaweicloudsdkelb/v3/model/batch_create_load_balancer_option.py +3 -3
- huaweicloudsdkelb/v3/model/batch_create_members_option.py +30 -1
- huaweicloudsdkelb/v3/model/batch_update_member.py +32 -3
- huaweicloudsdkelb/v3/model/batch_update_members_option.py +30 -1
- huaweicloudsdkelb/v3/model/certificate_info.py +90 -3
- huaweicloudsdkelb/v3/model/create_certificate_option.py +90 -3
- huaweicloudsdkelb/v3/model/create_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_member_health_check_job_option.py +142 -0
- huaweicloudsdkelb/v3/model/create_member_health_check_job_request.py +139 -0
- huaweicloudsdkelb/v3/model/create_member_health_check_job_request_body.py +111 -0
- huaweicloudsdkelb/v3/model/create_member_health_check_job_response.py +141 -0
- huaweicloudsdkelb/v3/model/create_member_option.py +32 -3
- huaweicloudsdkelb/v3/model/create_pool_option.py +26 -1
- huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/create_traffic_mirror_config.py +144 -0
- huaweicloudsdkelb/v3/model/delete_recycle_load_balancer_request.py +114 -0
- huaweicloudsdkelb/v3/model/delete_recycle_load_balancer_response.py +85 -0
- huaweicloudsdkelb/v3/model/health_monitor.py +3 -3
- huaweicloudsdkelb/v3/model/list_certificates_request.py +90 -3
- huaweicloudsdkelb/v3/model/list_health_monitors_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_listeners_request.py +30 -1
- huaweicloudsdkelb/v3/model/list_load_balancers_request.py +30 -1
- huaweicloudsdkelb/v3/model/list_members_request.py +32 -3
- huaweicloudsdkelb/v3/model/list_pools_request.py +32 -3
- huaweicloudsdkelb/v3/model/list_recycle_bin_load_balancers_request.py +1043 -0
- huaweicloudsdkelb/v3/model/list_recycle_bin_load_balancers_response.py +170 -0
- huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +3 -3
- huaweicloudsdkelb/v3/model/member.py +29 -1
- huaweicloudsdkelb/v3/model/member_check_job.py +115 -0
- huaweicloudsdkelb/v3/model/member_check_job_info.py +343 -0
- huaweicloudsdkelb/v3/model/member_check_job_result.py +161 -0
- huaweicloudsdkelb/v3/model/member_check_job_result_group.py +173 -0
- huaweicloudsdkelb/v3/model/member_check_job_result_item.py +289 -0
- huaweicloudsdkelb/v3/model/member_info.py +29 -1
- huaweicloudsdkelb/v3/model/pool.py +29 -4
- huaweicloudsdkelb/v3/model/prepaid_change_charge_mode_option.py +30 -1
- huaweicloudsdkelb/v3/model/recycle_bin_policy.py +144 -0
- huaweicloudsdkelb/v3/model/recycle_bin_policy_request_body.py +111 -0
- huaweicloudsdkelb/v3/model/recycle_bin_request_body.py +115 -0
- huaweicloudsdkelb/v3/model/recycle_bin_response_body.py +169 -0
- huaweicloudsdkelb/v3/model/recycle_load_balancer.py +1412 -0
- huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/restore_loadbalancer_request.py +114 -0
- huaweicloudsdkelb/v3/model/restore_loadbalancer_response.py +174 -0
- huaweicloudsdkelb/v3/model/show_member_health_check_job_request.py +114 -0
- huaweicloudsdkelb/v3/model/show_member_health_check_job_response.py +141 -0
- huaweicloudsdkelb/v3/model/show_recycle_bin_request.py +84 -0
- huaweicloudsdkelb/v3/model/show_recycle_bin_response.py +112 -0
- huaweicloudsdkelb/v3/model/traffic_mirror_config.py +144 -0
- huaweicloudsdkelb/v3/model/update_az_affinity.py +202 -0
- huaweicloudsdkelb/v3/model/update_certificate_option.py +90 -3
- huaweicloudsdkelb/v3/model/update_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_member_option.py +30 -1
- huaweicloudsdkelb/v3/model/update_pool_option.py +28 -3
- huaweicloudsdkelb/v3/model/update_recycle_bin_enable_request.py +111 -0
- huaweicloudsdkelb/v3/model/update_recycle_bin_enable_request_body.py +111 -0
- huaweicloudsdkelb/v3/model/update_recycle_bin_enable_response.py +112 -0
- huaweicloudsdkelb/v3/model/update_recycle_bin_policy_request.py +111 -0
- huaweicloudsdkelb/v3/model/update_recycle_bin_policy_request_body.py +111 -0
- huaweicloudsdkelb/v3/model/update_recycle_bin_policy_response.py +112 -0
- huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +28 -3
- {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/RECORD +72 -38
- {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/top_level.txt +0 -0
@@ -6,6 +6,7 @@ from __future__ import absolute_import
|
|
6
6
|
from huaweicloudsdkelb.v3.model.api_version_info import ApiVersionInfo
|
7
7
|
from huaweicloudsdkelb.v3.model.autoscaling_ref import AutoscalingRef
|
8
8
|
from huaweicloudsdkelb.v3.model.availability_zone import AvailabilityZone
|
9
|
+
from huaweicloudsdkelb.v3.model.az_affinity import AzAffinity
|
9
10
|
from huaweicloudsdkelb.v3.model.bandwidth_ref import BandwidthRef
|
10
11
|
from huaweicloudsdkelb.v3.model.base_job import BaseJob
|
11
12
|
from huaweicloudsdkelb.v3.model.batch_add_available_zones_request import BatchAddAvailableZonesRequest
|
@@ -104,6 +105,10 @@ from huaweicloudsdkelb.v3.model.create_master_slave_pool_option import CreateMas
|
|
104
105
|
from huaweicloudsdkelb.v3.model.create_master_slave_pool_request import CreateMasterSlavePoolRequest
|
105
106
|
from huaweicloudsdkelb.v3.model.create_master_slave_pool_request_body import CreateMasterSlavePoolRequestBody
|
106
107
|
from huaweicloudsdkelb.v3.model.create_master_slave_pool_response import CreateMasterSlavePoolResponse
|
108
|
+
from huaweicloudsdkelb.v3.model.create_member_health_check_job_option import CreateMemberHealthCheckJobOption
|
109
|
+
from huaweicloudsdkelb.v3.model.create_member_health_check_job_request import CreateMemberHealthCheckJobRequest
|
110
|
+
from huaweicloudsdkelb.v3.model.create_member_health_check_job_request_body import CreateMemberHealthCheckJobRequestBody
|
111
|
+
from huaweicloudsdkelb.v3.model.create_member_health_check_job_response import CreateMemberHealthCheckJobResponse
|
107
112
|
from huaweicloudsdkelb.v3.model.create_member_option import CreateMemberOption
|
108
113
|
from huaweicloudsdkelb.v3.model.create_member_request import CreateMemberRequest
|
109
114
|
from huaweicloudsdkelb.v3.model.create_member_request_body import CreateMemberRequestBody
|
@@ -128,6 +133,7 @@ from huaweicloudsdkelb.v3.model.create_security_policy_request import CreateSecu
|
|
128
133
|
from huaweicloudsdkelb.v3.model.create_security_policy_request_body import CreateSecurityPolicyRequestBody
|
129
134
|
from huaweicloudsdkelb.v3.model.create_security_policy_response import CreateSecurityPolicyResponse
|
130
135
|
from huaweicloudsdkelb.v3.model.create_traffic_limit_config import CreateTrafficLimitConfig
|
136
|
+
from huaweicloudsdkelb.v3.model.create_traffic_mirror_config import CreateTrafficMirrorConfig
|
131
137
|
from huaweicloudsdkelb.v3.model.delete_certificate_request import DeleteCertificateRequest
|
132
138
|
from huaweicloudsdkelb.v3.model.delete_certificate_response import DeleteCertificateResponse
|
133
139
|
from huaweicloudsdkelb.v3.model.delete_health_monitor_request import DeleteHealthMonitorRequest
|
@@ -160,6 +166,8 @@ from huaweicloudsdkelb.v3.model.delete_pool_cascade_request import DeletePoolCas
|
|
160
166
|
from huaweicloudsdkelb.v3.model.delete_pool_cascade_response import DeletePoolCascadeResponse
|
161
167
|
from huaweicloudsdkelb.v3.model.delete_pool_request import DeletePoolRequest
|
162
168
|
from huaweicloudsdkelb.v3.model.delete_pool_response import DeletePoolResponse
|
169
|
+
from huaweicloudsdkelb.v3.model.delete_recycle_load_balancer_request import DeleteRecycleLoadBalancerRequest
|
170
|
+
from huaweicloudsdkelb.v3.model.delete_recycle_load_balancer_response import DeleteRecycleLoadBalancerResponse
|
163
171
|
from huaweicloudsdkelb.v3.model.delete_security_policy_request import DeleteSecurityPolicyRequest
|
164
172
|
from huaweicloudsdkelb.v3.model.delete_security_policy_response import DeleteSecurityPolicyResponse
|
165
173
|
from huaweicloudsdkelb.v3.model.eip_info import EipInfo
|
@@ -216,6 +224,8 @@ from huaweicloudsdkelb.v3.model.list_pools_request import ListPoolsRequest
|
|
216
224
|
from huaweicloudsdkelb.v3.model.list_pools_response import ListPoolsResponse
|
217
225
|
from huaweicloudsdkelb.v3.model.list_quota_details_request import ListQuotaDetailsRequest
|
218
226
|
from huaweicloudsdkelb.v3.model.list_quota_details_response import ListQuotaDetailsResponse
|
227
|
+
from huaweicloudsdkelb.v3.model.list_recycle_bin_load_balancers_request import ListRecycleBinLoadBalancersRequest
|
228
|
+
from huaweicloudsdkelb.v3.model.list_recycle_bin_load_balancers_response import ListRecycleBinLoadBalancersResponse
|
219
229
|
from huaweicloudsdkelb.v3.model.list_security_policies_request import ListSecurityPoliciesRequest
|
220
230
|
from huaweicloudsdkelb.v3.model.list_security_policies_response import ListSecurityPoliciesResponse
|
221
231
|
from huaweicloudsdkelb.v3.model.list_system_security_policies_request import ListSystemSecurityPoliciesRequest
|
@@ -243,6 +253,11 @@ from huaweicloudsdkelb.v3.model.master_slave_health_monitor import MasterSlaveHe
|
|
243
253
|
from huaweicloudsdkelb.v3.model.master_slave_member import MasterSlaveMember
|
244
254
|
from huaweicloudsdkelb.v3.model.master_slave_pool import MasterSlavePool
|
245
255
|
from huaweicloudsdkelb.v3.model.member import Member
|
256
|
+
from huaweicloudsdkelb.v3.model.member_check_job import MemberCheckJob
|
257
|
+
from huaweicloudsdkelb.v3.model.member_check_job_info import MemberCheckJobInfo
|
258
|
+
from huaweicloudsdkelb.v3.model.member_check_job_result import MemberCheckJobResult
|
259
|
+
from huaweicloudsdkelb.v3.model.member_check_job_result_group import MemberCheckJobResultGroup
|
260
|
+
from huaweicloudsdkelb.v3.model.member_check_job_result_item import MemberCheckJobResultItem
|
246
261
|
from huaweicloudsdkelb.v3.model.member_health_check_failed_reason import MemberHealthCheckFailedReason
|
247
262
|
from huaweicloudsdkelb.v3.model.member_info import MemberInfo
|
248
263
|
from huaweicloudsdkelb.v3.model.member_ref import MemberRef
|
@@ -261,6 +276,11 @@ from huaweicloudsdkelb.v3.model.public_ip_info import PublicIpInfo
|
|
261
276
|
from huaweicloudsdkelb.v3.model.quic_cid_hash_strategy import QuicCidHashStrategy
|
262
277
|
from huaweicloudsdkelb.v3.model.quota import Quota
|
263
278
|
from huaweicloudsdkelb.v3.model.quota_info import QuotaInfo
|
279
|
+
from huaweicloudsdkelb.v3.model.recycle_bin_policy import RecycleBinPolicy
|
280
|
+
from huaweicloudsdkelb.v3.model.recycle_bin_policy_request_body import RecycleBinPolicyRequestBody
|
281
|
+
from huaweicloudsdkelb.v3.model.recycle_bin_request_body import RecycleBinRequestBody
|
282
|
+
from huaweicloudsdkelb.v3.model.recycle_bin_response_body import RecycleBinResponseBody
|
283
|
+
from huaweicloudsdkelb.v3.model.recycle_load_balancer import RecycleLoadBalancer
|
264
284
|
from huaweicloudsdkelb.v3.model.redirect_pools_config import RedirectPoolsConfig
|
265
285
|
from huaweicloudsdkelb.v3.model.redirect_pools_extend_config import RedirectPoolsExtendConfig
|
266
286
|
from huaweicloudsdkelb.v3.model.redirect_pools_sticky_session_config import RedirectPoolsStickySessionConfig
|
@@ -268,6 +288,8 @@ from huaweicloudsdkelb.v3.model.redirect_url_config import RedirectUrlConfig
|
|
268
288
|
from huaweicloudsdkelb.v3.model.remove_header_config import RemoveHeaderConfig
|
269
289
|
from huaweicloudsdkelb.v3.model.remove_headers_config import RemoveHeadersConfig
|
270
290
|
from huaweicloudsdkelb.v3.model.resource_id import ResourceID
|
291
|
+
from huaweicloudsdkelb.v3.model.restore_loadbalancer_request import RestoreLoadbalancerRequest
|
292
|
+
from huaweicloudsdkelb.v3.model.restore_loadbalancer_response import RestoreLoadbalancerResponse
|
271
293
|
from huaweicloudsdkelb.v3.model.rewrite_url_config import RewriteUrlConfig
|
272
294
|
from huaweicloudsdkelb.v3.model.rule_condition import RuleCondition
|
273
295
|
from huaweicloudsdkelb.v3.model.rule_ref import RuleRef
|
@@ -301,12 +323,16 @@ from huaweicloudsdkelb.v3.model.show_logtank_request import ShowLogtankRequest
|
|
301
323
|
from huaweicloudsdkelb.v3.model.show_logtank_response import ShowLogtankResponse
|
302
324
|
from huaweicloudsdkelb.v3.model.show_master_slave_pool_request import ShowMasterSlavePoolRequest
|
303
325
|
from huaweicloudsdkelb.v3.model.show_master_slave_pool_response import ShowMasterSlavePoolResponse
|
326
|
+
from huaweicloudsdkelb.v3.model.show_member_health_check_job_request import ShowMemberHealthCheckJobRequest
|
327
|
+
from huaweicloudsdkelb.v3.model.show_member_health_check_job_response import ShowMemberHealthCheckJobResponse
|
304
328
|
from huaweicloudsdkelb.v3.model.show_member_request import ShowMemberRequest
|
305
329
|
from huaweicloudsdkelb.v3.model.show_member_response import ShowMemberResponse
|
306
330
|
from huaweicloudsdkelb.v3.model.show_pool_request import ShowPoolRequest
|
307
331
|
from huaweicloudsdkelb.v3.model.show_pool_response import ShowPoolResponse
|
308
332
|
from huaweicloudsdkelb.v3.model.show_quota_request import ShowQuotaRequest
|
309
333
|
from huaweicloudsdkelb.v3.model.show_quota_response import ShowQuotaResponse
|
334
|
+
from huaweicloudsdkelb.v3.model.show_recycle_bin_request import ShowRecycleBinRequest
|
335
|
+
from huaweicloudsdkelb.v3.model.show_recycle_bin_response import ShowRecycleBinResponse
|
310
336
|
from huaweicloudsdkelb.v3.model.show_security_policy_request import ShowSecurityPolicyRequest
|
311
337
|
from huaweicloudsdkelb.v3.model.show_security_policy_response import ShowSecurityPolicyResponse
|
312
338
|
from huaweicloudsdkelb.v3.model.slow_start import SlowStart
|
@@ -315,7 +341,9 @@ from huaweicloudsdkelb.v3.model.system_security_policy import SystemSecurityPoli
|
|
315
341
|
from huaweicloudsdkelb.v3.model.tag import Tag
|
316
342
|
from huaweicloudsdkelb.v3.model.target_loadbalancer_param import TargetLoadbalancerParam
|
317
343
|
from huaweicloudsdkelb.v3.model.traffic_limit_config import TrafficLimitConfig
|
344
|
+
from huaweicloudsdkelb.v3.model.traffic_mirror_config import TrafficMirrorConfig
|
318
345
|
from huaweicloudsdkelb.v3.model.upadate_ip_group_ip_option import UpadateIpGroupIpOption
|
346
|
+
from huaweicloudsdkelb.v3.model.update_az_affinity import UpdateAzAffinity
|
319
347
|
from huaweicloudsdkelb.v3.model.update_certificate_option import UpdateCertificateOption
|
320
348
|
from huaweicloudsdkelb.v3.model.update_certificate_request import UpdateCertificateRequest
|
321
349
|
from huaweicloudsdkelb.v3.model.update_certificate_request_body import UpdateCertificateRequestBody
|
@@ -368,6 +396,12 @@ from huaweicloudsdkelb.v3.model.update_pool_request_body import UpdatePoolReques
|
|
368
396
|
from huaweicloudsdkelb.v3.model.update_pool_response import UpdatePoolResponse
|
369
397
|
from huaweicloudsdkelb.v3.model.update_pool_session_persistence_option import UpdatePoolSessionPersistenceOption
|
370
398
|
from huaweicloudsdkelb.v3.model.update_pool_slow_start_option import UpdatePoolSlowStartOption
|
399
|
+
from huaweicloudsdkelb.v3.model.update_recycle_bin_enable_request import UpdateRecycleBinEnableRequest
|
400
|
+
from huaweicloudsdkelb.v3.model.update_recycle_bin_enable_request_body import UpdateRecycleBinEnableRequestBody
|
401
|
+
from huaweicloudsdkelb.v3.model.update_recycle_bin_enable_response import UpdateRecycleBinEnableResponse
|
402
|
+
from huaweicloudsdkelb.v3.model.update_recycle_bin_policy_request import UpdateRecycleBinPolicyRequest
|
403
|
+
from huaweicloudsdkelb.v3.model.update_recycle_bin_policy_request_body import UpdateRecycleBinPolicyRequestBody
|
404
|
+
from huaweicloudsdkelb.v3.model.update_recycle_bin_policy_response import UpdateRecycleBinPolicyResponse
|
371
405
|
from huaweicloudsdkelb.v3.model.update_redirect_pools_config import UpdateRedirectPoolsConfig
|
372
406
|
from huaweicloudsdkelb.v3.model.update_redirect_pools_extend_config import UpdateRedirectPoolsExtendConfig
|
373
407
|
from huaweicloudsdkelb.v3.model.update_redirect_pools_sticky_session_config import UpdateRedirectPoolsStickySessionConfig
|
@@ -0,0 +1,201 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class AzAffinity:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'enable': 'bool',
|
21
|
+
'az_minimum_healthy_member_percentage': 'int',
|
22
|
+
'az_minimum_healthy_member_count': 'int',
|
23
|
+
'az_unhealthy_fallback_strategy': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'enable': 'enable',
|
28
|
+
'az_minimum_healthy_member_percentage': 'az_minimum_healthy_member_percentage',
|
29
|
+
'az_minimum_healthy_member_count': 'az_minimum_healthy_member_count',
|
30
|
+
'az_unhealthy_fallback_strategy': 'az_unhealthy_fallback_strategy'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, enable=None, az_minimum_healthy_member_percentage=None, az_minimum_healthy_member_count=None, az_unhealthy_fallback_strategy=None):
|
34
|
+
r"""AzAffinity
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param enable: 参数解释:后端服务器组是否开启可用区亲和。开启后,负载均衡器会按照配置的亲和策略进行转发。 约束限制: - 仅IP,TCP,UDP的pool支持。 - TLS监听器绑定的pool不支持。 - 开启后,原本的pool_health配置失效。 取值范围:false不开启,true开启。
|
39
|
+
:type enable: bool
|
40
|
+
:param az_minimum_healthy_member_percentage: 参数解释:后端服务器组单可用区百分比健康度最小阈值,当“后端服务器组单可用区百分比健康度”小于该阈值时,触发可用区异常退避策略。“后端服务器组单可用区百分比健康度”是指在一个后端服务器组中,同可用区中健康检查结果正常的服务器数量与该后端服务器组中属于该可用区的后端服务器总数量的比值,百分比结果向上取整。例如:后端服务器组中属于可用区A的后端服务器总数量为3,设置后端服务器组单可用区百分比健康度最小阈值为66时,3x0.66=1.98向上取整为数量阈值2台,即属于可用区A的健康后端数小于2台时触发退避策略;设置后端服务器组单可用区百分比健康度最小阈值为67时,3x0.67=2.01向上取整为数量阈值3台,即属于可用区A的健康后端数小于3台时触发退避策略。 约束限制: - enable为true时,az_minimum_healthy_member_percentage与az_minimum_healthy_member_count不能同时为-1 - enable为true时,az_minimum_healthy_member_percentage与az_minimum_healthy_member_count不能同时不为-1 取值范围:-1至100的整数,0-100为百分比范围,-1表示采用数量阈值。
|
41
|
+
:type az_minimum_healthy_member_percentage: int
|
42
|
+
:param az_minimum_healthy_member_count: 参数解释:后端服务器组单可用区中数量健康度最小阈值,当“后端服务器组单可用区中数量健康度”小于该阈值时,触发可用区异常退避策略。“后端服务器组单可用区中数量健康度”是指在一个后端服务器组中,属于同一个可用区的健康检查结果正常的服务器数量。 约束限制: - enable为true时,az_minimum_healthy_member_percentage与az_minimum_healthy_member_count不能同时为-1 - enable为true时,az_minimum_healthy_member_percentage与az_minimum_healthy_member_count不能同时不为-1 取值范围:-1至10000的整数,0-10000为数量范围,-1表示采用百分比阈值。
|
43
|
+
:type az_minimum_healthy_member_count: int
|
44
|
+
:param az_unhealthy_fallback_strategy: 参数解释:后端服务器组单可用区异常退避策略。后端服务器组的健康度小于所配置的最小阈值时,触发该退避策略。 forward_to_all_member_of_local_az:转发至同可用区的所有后端服务器,无论健康检查结果是否正常;forward_to_healthy_member_of_remote_az:转发至非同可用区中所有健康检查结果正常的后端服务器;forward_to_all_healthy_member:转发至所有可用区中健康检查结果正常的后端服务器;forward_to_all_member:转发至所有可用区中的所有后端服务器,无论健康检查结果是否正常 取值范围:forward_to_all_member_of_local_az,forward_to_healthy_member_of_remote_az,forward_to_all_healthy_member,forward_to_all_member。 默认值:forward_to_all_member_of_local_az
|
45
|
+
:type az_unhealthy_fallback_strategy: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._enable = None
|
51
|
+
self._az_minimum_healthy_member_percentage = None
|
52
|
+
self._az_minimum_healthy_member_count = None
|
53
|
+
self._az_unhealthy_fallback_strategy = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.enable = enable
|
57
|
+
if az_minimum_healthy_member_percentage is not None:
|
58
|
+
self.az_minimum_healthy_member_percentage = az_minimum_healthy_member_percentage
|
59
|
+
if az_minimum_healthy_member_count is not None:
|
60
|
+
self.az_minimum_healthy_member_count = az_minimum_healthy_member_count
|
61
|
+
if az_unhealthy_fallback_strategy is not None:
|
62
|
+
self.az_unhealthy_fallback_strategy = az_unhealthy_fallback_strategy
|
63
|
+
|
64
|
+
@property
|
65
|
+
def enable(self):
|
66
|
+
r"""Gets the enable of this AzAffinity.
|
67
|
+
|
68
|
+
参数解释:后端服务器组是否开启可用区亲和。开启后,负载均衡器会按照配置的亲和策略进行转发。 约束限制: - 仅IP,TCP,UDP的pool支持。 - TLS监听器绑定的pool不支持。 - 开启后,原本的pool_health配置失效。 取值范围:false不开启,true开启。
|
69
|
+
|
70
|
+
:return: The enable of this AzAffinity.
|
71
|
+
:rtype: bool
|
72
|
+
"""
|
73
|
+
return self._enable
|
74
|
+
|
75
|
+
@enable.setter
|
76
|
+
def enable(self, enable):
|
77
|
+
r"""Sets the enable of this AzAffinity.
|
78
|
+
|
79
|
+
参数解释:后端服务器组是否开启可用区亲和。开启后,负载均衡器会按照配置的亲和策略进行转发。 约束限制: - 仅IP,TCP,UDP的pool支持。 - TLS监听器绑定的pool不支持。 - 开启后,原本的pool_health配置失效。 取值范围:false不开启,true开启。
|
80
|
+
|
81
|
+
:param enable: The enable of this AzAffinity.
|
82
|
+
:type enable: bool
|
83
|
+
"""
|
84
|
+
self._enable = enable
|
85
|
+
|
86
|
+
@property
|
87
|
+
def az_minimum_healthy_member_percentage(self):
|
88
|
+
r"""Gets the az_minimum_healthy_member_percentage of this AzAffinity.
|
89
|
+
|
90
|
+
参数解释:后端服务器组单可用区百分比健康度最小阈值,当“后端服务器组单可用区百分比健康度”小于该阈值时,触发可用区异常退避策略。“后端服务器组单可用区百分比健康度”是指在一个后端服务器组中,同可用区中健康检查结果正常的服务器数量与该后端服务器组中属于该可用区的后端服务器总数量的比值,百分比结果向上取整。例如:后端服务器组中属于可用区A的后端服务器总数量为3,设置后端服务器组单可用区百分比健康度最小阈值为66时,3x0.66=1.98向上取整为数量阈值2台,即属于可用区A的健康后端数小于2台时触发退避策略;设置后端服务器组单可用区百分比健康度最小阈值为67时,3x0.67=2.01向上取整为数量阈值3台,即属于可用区A的健康后端数小于3台时触发退避策略。 约束限制: - enable为true时,az_minimum_healthy_member_percentage与az_minimum_healthy_member_count不能同时为-1 - enable为true时,az_minimum_healthy_member_percentage与az_minimum_healthy_member_count不能同时不为-1 取值范围:-1至100的整数,0-100为百分比范围,-1表示采用数量阈值。
|
91
|
+
|
92
|
+
:return: The az_minimum_healthy_member_percentage of this AzAffinity.
|
93
|
+
:rtype: int
|
94
|
+
"""
|
95
|
+
return self._az_minimum_healthy_member_percentage
|
96
|
+
|
97
|
+
@az_minimum_healthy_member_percentage.setter
|
98
|
+
def az_minimum_healthy_member_percentage(self, az_minimum_healthy_member_percentage):
|
99
|
+
r"""Sets the az_minimum_healthy_member_percentage of this AzAffinity.
|
100
|
+
|
101
|
+
参数解释:后端服务器组单可用区百分比健康度最小阈值,当“后端服务器组单可用区百分比健康度”小于该阈值时,触发可用区异常退避策略。“后端服务器组单可用区百分比健康度”是指在一个后端服务器组中,同可用区中健康检查结果正常的服务器数量与该后端服务器组中属于该可用区的后端服务器总数量的比值,百分比结果向上取整。例如:后端服务器组中属于可用区A的后端服务器总数量为3,设置后端服务器组单可用区百分比健康度最小阈值为66时,3x0.66=1.98向上取整为数量阈值2台,即属于可用区A的健康后端数小于2台时触发退避策略;设置后端服务器组单可用区百分比健康度最小阈值为67时,3x0.67=2.01向上取整为数量阈值3台,即属于可用区A的健康后端数小于3台时触发退避策略。 约束限制: - enable为true时,az_minimum_healthy_member_percentage与az_minimum_healthy_member_count不能同时为-1 - enable为true时,az_minimum_healthy_member_percentage与az_minimum_healthy_member_count不能同时不为-1 取值范围:-1至100的整数,0-100为百分比范围,-1表示采用数量阈值。
|
102
|
+
|
103
|
+
:param az_minimum_healthy_member_percentage: The az_minimum_healthy_member_percentage of this AzAffinity.
|
104
|
+
:type az_minimum_healthy_member_percentage: int
|
105
|
+
"""
|
106
|
+
self._az_minimum_healthy_member_percentage = az_minimum_healthy_member_percentage
|
107
|
+
|
108
|
+
@property
|
109
|
+
def az_minimum_healthy_member_count(self):
|
110
|
+
r"""Gets the az_minimum_healthy_member_count of this AzAffinity.
|
111
|
+
|
112
|
+
参数解释:后端服务器组单可用区中数量健康度最小阈值,当“后端服务器组单可用区中数量健康度”小于该阈值时,触发可用区异常退避策略。“后端服务器组单可用区中数量健康度”是指在一个后端服务器组中,属于同一个可用区的健康检查结果正常的服务器数量。 约束限制: - enable为true时,az_minimum_healthy_member_percentage与az_minimum_healthy_member_count不能同时为-1 - enable为true时,az_minimum_healthy_member_percentage与az_minimum_healthy_member_count不能同时不为-1 取值范围:-1至10000的整数,0-10000为数量范围,-1表示采用百分比阈值。
|
113
|
+
|
114
|
+
:return: The az_minimum_healthy_member_count of this AzAffinity.
|
115
|
+
:rtype: int
|
116
|
+
"""
|
117
|
+
return self._az_minimum_healthy_member_count
|
118
|
+
|
119
|
+
@az_minimum_healthy_member_count.setter
|
120
|
+
def az_minimum_healthy_member_count(self, az_minimum_healthy_member_count):
|
121
|
+
r"""Sets the az_minimum_healthy_member_count of this AzAffinity.
|
122
|
+
|
123
|
+
参数解释:后端服务器组单可用区中数量健康度最小阈值,当“后端服务器组单可用区中数量健康度”小于该阈值时,触发可用区异常退避策略。“后端服务器组单可用区中数量健康度”是指在一个后端服务器组中,属于同一个可用区的健康检查结果正常的服务器数量。 约束限制: - enable为true时,az_minimum_healthy_member_percentage与az_minimum_healthy_member_count不能同时为-1 - enable为true时,az_minimum_healthy_member_percentage与az_minimum_healthy_member_count不能同时不为-1 取值范围:-1至10000的整数,0-10000为数量范围,-1表示采用百分比阈值。
|
124
|
+
|
125
|
+
:param az_minimum_healthy_member_count: The az_minimum_healthy_member_count of this AzAffinity.
|
126
|
+
:type az_minimum_healthy_member_count: int
|
127
|
+
"""
|
128
|
+
self._az_minimum_healthy_member_count = az_minimum_healthy_member_count
|
129
|
+
|
130
|
+
@property
|
131
|
+
def az_unhealthy_fallback_strategy(self):
|
132
|
+
r"""Gets the az_unhealthy_fallback_strategy of this AzAffinity.
|
133
|
+
|
134
|
+
参数解释:后端服务器组单可用区异常退避策略。后端服务器组的健康度小于所配置的最小阈值时,触发该退避策略。 forward_to_all_member_of_local_az:转发至同可用区的所有后端服务器,无论健康检查结果是否正常;forward_to_healthy_member_of_remote_az:转发至非同可用区中所有健康检查结果正常的后端服务器;forward_to_all_healthy_member:转发至所有可用区中健康检查结果正常的后端服务器;forward_to_all_member:转发至所有可用区中的所有后端服务器,无论健康检查结果是否正常 取值范围:forward_to_all_member_of_local_az,forward_to_healthy_member_of_remote_az,forward_to_all_healthy_member,forward_to_all_member。 默认值:forward_to_all_member_of_local_az
|
135
|
+
|
136
|
+
:return: The az_unhealthy_fallback_strategy of this AzAffinity.
|
137
|
+
:rtype: str
|
138
|
+
"""
|
139
|
+
return self._az_unhealthy_fallback_strategy
|
140
|
+
|
141
|
+
@az_unhealthy_fallback_strategy.setter
|
142
|
+
def az_unhealthy_fallback_strategy(self, az_unhealthy_fallback_strategy):
|
143
|
+
r"""Sets the az_unhealthy_fallback_strategy of this AzAffinity.
|
144
|
+
|
145
|
+
参数解释:后端服务器组单可用区异常退避策略。后端服务器组的健康度小于所配置的最小阈值时,触发该退避策略。 forward_to_all_member_of_local_az:转发至同可用区的所有后端服务器,无论健康检查结果是否正常;forward_to_healthy_member_of_remote_az:转发至非同可用区中所有健康检查结果正常的后端服务器;forward_to_all_healthy_member:转发至所有可用区中健康检查结果正常的后端服务器;forward_to_all_member:转发至所有可用区中的所有后端服务器,无论健康检查结果是否正常 取值范围:forward_to_all_member_of_local_az,forward_to_healthy_member_of_remote_az,forward_to_all_healthy_member,forward_to_all_member。 默认值:forward_to_all_member_of_local_az
|
146
|
+
|
147
|
+
:param az_unhealthy_fallback_strategy: The az_unhealthy_fallback_strategy of this AzAffinity.
|
148
|
+
:type az_unhealthy_fallback_strategy: str
|
149
|
+
"""
|
150
|
+
self._az_unhealthy_fallback_strategy = az_unhealthy_fallback_strategy
|
151
|
+
|
152
|
+
def to_dict(self):
|
153
|
+
"""Returns the model properties as a dict"""
|
154
|
+
result = {}
|
155
|
+
|
156
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
157
|
+
value = getattr(self, attr)
|
158
|
+
if isinstance(value, list):
|
159
|
+
result[attr] = list(map(
|
160
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
161
|
+
value
|
162
|
+
))
|
163
|
+
elif hasattr(value, "to_dict"):
|
164
|
+
result[attr] = value.to_dict()
|
165
|
+
elif isinstance(value, dict):
|
166
|
+
result[attr] = dict(map(
|
167
|
+
lambda item: (item[0], item[1].to_dict())
|
168
|
+
if hasattr(item[1], "to_dict") else item,
|
169
|
+
value.items()
|
170
|
+
))
|
171
|
+
else:
|
172
|
+
if attr in self.sensitive_list:
|
173
|
+
result[attr] = "****"
|
174
|
+
else:
|
175
|
+
result[attr] = value
|
176
|
+
|
177
|
+
return result
|
178
|
+
|
179
|
+
def to_str(self):
|
180
|
+
"""Returns the string representation of the model"""
|
181
|
+
import simplejson as json
|
182
|
+
if six.PY2:
|
183
|
+
import sys
|
184
|
+
reload(sys)
|
185
|
+
sys.setdefaultencoding("utf-8")
|
186
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
187
|
+
|
188
|
+
def __repr__(self):
|
189
|
+
"""For `print`"""
|
190
|
+
return self.to_str()
|
191
|
+
|
192
|
+
def __eq__(self, other):
|
193
|
+
"""Returns true if both objects are equal"""
|
194
|
+
if not isinstance(other, AzAffinity):
|
195
|
+
return False
|
196
|
+
|
197
|
+
return self.__dict__ == other.__dict__
|
198
|
+
|
199
|
+
def __ne__(self, other):
|
200
|
+
"""Returns true if both objects are not equal"""
|
201
|
+
return not self == other
|
@@ -155,7 +155,7 @@ class BatchCreateLoadBalancerOption:
|
|
155
155
|
:type protection_status: str
|
156
156
|
:param protection_reason: 参数解释:设置保护的原因。作为protection_status的转态设置的原因。 约束限制:仅当protection_status为consoleProtection时有效。 取值范围:除<和>外通用Unicode字符集字符,最大255个字符。
|
157
157
|
:type protection_reason: str
|
158
|
-
:param charge_mode:
|
158
|
+
:param charge_mode: 创建实例采用的计费模式。flavor: 按实例规格收费,默认值。lcu: 按使用量收费。 批量创建共享型实例时,该字段不允许指定。
|
159
159
|
:type charge_mode: str
|
160
160
|
:param ipv6_vip_address: 双栈类型负载均衡器的IPv6地址。 当批量创建的number数量大于1时不支持传入该字段,返回400。 批量创建共享型实例的场景,该字段不允许指定。 [不支持IPv6,请勿使用。](tag:dt)
|
161
161
|
:type ipv6_vip_address: str
|
@@ -930,7 +930,7 @@ class BatchCreateLoadBalancerOption:
|
|
930
930
|
def charge_mode(self):
|
931
931
|
r"""Gets the charge_mode of this BatchCreateLoadBalancerOption.
|
932
932
|
|
933
|
-
|
933
|
+
创建实例采用的计费模式。flavor: 按实例规格收费,默认值。lcu: 按使用量收费。 批量创建共享型实例时,该字段不允许指定。
|
934
934
|
|
935
935
|
:return: The charge_mode of this BatchCreateLoadBalancerOption.
|
936
936
|
:rtype: str
|
@@ -941,7 +941,7 @@ class BatchCreateLoadBalancerOption:
|
|
941
941
|
def charge_mode(self, charge_mode):
|
942
942
|
r"""Sets the charge_mode of this BatchCreateLoadBalancerOption.
|
943
943
|
|
944
|
-
|
944
|
+
创建实例采用的计费模式。flavor: 按实例规格收费,默认值。lcu: 按使用量收费。 批量创建共享型实例时,该字段不允许指定。
|
945
945
|
|
946
946
|
:param charge_mode: The charge_mode of this BatchCreateLoadBalancerOption.
|
947
947
|
:type charge_mode: str
|
@@ -18,6 +18,7 @@ class BatchCreateMembersOption:
|
|
18
18
|
|
19
19
|
openapi_types = {
|
20
20
|
'name': 'str',
|
21
|
+
'availability_zone': 'str',
|
21
22
|
'address': 'str',
|
22
23
|
'protocol_port': 'int',
|
23
24
|
'subnet_cidr_id': 'str',
|
@@ -26,19 +27,22 @@ class BatchCreateMembersOption:
|
|
26
27
|
|
27
28
|
attribute_map = {
|
28
29
|
'name': 'name',
|
30
|
+
'availability_zone': 'availability_zone',
|
29
31
|
'address': 'address',
|
30
32
|
'protocol_port': 'protocol_port',
|
31
33
|
'subnet_cidr_id': 'subnet_cidr_id',
|
32
34
|
'weight': 'weight'
|
33
35
|
}
|
34
36
|
|
35
|
-
def __init__(self, name=None, address=None, protocol_port=None, subnet_cidr_id=None, weight=None):
|
37
|
+
def __init__(self, name=None, availability_zone=None, address=None, protocol_port=None, subnet_cidr_id=None, weight=None):
|
36
38
|
r"""BatchCreateMembersOption
|
37
39
|
|
38
40
|
The model defined in huaweicloud sdk
|
39
41
|
|
40
42
|
:param name: 后端服务器名称。
|
41
43
|
:type name: str
|
44
|
+
:param availability_zone: 参数解释:后端服务器的可用区。 约束限制: 仅支持iptarget类型的后端服务器设置该字段。且后端服务器组开启可用区亲和时,iptarget类型的后端服务器必须配置该字段为有效非空值。 取值范围:本region中ECS可选择的可用区。
|
45
|
+
:type availability_zone: str
|
42
46
|
:param address: 后端服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。例如:192.168.3.11。 subnet_cidr_id为空代表添加跨VPC后端,此时address必须为**私网IPv4**地址。
|
43
47
|
:type address: str
|
44
48
|
:param protocol_port: 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
|
@@ -52,6 +56,7 @@ class BatchCreateMembersOption:
|
|
52
56
|
|
53
57
|
|
54
58
|
self._name = None
|
59
|
+
self._availability_zone = None
|
55
60
|
self._address = None
|
56
61
|
self._protocol_port = None
|
57
62
|
self._subnet_cidr_id = None
|
@@ -60,6 +65,8 @@ class BatchCreateMembersOption:
|
|
60
65
|
|
61
66
|
if name is not None:
|
62
67
|
self.name = name
|
68
|
+
if availability_zone is not None:
|
69
|
+
self.availability_zone = availability_zone
|
63
70
|
self.address = address
|
64
71
|
self.protocol_port = protocol_port
|
65
72
|
if subnet_cidr_id is not None:
|
@@ -89,6 +96,28 @@ class BatchCreateMembersOption:
|
|
89
96
|
"""
|
90
97
|
self._name = name
|
91
98
|
|
99
|
+
@property
|
100
|
+
def availability_zone(self):
|
101
|
+
r"""Gets the availability_zone of this BatchCreateMembersOption.
|
102
|
+
|
103
|
+
参数解释:后端服务器的可用区。 约束限制: 仅支持iptarget类型的后端服务器设置该字段。且后端服务器组开启可用区亲和时,iptarget类型的后端服务器必须配置该字段为有效非空值。 取值范围:本region中ECS可选择的可用区。
|
104
|
+
|
105
|
+
:return: The availability_zone of this BatchCreateMembersOption.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._availability_zone
|
109
|
+
|
110
|
+
@availability_zone.setter
|
111
|
+
def availability_zone(self, availability_zone):
|
112
|
+
r"""Sets the availability_zone of this BatchCreateMembersOption.
|
113
|
+
|
114
|
+
参数解释:后端服务器的可用区。 约束限制: 仅支持iptarget类型的后端服务器设置该字段。且后端服务器组开启可用区亲和时,iptarget类型的后端服务器必须配置该字段为有效非空值。 取值范围:本region中ECS可选择的可用区。
|
115
|
+
|
116
|
+
:param availability_zone: The availability_zone of this BatchCreateMembersOption.
|
117
|
+
:type availability_zone: str
|
118
|
+
"""
|
119
|
+
self._availability_zone = availability_zone
|
120
|
+
|
92
121
|
@property
|
93
122
|
def address(self):
|
94
123
|
r"""Gets the address of this BatchCreateMembersOption.
|
@@ -32,7 +32,8 @@ class BatchUpdateMember:
|
|
32
32
|
'instance_id': 'str',
|
33
33
|
'port_id': 'str',
|
34
34
|
'created_at': 'str',
|
35
|
-
'updated_at': 'str'
|
35
|
+
'updated_at': 'str',
|
36
|
+
'availability_zone': 'str'
|
36
37
|
}
|
37
38
|
|
38
39
|
attribute_map = {
|
@@ -51,10 +52,11 @@ class BatchUpdateMember:
|
|
51
52
|
'instance_id': 'instance_id',
|
52
53
|
'port_id': 'port_id',
|
53
54
|
'created_at': 'created_at',
|
54
|
-
'updated_at': 'updated_at'
|
55
|
+
'updated_at': 'updated_at',
|
56
|
+
'availability_zone': 'availability_zone'
|
55
57
|
}
|
56
58
|
|
57
|
-
def __init__(self, id=None, name=None, project_id=None, admin_state_up=None, subnet_cidr_id=None, protocol_port=None, weight=None, address=None, operating_status=None, reason=None, status=None, member_type=None, instance_id=None, port_id=None, created_at=None, updated_at=None):
|
59
|
+
def __init__(self, id=None, name=None, project_id=None, admin_state_up=None, subnet_cidr_id=None, protocol_port=None, weight=None, address=None, operating_status=None, reason=None, status=None, member_type=None, instance_id=None, port_id=None, created_at=None, updated_at=None, availability_zone=None):
|
58
60
|
r"""BatchUpdateMember
|
59
61
|
|
60
62
|
The model defined in huaweicloud sdk
|
@@ -91,6 +93,8 @@ class BatchUpdateMember:
|
|
91
93
|
:type created_at: str
|
92
94
|
:param updated_at: 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt,hk_tm)
|
93
95
|
:type updated_at: str
|
96
|
+
:param availability_zone: 后端服务器所在的可用区。
|
97
|
+
:type availability_zone: str
|
94
98
|
"""
|
95
99
|
|
96
100
|
|
@@ -111,6 +115,7 @@ class BatchUpdateMember:
|
|
111
115
|
self._port_id = None
|
112
116
|
self._created_at = None
|
113
117
|
self._updated_at = None
|
118
|
+
self._availability_zone = None
|
114
119
|
self.discriminator = None
|
115
120
|
|
116
121
|
self.id = id
|
@@ -136,6 +141,8 @@ class BatchUpdateMember:
|
|
136
141
|
self.created_at = created_at
|
137
142
|
if updated_at is not None:
|
138
143
|
self.updated_at = updated_at
|
144
|
+
if availability_zone is not None:
|
145
|
+
self.availability_zone = availability_zone
|
139
146
|
|
140
147
|
@property
|
141
148
|
def id(self):
|
@@ -485,6 +492,28 @@ class BatchUpdateMember:
|
|
485
492
|
"""
|
486
493
|
self._updated_at = updated_at
|
487
494
|
|
495
|
+
@property
|
496
|
+
def availability_zone(self):
|
497
|
+
r"""Gets the availability_zone of this BatchUpdateMember.
|
498
|
+
|
499
|
+
后端服务器所在的可用区。
|
500
|
+
|
501
|
+
:return: The availability_zone of this BatchUpdateMember.
|
502
|
+
:rtype: str
|
503
|
+
"""
|
504
|
+
return self._availability_zone
|
505
|
+
|
506
|
+
@availability_zone.setter
|
507
|
+
def availability_zone(self, availability_zone):
|
508
|
+
r"""Sets the availability_zone of this BatchUpdateMember.
|
509
|
+
|
510
|
+
后端服务器所在的可用区。
|
511
|
+
|
512
|
+
:param availability_zone: The availability_zone of this BatchUpdateMember.
|
513
|
+
:type availability_zone: str
|
514
|
+
"""
|
515
|
+
self._availability_zone = availability_zone
|
516
|
+
|
488
517
|
def to_dict(self):
|
489
518
|
"""Returns the model properties as a dict"""
|
490
519
|
result = {}
|
@@ -18,6 +18,7 @@ class BatchUpdateMembersOption:
|
|
18
18
|
|
19
19
|
openapi_types = {
|
20
20
|
'id': 'str',
|
21
|
+
'availability_zone': 'str',
|
21
22
|
'admin_state_up': 'bool',
|
22
23
|
'name': 'str',
|
23
24
|
'protocol_port': 'int',
|
@@ -26,19 +27,22 @@ class BatchUpdateMembersOption:
|
|
26
27
|
|
27
28
|
attribute_map = {
|
28
29
|
'id': 'id',
|
30
|
+
'availability_zone': 'availability_zone',
|
29
31
|
'admin_state_up': 'admin_state_up',
|
30
32
|
'name': 'name',
|
31
33
|
'protocol_port': 'protocol_port',
|
32
34
|
'weight': 'weight'
|
33
35
|
}
|
34
36
|
|
35
|
-
def __init__(self, id=None, admin_state_up=None, name=None, protocol_port=None, weight=None):
|
37
|
+
def __init__(self, id=None, availability_zone=None, admin_state_up=None, name=None, protocol_port=None, weight=None):
|
36
38
|
r"""BatchUpdateMembersOption
|
37
39
|
|
38
40
|
The model defined in huaweicloud sdk
|
39
41
|
|
40
42
|
:param id: 后端服务器ID。 >此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
|
41
43
|
:type id: str
|
44
|
+
:param availability_zone: 参数解释:后端服务器的可用区。 约束限制: 仅支持iptarget类型的后端服务器设置该字段。且后端服务器组开启可用区亲和时,iptarget类型的后端服务器必须配置该字段为有效非空值。 取值范围:本region中ECS可选择的可用区。
|
45
|
+
:type availability_zone: str
|
42
46
|
:param admin_state_up: 后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。
|
43
47
|
:type admin_state_up: bool
|
44
48
|
:param name: 后端服务器名称。
|
@@ -52,6 +56,7 @@ class BatchUpdateMembersOption:
|
|
52
56
|
|
53
57
|
|
54
58
|
self._id = None
|
59
|
+
self._availability_zone = None
|
55
60
|
self._admin_state_up = None
|
56
61
|
self._name = None
|
57
62
|
self._protocol_port = None
|
@@ -59,6 +64,8 @@ class BatchUpdateMembersOption:
|
|
59
64
|
self.discriminator = None
|
60
65
|
|
61
66
|
self.id = id
|
67
|
+
if availability_zone is not None:
|
68
|
+
self.availability_zone = availability_zone
|
62
69
|
if admin_state_up is not None:
|
63
70
|
self.admin_state_up = admin_state_up
|
64
71
|
if name is not None:
|
@@ -90,6 +97,28 @@ class BatchUpdateMembersOption:
|
|
90
97
|
"""
|
91
98
|
self._id = id
|
92
99
|
|
100
|
+
@property
|
101
|
+
def availability_zone(self):
|
102
|
+
r"""Gets the availability_zone of this BatchUpdateMembersOption.
|
103
|
+
|
104
|
+
参数解释:后端服务器的可用区。 约束限制: 仅支持iptarget类型的后端服务器设置该字段。且后端服务器组开启可用区亲和时,iptarget类型的后端服务器必须配置该字段为有效非空值。 取值范围:本region中ECS可选择的可用区。
|
105
|
+
|
106
|
+
:return: The availability_zone of this BatchUpdateMembersOption.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._availability_zone
|
110
|
+
|
111
|
+
@availability_zone.setter
|
112
|
+
def availability_zone(self, availability_zone):
|
113
|
+
r"""Sets the availability_zone of this BatchUpdateMembersOption.
|
114
|
+
|
115
|
+
参数解释:后端服务器的可用区。 约束限制: 仅支持iptarget类型的后端服务器设置该字段。且后端服务器组开启可用区亲和时,iptarget类型的后端服务器必须配置该字段为有效非空值。 取值范围:本region中ECS可选择的可用区。
|
116
|
+
|
117
|
+
:param availability_zone: The availability_zone of this BatchUpdateMembersOption.
|
118
|
+
:type availability_zone: str
|
119
|
+
"""
|
120
|
+
self._availability_zone = availability_zone
|
121
|
+
|
93
122
|
@property
|
94
123
|
def admin_state_up(self):
|
95
124
|
r"""Gets the admin_state_up of this BatchUpdateMembersOption.
|