huaweicloudsdkelb 3.1.132__py2.py3-none-any.whl → 3.1.134__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkelb/v3/__init__.py +39 -0
- huaweicloudsdkelb/v3/elb_async_client.py +742 -22
- huaweicloudsdkelb/v3/elb_client.py +742 -22
- huaweicloudsdkelb/v3/model/__init__.py +39 -0
- huaweicloudsdkelb/v3/model/availability_zone.py +6 -6
- huaweicloudsdkelb/v3/model/base_job.py +347 -0
- huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
- huaweicloudsdkelb/v3/model/batch_create_load_balancer_option.py +1022 -0
- huaweicloudsdkelb/v3/model/batch_create_load_balancers_request.py +111 -0
- huaweicloudsdkelb/v3/model/batch_create_load_balancers_request_body.py +110 -0
- huaweicloudsdkelb/v3/model/batch_create_load_balancers_response.py +203 -0
- huaweicloudsdkelb/v3/model/batch_member.py +38 -13
- huaweicloudsdkelb/v3/model/batch_update_member.py +32 -7
- huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +3 -3
- huaweicloudsdkelb/v3/model/certificate_info.py +39 -10
- huaweicloudsdkelb/v3/model/clone_loadbalancer_request.py +139 -0
- huaweicloudsdkelb/v3/model/clone_loadbalancer_request_body.py +139 -0
- huaweicloudsdkelb/v3/model/clone_loadbalancer_response.py +174 -0
- huaweicloudsdkelb/v3/model/clone_loadbalancer_response_body_loadbalancer_list.py +115 -0
- huaweicloudsdkelb/v3/model/cors_config.py +260 -0
- huaweicloudsdkelb/v3/model/count_preoccupy_ip_num_request.py +73 -15
- huaweicloudsdkelb/v3/model/create_certificate_option.py +35 -6
- huaweicloudsdkelb/v3/model/create_cors_config.py +260 -0
- huaweicloudsdkelb/v3/model/create_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_l7_policy_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_listener_option.py +126 -39
- huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_load_balancer_option.py +36 -36
- huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_load_balancer_response.py +6 -6
- huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +2 -1
- huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +31 -6
- huaweicloudsdkelb/v3/model/create_member_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_pool_option.py +46 -21
- huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/create_redirect_url_config.py +3 -3
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_option.py +144 -0
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_request.py +139 -0
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_request_body.py +110 -0
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_response.py +85 -0
- huaweicloudsdkelb/v3/model/delete_pool_cascade_request.py +114 -0
- huaweicloudsdkelb/v3/model/delete_pool_cascade_response.py +85 -0
- huaweicloudsdkelb/v3/model/feature_config.py +394 -0
- huaweicloudsdkelb/v3/model/flavor.py +9 -9
- huaweicloudsdkelb/v3/model/global_eip_info.py +3 -3
- huaweicloudsdkelb/v3/model/health_monitor.py +9 -9
- huaweicloudsdkelb/v3/model/job_entities.py +144 -0
- huaweicloudsdkelb/v3/model/l7_policy.py +44 -15
- huaweicloudsdkelb/v3/model/l7_rule.py +9 -9
- huaweicloudsdkelb/v3/model/list_all_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_availability_zones_request.py +35 -6
- huaweicloudsdkelb/v3/model/list_certificates_request.py +30 -1
- huaweicloudsdkelb/v3/model/list_feature_configs_request.py +115 -0
- huaweicloudsdkelb/v3/model/list_feature_configs_response.py +170 -0
- huaweicloudsdkelb/v3/model/list_flavors_request.py +119 -3
- huaweicloudsdkelb/v3/model/list_health_monitors_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_ip_groups_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_jobs_request.py +260 -0
- huaweicloudsdkelb/v3/model/list_jobs_response.py +145 -0
- huaweicloudsdkelb/v3/model/list_l7_policies_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_l7_rules_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_listeners_request.py +79 -21
- huaweicloudsdkelb/v3/model/list_load_balancers_request.py +15 -15
- huaweicloudsdkelb/v3/model/list_loadbalancer_feature_request.py +114 -0
- huaweicloudsdkelb/v3/model/list_loadbalancer_feature_response.py +145 -0
- huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_pools_request.py +67 -9
- huaweicloudsdkelb/v3/model/list_quota_details_request.py +3 -3
- huaweicloudsdkelb/v3/model/listener.py +154 -39
- huaweicloudsdkelb/v3/model/load_balancer.py +21 -21
- huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
- huaweicloudsdkelb/v3/model/loadbalancer_feature.py +170 -0
- huaweicloudsdkelb/v3/model/main_job.py +376 -0
- huaweicloudsdkelb/v3/model/master_slave_member.py +26 -1
- huaweicloudsdkelb/v3/model/master_slave_pool.py +37 -12
- huaweicloudsdkelb/v3/model/member.py +32 -7
- huaweicloudsdkelb/v3/model/member_health_check_failed_reason.py +170 -0
- huaweicloudsdkelb/v3/model/member_info.py +34 -9
- huaweicloudsdkelb/v3/model/member_status.py +28 -3
- huaweicloudsdkelb/v3/model/pool.py +43 -18
- huaweicloudsdkelb/v3/model/quic_cid_hash_strategy.py +142 -0
- huaweicloudsdkelb/v3/model/quota.py +87 -3
- huaweicloudsdkelb/v3/model/quota_info.py +3 -3
- huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/session_persistence.py +6 -6
- huaweicloudsdkelb/v3/model/show_ip_group_related_listeners_request.py +114 -0
- huaweicloudsdkelb/v3/model/show_ip_group_related_listeners_response.py +116 -0
- huaweicloudsdkelb/v3/model/show_job_request.py +114 -0
- huaweicloudsdkelb/v3/model/show_job_response.py +141 -0
- huaweicloudsdkelb/v3/model/sub_job.py +376 -0
- huaweicloudsdkelb/v3/model/target_loadbalancer_param.py +434 -0
- huaweicloudsdkelb/v3/model/update_certificate_option.py +35 -6
- huaweicloudsdkelb/v3/model/update_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_l7_policy_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_listener_option.py +120 -33
- huaweicloudsdkelb/v3/model/update_load_balancer_option.py +15 -15
- huaweicloudsdkelb/v3/model/update_load_balancer_response.py +6 -6
- huaweicloudsdkelb/v3/model/update_pool_option.py +31 -6
- huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/upgrade_loadbalancer_request.py +139 -0
- huaweicloudsdkelb/v3/model/upgrade_loadbalancer_response.py +145 -0
- huaweicloudsdkelb/v3/model/upgrade_prepaid_option.py +200 -0
- huaweicloudsdkelb/v3/model/upgrade_v3_request_body.py +313 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.134.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.134.dist-info}/RECORD +112 -73
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.134.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.134.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.134.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,200 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpgradePrepaidOption:
|
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
|
+
'resource_package_type': 'list[str]',
|
23
|
+
'auto_pay': 'bool'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'period_type': 'period_type',
|
28
|
+
'period_num': 'period_num',
|
29
|
+
'resource_package_type': 'resource_package_type',
|
30
|
+
'auto_pay': 'auto_pay'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, period_type=None, period_num=None, resource_package_type=None, auto_pay=None):
|
34
|
+
"""UpgradePrepaidOption
|
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 resource_package_type: 参数解释:购买定向套餐包。
|
43
|
+
:type resource_package_type: list[str]
|
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._resource_package_type = 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
|
+
self.resource_package_type = resource_package_type
|
60
|
+
if auto_pay is not None:
|
61
|
+
self.auto_pay = auto_pay
|
62
|
+
|
63
|
+
@property
|
64
|
+
def period_type(self):
|
65
|
+
"""Gets the period_type of this UpgradePrepaidOption.
|
66
|
+
|
67
|
+
参数解释:预付费实例的订购周期类型,当前支持月和年。 取值范围: - month:月。 - year:年。
|
68
|
+
|
69
|
+
:return: The period_type of this UpgradePrepaidOption.
|
70
|
+
:rtype: str
|
71
|
+
"""
|
72
|
+
return self._period_type
|
73
|
+
|
74
|
+
@period_type.setter
|
75
|
+
def period_type(self, period_type):
|
76
|
+
"""Sets the period_type of this UpgradePrepaidOption.
|
77
|
+
|
78
|
+
参数解释:预付费实例的订购周期类型,当前支持月和年。 取值范围: - month:月。 - year:年。
|
79
|
+
|
80
|
+
:param period_type: The period_type of this UpgradePrepaidOption.
|
81
|
+
:type period_type: str
|
82
|
+
"""
|
83
|
+
self._period_type = period_type
|
84
|
+
|
85
|
+
@property
|
86
|
+
def period_num(self):
|
87
|
+
"""Gets the period_num of this UpgradePrepaidOption.
|
88
|
+
|
89
|
+
参数解释:预付费实例的订购周期数。 取值范围: - period_type为month时,为[1,9]。 - period_type为year时,为[1,3]。
|
90
|
+
|
91
|
+
:return: The period_num of this UpgradePrepaidOption.
|
92
|
+
:rtype: int
|
93
|
+
"""
|
94
|
+
return self._period_num
|
95
|
+
|
96
|
+
@period_num.setter
|
97
|
+
def period_num(self, period_num):
|
98
|
+
"""Sets the period_num of this UpgradePrepaidOption.
|
99
|
+
|
100
|
+
参数解释:预付费实例的订购周期数。 取值范围: - period_type为month时,为[1,9]。 - period_type为year时,为[1,3]。
|
101
|
+
|
102
|
+
:param period_num: The period_num of this UpgradePrepaidOption.
|
103
|
+
:type period_num: int
|
104
|
+
"""
|
105
|
+
self._period_num = period_num
|
106
|
+
|
107
|
+
@property
|
108
|
+
def resource_package_type(self):
|
109
|
+
"""Gets the resource_package_type of this UpgradePrepaidOption.
|
110
|
+
|
111
|
+
参数解释:购买定向套餐包。
|
112
|
+
|
113
|
+
:return: The resource_package_type of this UpgradePrepaidOption.
|
114
|
+
:rtype: list[str]
|
115
|
+
"""
|
116
|
+
return self._resource_package_type
|
117
|
+
|
118
|
+
@resource_package_type.setter
|
119
|
+
def resource_package_type(self, resource_package_type):
|
120
|
+
"""Sets the resource_package_type of this UpgradePrepaidOption.
|
121
|
+
|
122
|
+
参数解释:购买定向套餐包。
|
123
|
+
|
124
|
+
:param resource_package_type: The resource_package_type of this UpgradePrepaidOption.
|
125
|
+
:type resource_package_type: list[str]
|
126
|
+
"""
|
127
|
+
self._resource_package_type = resource_package_type
|
128
|
+
|
129
|
+
@property
|
130
|
+
def auto_pay(self):
|
131
|
+
"""Gets the auto_pay of this UpgradePrepaidOption.
|
132
|
+
|
133
|
+
参数解释:自动支付开关。下单订购后,是否自动从客户的账户中支付。 约束限制:开启自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择关闭自动支付,然后在用户费用中心,选择代金券支付。 取值范围: - true:开启自动支付。 - false:关闭自动支付。
|
134
|
+
|
135
|
+
:return: The auto_pay of this UpgradePrepaidOption.
|
136
|
+
:rtype: bool
|
137
|
+
"""
|
138
|
+
return self._auto_pay
|
139
|
+
|
140
|
+
@auto_pay.setter
|
141
|
+
def auto_pay(self, auto_pay):
|
142
|
+
"""Sets the auto_pay of this UpgradePrepaidOption.
|
143
|
+
|
144
|
+
参数解释:自动支付开关。下单订购后,是否自动从客户的账户中支付。 约束限制:开启自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择关闭自动支付,然后在用户费用中心,选择代金券支付。 取值范围: - true:开启自动支付。 - false:关闭自动支付。
|
145
|
+
|
146
|
+
:param auto_pay: The auto_pay of this UpgradePrepaidOption.
|
147
|
+
:type auto_pay: bool
|
148
|
+
"""
|
149
|
+
self._auto_pay = auto_pay
|
150
|
+
|
151
|
+
def to_dict(self):
|
152
|
+
"""Returns the model properties as a dict"""
|
153
|
+
result = {}
|
154
|
+
|
155
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
156
|
+
value = getattr(self, attr)
|
157
|
+
if isinstance(value, list):
|
158
|
+
result[attr] = list(map(
|
159
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
160
|
+
value
|
161
|
+
))
|
162
|
+
elif hasattr(value, "to_dict"):
|
163
|
+
result[attr] = value.to_dict()
|
164
|
+
elif isinstance(value, dict):
|
165
|
+
result[attr] = dict(map(
|
166
|
+
lambda item: (item[0], item[1].to_dict())
|
167
|
+
if hasattr(item[1], "to_dict") else item,
|
168
|
+
value.items()
|
169
|
+
))
|
170
|
+
else:
|
171
|
+
if attr in self.sensitive_list:
|
172
|
+
result[attr] = "****"
|
173
|
+
else:
|
174
|
+
result[attr] = value
|
175
|
+
|
176
|
+
return result
|
177
|
+
|
178
|
+
def to_str(self):
|
179
|
+
"""Returns the string representation of the model"""
|
180
|
+
import simplejson as json
|
181
|
+
if six.PY2:
|
182
|
+
import sys
|
183
|
+
reload(sys)
|
184
|
+
sys.setdefaultencoding("utf-8")
|
185
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
186
|
+
|
187
|
+
def __repr__(self):
|
188
|
+
"""For `print`"""
|
189
|
+
return self.to_str()
|
190
|
+
|
191
|
+
def __eq__(self, other):
|
192
|
+
"""Returns true if both objects are equal"""
|
193
|
+
if not isinstance(other, UpgradePrepaidOption):
|
194
|
+
return False
|
195
|
+
|
196
|
+
return self.__dict__ == other.__dict__
|
197
|
+
|
198
|
+
def __ne__(self, other):
|
199
|
+
"""Returns true if both objects are not equal"""
|
200
|
+
return not self == other
|
@@ -0,0 +1,313 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpgradeV3RequestBody:
|
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
|
+
'action': 'str',
|
21
|
+
'l4_flavor_id': 'str',
|
22
|
+
'l7_flavor_id': 'str',
|
23
|
+
'availability_zone_list': 'list[str]',
|
24
|
+
'ipv6_vip_virsubnet_id': 'str',
|
25
|
+
'ipv6_vip_address': 'str',
|
26
|
+
'elb_virsubnet_ids': 'list[str]',
|
27
|
+
'prepaid_options': 'UpgradePrepaidOption'
|
28
|
+
}
|
29
|
+
|
30
|
+
attribute_map = {
|
31
|
+
'action': 'action',
|
32
|
+
'l4_flavor_id': 'l4_flavor_id',
|
33
|
+
'l7_flavor_id': 'l7_flavor_id',
|
34
|
+
'availability_zone_list': 'availability_zone_list',
|
35
|
+
'ipv6_vip_virsubnet_id': 'ipv6_vip_virsubnet_id',
|
36
|
+
'ipv6_vip_address': 'ipv6_vip_address',
|
37
|
+
'elb_virsubnet_ids': 'elb_virsubnet_ids',
|
38
|
+
'prepaid_options': 'prepaid_options'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, action=None, l4_flavor_id=None, l7_flavor_id=None, availability_zone_list=None, ipv6_vip_virsubnet_id=None, ipv6_vip_address=None, elb_virsubnet_ids=None, prepaid_options=None):
|
42
|
+
"""UpgradeV3RequestBody
|
43
|
+
|
44
|
+
The model defined in huaweicloud sdk
|
45
|
+
|
46
|
+
:param action: 升级操作: - start:开始升级,仅负载均衡器的provisioning_status为ACTIVE时支持。 - complete:升级完成确认,仅实例的provision_status为UPGRADED时支持。确认后,实例无法再执行回退。 - rollback:回滚,仅实例的provision_status为UPGRADED,UPGRADE_FAILED,ROLLBACK_FAILED时支持。
|
47
|
+
:type action: str
|
48
|
+
:param l4_flavor_id: 四层规格ID。仅action为start时生效。 负载均衡器有四层监听器时该字段必须指定。 l4_flavor_id和l7_flavor_id不能同时为空。
|
49
|
+
:type l4_flavor_id: str
|
50
|
+
:param l7_flavor_id: 七层规格ID。仅action为start时生效。 负载均衡器有七层监听器时该字段必须指定。 l4_flavor_id和l7_flavor_id不能同时为空。
|
51
|
+
:type l7_flavor_id: str
|
52
|
+
:param availability_zone_list: 可用区列表。仅在action为start时生效。且action为start时,该字段必传 可通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/availability-zones 接口来查询可用区集合列表。创建负载均衡器时,从查询结果选择某一个可用区集合,并从中选择一个或多个可用区。
|
53
|
+
:type availability_zone_list: list[str]
|
54
|
+
:param ipv6_vip_virsubnet_id: 双栈类型负载均衡器所在子网的IPv6网络ID。 若实例升级到独享型后期望使用IPv6功能,则升级时该字段必传。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的id得到。 使用说明: ipv6_vip_virsubnet_id需要属于原共享型实例所属VPC。 ipv6_vip_virsubnet_id所属子网需要开启IPv6。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
|
55
|
+
:type ipv6_vip_virsubnet_id: str
|
56
|
+
:param ipv6_vip_address: 负载均衡器的IPv6虚拟IP。该地址必须包含在所在子网的IPv6网段内,且未被占用。 使用说明: 传入ipv6_vip_address时必须传入ipv6_vip_virsubnet_id。 不传入ipv6_vip_address,但传入ipv6_vip_virsubnet_id,则自动分配IPv6虚拟IP。 不传入ipv6_vip_address,且不传ipv6_vip_virsubnet_id,则不分配虚拟IP,ipv6_vip_address=null。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
|
57
|
+
:type ipv6_vip_address: str
|
58
|
+
:param elb_virsubnet_ids: 下联面子网的网络ID列表。仅action为start时生效。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 若不指定该字段,则选择vip_subnet_cidr_id子网对应的网络ID。 下联面子网必须属于该LB所在的VPC。
|
59
|
+
:type elb_virsubnet_ids: list[str]
|
60
|
+
:param prepaid_options:
|
61
|
+
:type prepaid_options: :class:`huaweicloudsdkelb.v3.UpgradePrepaidOption`
|
62
|
+
"""
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
self._action = None
|
67
|
+
self._l4_flavor_id = None
|
68
|
+
self._l7_flavor_id = None
|
69
|
+
self._availability_zone_list = None
|
70
|
+
self._ipv6_vip_virsubnet_id = None
|
71
|
+
self._ipv6_vip_address = None
|
72
|
+
self._elb_virsubnet_ids = None
|
73
|
+
self._prepaid_options = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
self.action = action
|
77
|
+
if l4_flavor_id is not None:
|
78
|
+
self.l4_flavor_id = l4_flavor_id
|
79
|
+
if l7_flavor_id is not None:
|
80
|
+
self.l7_flavor_id = l7_flavor_id
|
81
|
+
if availability_zone_list is not None:
|
82
|
+
self.availability_zone_list = availability_zone_list
|
83
|
+
if ipv6_vip_virsubnet_id is not None:
|
84
|
+
self.ipv6_vip_virsubnet_id = ipv6_vip_virsubnet_id
|
85
|
+
if ipv6_vip_address is not None:
|
86
|
+
self.ipv6_vip_address = ipv6_vip_address
|
87
|
+
if elb_virsubnet_ids is not None:
|
88
|
+
self.elb_virsubnet_ids = elb_virsubnet_ids
|
89
|
+
if prepaid_options is not None:
|
90
|
+
self.prepaid_options = prepaid_options
|
91
|
+
|
92
|
+
@property
|
93
|
+
def action(self):
|
94
|
+
"""Gets the action of this UpgradeV3RequestBody.
|
95
|
+
|
96
|
+
升级操作: - start:开始升级,仅负载均衡器的provisioning_status为ACTIVE时支持。 - complete:升级完成确认,仅实例的provision_status为UPGRADED时支持。确认后,实例无法再执行回退。 - rollback:回滚,仅实例的provision_status为UPGRADED,UPGRADE_FAILED,ROLLBACK_FAILED时支持。
|
97
|
+
|
98
|
+
:return: The action of this UpgradeV3RequestBody.
|
99
|
+
:rtype: str
|
100
|
+
"""
|
101
|
+
return self._action
|
102
|
+
|
103
|
+
@action.setter
|
104
|
+
def action(self, action):
|
105
|
+
"""Sets the action of this UpgradeV3RequestBody.
|
106
|
+
|
107
|
+
升级操作: - start:开始升级,仅负载均衡器的provisioning_status为ACTIVE时支持。 - complete:升级完成确认,仅实例的provision_status为UPGRADED时支持。确认后,实例无法再执行回退。 - rollback:回滚,仅实例的provision_status为UPGRADED,UPGRADE_FAILED,ROLLBACK_FAILED时支持。
|
108
|
+
|
109
|
+
:param action: The action of this UpgradeV3RequestBody.
|
110
|
+
:type action: str
|
111
|
+
"""
|
112
|
+
self._action = action
|
113
|
+
|
114
|
+
@property
|
115
|
+
def l4_flavor_id(self):
|
116
|
+
"""Gets the l4_flavor_id of this UpgradeV3RequestBody.
|
117
|
+
|
118
|
+
四层规格ID。仅action为start时生效。 负载均衡器有四层监听器时该字段必须指定。 l4_flavor_id和l7_flavor_id不能同时为空。
|
119
|
+
|
120
|
+
:return: The l4_flavor_id of this UpgradeV3RequestBody.
|
121
|
+
:rtype: str
|
122
|
+
"""
|
123
|
+
return self._l4_flavor_id
|
124
|
+
|
125
|
+
@l4_flavor_id.setter
|
126
|
+
def l4_flavor_id(self, l4_flavor_id):
|
127
|
+
"""Sets the l4_flavor_id of this UpgradeV3RequestBody.
|
128
|
+
|
129
|
+
四层规格ID。仅action为start时生效。 负载均衡器有四层监听器时该字段必须指定。 l4_flavor_id和l7_flavor_id不能同时为空。
|
130
|
+
|
131
|
+
:param l4_flavor_id: The l4_flavor_id of this UpgradeV3RequestBody.
|
132
|
+
:type l4_flavor_id: str
|
133
|
+
"""
|
134
|
+
self._l4_flavor_id = l4_flavor_id
|
135
|
+
|
136
|
+
@property
|
137
|
+
def l7_flavor_id(self):
|
138
|
+
"""Gets the l7_flavor_id of this UpgradeV3RequestBody.
|
139
|
+
|
140
|
+
七层规格ID。仅action为start时生效。 负载均衡器有七层监听器时该字段必须指定。 l4_flavor_id和l7_flavor_id不能同时为空。
|
141
|
+
|
142
|
+
:return: The l7_flavor_id of this UpgradeV3RequestBody.
|
143
|
+
:rtype: str
|
144
|
+
"""
|
145
|
+
return self._l7_flavor_id
|
146
|
+
|
147
|
+
@l7_flavor_id.setter
|
148
|
+
def l7_flavor_id(self, l7_flavor_id):
|
149
|
+
"""Sets the l7_flavor_id of this UpgradeV3RequestBody.
|
150
|
+
|
151
|
+
七层规格ID。仅action为start时生效。 负载均衡器有七层监听器时该字段必须指定。 l4_flavor_id和l7_flavor_id不能同时为空。
|
152
|
+
|
153
|
+
:param l7_flavor_id: The l7_flavor_id of this UpgradeV3RequestBody.
|
154
|
+
:type l7_flavor_id: str
|
155
|
+
"""
|
156
|
+
self._l7_flavor_id = l7_flavor_id
|
157
|
+
|
158
|
+
@property
|
159
|
+
def availability_zone_list(self):
|
160
|
+
"""Gets the availability_zone_list of this UpgradeV3RequestBody.
|
161
|
+
|
162
|
+
可用区列表。仅在action为start时生效。且action为start时,该字段必传 可通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/availability-zones 接口来查询可用区集合列表。创建负载均衡器时,从查询结果选择某一个可用区集合,并从中选择一个或多个可用区。
|
163
|
+
|
164
|
+
:return: The availability_zone_list of this UpgradeV3RequestBody.
|
165
|
+
:rtype: list[str]
|
166
|
+
"""
|
167
|
+
return self._availability_zone_list
|
168
|
+
|
169
|
+
@availability_zone_list.setter
|
170
|
+
def availability_zone_list(self, availability_zone_list):
|
171
|
+
"""Sets the availability_zone_list of this UpgradeV3RequestBody.
|
172
|
+
|
173
|
+
可用区列表。仅在action为start时生效。且action为start时,该字段必传 可通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/availability-zones 接口来查询可用区集合列表。创建负载均衡器时,从查询结果选择某一个可用区集合,并从中选择一个或多个可用区。
|
174
|
+
|
175
|
+
:param availability_zone_list: The availability_zone_list of this UpgradeV3RequestBody.
|
176
|
+
:type availability_zone_list: list[str]
|
177
|
+
"""
|
178
|
+
self._availability_zone_list = availability_zone_list
|
179
|
+
|
180
|
+
@property
|
181
|
+
def ipv6_vip_virsubnet_id(self):
|
182
|
+
"""Gets the ipv6_vip_virsubnet_id of this UpgradeV3RequestBody.
|
183
|
+
|
184
|
+
双栈类型负载均衡器所在子网的IPv6网络ID。 若实例升级到独享型后期望使用IPv6功能,则升级时该字段必传。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的id得到。 使用说明: ipv6_vip_virsubnet_id需要属于原共享型实例所属VPC。 ipv6_vip_virsubnet_id所属子网需要开启IPv6。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
|
185
|
+
|
186
|
+
:return: The ipv6_vip_virsubnet_id of this UpgradeV3RequestBody.
|
187
|
+
:rtype: str
|
188
|
+
"""
|
189
|
+
return self._ipv6_vip_virsubnet_id
|
190
|
+
|
191
|
+
@ipv6_vip_virsubnet_id.setter
|
192
|
+
def ipv6_vip_virsubnet_id(self, ipv6_vip_virsubnet_id):
|
193
|
+
"""Sets the ipv6_vip_virsubnet_id of this UpgradeV3RequestBody.
|
194
|
+
|
195
|
+
双栈类型负载均衡器所在子网的IPv6网络ID。 若实例升级到独享型后期望使用IPv6功能,则升级时该字段必传。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的id得到。 使用说明: ipv6_vip_virsubnet_id需要属于原共享型实例所属VPC。 ipv6_vip_virsubnet_id所属子网需要开启IPv6。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
|
196
|
+
|
197
|
+
:param ipv6_vip_virsubnet_id: The ipv6_vip_virsubnet_id of this UpgradeV3RequestBody.
|
198
|
+
:type ipv6_vip_virsubnet_id: str
|
199
|
+
"""
|
200
|
+
self._ipv6_vip_virsubnet_id = ipv6_vip_virsubnet_id
|
201
|
+
|
202
|
+
@property
|
203
|
+
def ipv6_vip_address(self):
|
204
|
+
"""Gets the ipv6_vip_address of this UpgradeV3RequestBody.
|
205
|
+
|
206
|
+
负载均衡器的IPv6虚拟IP。该地址必须包含在所在子网的IPv6网段内,且未被占用。 使用说明: 传入ipv6_vip_address时必须传入ipv6_vip_virsubnet_id。 不传入ipv6_vip_address,但传入ipv6_vip_virsubnet_id,则自动分配IPv6虚拟IP。 不传入ipv6_vip_address,且不传ipv6_vip_virsubnet_id,则不分配虚拟IP,ipv6_vip_address=null。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
|
207
|
+
|
208
|
+
:return: The ipv6_vip_address of this UpgradeV3RequestBody.
|
209
|
+
:rtype: str
|
210
|
+
"""
|
211
|
+
return self._ipv6_vip_address
|
212
|
+
|
213
|
+
@ipv6_vip_address.setter
|
214
|
+
def ipv6_vip_address(self, ipv6_vip_address):
|
215
|
+
"""Sets the ipv6_vip_address of this UpgradeV3RequestBody.
|
216
|
+
|
217
|
+
负载均衡器的IPv6虚拟IP。该地址必须包含在所在子网的IPv6网段内,且未被占用。 使用说明: 传入ipv6_vip_address时必须传入ipv6_vip_virsubnet_id。 不传入ipv6_vip_address,但传入ipv6_vip_virsubnet_id,则自动分配IPv6虚拟IP。 不传入ipv6_vip_address,且不传ipv6_vip_virsubnet_id,则不分配虚拟IP,ipv6_vip_address=null。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
|
218
|
+
|
219
|
+
:param ipv6_vip_address: The ipv6_vip_address of this UpgradeV3RequestBody.
|
220
|
+
:type ipv6_vip_address: str
|
221
|
+
"""
|
222
|
+
self._ipv6_vip_address = ipv6_vip_address
|
223
|
+
|
224
|
+
@property
|
225
|
+
def elb_virsubnet_ids(self):
|
226
|
+
"""Gets the elb_virsubnet_ids of this UpgradeV3RequestBody.
|
227
|
+
|
228
|
+
下联面子网的网络ID列表。仅action为start时生效。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 若不指定该字段,则选择vip_subnet_cidr_id子网对应的网络ID。 下联面子网必须属于该LB所在的VPC。
|
229
|
+
|
230
|
+
:return: The elb_virsubnet_ids of this UpgradeV3RequestBody.
|
231
|
+
:rtype: list[str]
|
232
|
+
"""
|
233
|
+
return self._elb_virsubnet_ids
|
234
|
+
|
235
|
+
@elb_virsubnet_ids.setter
|
236
|
+
def elb_virsubnet_ids(self, elb_virsubnet_ids):
|
237
|
+
"""Sets the elb_virsubnet_ids of this UpgradeV3RequestBody.
|
238
|
+
|
239
|
+
下联面子网的网络ID列表。仅action为start时生效。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 若不指定该字段,则选择vip_subnet_cidr_id子网对应的网络ID。 下联面子网必须属于该LB所在的VPC。
|
240
|
+
|
241
|
+
:param elb_virsubnet_ids: The elb_virsubnet_ids of this UpgradeV3RequestBody.
|
242
|
+
:type elb_virsubnet_ids: list[str]
|
243
|
+
"""
|
244
|
+
self._elb_virsubnet_ids = elb_virsubnet_ids
|
245
|
+
|
246
|
+
@property
|
247
|
+
def prepaid_options(self):
|
248
|
+
"""Gets the prepaid_options of this UpgradeV3RequestBody.
|
249
|
+
|
250
|
+
:return: The prepaid_options of this UpgradeV3RequestBody.
|
251
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpgradePrepaidOption`
|
252
|
+
"""
|
253
|
+
return self._prepaid_options
|
254
|
+
|
255
|
+
@prepaid_options.setter
|
256
|
+
def prepaid_options(self, prepaid_options):
|
257
|
+
"""Sets the prepaid_options of this UpgradeV3RequestBody.
|
258
|
+
|
259
|
+
:param prepaid_options: The prepaid_options of this UpgradeV3RequestBody.
|
260
|
+
:type prepaid_options: :class:`huaweicloudsdkelb.v3.UpgradePrepaidOption`
|
261
|
+
"""
|
262
|
+
self._prepaid_options = prepaid_options
|
263
|
+
|
264
|
+
def to_dict(self):
|
265
|
+
"""Returns the model properties as a dict"""
|
266
|
+
result = {}
|
267
|
+
|
268
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
269
|
+
value = getattr(self, attr)
|
270
|
+
if isinstance(value, list):
|
271
|
+
result[attr] = list(map(
|
272
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
273
|
+
value
|
274
|
+
))
|
275
|
+
elif hasattr(value, "to_dict"):
|
276
|
+
result[attr] = value.to_dict()
|
277
|
+
elif isinstance(value, dict):
|
278
|
+
result[attr] = dict(map(
|
279
|
+
lambda item: (item[0], item[1].to_dict())
|
280
|
+
if hasattr(item[1], "to_dict") else item,
|
281
|
+
value.items()
|
282
|
+
))
|
283
|
+
else:
|
284
|
+
if attr in self.sensitive_list:
|
285
|
+
result[attr] = "****"
|
286
|
+
else:
|
287
|
+
result[attr] = value
|
288
|
+
|
289
|
+
return result
|
290
|
+
|
291
|
+
def to_str(self):
|
292
|
+
"""Returns the string representation of the model"""
|
293
|
+
import simplejson as json
|
294
|
+
if six.PY2:
|
295
|
+
import sys
|
296
|
+
reload(sys)
|
297
|
+
sys.setdefaultencoding("utf-8")
|
298
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
299
|
+
|
300
|
+
def __repr__(self):
|
301
|
+
"""For `print`"""
|
302
|
+
return self.to_str()
|
303
|
+
|
304
|
+
def __eq__(self, other):
|
305
|
+
"""Returns true if both objects are equal"""
|
306
|
+
if not isinstance(other, UpgradeV3RequestBody):
|
307
|
+
return False
|
308
|
+
|
309
|
+
return self.__dict__ == other.__dict__
|
310
|
+
|
311
|
+
def __ne__(self, other):
|
312
|
+
"""Returns true if both objects are not equal"""
|
313
|
+
return not self == other
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkelb
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.134
|
4
4
|
Summary: ELB
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
6
6
|
Author: HuaweiCloud SDK
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
23
23
|
Description-Content-Type: text/markdown
|
24
24
|
License-File: LICENSE
|
25
|
-
Requires-Dist: huaweicloudsdkcore>=3.1.
|
25
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.134
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|