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
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateMemberHealthCheckJobRequestBody:
|
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
|
+
'member_check': 'CreateMemberHealthCheckJobOption'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'member_check': 'member_check'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, member_check=None):
|
28
|
+
r"""CreateMemberHealthCheckJobRequestBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param member_check:
|
33
|
+
:type member_check: :class:`huaweicloudsdkelb.v3.CreateMemberHealthCheckJobOption`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._member_check = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if member_check is not None:
|
42
|
+
self.member_check = member_check
|
43
|
+
|
44
|
+
@property
|
45
|
+
def member_check(self):
|
46
|
+
r"""Gets the member_check of this CreateMemberHealthCheckJobRequestBody.
|
47
|
+
|
48
|
+
:return: The member_check of this CreateMemberHealthCheckJobRequestBody.
|
49
|
+
:rtype: :class:`huaweicloudsdkelb.v3.CreateMemberHealthCheckJobOption`
|
50
|
+
"""
|
51
|
+
return self._member_check
|
52
|
+
|
53
|
+
@member_check.setter
|
54
|
+
def member_check(self, member_check):
|
55
|
+
r"""Sets the member_check of this CreateMemberHealthCheckJobRequestBody.
|
56
|
+
|
57
|
+
:param member_check: The member_check of this CreateMemberHealthCheckJobRequestBody.
|
58
|
+
:type member_check: :class:`huaweicloudsdkelb.v3.CreateMemberHealthCheckJobOption`
|
59
|
+
"""
|
60
|
+
self._member_check = member_check
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, CreateMemberHealthCheckJobRequestBody):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|
@@ -0,0 +1,141 @@
|
|
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 CreateMemberHealthCheckJobResponse(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
|
+
'member_check': 'MemberCheckJob',
|
22
|
+
'request_id': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'member_check': 'member_check',
|
27
|
+
'request_id': 'request_id'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, member_check=None, request_id=None):
|
31
|
+
r"""CreateMemberHealthCheckJobResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param member_check:
|
36
|
+
:type member_check: :class:`huaweicloudsdkelb.v3.MemberCheckJob`
|
37
|
+
:param request_id: 参数解释:请求ID。 注:自动生成 。
|
38
|
+
:type request_id: str
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(CreateMemberHealthCheckJobResponse, self).__init__()
|
42
|
+
|
43
|
+
self._member_check = None
|
44
|
+
self._request_id = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if member_check is not None:
|
48
|
+
self.member_check = member_check
|
49
|
+
if request_id is not None:
|
50
|
+
self.request_id = request_id
|
51
|
+
|
52
|
+
@property
|
53
|
+
def member_check(self):
|
54
|
+
r"""Gets the member_check of this CreateMemberHealthCheckJobResponse.
|
55
|
+
|
56
|
+
:return: The member_check of this CreateMemberHealthCheckJobResponse.
|
57
|
+
:rtype: :class:`huaweicloudsdkelb.v3.MemberCheckJob`
|
58
|
+
"""
|
59
|
+
return self._member_check
|
60
|
+
|
61
|
+
@member_check.setter
|
62
|
+
def member_check(self, member_check):
|
63
|
+
r"""Sets the member_check of this CreateMemberHealthCheckJobResponse.
|
64
|
+
|
65
|
+
:param member_check: The member_check of this CreateMemberHealthCheckJobResponse.
|
66
|
+
:type member_check: :class:`huaweicloudsdkelb.v3.MemberCheckJob`
|
67
|
+
"""
|
68
|
+
self._member_check = member_check
|
69
|
+
|
70
|
+
@property
|
71
|
+
def request_id(self):
|
72
|
+
r"""Gets the request_id of this CreateMemberHealthCheckJobResponse.
|
73
|
+
|
74
|
+
参数解释:请求ID。 注:自动生成 。
|
75
|
+
|
76
|
+
:return: The request_id of this CreateMemberHealthCheckJobResponse.
|
77
|
+
:rtype: str
|
78
|
+
"""
|
79
|
+
return self._request_id
|
80
|
+
|
81
|
+
@request_id.setter
|
82
|
+
def request_id(self, request_id):
|
83
|
+
r"""Sets the request_id of this CreateMemberHealthCheckJobResponse.
|
84
|
+
|
85
|
+
参数解释:请求ID。 注:自动生成 。
|
86
|
+
|
87
|
+
:param request_id: The request_id of this CreateMemberHealthCheckJobResponse.
|
88
|
+
:type request_id: str
|
89
|
+
"""
|
90
|
+
self._request_id = request_id
|
91
|
+
|
92
|
+
def to_dict(self):
|
93
|
+
"""Returns the model properties as a dict"""
|
94
|
+
result = {}
|
95
|
+
|
96
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
97
|
+
value = getattr(self, attr)
|
98
|
+
if isinstance(value, list):
|
99
|
+
result[attr] = list(map(
|
100
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
101
|
+
value
|
102
|
+
))
|
103
|
+
elif hasattr(value, "to_dict"):
|
104
|
+
result[attr] = value.to_dict()
|
105
|
+
elif isinstance(value, dict):
|
106
|
+
result[attr] = dict(map(
|
107
|
+
lambda item: (item[0], item[1].to_dict())
|
108
|
+
if hasattr(item[1], "to_dict") else item,
|
109
|
+
value.items()
|
110
|
+
))
|
111
|
+
else:
|
112
|
+
if attr in self.sensitive_list:
|
113
|
+
result[attr] = "****"
|
114
|
+
else:
|
115
|
+
result[attr] = value
|
116
|
+
|
117
|
+
return result
|
118
|
+
|
119
|
+
def to_str(self):
|
120
|
+
"""Returns the string representation of the model"""
|
121
|
+
import simplejson as json
|
122
|
+
if six.PY2:
|
123
|
+
import sys
|
124
|
+
reload(sys)
|
125
|
+
sys.setdefaultencoding("utf-8")
|
126
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
127
|
+
|
128
|
+
def __repr__(self):
|
129
|
+
"""For `print`"""
|
130
|
+
return self.to_str()
|
131
|
+
|
132
|
+
def __eq__(self, other):
|
133
|
+
"""Returns true if both objects are equal"""
|
134
|
+
if not isinstance(other, CreateMemberHealthCheckJobResponse):
|
135
|
+
return False
|
136
|
+
|
137
|
+
return self.__dict__ == other.__dict__
|
138
|
+
|
139
|
+
def __ne__(self, other):
|
140
|
+
"""Returns true if both objects are not equal"""
|
141
|
+
return not self == other
|
@@ -23,7 +23,8 @@ class CreateMemberOption:
|
|
23
23
|
'project_id': 'str',
|
24
24
|
'protocol_port': 'int',
|
25
25
|
'subnet_cidr_id': 'str',
|
26
|
-
'weight': 'int'
|
26
|
+
'weight': 'int',
|
27
|
+
'availability_zone': 'str'
|
27
28
|
}
|
28
29
|
|
29
30
|
attribute_map = {
|
@@ -33,10 +34,11 @@ class CreateMemberOption:
|
|
33
34
|
'project_id': 'project_id',
|
34
35
|
'protocol_port': 'protocol_port',
|
35
36
|
'subnet_cidr_id': 'subnet_cidr_id',
|
36
|
-
'weight': 'weight'
|
37
|
+
'weight': 'weight',
|
38
|
+
'availability_zone': 'availability_zone'
|
37
39
|
}
|
38
40
|
|
39
|
-
def __init__(self, address=None, admin_state_up=None, name=None, project_id=None, protocol_port=None, subnet_cidr_id=None, weight=None):
|
41
|
+
def __init__(self, address=None, admin_state_up=None, name=None, project_id=None, protocol_port=None, subnet_cidr_id=None, weight=None, availability_zone=None):
|
40
42
|
r"""CreateMemberOption
|
41
43
|
|
42
44
|
The model defined in huaweicloud sdk
|
@@ -55,6 +57,8 @@ class CreateMemberOption:
|
|
55
57
|
:type subnet_cidr_id: str
|
56
58
|
:param weight: 参数解释:后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 取值范围:0-100,默认1。
|
57
59
|
:type weight: int
|
60
|
+
:param availability_zone: 参数解释:后端服务器的可用区。 约束限制: - 仅支持iptarget类型的后端服务器设置该字段。且后端服务器组开启可用区亲和时,iptarget类型的后端服务器必须配置该字段为有效非空值。 取值范围:本region中ECS可选择的可用区。
|
61
|
+
:type availability_zone: str
|
58
62
|
"""
|
59
63
|
|
60
64
|
|
@@ -66,6 +70,7 @@ class CreateMemberOption:
|
|
66
70
|
self._protocol_port = None
|
67
71
|
self._subnet_cidr_id = None
|
68
72
|
self._weight = None
|
73
|
+
self._availability_zone = None
|
69
74
|
self.discriminator = None
|
70
75
|
|
71
76
|
self.address = address
|
@@ -81,6 +86,8 @@ class CreateMemberOption:
|
|
81
86
|
self.subnet_cidr_id = subnet_cidr_id
|
82
87
|
if weight is not None:
|
83
88
|
self.weight = weight
|
89
|
+
if availability_zone is not None:
|
90
|
+
self.availability_zone = availability_zone
|
84
91
|
|
85
92
|
@property
|
86
93
|
def address(self):
|
@@ -236,6 +243,28 @@ class CreateMemberOption:
|
|
236
243
|
"""
|
237
244
|
self._weight = weight
|
238
245
|
|
246
|
+
@property
|
247
|
+
def availability_zone(self):
|
248
|
+
r"""Gets the availability_zone of this CreateMemberOption.
|
249
|
+
|
250
|
+
参数解释:后端服务器的可用区。 约束限制: - 仅支持iptarget类型的后端服务器设置该字段。且后端服务器组开启可用区亲和时,iptarget类型的后端服务器必须配置该字段为有效非空值。 取值范围:本region中ECS可选择的可用区。
|
251
|
+
|
252
|
+
:return: The availability_zone of this CreateMemberOption.
|
253
|
+
:rtype: str
|
254
|
+
"""
|
255
|
+
return self._availability_zone
|
256
|
+
|
257
|
+
@availability_zone.setter
|
258
|
+
def availability_zone(self, availability_zone):
|
259
|
+
r"""Sets the availability_zone of this CreateMemberOption.
|
260
|
+
|
261
|
+
参数解释:后端服务器的可用区。 约束限制: - 仅支持iptarget类型的后端服务器设置该字段。且后端服务器组开启可用区亲和时,iptarget类型的后端服务器必须配置该字段为有效非空值。 取值范围:本region中ECS可选择的可用区。
|
262
|
+
|
263
|
+
:param availability_zone: The availability_zone of this CreateMemberOption.
|
264
|
+
:type availability_zone: str
|
265
|
+
"""
|
266
|
+
self._availability_zone = availability_zone
|
267
|
+
|
239
268
|
def to_dict(self):
|
240
269
|
"""Returns the model properties as a dict"""
|
241
270
|
result = {}
|
@@ -18,6 +18,7 @@ class CreatePoolOption:
|
|
18
18
|
|
19
19
|
openapi_types = {
|
20
20
|
'admin_state_up': 'bool',
|
21
|
+
'az_affinity': 'AzAffinity',
|
21
22
|
'description': 'str',
|
22
23
|
'lb_algorithm': 'str',
|
23
24
|
'listener_id': 'str',
|
@@ -42,6 +43,7 @@ class CreatePoolOption:
|
|
42
43
|
|
43
44
|
attribute_map = {
|
44
45
|
'admin_state_up': 'admin_state_up',
|
46
|
+
'az_affinity': 'az_affinity',
|
45
47
|
'description': 'description',
|
46
48
|
'lb_algorithm': 'lb_algorithm',
|
47
49
|
'listener_id': 'listener_id',
|
@@ -64,13 +66,15 @@ class CreatePoolOption:
|
|
64
66
|
'quic_cid_hash_strategy': 'quic_cid_hash_strategy'
|
65
67
|
}
|
66
68
|
|
67
|
-
def __init__(self, admin_state_up=None, description=None, lb_algorithm=None, listener_id=None, loadbalancer_id=None, name=None, project_id=None, protocol=None, session_persistence=None, slow_start=None, member_deletion_protection_enable=None, vpc_id=None, type=None, ip_version=None, protection_status=None, protection_reason=None, any_port_enable=None, connection_drain=None, pool_health=None, public_border_group=None, quic_cid_hash_strategy=None):
|
69
|
+
def __init__(self, admin_state_up=None, az_affinity=None, description=None, lb_algorithm=None, listener_id=None, loadbalancer_id=None, name=None, project_id=None, protocol=None, session_persistence=None, slow_start=None, member_deletion_protection_enable=None, vpc_id=None, type=None, ip_version=None, protection_status=None, protection_reason=None, any_port_enable=None, connection_drain=None, pool_health=None, public_border_group=None, quic_cid_hash_strategy=None):
|
68
70
|
r"""CreatePoolOption
|
69
71
|
|
70
72
|
The model defined in huaweicloud sdk
|
71
73
|
|
72
74
|
:param admin_state_up: 参数解释:后端服务器组的管理状态,只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,hcso_dt)
|
73
75
|
:type admin_state_up: bool
|
76
|
+
:param az_affinity:
|
77
|
+
:type az_affinity: :class:`huaweicloudsdkelb.v3.AzAffinity`
|
74
78
|
:param description: 参数解释:后端服务器组的描述信息。
|
75
79
|
:type description: str
|
76
80
|
:param lb_algorithm: 参数解释:后端服务器组的负载均衡算法。 约束限制: - 当该字段的取值为SOURCE_IP或QUIC_CID时,后端服务器组绑定的后端服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 取值范围: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt)
|
@@ -116,6 +120,7 @@ class CreatePoolOption:
|
|
116
120
|
|
117
121
|
|
118
122
|
self._admin_state_up = None
|
123
|
+
self._az_affinity = None
|
119
124
|
self._description = None
|
120
125
|
self._lb_algorithm = None
|
121
126
|
self._listener_id = None
|
@@ -140,6 +145,8 @@ class CreatePoolOption:
|
|
140
145
|
|
141
146
|
if admin_state_up is not None:
|
142
147
|
self.admin_state_up = admin_state_up
|
148
|
+
if az_affinity is not None:
|
149
|
+
self.az_affinity = az_affinity
|
143
150
|
if description is not None:
|
144
151
|
self.description = description
|
145
152
|
self.lb_algorithm = lb_algorithm
|
@@ -201,6 +208,24 @@ class CreatePoolOption:
|
|
201
208
|
"""
|
202
209
|
self._admin_state_up = admin_state_up
|
203
210
|
|
211
|
+
@property
|
212
|
+
def az_affinity(self):
|
213
|
+
r"""Gets the az_affinity of this CreatePoolOption.
|
214
|
+
|
215
|
+
:return: The az_affinity of this CreatePoolOption.
|
216
|
+
:rtype: :class:`huaweicloudsdkelb.v3.AzAffinity`
|
217
|
+
"""
|
218
|
+
return self._az_affinity
|
219
|
+
|
220
|
+
@az_affinity.setter
|
221
|
+
def az_affinity(self, az_affinity):
|
222
|
+
r"""Sets the az_affinity of this CreatePoolOption.
|
223
|
+
|
224
|
+
:param az_affinity: The az_affinity of this CreatePoolOption.
|
225
|
+
:type az_affinity: :class:`huaweicloudsdkelb.v3.AzAffinity`
|
226
|
+
"""
|
227
|
+
self._az_affinity = az_affinity
|
228
|
+
|
204
229
|
@property
|
205
230
|
def description(self):
|
206
231
|
r"""Gets the description of this CreatePoolOption.
|
@@ -22,7 +22,8 @@ class CreateRedirectPoolsExtendConfig:
|
|
22
22
|
'insert_headers_config': 'CreateInsertHeadersConfig',
|
23
23
|
'remove_headers_config': 'CreateRemoveHeadersConfig',
|
24
24
|
'traffic_limit_config': 'CreateTrafficLimitConfig',
|
25
|
-
'cors_config': 'CreateCorsConfig'
|
25
|
+
'cors_config': 'CreateCorsConfig',
|
26
|
+
'traffic_mirror_config': 'CreateTrafficMirrorConfig'
|
26
27
|
}
|
27
28
|
|
28
29
|
attribute_map = {
|
@@ -31,10 +32,11 @@ class CreateRedirectPoolsExtendConfig:
|
|
31
32
|
'insert_headers_config': 'insert_headers_config',
|
32
33
|
'remove_headers_config': 'remove_headers_config',
|
33
34
|
'traffic_limit_config': 'traffic_limit_config',
|
34
|
-
'cors_config': 'cors_config'
|
35
|
+
'cors_config': 'cors_config',
|
36
|
+
'traffic_mirror_config': 'traffic_mirror_config'
|
35
37
|
}
|
36
38
|
|
37
|
-
def __init__(self, rewrite_url_enable=None, rewrite_url_config=None, insert_headers_config=None, remove_headers_config=None, traffic_limit_config=None, cors_config=None):
|
39
|
+
def __init__(self, rewrite_url_enable=None, rewrite_url_config=None, insert_headers_config=None, remove_headers_config=None, traffic_limit_config=None, cors_config=None, traffic_mirror_config=None):
|
38
40
|
r"""CreateRedirectPoolsExtendConfig
|
39
41
|
|
40
42
|
The model defined in huaweicloud sdk
|
@@ -51,6 +53,8 @@ class CreateRedirectPoolsExtendConfig:
|
|
51
53
|
:type traffic_limit_config: :class:`huaweicloudsdkelb.v3.CreateTrafficLimitConfig`
|
52
54
|
:param cors_config:
|
53
55
|
:type cors_config: :class:`huaweicloudsdkelb.v3.CreateCorsConfig`
|
56
|
+
:param traffic_mirror_config:
|
57
|
+
:type traffic_mirror_config: :class:`huaweicloudsdkelb.v3.CreateTrafficMirrorConfig`
|
54
58
|
"""
|
55
59
|
|
56
60
|
|
@@ -61,6 +65,7 @@ class CreateRedirectPoolsExtendConfig:
|
|
61
65
|
self._remove_headers_config = None
|
62
66
|
self._traffic_limit_config = None
|
63
67
|
self._cors_config = None
|
68
|
+
self._traffic_mirror_config = None
|
64
69
|
self.discriminator = None
|
65
70
|
|
66
71
|
if rewrite_url_enable is not None:
|
@@ -75,6 +80,8 @@ class CreateRedirectPoolsExtendConfig:
|
|
75
80
|
self.traffic_limit_config = traffic_limit_config
|
76
81
|
if cors_config is not None:
|
77
82
|
self.cors_config = cors_config
|
83
|
+
if traffic_mirror_config is not None:
|
84
|
+
self.traffic_mirror_config = traffic_mirror_config
|
78
85
|
|
79
86
|
@property
|
80
87
|
def rewrite_url_enable(self):
|
@@ -188,6 +195,24 @@ class CreateRedirectPoolsExtendConfig:
|
|
188
195
|
"""
|
189
196
|
self._cors_config = cors_config
|
190
197
|
|
198
|
+
@property
|
199
|
+
def traffic_mirror_config(self):
|
200
|
+
r"""Gets the traffic_mirror_config of this CreateRedirectPoolsExtendConfig.
|
201
|
+
|
202
|
+
:return: The traffic_mirror_config of this CreateRedirectPoolsExtendConfig.
|
203
|
+
:rtype: :class:`huaweicloudsdkelb.v3.CreateTrafficMirrorConfig`
|
204
|
+
"""
|
205
|
+
return self._traffic_mirror_config
|
206
|
+
|
207
|
+
@traffic_mirror_config.setter
|
208
|
+
def traffic_mirror_config(self, traffic_mirror_config):
|
209
|
+
r"""Sets the traffic_mirror_config of this CreateRedirectPoolsExtendConfig.
|
210
|
+
|
211
|
+
:param traffic_mirror_config: The traffic_mirror_config of this CreateRedirectPoolsExtendConfig.
|
212
|
+
:type traffic_mirror_config: :class:`huaweicloudsdkelb.v3.CreateTrafficMirrorConfig`
|
213
|
+
"""
|
214
|
+
self._traffic_mirror_config = traffic_mirror_config
|
215
|
+
|
191
216
|
def to_dict(self):
|
192
217
|
"""Returns the model properties as a dict"""
|
193
218
|
result = {}
|
@@ -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 CreateTrafficMirrorConfig:
|
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"""CreateTrafficMirrorConfig
|
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 CreateTrafficMirrorConfig.
|
54
|
+
|
55
|
+
流量镜像的目的后端服务器组ID。
|
56
|
+
|
57
|
+
:return: The target_ids of this CreateTrafficMirrorConfig.
|
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 CreateTrafficMirrorConfig.
|
65
|
+
|
66
|
+
流量镜像的目的后端服务器组ID。
|
67
|
+
|
68
|
+
:param target_ids: The target_ids of this CreateTrafficMirrorConfig.
|
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 CreateTrafficMirrorConfig.
|
76
|
+
|
77
|
+
镜像请求是否携带请求体,默认true。
|
78
|
+
|
79
|
+
:return: The mirror_request_body_enable of this CreateTrafficMirrorConfig.
|
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 CreateTrafficMirrorConfig.
|
87
|
+
|
88
|
+
镜像请求是否携带请求体,默认true。
|
89
|
+
|
90
|
+
:param mirror_request_body_enable: The mirror_request_body_enable of this CreateTrafficMirrorConfig.
|
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, CreateTrafficMirrorConfig):
|
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
|