huaweicloudsdkelb 3.1.132__py2.py3-none-any.whl → 3.1.133__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.133.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/RECORD +112 -73
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/top_level.txt +0 -0
@@ -99,6 +99,84 @@ class ElbClient(Client):
|
|
99
99
|
|
100
100
|
return http_info
|
101
101
|
|
102
|
+
def batch_create_load_balancers(self, request):
|
103
|
+
"""批量创建负载均衡器
|
104
|
+
|
105
|
+
[批量创建独享型或者共享型负载均衡器,包括按需及包周期计费负载均衡器。](tag:hws)
|
106
|
+
[批量创建独享型或者共享型负载均衡器。](tag:hws_hk,hws_eu,hws_eu_wb,hws_test,dt,ctc,cmcc,sbc,hk_sbc)
|
107
|
+
[批量创建负载均衡器。](tag:hcso,hk_vdf,srg,fcs,tm,hk_tm,ct)
|
108
|
+
- 若要创建内网IPv4负载均衡器,则需要传入vip_subnet_cidr_id。
|
109
|
+
- 若要创建公网IPv4负载均衡器,则需要传入publicip,以及传入vpc_id和vip_subnet_cidr_id这两个参数中的一个。
|
110
|
+
- 若要绑定有已有公网IPv4地址,则需要传入publicip_ids,以及传入vpc_id和vip_subnet_cidr_id这两个参数中的一个。
|
111
|
+
- 若要创建内网双栈负载均衡器,则需要传入ipv6_vip_virsubnet_id。
|
112
|
+
- 若要创建公网双栈负载均衡器,则需要传入ipv6_vip_virsubnet_id和ipv6_bandwidth。
|
113
|
+
- 若要创建网络型负载均衡器,则需要传入l4_flavor_id(网络型规格ID);若要创建应用型负载均衡器,则需要传入l7_flavor_id(应用型规格ID);若要创建网络型+应用型负载均衡器,则需要传入l4_flavor_id和l7_flavor_id。
|
114
|
+
- 如果批量创建的负载均衡器数量大于1,则不支持绑定已有的公网IP,且不支持指定ipv4和ipv6地址。即number大于1时,不支持传入publicip_ids,vip_address和ipv6_vip_address字段。
|
115
|
+
[- 若要创建包周期负载均衡器,则需要传入prepaid_options,否则创建按需计费负载均衡器。](tag:hws)
|
116
|
+
- 按需计费分为固定规格计费和弹性规格计费,根据创建时所选规格的类型决定计费方式。具体规格说明见创建LB请求参数l4_flavor_id和l7_flavor_id。
|
117
|
+
- 异步接口,返回体中包含需要批量创建的负载均衡的ID列表和批量创建负载均衡器的job ID,可以通过job ID查询当前批量创建负载均衡器的进度。
|
118
|
+
- 批量创建独享型和共享型实例时,请求体传参规则有所不同,具体见请求体说明中各个参数的解释。
|
119
|
+
|
120
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
121
|
+
|
122
|
+
:param request: Request instance for BatchCreateLoadBalancers
|
123
|
+
:type request: :class:`huaweicloudsdkelb.v3.BatchCreateLoadBalancersRequest`
|
124
|
+
:rtype: :class:`huaweicloudsdkelb.v3.BatchCreateLoadBalancersResponse`
|
125
|
+
"""
|
126
|
+
http_info = self._batch_create_load_balancers_http_info(request)
|
127
|
+
return self._call_api(**http_info)
|
128
|
+
|
129
|
+
def batch_create_load_balancers_invoker(self, request):
|
130
|
+
http_info = self._batch_create_load_balancers_http_info(request)
|
131
|
+
return SyncInvoker(self, http_info)
|
132
|
+
|
133
|
+
@classmethod
|
134
|
+
def _batch_create_load_balancers_http_info(cls, request):
|
135
|
+
http_info = {
|
136
|
+
"method": "POST",
|
137
|
+
"resource_path": "/v3/{project_id}/elb/loadbalancers/batch-create",
|
138
|
+
"request_type": request.__class__.__name__,
|
139
|
+
"response_type": "BatchCreateLoadBalancersResponse"
|
140
|
+
}
|
141
|
+
|
142
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
143
|
+
|
144
|
+
cname = None
|
145
|
+
|
146
|
+
collection_formats = {}
|
147
|
+
|
148
|
+
path_params = {}
|
149
|
+
|
150
|
+
query_params = []
|
151
|
+
|
152
|
+
header_params = {}
|
153
|
+
|
154
|
+
form_params = {}
|
155
|
+
|
156
|
+
body = None
|
157
|
+
if 'body' in local_var_params:
|
158
|
+
body = local_var_params['body']
|
159
|
+
if isinstance(request, SdkStreamRequest):
|
160
|
+
body = request.get_file_stream()
|
161
|
+
|
162
|
+
response_headers = []
|
163
|
+
|
164
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
165
|
+
['application/json;charset=UTF-8'])
|
166
|
+
|
167
|
+
auth_settings = []
|
168
|
+
|
169
|
+
http_info["cname"] = cname
|
170
|
+
http_info["collection_formats"] = collection_formats
|
171
|
+
http_info["path_params"] = path_params
|
172
|
+
http_info["query_params"] = query_params
|
173
|
+
http_info["header_params"] = header_params
|
174
|
+
http_info["post_params"] = form_params
|
175
|
+
http_info["body"] = body
|
176
|
+
http_info["response_headers"] = response_headers
|
177
|
+
|
178
|
+
return http_info
|
179
|
+
|
102
180
|
def batch_create_members(self, request):
|
103
181
|
"""批量创建后端服务器
|
104
182
|
|
@@ -501,6 +579,73 @@ class ElbClient(Client):
|
|
501
579
|
|
502
580
|
return http_info
|
503
581
|
|
582
|
+
def clone_loadbalancer(self, request):
|
583
|
+
"""复制已有负载均衡器
|
584
|
+
|
585
|
+
复制已有的负载均衡器实例。
|
586
|
+
|
587
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
588
|
+
|
589
|
+
:param request: Request instance for CloneLoadbalancer
|
590
|
+
:type request: :class:`huaweicloudsdkelb.v3.CloneLoadbalancerRequest`
|
591
|
+
:rtype: :class:`huaweicloudsdkelb.v3.CloneLoadbalancerResponse`
|
592
|
+
"""
|
593
|
+
http_info = self._clone_loadbalancer_http_info(request)
|
594
|
+
return self._call_api(**http_info)
|
595
|
+
|
596
|
+
def clone_loadbalancer_invoker(self, request):
|
597
|
+
http_info = self._clone_loadbalancer_http_info(request)
|
598
|
+
return SyncInvoker(self, http_info)
|
599
|
+
|
600
|
+
@classmethod
|
601
|
+
def _clone_loadbalancer_http_info(cls, request):
|
602
|
+
http_info = {
|
603
|
+
"method": "POST",
|
604
|
+
"resource_path": "/v3/{project_id}/elb/loadbalancers/{loadbalancer_id}/clone",
|
605
|
+
"request_type": request.__class__.__name__,
|
606
|
+
"response_type": "CloneLoadbalancerResponse"
|
607
|
+
}
|
608
|
+
|
609
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
610
|
+
|
611
|
+
cname = None
|
612
|
+
|
613
|
+
collection_formats = {}
|
614
|
+
|
615
|
+
path_params = {}
|
616
|
+
if 'loadbalancer_id' in local_var_params:
|
617
|
+
path_params['loadbalancer_id'] = local_var_params['loadbalancer_id']
|
618
|
+
|
619
|
+
query_params = []
|
620
|
+
|
621
|
+
header_params = {}
|
622
|
+
|
623
|
+
form_params = {}
|
624
|
+
|
625
|
+
body = None
|
626
|
+
if 'body' in local_var_params:
|
627
|
+
body = local_var_params['body']
|
628
|
+
if isinstance(request, SdkStreamRequest):
|
629
|
+
body = request.get_file_stream()
|
630
|
+
|
631
|
+
response_headers = []
|
632
|
+
|
633
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
634
|
+
['application/json;charset=UTF-8'])
|
635
|
+
|
636
|
+
auth_settings = []
|
637
|
+
|
638
|
+
http_info["cname"] = cname
|
639
|
+
http_info["collection_formats"] = collection_formats
|
640
|
+
http_info["path_params"] = path_params
|
641
|
+
http_info["query_params"] = query_params
|
642
|
+
http_info["header_params"] = header_params
|
643
|
+
http_info["post_params"] = form_params
|
644
|
+
http_info["body"] = body
|
645
|
+
http_info["response_headers"] = response_headers
|
646
|
+
|
647
|
+
return http_info
|
648
|
+
|
504
649
|
def create_certificate(self, request):
|
505
650
|
"""创建证书
|
506
651
|
|
@@ -896,18 +1041,21 @@ class ElbClient(Client):
|
|
896
1041
|
def create_load_balancer(self, request):
|
897
1042
|
"""创建负载均衡器
|
898
1043
|
|
899
|
-
创建独享型负载均衡器,包括按需及包周期计费负载均衡器。
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
1044
|
+
[创建独享型负载均衡器,包括按需及包周期计费负载均衡器。](tag:hws)
|
1045
|
+
[创建独享型负载均衡器。](tag:hws_hk,hws_eu,hws_eu_wb,hws_test,dt,ctc,cmcc,sbc,hk_sbc)
|
1046
|
+
[创建负载均衡器。](tag:hcso,hk_vdf,srg,fcs,tm,hk_tm,ct)
|
1047
|
+
|
1048
|
+
- 若要创建内网IPv4负载均衡器,则需要传入vip_subnet_cidr_id。
|
1049
|
+
- 若要创建公网IPv4负载均衡器,则需要传入publicip,以及传入vpc_id和vip_subnet_cidr_id这两个参数中的一个。
|
1050
|
+
- 若要绑定有已有公网IPv4地址,则需要传入publicip_ids,以及传入vpc_id和vip_subnet_cidr_id这两个参数中的一个。
|
1051
|
+
- 若要创建内网双栈负载均衡器,则需要传入ipv6_vip_virsubnet_id。
|
1052
|
+
- 若要创建公网双栈负载均衡器,则需要传入ipv6_vip_virsubnet_id和ipv6_bandwidth。
|
1053
|
+
- 若要创建网络型负载均衡器,则需要传入l4_flavor_id(网络型规格ID);若要创建应用型负载均衡器,则需要传入l7_flavor_id(应用型规格ID);若要创建网络型+应用型负载均衡器,则需要传入l4_flavor_id和l7_flavor_id。
|
1054
|
+
[- 若要创建包周期负载均衡器,则需要传入prepaid_options,否则创建按需计费负载均衡器。](tag:hws)
|
1055
|
+
- 按需计费分为固定规格计费和弹性规格计费,根据创建时所选规格的类型决定计费方式。具体规格说明见创建LB请求参数l4_flavor_id和l7_flavor_id。
|
1056
|
+
[- 若要创建gateway类型的负载均衡器,则需要:
|
909
1057
|
- 指定loadbalancer_type=\"gateway\",且不支持指定vip_address,ipv6_vip_address。
|
910
|
-
- vip_subnet_cidr_id和ipv6_subnet_cidr_id两者不能都为空,如果两者都传入,则必须属于同一子网。
|
1058
|
+
- vip_subnet_cidr_id和ipv6_subnet_cidr_id两者不能都为空,如果两者都传入,则必须属于同一子网。
|
911
1059
|
- 不支持创建公网gateway类型LB。
|
912
1060
|
- 如果要指定规格,则从请求参数gw_flavor_id传入。](tag:hws_eu)
|
913
1061
|
|
@@ -1757,10 +1905,80 @@ class ElbClient(Client):
|
|
1757
1905
|
|
1758
1906
|
return http_info
|
1759
1907
|
|
1908
|
+
def delete_load_balancer_cascade(self, request):
|
1909
|
+
"""级联删除负载均衡器及关联EIP
|
1910
|
+
|
1911
|
+
删除负载均衡器且级联删除其下子资源(删除负载均衡器及其绑定的监听器、后端服务器等一系列资源)。以及根据需要删除或解绑后端服务器组和LB关联的EIP。
|
1912
|
+
|
1913
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1914
|
+
|
1915
|
+
:param request: Request instance for DeleteLoadBalancerCascade
|
1916
|
+
:type request: :class:`huaweicloudsdkelb.v3.DeleteLoadBalancerCascadeRequest`
|
1917
|
+
:rtype: :class:`huaweicloudsdkelb.v3.DeleteLoadBalancerCascadeResponse`
|
1918
|
+
"""
|
1919
|
+
http_info = self._delete_load_balancer_cascade_http_info(request)
|
1920
|
+
return self._call_api(**http_info)
|
1921
|
+
|
1922
|
+
def delete_load_balancer_cascade_invoker(self, request):
|
1923
|
+
http_info = self._delete_load_balancer_cascade_http_info(request)
|
1924
|
+
return SyncInvoker(self, http_info)
|
1925
|
+
|
1926
|
+
@classmethod
|
1927
|
+
def _delete_load_balancer_cascade_http_info(cls, request):
|
1928
|
+
http_info = {
|
1929
|
+
"method": "POST",
|
1930
|
+
"resource_path": "/v3/{project_id}/elb/loadbalancers/{loadbalancer_id}/delete-cascade",
|
1931
|
+
"request_type": request.__class__.__name__,
|
1932
|
+
"response_type": "DeleteLoadBalancerCascadeResponse"
|
1933
|
+
}
|
1934
|
+
|
1935
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1936
|
+
|
1937
|
+
cname = None
|
1938
|
+
|
1939
|
+
collection_formats = {}
|
1940
|
+
|
1941
|
+
path_params = {}
|
1942
|
+
if 'loadbalancer_id' in local_var_params:
|
1943
|
+
path_params['loadbalancer_id'] = local_var_params['loadbalancer_id']
|
1944
|
+
|
1945
|
+
query_params = []
|
1946
|
+
|
1947
|
+
header_params = {}
|
1948
|
+
|
1949
|
+
form_params = {}
|
1950
|
+
|
1951
|
+
body = None
|
1952
|
+
if 'body' in local_var_params:
|
1953
|
+
body = local_var_params['body']
|
1954
|
+
if isinstance(request, SdkStreamRequest):
|
1955
|
+
body = request.get_file_stream()
|
1956
|
+
|
1957
|
+
response_headers = []
|
1958
|
+
|
1959
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1960
|
+
['application/json;charset=UTF-8'])
|
1961
|
+
|
1962
|
+
auth_settings = []
|
1963
|
+
|
1964
|
+
http_info["cname"] = cname
|
1965
|
+
http_info["collection_formats"] = collection_formats
|
1966
|
+
http_info["path_params"] = path_params
|
1967
|
+
http_info["query_params"] = query_params
|
1968
|
+
http_info["header_params"] = header_params
|
1969
|
+
http_info["post_params"] = form_params
|
1970
|
+
http_info["body"] = body
|
1971
|
+
http_info["response_headers"] = response_headers
|
1972
|
+
|
1973
|
+
return http_info
|
1974
|
+
|
1760
1975
|
def delete_load_balancer_force(self, request):
|
1761
1976
|
"""级联删除负载均衡器
|
1762
1977
|
|
1763
|
-
|
1978
|
+
删除负载均衡器且级联删除其下子资源(删除负载均衡器及其绑定的监听器、后端服务器组、后端服务器等一系列资源)。
|
1979
|
+
- 若LB关联了EIP,则只解绑EIP,不会删除EIP。
|
1980
|
+
[- 若已开启多挂特性,且关联了多个LB,则只做解绑;否则删除。
|
1981
|
+
- 若是共享型LB下的后端服务器组,无论是否多挂都只删除,不解绑。](tag:hc,hk)
|
1764
1982
|
|
1765
1983
|
Please refer to HUAWEI cloud API Explorer for details.
|
1766
1984
|
|
@@ -2084,6 +2302,71 @@ class ElbClient(Client):
|
|
2084
2302
|
|
2085
2303
|
return http_info
|
2086
2304
|
|
2305
|
+
def delete_pool_cascade(self, request):
|
2306
|
+
"""级联删除后端服务器组
|
2307
|
+
|
2308
|
+
级联删除后端服务器组,包含在此后端服务器组下的所有后端服务器和健康检查也将被删除。
|
2309
|
+
|
2310
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2311
|
+
|
2312
|
+
:param request: Request instance for DeletePoolCascade
|
2313
|
+
:type request: :class:`huaweicloudsdkelb.v3.DeletePoolCascadeRequest`
|
2314
|
+
:rtype: :class:`huaweicloudsdkelb.v3.DeletePoolCascadeResponse`
|
2315
|
+
"""
|
2316
|
+
http_info = self._delete_pool_cascade_http_info(request)
|
2317
|
+
return self._call_api(**http_info)
|
2318
|
+
|
2319
|
+
def delete_pool_cascade_invoker(self, request):
|
2320
|
+
http_info = self._delete_pool_cascade_http_info(request)
|
2321
|
+
return SyncInvoker(self, http_info)
|
2322
|
+
|
2323
|
+
@classmethod
|
2324
|
+
def _delete_pool_cascade_http_info(cls, request):
|
2325
|
+
http_info = {
|
2326
|
+
"method": "DELETE",
|
2327
|
+
"resource_path": "/v3/{project_id}/elb/pools/{pool_id}/delete-cascade",
|
2328
|
+
"request_type": request.__class__.__name__,
|
2329
|
+
"response_type": "DeletePoolCascadeResponse"
|
2330
|
+
}
|
2331
|
+
|
2332
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2333
|
+
|
2334
|
+
cname = None
|
2335
|
+
|
2336
|
+
collection_formats = {}
|
2337
|
+
|
2338
|
+
path_params = {}
|
2339
|
+
if 'pool_id' in local_var_params:
|
2340
|
+
path_params['pool_id'] = local_var_params['pool_id']
|
2341
|
+
|
2342
|
+
query_params = []
|
2343
|
+
|
2344
|
+
header_params = {}
|
2345
|
+
|
2346
|
+
form_params = {}
|
2347
|
+
|
2348
|
+
body = None
|
2349
|
+
if isinstance(request, SdkStreamRequest):
|
2350
|
+
body = request.get_file_stream()
|
2351
|
+
|
2352
|
+
response_headers = []
|
2353
|
+
|
2354
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2355
|
+
['application/json'])
|
2356
|
+
|
2357
|
+
auth_settings = []
|
2358
|
+
|
2359
|
+
http_info["cname"] = cname
|
2360
|
+
http_info["collection_formats"] = collection_formats
|
2361
|
+
http_info["path_params"] = path_params
|
2362
|
+
http_info["query_params"] = query_params
|
2363
|
+
http_info["header_params"] = header_params
|
2364
|
+
http_info["post_params"] = form_params
|
2365
|
+
http_info["body"] = body
|
2366
|
+
http_info["response_headers"] = response_headers
|
2367
|
+
|
2368
|
+
return http_info
|
2369
|
+
|
2087
2370
|
def delete_security_policy(self, request):
|
2088
2371
|
"""删除自定义安全策略
|
2089
2372
|
|
@@ -2261,6 +2544,8 @@ class ElbClient(Client):
|
|
2261
2544
|
- 默认情况下,会返回一个可用区集合。
|
2262
2545
|
在(如创建LB)设置可用区时,填写的可用区必须包含在可用区集合中、为这个可用区集合的子集。
|
2263
2546
|
|
2547
|
+
- 如果传入了loadbalancer_id,则返回该负载均衡器所在集群的可用区集合
|
2548
|
+
|
2264
2549
|
- 特殊场景下,部分客户要求负载均衡只能创建在指定可用区集合中,此时会返回客户定制的可用区集合。
|
2265
2550
|
返回可用区集合可能为一个也可能为多个,比如列表有两个可用区集合\\[az1,az2\\],\\[az2,az3\\]。
|
2266
2551
|
在创建负载均衡器时,可以选择创建在多个可用区,但所选的多个可用区必须同属于其中一个可用区集合,
|
@@ -2299,6 +2584,8 @@ class ElbClient(Client):
|
|
2299
2584
|
query_params = []
|
2300
2585
|
if 'public_border_group' in local_var_params:
|
2301
2586
|
query_params.append(('public_border_group', local_var_params['public_border_group']))
|
2587
|
+
if 'loadbalancer_id' in local_var_params:
|
2588
|
+
query_params.append(('loadbalancer_id', local_var_params['loadbalancer_id']))
|
2302
2589
|
|
2303
2590
|
header_params = {}
|
2304
2591
|
|
@@ -2385,6 +2672,9 @@ class ElbClient(Client):
|
|
2385
2672
|
if 'type' in local_var_params:
|
2386
2673
|
query_params.append(('type', local_var_params['type']))
|
2387
2674
|
collection_formats['type'] = 'multi'
|
2675
|
+
if 'scm_certificate_id' in local_var_params:
|
2676
|
+
query_params.append(('scm_certificate_id', local_var_params['scm_certificate_id']))
|
2677
|
+
collection_formats['scm_certificate_id'] = 'multi'
|
2388
2678
|
if 'common_name' in local_var_params:
|
2389
2679
|
query_params.append(('common_name', local_var_params['common_name']))
|
2390
2680
|
collection_formats['common_name'] = 'multi'
|
@@ -2418,6 +2708,71 @@ class ElbClient(Client):
|
|
2418
2708
|
|
2419
2709
|
return http_info
|
2420
2710
|
|
2711
|
+
def list_feature_configs(self, request):
|
2712
|
+
"""查询当前租户ELB服务的特性配置
|
2713
|
+
|
2714
|
+
查询当前租户ELB服务的特性配置。
|
2715
|
+
|
2716
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2717
|
+
|
2718
|
+
:param request: Request instance for ListFeatureConfigs
|
2719
|
+
:type request: :class:`huaweicloudsdkelb.v3.ListFeatureConfigsRequest`
|
2720
|
+
:rtype: :class:`huaweicloudsdkelb.v3.ListFeatureConfigsResponse`
|
2721
|
+
"""
|
2722
|
+
http_info = self._list_feature_configs_http_info(request)
|
2723
|
+
return self._call_api(**http_info)
|
2724
|
+
|
2725
|
+
def list_feature_configs_invoker(self, request):
|
2726
|
+
http_info = self._list_feature_configs_http_info(request)
|
2727
|
+
return SyncInvoker(self, http_info)
|
2728
|
+
|
2729
|
+
@classmethod
|
2730
|
+
def _list_feature_configs_http_info(cls, request):
|
2731
|
+
http_info = {
|
2732
|
+
"method": "GET",
|
2733
|
+
"resource_path": "/v3/{project_id}/elb/feature/configs",
|
2734
|
+
"request_type": request.__class__.__name__,
|
2735
|
+
"response_type": "ListFeatureConfigsResponse"
|
2736
|
+
}
|
2737
|
+
|
2738
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2739
|
+
|
2740
|
+
cname = None
|
2741
|
+
|
2742
|
+
collection_formats = {}
|
2743
|
+
|
2744
|
+
path_params = {}
|
2745
|
+
|
2746
|
+
query_params = []
|
2747
|
+
if 'feature' in local_var_params:
|
2748
|
+
query_params.append(('feature', local_var_params['feature']))
|
2749
|
+
|
2750
|
+
header_params = {}
|
2751
|
+
|
2752
|
+
form_params = {}
|
2753
|
+
|
2754
|
+
body = None
|
2755
|
+
if isinstance(request, SdkStreamRequest):
|
2756
|
+
body = request.get_file_stream()
|
2757
|
+
|
2758
|
+
response_headers = []
|
2759
|
+
|
2760
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2761
|
+
['application/json'])
|
2762
|
+
|
2763
|
+
auth_settings = []
|
2764
|
+
|
2765
|
+
http_info["cname"] = cname
|
2766
|
+
http_info["collection_formats"] = collection_formats
|
2767
|
+
http_info["path_params"] = path_params
|
2768
|
+
http_info["query_params"] = query_params
|
2769
|
+
http_info["header_params"] = header_params
|
2770
|
+
http_info["post_params"] = form_params
|
2771
|
+
http_info["body"] = body
|
2772
|
+
http_info["response_headers"] = response_headers
|
2773
|
+
|
2774
|
+
return http_info
|
2775
|
+
|
2421
2776
|
def list_flavors(self, request):
|
2422
2777
|
"""查询规格列表
|
2423
2778
|
|
@@ -2471,6 +2826,16 @@ class ElbClient(Client):
|
|
2471
2826
|
collection_formats['type'] = 'multi'
|
2472
2827
|
if 'shared' in local_var_params:
|
2473
2828
|
query_params.append(('shared', local_var_params['shared']))
|
2829
|
+
if 'public_border_group' in local_var_params:
|
2830
|
+
query_params.append(('public_border_group', local_var_params['public_border_group']))
|
2831
|
+
collection_formats['public_border_group'] = 'multi'
|
2832
|
+
if 'category' in local_var_params:
|
2833
|
+
query_params.append(('category', local_var_params['category']))
|
2834
|
+
collection_formats['category'] = 'multi'
|
2835
|
+
if 'list_all' in local_var_params:
|
2836
|
+
query_params.append(('list_all', local_var_params['list_all']))
|
2837
|
+
if 'flavor_sold_out' in local_var_params:
|
2838
|
+
query_params.append(('flavor_sold_out', local_var_params['flavor_sold_out']))
|
2474
2839
|
|
2475
2840
|
header_params = {}
|
2476
2841
|
|
@@ -2607,6 +2972,81 @@ class ElbClient(Client):
|
|
2607
2972
|
|
2608
2973
|
return http_info
|
2609
2974
|
|
2975
|
+
def list_jobs(self, request):
|
2976
|
+
"""查询异步任务的job列表
|
2977
|
+
|
2978
|
+
用于查询实例导出、实例复制、实例升级等异步接口任务的状态。
|
2979
|
+
|
2980
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2981
|
+
|
2982
|
+
:param request: Request instance for ListJobs
|
2983
|
+
:type request: :class:`huaweicloudsdkelb.v3.ListJobsRequest`
|
2984
|
+
:rtype: :class:`huaweicloudsdkelb.v3.ListJobsResponse`
|
2985
|
+
"""
|
2986
|
+
http_info = self._list_jobs_http_info(request)
|
2987
|
+
return self._call_api(**http_info)
|
2988
|
+
|
2989
|
+
def list_jobs_invoker(self, request):
|
2990
|
+
http_info = self._list_jobs_http_info(request)
|
2991
|
+
return SyncInvoker(self, http_info)
|
2992
|
+
|
2993
|
+
@classmethod
|
2994
|
+
def _list_jobs_http_info(cls, request):
|
2995
|
+
http_info = {
|
2996
|
+
"method": "GET",
|
2997
|
+
"resource_path": "/v3/{project_id}/elb/jobs",
|
2998
|
+
"request_type": request.__class__.__name__,
|
2999
|
+
"response_type": "ListJobsResponse"
|
3000
|
+
}
|
3001
|
+
|
3002
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3003
|
+
|
3004
|
+
cname = None
|
3005
|
+
|
3006
|
+
collection_formats = {}
|
3007
|
+
|
3008
|
+
path_params = {}
|
3009
|
+
|
3010
|
+
query_params = []
|
3011
|
+
if 'job_id' in local_var_params:
|
3012
|
+
query_params.append(('job_id', local_var_params['job_id']))
|
3013
|
+
if 'job_type' in local_var_params:
|
3014
|
+
query_params.append(('job_type', local_var_params['job_type']))
|
3015
|
+
if 'status' in local_var_params:
|
3016
|
+
query_params.append(('status', local_var_params['status']))
|
3017
|
+
if 'error_code' in local_var_params:
|
3018
|
+
query_params.append(('error_code', local_var_params['error_code']))
|
3019
|
+
if 'resource_id' in local_var_params:
|
3020
|
+
query_params.append(('resource_id', local_var_params['resource_id']))
|
3021
|
+
if 'begin_time' in local_var_params:
|
3022
|
+
query_params.append(('begin_time', local_var_params['begin_time']))
|
3023
|
+
|
3024
|
+
header_params = {}
|
3025
|
+
|
3026
|
+
form_params = {}
|
3027
|
+
|
3028
|
+
body = None
|
3029
|
+
if isinstance(request, SdkStreamRequest):
|
3030
|
+
body = request.get_file_stream()
|
3031
|
+
|
3032
|
+
response_headers = []
|
3033
|
+
|
3034
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3035
|
+
['application/json'])
|
3036
|
+
|
3037
|
+
auth_settings = []
|
3038
|
+
|
3039
|
+
http_info["cname"] = cname
|
3040
|
+
http_info["collection_formats"] = collection_formats
|
3041
|
+
http_info["path_params"] = path_params
|
3042
|
+
http_info["query_params"] = query_params
|
3043
|
+
http_info["header_params"] = header_params
|
3044
|
+
http_info["post_params"] = form_params
|
3045
|
+
http_info["body"] = body
|
3046
|
+
http_info["response_headers"] = response_headers
|
3047
|
+
|
3048
|
+
return http_info
|
3049
|
+
|
2610
3050
|
def list_l7_policies(self, request):
|
2611
3051
|
"""查询转发策略列表
|
2612
3052
|
|
@@ -2923,6 +3363,10 @@ class ElbClient(Client):
|
|
2923
3363
|
if 'protection_status' in local_var_params:
|
2924
3364
|
query_params.append(('protection_status', local_var_params['protection_status']))
|
2925
3365
|
collection_formats['protection_status'] = 'csv'
|
3366
|
+
if 'ssl_early_data_enable' in local_var_params:
|
3367
|
+
query_params.append(('ssl_early_data_enable', local_var_params['ssl_early_data_enable']))
|
3368
|
+
if 'nat64_enable' in local_var_params:
|
3369
|
+
query_params.append(('nat64_enable', local_var_params['nat64_enable']))
|
2926
3370
|
|
2927
3371
|
header_params = {}
|
2928
3372
|
|
@@ -3113,6 +3557,71 @@ class ElbClient(Client):
|
|
3113
3557
|
|
3114
3558
|
return http_info
|
3115
3559
|
|
3560
|
+
def list_loadbalancer_feature(self, request):
|
3561
|
+
"""查询指定ELB实例的特性配置
|
3562
|
+
|
3563
|
+
查询指定ELB实例的特性配置情况。
|
3564
|
+
|
3565
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3566
|
+
|
3567
|
+
:param request: Request instance for ListLoadbalancerFeature
|
3568
|
+
:type request: :class:`huaweicloudsdkelb.v3.ListLoadbalancerFeatureRequest`
|
3569
|
+
:rtype: :class:`huaweicloudsdkelb.v3.ListLoadbalancerFeatureResponse`
|
3570
|
+
"""
|
3571
|
+
http_info = self._list_loadbalancer_feature_http_info(request)
|
3572
|
+
return self._call_api(**http_info)
|
3573
|
+
|
3574
|
+
def list_loadbalancer_feature_invoker(self, request):
|
3575
|
+
http_info = self._list_loadbalancer_feature_http_info(request)
|
3576
|
+
return SyncInvoker(self, http_info)
|
3577
|
+
|
3578
|
+
@classmethod
|
3579
|
+
def _list_loadbalancer_feature_http_info(cls, request):
|
3580
|
+
http_info = {
|
3581
|
+
"method": "GET",
|
3582
|
+
"resource_path": "/v3/{project_id}/elb/loadbalancers/{loadbalancer_id}/features",
|
3583
|
+
"request_type": request.__class__.__name__,
|
3584
|
+
"response_type": "ListLoadbalancerFeatureResponse"
|
3585
|
+
}
|
3586
|
+
|
3587
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3588
|
+
|
3589
|
+
cname = None
|
3590
|
+
|
3591
|
+
collection_formats = {}
|
3592
|
+
|
3593
|
+
path_params = {}
|
3594
|
+
if 'loadbalancer_id' in local_var_params:
|
3595
|
+
path_params['loadbalancer_id'] = local_var_params['loadbalancer_id']
|
3596
|
+
|
3597
|
+
query_params = []
|
3598
|
+
|
3599
|
+
header_params = {}
|
3600
|
+
|
3601
|
+
form_params = {}
|
3602
|
+
|
3603
|
+
body = None
|
3604
|
+
if isinstance(request, SdkStreamRequest):
|
3605
|
+
body = request.get_file_stream()
|
3606
|
+
|
3607
|
+
response_headers = []
|
3608
|
+
|
3609
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3610
|
+
['application/json'])
|
3611
|
+
|
3612
|
+
auth_settings = []
|
3613
|
+
|
3614
|
+
http_info["cname"] = cname
|
3615
|
+
http_info["collection_formats"] = collection_formats
|
3616
|
+
http_info["path_params"] = path_params
|
3617
|
+
http_info["query_params"] = query_params
|
3618
|
+
http_info["header_params"] = header_params
|
3619
|
+
http_info["post_params"] = form_params
|
3620
|
+
http_info["body"] = body
|
3621
|
+
http_info["response_headers"] = response_headers
|
3622
|
+
|
3623
|
+
return http_info
|
3624
|
+
|
3116
3625
|
def list_logtanks(self, request):
|
3117
3626
|
"""查询云日志列表
|
3118
3627
|
|
@@ -3521,6 +4030,10 @@ class ElbClient(Client):
|
|
3521
4030
|
query_params.append(('any_port_enable', local_var_params['any_port_enable']))
|
3522
4031
|
if 'public_border_group' in local_var_params:
|
3523
4032
|
query_params.append(('public_border_group', local_var_params['public_border_group']))
|
4033
|
+
if 'quic_cid_len' in local_var_params:
|
4034
|
+
query_params.append(('quic_cid_len', local_var_params['quic_cid_len']))
|
4035
|
+
if 'quic_cid_offset' in local_var_params:
|
4036
|
+
query_params.append(('quic_cid_offset', local_var_params['quic_cid_offset']))
|
3524
4037
|
|
3525
4038
|
header_params = {}
|
3526
4039
|
|
@@ -4021,6 +4534,71 @@ class ElbClient(Client):
|
|
4021
4534
|
|
4022
4535
|
return http_info
|
4023
4536
|
|
4537
|
+
def show_job(self, request):
|
4538
|
+
"""查询异步任务的job状态
|
4539
|
+
|
4540
|
+
用于查询模板导入、实例复制、实例升级等异步接口任务的状态
|
4541
|
+
|
4542
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4543
|
+
|
4544
|
+
:param request: Request instance for ShowJob
|
4545
|
+
:type request: :class:`huaweicloudsdkelb.v3.ShowJobRequest`
|
4546
|
+
:rtype: :class:`huaweicloudsdkelb.v3.ShowJobResponse`
|
4547
|
+
"""
|
4548
|
+
http_info = self._show_job_http_info(request)
|
4549
|
+
return self._call_api(**http_info)
|
4550
|
+
|
4551
|
+
def show_job_invoker(self, request):
|
4552
|
+
http_info = self._show_job_http_info(request)
|
4553
|
+
return SyncInvoker(self, http_info)
|
4554
|
+
|
4555
|
+
@classmethod
|
4556
|
+
def _show_job_http_info(cls, request):
|
4557
|
+
http_info = {
|
4558
|
+
"method": "GET",
|
4559
|
+
"resource_path": "/v3/{project_id}/elb/jobs/{job_id}",
|
4560
|
+
"request_type": request.__class__.__name__,
|
4561
|
+
"response_type": "ShowJobResponse"
|
4562
|
+
}
|
4563
|
+
|
4564
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4565
|
+
|
4566
|
+
cname = None
|
4567
|
+
|
4568
|
+
collection_formats = {}
|
4569
|
+
|
4570
|
+
path_params = {}
|
4571
|
+
if 'job_id' in local_var_params:
|
4572
|
+
path_params['job_id'] = local_var_params['job_id']
|
4573
|
+
|
4574
|
+
query_params = []
|
4575
|
+
|
4576
|
+
header_params = {}
|
4577
|
+
|
4578
|
+
form_params = {}
|
4579
|
+
|
4580
|
+
body = None
|
4581
|
+
if isinstance(request, SdkStreamRequest):
|
4582
|
+
body = request.get_file_stream()
|
4583
|
+
|
4584
|
+
response_headers = []
|
4585
|
+
|
4586
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4587
|
+
['application/json'])
|
4588
|
+
|
4589
|
+
auth_settings = []
|
4590
|
+
|
4591
|
+
http_info["cname"] = cname
|
4592
|
+
http_info["collection_formats"] = collection_formats
|
4593
|
+
http_info["path_params"] = path_params
|
4594
|
+
http_info["query_params"] = query_params
|
4595
|
+
http_info["header_params"] = header_params
|
4596
|
+
http_info["post_params"] = form_params
|
4597
|
+
http_info["body"] = body
|
4598
|
+
http_info["response_headers"] = response_headers
|
4599
|
+
|
4600
|
+
return http_info
|
4601
|
+
|
4024
4602
|
def show_l7_policy(self, request):
|
4025
4603
|
"""查询转发策略详情
|
4026
4604
|
|
@@ -5415,6 +5993,73 @@ class ElbClient(Client):
|
|
5415
5993
|
|
5416
5994
|
return http_info
|
5417
5995
|
|
5996
|
+
def upgrade_loadbalancer(self, request):
|
5997
|
+
"""升级负载均衡器类型
|
5998
|
+
|
5999
|
+
升级负载均衡器类型。支持将共享型ELB升级为独享型ELB,但不支持独享型降级为共享型。
|
6000
|
+
|
6001
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6002
|
+
|
6003
|
+
:param request: Request instance for UpgradeLoadbalancer
|
6004
|
+
:type request: :class:`huaweicloudsdkelb.v3.UpgradeLoadbalancerRequest`
|
6005
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpgradeLoadbalancerResponse`
|
6006
|
+
"""
|
6007
|
+
http_info = self._upgrade_loadbalancer_http_info(request)
|
6008
|
+
return self._call_api(**http_info)
|
6009
|
+
|
6010
|
+
def upgrade_loadbalancer_invoker(self, request):
|
6011
|
+
http_info = self._upgrade_loadbalancer_http_info(request)
|
6012
|
+
return SyncInvoker(self, http_info)
|
6013
|
+
|
6014
|
+
@classmethod
|
6015
|
+
def _upgrade_loadbalancer_http_info(cls, request):
|
6016
|
+
http_info = {
|
6017
|
+
"method": "POST",
|
6018
|
+
"resource_path": "/v3/{project_id}/elb/loadbalancers/{loadbalancer_id}/upgrade",
|
6019
|
+
"request_type": request.__class__.__name__,
|
6020
|
+
"response_type": "UpgradeLoadbalancerResponse"
|
6021
|
+
}
|
6022
|
+
|
6023
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6024
|
+
|
6025
|
+
cname = None
|
6026
|
+
|
6027
|
+
collection_formats = {}
|
6028
|
+
|
6029
|
+
path_params = {}
|
6030
|
+
if 'loadbalancer_id' in local_var_params:
|
6031
|
+
path_params['loadbalancer_id'] = local_var_params['loadbalancer_id']
|
6032
|
+
|
6033
|
+
query_params = []
|
6034
|
+
|
6035
|
+
header_params = {}
|
6036
|
+
|
6037
|
+
form_params = {}
|
6038
|
+
|
6039
|
+
body = None
|
6040
|
+
if 'body' in local_var_params:
|
6041
|
+
body = local_var_params['body']
|
6042
|
+
if isinstance(request, SdkStreamRequest):
|
6043
|
+
body = request.get_file_stream()
|
6044
|
+
|
6045
|
+
response_headers = []
|
6046
|
+
|
6047
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6048
|
+
['application/json;charset=UTF-8'])
|
6049
|
+
|
6050
|
+
auth_settings = []
|
6051
|
+
|
6052
|
+
http_info["cname"] = cname
|
6053
|
+
http_info["collection_formats"] = collection_formats
|
6054
|
+
http_info["path_params"] = path_params
|
6055
|
+
http_info["query_params"] = query_params
|
6056
|
+
http_info["header_params"] = header_params
|
6057
|
+
http_info["post_params"] = form_params
|
6058
|
+
http_info["body"] = body
|
6059
|
+
http_info["response_headers"] = response_headers
|
6060
|
+
|
6061
|
+
return http_info
|
6062
|
+
|
5418
6063
|
def list_api_versions(self, request):
|
5419
6064
|
"""查询API版本列表信息
|
5420
6065
|
|
@@ -5550,20 +6195,26 @@ class ElbClient(Client):
|
|
5550
6195
|
|
5551
6196
|
计算以下几种场景的预占用IP数量:
|
5552
6197
|
|
5553
|
-
- 计算创建LB
|
5554
|
-
|
6198
|
+
- 计算创建LB所需IP数量:
|
6199
|
+
传入字段availability_zone_id,及可选字段l7_flavor_id、ip_target_enable、ip_version,不能传loadbalancer_id。
|
6200
|
+
|
6201
|
+
- 计算创建LB的第一个七层监听器后新增占用IP数量:
|
6202
|
+
传入loadbalancer_id,其他字段不传。
|
5555
6203
|
|
5556
|
-
- 计算LB
|
5557
|
-
|
6204
|
+
- 计算LB变更(规格变更或特性开启)新增占用IP数量:
|
6205
|
+
传入字段loadbalancer_id,及l7_flavor_id不为空或ip_target_enable为true。可以同时传入多个字段,表示同时进行多种变更所需要新增的占用IP数量。
|
5558
6206
|
|
5559
|
-
-
|
5560
|
-
|
6207
|
+
- 计算共享型ELB升级为独享型ELB所需占用IP数量:
|
6208
|
+
传入sence、loadbalancer_id,其他字段不传。
|
6209
|
+
|
6210
|
+
- 计算ELB实例开启NAT64特性所需占用IP数量:
|
6211
|
+
传入nat64_enable、loadbalancer_id,其他字段不传。
|
5561
6212
|
|
5562
6213
|
说明:
|
5563
6214
|
- 计算出来的预占IP数大于等于最终实际占用的IP数。
|
5564
|
-
-
|
6215
|
+
- 新增占用IP数量,不包含已占用的IP数。
|
5565
6216
|
|
5566
|
-
[不支持传入l7_flavor_id](tag:hcso,hk_vdf,fcs
|
6217
|
+
[不支持传入l7_flavor_id。](tag:hcso,hk_vdf,srg,fcs)
|
5567
6218
|
|
5568
6219
|
Please refer to HUAWEI cloud API Explorer for details.
|
5569
6220
|
|
@@ -5607,6 +6258,10 @@ class ElbClient(Client):
|
|
5607
6258
|
if 'availability_zone_id' in local_var_params:
|
5608
6259
|
query_params.append(('availability_zone_id', local_var_params['availability_zone_id']))
|
5609
6260
|
collection_formats['availability_zone_id'] = 'multi'
|
6261
|
+
if 'scene' in local_var_params:
|
6262
|
+
query_params.append(('scene', local_var_params['scene']))
|
6263
|
+
if 'nat64_enable' in local_var_params:
|
6264
|
+
query_params.append(('nat64_enable', local_var_params['nat64_enable']))
|
5610
6265
|
|
5611
6266
|
header_params = {}
|
5612
6267
|
|
@@ -5637,7 +6292,7 @@ class ElbClient(Client):
|
|
5637
6292
|
def create_ip_group(self, request):
|
5638
6293
|
"""创建IP地址组
|
5639
6294
|
|
5640
|
-
创建IP地址组。输入的ip可为ip
|
6295
|
+
创建IP地址组。输入的ip可为ip地址、CIDR子网或者ip地址段,格式为ip-ip,例如10.12.3.1-10.12.3.10,支持IPV4和IPV6。
|
5641
6296
|
|
5642
6297
|
需要注意0.0.0.0与0.0.0.0/32视为重复,0:0:0:0:0:0:0:1与::1与::1/128视为重复,只会保存其中一个。
|
5643
6298
|
|
@@ -5917,11 +6572,76 @@ class ElbClient(Client):
|
|
5917
6572
|
|
5918
6573
|
return http_info
|
5919
6574
|
|
6575
|
+
def show_ip_group_related_listeners(self, request):
|
6576
|
+
"""查询IP地址组关联的监听器列表
|
6577
|
+
|
6578
|
+
查询IP地址组关联的监听器列表。
|
6579
|
+
|
6580
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6581
|
+
|
6582
|
+
:param request: Request instance for ShowIpGroupRelatedListeners
|
6583
|
+
:type request: :class:`huaweicloudsdkelb.v3.ShowIpGroupRelatedListenersRequest`
|
6584
|
+
:rtype: :class:`huaweicloudsdkelb.v3.ShowIpGroupRelatedListenersResponse`
|
6585
|
+
"""
|
6586
|
+
http_info = self._show_ip_group_related_listeners_http_info(request)
|
6587
|
+
return self._call_api(**http_info)
|
6588
|
+
|
6589
|
+
def show_ip_group_related_listeners_invoker(self, request):
|
6590
|
+
http_info = self._show_ip_group_related_listeners_http_info(request)
|
6591
|
+
return SyncInvoker(self, http_info)
|
6592
|
+
|
6593
|
+
@classmethod
|
6594
|
+
def _show_ip_group_related_listeners_http_info(cls, request):
|
6595
|
+
http_info = {
|
6596
|
+
"method": "GET",
|
6597
|
+
"resource_path": "/v3/{project_id}/elb/ipgroups/{ipgroup_id}/related-listeners",
|
6598
|
+
"request_type": request.__class__.__name__,
|
6599
|
+
"response_type": "ShowIpGroupRelatedListenersResponse"
|
6600
|
+
}
|
6601
|
+
|
6602
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6603
|
+
|
6604
|
+
cname = None
|
6605
|
+
|
6606
|
+
collection_formats = {}
|
6607
|
+
|
6608
|
+
path_params = {}
|
6609
|
+
if 'ipgroup_id' in local_var_params:
|
6610
|
+
path_params['ipgroup_id'] = local_var_params['ipgroup_id']
|
6611
|
+
|
6612
|
+
query_params = []
|
6613
|
+
|
6614
|
+
header_params = {}
|
6615
|
+
|
6616
|
+
form_params = {}
|
6617
|
+
|
6618
|
+
body = None
|
6619
|
+
if isinstance(request, SdkStreamRequest):
|
6620
|
+
body = request.get_file_stream()
|
6621
|
+
|
6622
|
+
response_headers = []
|
6623
|
+
|
6624
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6625
|
+
['application/json'])
|
6626
|
+
|
6627
|
+
auth_settings = []
|
6628
|
+
|
6629
|
+
http_info["cname"] = cname
|
6630
|
+
http_info["collection_formats"] = collection_formats
|
6631
|
+
http_info["path_params"] = path_params
|
6632
|
+
http_info["query_params"] = query_params
|
6633
|
+
http_info["header_params"] = header_params
|
6634
|
+
http_info["post_params"] = form_params
|
6635
|
+
http_info["body"] = body
|
6636
|
+
http_info["response_headers"] = response_headers
|
6637
|
+
|
6638
|
+
return http_info
|
6639
|
+
|
5920
6640
|
def update_ip_group(self, request):
|
5921
6641
|
"""更新IP地址组
|
5922
6642
|
|
5923
6643
|
更新IP地址组,只支持全量更新IP。即IP地址组中的ip_list将被全量覆盖,不在请求参数中的IP地址将被移除。
|
5924
|
-
输入的ip可为ip
|
6644
|
+
输入的ip可为ip地址、CIDR子网或者ip地址段,格式为ip-ip,例如10.12.3.1-10.12.3.10,支持IPV4和IPV6。
|
5925
6645
|
|
5926
6646
|
需要注意0.0.0.0与0.0.0.0/32视为重复,0:0:0:0:0:0:0:1与::1与::1/128视为重复,只会保存其中一个。
|
5927
6647
|
|