huaweicloudsdkelb 3.1.147__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.147.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.147.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/RECORD +72 -38
- {huaweicloudsdkelb-3.1.147.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.147.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.147.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,112 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ShowRecycleBinResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'recycle_bin': 'RecycleBinResponseBody'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'recycle_bin': 'recycle_bin'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, recycle_bin=None):
|
29
|
+
r"""ShowRecycleBinResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param recycle_bin:
|
34
|
+
:type recycle_bin: :class:`huaweicloudsdkelb.v3.RecycleBinResponseBody`
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ShowRecycleBinResponse, self).__init__()
|
38
|
+
|
39
|
+
self._recycle_bin = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if recycle_bin is not None:
|
43
|
+
self.recycle_bin = recycle_bin
|
44
|
+
|
45
|
+
@property
|
46
|
+
def recycle_bin(self):
|
47
|
+
r"""Gets the recycle_bin of this ShowRecycleBinResponse.
|
48
|
+
|
49
|
+
:return: The recycle_bin of this ShowRecycleBinResponse.
|
50
|
+
:rtype: :class:`huaweicloudsdkelb.v3.RecycleBinResponseBody`
|
51
|
+
"""
|
52
|
+
return self._recycle_bin
|
53
|
+
|
54
|
+
@recycle_bin.setter
|
55
|
+
def recycle_bin(self, recycle_bin):
|
56
|
+
r"""Sets the recycle_bin of this ShowRecycleBinResponse.
|
57
|
+
|
58
|
+
:param recycle_bin: The recycle_bin of this ShowRecycleBinResponse.
|
59
|
+
:type recycle_bin: :class:`huaweicloudsdkelb.v3.RecycleBinResponseBody`
|
60
|
+
"""
|
61
|
+
self._recycle_bin = recycle_bin
|
62
|
+
|
63
|
+
def to_dict(self):
|
64
|
+
"""Returns the model properties as a dict"""
|
65
|
+
result = {}
|
66
|
+
|
67
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
68
|
+
value = getattr(self, attr)
|
69
|
+
if isinstance(value, list):
|
70
|
+
result[attr] = list(map(
|
71
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
72
|
+
value
|
73
|
+
))
|
74
|
+
elif hasattr(value, "to_dict"):
|
75
|
+
result[attr] = value.to_dict()
|
76
|
+
elif isinstance(value, dict):
|
77
|
+
result[attr] = dict(map(
|
78
|
+
lambda item: (item[0], item[1].to_dict())
|
79
|
+
if hasattr(item[1], "to_dict") else item,
|
80
|
+
value.items()
|
81
|
+
))
|
82
|
+
else:
|
83
|
+
if attr in self.sensitive_list:
|
84
|
+
result[attr] = "****"
|
85
|
+
else:
|
86
|
+
result[attr] = value
|
87
|
+
|
88
|
+
return result
|
89
|
+
|
90
|
+
def to_str(self):
|
91
|
+
"""Returns the string representation of the model"""
|
92
|
+
import simplejson as json
|
93
|
+
if six.PY2:
|
94
|
+
import sys
|
95
|
+
reload(sys)
|
96
|
+
sys.setdefaultencoding("utf-8")
|
97
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
98
|
+
|
99
|
+
def __repr__(self):
|
100
|
+
"""For `print`"""
|
101
|
+
return self.to_str()
|
102
|
+
|
103
|
+
def __eq__(self, other):
|
104
|
+
"""Returns true if both objects are equal"""
|
105
|
+
if not isinstance(other, ShowRecycleBinResponse):
|
106
|
+
return False
|
107
|
+
|
108
|
+
return self.__dict__ == other.__dict__
|
109
|
+
|
110
|
+
def __ne__(self, other):
|
111
|
+
"""Returns true if both objects are not equal"""
|
112
|
+
return not self == other
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class TrafficMirrorConfig:
|
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
|
+
'target_ids': 'list[str]',
|
21
|
+
'mirror_request_body_enable': 'bool'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'target_ids': 'target_ids',
|
26
|
+
'mirror_request_body_enable': 'mirror_request_body_enable'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, target_ids=None, mirror_request_body_enable=None):
|
30
|
+
r"""TrafficMirrorConfig
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param target_ids: 流量镜像的目的后端服务器组ID。
|
35
|
+
:type target_ids: list[str]
|
36
|
+
:param mirror_request_body_enable: 镜像请求是否携带请求体,默认true。
|
37
|
+
:type mirror_request_body_enable: bool
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._target_ids = None
|
43
|
+
self._mirror_request_body_enable = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if target_ids is not None:
|
47
|
+
self.target_ids = target_ids
|
48
|
+
if mirror_request_body_enable is not None:
|
49
|
+
self.mirror_request_body_enable = mirror_request_body_enable
|
50
|
+
|
51
|
+
@property
|
52
|
+
def target_ids(self):
|
53
|
+
r"""Gets the target_ids of this TrafficMirrorConfig.
|
54
|
+
|
55
|
+
流量镜像的目的后端服务器组ID。
|
56
|
+
|
57
|
+
:return: The target_ids of this TrafficMirrorConfig.
|
58
|
+
:rtype: list[str]
|
59
|
+
"""
|
60
|
+
return self._target_ids
|
61
|
+
|
62
|
+
@target_ids.setter
|
63
|
+
def target_ids(self, target_ids):
|
64
|
+
r"""Sets the target_ids of this TrafficMirrorConfig.
|
65
|
+
|
66
|
+
流量镜像的目的后端服务器组ID。
|
67
|
+
|
68
|
+
:param target_ids: The target_ids of this TrafficMirrorConfig.
|
69
|
+
:type target_ids: list[str]
|
70
|
+
"""
|
71
|
+
self._target_ids = target_ids
|
72
|
+
|
73
|
+
@property
|
74
|
+
def mirror_request_body_enable(self):
|
75
|
+
r"""Gets the mirror_request_body_enable of this TrafficMirrorConfig.
|
76
|
+
|
77
|
+
镜像请求是否携带请求体,默认true。
|
78
|
+
|
79
|
+
:return: The mirror_request_body_enable of this TrafficMirrorConfig.
|
80
|
+
:rtype: bool
|
81
|
+
"""
|
82
|
+
return self._mirror_request_body_enable
|
83
|
+
|
84
|
+
@mirror_request_body_enable.setter
|
85
|
+
def mirror_request_body_enable(self, mirror_request_body_enable):
|
86
|
+
r"""Sets the mirror_request_body_enable of this TrafficMirrorConfig.
|
87
|
+
|
88
|
+
镜像请求是否携带请求体,默认true。
|
89
|
+
|
90
|
+
:param mirror_request_body_enable: The mirror_request_body_enable of this TrafficMirrorConfig.
|
91
|
+
:type mirror_request_body_enable: bool
|
92
|
+
"""
|
93
|
+
self._mirror_request_body_enable = mirror_request_body_enable
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, TrafficMirrorConfig):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateAzAffinity:
|
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"""UpdateAzAffinity
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param enable: 参数解释:后端服务器组可用区亲和开关。 约束限制: - 当后端服务器组中有未设置availability_zone属性的iptarget类型的后端服务器时无法开启可用区亲和。 - 当后端服务器绑定TLS监听器时无法开启可用区亲和。 - 仅IP、UDP、TCP类型的后端服务器组支持开启可用区亲和。 - 当开启可用区亲和后,原本的pool_health配置失效。 取值范围:true或false,true表示开启,false表示关闭。
|
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
|
+
if enable is not None:
|
57
|
+
self.enable = enable
|
58
|
+
if az_minimum_healthy_member_percentage is not None:
|
59
|
+
self.az_minimum_healthy_member_percentage = az_minimum_healthy_member_percentage
|
60
|
+
if az_minimum_healthy_member_count is not None:
|
61
|
+
self.az_minimum_healthy_member_count = az_minimum_healthy_member_count
|
62
|
+
if az_unhealthy_fallback_strategy is not None:
|
63
|
+
self.az_unhealthy_fallback_strategy = az_unhealthy_fallback_strategy
|
64
|
+
|
65
|
+
@property
|
66
|
+
def enable(self):
|
67
|
+
r"""Gets the enable of this UpdateAzAffinity.
|
68
|
+
|
69
|
+
参数解释:后端服务器组可用区亲和开关。 约束限制: - 当后端服务器组中有未设置availability_zone属性的iptarget类型的后端服务器时无法开启可用区亲和。 - 当后端服务器绑定TLS监听器时无法开启可用区亲和。 - 仅IP、UDP、TCP类型的后端服务器组支持开启可用区亲和。 - 当开启可用区亲和后,原本的pool_health配置失效。 取值范围:true或false,true表示开启,false表示关闭。
|
70
|
+
|
71
|
+
:return: The enable of this UpdateAzAffinity.
|
72
|
+
:rtype: bool
|
73
|
+
"""
|
74
|
+
return self._enable
|
75
|
+
|
76
|
+
@enable.setter
|
77
|
+
def enable(self, enable):
|
78
|
+
r"""Sets the enable of this UpdateAzAffinity.
|
79
|
+
|
80
|
+
参数解释:后端服务器组可用区亲和开关。 约束限制: - 当后端服务器组中有未设置availability_zone属性的iptarget类型的后端服务器时无法开启可用区亲和。 - 当后端服务器绑定TLS监听器时无法开启可用区亲和。 - 仅IP、UDP、TCP类型的后端服务器组支持开启可用区亲和。 - 当开启可用区亲和后,原本的pool_health配置失效。 取值范围:true或false,true表示开启,false表示关闭。
|
81
|
+
|
82
|
+
:param enable: The enable of this UpdateAzAffinity.
|
83
|
+
:type enable: bool
|
84
|
+
"""
|
85
|
+
self._enable = enable
|
86
|
+
|
87
|
+
@property
|
88
|
+
def az_minimum_healthy_member_percentage(self):
|
89
|
+
r"""Gets the az_minimum_healthy_member_percentage of this UpdateAzAffinity.
|
90
|
+
|
91
|
+
参数解释:后端服务器组单可用区百分比健康度最小阈值,当“后端服务器组单可用区百分比健康度”小于该阈值时,触发可用区异常退避策略。“后端服务器组单可用区百分比健康度”是指在一个后端服务器组中,同可用区中健康检查结果正常的服务器数量与该后端服务器组中属于该可用区的后端服务器总数量的比值,百分比结果向上取整。例如:后端服务器组中属于可用区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表示采用数量阈值。
|
92
|
+
|
93
|
+
:return: The az_minimum_healthy_member_percentage of this UpdateAzAffinity.
|
94
|
+
:rtype: int
|
95
|
+
"""
|
96
|
+
return self._az_minimum_healthy_member_percentage
|
97
|
+
|
98
|
+
@az_minimum_healthy_member_percentage.setter
|
99
|
+
def az_minimum_healthy_member_percentage(self, az_minimum_healthy_member_percentage):
|
100
|
+
r"""Sets the az_minimum_healthy_member_percentage of this UpdateAzAffinity.
|
101
|
+
|
102
|
+
参数解释:后端服务器组单可用区百分比健康度最小阈值,当“后端服务器组单可用区百分比健康度”小于该阈值时,触发可用区异常退避策略。“后端服务器组单可用区百分比健康度”是指在一个后端服务器组中,同可用区中健康检查结果正常的服务器数量与该后端服务器组中属于该可用区的后端服务器总数量的比值,百分比结果向上取整。例如:后端服务器组中属于可用区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表示采用数量阈值。
|
103
|
+
|
104
|
+
:param az_minimum_healthy_member_percentage: The az_minimum_healthy_member_percentage of this UpdateAzAffinity.
|
105
|
+
:type az_minimum_healthy_member_percentage: int
|
106
|
+
"""
|
107
|
+
self._az_minimum_healthy_member_percentage = az_minimum_healthy_member_percentage
|
108
|
+
|
109
|
+
@property
|
110
|
+
def az_minimum_healthy_member_count(self):
|
111
|
+
r"""Gets the az_minimum_healthy_member_count of this UpdateAzAffinity.
|
112
|
+
|
113
|
+
参数解释:后端服务器组单可用区中数量健康度最小阈值,当“后端服务器组单可用区中数量健康度”小于该阈值时,触发可用区异常退避策略。“后端服务器组单可用区中数量健康度”是指在一个后端服务器组中,属于同一个可用区的健康检查结果正常的服务器数量。 约束限制: - 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表示采用百分比阈值。
|
114
|
+
|
115
|
+
:return: The az_minimum_healthy_member_count of this UpdateAzAffinity.
|
116
|
+
:rtype: int
|
117
|
+
"""
|
118
|
+
return self._az_minimum_healthy_member_count
|
119
|
+
|
120
|
+
@az_minimum_healthy_member_count.setter
|
121
|
+
def az_minimum_healthy_member_count(self, az_minimum_healthy_member_count):
|
122
|
+
r"""Sets the az_minimum_healthy_member_count of this UpdateAzAffinity.
|
123
|
+
|
124
|
+
参数解释:后端服务器组单可用区中数量健康度最小阈值,当“后端服务器组单可用区中数量健康度”小于该阈值时,触发可用区异常退避策略。“后端服务器组单可用区中数量健康度”是指在一个后端服务器组中,属于同一个可用区的健康检查结果正常的服务器数量。 约束限制: - 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表示采用百分比阈值。
|
125
|
+
|
126
|
+
:param az_minimum_healthy_member_count: The az_minimum_healthy_member_count of this UpdateAzAffinity.
|
127
|
+
:type az_minimum_healthy_member_count: int
|
128
|
+
"""
|
129
|
+
self._az_minimum_healthy_member_count = az_minimum_healthy_member_count
|
130
|
+
|
131
|
+
@property
|
132
|
+
def az_unhealthy_fallback_strategy(self):
|
133
|
+
r"""Gets the az_unhealthy_fallback_strategy of this UpdateAzAffinity.
|
134
|
+
|
135
|
+
参数解释:后端服务器组单可用区异常退避策略。后端服务器组的健康度小于所配置的最小阈值时,触发该退避策略。 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
|
136
|
+
|
137
|
+
:return: The az_unhealthy_fallback_strategy of this UpdateAzAffinity.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._az_unhealthy_fallback_strategy
|
141
|
+
|
142
|
+
@az_unhealthy_fallback_strategy.setter
|
143
|
+
def az_unhealthy_fallback_strategy(self, az_unhealthy_fallback_strategy):
|
144
|
+
r"""Sets the az_unhealthy_fallback_strategy of this UpdateAzAffinity.
|
145
|
+
|
146
|
+
参数解释:后端服务器组单可用区异常退避策略。后端服务器组的健康度小于所配置的最小阈值时,触发该退避策略。 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
|
147
|
+
|
148
|
+
:param az_unhealthy_fallback_strategy: The az_unhealthy_fallback_strategy of this UpdateAzAffinity.
|
149
|
+
:type az_unhealthy_fallback_strategy: str
|
150
|
+
"""
|
151
|
+
self._az_unhealthy_fallback_strategy = az_unhealthy_fallback_strategy
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, UpdateAzAffinity):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|
@@ -24,7 +24,10 @@ class UpdateCertificateOption:
|
|
24
24
|
'domain': 'str',
|
25
25
|
'enc_certificate': 'str',
|
26
26
|
'enc_private_key': 'str',
|
27
|
-
'scm_certificate_id': 'str'
|
27
|
+
'scm_certificate_id': 'str',
|
28
|
+
'source': 'str',
|
29
|
+
'protection_status': 'str',
|
30
|
+
'protection_reason': 'str'
|
28
31
|
}
|
29
32
|
|
30
33
|
attribute_map = {
|
@@ -35,10 +38,13 @@ class UpdateCertificateOption:
|
|
35
38
|
'domain': 'domain',
|
36
39
|
'enc_certificate': 'enc_certificate',
|
37
40
|
'enc_private_key': 'enc_private_key',
|
38
|
-
'scm_certificate_id': 'scm_certificate_id'
|
41
|
+
'scm_certificate_id': 'scm_certificate_id',
|
42
|
+
'source': 'source',
|
43
|
+
'protection_status': 'protection_status',
|
44
|
+
'protection_reason': 'protection_reason'
|
39
45
|
}
|
40
46
|
|
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):
|
47
|
+
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, source=None, protection_status=None, protection_reason=None):
|
42
48
|
r"""UpdateCertificateOption
|
43
49
|
|
44
50
|
The model defined in huaweicloud sdk
|
@@ -59,6 +65,12 @@ class UpdateCertificateOption:
|
|
59
65
|
:type enc_private_key: str
|
60
66
|
:param scm_certificate_id: scm证书id
|
61
67
|
:type scm_certificate_id: str
|
68
|
+
:param source: 参数解释:证书来源 取值范围:无 默认取值:当scm_certificate_id不为空,且未传入source时,默认取值为“scm”; 其他情况下默认为空。
|
69
|
+
:type source: str
|
70
|
+
:param protection_status: 参数解释:修改保护状态 约束限制:无 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 默认取值:nonProtection
|
71
|
+
:type protection_status: str
|
72
|
+
:param protection_reason: 参数解释:设置修改保护的原因 约束限制:仅当protection_status为consoleProtection时有效 取值范围:无 默认取值:空
|
73
|
+
:type protection_reason: str
|
62
74
|
"""
|
63
75
|
|
64
76
|
|
@@ -71,6 +83,9 @@ class UpdateCertificateOption:
|
|
71
83
|
self._enc_certificate = None
|
72
84
|
self._enc_private_key = None
|
73
85
|
self._scm_certificate_id = None
|
86
|
+
self._source = None
|
87
|
+
self._protection_status = None
|
88
|
+
self._protection_reason = None
|
74
89
|
self.discriminator = None
|
75
90
|
|
76
91
|
if certificate is not None:
|
@@ -89,6 +104,12 @@ class UpdateCertificateOption:
|
|
89
104
|
self.enc_private_key = enc_private_key
|
90
105
|
if scm_certificate_id is not None:
|
91
106
|
self.scm_certificate_id = scm_certificate_id
|
107
|
+
if source is not None:
|
108
|
+
self.source = source
|
109
|
+
if protection_status is not None:
|
110
|
+
self.protection_status = protection_status
|
111
|
+
if protection_reason is not None:
|
112
|
+
self.protection_reason = protection_reason
|
92
113
|
|
93
114
|
@property
|
94
115
|
def certificate(self):
|
@@ -266,6 +287,72 @@ class UpdateCertificateOption:
|
|
266
287
|
"""
|
267
288
|
self._scm_certificate_id = scm_certificate_id
|
268
289
|
|
290
|
+
@property
|
291
|
+
def source(self):
|
292
|
+
r"""Gets the source of this UpdateCertificateOption.
|
293
|
+
|
294
|
+
参数解释:证书来源 取值范围:无 默认取值:当scm_certificate_id不为空,且未传入source时,默认取值为“scm”; 其他情况下默认为空。
|
295
|
+
|
296
|
+
:return: The source of this UpdateCertificateOption.
|
297
|
+
:rtype: str
|
298
|
+
"""
|
299
|
+
return self._source
|
300
|
+
|
301
|
+
@source.setter
|
302
|
+
def source(self, source):
|
303
|
+
r"""Sets the source of this UpdateCertificateOption.
|
304
|
+
|
305
|
+
参数解释:证书来源 取值范围:无 默认取值:当scm_certificate_id不为空,且未传入source时,默认取值为“scm”; 其他情况下默认为空。
|
306
|
+
|
307
|
+
:param source: The source of this UpdateCertificateOption.
|
308
|
+
:type source: str
|
309
|
+
"""
|
310
|
+
self._source = source
|
311
|
+
|
312
|
+
@property
|
313
|
+
def protection_status(self):
|
314
|
+
r"""Gets the protection_status of this UpdateCertificateOption.
|
315
|
+
|
316
|
+
参数解释:修改保护状态 约束限制:无 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 默认取值:nonProtection
|
317
|
+
|
318
|
+
:return: The protection_status of this UpdateCertificateOption.
|
319
|
+
:rtype: str
|
320
|
+
"""
|
321
|
+
return self._protection_status
|
322
|
+
|
323
|
+
@protection_status.setter
|
324
|
+
def protection_status(self, protection_status):
|
325
|
+
r"""Sets the protection_status of this UpdateCertificateOption.
|
326
|
+
|
327
|
+
参数解释:修改保护状态 约束限制:无 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 默认取值:nonProtection
|
328
|
+
|
329
|
+
:param protection_status: The protection_status of this UpdateCertificateOption.
|
330
|
+
:type protection_status: str
|
331
|
+
"""
|
332
|
+
self._protection_status = protection_status
|
333
|
+
|
334
|
+
@property
|
335
|
+
def protection_reason(self):
|
336
|
+
r"""Gets the protection_reason of this UpdateCertificateOption.
|
337
|
+
|
338
|
+
参数解释:设置修改保护的原因 约束限制:仅当protection_status为consoleProtection时有效 取值范围:无 默认取值:空
|
339
|
+
|
340
|
+
:return: The protection_reason of this UpdateCertificateOption.
|
341
|
+
:rtype: str
|
342
|
+
"""
|
343
|
+
return self._protection_reason
|
344
|
+
|
345
|
+
@protection_reason.setter
|
346
|
+
def protection_reason(self, protection_reason):
|
347
|
+
r"""Sets the protection_reason of this UpdateCertificateOption.
|
348
|
+
|
349
|
+
参数解释:设置修改保护的原因 约束限制:仅当protection_status为consoleProtection时有效 取值范围:无 默认取值:空
|
350
|
+
|
351
|
+
:param protection_reason: The protection_reason of this UpdateCertificateOption.
|
352
|
+
:type protection_reason: str
|
353
|
+
"""
|
354
|
+
self._protection_reason = protection_reason
|
355
|
+
|
269
356
|
def to_dict(self):
|
270
357
|
"""Returns the model properties as a dict"""
|
271
358
|
result = {}
|
@@ -57,7 +57,7 @@ class UpdateHealthMonitorOption:
|
|
57
57
|
:type delay: int
|
58
58
|
:param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 不能传空,但可传null或不传,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。
|
59
59
|
:type domain_name: str
|
60
|
-
:param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。
|
60
|
+
:param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 该字段仅在HTTP/HTTPS/GRPC协议下有效,其他协议可以设置但不会生效。
|
61
61
|
:type expected_codes: str
|
62
62
|
:param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。
|
63
63
|
:type http_method: str
|
@@ -188,7 +188,7 @@ class UpdateHealthMonitorOption:
|
|
188
188
|
def expected_codes(self):
|
189
189
|
r"""Gets the expected_codes of this UpdateHealthMonitorOption.
|
190
190
|
|
191
|
-
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。
|
191
|
+
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 该字段仅在HTTP/HTTPS/GRPC协议下有效,其他协议可以设置但不会生效。
|
192
192
|
|
193
193
|
:return: The expected_codes of this UpdateHealthMonitorOption.
|
194
194
|
:rtype: str
|
@@ -199,7 +199,7 @@ class UpdateHealthMonitorOption:
|
|
199
199
|
def expected_codes(self, expected_codes):
|
200
200
|
r"""Sets the expected_codes of this UpdateHealthMonitorOption.
|
201
201
|
|
202
|
-
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。
|
202
|
+
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 该字段仅在HTTP/HTTPS/GRPC协议下有效,其他协议可以设置但不会生效。
|
203
203
|
|
204
204
|
:param expected_codes: The expected_codes of this UpdateHealthMonitorOption.
|
205
205
|
:type expected_codes: str
|