huaweicloudsdkelb 3.1.132__py2.py3-none-any.whl → 3.1.133__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.133.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/RECORD +112 -73
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/top_level.txt +0 -0
@@ -28,6 +28,7 @@ class Member:
|
|
28
28
|
'ip_version': 'str',
|
29
29
|
'operating_status': 'str',
|
30
30
|
'status': 'list[MemberStatus]',
|
31
|
+
'reason': 'MemberHealthCheckFailedReason',
|
31
32
|
'created_at': 'str',
|
32
33
|
'updated_at': 'str',
|
33
34
|
'member_type': 'str',
|
@@ -46,13 +47,14 @@ class Member:
|
|
46
47
|
'ip_version': 'ip_version',
|
47
48
|
'operating_status': 'operating_status',
|
48
49
|
'status': 'status',
|
50
|
+
'reason': 'reason',
|
49
51
|
'created_at': 'created_at',
|
50
52
|
'updated_at': 'updated_at',
|
51
53
|
'member_type': 'member_type',
|
52
54
|
'instance_id': 'instance_id'
|
53
55
|
}
|
54
56
|
|
55
|
-
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, ip_version=None, operating_status=None, status=None, created_at=None, updated_at=None, member_type=None, instance_id=None):
|
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, ip_version=None, operating_status=None, status=None, reason=None, created_at=None, updated_at=None, member_type=None, instance_id=None):
|
56
58
|
"""Member
|
57
59
|
|
58
60
|
The model defined in huaweicloud sdk
|
@@ -79,9 +81,11 @@ class Member:
|
|
79
81
|
:type operating_status: str
|
80
82
|
:param status: 参数解释:后端服务器监听器粒度的的健康状态。 约束限制: - 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 - 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
81
83
|
:type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
82
|
-
:param
|
84
|
+
:param reason:
|
85
|
+
:type reason: :class:`huaweicloudsdkelb.v3.MemberHealthCheckFailedReason`
|
86
|
+
:param created_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)
|
83
87
|
:type created_at: str
|
84
|
-
: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,fcs,dt,hk_tm)
|
88
|
+
: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)
|
85
89
|
:type updated_at: str
|
86
90
|
:param member_type: 参数解释:后端服务器的类型。 取值范围: - ip:跨VPC的member。 - instance:关联到ECS的member。
|
87
91
|
:type member_type: str
|
@@ -102,6 +106,7 @@ class Member:
|
|
102
106
|
self._ip_version = None
|
103
107
|
self._operating_status = None
|
104
108
|
self._status = None
|
109
|
+
self._reason = None
|
105
110
|
self._created_at = None
|
106
111
|
self._updated_at = None
|
107
112
|
self._member_type = None
|
@@ -120,6 +125,8 @@ class Member:
|
|
120
125
|
self.ip_version = ip_version
|
121
126
|
self.operating_status = operating_status
|
122
127
|
self.status = status
|
128
|
+
if reason is not None:
|
129
|
+
self.reason = reason
|
123
130
|
if created_at is not None:
|
124
131
|
self.created_at = created_at
|
125
132
|
if updated_at is not None:
|
@@ -371,11 +378,29 @@ class Member:
|
|
371
378
|
"""
|
372
379
|
self._status = status
|
373
380
|
|
381
|
+
@property
|
382
|
+
def reason(self):
|
383
|
+
"""Gets the reason of this Member.
|
384
|
+
|
385
|
+
:return: The reason of this Member.
|
386
|
+
:rtype: :class:`huaweicloudsdkelb.v3.MemberHealthCheckFailedReason`
|
387
|
+
"""
|
388
|
+
return self._reason
|
389
|
+
|
390
|
+
@reason.setter
|
391
|
+
def reason(self, reason):
|
392
|
+
"""Sets the reason of this Member.
|
393
|
+
|
394
|
+
:param reason: The reason of this Member.
|
395
|
+
:type reason: :class:`huaweicloudsdkelb.v3.MemberHealthCheckFailedReason`
|
396
|
+
"""
|
397
|
+
self._reason = reason
|
398
|
+
|
374
399
|
@property
|
375
400
|
def created_at(self):
|
376
401
|
"""Gets the created_at of this Member.
|
377
402
|
|
378
|
-
参数解释:创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
403
|
+
参数解释:创建时间。格式: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)
|
379
404
|
|
380
405
|
:return: The created_at of this Member.
|
381
406
|
:rtype: str
|
@@ -386,7 +411,7 @@ class Member:
|
|
386
411
|
def created_at(self, created_at):
|
387
412
|
"""Sets the created_at of this Member.
|
388
413
|
|
389
|
-
参数解释:创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
414
|
+
参数解释:创建时间。格式: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)
|
390
415
|
|
391
416
|
:param created_at: The created_at of this Member.
|
392
417
|
:type created_at: str
|
@@ -397,7 +422,7 @@ class Member:
|
|
397
422
|
def updated_at(self):
|
398
423
|
"""Gets the updated_at of this Member.
|
399
424
|
|
400
|
-
参数解释:更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
425
|
+
参数解释:更新时间。格式: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)
|
401
426
|
|
402
427
|
:return: The updated_at of this Member.
|
403
428
|
:rtype: str
|
@@ -408,7 +433,7 @@ class Member:
|
|
408
433
|
def updated_at(self, updated_at):
|
409
434
|
"""Sets the updated_at of this Member.
|
410
435
|
|
411
|
-
参数解释:更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
436
|
+
参数解释:更新时间。格式: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)
|
412
437
|
|
413
438
|
:param updated_at: The updated_at of this Member.
|
414
439
|
:type updated_at: str
|
@@ -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 MemberHealthCheckFailedReason:
|
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
|
+
'reason_code': 'str',
|
21
|
+
'expected_response': 'str',
|
22
|
+
'healthcheck_response': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'reason_code': 'reason_code',
|
27
|
+
'expected_response': 'expected_response',
|
28
|
+
'healthcheck_response': 'healthcheck_response'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, reason_code=None, expected_response=None, healthcheck_response=None):
|
32
|
+
"""MemberHealthCheckFailedReason
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param reason_code: 参数解释:健康检查异常原因码。 取值范围: - CONNECT_TIMEOUT: 负载均衡健康检查时向后端服务器建立连接超时。 - CONNECT_REFUSED: 负载均衡健康检查时向后端服务器拒绝连接。 - CONNECT_FAILED: 负载均衡健康检查时向后端服务器建立连接失败。 - CONNECT_INTERRUPT: 负载均衡健康检查与后端服务器连接中断。 - SSL_HANDSHAKE_ERROR: 负载均衡健康检查时与后端服务器SSL握手失败。 - RECV_RESPONSE_FAILED: 负载均衡健康检查时从后端服务器接收响应失败。 - RECV_RESPONSE_TIMEOUT: 负载均衡健康检查时从后端服务器接收响应超时。 - SEND_REQUEST_FAILED: 负载均衡健康检查时向后端服务器发送请求失败。 - SEND_REQUEST_TIMEOUT: 负载均衡健康检查时向后端服务器发送请求超时。 - RESPONSE_FORMAT_ERROR: 负载均衡健康检查时从后端服务器接收响应格式错误。 - RESPONSE_MISMATCH: 负载均衡健康检查时从后端服务器接收的响应码与预期配置返回码不一致。
|
37
|
+
:type reason_code: str
|
38
|
+
:param expected_response: 参数解释:健康检查预期响应状态码。 支持HTTP,HTTPS,GRPC健康检查。 只有reason_code为RESPONSE_MISMATCH时,支持非null取值。 取值范围: - 单值:单个返回码。当type为GRPC时,取值范围为0-99;当type为其他协议是,取值范围为200-599。例如:\"0\"或\"200\"。 - 列表:多个特定返回码,逗号分隔,最多支持5个返回码。例如:\"200,202\"或\"0,1\"。 - 区间:一个返回码区间,区间内\"-\"分隔,区间之间逗号分隔,最多支持5个区间。例如\"200-204,300-399\"或\"0-5,10-12,20-30\"。
|
39
|
+
:type expected_response: str
|
40
|
+
:param healthcheck_response: 参数解释:健康检查探测实际响应状态码。 支持HTTP,HTTPS,GRPC健康检查。 只有reason_code为RESPONSE_MISMATCH时,支持非null取值。 取值范围: - 单个返回码。当type为GRPC时,取值范围为0-99;当type为其他协议时,取值范围为200-599。例如:\"0\"或\"200\"。
|
41
|
+
:type healthcheck_response: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._reason_code = None
|
47
|
+
self._expected_response = None
|
48
|
+
self._healthcheck_response = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.reason_code = reason_code
|
52
|
+
self.expected_response = expected_response
|
53
|
+
self.healthcheck_response = healthcheck_response
|
54
|
+
|
55
|
+
@property
|
56
|
+
def reason_code(self):
|
57
|
+
"""Gets the reason_code of this MemberHealthCheckFailedReason.
|
58
|
+
|
59
|
+
参数解释:健康检查异常原因码。 取值范围: - CONNECT_TIMEOUT: 负载均衡健康检查时向后端服务器建立连接超时。 - CONNECT_REFUSED: 负载均衡健康检查时向后端服务器拒绝连接。 - CONNECT_FAILED: 负载均衡健康检查时向后端服务器建立连接失败。 - CONNECT_INTERRUPT: 负载均衡健康检查与后端服务器连接中断。 - SSL_HANDSHAKE_ERROR: 负载均衡健康检查时与后端服务器SSL握手失败。 - RECV_RESPONSE_FAILED: 负载均衡健康检查时从后端服务器接收响应失败。 - RECV_RESPONSE_TIMEOUT: 负载均衡健康检查时从后端服务器接收响应超时。 - SEND_REQUEST_FAILED: 负载均衡健康检查时向后端服务器发送请求失败。 - SEND_REQUEST_TIMEOUT: 负载均衡健康检查时向后端服务器发送请求超时。 - RESPONSE_FORMAT_ERROR: 负载均衡健康检查时从后端服务器接收响应格式错误。 - RESPONSE_MISMATCH: 负载均衡健康检查时从后端服务器接收的响应码与预期配置返回码不一致。
|
60
|
+
|
61
|
+
:return: The reason_code of this MemberHealthCheckFailedReason.
|
62
|
+
:rtype: str
|
63
|
+
"""
|
64
|
+
return self._reason_code
|
65
|
+
|
66
|
+
@reason_code.setter
|
67
|
+
def reason_code(self, reason_code):
|
68
|
+
"""Sets the reason_code of this MemberHealthCheckFailedReason.
|
69
|
+
|
70
|
+
参数解释:健康检查异常原因码。 取值范围: - CONNECT_TIMEOUT: 负载均衡健康检查时向后端服务器建立连接超时。 - CONNECT_REFUSED: 负载均衡健康检查时向后端服务器拒绝连接。 - CONNECT_FAILED: 负载均衡健康检查时向后端服务器建立连接失败。 - CONNECT_INTERRUPT: 负载均衡健康检查与后端服务器连接中断。 - SSL_HANDSHAKE_ERROR: 负载均衡健康检查时与后端服务器SSL握手失败。 - RECV_RESPONSE_FAILED: 负载均衡健康检查时从后端服务器接收响应失败。 - RECV_RESPONSE_TIMEOUT: 负载均衡健康检查时从后端服务器接收响应超时。 - SEND_REQUEST_FAILED: 负载均衡健康检查时向后端服务器发送请求失败。 - SEND_REQUEST_TIMEOUT: 负载均衡健康检查时向后端服务器发送请求超时。 - RESPONSE_FORMAT_ERROR: 负载均衡健康检查时从后端服务器接收响应格式错误。 - RESPONSE_MISMATCH: 负载均衡健康检查时从后端服务器接收的响应码与预期配置返回码不一致。
|
71
|
+
|
72
|
+
:param reason_code: The reason_code of this MemberHealthCheckFailedReason.
|
73
|
+
:type reason_code: str
|
74
|
+
"""
|
75
|
+
self._reason_code = reason_code
|
76
|
+
|
77
|
+
@property
|
78
|
+
def expected_response(self):
|
79
|
+
"""Gets the expected_response of this MemberHealthCheckFailedReason.
|
80
|
+
|
81
|
+
参数解释:健康检查预期响应状态码。 支持HTTP,HTTPS,GRPC健康检查。 只有reason_code为RESPONSE_MISMATCH时,支持非null取值。 取值范围: - 单值:单个返回码。当type为GRPC时,取值范围为0-99;当type为其他协议是,取值范围为200-599。例如:\"0\"或\"200\"。 - 列表:多个特定返回码,逗号分隔,最多支持5个返回码。例如:\"200,202\"或\"0,1\"。 - 区间:一个返回码区间,区间内\"-\"分隔,区间之间逗号分隔,最多支持5个区间。例如\"200-204,300-399\"或\"0-5,10-12,20-30\"。
|
82
|
+
|
83
|
+
:return: The expected_response of this MemberHealthCheckFailedReason.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._expected_response
|
87
|
+
|
88
|
+
@expected_response.setter
|
89
|
+
def expected_response(self, expected_response):
|
90
|
+
"""Sets the expected_response of this MemberHealthCheckFailedReason.
|
91
|
+
|
92
|
+
参数解释:健康检查预期响应状态码。 支持HTTP,HTTPS,GRPC健康检查。 只有reason_code为RESPONSE_MISMATCH时,支持非null取值。 取值范围: - 单值:单个返回码。当type为GRPC时,取值范围为0-99;当type为其他协议是,取值范围为200-599。例如:\"0\"或\"200\"。 - 列表:多个特定返回码,逗号分隔,最多支持5个返回码。例如:\"200,202\"或\"0,1\"。 - 区间:一个返回码区间,区间内\"-\"分隔,区间之间逗号分隔,最多支持5个区间。例如\"200-204,300-399\"或\"0-5,10-12,20-30\"。
|
93
|
+
|
94
|
+
:param expected_response: The expected_response of this MemberHealthCheckFailedReason.
|
95
|
+
:type expected_response: str
|
96
|
+
"""
|
97
|
+
self._expected_response = expected_response
|
98
|
+
|
99
|
+
@property
|
100
|
+
def healthcheck_response(self):
|
101
|
+
"""Gets the healthcheck_response of this MemberHealthCheckFailedReason.
|
102
|
+
|
103
|
+
参数解释:健康检查探测实际响应状态码。 支持HTTP,HTTPS,GRPC健康检查。 只有reason_code为RESPONSE_MISMATCH时,支持非null取值。 取值范围: - 单个返回码。当type为GRPC时,取值范围为0-99;当type为其他协议时,取值范围为200-599。例如:\"0\"或\"200\"。
|
104
|
+
|
105
|
+
:return: The healthcheck_response of this MemberHealthCheckFailedReason.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._healthcheck_response
|
109
|
+
|
110
|
+
@healthcheck_response.setter
|
111
|
+
def healthcheck_response(self, healthcheck_response):
|
112
|
+
"""Sets the healthcheck_response of this MemberHealthCheckFailedReason.
|
113
|
+
|
114
|
+
参数解释:健康检查探测实际响应状态码。 支持HTTP,HTTPS,GRPC健康检查。 只有reason_code为RESPONSE_MISMATCH时,支持非null取值。 取值范围: - 单个返回码。当type为GRPC时,取值范围为0-99;当type为其他协议时,取值范围为200-599。例如:\"0\"或\"200\"。
|
115
|
+
|
116
|
+
:param healthcheck_response: The healthcheck_response of this MemberHealthCheckFailedReason.
|
117
|
+
:type healthcheck_response: str
|
118
|
+
"""
|
119
|
+
self._healthcheck_response = healthcheck_response
|
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, MemberHealthCheckFailedReason):
|
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
|
@@ -36,7 +36,8 @@ class MemberInfo:
|
|
36
36
|
'created_at': 'str',
|
37
37
|
'updated_at': 'str',
|
38
38
|
'member_type': 'str',
|
39
|
-
'instance_id': 'str'
|
39
|
+
'instance_id': 'str',
|
40
|
+
'reason': 'MemberHealthCheckFailedReason'
|
40
41
|
}
|
41
42
|
|
42
43
|
attribute_map = {
|
@@ -59,10 +60,11 @@ class MemberInfo:
|
|
59
60
|
'created_at': 'created_at',
|
60
61
|
'updated_at': 'updated_at',
|
61
62
|
'member_type': 'member_type',
|
62
|
-
'instance_id': 'instance_id'
|
63
|
+
'instance_id': 'instance_id',
|
64
|
+
'reason': 'reason'
|
63
65
|
}
|
64
66
|
|
65
|
-
def __init__(self, id=None, name=None, project_id=None, pool_id=None, admin_state_up=None, subnet_cidr_id=None, protocol_port=None, weight=None, address=None, ip_version=None, device_owner=None, device_id=None, operating_status=None, status=None, loadbalancer_id=None, loadbalancers=None, created_at=None, updated_at=None, member_type=None, instance_id=None):
|
67
|
+
def __init__(self, id=None, name=None, project_id=None, pool_id=None, admin_state_up=None, subnet_cidr_id=None, protocol_port=None, weight=None, address=None, ip_version=None, device_owner=None, device_id=None, operating_status=None, status=None, loadbalancer_id=None, loadbalancers=None, created_at=None, updated_at=None, member_type=None, instance_id=None, reason=None):
|
66
68
|
"""MemberInfo
|
67
69
|
|
68
70
|
The model defined in huaweicloud sdk
|
@@ -99,14 +101,16 @@ class MemberInfo:
|
|
99
101
|
:type loadbalancer_id: str
|
100
102
|
:param loadbalancers: 后端服务器关联的负载均衡器ID列表。 不支持该字段,请勿使用。
|
101
103
|
:type loadbalancers: list[:class:`huaweicloudsdkelb.v3.ResourceID`]
|
102
|
-
:param created_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,fcs,dt,hk_tm)
|
104
|
+
:param created_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)
|
103
105
|
:type created_at: str
|
104
|
-
: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,fcs,dt,hk_tm)
|
106
|
+
: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)
|
105
107
|
:type updated_at: str
|
106
108
|
:param member_type: 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
|
107
109
|
:type member_type: str
|
108
110
|
:param instance_id: member关联的实例ID。空表示member关联的实例为非真实设备 (如:跨VPC场景)
|
109
111
|
:type instance_id: str
|
112
|
+
:param reason:
|
113
|
+
:type reason: :class:`huaweicloudsdkelb.v3.MemberHealthCheckFailedReason`
|
110
114
|
"""
|
111
115
|
|
112
116
|
|
@@ -131,6 +135,7 @@ class MemberInfo:
|
|
131
135
|
self._updated_at = None
|
132
136
|
self._member_type = None
|
133
137
|
self._instance_id = None
|
138
|
+
self._reason = None
|
134
139
|
self.discriminator = None
|
135
140
|
|
136
141
|
self.id = id
|
@@ -163,6 +168,8 @@ class MemberInfo:
|
|
163
168
|
self.member_type = member_type
|
164
169
|
if instance_id is not None:
|
165
170
|
self.instance_id = instance_id
|
171
|
+
if reason is not None:
|
172
|
+
self.reason = reason
|
166
173
|
|
167
174
|
@property
|
168
175
|
def id(self):
|
@@ -520,7 +527,7 @@ class MemberInfo:
|
|
520
527
|
def created_at(self):
|
521
528
|
"""Gets the created_at of this MemberInfo.
|
522
529
|
|
523
|
-
创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
530
|
+
创建时间。格式: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)
|
524
531
|
|
525
532
|
:return: The created_at of this MemberInfo.
|
526
533
|
:rtype: str
|
@@ -531,7 +538,7 @@ class MemberInfo:
|
|
531
538
|
def created_at(self, created_at):
|
532
539
|
"""Sets the created_at of this MemberInfo.
|
533
540
|
|
534
|
-
创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
541
|
+
创建时间。格式: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)
|
535
542
|
|
536
543
|
:param created_at: The created_at of this MemberInfo.
|
537
544
|
:type created_at: str
|
@@ -542,7 +549,7 @@ class MemberInfo:
|
|
542
549
|
def updated_at(self):
|
543
550
|
"""Gets the updated_at of this MemberInfo.
|
544
551
|
|
545
|
-
更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
552
|
+
更新时间。格式: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)
|
546
553
|
|
547
554
|
:return: The updated_at of this MemberInfo.
|
548
555
|
:rtype: str
|
@@ -553,7 +560,7 @@ class MemberInfo:
|
|
553
560
|
def updated_at(self, updated_at):
|
554
561
|
"""Sets the updated_at of this MemberInfo.
|
555
562
|
|
556
|
-
更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
563
|
+
更新时间。格式: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)
|
557
564
|
|
558
565
|
:param updated_at: The updated_at of this MemberInfo.
|
559
566
|
:type updated_at: str
|
@@ -604,6 +611,24 @@ class MemberInfo:
|
|
604
611
|
"""
|
605
612
|
self._instance_id = instance_id
|
606
613
|
|
614
|
+
@property
|
615
|
+
def reason(self):
|
616
|
+
"""Gets the reason of this MemberInfo.
|
617
|
+
|
618
|
+
:return: The reason of this MemberInfo.
|
619
|
+
:rtype: :class:`huaweicloudsdkelb.v3.MemberHealthCheckFailedReason`
|
620
|
+
"""
|
621
|
+
return self._reason
|
622
|
+
|
623
|
+
@reason.setter
|
624
|
+
def reason(self, reason):
|
625
|
+
"""Sets the reason of this MemberInfo.
|
626
|
+
|
627
|
+
:param reason: The reason of this MemberInfo.
|
628
|
+
:type reason: :class:`huaweicloudsdkelb.v3.MemberHealthCheckFailedReason`
|
629
|
+
"""
|
630
|
+
self._reason = reason
|
631
|
+
|
607
632
|
def to_dict(self):
|
608
633
|
"""Returns the model properties as a dict"""
|
609
634
|
result = {}
|
@@ -18,15 +18,17 @@ class MemberStatus:
|
|
18
18
|
|
19
19
|
openapi_types = {
|
20
20
|
'listener_id': 'str',
|
21
|
-
'operating_status': 'str'
|
21
|
+
'operating_status': 'str',
|
22
|
+
'reason': 'MemberHealthCheckFailedReason'
|
22
23
|
}
|
23
24
|
|
24
25
|
attribute_map = {
|
25
26
|
'listener_id': 'listener_id',
|
26
|
-
'operating_status': 'operating_status'
|
27
|
+
'operating_status': 'operating_status',
|
28
|
+
'reason': 'reason'
|
27
29
|
}
|
28
30
|
|
29
|
-
def __init__(self, listener_id=None, operating_status=None):
|
31
|
+
def __init__(self, listener_id=None, operating_status=None, reason=None):
|
30
32
|
"""MemberStatus
|
31
33
|
|
32
34
|
The model defined in huaweicloud sdk
|
@@ -35,16 +37,21 @@ class MemberStatus:
|
|
35
37
|
:type listener_id: str
|
36
38
|
:param operating_status: 参数解释:后端服务器的健康状态。 取值范围: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
37
39
|
:type operating_status: str
|
40
|
+
:param reason:
|
41
|
+
:type reason: :class:`huaweicloudsdkelb.v3.MemberHealthCheckFailedReason`
|
38
42
|
"""
|
39
43
|
|
40
44
|
|
41
45
|
|
42
46
|
self._listener_id = None
|
43
47
|
self._operating_status = None
|
48
|
+
self._reason = None
|
44
49
|
self.discriminator = None
|
45
50
|
|
46
51
|
self.listener_id = listener_id
|
47
52
|
self.operating_status = operating_status
|
53
|
+
if reason is not None:
|
54
|
+
self.reason = reason
|
48
55
|
|
49
56
|
@property
|
50
57
|
def listener_id(self):
|
@@ -90,6 +97,24 @@ class MemberStatus:
|
|
90
97
|
"""
|
91
98
|
self._operating_status = operating_status
|
92
99
|
|
100
|
+
@property
|
101
|
+
def reason(self):
|
102
|
+
"""Gets the reason of this MemberStatus.
|
103
|
+
|
104
|
+
:return: The reason of this MemberStatus.
|
105
|
+
:rtype: :class:`huaweicloudsdkelb.v3.MemberHealthCheckFailedReason`
|
106
|
+
"""
|
107
|
+
return self._reason
|
108
|
+
|
109
|
+
@reason.setter
|
110
|
+
def reason(self, reason):
|
111
|
+
"""Sets the reason of this MemberStatus.
|
112
|
+
|
113
|
+
:param reason: The reason of this MemberStatus.
|
114
|
+
:type reason: :class:`huaweicloudsdkelb.v3.MemberHealthCheckFailedReason`
|
115
|
+
"""
|
116
|
+
self._reason = reason
|
117
|
+
|
93
118
|
def to_dict(self):
|
94
119
|
"""Returns the model properties as a dict"""
|
95
120
|
result = {}
|