huaweicloudsdkelb 3.1.77__py2.py3-none-any.whl → 3.1.79__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/model/create_listener_req.py +61 -3
- huaweicloudsdkelb/v2/model/create_loadbalancer_response.py +61 -3
- huaweicloudsdkelb/v2/model/listener_resp.py +4 -2
- huaweicloudsdkelb/v2/model/loadbalancer_resp.py +92 -6
- huaweicloudsdkelb/v2/model/pool_resp.py +4 -2
- huaweicloudsdkelb/v2/region/elb_region.py +4 -8
- huaweicloudsdkelb/v3/model/quota.py +3 -3
- huaweicloudsdkelb/v3/region/elb_region.py +4 -8
- {huaweicloudsdkelb-3.1.77.dist-info → huaweicloudsdkelb-3.1.79.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.77.dist-info → huaweicloudsdkelb-3.1.79.dist-info}/RECORD +13 -13
- {huaweicloudsdkelb-3.1.77.dist-info → huaweicloudsdkelb-3.1.79.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.77.dist-info → huaweicloudsdkelb-3.1.79.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.77.dist-info → huaweicloudsdkelb-3.1.79.dist-info}/top_level.txt +0 -0
@@ -31,7 +31,9 @@ class CreateListenerReq:
|
|
31
31
|
'client_ca_tls_container_ref': 'str',
|
32
32
|
'sni_container_refs': 'list[str]',
|
33
33
|
'insert_headers': 'InsertHeader',
|
34
|
-
'tls_ciphers_policy': 'str'
|
34
|
+
'tls_ciphers_policy': 'str',
|
35
|
+
'protection_status': 'str',
|
36
|
+
'protection_reason': 'str'
|
35
37
|
}
|
36
38
|
|
37
39
|
attribute_map = {
|
@@ -49,10 +51,12 @@ class CreateListenerReq:
|
|
49
51
|
'client_ca_tls_container_ref': 'client_ca_tls_container_ref',
|
50
52
|
'sni_container_refs': 'sni_container_refs',
|
51
53
|
'insert_headers': 'insert_headers',
|
52
|
-
'tls_ciphers_policy': 'tls_ciphers_policy'
|
54
|
+
'tls_ciphers_policy': 'tls_ciphers_policy',
|
55
|
+
'protection_status': 'protection_status',
|
56
|
+
'protection_reason': 'protection_reason'
|
53
57
|
}
|
54
58
|
|
55
|
-
def __init__(self, loadbalancer_id=None, protocol=None, protocol_port=None, tenant_id=None, name=None, description=None, admin_state_up=None, connection_limit=None, http2_enable=None, default_pool_id=None, default_tls_container_ref=None, client_ca_tls_container_ref=None, sni_container_refs=None, insert_headers=None, tls_ciphers_policy=None):
|
59
|
+
def __init__(self, loadbalancer_id=None, protocol=None, protocol_port=None, tenant_id=None, name=None, description=None, admin_state_up=None, connection_limit=None, http2_enable=None, default_pool_id=None, default_tls_container_ref=None, client_ca_tls_container_ref=None, sni_container_refs=None, insert_headers=None, tls_ciphers_policy=None, protection_status=None, protection_reason=None):
|
56
60
|
"""CreateListenerReq
|
57
61
|
|
58
62
|
The model defined in huaweicloud sdk
|
@@ -87,6 +91,10 @@ class CreateListenerReq:
|
|
87
91
|
:type insert_headers: :class:`huaweicloudsdkelb.v2.InsertHeader`
|
88
92
|
:param tls_ciphers_policy: 监听器使用的安全策略,仅对TERMINATED_HTTPS协议类型的监听器有效,且默认值为tls-1-0。 取值包括:tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict多种安全策略。
|
89
93
|
:type tls_ciphers_policy: str
|
94
|
+
:param protection_status: 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护
|
95
|
+
:type protection_status: str
|
96
|
+
:param protection_reason: 设置保护的原因 >仅当protection_status为consoleProtection时有效。
|
97
|
+
:type protection_reason: str
|
90
98
|
"""
|
91
99
|
|
92
100
|
|
@@ -106,6 +114,8 @@ class CreateListenerReq:
|
|
106
114
|
self._sni_container_refs = None
|
107
115
|
self._insert_headers = None
|
108
116
|
self._tls_ciphers_policy = None
|
117
|
+
self._protection_status = None
|
118
|
+
self._protection_reason = None
|
109
119
|
self.discriminator = None
|
110
120
|
|
111
121
|
self.loadbalancer_id = loadbalancer_id
|
@@ -135,6 +145,10 @@ class CreateListenerReq:
|
|
135
145
|
self.insert_headers = insert_headers
|
136
146
|
if tls_ciphers_policy is not None:
|
137
147
|
self.tls_ciphers_policy = tls_ciphers_policy
|
148
|
+
if protection_status is not None:
|
149
|
+
self.protection_status = protection_status
|
150
|
+
if protection_reason is not None:
|
151
|
+
self.protection_reason = protection_reason
|
138
152
|
|
139
153
|
@property
|
140
154
|
def loadbalancer_id(self):
|
@@ -462,6 +476,50 @@ class CreateListenerReq:
|
|
462
476
|
"""
|
463
477
|
self._tls_ciphers_policy = tls_ciphers_policy
|
464
478
|
|
479
|
+
@property
|
480
|
+
def protection_status(self):
|
481
|
+
"""Gets the protection_status of this CreateListenerReq.
|
482
|
+
|
483
|
+
修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护
|
484
|
+
|
485
|
+
:return: The protection_status of this CreateListenerReq.
|
486
|
+
:rtype: str
|
487
|
+
"""
|
488
|
+
return self._protection_status
|
489
|
+
|
490
|
+
@protection_status.setter
|
491
|
+
def protection_status(self, protection_status):
|
492
|
+
"""Sets the protection_status of this CreateListenerReq.
|
493
|
+
|
494
|
+
修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护
|
495
|
+
|
496
|
+
:param protection_status: The protection_status of this CreateListenerReq.
|
497
|
+
:type protection_status: str
|
498
|
+
"""
|
499
|
+
self._protection_status = protection_status
|
500
|
+
|
501
|
+
@property
|
502
|
+
def protection_reason(self):
|
503
|
+
"""Gets the protection_reason of this CreateListenerReq.
|
504
|
+
|
505
|
+
设置保护的原因 >仅当protection_status为consoleProtection时有效。
|
506
|
+
|
507
|
+
:return: The protection_reason of this CreateListenerReq.
|
508
|
+
:rtype: str
|
509
|
+
"""
|
510
|
+
return self._protection_reason
|
511
|
+
|
512
|
+
@protection_reason.setter
|
513
|
+
def protection_reason(self, protection_reason):
|
514
|
+
"""Sets the protection_reason of this CreateListenerReq.
|
515
|
+
|
516
|
+
设置保护的原因 >仅当protection_status为consoleProtection时有效。
|
517
|
+
|
518
|
+
:param protection_reason: The protection_reason of this CreateListenerReq.
|
519
|
+
:type protection_reason: str
|
520
|
+
"""
|
521
|
+
self._protection_reason = protection_reason
|
522
|
+
|
465
523
|
def to_dict(self):
|
466
524
|
"""Returns the model properties as a dict"""
|
467
525
|
result = {}
|
@@ -18,29 +18,43 @@ class CreateLoadbalancerResponse(SdkResponse):
|
|
18
18
|
sensitive_list = []
|
19
19
|
|
20
20
|
openapi_types = {
|
21
|
-
'loadbalancer': 'LoadbalancerResp'
|
21
|
+
'loadbalancer': 'LoadbalancerResp',
|
22
|
+
'order_id': 'str',
|
23
|
+
'loadbalancer_id': 'str'
|
22
24
|
}
|
23
25
|
|
24
26
|
attribute_map = {
|
25
|
-
'loadbalancer': 'loadbalancer'
|
27
|
+
'loadbalancer': 'loadbalancer',
|
28
|
+
'order_id': 'order_id',
|
29
|
+
'loadbalancer_id': 'loadbalancer_id'
|
26
30
|
}
|
27
31
|
|
28
|
-
def __init__(self, loadbalancer=None):
|
32
|
+
def __init__(self, loadbalancer=None, order_id=None, loadbalancer_id=None):
|
29
33
|
"""CreateLoadbalancerResponse
|
30
34
|
|
31
35
|
The model defined in huaweicloud sdk
|
32
36
|
|
33
37
|
:param loadbalancer:
|
34
38
|
:type loadbalancer: :class:`huaweicloudsdkelb.v2.LoadbalancerResp`
|
39
|
+
:param order_id: 订单号[(包周期场景返回该字段)](tag:hws)
|
40
|
+
:type order_id: str
|
41
|
+
:param loadbalancer_id: 负载均衡器的ID[(包周期场景返回该字段)](tag:hws)
|
42
|
+
:type loadbalancer_id: str
|
35
43
|
"""
|
36
44
|
|
37
45
|
super(CreateLoadbalancerResponse, self).__init__()
|
38
46
|
|
39
47
|
self._loadbalancer = None
|
48
|
+
self._order_id = None
|
49
|
+
self._loadbalancer_id = None
|
40
50
|
self.discriminator = None
|
41
51
|
|
42
52
|
if loadbalancer is not None:
|
43
53
|
self.loadbalancer = loadbalancer
|
54
|
+
if order_id is not None:
|
55
|
+
self.order_id = order_id
|
56
|
+
if loadbalancer_id is not None:
|
57
|
+
self.loadbalancer_id = loadbalancer_id
|
44
58
|
|
45
59
|
@property
|
46
60
|
def loadbalancer(self):
|
@@ -60,6 +74,50 @@ class CreateLoadbalancerResponse(SdkResponse):
|
|
60
74
|
"""
|
61
75
|
self._loadbalancer = loadbalancer
|
62
76
|
|
77
|
+
@property
|
78
|
+
def order_id(self):
|
79
|
+
"""Gets the order_id of this CreateLoadbalancerResponse.
|
80
|
+
|
81
|
+
订单号[(包周期场景返回该字段)](tag:hws)
|
82
|
+
|
83
|
+
:return: The order_id of this CreateLoadbalancerResponse.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._order_id
|
87
|
+
|
88
|
+
@order_id.setter
|
89
|
+
def order_id(self, order_id):
|
90
|
+
"""Sets the order_id of this CreateLoadbalancerResponse.
|
91
|
+
|
92
|
+
订单号[(包周期场景返回该字段)](tag:hws)
|
93
|
+
|
94
|
+
:param order_id: The order_id of this CreateLoadbalancerResponse.
|
95
|
+
:type order_id: str
|
96
|
+
"""
|
97
|
+
self._order_id = order_id
|
98
|
+
|
99
|
+
@property
|
100
|
+
def loadbalancer_id(self):
|
101
|
+
"""Gets the loadbalancer_id of this CreateLoadbalancerResponse.
|
102
|
+
|
103
|
+
负载均衡器的ID[(包周期场景返回该字段)](tag:hws)
|
104
|
+
|
105
|
+
:return: The loadbalancer_id of this CreateLoadbalancerResponse.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._loadbalancer_id
|
109
|
+
|
110
|
+
@loadbalancer_id.setter
|
111
|
+
def loadbalancer_id(self, loadbalancer_id):
|
112
|
+
"""Sets the loadbalancer_id of this CreateLoadbalancerResponse.
|
113
|
+
|
114
|
+
负载均衡器的ID[(包周期场景返回该字段)](tag:hws)
|
115
|
+
|
116
|
+
:param loadbalancer_id: The loadbalancer_id of this CreateLoadbalancerResponse.
|
117
|
+
:type loadbalancer_id: str
|
118
|
+
"""
|
119
|
+
self._loadbalancer_id = loadbalancer_id
|
120
|
+
|
63
121
|
def to_dict(self):
|
64
122
|
"""Returns the model properties as a dict"""
|
65
123
|
result = {}
|
@@ -163,8 +163,10 @@ class ListenerResp:
|
|
163
163
|
self.insert_headers = insert_headers
|
164
164
|
self.project_id = project_id
|
165
165
|
self.tls_ciphers_policy = tls_ciphers_policy
|
166
|
-
|
167
|
-
|
166
|
+
if protection_status is not None:
|
167
|
+
self.protection_status = protection_status
|
168
|
+
if protection_reason is not None:
|
169
|
+
self.protection_reason = protection_reason
|
168
170
|
|
169
171
|
@property
|
170
172
|
def id(self):
|
@@ -37,7 +37,10 @@ class LoadbalancerResp:
|
|
37
37
|
'tags': 'list[str]',
|
38
38
|
'publicips': 'list[PublicIpInfo]',
|
39
39
|
'charge_mode': 'str',
|
40
|
-
'
|
40
|
+
'billing_info': 'str',
|
41
|
+
'frozen_scene': 'str',
|
42
|
+
'protection_status': 'str',
|
43
|
+
'protection_reason': 'str'
|
41
44
|
}
|
42
45
|
|
43
46
|
attribute_map = {
|
@@ -61,10 +64,13 @@ class LoadbalancerResp:
|
|
61
64
|
'tags': 'tags',
|
62
65
|
'publicips': 'publicips',
|
63
66
|
'charge_mode': 'charge_mode',
|
64
|
-
'
|
67
|
+
'billing_info': 'billing_info',
|
68
|
+
'frozen_scene': 'frozen_scene',
|
69
|
+
'protection_status': 'protection_status',
|
70
|
+
'protection_reason': 'protection_reason'
|
65
71
|
}
|
66
72
|
|
67
|
-
def __init__(self, id=None, tenant_id=None, name=None, description=None, vip_subnet_id=None, vip_port_id=None, vip_address=None, listeners=None, pools=None, provider=None, operating_status=None, provisioning_status=None, admin_state_up=None, created_at=None, updated_at=None, enterprise_project_id=None, project_id=None, tags=None, publicips=None, charge_mode=None, frozen_scene=None):
|
73
|
+
def __init__(self, id=None, tenant_id=None, name=None, description=None, vip_subnet_id=None, vip_port_id=None, vip_address=None, listeners=None, pools=None, provider=None, operating_status=None, provisioning_status=None, admin_state_up=None, created_at=None, updated_at=None, enterprise_project_id=None, project_id=None, tags=None, publicips=None, charge_mode=None, billing_info=None, frozen_scene=None, protection_status=None, protection_reason=None):
|
68
74
|
"""LoadbalancerResp
|
69
75
|
|
70
76
|
The model defined in huaweicloud sdk
|
@@ -107,10 +113,16 @@ class LoadbalancerResp:
|
|
107
113
|
:type tags: list[str]
|
108
114
|
:param publicips: 负载均衡器绑定的公网IP。只支持绑定一个公网IP。
|
109
115
|
:type publicips: list[:class:`huaweicloudsdkelb.v2.PublicIpInfo`]
|
110
|
-
:param charge_mode: 收费模式。取值: flavor:按规格计费 lcu:按使用量计费
|
116
|
+
:param charge_mode: 收费模式。取值: flavor:按规格计费 lcu:按使用量计费 说明:弹性扩缩容实例该字段无效,按lcu收费;包周期实例该字段无效,预付费收费。
|
111
117
|
:type charge_mode: str
|
118
|
+
:param billing_info: 资源账单信息,取值: - 空:按需计费。 - 非空:包周期计费, 包周期计费billing_info字段的格式为:order_id:product_id:region_id:project_id。
|
119
|
+
:type billing_info: str
|
112
120
|
:param frozen_scene: 负载均衡器的冻结场景。若负载均衡器有多个冻结场景,用逗号分隔。取值: POLICE:公安冻结场景。 ILLEGAL:违规冻结场景。 VERIFY:客户未实名认证冻结场景。 PARTNER:合作伙伴冻结(合作伙伴冻结子客户资源)。 AREAR:欠费冻结场景。
|
113
121
|
:type frozen_scene: str
|
122
|
+
:param protection_status: 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护
|
123
|
+
:type protection_status: str
|
124
|
+
:param protection_reason: 设置保护的原因 >仅当protection_status为consoleProtection时有效。
|
125
|
+
:type protection_reason: str
|
114
126
|
"""
|
115
127
|
|
116
128
|
|
@@ -135,7 +147,10 @@ class LoadbalancerResp:
|
|
135
147
|
self._tags = None
|
136
148
|
self._publicips = None
|
137
149
|
self._charge_mode = None
|
150
|
+
self._billing_info = None
|
138
151
|
self._frozen_scene = None
|
152
|
+
self._protection_status = None
|
153
|
+
self._protection_reason = None
|
139
154
|
self.discriminator = None
|
140
155
|
|
141
156
|
self.id = id
|
@@ -158,8 +173,13 @@ class LoadbalancerResp:
|
|
158
173
|
self.tags = tags
|
159
174
|
self.publicips = publicips
|
160
175
|
self.charge_mode = charge_mode
|
176
|
+
self.billing_info = billing_info
|
161
177
|
if frozen_scene is not None:
|
162
178
|
self.frozen_scene = frozen_scene
|
179
|
+
if protection_status is not None:
|
180
|
+
self.protection_status = protection_status
|
181
|
+
if protection_reason is not None:
|
182
|
+
self.protection_reason = protection_reason
|
163
183
|
|
164
184
|
@property
|
165
185
|
def id(self):
|
@@ -583,7 +603,7 @@ class LoadbalancerResp:
|
|
583
603
|
def charge_mode(self):
|
584
604
|
"""Gets the charge_mode of this LoadbalancerResp.
|
585
605
|
|
586
|
-
收费模式。取值: flavor:按规格计费 lcu:按使用量计费
|
606
|
+
收费模式。取值: flavor:按规格计费 lcu:按使用量计费 说明:弹性扩缩容实例该字段无效,按lcu收费;包周期实例该字段无效,预付费收费。
|
587
607
|
|
588
608
|
:return: The charge_mode of this LoadbalancerResp.
|
589
609
|
:rtype: str
|
@@ -594,13 +614,35 @@ class LoadbalancerResp:
|
|
594
614
|
def charge_mode(self, charge_mode):
|
595
615
|
"""Sets the charge_mode of this LoadbalancerResp.
|
596
616
|
|
597
|
-
收费模式。取值: flavor:按规格计费 lcu:按使用量计费
|
617
|
+
收费模式。取值: flavor:按规格计费 lcu:按使用量计费 说明:弹性扩缩容实例该字段无效,按lcu收费;包周期实例该字段无效,预付费收费。
|
598
618
|
|
599
619
|
:param charge_mode: The charge_mode of this LoadbalancerResp.
|
600
620
|
:type charge_mode: str
|
601
621
|
"""
|
602
622
|
self._charge_mode = charge_mode
|
603
623
|
|
624
|
+
@property
|
625
|
+
def billing_info(self):
|
626
|
+
"""Gets the billing_info of this LoadbalancerResp.
|
627
|
+
|
628
|
+
资源账单信息,取值: - 空:按需计费。 - 非空:包周期计费, 包周期计费billing_info字段的格式为:order_id:product_id:region_id:project_id。
|
629
|
+
|
630
|
+
:return: The billing_info of this LoadbalancerResp.
|
631
|
+
:rtype: str
|
632
|
+
"""
|
633
|
+
return self._billing_info
|
634
|
+
|
635
|
+
@billing_info.setter
|
636
|
+
def billing_info(self, billing_info):
|
637
|
+
"""Sets the billing_info of this LoadbalancerResp.
|
638
|
+
|
639
|
+
资源账单信息,取值: - 空:按需计费。 - 非空:包周期计费, 包周期计费billing_info字段的格式为:order_id:product_id:region_id:project_id。
|
640
|
+
|
641
|
+
:param billing_info: The billing_info of this LoadbalancerResp.
|
642
|
+
:type billing_info: str
|
643
|
+
"""
|
644
|
+
self._billing_info = billing_info
|
645
|
+
|
604
646
|
@property
|
605
647
|
def frozen_scene(self):
|
606
648
|
"""Gets the frozen_scene of this LoadbalancerResp.
|
@@ -623,6 +665,50 @@ class LoadbalancerResp:
|
|
623
665
|
"""
|
624
666
|
self._frozen_scene = frozen_scene
|
625
667
|
|
668
|
+
@property
|
669
|
+
def protection_status(self):
|
670
|
+
"""Gets the protection_status of this LoadbalancerResp.
|
671
|
+
|
672
|
+
修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护
|
673
|
+
|
674
|
+
:return: The protection_status of this LoadbalancerResp.
|
675
|
+
:rtype: str
|
676
|
+
"""
|
677
|
+
return self._protection_status
|
678
|
+
|
679
|
+
@protection_status.setter
|
680
|
+
def protection_status(self, protection_status):
|
681
|
+
"""Sets the protection_status of this LoadbalancerResp.
|
682
|
+
|
683
|
+
修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护
|
684
|
+
|
685
|
+
:param protection_status: The protection_status of this LoadbalancerResp.
|
686
|
+
:type protection_status: str
|
687
|
+
"""
|
688
|
+
self._protection_status = protection_status
|
689
|
+
|
690
|
+
@property
|
691
|
+
def protection_reason(self):
|
692
|
+
"""Gets the protection_reason of this LoadbalancerResp.
|
693
|
+
|
694
|
+
设置保护的原因 >仅当protection_status为consoleProtection时有效。
|
695
|
+
|
696
|
+
:return: The protection_reason of this LoadbalancerResp.
|
697
|
+
:rtype: str
|
698
|
+
"""
|
699
|
+
return self._protection_reason
|
700
|
+
|
701
|
+
@protection_reason.setter
|
702
|
+
def protection_reason(self, protection_reason):
|
703
|
+
"""Sets the protection_reason of this LoadbalancerResp.
|
704
|
+
|
705
|
+
设置保护的原因 >仅当protection_status为consoleProtection时有效。
|
706
|
+
|
707
|
+
:param protection_reason: The protection_reason of this LoadbalancerResp.
|
708
|
+
:type protection_reason: str
|
709
|
+
"""
|
710
|
+
self._protection_reason = protection_reason
|
711
|
+
|
626
712
|
def to_dict(self):
|
627
713
|
"""Returns the model properties as a dict"""
|
628
714
|
result = {}
|
@@ -121,8 +121,10 @@ class PoolResp:
|
|
121
121
|
self.session_persistence = session_persistence
|
122
122
|
self.protocol = protocol
|
123
123
|
self.lb_algorithm = lb_algorithm
|
124
|
-
|
125
|
-
|
124
|
+
if protection_status is not None:
|
125
|
+
self.protection_status = protection_status
|
126
|
+
if protection_reason is not None:
|
127
|
+
self.protection_reason = protection_reason
|
126
128
|
|
127
129
|
@property
|
128
130
|
def id(self):
|
@@ -1,8 +1,5 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
-
import types
|
4
|
-
import six
|
5
|
-
|
6
3
|
from huaweicloudsdkcore.region.region import Region
|
7
4
|
from huaweicloudsdkcore.region.provider import RegionProviderChain
|
8
5
|
|
@@ -82,9 +79,9 @@ class ElbRegion:
|
|
82
79
|
@classmethod
|
83
80
|
def value_of(cls, region_id, static_fields=None):
|
84
81
|
if not region_id:
|
85
|
-
raise KeyError("Unexpected empty parameter: region_id
|
82
|
+
raise KeyError("Unexpected empty parameter: region_id")
|
86
83
|
|
87
|
-
fields = static_fields
|
84
|
+
fields = static_fields or cls.static_fields
|
88
85
|
|
89
86
|
region = cls._PROVIDER.get_region(region_id)
|
90
87
|
if region:
|
@@ -93,6 +90,5 @@ class ElbRegion:
|
|
93
90
|
if region_id in fields:
|
94
91
|
return fields.get(region_id)
|
95
92
|
|
96
|
-
raise KeyError("
|
97
|
-
|
98
|
-
|
93
|
+
raise KeyError("region_id '%s' is not in the following supported regions of service 'Elb': [%s]" % (
|
94
|
+
region_id, ", ".join(sorted(fields.keys()))))
|
@@ -89,7 +89,7 @@ class Quota:
|
|
89
89
|
:type ipgroup_max_length: int
|
90
90
|
:param security_policy: 自定义安全策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
|
91
91
|
:type security_policy: int
|
92
|
-
:param listeners_per_loadbalancer: 单个LB实例下的监听器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 > 当前单个
|
92
|
+
:param listeners_per_loadbalancer: 单个LB实例下的监听器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 > 当前单个LB下监听器配额实际未限制,但建议不要超过默认配额。
|
93
93
|
:type listeners_per_loadbalancer: int
|
94
94
|
"""
|
95
95
|
|
@@ -464,7 +464,7 @@ class Quota:
|
|
464
464
|
def listeners_per_loadbalancer(self):
|
465
465
|
"""Gets the listeners_per_loadbalancer of this Quota.
|
466
466
|
|
467
|
-
单个LB实例下的监听器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 > 当前单个
|
467
|
+
单个LB实例下的监听器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 > 当前单个LB下监听器配额实际未限制,但建议不要超过默认配额。
|
468
468
|
|
469
469
|
:return: The listeners_per_loadbalancer of this Quota.
|
470
470
|
:rtype: int
|
@@ -475,7 +475,7 @@ class Quota:
|
|
475
475
|
def listeners_per_loadbalancer(self, listeners_per_loadbalancer):
|
476
476
|
"""Sets the listeners_per_loadbalancer of this Quota.
|
477
477
|
|
478
|
-
单个LB实例下的监听器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 > 当前单个
|
478
|
+
单个LB实例下的监听器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 > 当前单个LB下监听器配额实际未限制,但建议不要超过默认配额。
|
479
479
|
|
480
480
|
:param listeners_per_loadbalancer: The listeners_per_loadbalancer of this Quota.
|
481
481
|
:type listeners_per_loadbalancer: int
|
@@ -1,8 +1,5 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
-
import types
|
4
|
-
import six
|
5
|
-
|
6
3
|
from huaweicloudsdkcore.region.region import Region
|
7
4
|
from huaweicloudsdkcore.region.provider import RegionProviderChain
|
8
5
|
|
@@ -82,9 +79,9 @@ class ElbRegion:
|
|
82
79
|
@classmethod
|
83
80
|
def value_of(cls, region_id, static_fields=None):
|
84
81
|
if not region_id:
|
85
|
-
raise KeyError("Unexpected empty parameter: region_id
|
82
|
+
raise KeyError("Unexpected empty parameter: region_id")
|
86
83
|
|
87
|
-
fields = static_fields
|
84
|
+
fields = static_fields or cls.static_fields
|
88
85
|
|
89
86
|
region = cls._PROVIDER.get_region(region_id)
|
90
87
|
if region:
|
@@ -93,6 +90,5 @@ class ElbRegion:
|
|
93
90
|
if region_id in fields:
|
94
91
|
return fields.get(region_id)
|
95
92
|
|
96
|
-
raise KeyError("
|
97
|
-
|
98
|
-
|
93
|
+
raise KeyError("region_id '%s' is not in the following supported regions of service 'Elb': [%s]" % (
|
94
|
+
region_id, ", ".join(sorted(fields.keys()))))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkelb
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.79
|
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.79
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
@@ -34,7 +34,7 @@ huaweicloudsdkelb/v2/model/create_l7rule_req_in_policy.py,sha256=i-apEJCscN9meqV
|
|
34
34
|
huaweicloudsdkelb/v2/model/create_l7rule_request.py,sha256=A3tafrZ99U6O3IHQL9eb7_HUj_U4FD15pO9rT9_nU3U,3921
|
35
35
|
huaweicloudsdkelb/v2/model/create_l7rule_request_body.py,sha256=3I4AE4Wppfi8xh9VGyeEs2l4X70q9CNfSU4ao54dFf8,3059
|
36
36
|
huaweicloudsdkelb/v2/model/create_l7rule_response.py,sha256=2PO6ooLZ40KZQE3mEEDbjhKXoAXSTQI95fyr79JeovY,3164
|
37
|
-
huaweicloudsdkelb/v2/model/create_listener_req.py,sha256=
|
37
|
+
huaweicloudsdkelb/v2/model/create_listener_req.py,sha256=4MlgXEQqh3XQufzqgc_2wIS1fCvQyNiH4BDqcHyT4L4,21403
|
38
38
|
huaweicloudsdkelb/v2/model/create_listener_request.py,sha256=11Q8Xk-nBx45Hfehac4iwAN09IcI4n9DG690pV7obEE,3151
|
39
39
|
huaweicloudsdkelb/v2/model/create_listener_request_body.py,sha256=3FmHl5TxQyWdacnisqRaXxERHCfw1qvqgdoRtoRE9LU,3169
|
40
40
|
huaweicloudsdkelb/v2/model/create_listener_response.py,sha256=aQqiTvQ1jN7gyLVh6991qQuqy7I8eZpFvskA-jW-M1U,3280
|
@@ -44,7 +44,7 @@ huaweicloudsdkelb/v2/model/create_listener_tags_response.py,sha256=YjF_nQcSArpgm
|
|
44
44
|
huaweicloudsdkelb/v2/model/create_loadbalancer_req.py,sha256=l_eMZ9ULc_lrp0KX81RTPei0rfcAiI3lduzY9FWWhlI,13136
|
45
45
|
huaweicloudsdkelb/v2/model/create_loadbalancer_request.py,sha256=gYCWGLVfD1TUynk9wdZbpzjwO4Igz_1RHXDG5fSb8iY,3199
|
46
46
|
huaweicloudsdkelb/v2/model/create_loadbalancer_request_body.py,sha256=5edohs0vbZ35z1sIdeFHAsk8fKodXMdWio7NYc9_IRs,3301
|
47
|
-
huaweicloudsdkelb/v2/model/create_loadbalancer_response.py,sha256=
|
47
|
+
huaweicloudsdkelb/v2/model/create_loadbalancer_response.py,sha256=uVRJ9qSuTgtra2XQ8eWB4pNkuUmHAqWuJj6FsPaSDwc,5452
|
48
48
|
huaweicloudsdkelb/v2/model/create_loadbalancer_tags_request.py,sha256=_HPuWNd3co5ETs7dN_AJBbF_jJk7TjY4SjOz2w1wnR0,4178
|
49
49
|
huaweicloudsdkelb/v2/model/create_loadbalancer_tags_request_body.py,sha256=I46odiFVTp9c3ZFTzVstzpJ-WPVYFOO9vdm7E7Fiw2A,3091
|
50
50
|
huaweicloudsdkelb/v2/model/create_loadbalancer_tags_response.py,sha256=npr2LdGzEuyeuJ5nwx2_sBhk6u2CK5OhI2Bxb5UYIos,2471
|
@@ -118,13 +118,13 @@ huaweicloudsdkelb/v2/model/list_pools_response.py,sha256=Ymq7rO1-1KuO8lZNrW8KJZ-
|
|
118
118
|
huaweicloudsdkelb/v2/model/list_tag.py,sha256=EA_hk-MynXMpU_2F6jf-fHt7_jt6DMJUXI4KzuEfaCA,4410
|
119
119
|
huaweicloudsdkelb/v2/model/list_whitelists_request.py,sha256=u4jFywGMlG1d39_1v4JDxKL309lmGay3k2NlN9Aidx0,8758
|
120
120
|
huaweicloudsdkelb/v2/model/list_whitelists_response.py,sha256=pOJD6Dr_BT1Y1F8qOcA9DoViHnHpz9gLcqe7Uq2y2AQ,3446
|
121
|
-
huaweicloudsdkelb/v2/model/listener_resp.py,sha256=
|
121
|
+
huaweicloudsdkelb/v2/model/listener_resp.py,sha256=A5IVIWX5tXXatBpmdchHY980JJ83vLTvmt1Kuw4T1AI,23285
|
122
122
|
huaweicloudsdkelb/v2/model/listeners_in_status_resp.py,sha256=k_fztBt2gUfsnn0AxYrCQkvA4xA8uC0K-AKdGkGGI5k,7864
|
123
123
|
huaweicloudsdkelb/v2/model/loadbalancer_in_status_resp.py,sha256=_4NuVPTcmtYy73iAuEFZo4-NvB5qp4SLY0XIvASS8nE,8018
|
124
|
-
huaweicloudsdkelb/v2/model/loadbalancer_resp.py,sha256=
|
124
|
+
huaweicloudsdkelb/v2/model/loadbalancer_resp.py,sha256=GLgZtZni5xsNRdGqjaRb07Pz-vv3EQc0xdVijfnu70M,25709
|
125
125
|
huaweicloudsdkelb/v2/model/member_resp.py,sha256=omXdnrSATWj-FjA5Ai477xyrlV7XY1ffdmiDqJtljyw,12801
|
126
126
|
huaweicloudsdkelb/v2/model/members_in_status_resp.py,sha256=pahdqLjXJrhavjft_ruIUbdPA_B0kwLNgKLOvhss7uo,7241
|
127
|
-
huaweicloudsdkelb/v2/model/pool_resp.py,sha256=
|
127
|
+
huaweicloudsdkelb/v2/model/pool_resp.py,sha256=_qvg-AdcDs-oTzWVP8cAOHRYRzNe79ZrNL1twtvKzME,16692
|
128
128
|
huaweicloudsdkelb/v2/model/pools_in_status_resp.py,sha256=GBrgMC4mqWBMCBNTKzGSWw8sJE3HaviT6Pg6qCkMn3o,7909
|
129
129
|
huaweicloudsdkelb/v2/model/public_ip_info.py,sha256=h5nnpS_HHWG7wBdRSqCBIinzOqrSiFJxHTpBu9xFB-I,4977
|
130
130
|
huaweicloudsdkelb/v2/model/resource_list.py,sha256=fUorc3ozcAxN0F3dCCM2LC85wdUeWBlSDTFSeM7Kub8,2844
|
@@ -193,7 +193,7 @@ huaweicloudsdkelb/v2/model/update_whitelist_request_body.py,sha256=IqPar8R3u9VbS
|
|
193
193
|
huaweicloudsdkelb/v2/model/update_whitelist_response.py,sha256=-Fqaq3HDI2aUoIyaekIYCTbrN8-UIZ5D63e8xIzFn24,3315
|
194
194
|
huaweicloudsdkelb/v2/model/whitelist_resp.py,sha256=lUhtgLv14Q_AVKcFSQ_rB0R1ff8jVSYTD8w3Y0McUZA,6602
|
195
195
|
huaweicloudsdkelb/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
196
|
-
huaweicloudsdkelb/v2/region/elb_region.py,sha256=
|
196
|
+
huaweicloudsdkelb/v2/region/elb_region.py,sha256=g9SC9aeIrBd9-gXO0npzwErIFzo71TiRJ2H3kTB6LEk,3980
|
197
197
|
huaweicloudsdkelb/v3/__init__.py,sha256=ddA4S3-B9ig1zq8pEc6yLWexSoSd4rv5LKfu5Jf5xR8,27524
|
198
198
|
huaweicloudsdkelb/v3/elb_async_client.py,sha256=X_X0_fNi_Gz4OQzgGHsZ5m57YNogDyHDS7_P8oVsREE,214998
|
199
199
|
huaweicloudsdkelb/v3/elb_client.py,sha256=VCMc-qpHLupDZ0Hr2kWydwEE7ihi1G1RiTXpilIJHvo,215053
|
@@ -409,7 +409,7 @@ huaweicloudsdkelb/v3/model/prepaid_change_charge_mode_option.py,sha256=bn6blnOyi
|
|
409
409
|
huaweicloudsdkelb/v3/model/prepaid_create_option.py,sha256=8CLeLHdX6Kaj8kmF38-wBwJtGq6xTCWBo6awPoscZek,6953
|
410
410
|
huaweicloudsdkelb/v3/model/prepaid_update_option.py,sha256=kwK-O7RR5ELlT0Ie4rlIGJMj1aO0LkwawOAdCx18w5U,7642
|
411
411
|
huaweicloudsdkelb/v3/model/public_ip_info.py,sha256=h5nnpS_HHWG7wBdRSqCBIinzOqrSiFJxHTpBu9xFB-I,4977
|
412
|
-
huaweicloudsdkelb/v3/model/quota.py,sha256=
|
412
|
+
huaweicloudsdkelb/v3/model/quota.py,sha256=EURp_D4ECPldWnTHbFKtXnG7qiqqGN_ZRyUF-ibSwOQ,20176
|
413
413
|
huaweicloudsdkelb/v3/model/quota_info.py,sha256=UnRt4x10ZJVJxJYzpiEB1C1zqSeTmNNskgJlTXK8xLk,6236
|
414
414
|
huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py,sha256=_wxR7W__IR7zQjjNUG_nvwuExqgqBnwmaGvY6k42alI,4485
|
415
415
|
huaweicloudsdkelb/v3/model/redirect_url_config.py,sha256=2YvIQVMOxDuvfYI832nrQ6fbHI9CpjnZ909380p2ARA,9793
|
@@ -511,9 +511,9 @@ huaweicloudsdkelb/v3/model/update_security_policy_request.py,sha256=1izRmQFp1x6A
|
|
511
511
|
huaweicloudsdkelb/v3/model/update_security_policy_request_body.py,sha256=ACQNfbBO6NOrUIwM4yL6QFO4Fttx1k39DOSsEasQ4yk,3401
|
512
512
|
huaweicloudsdkelb/v3/model/update_security_policy_response.py,sha256=UELeslNZqL2F6c_meMvasJlTLvss8BCVxDSNJ_a00IY,4407
|
513
513
|
huaweicloudsdkelb/v3/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
514
|
-
huaweicloudsdkelb/v3/region/elb_region.py,sha256=
|
515
|
-
huaweicloudsdkelb-3.1.
|
516
|
-
huaweicloudsdkelb-3.1.
|
517
|
-
huaweicloudsdkelb-3.1.
|
518
|
-
huaweicloudsdkelb-3.1.
|
519
|
-
huaweicloudsdkelb-3.1.
|
514
|
+
huaweicloudsdkelb/v3/region/elb_region.py,sha256=g9SC9aeIrBd9-gXO0npzwErIFzo71TiRJ2H3kTB6LEk,3980
|
515
|
+
huaweicloudsdkelb-3.1.79.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
516
|
+
huaweicloudsdkelb-3.1.79.dist-info/METADATA,sha256=076tvUplJdL591dx65huNeoPLk60jgzZ5QgiIEoc0o0,1134
|
517
|
+
huaweicloudsdkelb-3.1.79.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
|
518
|
+
huaweicloudsdkelb-3.1.79.dist-info/top_level.txt,sha256=n-r_Wj0AX2fj4WTv4KfKcY1tvujeWE_uuqGR-Geoa4Y,18
|
519
|
+
huaweicloudsdkelb-3.1.79.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|