huaweicloudsdkelb 3.1.148__py2.py3-none-any.whl → 3.1.150__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkelb/v3/__init__.py +34 -0
- huaweicloudsdkelb/v3/elb_async_client.py +631 -3
- huaweicloudsdkelb/v3/elb_client.py +631 -3
- huaweicloudsdkelb/v3/model/__init__.py +34 -0
- huaweicloudsdkelb/v3/model/az_affinity.py +201 -0
- huaweicloudsdkelb/v3/model/batch_create_load_balancer_option.py +3 -3
- huaweicloudsdkelb/v3/model/batch_create_members_option.py +30 -1
- huaweicloudsdkelb/v3/model/batch_update_member.py +32 -3
- huaweicloudsdkelb/v3/model/batch_update_members_option.py +30 -1
- huaweicloudsdkelb/v3/model/certificate_info.py +90 -3
- huaweicloudsdkelb/v3/model/create_certificate_option.py +90 -3
- huaweicloudsdkelb/v3/model/create_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_member_health_check_job_option.py +142 -0
- huaweicloudsdkelb/v3/model/create_member_health_check_job_request.py +139 -0
- huaweicloudsdkelb/v3/model/create_member_health_check_job_request_body.py +111 -0
- huaweicloudsdkelb/v3/model/create_member_health_check_job_response.py +141 -0
- huaweicloudsdkelb/v3/model/create_member_option.py +32 -3
- huaweicloudsdkelb/v3/model/create_pool_option.py +26 -1
- huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/create_traffic_mirror_config.py +144 -0
- huaweicloudsdkelb/v3/model/delete_recycle_load_balancer_request.py +114 -0
- huaweicloudsdkelb/v3/model/delete_recycle_load_balancer_response.py +85 -0
- huaweicloudsdkelb/v3/model/health_monitor.py +3 -3
- huaweicloudsdkelb/v3/model/list_certificates_request.py +90 -3
- huaweicloudsdkelb/v3/model/list_health_monitors_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_listeners_request.py +30 -1
- huaweicloudsdkelb/v3/model/list_load_balancers_request.py +30 -1
- huaweicloudsdkelb/v3/model/list_members_request.py +32 -3
- huaweicloudsdkelb/v3/model/list_pools_request.py +32 -3
- huaweicloudsdkelb/v3/model/list_recycle_bin_load_balancers_request.py +1043 -0
- huaweicloudsdkelb/v3/model/list_recycle_bin_load_balancers_response.py +170 -0
- huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +3 -3
- huaweicloudsdkelb/v3/model/member.py +29 -1
- huaweicloudsdkelb/v3/model/member_check_job.py +115 -0
- huaweicloudsdkelb/v3/model/member_check_job_info.py +343 -0
- huaweicloudsdkelb/v3/model/member_check_job_result.py +161 -0
- huaweicloudsdkelb/v3/model/member_check_job_result_group.py +173 -0
- huaweicloudsdkelb/v3/model/member_check_job_result_item.py +289 -0
- huaweicloudsdkelb/v3/model/member_info.py +29 -1
- huaweicloudsdkelb/v3/model/pool.py +29 -4
- huaweicloudsdkelb/v3/model/prepaid_change_charge_mode_option.py +30 -1
- huaweicloudsdkelb/v3/model/recycle_bin_policy.py +144 -0
- huaweicloudsdkelb/v3/model/recycle_bin_policy_request_body.py +111 -0
- huaweicloudsdkelb/v3/model/recycle_bin_request_body.py +115 -0
- huaweicloudsdkelb/v3/model/recycle_bin_response_body.py +169 -0
- huaweicloudsdkelb/v3/model/recycle_load_balancer.py +1412 -0
- huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/restore_loadbalancer_request.py +114 -0
- huaweicloudsdkelb/v3/model/restore_loadbalancer_response.py +174 -0
- huaweicloudsdkelb/v3/model/show_member_health_check_job_request.py +114 -0
- huaweicloudsdkelb/v3/model/show_member_health_check_job_response.py +141 -0
- huaweicloudsdkelb/v3/model/show_recycle_bin_request.py +84 -0
- huaweicloudsdkelb/v3/model/show_recycle_bin_response.py +112 -0
- huaweicloudsdkelb/v3/model/traffic_mirror_config.py +144 -0
- huaweicloudsdkelb/v3/model/update_az_affinity.py +202 -0
- huaweicloudsdkelb/v3/model/update_certificate_option.py +90 -3
- huaweicloudsdkelb/v3/model/update_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_member_option.py +30 -1
- huaweicloudsdkelb/v3/model/update_pool_option.py +28 -3
- huaweicloudsdkelb/v3/model/update_recycle_bin_enable_request.py +111 -0
- huaweicloudsdkelb/v3/model/update_recycle_bin_enable_request_body.py +111 -0
- huaweicloudsdkelb/v3/model/update_recycle_bin_enable_response.py +112 -0
- huaweicloudsdkelb/v3/model/update_recycle_bin_policy_request.py +111 -0
- huaweicloudsdkelb/v3/model/update_recycle_bin_policy_request_body.py +111 -0
- huaweicloudsdkelb/v3/model/update_recycle_bin_policy_response.py +112 -0
- huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +28 -3
- {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.150.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.150.dist-info}/RECORD +72 -38
- {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.150.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.150.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.150.dist-info}/top_level.txt +0 -0
@@ -1317,6 +1317,73 @@ class ElbAsyncClient(Client):
|
|
1317
1317
|
|
1318
1318
|
return http_info
|
1319
1319
|
|
1320
|
+
def create_member_health_check_job_async(self, request):
|
1321
|
+
r"""创建后端服务器检测任务
|
1322
|
+
|
1323
|
+
创建后端服务器检测任务。包括后端服务器的配置、ACL规则和安全组规则检查。
|
1324
|
+
|
1325
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1326
|
+
|
1327
|
+
|
1328
|
+
:param request: Request instance for CreateMemberHealthCheckJob
|
1329
|
+
:type request: :class:`huaweicloudsdkelb.v3.CreateMemberHealthCheckJobRequest`
|
1330
|
+
:rtype: :class:`huaweicloudsdkelb.v3.CreateMemberHealthCheckJobResponse`
|
1331
|
+
"""
|
1332
|
+
http_info = self._create_member_health_check_job_http_info(request)
|
1333
|
+
return self._call_api(**http_info)
|
1334
|
+
|
1335
|
+
def create_member_health_check_job_async_invoker(self, request):
|
1336
|
+
http_info = self._create_member_health_check_job_http_info(request)
|
1337
|
+
return AsyncInvoker(self, http_info)
|
1338
|
+
|
1339
|
+
def _create_member_health_check_job_http_info(self, request):
|
1340
|
+
http_info = {
|
1341
|
+
"method": "POST",
|
1342
|
+
"resource_path": "/v3/{project_id}/elb/members/{member_id}/health-check",
|
1343
|
+
"request_type": request.__class__.__name__,
|
1344
|
+
"response_type": "CreateMemberHealthCheckJobResponse"
|
1345
|
+
}
|
1346
|
+
|
1347
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1348
|
+
|
1349
|
+
cname = None
|
1350
|
+
|
1351
|
+
collection_formats = {}
|
1352
|
+
|
1353
|
+
path_params = {}
|
1354
|
+
if 'member_id' in local_var_params:
|
1355
|
+
path_params['member_id'] = local_var_params['member_id']
|
1356
|
+
|
1357
|
+
query_params = []
|
1358
|
+
|
1359
|
+
header_params = {}
|
1360
|
+
|
1361
|
+
form_params = {}
|
1362
|
+
|
1363
|
+
body = None
|
1364
|
+
if 'body' in local_var_params:
|
1365
|
+
body = local_var_params['body']
|
1366
|
+
if isinstance(request, SdkStreamRequest):
|
1367
|
+
body = request.get_file_stream()
|
1368
|
+
|
1369
|
+
response_headers = []
|
1370
|
+
|
1371
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1372
|
+
['application/json;charset=UTF-8'])
|
1373
|
+
|
1374
|
+
auth_settings = []
|
1375
|
+
|
1376
|
+
http_info["cname"] = cname
|
1377
|
+
http_info["collection_formats"] = collection_formats
|
1378
|
+
http_info["path_params"] = path_params
|
1379
|
+
http_info["query_params"] = query_params
|
1380
|
+
http_info["header_params"] = header_params
|
1381
|
+
http_info["post_params"] = form_params
|
1382
|
+
http_info["body"] = body
|
1383
|
+
http_info["response_headers"] = response_headers
|
1384
|
+
|
1385
|
+
return http_info
|
1386
|
+
|
1320
1387
|
def create_pool_async(self, request):
|
1321
1388
|
r"""创建后端服务器组
|
1322
1389
|
|
@@ -2368,6 +2435,71 @@ class ElbAsyncClient(Client):
|
|
2368
2435
|
|
2369
2436
|
return http_info
|
2370
2437
|
|
2438
|
+
def delete_recycle_load_balancer_async(self, request):
|
2439
|
+
r"""销毁回收站负载均衡器
|
2440
|
+
|
2441
|
+
销毁回收站负载均衡器。销毁后无法再还原。
|
2442
|
+
|
2443
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2444
|
+
|
2445
|
+
|
2446
|
+
:param request: Request instance for DeleteRecycleLoadBalancer
|
2447
|
+
:type request: :class:`huaweicloudsdkelb.v3.DeleteRecycleLoadBalancerRequest`
|
2448
|
+
:rtype: :class:`huaweicloudsdkelb.v3.DeleteRecycleLoadBalancerResponse`
|
2449
|
+
"""
|
2450
|
+
http_info = self._delete_recycle_load_balancer_http_info(request)
|
2451
|
+
return self._call_api(**http_info)
|
2452
|
+
|
2453
|
+
def delete_recycle_load_balancer_async_invoker(self, request):
|
2454
|
+
http_info = self._delete_recycle_load_balancer_http_info(request)
|
2455
|
+
return AsyncInvoker(self, http_info)
|
2456
|
+
|
2457
|
+
def _delete_recycle_load_balancer_http_info(self, request):
|
2458
|
+
http_info = {
|
2459
|
+
"method": "DELETE",
|
2460
|
+
"resource_path": "/v3/{project_id}/elb/recycle-bin/loadbalancers/{loadbalancer_id}",
|
2461
|
+
"request_type": request.__class__.__name__,
|
2462
|
+
"response_type": "DeleteRecycleLoadBalancerResponse"
|
2463
|
+
}
|
2464
|
+
|
2465
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2466
|
+
|
2467
|
+
cname = None
|
2468
|
+
|
2469
|
+
collection_formats = {}
|
2470
|
+
|
2471
|
+
path_params = {}
|
2472
|
+
if 'loadbalancer_id' in local_var_params:
|
2473
|
+
path_params['loadbalancer_id'] = local_var_params['loadbalancer_id']
|
2474
|
+
|
2475
|
+
query_params = []
|
2476
|
+
|
2477
|
+
header_params = {}
|
2478
|
+
|
2479
|
+
form_params = {}
|
2480
|
+
|
2481
|
+
body = None
|
2482
|
+
if isinstance(request, SdkStreamRequest):
|
2483
|
+
body = request.get_file_stream()
|
2484
|
+
|
2485
|
+
response_headers = []
|
2486
|
+
|
2487
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2488
|
+
['application/json'])
|
2489
|
+
|
2490
|
+
auth_settings = []
|
2491
|
+
|
2492
|
+
http_info["cname"] = cname
|
2493
|
+
http_info["collection_formats"] = collection_formats
|
2494
|
+
http_info["path_params"] = path_params
|
2495
|
+
http_info["query_params"] = query_params
|
2496
|
+
http_info["header_params"] = header_params
|
2497
|
+
http_info["post_params"] = form_params
|
2498
|
+
http_info["body"] = body
|
2499
|
+
http_info["response_headers"] = response_headers
|
2500
|
+
|
2501
|
+
return http_info
|
2502
|
+
|
2371
2503
|
def delete_security_policy_async(self, request):
|
2372
2504
|
r"""删除自定义安全策略
|
2373
2505
|
|
@@ -2682,6 +2814,15 @@ class ElbAsyncClient(Client):
|
|
2682
2814
|
if 'fingerprint' in local_var_params:
|
2683
2815
|
query_params.append(('fingerprint', local_var_params['fingerprint']))
|
2684
2816
|
collection_formats['fingerprint'] = 'multi'
|
2817
|
+
if 'source' in local_var_params:
|
2818
|
+
query_params.append(('source', local_var_params['source']))
|
2819
|
+
collection_formats['source'] = 'csv'
|
2820
|
+
if 'protection_status' in local_var_params:
|
2821
|
+
query_params.append(('protection_status', local_var_params['protection_status']))
|
2822
|
+
collection_formats['protection_status'] = 'csv'
|
2823
|
+
if 'protection_reason' in local_var_params:
|
2824
|
+
query_params.append(('protection_reason', local_var_params['protection_reason']))
|
2825
|
+
collection_formats['protection_reason'] = 'csv'
|
2685
2826
|
|
2686
2827
|
header_params = {}
|
2687
2828
|
|
@@ -3318,6 +3459,8 @@ class ElbAsyncClient(Client):
|
|
3318
3459
|
collection_formats['client_ca_tls_container_ref'] = 'multi'
|
3319
3460
|
if 'admin_state_up' in local_var_params:
|
3320
3461
|
query_params.append(('admin_state_up', local_var_params['admin_state_up']))
|
3462
|
+
if 'include_recycle_bin' in local_var_params:
|
3463
|
+
query_params.append(('include_recycle_bin', local_var_params['include_recycle_bin']))
|
3321
3464
|
if 'connection_limit' in local_var_params:
|
3322
3465
|
query_params.append(('connection_limit', local_var_params['connection_limit']))
|
3323
3466
|
collection_formats['connection_limit'] = 'multi'
|
@@ -3454,6 +3597,8 @@ class ElbAsyncClient(Client):
|
|
3454
3597
|
collection_formats['description'] = 'multi'
|
3455
3598
|
if 'admin_state_up' in local_var_params:
|
3456
3599
|
query_params.append(('admin_state_up', local_var_params['admin_state_up']))
|
3600
|
+
if 'include_recycle_bin' in local_var_params:
|
3601
|
+
query_params.append(('include_recycle_bin', local_var_params['include_recycle_bin']))
|
3457
3602
|
if 'provisioning_status' in local_var_params:
|
3458
3603
|
query_params.append(('provisioning_status', local_var_params['provisioning_status']))
|
3459
3604
|
collection_formats['provisioning_status'] = 'multi'
|
@@ -3908,6 +4053,9 @@ class ElbAsyncClient(Client):
|
|
3908
4053
|
if 'instance_id' in local_var_params:
|
3909
4054
|
query_params.append(('instance_id', local_var_params['instance_id']))
|
3910
4055
|
collection_formats['instance_id'] = 'csv'
|
4056
|
+
if 'availability_zone' in local_var_params:
|
4057
|
+
query_params.append(('availability_zone', local_var_params['availability_zone']))
|
4058
|
+
collection_formats['availability_zone'] = 'csv'
|
3911
4059
|
|
3912
4060
|
header_params = {}
|
3913
4061
|
|
@@ -4041,6 +4189,9 @@ class ElbAsyncClient(Client):
|
|
4041
4189
|
query_params.append(('quic_cid_len', local_var_params['quic_cid_len']))
|
4042
4190
|
if 'quic_cid_offset' in local_var_params:
|
4043
4191
|
query_params.append(('quic_cid_offset', local_var_params['quic_cid_offset']))
|
4192
|
+
if 'az_affinity' in local_var_params:
|
4193
|
+
query_params.append(('az_affinity', local_var_params['az_affinity']))
|
4194
|
+
collection_formats['az_affinity'] = 'csv'
|
4044
4195
|
|
4045
4196
|
header_params = {}
|
4046
4197
|
|
@@ -4134,6 +4285,160 @@ class ElbAsyncClient(Client):
|
|
4134
4285
|
|
4135
4286
|
return http_info
|
4136
4287
|
|
4288
|
+
def list_recycle_bin_load_balancers_async(self, request):
|
4289
|
+
r"""查询回收站负载均衡器列表
|
4290
|
+
|
4291
|
+
查询回收站负载均衡器列表。
|
4292
|
+
|
4293
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4294
|
+
|
4295
|
+
|
4296
|
+
:param request: Request instance for ListRecycleBinLoadBalancers
|
4297
|
+
:type request: :class:`huaweicloudsdkelb.v3.ListRecycleBinLoadBalancersRequest`
|
4298
|
+
:rtype: :class:`huaweicloudsdkelb.v3.ListRecycleBinLoadBalancersResponse`
|
4299
|
+
"""
|
4300
|
+
http_info = self._list_recycle_bin_load_balancers_http_info(request)
|
4301
|
+
return self._call_api(**http_info)
|
4302
|
+
|
4303
|
+
def list_recycle_bin_load_balancers_async_invoker(self, request):
|
4304
|
+
http_info = self._list_recycle_bin_load_balancers_http_info(request)
|
4305
|
+
return AsyncInvoker(self, http_info)
|
4306
|
+
|
4307
|
+
def _list_recycle_bin_load_balancers_http_info(self, request):
|
4308
|
+
http_info = {
|
4309
|
+
"method": "GET",
|
4310
|
+
"resource_path": "/v3/{project_id}/elb/recycle-bin/loadbalancers",
|
4311
|
+
"request_type": request.__class__.__name__,
|
4312
|
+
"response_type": "ListRecycleBinLoadBalancersResponse"
|
4313
|
+
}
|
4314
|
+
|
4315
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4316
|
+
|
4317
|
+
cname = None
|
4318
|
+
|
4319
|
+
collection_formats = {}
|
4320
|
+
|
4321
|
+
path_params = {}
|
4322
|
+
|
4323
|
+
query_params = []
|
4324
|
+
if 'marker' in local_var_params:
|
4325
|
+
query_params.append(('marker', local_var_params['marker']))
|
4326
|
+
if 'limit' in local_var_params:
|
4327
|
+
query_params.append(('limit', local_var_params['limit']))
|
4328
|
+
if 'page_reverse' in local_var_params:
|
4329
|
+
query_params.append(('page_reverse', local_var_params['page_reverse']))
|
4330
|
+
if 'id' in local_var_params:
|
4331
|
+
query_params.append(('id', local_var_params['id']))
|
4332
|
+
collection_formats['id'] = 'multi'
|
4333
|
+
if 'name' in local_var_params:
|
4334
|
+
query_params.append(('name', local_var_params['name']))
|
4335
|
+
collection_formats['name'] = 'multi'
|
4336
|
+
if 'description' in local_var_params:
|
4337
|
+
query_params.append(('description', local_var_params['description']))
|
4338
|
+
collection_formats['description'] = 'multi'
|
4339
|
+
if 'admin_state_up' in local_var_params:
|
4340
|
+
query_params.append(('admin_state_up', local_var_params['admin_state_up']))
|
4341
|
+
if 'operating_status' in local_var_params:
|
4342
|
+
query_params.append(('operating_status', local_var_params['operating_status']))
|
4343
|
+
collection_formats['operating_status'] = 'multi'
|
4344
|
+
if 'guaranteed' in local_var_params:
|
4345
|
+
query_params.append(('guaranteed', local_var_params['guaranteed']))
|
4346
|
+
if 'vpc_id' in local_var_params:
|
4347
|
+
query_params.append(('vpc_id', local_var_params['vpc_id']))
|
4348
|
+
collection_formats['vpc_id'] = 'multi'
|
4349
|
+
if 'vip_port_id' in local_var_params:
|
4350
|
+
query_params.append(('vip_port_id', local_var_params['vip_port_id']))
|
4351
|
+
collection_formats['vip_port_id'] = 'multi'
|
4352
|
+
if 'vip_address' in local_var_params:
|
4353
|
+
query_params.append(('vip_address', local_var_params['vip_address']))
|
4354
|
+
collection_formats['vip_address'] = 'multi'
|
4355
|
+
if 'vip_subnet_cidr_id' in local_var_params:
|
4356
|
+
query_params.append(('vip_subnet_cidr_id', local_var_params['vip_subnet_cidr_id']))
|
4357
|
+
collection_formats['vip_subnet_cidr_id'] = 'multi'
|
4358
|
+
if 'ipv6_vip_port_id' in local_var_params:
|
4359
|
+
query_params.append(('ipv6_vip_port_id', local_var_params['ipv6_vip_port_id']))
|
4360
|
+
collection_formats['ipv6_vip_port_id'] = 'multi'
|
4361
|
+
if 'ipv6_vip_address' in local_var_params:
|
4362
|
+
query_params.append(('ipv6_vip_address', local_var_params['ipv6_vip_address']))
|
4363
|
+
collection_formats['ipv6_vip_address'] = 'multi'
|
4364
|
+
if 'ipv6_vip_virsubnet_id' in local_var_params:
|
4365
|
+
query_params.append(('ipv6_vip_virsubnet_id', local_var_params['ipv6_vip_virsubnet_id']))
|
4366
|
+
collection_formats['ipv6_vip_virsubnet_id'] = 'multi'
|
4367
|
+
if 'eips' in local_var_params:
|
4368
|
+
query_params.append(('eips', local_var_params['eips']))
|
4369
|
+
collection_formats['eips'] = 'multi'
|
4370
|
+
if 'publicips' in local_var_params:
|
4371
|
+
query_params.append(('publicips', local_var_params['publicips']))
|
4372
|
+
collection_formats['publicips'] = 'multi'
|
4373
|
+
if 'availability_zone_list' in local_var_params:
|
4374
|
+
query_params.append(('availability_zone_list', local_var_params['availability_zone_list']))
|
4375
|
+
collection_formats['availability_zone_list'] = 'multi'
|
4376
|
+
if 'l4_flavor_id' in local_var_params:
|
4377
|
+
query_params.append(('l4_flavor_id', local_var_params['l4_flavor_id']))
|
4378
|
+
collection_formats['l4_flavor_id'] = 'multi'
|
4379
|
+
if 'l7_flavor_id' in local_var_params:
|
4380
|
+
query_params.append(('l7_flavor_id', local_var_params['l7_flavor_id']))
|
4381
|
+
collection_formats['l7_flavor_id'] = 'multi'
|
4382
|
+
if 'billing_info' in local_var_params:
|
4383
|
+
query_params.append(('billing_info', local_var_params['billing_info']))
|
4384
|
+
collection_formats['billing_info'] = 'multi'
|
4385
|
+
if 'member_device_id' in local_var_params:
|
4386
|
+
query_params.append(('member_device_id', local_var_params['member_device_id']))
|
4387
|
+
collection_formats['member_device_id'] = 'multi'
|
4388
|
+
if 'member_address' in local_var_params:
|
4389
|
+
query_params.append(('member_address', local_var_params['member_address']))
|
4390
|
+
collection_formats['member_address'] = 'multi'
|
4391
|
+
if 'enterprise_project_id' in local_var_params:
|
4392
|
+
query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id']))
|
4393
|
+
collection_formats['enterprise_project_id'] = 'multi'
|
4394
|
+
if 'ip_version' in local_var_params:
|
4395
|
+
query_params.append(('ip_version', local_var_params['ip_version']))
|
4396
|
+
collection_formats['ip_version'] = 'multi'
|
4397
|
+
if 'deletion_protection_enable' in local_var_params:
|
4398
|
+
query_params.append(('deletion_protection_enable', local_var_params['deletion_protection_enable']))
|
4399
|
+
if 'elb_virsubnet_type' in local_var_params:
|
4400
|
+
query_params.append(('elb_virsubnet_type', local_var_params['elb_virsubnet_type']))
|
4401
|
+
collection_formats['elb_virsubnet_type'] = 'csv'
|
4402
|
+
if 'autoscaling' in local_var_params:
|
4403
|
+
query_params.append(('autoscaling', local_var_params['autoscaling']))
|
4404
|
+
collection_formats['autoscaling'] = 'csv'
|
4405
|
+
if 'protection_status' in local_var_params:
|
4406
|
+
query_params.append(('protection_status', local_var_params['protection_status']))
|
4407
|
+
collection_formats['protection_status'] = 'csv'
|
4408
|
+
if 'global_eips' in local_var_params:
|
4409
|
+
query_params.append(('global_eips', local_var_params['global_eips']))
|
4410
|
+
collection_formats['global_eips'] = 'csv'
|
4411
|
+
if 'log_topic_id' in local_var_params:
|
4412
|
+
query_params.append(('log_topic_id', local_var_params['log_topic_id']))
|
4413
|
+
if 'log_group_id' in local_var_params:
|
4414
|
+
query_params.append(('log_group_id', local_var_params['log_group_id']))
|
4415
|
+
|
4416
|
+
header_params = {}
|
4417
|
+
|
4418
|
+
form_params = {}
|
4419
|
+
|
4420
|
+
body = None
|
4421
|
+
if isinstance(request, SdkStreamRequest):
|
4422
|
+
body = request.get_file_stream()
|
4423
|
+
|
4424
|
+
response_headers = []
|
4425
|
+
|
4426
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4427
|
+
['application/json'])
|
4428
|
+
|
4429
|
+
auth_settings = []
|
4430
|
+
|
4431
|
+
http_info["cname"] = cname
|
4432
|
+
http_info["collection_formats"] = collection_formats
|
4433
|
+
http_info["path_params"] = path_params
|
4434
|
+
http_info["query_params"] = query_params
|
4435
|
+
http_info["header_params"] = header_params
|
4436
|
+
http_info["post_params"] = form_params
|
4437
|
+
http_info["body"] = body
|
4438
|
+
http_info["response_headers"] = response_headers
|
4439
|
+
|
4440
|
+
return http_info
|
4441
|
+
|
4137
4442
|
def list_security_policies_async(self, request):
|
4138
4443
|
r"""查询自定义安全策略列表
|
4139
4444
|
|
@@ -4283,10 +4588,75 @@ class ElbAsyncClient(Client):
|
|
4283
4588
|
|
4284
4589
|
return http_info
|
4285
4590
|
|
4286
|
-
def
|
4287
|
-
r"""
|
4591
|
+
def restore_loadbalancer_async(self, request):
|
4592
|
+
r"""还原负载均衡器
|
4288
4593
|
|
4289
|
-
|
4594
|
+
从回收站中还原负载均衡器
|
4595
|
+
|
4596
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4597
|
+
|
4598
|
+
|
4599
|
+
:param request: Request instance for RestoreLoadbalancer
|
4600
|
+
:type request: :class:`huaweicloudsdkelb.v3.RestoreLoadbalancerRequest`
|
4601
|
+
:rtype: :class:`huaweicloudsdkelb.v3.RestoreLoadbalancerResponse`
|
4602
|
+
"""
|
4603
|
+
http_info = self._restore_loadbalancer_http_info(request)
|
4604
|
+
return self._call_api(**http_info)
|
4605
|
+
|
4606
|
+
def restore_loadbalancer_async_invoker(self, request):
|
4607
|
+
http_info = self._restore_loadbalancer_http_info(request)
|
4608
|
+
return AsyncInvoker(self, http_info)
|
4609
|
+
|
4610
|
+
def _restore_loadbalancer_http_info(self, request):
|
4611
|
+
http_info = {
|
4612
|
+
"method": "PUT",
|
4613
|
+
"resource_path": "/v3/{project_id}/elb/recycle-bin/loadbalancers/{loadbalancer_id}/recover",
|
4614
|
+
"request_type": request.__class__.__name__,
|
4615
|
+
"response_type": "RestoreLoadbalancerResponse"
|
4616
|
+
}
|
4617
|
+
|
4618
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4619
|
+
|
4620
|
+
cname = None
|
4621
|
+
|
4622
|
+
collection_formats = {}
|
4623
|
+
|
4624
|
+
path_params = {}
|
4625
|
+
if 'loadbalancer_id' in local_var_params:
|
4626
|
+
path_params['loadbalancer_id'] = local_var_params['loadbalancer_id']
|
4627
|
+
|
4628
|
+
query_params = []
|
4629
|
+
|
4630
|
+
header_params = {}
|
4631
|
+
|
4632
|
+
form_params = {}
|
4633
|
+
|
4634
|
+
body = None
|
4635
|
+
if isinstance(request, SdkStreamRequest):
|
4636
|
+
body = request.get_file_stream()
|
4637
|
+
|
4638
|
+
response_headers = []
|
4639
|
+
|
4640
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4641
|
+
['application/json'])
|
4642
|
+
|
4643
|
+
auth_settings = []
|
4644
|
+
|
4645
|
+
http_info["cname"] = cname
|
4646
|
+
http_info["collection_formats"] = collection_formats
|
4647
|
+
http_info["path_params"] = path_params
|
4648
|
+
http_info["query_params"] = query_params
|
4649
|
+
http_info["header_params"] = header_params
|
4650
|
+
http_info["post_params"] = form_params
|
4651
|
+
http_info["body"] = body
|
4652
|
+
http_info["response_headers"] = response_headers
|
4653
|
+
|
4654
|
+
return http_info
|
4655
|
+
|
4656
|
+
def show_certificate_async(self, request):
|
4657
|
+
r"""查询证书详情
|
4658
|
+
|
4659
|
+
查询证书详情。
|
4290
4660
|
|
4291
4661
|
Please refer to HUAWEI cloud API Explorer for details.
|
4292
4662
|
|
@@ -5133,6 +5503,71 @@ class ElbAsyncClient(Client):
|
|
5133
5503
|
|
5134
5504
|
return http_info
|
5135
5505
|
|
5506
|
+
def show_member_health_check_job_async(self, request):
|
5507
|
+
r"""查询后端服务器检测任务的结果
|
5508
|
+
|
5509
|
+
查询后端服务器检测任务的结果。
|
5510
|
+
|
5511
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5512
|
+
|
5513
|
+
|
5514
|
+
:param request: Request instance for ShowMemberHealthCheckJob
|
5515
|
+
:type request: :class:`huaweicloudsdkelb.v3.ShowMemberHealthCheckJobRequest`
|
5516
|
+
:rtype: :class:`huaweicloudsdkelb.v3.ShowMemberHealthCheckJobResponse`
|
5517
|
+
"""
|
5518
|
+
http_info = self._show_member_health_check_job_http_info(request)
|
5519
|
+
return self._call_api(**http_info)
|
5520
|
+
|
5521
|
+
def show_member_health_check_job_async_invoker(self, request):
|
5522
|
+
http_info = self._show_member_health_check_job_http_info(request)
|
5523
|
+
return AsyncInvoker(self, http_info)
|
5524
|
+
|
5525
|
+
def _show_member_health_check_job_http_info(self, request):
|
5526
|
+
http_info = {
|
5527
|
+
"method": "GET",
|
5528
|
+
"resource_path": "/v3/{project_id}/elb/members/check/jobs/{job_id}",
|
5529
|
+
"request_type": request.__class__.__name__,
|
5530
|
+
"response_type": "ShowMemberHealthCheckJobResponse"
|
5531
|
+
}
|
5532
|
+
|
5533
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5534
|
+
|
5535
|
+
cname = None
|
5536
|
+
|
5537
|
+
collection_formats = {}
|
5538
|
+
|
5539
|
+
path_params = {}
|
5540
|
+
if 'job_id' in local_var_params:
|
5541
|
+
path_params['job_id'] = local_var_params['job_id']
|
5542
|
+
|
5543
|
+
query_params = []
|
5544
|
+
|
5545
|
+
header_params = {}
|
5546
|
+
|
5547
|
+
form_params = {}
|
5548
|
+
|
5549
|
+
body = None
|
5550
|
+
if isinstance(request, SdkStreamRequest):
|
5551
|
+
body = request.get_file_stream()
|
5552
|
+
|
5553
|
+
response_headers = []
|
5554
|
+
|
5555
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5556
|
+
['application/json'])
|
5557
|
+
|
5558
|
+
auth_settings = []
|
5559
|
+
|
5560
|
+
http_info["cname"] = cname
|
5561
|
+
http_info["collection_formats"] = collection_formats
|
5562
|
+
http_info["path_params"] = path_params
|
5563
|
+
http_info["query_params"] = query_params
|
5564
|
+
http_info["header_params"] = header_params
|
5565
|
+
http_info["post_params"] = form_params
|
5566
|
+
http_info["body"] = body
|
5567
|
+
http_info["response_headers"] = response_headers
|
5568
|
+
|
5569
|
+
return http_info
|
5570
|
+
|
5136
5571
|
def show_pool_async(self, request):
|
5137
5572
|
r"""查询后端服务器组详情
|
5138
5573
|
|
@@ -5261,6 +5696,69 @@ class ElbAsyncClient(Client):
|
|
5261
5696
|
|
5262
5697
|
return http_info
|
5263
5698
|
|
5699
|
+
def show_recycle_bin_async(self, request):
|
5700
|
+
r"""查询回收站的配置
|
5701
|
+
|
5702
|
+
查询回收站的配置
|
5703
|
+
|
5704
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5705
|
+
|
5706
|
+
|
5707
|
+
:param request: Request instance for ShowRecycleBin
|
5708
|
+
:type request: :class:`huaweicloudsdkelb.v3.ShowRecycleBinRequest`
|
5709
|
+
:rtype: :class:`huaweicloudsdkelb.v3.ShowRecycleBinResponse`
|
5710
|
+
"""
|
5711
|
+
http_info = self._show_recycle_bin_http_info(request)
|
5712
|
+
return self._call_api(**http_info)
|
5713
|
+
|
5714
|
+
def show_recycle_bin_async_invoker(self, request):
|
5715
|
+
http_info = self._show_recycle_bin_http_info(request)
|
5716
|
+
return AsyncInvoker(self, http_info)
|
5717
|
+
|
5718
|
+
def _show_recycle_bin_http_info(self, request):
|
5719
|
+
http_info = {
|
5720
|
+
"method": "GET",
|
5721
|
+
"resource_path": "/v3/{project_id}/elb/recycle-bin",
|
5722
|
+
"request_type": request.__class__.__name__,
|
5723
|
+
"response_type": "ShowRecycleBinResponse"
|
5724
|
+
}
|
5725
|
+
|
5726
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5727
|
+
|
5728
|
+
cname = None
|
5729
|
+
|
5730
|
+
collection_formats = {}
|
5731
|
+
|
5732
|
+
path_params = {}
|
5733
|
+
|
5734
|
+
query_params = []
|
5735
|
+
|
5736
|
+
header_params = {}
|
5737
|
+
|
5738
|
+
form_params = {}
|
5739
|
+
|
5740
|
+
body = None
|
5741
|
+
if isinstance(request, SdkStreamRequest):
|
5742
|
+
body = request.get_file_stream()
|
5743
|
+
|
5744
|
+
response_headers = []
|
5745
|
+
|
5746
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5747
|
+
['application/json'])
|
5748
|
+
|
5749
|
+
auth_settings = []
|
5750
|
+
|
5751
|
+
http_info["cname"] = cname
|
5752
|
+
http_info["collection_formats"] = collection_formats
|
5753
|
+
http_info["path_params"] = path_params
|
5754
|
+
http_info["query_params"] = query_params
|
5755
|
+
http_info["header_params"] = header_params
|
5756
|
+
http_info["post_params"] = form_params
|
5757
|
+
http_info["body"] = body
|
5758
|
+
http_info["response_headers"] = response_headers
|
5759
|
+
|
5760
|
+
return http_info
|
5761
|
+
|
5264
5762
|
def show_security_policy_async(self, request):
|
5265
5763
|
r"""查询自定义安全策略详情
|
5266
5764
|
|
@@ -5933,6 +6431,136 @@ class ElbAsyncClient(Client):
|
|
5933
6431
|
|
5934
6432
|
return http_info
|
5935
6433
|
|
6434
|
+
def update_recycle_bin_enable_async(self, request):
|
6435
|
+
r"""开关回收站
|
6436
|
+
|
6437
|
+
开启或关闭回收站功能。开启后删除的LB可以进入回收站,否则将不进入回收站而是直接被删除无法恢复。关闭回收站前需要先将回收站中的实例还原或销毁。
|
6438
|
+
|
6439
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6440
|
+
|
6441
|
+
|
6442
|
+
:param request: Request instance for UpdateRecycleBinEnable
|
6443
|
+
:type request: :class:`huaweicloudsdkelb.v3.UpdateRecycleBinEnableRequest`
|
6444
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpdateRecycleBinEnableResponse`
|
6445
|
+
"""
|
6446
|
+
http_info = self._update_recycle_bin_enable_http_info(request)
|
6447
|
+
return self._call_api(**http_info)
|
6448
|
+
|
6449
|
+
def update_recycle_bin_enable_async_invoker(self, request):
|
6450
|
+
http_info = self._update_recycle_bin_enable_http_info(request)
|
6451
|
+
return AsyncInvoker(self, http_info)
|
6452
|
+
|
6453
|
+
def _update_recycle_bin_enable_http_info(self, request):
|
6454
|
+
http_info = {
|
6455
|
+
"method": "PUT",
|
6456
|
+
"resource_path": "/v3/{project_id}/elb/recycle-bin",
|
6457
|
+
"request_type": request.__class__.__name__,
|
6458
|
+
"response_type": "UpdateRecycleBinEnableResponse"
|
6459
|
+
}
|
6460
|
+
|
6461
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6462
|
+
|
6463
|
+
cname = None
|
6464
|
+
|
6465
|
+
collection_formats = {}
|
6466
|
+
|
6467
|
+
path_params = {}
|
6468
|
+
|
6469
|
+
query_params = []
|
6470
|
+
|
6471
|
+
header_params = {}
|
6472
|
+
|
6473
|
+
form_params = {}
|
6474
|
+
|
6475
|
+
body = None
|
6476
|
+
if 'body' in local_var_params:
|
6477
|
+
body = local_var_params['body']
|
6478
|
+
if isinstance(request, SdkStreamRequest):
|
6479
|
+
body = request.get_file_stream()
|
6480
|
+
|
6481
|
+
response_headers = []
|
6482
|
+
|
6483
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6484
|
+
['application/json'])
|
6485
|
+
|
6486
|
+
auth_settings = []
|
6487
|
+
|
6488
|
+
http_info["cname"] = cname
|
6489
|
+
http_info["collection_formats"] = collection_formats
|
6490
|
+
http_info["path_params"] = path_params
|
6491
|
+
http_info["query_params"] = query_params
|
6492
|
+
http_info["header_params"] = header_params
|
6493
|
+
http_info["post_params"] = form_params
|
6494
|
+
http_info["body"] = body
|
6495
|
+
http_info["response_headers"] = response_headers
|
6496
|
+
|
6497
|
+
return http_info
|
6498
|
+
|
6499
|
+
def update_recycle_bin_policy_async(self, request):
|
6500
|
+
r"""更新回收站的配置
|
6501
|
+
|
6502
|
+
更新回收站的配置。若回收站未开启,则更新会报错。
|
6503
|
+
|
6504
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6505
|
+
|
6506
|
+
|
6507
|
+
:param request: Request instance for UpdateRecycleBinPolicy
|
6508
|
+
:type request: :class:`huaweicloudsdkelb.v3.UpdateRecycleBinPolicyRequest`
|
6509
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpdateRecycleBinPolicyResponse`
|
6510
|
+
"""
|
6511
|
+
http_info = self._update_recycle_bin_policy_http_info(request)
|
6512
|
+
return self._call_api(**http_info)
|
6513
|
+
|
6514
|
+
def update_recycle_bin_policy_async_invoker(self, request):
|
6515
|
+
http_info = self._update_recycle_bin_policy_http_info(request)
|
6516
|
+
return AsyncInvoker(self, http_info)
|
6517
|
+
|
6518
|
+
def _update_recycle_bin_policy_http_info(self, request):
|
6519
|
+
http_info = {
|
6520
|
+
"method": "PUT",
|
6521
|
+
"resource_path": "/v3/{project_id}/elb/recycle-bin/policy",
|
6522
|
+
"request_type": request.__class__.__name__,
|
6523
|
+
"response_type": "UpdateRecycleBinPolicyResponse"
|
6524
|
+
}
|
6525
|
+
|
6526
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6527
|
+
|
6528
|
+
cname = None
|
6529
|
+
|
6530
|
+
collection_formats = {}
|
6531
|
+
|
6532
|
+
path_params = {}
|
6533
|
+
|
6534
|
+
query_params = []
|
6535
|
+
|
6536
|
+
header_params = {}
|
6537
|
+
|
6538
|
+
form_params = {}
|
6539
|
+
|
6540
|
+
body = None
|
6541
|
+
if 'body' in local_var_params:
|
6542
|
+
body = local_var_params['body']
|
6543
|
+
if isinstance(request, SdkStreamRequest):
|
6544
|
+
body = request.get_file_stream()
|
6545
|
+
|
6546
|
+
response_headers = []
|
6547
|
+
|
6548
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6549
|
+
['application/json'])
|
6550
|
+
|
6551
|
+
auth_settings = []
|
6552
|
+
|
6553
|
+
http_info["cname"] = cname
|
6554
|
+
http_info["collection_formats"] = collection_formats
|
6555
|
+
http_info["path_params"] = path_params
|
6556
|
+
http_info["query_params"] = query_params
|
6557
|
+
http_info["header_params"] = header_params
|
6558
|
+
http_info["post_params"] = form_params
|
6559
|
+
http_info["body"] = body
|
6560
|
+
http_info["response_headers"] = response_headers
|
6561
|
+
|
6562
|
+
return http_info
|
6563
|
+
|
5936
6564
|
def update_security_policy_async(self, request):
|
5937
6565
|
r"""更新自定义安全策略
|
5938
6566
|
|