huaweicloudsdkelb 3.1.154__py2.py3-none-any.whl → 3.1.156__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/v2/__init__.py +1 -0
- huaweicloudsdkelb/v2/model/__init__.py +1 -0
- huaweicloudsdkelb/v2/model/create_loadbalancer_req.py +28 -3
- huaweicloudsdkelb/v2/model/prepaid_create_option.py +201 -0
- huaweicloudsdkelb/v3/__init__.py +3 -1
- huaweicloudsdkelb/v3/elb_async_client.py +83 -0
- huaweicloudsdkelb/v3/elb_client.py +83 -0
- huaweicloudsdkelb/v3/model/__init__.py +3 -1
- huaweicloudsdkelb/v3/model/batch_member.py +6 -6
- huaweicloudsdkelb/v3/model/batch_update_member.py +6 -6
- huaweicloudsdkelb/v3/model/connection_drain.py +3 -3
- huaweicloudsdkelb/v3/model/create_listener_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_pool_option.py +9 -9
- huaweicloudsdkelb/v3/model/list_all_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_certificates_request.py +32 -3
- huaweicloudsdkelb/v3/model/list_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/local_port.py +231 -0
- huaweicloudsdkelb/v3/model/member.py +6 -6
- huaweicloudsdkelb/v3/model/member_info.py +6 -6
- huaweicloudsdkelb/v3/model/pool.py +3 -3
- huaweicloudsdkelb/v3/model/show_load_balancer_ports_request.py +259 -0
- huaweicloudsdkelb/v3/model/show_load_balancer_ports_response.py +145 -0
- huaweicloudsdkelb/v3/model/update_pool_option.py +3 -3
- huaweicloudsdkelb/v3/model/upgrade_v3_request_body.py +3 -28
- {huaweicloudsdkelb-3.1.154.dist-info → huaweicloudsdkelb-3.1.156.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.154.dist-info → huaweicloudsdkelb-3.1.156.dist-info}/RECORD +29 -26
- huaweicloudsdkelb/v3/model/upgrade_prepaid_option.py +0 -200
- {huaweicloudsdkelb-3.1.154.dist-info → huaweicloudsdkelb-3.1.156.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.154.dist-info → huaweicloudsdkelb-3.1.156.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.154.dist-info → huaweicloudsdkelb-3.1.156.dist-info}/top_level.txt +0 -0
huaweicloudsdkelb/v2/__init__.py
CHANGED
@@ -128,6 +128,7 @@ from huaweicloudsdkelb.v2.model.member_resp import MemberResp
|
|
128
128
|
from huaweicloudsdkelb.v2.model.members_in_status_resp import MembersInStatusResp
|
129
129
|
from huaweicloudsdkelb.v2.model.pool_resp import PoolResp
|
130
130
|
from huaweicloudsdkelb.v2.model.pools_in_status_resp import PoolsInStatusResp
|
131
|
+
from huaweicloudsdkelb.v2.model.prepaid_create_option import PrepaidCreateOption
|
131
132
|
from huaweicloudsdkelb.v2.model.public_ip_info import PublicIpInfo
|
132
133
|
from huaweicloudsdkelb.v2.model.resource_list import ResourceList
|
133
134
|
from huaweicloudsdkelb.v2.model.resource_tag import ResourceTag
|
@@ -126,6 +126,7 @@ from huaweicloudsdkelb.v2.model.member_resp import MemberResp
|
|
126
126
|
from huaweicloudsdkelb.v2.model.members_in_status_resp import MembersInStatusResp
|
127
127
|
from huaweicloudsdkelb.v2.model.pool_resp import PoolResp
|
128
128
|
from huaweicloudsdkelb.v2.model.pools_in_status_resp import PoolsInStatusResp
|
129
|
+
from huaweicloudsdkelb.v2.model.prepaid_create_option import PrepaidCreateOption
|
129
130
|
from huaweicloudsdkelb.v2.model.public_ip_info import PublicIpInfo
|
130
131
|
from huaweicloudsdkelb.v2.model.resource_list import ResourceList
|
131
132
|
from huaweicloudsdkelb.v2.model.resource_tag import ResourceTag
|
@@ -26,7 +26,8 @@ class CreateLoadbalancerReq:
|
|
26
26
|
'admin_state_up': 'bool',
|
27
27
|
'enterprise_project_id': 'str',
|
28
28
|
'protection_status': 'str',
|
29
|
-
'protection_reason': 'str'
|
29
|
+
'protection_reason': 'str',
|
30
|
+
'prepaid_options': 'PrepaidCreateOption'
|
30
31
|
}
|
31
32
|
|
32
33
|
attribute_map = {
|
@@ -39,10 +40,11 @@ class CreateLoadbalancerReq:
|
|
39
40
|
'admin_state_up': 'admin_state_up',
|
40
41
|
'enterprise_project_id': 'enterprise_project_id',
|
41
42
|
'protection_status': 'protection_status',
|
42
|
-
'protection_reason': 'protection_reason'
|
43
|
+
'protection_reason': 'protection_reason',
|
44
|
+
'prepaid_options': 'prepaid_options'
|
43
45
|
}
|
44
46
|
|
45
|
-
def __init__(self, tenant_id=None, name=None, description=None, vip_subnet_id=None, vip_address=None, provider=None, admin_state_up=None, enterprise_project_id=None, protection_status=None, protection_reason=None):
|
47
|
+
def __init__(self, tenant_id=None, name=None, description=None, vip_subnet_id=None, vip_address=None, provider=None, admin_state_up=None, enterprise_project_id=None, protection_status=None, protection_reason=None, prepaid_options=None):
|
46
48
|
r"""CreateLoadbalancerReq
|
47
49
|
|
48
50
|
The model defined in huaweicloud sdk
|
@@ -67,6 +69,8 @@ class CreateLoadbalancerReq:
|
|
67
69
|
:type protection_status: str
|
68
70
|
:param protection_reason: 设置保护的原因 >仅当protection_status为consoleProtection时有效。
|
69
71
|
:type protection_reason: str
|
72
|
+
:param prepaid_options:
|
73
|
+
:type prepaid_options: :class:`huaweicloudsdkelb.v2.PrepaidCreateOption`
|
70
74
|
"""
|
71
75
|
|
72
76
|
|
@@ -81,6 +85,7 @@ class CreateLoadbalancerReq:
|
|
81
85
|
self._enterprise_project_id = None
|
82
86
|
self._protection_status = None
|
83
87
|
self._protection_reason = None
|
88
|
+
self._prepaid_options = None
|
84
89
|
self.discriminator = None
|
85
90
|
|
86
91
|
if tenant_id is not None:
|
@@ -102,6 +107,8 @@ class CreateLoadbalancerReq:
|
|
102
107
|
self.protection_status = protection_status
|
103
108
|
if protection_reason is not None:
|
104
109
|
self.protection_reason = protection_reason
|
110
|
+
if prepaid_options is not None:
|
111
|
+
self.prepaid_options = prepaid_options
|
105
112
|
|
106
113
|
@property
|
107
114
|
def tenant_id(self):
|
@@ -323,6 +330,24 @@ class CreateLoadbalancerReq:
|
|
323
330
|
"""
|
324
331
|
self._protection_reason = protection_reason
|
325
332
|
|
333
|
+
@property
|
334
|
+
def prepaid_options(self):
|
335
|
+
r"""Gets the prepaid_options of this CreateLoadbalancerReq.
|
336
|
+
|
337
|
+
:return: The prepaid_options of this CreateLoadbalancerReq.
|
338
|
+
:rtype: :class:`huaweicloudsdkelb.v2.PrepaidCreateOption`
|
339
|
+
"""
|
340
|
+
return self._prepaid_options
|
341
|
+
|
342
|
+
@prepaid_options.setter
|
343
|
+
def prepaid_options(self, prepaid_options):
|
344
|
+
r"""Sets the prepaid_options of this CreateLoadbalancerReq.
|
345
|
+
|
346
|
+
:param prepaid_options: The prepaid_options of this CreateLoadbalancerReq.
|
347
|
+
:type prepaid_options: :class:`huaweicloudsdkelb.v2.PrepaidCreateOption`
|
348
|
+
"""
|
349
|
+
self._prepaid_options = prepaid_options
|
350
|
+
|
326
351
|
def to_dict(self):
|
327
352
|
"""Returns the model properties as a dict"""
|
328
353
|
result = {}
|
@@ -0,0 +1,201 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class PrepaidCreateOption:
|
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
|
+
'period_type': 'str',
|
21
|
+
'period_num': 'int',
|
22
|
+
'auto_renew': 'bool',
|
23
|
+
'auto_pay': 'bool'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'period_type': 'period_type',
|
28
|
+
'period_num': 'period_num',
|
29
|
+
'auto_renew': 'auto_renew',
|
30
|
+
'auto_pay': 'auto_pay'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, period_type=None, period_num=None, auto_renew=None, auto_pay=None):
|
34
|
+
r"""PrepaidCreateOption
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param period_type: 订购周期类型,当前支持包月和包年: month:月; year:年;
|
39
|
+
:type period_type: str
|
40
|
+
:param period_num: 订购周期数,取值会随运营策略变化。 period_type为month时,为[1,9], period_type为year时,为[1,3]
|
41
|
+
:type period_num: int
|
42
|
+
:param auto_renew: 是否自动续订; true:自动续订 false:不自动续订
|
43
|
+
:type auto_renew: bool
|
44
|
+
:param auto_pay: 下单订购后,是否自动从客户的账户中支付; true:自动支付; false:不自动支付。 自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。
|
45
|
+
:type auto_pay: bool
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._period_type = None
|
51
|
+
self._period_num = None
|
52
|
+
self._auto_renew = None
|
53
|
+
self._auto_pay = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.period_type = period_type
|
57
|
+
if period_num is not None:
|
58
|
+
self.period_num = period_num
|
59
|
+
if auto_renew is not None:
|
60
|
+
self.auto_renew = auto_renew
|
61
|
+
if auto_pay is not None:
|
62
|
+
self.auto_pay = auto_pay
|
63
|
+
|
64
|
+
@property
|
65
|
+
def period_type(self):
|
66
|
+
r"""Gets the period_type of this PrepaidCreateOption.
|
67
|
+
|
68
|
+
订购周期类型,当前支持包月和包年: month:月; year:年;
|
69
|
+
|
70
|
+
:return: The period_type of this PrepaidCreateOption.
|
71
|
+
:rtype: str
|
72
|
+
"""
|
73
|
+
return self._period_type
|
74
|
+
|
75
|
+
@period_type.setter
|
76
|
+
def period_type(self, period_type):
|
77
|
+
r"""Sets the period_type of this PrepaidCreateOption.
|
78
|
+
|
79
|
+
订购周期类型,当前支持包月和包年: month:月; year:年;
|
80
|
+
|
81
|
+
:param period_type: The period_type of this PrepaidCreateOption.
|
82
|
+
:type period_type: str
|
83
|
+
"""
|
84
|
+
self._period_type = period_type
|
85
|
+
|
86
|
+
@property
|
87
|
+
def period_num(self):
|
88
|
+
r"""Gets the period_num of this PrepaidCreateOption.
|
89
|
+
|
90
|
+
订购周期数,取值会随运营策略变化。 period_type为month时,为[1,9], period_type为year时,为[1,3]
|
91
|
+
|
92
|
+
:return: The period_num of this PrepaidCreateOption.
|
93
|
+
:rtype: int
|
94
|
+
"""
|
95
|
+
return self._period_num
|
96
|
+
|
97
|
+
@period_num.setter
|
98
|
+
def period_num(self, period_num):
|
99
|
+
r"""Sets the period_num of this PrepaidCreateOption.
|
100
|
+
|
101
|
+
订购周期数,取值会随运营策略变化。 period_type为month时,为[1,9], period_type为year时,为[1,3]
|
102
|
+
|
103
|
+
:param period_num: The period_num of this PrepaidCreateOption.
|
104
|
+
:type period_num: int
|
105
|
+
"""
|
106
|
+
self._period_num = period_num
|
107
|
+
|
108
|
+
@property
|
109
|
+
def auto_renew(self):
|
110
|
+
r"""Gets the auto_renew of this PrepaidCreateOption.
|
111
|
+
|
112
|
+
是否自动续订; true:自动续订 false:不自动续订
|
113
|
+
|
114
|
+
:return: The auto_renew of this PrepaidCreateOption.
|
115
|
+
:rtype: bool
|
116
|
+
"""
|
117
|
+
return self._auto_renew
|
118
|
+
|
119
|
+
@auto_renew.setter
|
120
|
+
def auto_renew(self, auto_renew):
|
121
|
+
r"""Sets the auto_renew of this PrepaidCreateOption.
|
122
|
+
|
123
|
+
是否自动续订; true:自动续订 false:不自动续订
|
124
|
+
|
125
|
+
:param auto_renew: The auto_renew of this PrepaidCreateOption.
|
126
|
+
:type auto_renew: bool
|
127
|
+
"""
|
128
|
+
self._auto_renew = auto_renew
|
129
|
+
|
130
|
+
@property
|
131
|
+
def auto_pay(self):
|
132
|
+
r"""Gets the auto_pay of this PrepaidCreateOption.
|
133
|
+
|
134
|
+
下单订购后,是否自动从客户的账户中支付; true:自动支付; false:不自动支付。 自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。
|
135
|
+
|
136
|
+
:return: The auto_pay of this PrepaidCreateOption.
|
137
|
+
:rtype: bool
|
138
|
+
"""
|
139
|
+
return self._auto_pay
|
140
|
+
|
141
|
+
@auto_pay.setter
|
142
|
+
def auto_pay(self, auto_pay):
|
143
|
+
r"""Sets the auto_pay of this PrepaidCreateOption.
|
144
|
+
|
145
|
+
下单订购后,是否自动从客户的账户中支付; true:自动支付; false:不自动支付。 自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。
|
146
|
+
|
147
|
+
:param auto_pay: The auto_pay of this PrepaidCreateOption.
|
148
|
+
:type auto_pay: bool
|
149
|
+
"""
|
150
|
+
self._auto_pay = auto_pay
|
151
|
+
|
152
|
+
def to_dict(self):
|
153
|
+
"""Returns the model properties as a dict"""
|
154
|
+
result = {}
|
155
|
+
|
156
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
157
|
+
value = getattr(self, attr)
|
158
|
+
if isinstance(value, list):
|
159
|
+
result[attr] = list(map(
|
160
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
161
|
+
value
|
162
|
+
))
|
163
|
+
elif hasattr(value, "to_dict"):
|
164
|
+
result[attr] = value.to_dict()
|
165
|
+
elif isinstance(value, dict):
|
166
|
+
result[attr] = dict(map(
|
167
|
+
lambda item: (item[0], item[1].to_dict())
|
168
|
+
if hasattr(item[1], "to_dict") else item,
|
169
|
+
value.items()
|
170
|
+
))
|
171
|
+
else:
|
172
|
+
if attr in self.sensitive_list:
|
173
|
+
result[attr] = "****"
|
174
|
+
else:
|
175
|
+
result[attr] = value
|
176
|
+
|
177
|
+
return result
|
178
|
+
|
179
|
+
def to_str(self):
|
180
|
+
"""Returns the string representation of the model"""
|
181
|
+
import simplejson as json
|
182
|
+
if six.PY2:
|
183
|
+
import sys
|
184
|
+
reload(sys)
|
185
|
+
sys.setdefaultencoding("utf-8")
|
186
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
187
|
+
|
188
|
+
def __repr__(self):
|
189
|
+
"""For `print`"""
|
190
|
+
return self.to_str()
|
191
|
+
|
192
|
+
def __eq__(self, other):
|
193
|
+
"""Returns true if both objects are equal"""
|
194
|
+
if not isinstance(other, PrepaidCreateOption):
|
195
|
+
return False
|
196
|
+
|
197
|
+
return self.__dict__ == other.__dict__
|
198
|
+
|
199
|
+
def __ne__(self, other):
|
200
|
+
"""Returns true if both objects are not equal"""
|
201
|
+
return not self == other
|
huaweicloudsdkelb/v3/__init__.py
CHANGED
@@ -249,6 +249,7 @@ from huaweicloudsdkelb.v3.model.load_balancer_status_policy import LoadBalancerS
|
|
249
249
|
from huaweicloudsdkelb.v3.model.load_balancer_status_pool import LoadBalancerStatusPool
|
250
250
|
from huaweicloudsdkelb.v3.model.load_balancer_status_result import LoadBalancerStatusResult
|
251
251
|
from huaweicloudsdkelb.v3.model.loadbalancer_feature import LoadbalancerFeature
|
252
|
+
from huaweicloudsdkelb.v3.model.local_port import LocalPort
|
252
253
|
from huaweicloudsdkelb.v3.model.logtank import Logtank
|
253
254
|
from huaweicloudsdkelb.v3.model.main_job import MainJob
|
254
255
|
from huaweicloudsdkelb.v3.model.master_slave_health_monitor import MasterSlaveHealthMonitor
|
@@ -317,6 +318,8 @@ from huaweicloudsdkelb.v3.model.show_l7_rule_request import ShowL7RuleRequest
|
|
317
318
|
from huaweicloudsdkelb.v3.model.show_l7_rule_response import ShowL7RuleResponse
|
318
319
|
from huaweicloudsdkelb.v3.model.show_listener_request import ShowListenerRequest
|
319
320
|
from huaweicloudsdkelb.v3.model.show_listener_response import ShowListenerResponse
|
321
|
+
from huaweicloudsdkelb.v3.model.show_load_balancer_ports_request import ShowLoadBalancerPortsRequest
|
322
|
+
from huaweicloudsdkelb.v3.model.show_load_balancer_ports_response import ShowLoadBalancerPortsResponse
|
320
323
|
from huaweicloudsdkelb.v3.model.show_load_balancer_request import ShowLoadBalancerRequest
|
321
324
|
from huaweicloudsdkelb.v3.model.show_load_balancer_response import ShowLoadBalancerResponse
|
322
325
|
from huaweicloudsdkelb.v3.model.show_load_balancer_status_request import ShowLoadBalancerStatusRequest
|
@@ -419,6 +422,5 @@ from huaweicloudsdkelb.v3.model.update_security_policy_response import UpdateSec
|
|
419
422
|
from huaweicloudsdkelb.v3.model.update_traffic_limit_config import UpdateTrafficLimitConfig
|
420
423
|
from huaweicloudsdkelb.v3.model.upgrade_loadbalancer_request import UpgradeLoadbalancerRequest
|
421
424
|
from huaweicloudsdkelb.v3.model.upgrade_loadbalancer_response import UpgradeLoadbalancerResponse
|
422
|
-
from huaweicloudsdkelb.v3.model.upgrade_prepaid_option import UpgradePrepaidOption
|
423
425
|
from huaweicloudsdkelb.v3.model.upgrade_v3_request_body import UpgradeV3RequestBody
|
424
426
|
|
@@ -2823,6 +2823,9 @@ class ElbAsyncClient(Client):
|
|
2823
2823
|
if 'protection_reason' in local_var_params:
|
2824
2824
|
query_params.append(('protection_reason', local_var_params['protection_reason']))
|
2825
2825
|
collection_formats['protection_reason'] = 'csv'
|
2826
|
+
if 'enterprise_project_id' in local_var_params:
|
2827
|
+
query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id']))
|
2828
|
+
collection_formats['enterprise_project_id'] = 'csv'
|
2826
2829
|
|
2827
2830
|
header_params = {}
|
2828
2831
|
|
@@ -5238,6 +5241,86 @@ class ElbAsyncClient(Client):
|
|
5238
5241
|
|
5239
5242
|
return http_info
|
5240
5243
|
|
5244
|
+
def show_load_balancer_ports_async(self, request):
|
5245
|
+
r"""查询负载均衡器占用的port列表
|
5246
|
+
|
5247
|
+
查询负载均衡器内部转发占用的port列表。
|
5248
|
+
|
5249
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5250
|
+
|
5251
|
+
|
5252
|
+
:param request: Request instance for ShowLoadBalancerPorts
|
5253
|
+
:type request: :class:`huaweicloudsdkelb.v3.ShowLoadBalancerPortsRequest`
|
5254
|
+
:rtype: :class:`huaweicloudsdkelb.v3.ShowLoadBalancerPortsResponse`
|
5255
|
+
"""
|
5256
|
+
http_info = self._show_load_balancer_ports_http_info(request)
|
5257
|
+
return self._call_api(**http_info)
|
5258
|
+
|
5259
|
+
def show_load_balancer_ports_async_invoker(self, request):
|
5260
|
+
http_info = self._show_load_balancer_ports_http_info(request)
|
5261
|
+
return AsyncInvoker(self, http_info)
|
5262
|
+
|
5263
|
+
def _show_load_balancer_ports_http_info(self, request):
|
5264
|
+
http_info = {
|
5265
|
+
"method": "GET",
|
5266
|
+
"resource_path": "/v3/{project_id}/elb/loadbalancers/{loadbalancer_id}/local-ports",
|
5267
|
+
"request_type": request.__class__.__name__,
|
5268
|
+
"response_type": "ShowLoadBalancerPortsResponse"
|
5269
|
+
}
|
5270
|
+
|
5271
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5272
|
+
|
5273
|
+
cname = None
|
5274
|
+
|
5275
|
+
collection_formats = {}
|
5276
|
+
|
5277
|
+
path_params = {}
|
5278
|
+
if 'loadbalancer_id' in local_var_params:
|
5279
|
+
path_params['loadbalancer_id'] = local_var_params['loadbalancer_id']
|
5280
|
+
|
5281
|
+
query_params = []
|
5282
|
+
if 'port_id' in local_var_params:
|
5283
|
+
query_params.append(('port_id', local_var_params['port_id']))
|
5284
|
+
collection_formats['port_id'] = 'multi'
|
5285
|
+
if 'ip_address' in local_var_params:
|
5286
|
+
query_params.append(('ip_address', local_var_params['ip_address']))
|
5287
|
+
collection_formats['ip_address'] = 'multi'
|
5288
|
+
if 'ipv6_address' in local_var_params:
|
5289
|
+
query_params.append(('ipv6_address', local_var_params['ipv6_address']))
|
5290
|
+
collection_formats['ipv6_address'] = 'multi'
|
5291
|
+
if 'type' in local_var_params:
|
5292
|
+
query_params.append(('type', local_var_params['type']))
|
5293
|
+
collection_formats['type'] = 'multi'
|
5294
|
+
if 'virsubnet_id' in local_var_params:
|
5295
|
+
query_params.append(('virsubnet_id', local_var_params['virsubnet_id']))
|
5296
|
+
collection_formats['virsubnet_id'] = 'multi'
|
5297
|
+
|
5298
|
+
header_params = {}
|
5299
|
+
|
5300
|
+
form_params = {}
|
5301
|
+
|
5302
|
+
body = None
|
5303
|
+
if isinstance(request, SdkStreamRequest):
|
5304
|
+
body = request.get_file_stream()
|
5305
|
+
|
5306
|
+
response_headers = []
|
5307
|
+
|
5308
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5309
|
+
['application/json'])
|
5310
|
+
|
5311
|
+
auth_settings = []
|
5312
|
+
|
5313
|
+
http_info["cname"] = cname
|
5314
|
+
http_info["collection_formats"] = collection_formats
|
5315
|
+
http_info["path_params"] = path_params
|
5316
|
+
http_info["query_params"] = query_params
|
5317
|
+
http_info["header_params"] = header_params
|
5318
|
+
http_info["post_params"] = form_params
|
5319
|
+
http_info["body"] = body
|
5320
|
+
http_info["response_headers"] = response_headers
|
5321
|
+
|
5322
|
+
return http_info
|
5323
|
+
|
5241
5324
|
def show_load_balancer_status_async(self, request):
|
5242
5325
|
r"""查询负载均衡器状态树
|
5243
5326
|
|
@@ -2823,6 +2823,9 @@ class ElbClient(Client):
|
|
2823
2823
|
if 'protection_reason' in local_var_params:
|
2824
2824
|
query_params.append(('protection_reason', local_var_params['protection_reason']))
|
2825
2825
|
collection_formats['protection_reason'] = 'csv'
|
2826
|
+
if 'enterprise_project_id' in local_var_params:
|
2827
|
+
query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id']))
|
2828
|
+
collection_formats['enterprise_project_id'] = 'csv'
|
2826
2829
|
|
2827
2830
|
header_params = {}
|
2828
2831
|
|
@@ -5238,6 +5241,86 @@ class ElbClient(Client):
|
|
5238
5241
|
|
5239
5242
|
return http_info
|
5240
5243
|
|
5244
|
+
def show_load_balancer_ports(self, request):
|
5245
|
+
r"""查询负载均衡器占用的port列表
|
5246
|
+
|
5247
|
+
查询负载均衡器内部转发占用的port列表。
|
5248
|
+
|
5249
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5250
|
+
|
5251
|
+
:param request: Request instance for ShowLoadBalancerPorts
|
5252
|
+
:type request: :class:`huaweicloudsdkelb.v3.ShowLoadBalancerPortsRequest`
|
5253
|
+
:rtype: :class:`huaweicloudsdkelb.v3.ShowLoadBalancerPortsResponse`
|
5254
|
+
"""
|
5255
|
+
http_info = self._show_load_balancer_ports_http_info(request)
|
5256
|
+
return self._call_api(**http_info)
|
5257
|
+
|
5258
|
+
def show_load_balancer_ports_invoker(self, request):
|
5259
|
+
http_info = self._show_load_balancer_ports_http_info(request)
|
5260
|
+
return SyncInvoker(self, http_info)
|
5261
|
+
|
5262
|
+
@classmethod
|
5263
|
+
def _show_load_balancer_ports_http_info(cls, request):
|
5264
|
+
http_info = {
|
5265
|
+
"method": "GET",
|
5266
|
+
"resource_path": "/v3/{project_id}/elb/loadbalancers/{loadbalancer_id}/local-ports",
|
5267
|
+
"request_type": request.__class__.__name__,
|
5268
|
+
"response_type": "ShowLoadBalancerPortsResponse"
|
5269
|
+
}
|
5270
|
+
|
5271
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5272
|
+
|
5273
|
+
cname = None
|
5274
|
+
|
5275
|
+
collection_formats = {}
|
5276
|
+
|
5277
|
+
path_params = {}
|
5278
|
+
if 'loadbalancer_id' in local_var_params:
|
5279
|
+
path_params['loadbalancer_id'] = local_var_params['loadbalancer_id']
|
5280
|
+
|
5281
|
+
query_params = []
|
5282
|
+
if 'port_id' in local_var_params:
|
5283
|
+
query_params.append(('port_id', local_var_params['port_id']))
|
5284
|
+
collection_formats['port_id'] = 'multi'
|
5285
|
+
if 'ip_address' in local_var_params:
|
5286
|
+
query_params.append(('ip_address', local_var_params['ip_address']))
|
5287
|
+
collection_formats['ip_address'] = 'multi'
|
5288
|
+
if 'ipv6_address' in local_var_params:
|
5289
|
+
query_params.append(('ipv6_address', local_var_params['ipv6_address']))
|
5290
|
+
collection_formats['ipv6_address'] = 'multi'
|
5291
|
+
if 'type' in local_var_params:
|
5292
|
+
query_params.append(('type', local_var_params['type']))
|
5293
|
+
collection_formats['type'] = 'multi'
|
5294
|
+
if 'virsubnet_id' in local_var_params:
|
5295
|
+
query_params.append(('virsubnet_id', local_var_params['virsubnet_id']))
|
5296
|
+
collection_formats['virsubnet_id'] = 'multi'
|
5297
|
+
|
5298
|
+
header_params = {}
|
5299
|
+
|
5300
|
+
form_params = {}
|
5301
|
+
|
5302
|
+
body = None
|
5303
|
+
if isinstance(request, SdkStreamRequest):
|
5304
|
+
body = request.get_file_stream()
|
5305
|
+
|
5306
|
+
response_headers = []
|
5307
|
+
|
5308
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5309
|
+
['application/json'])
|
5310
|
+
|
5311
|
+
auth_settings = []
|
5312
|
+
|
5313
|
+
http_info["cname"] = cname
|
5314
|
+
http_info["collection_formats"] = collection_formats
|
5315
|
+
http_info["path_params"] = path_params
|
5316
|
+
http_info["query_params"] = query_params
|
5317
|
+
http_info["header_params"] = header_params
|
5318
|
+
http_info["post_params"] = form_params
|
5319
|
+
http_info["body"] = body
|
5320
|
+
http_info["response_headers"] = response_headers
|
5321
|
+
|
5322
|
+
return http_info
|
5323
|
+
|
5241
5324
|
def show_load_balancer_status(self, request):
|
5242
5325
|
r"""查询负载均衡器状态树
|
5243
5326
|
|
@@ -247,6 +247,7 @@ from huaweicloudsdkelb.v3.model.load_balancer_status_policy import LoadBalancerS
|
|
247
247
|
from huaweicloudsdkelb.v3.model.load_balancer_status_pool import LoadBalancerStatusPool
|
248
248
|
from huaweicloudsdkelb.v3.model.load_balancer_status_result import LoadBalancerStatusResult
|
249
249
|
from huaweicloudsdkelb.v3.model.loadbalancer_feature import LoadbalancerFeature
|
250
|
+
from huaweicloudsdkelb.v3.model.local_port import LocalPort
|
250
251
|
from huaweicloudsdkelb.v3.model.logtank import Logtank
|
251
252
|
from huaweicloudsdkelb.v3.model.main_job import MainJob
|
252
253
|
from huaweicloudsdkelb.v3.model.master_slave_health_monitor import MasterSlaveHealthMonitor
|
@@ -315,6 +316,8 @@ from huaweicloudsdkelb.v3.model.show_l7_rule_request import ShowL7RuleRequest
|
|
315
316
|
from huaweicloudsdkelb.v3.model.show_l7_rule_response import ShowL7RuleResponse
|
316
317
|
from huaweicloudsdkelb.v3.model.show_listener_request import ShowListenerRequest
|
317
318
|
from huaweicloudsdkelb.v3.model.show_listener_response import ShowListenerResponse
|
319
|
+
from huaweicloudsdkelb.v3.model.show_load_balancer_ports_request import ShowLoadBalancerPortsRequest
|
320
|
+
from huaweicloudsdkelb.v3.model.show_load_balancer_ports_response import ShowLoadBalancerPortsResponse
|
318
321
|
from huaweicloudsdkelb.v3.model.show_load_balancer_request import ShowLoadBalancerRequest
|
319
322
|
from huaweicloudsdkelb.v3.model.show_load_balancer_response import ShowLoadBalancerResponse
|
320
323
|
from huaweicloudsdkelb.v3.model.show_load_balancer_status_request import ShowLoadBalancerStatusRequest
|
@@ -417,5 +420,4 @@ from huaweicloudsdkelb.v3.model.update_security_policy_response import UpdateSec
|
|
417
420
|
from huaweicloudsdkelb.v3.model.update_traffic_limit_config import UpdateTrafficLimitConfig
|
418
421
|
from huaweicloudsdkelb.v3.model.upgrade_loadbalancer_request import UpgradeLoadbalancerRequest
|
419
422
|
from huaweicloudsdkelb.v3.model.upgrade_loadbalancer_response import UpgradeLoadbalancerResponse
|
420
|
-
from huaweicloudsdkelb.v3.model.upgrade_prepaid_option import UpgradePrepaidOption
|
421
423
|
from huaweicloudsdkelb.v3.model.upgrade_v3_request_body import UpgradeV3RequestBody
|
@@ -77,11 +77,11 @@ class BatchMember:
|
|
77
77
|
:type weight: int
|
78
78
|
:param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为**私网IPv4**地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址必须在subnet_cidr_id对应的子网网段中,可以是**私网IPv4**或IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt)
|
79
79
|
:type address: str
|
80
|
-
:param operating_status: 后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
80
|
+
:param operating_status: 后端服务器的健康状态。 取值: - INITIAL:初始化中,表示负载均衡实例配置了健康检查,但查不到数据。 - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
81
81
|
:type operating_status: str
|
82
82
|
:param reason:
|
83
83
|
:type reason: :class:`huaweicloudsdkelb.v3.MemberHealthCheckFailedReason`
|
84
|
-
:param status: 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的
|
84
|
+
:param status: 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_status为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
85
85
|
:type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
86
86
|
:param member_type: 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
|
87
87
|
:type member_type: str
|
@@ -323,7 +323,7 @@ class BatchMember:
|
|
323
323
|
def operating_status(self):
|
324
324
|
r"""Gets the operating_status of this BatchMember.
|
325
325
|
|
326
|
-
后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
326
|
+
后端服务器的健康状态。 取值: - INITIAL:初始化中,表示负载均衡实例配置了健康检查,但查不到数据。 - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
327
327
|
|
328
328
|
:return: The operating_status of this BatchMember.
|
329
329
|
:rtype: str
|
@@ -334,7 +334,7 @@ class BatchMember:
|
|
334
334
|
def operating_status(self, operating_status):
|
335
335
|
r"""Sets the operating_status of this BatchMember.
|
336
336
|
|
337
|
-
后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
337
|
+
后端服务器的健康状态。 取值: - INITIAL:初始化中,表示负载均衡实例配置了健康检查,但查不到数据。 - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
338
338
|
|
339
339
|
:param operating_status: The operating_status of this BatchMember.
|
340
340
|
:type operating_status: str
|
@@ -363,7 +363,7 @@ class BatchMember:
|
|
363
363
|
def status(self):
|
364
364
|
r"""Gets the status of this BatchMember.
|
365
365
|
|
366
|
-
后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的
|
366
|
+
后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_status为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
367
367
|
|
368
368
|
:return: The status of this BatchMember.
|
369
369
|
:rtype: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
@@ -374,7 +374,7 @@ class BatchMember:
|
|
374
374
|
def status(self, status):
|
375
375
|
r"""Sets the status of this BatchMember.
|
376
376
|
|
377
|
-
后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的
|
377
|
+
后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_status为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
378
378
|
|
379
379
|
:param status: The status of this BatchMember.
|
380
380
|
:type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
@@ -77,11 +77,11 @@ class BatchUpdateMember:
|
|
77
77
|
:type weight: int
|
78
78
|
:param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为**私网IPv4**地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址必须在subnet_cidr_id对应的子网网段中,可以是**私网IPv4**或IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt)
|
79
79
|
:type address: str
|
80
|
-
:param operating_status: 后端服务器的健康状态。取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
80
|
+
:param operating_status: 后端服务器的健康状态。取值: - INITIAL:初始化中,表示负载均衡实例配置了健康检查,但查不到数据。 - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
81
81
|
:type operating_status: str
|
82
82
|
:param reason:
|
83
83
|
:type reason: :class:`huaweicloudsdkelb.v3.MemberHealthCheckFailedReason`
|
84
|
-
:param status: 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的
|
84
|
+
:param status: 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_status为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
85
85
|
:type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
86
86
|
:param member_type: 后端服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
|
87
87
|
:type member_type: str
|
@@ -324,7 +324,7 @@ class BatchUpdateMember:
|
|
324
324
|
def operating_status(self):
|
325
325
|
r"""Gets the operating_status of this BatchUpdateMember.
|
326
326
|
|
327
|
-
后端服务器的健康状态。取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
327
|
+
后端服务器的健康状态。取值: - INITIAL:初始化中,表示负载均衡实例配置了健康检查,但查不到数据。 - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
328
328
|
|
329
329
|
:return: The operating_status of this BatchUpdateMember.
|
330
330
|
:rtype: str
|
@@ -335,7 +335,7 @@ class BatchUpdateMember:
|
|
335
335
|
def operating_status(self, operating_status):
|
336
336
|
r"""Sets the operating_status of this BatchUpdateMember.
|
337
337
|
|
338
|
-
后端服务器的健康状态。取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
338
|
+
后端服务器的健康状态。取值: - INITIAL:初始化中,表示负载均衡实例配置了健康检查,但查不到数据。 - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
339
339
|
|
340
340
|
:param operating_status: The operating_status of this BatchUpdateMember.
|
341
341
|
:type operating_status: str
|
@@ -364,7 +364,7 @@ class BatchUpdateMember:
|
|
364
364
|
def status(self):
|
365
365
|
r"""Gets the status of this BatchUpdateMember.
|
366
366
|
|
367
|
-
后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的
|
367
|
+
后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_status为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
368
368
|
|
369
369
|
:return: The status of this BatchUpdateMember.
|
370
370
|
:rtype: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
@@ -375,7 +375,7 @@ class BatchUpdateMember:
|
|
375
375
|
def status(self, status):
|
376
376
|
r"""Sets the status of this BatchUpdateMember.
|
377
377
|
|
378
|
-
后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的
|
378
|
+
后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_status为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
379
379
|
|
380
380
|
:param status: The status of this BatchUpdateMember.
|
381
381
|
:type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
@@ -31,7 +31,7 @@ class ConnectionDrain:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param enable: 参数解释:延迟注销功能开关。 取值范围:true 开启,false 关闭。
|
34
|
+
:param enable: 参数解释:延迟注销功能开关。 取值范围:true 开启,false 关闭。
|
35
35
|
:type enable: bool
|
36
36
|
:param timeout: 参数解释:延迟注销时间。 取值范围:10~4000,单位:秒。
|
37
37
|
:type timeout: int
|
@@ -52,7 +52,7 @@ class ConnectionDrain:
|
|
52
52
|
def enable(self):
|
53
53
|
r"""Gets the enable of this ConnectionDrain.
|
54
54
|
|
55
|
-
参数解释:延迟注销功能开关。 取值范围:true 开启,false 关闭。
|
55
|
+
参数解释:延迟注销功能开关。 取值范围:true 开启,false 关闭。
|
56
56
|
|
57
57
|
:return: The enable of this ConnectionDrain.
|
58
58
|
:rtype: bool
|
@@ -63,7 +63,7 @@ class ConnectionDrain:
|
|
63
63
|
def enable(self, enable):
|
64
64
|
r"""Sets the enable of this ConnectionDrain.
|
65
65
|
|
66
|
-
参数解释:延迟注销功能开关。 取值范围:true 开启,false 关闭。
|
66
|
+
参数解释:延迟注销功能开关。 取值范围:true 开启,false 关闭。
|
67
67
|
|
68
68
|
:param enable: The enable of this ConnectionDrain.
|
69
69
|
:type enable: bool
|