alibabacloud-cloudfw20171207 6.1.1__py3-none-any.whl → 6.2.0__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.
Potentially problematic release.
This version of alibabacloud-cloudfw20171207 might be problematic. Click here for more details.
- alibabacloud_cloudfw20171207/__init__.py +1 -1
- alibabacloud_cloudfw20171207/client.py +2033 -227
- alibabacloud_cloudfw20171207/models.py +8776 -6219
- {alibabacloud_cloudfw20171207-6.1.1.dist-info → alibabacloud_cloudfw20171207-6.2.0.dist-info}/METADATA +2 -2
- alibabacloud_cloudfw20171207-6.2.0.dist-info/RECORD +8 -0
- alibabacloud_cloudfw20171207-6.1.1.dist-info/RECORD +0 -8
- {alibabacloud_cloudfw20171207-6.1.1.dist-info → alibabacloud_cloudfw20171207-6.2.0.dist-info}/LICENSE +0 -0
- {alibabacloud_cloudfw20171207-6.1.1.dist-info → alibabacloud_cloudfw20171207-6.2.0.dist-info}/WHEEL +0 -0
- {alibabacloud_cloudfw20171207-6.1.1.dist-info → alibabacloud_cloudfw20171207-6.2.0.dist-info}/top_level.txt +0 -0
|
@@ -397,6 +397,146 @@ class Client(OpenApiClient):
|
|
|
397
397
|
runtime = util_models.RuntimeOptions()
|
|
398
398
|
return await self.add_control_policy_with_options_async(request, runtime)
|
|
399
399
|
|
|
400
|
+
def add_dns_firewall_policy_with_options(
|
|
401
|
+
self,
|
|
402
|
+
request: cloudfw_20171207_models.AddDnsFirewallPolicyRequest,
|
|
403
|
+
runtime: util_models.RuntimeOptions,
|
|
404
|
+
) -> cloudfw_20171207_models.AddDnsFirewallPolicyResponse:
|
|
405
|
+
"""
|
|
406
|
+
@summary 添加DNS防火墙ACL
|
|
407
|
+
|
|
408
|
+
@param request: AddDnsFirewallPolicyRequest
|
|
409
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
410
|
+
@return: AddDnsFirewallPolicyResponse
|
|
411
|
+
"""
|
|
412
|
+
UtilClient.validate_model(request)
|
|
413
|
+
query = {}
|
|
414
|
+
if not UtilClient.is_unset(request.acl_action):
|
|
415
|
+
query['AclAction'] = request.acl_action
|
|
416
|
+
if not UtilClient.is_unset(request.description):
|
|
417
|
+
query['Description'] = request.description
|
|
418
|
+
if not UtilClient.is_unset(request.destination):
|
|
419
|
+
query['Destination'] = request.destination
|
|
420
|
+
if not UtilClient.is_unset(request.destination_type):
|
|
421
|
+
query['DestinationType'] = request.destination_type
|
|
422
|
+
if not UtilClient.is_unset(request.direction):
|
|
423
|
+
query['Direction'] = request.direction
|
|
424
|
+
if not UtilClient.is_unset(request.ip_version):
|
|
425
|
+
query['IpVersion'] = request.ip_version
|
|
426
|
+
if not UtilClient.is_unset(request.lang):
|
|
427
|
+
query['Lang'] = request.lang
|
|
428
|
+
if not UtilClient.is_unset(request.priority):
|
|
429
|
+
query['Priority'] = request.priority
|
|
430
|
+
if not UtilClient.is_unset(request.release):
|
|
431
|
+
query['Release'] = request.release
|
|
432
|
+
if not UtilClient.is_unset(request.source):
|
|
433
|
+
query['Source'] = request.source
|
|
434
|
+
if not UtilClient.is_unset(request.source_ip):
|
|
435
|
+
query['SourceIp'] = request.source_ip
|
|
436
|
+
if not UtilClient.is_unset(request.source_type):
|
|
437
|
+
query['SourceType'] = request.source_type
|
|
438
|
+
req = open_api_models.OpenApiRequest(
|
|
439
|
+
query=OpenApiUtilClient.query(query)
|
|
440
|
+
)
|
|
441
|
+
params = open_api_models.Params(
|
|
442
|
+
action='AddDnsFirewallPolicy',
|
|
443
|
+
version='2017-12-07',
|
|
444
|
+
protocol='HTTPS',
|
|
445
|
+
pathname='/',
|
|
446
|
+
method='POST',
|
|
447
|
+
auth_type='AK',
|
|
448
|
+
style='RPC',
|
|
449
|
+
req_body_type='formData',
|
|
450
|
+
body_type='json'
|
|
451
|
+
)
|
|
452
|
+
return TeaCore.from_map(
|
|
453
|
+
cloudfw_20171207_models.AddDnsFirewallPolicyResponse(),
|
|
454
|
+
self.call_api(params, req, runtime)
|
|
455
|
+
)
|
|
456
|
+
|
|
457
|
+
async def add_dns_firewall_policy_with_options_async(
|
|
458
|
+
self,
|
|
459
|
+
request: cloudfw_20171207_models.AddDnsFirewallPolicyRequest,
|
|
460
|
+
runtime: util_models.RuntimeOptions,
|
|
461
|
+
) -> cloudfw_20171207_models.AddDnsFirewallPolicyResponse:
|
|
462
|
+
"""
|
|
463
|
+
@summary 添加DNS防火墙ACL
|
|
464
|
+
|
|
465
|
+
@param request: AddDnsFirewallPolicyRequest
|
|
466
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
467
|
+
@return: AddDnsFirewallPolicyResponse
|
|
468
|
+
"""
|
|
469
|
+
UtilClient.validate_model(request)
|
|
470
|
+
query = {}
|
|
471
|
+
if not UtilClient.is_unset(request.acl_action):
|
|
472
|
+
query['AclAction'] = request.acl_action
|
|
473
|
+
if not UtilClient.is_unset(request.description):
|
|
474
|
+
query['Description'] = request.description
|
|
475
|
+
if not UtilClient.is_unset(request.destination):
|
|
476
|
+
query['Destination'] = request.destination
|
|
477
|
+
if not UtilClient.is_unset(request.destination_type):
|
|
478
|
+
query['DestinationType'] = request.destination_type
|
|
479
|
+
if not UtilClient.is_unset(request.direction):
|
|
480
|
+
query['Direction'] = request.direction
|
|
481
|
+
if not UtilClient.is_unset(request.ip_version):
|
|
482
|
+
query['IpVersion'] = request.ip_version
|
|
483
|
+
if not UtilClient.is_unset(request.lang):
|
|
484
|
+
query['Lang'] = request.lang
|
|
485
|
+
if not UtilClient.is_unset(request.priority):
|
|
486
|
+
query['Priority'] = request.priority
|
|
487
|
+
if not UtilClient.is_unset(request.release):
|
|
488
|
+
query['Release'] = request.release
|
|
489
|
+
if not UtilClient.is_unset(request.source):
|
|
490
|
+
query['Source'] = request.source
|
|
491
|
+
if not UtilClient.is_unset(request.source_ip):
|
|
492
|
+
query['SourceIp'] = request.source_ip
|
|
493
|
+
if not UtilClient.is_unset(request.source_type):
|
|
494
|
+
query['SourceType'] = request.source_type
|
|
495
|
+
req = open_api_models.OpenApiRequest(
|
|
496
|
+
query=OpenApiUtilClient.query(query)
|
|
497
|
+
)
|
|
498
|
+
params = open_api_models.Params(
|
|
499
|
+
action='AddDnsFirewallPolicy',
|
|
500
|
+
version='2017-12-07',
|
|
501
|
+
protocol='HTTPS',
|
|
502
|
+
pathname='/',
|
|
503
|
+
method='POST',
|
|
504
|
+
auth_type='AK',
|
|
505
|
+
style='RPC',
|
|
506
|
+
req_body_type='formData',
|
|
507
|
+
body_type='json'
|
|
508
|
+
)
|
|
509
|
+
return TeaCore.from_map(
|
|
510
|
+
cloudfw_20171207_models.AddDnsFirewallPolicyResponse(),
|
|
511
|
+
await self.call_api_async(params, req, runtime)
|
|
512
|
+
)
|
|
513
|
+
|
|
514
|
+
def add_dns_firewall_policy(
|
|
515
|
+
self,
|
|
516
|
+
request: cloudfw_20171207_models.AddDnsFirewallPolicyRequest,
|
|
517
|
+
) -> cloudfw_20171207_models.AddDnsFirewallPolicyResponse:
|
|
518
|
+
"""
|
|
519
|
+
@summary 添加DNS防火墙ACL
|
|
520
|
+
|
|
521
|
+
@param request: AddDnsFirewallPolicyRequest
|
|
522
|
+
@return: AddDnsFirewallPolicyResponse
|
|
523
|
+
"""
|
|
524
|
+
runtime = util_models.RuntimeOptions()
|
|
525
|
+
return self.add_dns_firewall_policy_with_options(request, runtime)
|
|
526
|
+
|
|
527
|
+
async def add_dns_firewall_policy_async(
|
|
528
|
+
self,
|
|
529
|
+
request: cloudfw_20171207_models.AddDnsFirewallPolicyRequest,
|
|
530
|
+
) -> cloudfw_20171207_models.AddDnsFirewallPolicyResponse:
|
|
531
|
+
"""
|
|
532
|
+
@summary 添加DNS防火墙ACL
|
|
533
|
+
|
|
534
|
+
@param request: AddDnsFirewallPolicyRequest
|
|
535
|
+
@return: AddDnsFirewallPolicyResponse
|
|
536
|
+
"""
|
|
537
|
+
runtime = util_models.RuntimeOptions()
|
|
538
|
+
return await self.add_dns_firewall_policy_with_options_async(request, runtime)
|
|
539
|
+
|
|
400
540
|
def add_instance_members_with_options(
|
|
401
541
|
self,
|
|
402
542
|
request: cloudfw_20171207_models.AddInstanceMembersRequest,
|
|
@@ -509,6 +649,110 @@ class Client(OpenApiClient):
|
|
|
509
649
|
runtime = util_models.RuntimeOptions()
|
|
510
650
|
return await self.add_instance_members_with_options_async(request, runtime)
|
|
511
651
|
|
|
652
|
+
def add_private_dns_domain_name_with_options(
|
|
653
|
+
self,
|
|
654
|
+
request: cloudfw_20171207_models.AddPrivateDnsDomainNameRequest,
|
|
655
|
+
runtime: util_models.RuntimeOptions,
|
|
656
|
+
) -> cloudfw_20171207_models.AddPrivateDnsDomainNameResponse:
|
|
657
|
+
"""
|
|
658
|
+
@summary 添加私网DNS域名
|
|
659
|
+
|
|
660
|
+
@param request: AddPrivateDnsDomainNameRequest
|
|
661
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
662
|
+
@return: AddPrivateDnsDomainNameResponse
|
|
663
|
+
"""
|
|
664
|
+
UtilClient.validate_model(request)
|
|
665
|
+
query = {}
|
|
666
|
+
if not UtilClient.is_unset(request.access_instance_id):
|
|
667
|
+
query['AccessInstanceId'] = request.access_instance_id
|
|
668
|
+
if not UtilClient.is_unset(request.domain_name_list):
|
|
669
|
+
query['DomainNameList'] = request.domain_name_list
|
|
670
|
+
if not UtilClient.is_unset(request.region_no):
|
|
671
|
+
query['RegionNo'] = request.region_no
|
|
672
|
+
req = open_api_models.OpenApiRequest(
|
|
673
|
+
query=OpenApiUtilClient.query(query)
|
|
674
|
+
)
|
|
675
|
+
params = open_api_models.Params(
|
|
676
|
+
action='AddPrivateDnsDomainName',
|
|
677
|
+
version='2017-12-07',
|
|
678
|
+
protocol='HTTPS',
|
|
679
|
+
pathname='/',
|
|
680
|
+
method='POST',
|
|
681
|
+
auth_type='AK',
|
|
682
|
+
style='RPC',
|
|
683
|
+
req_body_type='formData',
|
|
684
|
+
body_type='json'
|
|
685
|
+
)
|
|
686
|
+
return TeaCore.from_map(
|
|
687
|
+
cloudfw_20171207_models.AddPrivateDnsDomainNameResponse(),
|
|
688
|
+
self.call_api(params, req, runtime)
|
|
689
|
+
)
|
|
690
|
+
|
|
691
|
+
async def add_private_dns_domain_name_with_options_async(
|
|
692
|
+
self,
|
|
693
|
+
request: cloudfw_20171207_models.AddPrivateDnsDomainNameRequest,
|
|
694
|
+
runtime: util_models.RuntimeOptions,
|
|
695
|
+
) -> cloudfw_20171207_models.AddPrivateDnsDomainNameResponse:
|
|
696
|
+
"""
|
|
697
|
+
@summary 添加私网DNS域名
|
|
698
|
+
|
|
699
|
+
@param request: AddPrivateDnsDomainNameRequest
|
|
700
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
701
|
+
@return: AddPrivateDnsDomainNameResponse
|
|
702
|
+
"""
|
|
703
|
+
UtilClient.validate_model(request)
|
|
704
|
+
query = {}
|
|
705
|
+
if not UtilClient.is_unset(request.access_instance_id):
|
|
706
|
+
query['AccessInstanceId'] = request.access_instance_id
|
|
707
|
+
if not UtilClient.is_unset(request.domain_name_list):
|
|
708
|
+
query['DomainNameList'] = request.domain_name_list
|
|
709
|
+
if not UtilClient.is_unset(request.region_no):
|
|
710
|
+
query['RegionNo'] = request.region_no
|
|
711
|
+
req = open_api_models.OpenApiRequest(
|
|
712
|
+
query=OpenApiUtilClient.query(query)
|
|
713
|
+
)
|
|
714
|
+
params = open_api_models.Params(
|
|
715
|
+
action='AddPrivateDnsDomainName',
|
|
716
|
+
version='2017-12-07',
|
|
717
|
+
protocol='HTTPS',
|
|
718
|
+
pathname='/',
|
|
719
|
+
method='POST',
|
|
720
|
+
auth_type='AK',
|
|
721
|
+
style='RPC',
|
|
722
|
+
req_body_type='formData',
|
|
723
|
+
body_type='json'
|
|
724
|
+
)
|
|
725
|
+
return TeaCore.from_map(
|
|
726
|
+
cloudfw_20171207_models.AddPrivateDnsDomainNameResponse(),
|
|
727
|
+
await self.call_api_async(params, req, runtime)
|
|
728
|
+
)
|
|
729
|
+
|
|
730
|
+
def add_private_dns_domain_name(
|
|
731
|
+
self,
|
|
732
|
+
request: cloudfw_20171207_models.AddPrivateDnsDomainNameRequest,
|
|
733
|
+
) -> cloudfw_20171207_models.AddPrivateDnsDomainNameResponse:
|
|
734
|
+
"""
|
|
735
|
+
@summary 添加私网DNS域名
|
|
736
|
+
|
|
737
|
+
@param request: AddPrivateDnsDomainNameRequest
|
|
738
|
+
@return: AddPrivateDnsDomainNameResponse
|
|
739
|
+
"""
|
|
740
|
+
runtime = util_models.RuntimeOptions()
|
|
741
|
+
return self.add_private_dns_domain_name_with_options(request, runtime)
|
|
742
|
+
|
|
743
|
+
async def add_private_dns_domain_name_async(
|
|
744
|
+
self,
|
|
745
|
+
request: cloudfw_20171207_models.AddPrivateDnsDomainNameRequest,
|
|
746
|
+
) -> cloudfw_20171207_models.AddPrivateDnsDomainNameResponse:
|
|
747
|
+
"""
|
|
748
|
+
@summary 添加私网DNS域名
|
|
749
|
+
|
|
750
|
+
@param request: AddPrivateDnsDomainNameRequest
|
|
751
|
+
@return: AddPrivateDnsDomainNameResponse
|
|
752
|
+
"""
|
|
753
|
+
runtime = util_models.RuntimeOptions()
|
|
754
|
+
return await self.add_private_dns_domain_name_with_options_async(request, runtime)
|
|
755
|
+
|
|
512
756
|
def batch_copy_vpc_firewall_control_policy_with_options(
|
|
513
757
|
self,
|
|
514
758
|
request: cloudfw_20171207_models.BatchCopyVpcFirewallControlPolicyRequest,
|
|
@@ -1191,7 +1435,7 @@ class Client(OpenApiClient):
|
|
|
1191
1435
|
runtime: util_models.RuntimeOptions,
|
|
1192
1436
|
) -> cloudfw_20171207_models.CreateSlsLogDispatchResponse:
|
|
1193
1437
|
"""
|
|
1194
|
-
@summary
|
|
1438
|
+
@summary Create Cloud Firewall SLS Log Delivery
|
|
1195
1439
|
|
|
1196
1440
|
@param request: CreateSlsLogDispatchRequest
|
|
1197
1441
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -1228,7 +1472,7 @@ class Client(OpenApiClient):
|
|
|
1228
1472
|
runtime: util_models.RuntimeOptions,
|
|
1229
1473
|
) -> cloudfw_20171207_models.CreateSlsLogDispatchResponse:
|
|
1230
1474
|
"""
|
|
1231
|
-
@summary
|
|
1475
|
+
@summary Create Cloud Firewall SLS Log Delivery
|
|
1232
1476
|
|
|
1233
1477
|
@param request: CreateSlsLogDispatchRequest
|
|
1234
1478
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -1264,7 +1508,7 @@ class Client(OpenApiClient):
|
|
|
1264
1508
|
request: cloudfw_20171207_models.CreateSlsLogDispatchRequest,
|
|
1265
1509
|
) -> cloudfw_20171207_models.CreateSlsLogDispatchResponse:
|
|
1266
1510
|
"""
|
|
1267
|
-
@summary
|
|
1511
|
+
@summary Create Cloud Firewall SLS Log Delivery
|
|
1268
1512
|
|
|
1269
1513
|
@param request: CreateSlsLogDispatchRequest
|
|
1270
1514
|
@return: CreateSlsLogDispatchResponse
|
|
@@ -1277,7 +1521,7 @@ class Client(OpenApiClient):
|
|
|
1277
1521
|
request: cloudfw_20171207_models.CreateSlsLogDispatchRequest,
|
|
1278
1522
|
) -> cloudfw_20171207_models.CreateSlsLogDispatchResponse:
|
|
1279
1523
|
"""
|
|
1280
|
-
@summary
|
|
1524
|
+
@summary Create Cloud Firewall SLS Log Delivery
|
|
1281
1525
|
|
|
1282
1526
|
@param request: CreateSlsLogDispatchRequest
|
|
1283
1527
|
@return: CreateSlsLogDispatchResponse
|
|
@@ -1725,49 +1969,37 @@ class Client(OpenApiClient):
|
|
|
1725
1969
|
runtime = util_models.RuntimeOptions()
|
|
1726
1970
|
return await self.create_vpc_firewall_cen_configure_with_options_async(request, runtime)
|
|
1727
1971
|
|
|
1728
|
-
def
|
|
1972
|
+
def create_vpc_firewall_cen_manual_configure_with_options(
|
|
1729
1973
|
self,
|
|
1730
|
-
request: cloudfw_20171207_models.
|
|
1974
|
+
request: cloudfw_20171207_models.CreateVpcFirewallCenManualConfigureRequest,
|
|
1731
1975
|
runtime: util_models.RuntimeOptions,
|
|
1732
|
-
) -> cloudfw_20171207_models.
|
|
1976
|
+
) -> cloudfw_20171207_models.CreateVpcFirewallCenManualConfigureResponse:
|
|
1733
1977
|
"""
|
|
1734
|
-
@summary
|
|
1978
|
+
@summary 创建VPC防火墙手动配置
|
|
1735
1979
|
|
|
1736
|
-
@
|
|
1737
|
-
### [](#qps)QPS limit
|
|
1738
|
-
You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
1739
|
-
|
|
1740
|
-
@param request: CreateVpcFirewallConfigureRequest
|
|
1980
|
+
@param request: CreateVpcFirewallCenManualConfigureRequest
|
|
1741
1981
|
@param runtime: runtime options for this request RuntimeOptions
|
|
1742
|
-
@return:
|
|
1982
|
+
@return: CreateVpcFirewallCenManualConfigureResponse
|
|
1743
1983
|
"""
|
|
1744
1984
|
UtilClient.validate_model(request)
|
|
1745
1985
|
query = {}
|
|
1746
|
-
if not UtilClient.is_unset(request.
|
|
1747
|
-
query['
|
|
1986
|
+
if not UtilClient.is_unset(request.cen_id):
|
|
1987
|
+
query['CenId'] = request.cen_id
|
|
1748
1988
|
if not UtilClient.is_unset(request.lang):
|
|
1749
1989
|
query['Lang'] = request.lang
|
|
1750
|
-
if not UtilClient.is_unset(request.local_vpc_cidr_table_list):
|
|
1751
|
-
query['LocalVpcCidrTableList'] = request.local_vpc_cidr_table_list
|
|
1752
|
-
if not UtilClient.is_unset(request.local_vpc_id):
|
|
1753
|
-
query['LocalVpcId'] = request.local_vpc_id
|
|
1754
|
-
if not UtilClient.is_unset(request.local_vpc_region):
|
|
1755
|
-
query['LocalVpcRegion'] = request.local_vpc_region
|
|
1756
1990
|
if not UtilClient.is_unset(request.member_uid):
|
|
1757
1991
|
query['MemberUid'] = request.member_uid
|
|
1758
|
-
if not UtilClient.is_unset(request.
|
|
1759
|
-
query['
|
|
1760
|
-
if not UtilClient.is_unset(request.peer_vpc_id):
|
|
1761
|
-
query['PeerVpcId'] = request.peer_vpc_id
|
|
1762
|
-
if not UtilClient.is_unset(request.peer_vpc_region):
|
|
1763
|
-
query['PeerVpcRegion'] = request.peer_vpc_region
|
|
1992
|
+
if not UtilClient.is_unset(request.v_switch_id):
|
|
1993
|
+
query['VSwitchId'] = request.v_switch_id
|
|
1764
1994
|
if not UtilClient.is_unset(request.vpc_firewall_name):
|
|
1765
1995
|
query['VpcFirewallName'] = request.vpc_firewall_name
|
|
1996
|
+
if not UtilClient.is_unset(request.vpc_id):
|
|
1997
|
+
query['VpcId'] = request.vpc_id
|
|
1766
1998
|
req = open_api_models.OpenApiRequest(
|
|
1767
1999
|
query=OpenApiUtilClient.query(query)
|
|
1768
2000
|
)
|
|
1769
2001
|
params = open_api_models.Params(
|
|
1770
|
-
action='
|
|
2002
|
+
action='CreateVpcFirewallCenManualConfigure',
|
|
1771
2003
|
version='2017-12-07',
|
|
1772
2004
|
protocol='HTTPS',
|
|
1773
2005
|
pathname='/',
|
|
@@ -1778,11 +2010,82 @@ class Client(OpenApiClient):
|
|
|
1778
2010
|
body_type='json'
|
|
1779
2011
|
)
|
|
1780
2012
|
return TeaCore.from_map(
|
|
1781
|
-
cloudfw_20171207_models.
|
|
2013
|
+
cloudfw_20171207_models.CreateVpcFirewallCenManualConfigureResponse(),
|
|
1782
2014
|
self.call_api(params, req, runtime)
|
|
1783
2015
|
)
|
|
1784
2016
|
|
|
1785
|
-
async def
|
|
2017
|
+
async def create_vpc_firewall_cen_manual_configure_with_options_async(
|
|
2018
|
+
self,
|
|
2019
|
+
request: cloudfw_20171207_models.CreateVpcFirewallCenManualConfigureRequest,
|
|
2020
|
+
runtime: util_models.RuntimeOptions,
|
|
2021
|
+
) -> cloudfw_20171207_models.CreateVpcFirewallCenManualConfigureResponse:
|
|
2022
|
+
"""
|
|
2023
|
+
@summary 创建VPC防火墙手动配置
|
|
2024
|
+
|
|
2025
|
+
@param request: CreateVpcFirewallCenManualConfigureRequest
|
|
2026
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2027
|
+
@return: CreateVpcFirewallCenManualConfigureResponse
|
|
2028
|
+
"""
|
|
2029
|
+
UtilClient.validate_model(request)
|
|
2030
|
+
query = {}
|
|
2031
|
+
if not UtilClient.is_unset(request.cen_id):
|
|
2032
|
+
query['CenId'] = request.cen_id
|
|
2033
|
+
if not UtilClient.is_unset(request.lang):
|
|
2034
|
+
query['Lang'] = request.lang
|
|
2035
|
+
if not UtilClient.is_unset(request.member_uid):
|
|
2036
|
+
query['MemberUid'] = request.member_uid
|
|
2037
|
+
if not UtilClient.is_unset(request.v_switch_id):
|
|
2038
|
+
query['VSwitchId'] = request.v_switch_id
|
|
2039
|
+
if not UtilClient.is_unset(request.vpc_firewall_name):
|
|
2040
|
+
query['VpcFirewallName'] = request.vpc_firewall_name
|
|
2041
|
+
if not UtilClient.is_unset(request.vpc_id):
|
|
2042
|
+
query['VpcId'] = request.vpc_id
|
|
2043
|
+
req = open_api_models.OpenApiRequest(
|
|
2044
|
+
query=OpenApiUtilClient.query(query)
|
|
2045
|
+
)
|
|
2046
|
+
params = open_api_models.Params(
|
|
2047
|
+
action='CreateVpcFirewallCenManualConfigure',
|
|
2048
|
+
version='2017-12-07',
|
|
2049
|
+
protocol='HTTPS',
|
|
2050
|
+
pathname='/',
|
|
2051
|
+
method='POST',
|
|
2052
|
+
auth_type='AK',
|
|
2053
|
+
style='RPC',
|
|
2054
|
+
req_body_type='formData',
|
|
2055
|
+
body_type='json'
|
|
2056
|
+
)
|
|
2057
|
+
return TeaCore.from_map(
|
|
2058
|
+
cloudfw_20171207_models.CreateVpcFirewallCenManualConfigureResponse(),
|
|
2059
|
+
await self.call_api_async(params, req, runtime)
|
|
2060
|
+
)
|
|
2061
|
+
|
|
2062
|
+
def create_vpc_firewall_cen_manual_configure(
|
|
2063
|
+
self,
|
|
2064
|
+
request: cloudfw_20171207_models.CreateVpcFirewallCenManualConfigureRequest,
|
|
2065
|
+
) -> cloudfw_20171207_models.CreateVpcFirewallCenManualConfigureResponse:
|
|
2066
|
+
"""
|
|
2067
|
+
@summary 创建VPC防火墙手动配置
|
|
2068
|
+
|
|
2069
|
+
@param request: CreateVpcFirewallCenManualConfigureRequest
|
|
2070
|
+
@return: CreateVpcFirewallCenManualConfigureResponse
|
|
2071
|
+
"""
|
|
2072
|
+
runtime = util_models.RuntimeOptions()
|
|
2073
|
+
return self.create_vpc_firewall_cen_manual_configure_with_options(request, runtime)
|
|
2074
|
+
|
|
2075
|
+
async def create_vpc_firewall_cen_manual_configure_async(
|
|
2076
|
+
self,
|
|
2077
|
+
request: cloudfw_20171207_models.CreateVpcFirewallCenManualConfigureRequest,
|
|
2078
|
+
) -> cloudfw_20171207_models.CreateVpcFirewallCenManualConfigureResponse:
|
|
2079
|
+
"""
|
|
2080
|
+
@summary 创建VPC防火墙手动配置
|
|
2081
|
+
|
|
2082
|
+
@param request: CreateVpcFirewallCenManualConfigureRequest
|
|
2083
|
+
@return: CreateVpcFirewallCenManualConfigureResponse
|
|
2084
|
+
"""
|
|
2085
|
+
runtime = util_models.RuntimeOptions()
|
|
2086
|
+
return await self.create_vpc_firewall_cen_manual_configure_with_options_async(request, runtime)
|
|
2087
|
+
|
|
2088
|
+
def create_vpc_firewall_configure_with_options(
|
|
1786
2089
|
self,
|
|
1787
2090
|
request: cloudfw_20171207_models.CreateVpcFirewallConfigureRequest,
|
|
1788
2091
|
runtime: util_models.RuntimeOptions,
|
|
@@ -1836,7 +2139,64 @@ class Client(OpenApiClient):
|
|
|
1836
2139
|
)
|
|
1837
2140
|
return TeaCore.from_map(
|
|
1838
2141
|
cloudfw_20171207_models.CreateVpcFirewallConfigureResponse(),
|
|
1839
|
-
|
|
2142
|
+
self.call_api(params, req, runtime)
|
|
2143
|
+
)
|
|
2144
|
+
|
|
2145
|
+
async def create_vpc_firewall_configure_with_options_async(
|
|
2146
|
+
self,
|
|
2147
|
+
request: cloudfw_20171207_models.CreateVpcFirewallConfigureRequest,
|
|
2148
|
+
runtime: util_models.RuntimeOptions,
|
|
2149
|
+
) -> cloudfw_20171207_models.CreateVpcFirewallConfigureResponse:
|
|
2150
|
+
"""
|
|
2151
|
+
@summary Creates a Virtual Private Cloud (VPC) firewall to protect traffic between two VPCs that are connected by using an Express Connect.
|
|
2152
|
+
|
|
2153
|
+
@description You can call this operation to create a VPC firewall. The VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit. The VPC firewall does not control the mutual access traffic between VPCs that reside in different regions or belong to different Alibaba Cloud accounts. The firewall also does not control the mutual access traffic between VPCs and virtual border routers (VBRs). For more information, see [VPC firewall limits](https://help.aliyun.com/document_detail/172295.html).
|
|
2154
|
+
### [](#qps)QPS limit
|
|
2155
|
+
You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
2156
|
+
|
|
2157
|
+
@param request: CreateVpcFirewallConfigureRequest
|
|
2158
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2159
|
+
@return: CreateVpcFirewallConfigureResponse
|
|
2160
|
+
"""
|
|
2161
|
+
UtilClient.validate_model(request)
|
|
2162
|
+
query = {}
|
|
2163
|
+
if not UtilClient.is_unset(request.firewall_switch):
|
|
2164
|
+
query['FirewallSwitch'] = request.firewall_switch
|
|
2165
|
+
if not UtilClient.is_unset(request.lang):
|
|
2166
|
+
query['Lang'] = request.lang
|
|
2167
|
+
if not UtilClient.is_unset(request.local_vpc_cidr_table_list):
|
|
2168
|
+
query['LocalVpcCidrTableList'] = request.local_vpc_cidr_table_list
|
|
2169
|
+
if not UtilClient.is_unset(request.local_vpc_id):
|
|
2170
|
+
query['LocalVpcId'] = request.local_vpc_id
|
|
2171
|
+
if not UtilClient.is_unset(request.local_vpc_region):
|
|
2172
|
+
query['LocalVpcRegion'] = request.local_vpc_region
|
|
2173
|
+
if not UtilClient.is_unset(request.member_uid):
|
|
2174
|
+
query['MemberUid'] = request.member_uid
|
|
2175
|
+
if not UtilClient.is_unset(request.peer_vpc_cidr_table_list):
|
|
2176
|
+
query['PeerVpcCidrTableList'] = request.peer_vpc_cidr_table_list
|
|
2177
|
+
if not UtilClient.is_unset(request.peer_vpc_id):
|
|
2178
|
+
query['PeerVpcId'] = request.peer_vpc_id
|
|
2179
|
+
if not UtilClient.is_unset(request.peer_vpc_region):
|
|
2180
|
+
query['PeerVpcRegion'] = request.peer_vpc_region
|
|
2181
|
+
if not UtilClient.is_unset(request.vpc_firewall_name):
|
|
2182
|
+
query['VpcFirewallName'] = request.vpc_firewall_name
|
|
2183
|
+
req = open_api_models.OpenApiRequest(
|
|
2184
|
+
query=OpenApiUtilClient.query(query)
|
|
2185
|
+
)
|
|
2186
|
+
params = open_api_models.Params(
|
|
2187
|
+
action='CreateVpcFirewallConfigure',
|
|
2188
|
+
version='2017-12-07',
|
|
2189
|
+
protocol='HTTPS',
|
|
2190
|
+
pathname='/',
|
|
2191
|
+
method='POST',
|
|
2192
|
+
auth_type='AK',
|
|
2193
|
+
style='RPC',
|
|
2194
|
+
req_body_type='formData',
|
|
2195
|
+
body_type='json'
|
|
2196
|
+
)
|
|
2197
|
+
return TeaCore.from_map(
|
|
2198
|
+
cloudfw_20171207_models.CreateVpcFirewallConfigureResponse(),
|
|
2199
|
+
await self.call_api_async(params, req, runtime)
|
|
1840
2200
|
)
|
|
1841
2201
|
|
|
1842
2202
|
def create_vpc_firewall_configure(
|
|
@@ -2429,6 +2789,110 @@ class Client(OpenApiClient):
|
|
|
2429
2789
|
runtime = util_models.RuntimeOptions()
|
|
2430
2790
|
return await self.delete_control_policy_template_with_options_async(request, runtime)
|
|
2431
2791
|
|
|
2792
|
+
def delete_dns_firewall_policy_with_options(
|
|
2793
|
+
self,
|
|
2794
|
+
request: cloudfw_20171207_models.DeleteDnsFirewallPolicyRequest,
|
|
2795
|
+
runtime: util_models.RuntimeOptions,
|
|
2796
|
+
) -> cloudfw_20171207_models.DeleteDnsFirewallPolicyResponse:
|
|
2797
|
+
"""
|
|
2798
|
+
@summary 删除DNS防火墙规则
|
|
2799
|
+
|
|
2800
|
+
@param request: DeleteDnsFirewallPolicyRequest
|
|
2801
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2802
|
+
@return: DeleteDnsFirewallPolicyResponse
|
|
2803
|
+
"""
|
|
2804
|
+
UtilClient.validate_model(request)
|
|
2805
|
+
query = {}
|
|
2806
|
+
if not UtilClient.is_unset(request.acl_uuid):
|
|
2807
|
+
query['AclUuid'] = request.acl_uuid
|
|
2808
|
+
if not UtilClient.is_unset(request.lang):
|
|
2809
|
+
query['Lang'] = request.lang
|
|
2810
|
+
if not UtilClient.is_unset(request.source_ip):
|
|
2811
|
+
query['SourceIp'] = request.source_ip
|
|
2812
|
+
req = open_api_models.OpenApiRequest(
|
|
2813
|
+
query=OpenApiUtilClient.query(query)
|
|
2814
|
+
)
|
|
2815
|
+
params = open_api_models.Params(
|
|
2816
|
+
action='DeleteDnsFirewallPolicy',
|
|
2817
|
+
version='2017-12-07',
|
|
2818
|
+
protocol='HTTPS',
|
|
2819
|
+
pathname='/',
|
|
2820
|
+
method='POST',
|
|
2821
|
+
auth_type='AK',
|
|
2822
|
+
style='RPC',
|
|
2823
|
+
req_body_type='formData',
|
|
2824
|
+
body_type='json'
|
|
2825
|
+
)
|
|
2826
|
+
return TeaCore.from_map(
|
|
2827
|
+
cloudfw_20171207_models.DeleteDnsFirewallPolicyResponse(),
|
|
2828
|
+
self.call_api(params, req, runtime)
|
|
2829
|
+
)
|
|
2830
|
+
|
|
2831
|
+
async def delete_dns_firewall_policy_with_options_async(
|
|
2832
|
+
self,
|
|
2833
|
+
request: cloudfw_20171207_models.DeleteDnsFirewallPolicyRequest,
|
|
2834
|
+
runtime: util_models.RuntimeOptions,
|
|
2835
|
+
) -> cloudfw_20171207_models.DeleteDnsFirewallPolicyResponse:
|
|
2836
|
+
"""
|
|
2837
|
+
@summary 删除DNS防火墙规则
|
|
2838
|
+
|
|
2839
|
+
@param request: DeleteDnsFirewallPolicyRequest
|
|
2840
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2841
|
+
@return: DeleteDnsFirewallPolicyResponse
|
|
2842
|
+
"""
|
|
2843
|
+
UtilClient.validate_model(request)
|
|
2844
|
+
query = {}
|
|
2845
|
+
if not UtilClient.is_unset(request.acl_uuid):
|
|
2846
|
+
query['AclUuid'] = request.acl_uuid
|
|
2847
|
+
if not UtilClient.is_unset(request.lang):
|
|
2848
|
+
query['Lang'] = request.lang
|
|
2849
|
+
if not UtilClient.is_unset(request.source_ip):
|
|
2850
|
+
query['SourceIp'] = request.source_ip
|
|
2851
|
+
req = open_api_models.OpenApiRequest(
|
|
2852
|
+
query=OpenApiUtilClient.query(query)
|
|
2853
|
+
)
|
|
2854
|
+
params = open_api_models.Params(
|
|
2855
|
+
action='DeleteDnsFirewallPolicy',
|
|
2856
|
+
version='2017-12-07',
|
|
2857
|
+
protocol='HTTPS',
|
|
2858
|
+
pathname='/',
|
|
2859
|
+
method='POST',
|
|
2860
|
+
auth_type='AK',
|
|
2861
|
+
style='RPC',
|
|
2862
|
+
req_body_type='formData',
|
|
2863
|
+
body_type='json'
|
|
2864
|
+
)
|
|
2865
|
+
return TeaCore.from_map(
|
|
2866
|
+
cloudfw_20171207_models.DeleteDnsFirewallPolicyResponse(),
|
|
2867
|
+
await self.call_api_async(params, req, runtime)
|
|
2868
|
+
)
|
|
2869
|
+
|
|
2870
|
+
def delete_dns_firewall_policy(
|
|
2871
|
+
self,
|
|
2872
|
+
request: cloudfw_20171207_models.DeleteDnsFirewallPolicyRequest,
|
|
2873
|
+
) -> cloudfw_20171207_models.DeleteDnsFirewallPolicyResponse:
|
|
2874
|
+
"""
|
|
2875
|
+
@summary 删除DNS防火墙规则
|
|
2876
|
+
|
|
2877
|
+
@param request: DeleteDnsFirewallPolicyRequest
|
|
2878
|
+
@return: DeleteDnsFirewallPolicyResponse
|
|
2879
|
+
"""
|
|
2880
|
+
runtime = util_models.RuntimeOptions()
|
|
2881
|
+
return self.delete_dns_firewall_policy_with_options(request, runtime)
|
|
2882
|
+
|
|
2883
|
+
async def delete_dns_firewall_policy_async(
|
|
2884
|
+
self,
|
|
2885
|
+
request: cloudfw_20171207_models.DeleteDnsFirewallPolicyRequest,
|
|
2886
|
+
) -> cloudfw_20171207_models.DeleteDnsFirewallPolicyResponse:
|
|
2887
|
+
"""
|
|
2888
|
+
@summary 删除DNS防火墙规则
|
|
2889
|
+
|
|
2890
|
+
@param request: DeleteDnsFirewallPolicyRequest
|
|
2891
|
+
@return: DeleteDnsFirewallPolicyResponse
|
|
2892
|
+
"""
|
|
2893
|
+
runtime = util_models.RuntimeOptions()
|
|
2894
|
+
return await self.delete_dns_firewall_policy_with_options_async(request, runtime)
|
|
2895
|
+
|
|
2432
2896
|
def delete_download_task_with_options(
|
|
2433
2897
|
self,
|
|
2434
2898
|
request: cloudfw_20171207_models.DeleteDownloadTaskRequest,
|
|
@@ -2814,25 +3278,341 @@ class Client(OpenApiClient):
|
|
|
2814
3278
|
|
|
2815
3279
|
@description You can use this operation to delete an outbound access control policy that is created for a NAT firewall.
|
|
2816
3280
|
|
|
2817
|
-
@param request: DeleteNatFirewallControlPolicyRequest
|
|
3281
|
+
@param request: DeleteNatFirewallControlPolicyRequest
|
|
3282
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
3283
|
+
@return: DeleteNatFirewallControlPolicyResponse
|
|
3284
|
+
"""
|
|
3285
|
+
UtilClient.validate_model(request)
|
|
3286
|
+
query = {}
|
|
3287
|
+
if not UtilClient.is_unset(request.acl_uuid):
|
|
3288
|
+
query['AclUuid'] = request.acl_uuid
|
|
3289
|
+
if not UtilClient.is_unset(request.direction):
|
|
3290
|
+
query['Direction'] = request.direction
|
|
3291
|
+
if not UtilClient.is_unset(request.lang):
|
|
3292
|
+
query['Lang'] = request.lang
|
|
3293
|
+
if not UtilClient.is_unset(request.nat_gateway_id):
|
|
3294
|
+
query['NatGatewayId'] = request.nat_gateway_id
|
|
3295
|
+
req = open_api_models.OpenApiRequest(
|
|
3296
|
+
query=OpenApiUtilClient.query(query)
|
|
3297
|
+
)
|
|
3298
|
+
params = open_api_models.Params(
|
|
3299
|
+
action='DeleteNatFirewallControlPolicy',
|
|
3300
|
+
version='2017-12-07',
|
|
3301
|
+
protocol='HTTPS',
|
|
3302
|
+
pathname='/',
|
|
3303
|
+
method='POST',
|
|
3304
|
+
auth_type='AK',
|
|
3305
|
+
style='RPC',
|
|
3306
|
+
req_body_type='formData',
|
|
3307
|
+
body_type='json'
|
|
3308
|
+
)
|
|
3309
|
+
return TeaCore.from_map(
|
|
3310
|
+
cloudfw_20171207_models.DeleteNatFirewallControlPolicyResponse(),
|
|
3311
|
+
await self.call_api_async(params, req, runtime)
|
|
3312
|
+
)
|
|
3313
|
+
|
|
3314
|
+
def delete_nat_firewall_control_policy(
|
|
3315
|
+
self,
|
|
3316
|
+
request: cloudfw_20171207_models.DeleteNatFirewallControlPolicyRequest,
|
|
3317
|
+
) -> cloudfw_20171207_models.DeleteNatFirewallControlPolicyResponse:
|
|
3318
|
+
"""
|
|
3319
|
+
@summary Deletes an access control policy that is created for a NAT firewall.
|
|
3320
|
+
|
|
3321
|
+
@description You can use this operation to delete an outbound access control policy that is created for a NAT firewall.
|
|
3322
|
+
|
|
3323
|
+
@param request: DeleteNatFirewallControlPolicyRequest
|
|
3324
|
+
@return: DeleteNatFirewallControlPolicyResponse
|
|
3325
|
+
"""
|
|
3326
|
+
runtime = util_models.RuntimeOptions()
|
|
3327
|
+
return self.delete_nat_firewall_control_policy_with_options(request, runtime)
|
|
3328
|
+
|
|
3329
|
+
async def delete_nat_firewall_control_policy_async(
|
|
3330
|
+
self,
|
|
3331
|
+
request: cloudfw_20171207_models.DeleteNatFirewallControlPolicyRequest,
|
|
3332
|
+
) -> cloudfw_20171207_models.DeleteNatFirewallControlPolicyResponse:
|
|
3333
|
+
"""
|
|
3334
|
+
@summary Deletes an access control policy that is created for a NAT firewall.
|
|
3335
|
+
|
|
3336
|
+
@description You can use this operation to delete an outbound access control policy that is created for a NAT firewall.
|
|
3337
|
+
|
|
3338
|
+
@param request: DeleteNatFirewallControlPolicyRequest
|
|
3339
|
+
@return: DeleteNatFirewallControlPolicyResponse
|
|
3340
|
+
"""
|
|
3341
|
+
runtime = util_models.RuntimeOptions()
|
|
3342
|
+
return await self.delete_nat_firewall_control_policy_with_options_async(request, runtime)
|
|
3343
|
+
|
|
3344
|
+
def delete_nat_firewall_control_policy_batch_with_options(
|
|
3345
|
+
self,
|
|
3346
|
+
request: cloudfw_20171207_models.DeleteNatFirewallControlPolicyBatchRequest,
|
|
3347
|
+
runtime: util_models.RuntimeOptions,
|
|
3348
|
+
) -> cloudfw_20171207_models.DeleteNatFirewallControlPolicyBatchResponse:
|
|
3349
|
+
"""
|
|
3350
|
+
@summary Deletes access control policies that are created for a NAT firewall at a time.
|
|
3351
|
+
|
|
3352
|
+
@param request: DeleteNatFirewallControlPolicyBatchRequest
|
|
3353
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
3354
|
+
@return: DeleteNatFirewallControlPolicyBatchResponse
|
|
3355
|
+
"""
|
|
3356
|
+
UtilClient.validate_model(request)
|
|
3357
|
+
query = {}
|
|
3358
|
+
if not UtilClient.is_unset(request.acl_uuid_list):
|
|
3359
|
+
query['AclUuidList'] = request.acl_uuid_list
|
|
3360
|
+
if not UtilClient.is_unset(request.direction):
|
|
3361
|
+
query['Direction'] = request.direction
|
|
3362
|
+
if not UtilClient.is_unset(request.lang):
|
|
3363
|
+
query['Lang'] = request.lang
|
|
3364
|
+
if not UtilClient.is_unset(request.nat_gateway_id):
|
|
3365
|
+
query['NatGatewayId'] = request.nat_gateway_id
|
|
3366
|
+
req = open_api_models.OpenApiRequest(
|
|
3367
|
+
query=OpenApiUtilClient.query(query)
|
|
3368
|
+
)
|
|
3369
|
+
params = open_api_models.Params(
|
|
3370
|
+
action='DeleteNatFirewallControlPolicyBatch',
|
|
3371
|
+
version='2017-12-07',
|
|
3372
|
+
protocol='HTTPS',
|
|
3373
|
+
pathname='/',
|
|
3374
|
+
method='POST',
|
|
3375
|
+
auth_type='AK',
|
|
3376
|
+
style='RPC',
|
|
3377
|
+
req_body_type='formData',
|
|
3378
|
+
body_type='json'
|
|
3379
|
+
)
|
|
3380
|
+
return TeaCore.from_map(
|
|
3381
|
+
cloudfw_20171207_models.DeleteNatFirewallControlPolicyBatchResponse(),
|
|
3382
|
+
self.call_api(params, req, runtime)
|
|
3383
|
+
)
|
|
3384
|
+
|
|
3385
|
+
async def delete_nat_firewall_control_policy_batch_with_options_async(
|
|
3386
|
+
self,
|
|
3387
|
+
request: cloudfw_20171207_models.DeleteNatFirewallControlPolicyBatchRequest,
|
|
3388
|
+
runtime: util_models.RuntimeOptions,
|
|
3389
|
+
) -> cloudfw_20171207_models.DeleteNatFirewallControlPolicyBatchResponse:
|
|
3390
|
+
"""
|
|
3391
|
+
@summary Deletes access control policies that are created for a NAT firewall at a time.
|
|
3392
|
+
|
|
3393
|
+
@param request: DeleteNatFirewallControlPolicyBatchRequest
|
|
3394
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
3395
|
+
@return: DeleteNatFirewallControlPolicyBatchResponse
|
|
3396
|
+
"""
|
|
3397
|
+
UtilClient.validate_model(request)
|
|
3398
|
+
query = {}
|
|
3399
|
+
if not UtilClient.is_unset(request.acl_uuid_list):
|
|
3400
|
+
query['AclUuidList'] = request.acl_uuid_list
|
|
3401
|
+
if not UtilClient.is_unset(request.direction):
|
|
3402
|
+
query['Direction'] = request.direction
|
|
3403
|
+
if not UtilClient.is_unset(request.lang):
|
|
3404
|
+
query['Lang'] = request.lang
|
|
3405
|
+
if not UtilClient.is_unset(request.nat_gateway_id):
|
|
3406
|
+
query['NatGatewayId'] = request.nat_gateway_id
|
|
3407
|
+
req = open_api_models.OpenApiRequest(
|
|
3408
|
+
query=OpenApiUtilClient.query(query)
|
|
3409
|
+
)
|
|
3410
|
+
params = open_api_models.Params(
|
|
3411
|
+
action='DeleteNatFirewallControlPolicyBatch',
|
|
3412
|
+
version='2017-12-07',
|
|
3413
|
+
protocol='HTTPS',
|
|
3414
|
+
pathname='/',
|
|
3415
|
+
method='POST',
|
|
3416
|
+
auth_type='AK',
|
|
3417
|
+
style='RPC',
|
|
3418
|
+
req_body_type='formData',
|
|
3419
|
+
body_type='json'
|
|
3420
|
+
)
|
|
3421
|
+
return TeaCore.from_map(
|
|
3422
|
+
cloudfw_20171207_models.DeleteNatFirewallControlPolicyBatchResponse(),
|
|
3423
|
+
await self.call_api_async(params, req, runtime)
|
|
3424
|
+
)
|
|
3425
|
+
|
|
3426
|
+
def delete_nat_firewall_control_policy_batch(
|
|
3427
|
+
self,
|
|
3428
|
+
request: cloudfw_20171207_models.DeleteNatFirewallControlPolicyBatchRequest,
|
|
3429
|
+
) -> cloudfw_20171207_models.DeleteNatFirewallControlPolicyBatchResponse:
|
|
3430
|
+
"""
|
|
3431
|
+
@summary Deletes access control policies that are created for a NAT firewall at a time.
|
|
3432
|
+
|
|
3433
|
+
@param request: DeleteNatFirewallControlPolicyBatchRequest
|
|
3434
|
+
@return: DeleteNatFirewallControlPolicyBatchResponse
|
|
3435
|
+
"""
|
|
3436
|
+
runtime = util_models.RuntimeOptions()
|
|
3437
|
+
return self.delete_nat_firewall_control_policy_batch_with_options(request, runtime)
|
|
3438
|
+
|
|
3439
|
+
async def delete_nat_firewall_control_policy_batch_async(
|
|
3440
|
+
self,
|
|
3441
|
+
request: cloudfw_20171207_models.DeleteNatFirewallControlPolicyBatchRequest,
|
|
3442
|
+
) -> cloudfw_20171207_models.DeleteNatFirewallControlPolicyBatchResponse:
|
|
3443
|
+
"""
|
|
3444
|
+
@summary Deletes access control policies that are created for a NAT firewall at a time.
|
|
3445
|
+
|
|
3446
|
+
@param request: DeleteNatFirewallControlPolicyBatchRequest
|
|
3447
|
+
@return: DeleteNatFirewallControlPolicyBatchResponse
|
|
3448
|
+
"""
|
|
3449
|
+
runtime = util_models.RuntimeOptions()
|
|
3450
|
+
return await self.delete_nat_firewall_control_policy_batch_with_options_async(request, runtime)
|
|
3451
|
+
|
|
3452
|
+
def delete_private_dns_all_domain_name_with_options(
|
|
3453
|
+
self,
|
|
3454
|
+
request: cloudfw_20171207_models.DeletePrivateDnsAllDomainNameRequest,
|
|
3455
|
+
runtime: util_models.RuntimeOptions,
|
|
3456
|
+
) -> cloudfw_20171207_models.DeletePrivateDnsAllDomainNameResponse:
|
|
3457
|
+
"""
|
|
3458
|
+
@summary 清空私网DNS域名
|
|
3459
|
+
|
|
3460
|
+
@param request: DeletePrivateDnsAllDomainNameRequest
|
|
3461
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
3462
|
+
@return: DeletePrivateDnsAllDomainNameResponse
|
|
3463
|
+
"""
|
|
3464
|
+
UtilClient.validate_model(request)
|
|
3465
|
+
query = {}
|
|
3466
|
+
if not UtilClient.is_unset(request.access_instance_id):
|
|
3467
|
+
query['AccessInstanceId'] = request.access_instance_id
|
|
3468
|
+
if not UtilClient.is_unset(request.region_no):
|
|
3469
|
+
query['RegionNo'] = request.region_no
|
|
3470
|
+
req = open_api_models.OpenApiRequest(
|
|
3471
|
+
query=OpenApiUtilClient.query(query)
|
|
3472
|
+
)
|
|
3473
|
+
params = open_api_models.Params(
|
|
3474
|
+
action='DeletePrivateDnsAllDomainName',
|
|
3475
|
+
version='2017-12-07',
|
|
3476
|
+
protocol='HTTPS',
|
|
3477
|
+
pathname='/',
|
|
3478
|
+
method='POST',
|
|
3479
|
+
auth_type='AK',
|
|
3480
|
+
style='RPC',
|
|
3481
|
+
req_body_type='formData',
|
|
3482
|
+
body_type='json'
|
|
3483
|
+
)
|
|
3484
|
+
return TeaCore.from_map(
|
|
3485
|
+
cloudfw_20171207_models.DeletePrivateDnsAllDomainNameResponse(),
|
|
3486
|
+
self.call_api(params, req, runtime)
|
|
3487
|
+
)
|
|
3488
|
+
|
|
3489
|
+
async def delete_private_dns_all_domain_name_with_options_async(
|
|
3490
|
+
self,
|
|
3491
|
+
request: cloudfw_20171207_models.DeletePrivateDnsAllDomainNameRequest,
|
|
3492
|
+
runtime: util_models.RuntimeOptions,
|
|
3493
|
+
) -> cloudfw_20171207_models.DeletePrivateDnsAllDomainNameResponse:
|
|
3494
|
+
"""
|
|
3495
|
+
@summary 清空私网DNS域名
|
|
3496
|
+
|
|
3497
|
+
@param request: DeletePrivateDnsAllDomainNameRequest
|
|
3498
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
3499
|
+
@return: DeletePrivateDnsAllDomainNameResponse
|
|
3500
|
+
"""
|
|
3501
|
+
UtilClient.validate_model(request)
|
|
3502
|
+
query = {}
|
|
3503
|
+
if not UtilClient.is_unset(request.access_instance_id):
|
|
3504
|
+
query['AccessInstanceId'] = request.access_instance_id
|
|
3505
|
+
if not UtilClient.is_unset(request.region_no):
|
|
3506
|
+
query['RegionNo'] = request.region_no
|
|
3507
|
+
req = open_api_models.OpenApiRequest(
|
|
3508
|
+
query=OpenApiUtilClient.query(query)
|
|
3509
|
+
)
|
|
3510
|
+
params = open_api_models.Params(
|
|
3511
|
+
action='DeletePrivateDnsAllDomainName',
|
|
3512
|
+
version='2017-12-07',
|
|
3513
|
+
protocol='HTTPS',
|
|
3514
|
+
pathname='/',
|
|
3515
|
+
method='POST',
|
|
3516
|
+
auth_type='AK',
|
|
3517
|
+
style='RPC',
|
|
3518
|
+
req_body_type='formData',
|
|
3519
|
+
body_type='json'
|
|
3520
|
+
)
|
|
3521
|
+
return TeaCore.from_map(
|
|
3522
|
+
cloudfw_20171207_models.DeletePrivateDnsAllDomainNameResponse(),
|
|
3523
|
+
await self.call_api_async(params, req, runtime)
|
|
3524
|
+
)
|
|
3525
|
+
|
|
3526
|
+
def delete_private_dns_all_domain_name(
|
|
3527
|
+
self,
|
|
3528
|
+
request: cloudfw_20171207_models.DeletePrivateDnsAllDomainNameRequest,
|
|
3529
|
+
) -> cloudfw_20171207_models.DeletePrivateDnsAllDomainNameResponse:
|
|
3530
|
+
"""
|
|
3531
|
+
@summary 清空私网DNS域名
|
|
3532
|
+
|
|
3533
|
+
@param request: DeletePrivateDnsAllDomainNameRequest
|
|
3534
|
+
@return: DeletePrivateDnsAllDomainNameResponse
|
|
3535
|
+
"""
|
|
3536
|
+
runtime = util_models.RuntimeOptions()
|
|
3537
|
+
return self.delete_private_dns_all_domain_name_with_options(request, runtime)
|
|
3538
|
+
|
|
3539
|
+
async def delete_private_dns_all_domain_name_async(
|
|
3540
|
+
self,
|
|
3541
|
+
request: cloudfw_20171207_models.DeletePrivateDnsAllDomainNameRequest,
|
|
3542
|
+
) -> cloudfw_20171207_models.DeletePrivateDnsAllDomainNameResponse:
|
|
3543
|
+
"""
|
|
3544
|
+
@summary 清空私网DNS域名
|
|
3545
|
+
|
|
3546
|
+
@param request: DeletePrivateDnsAllDomainNameRequest
|
|
3547
|
+
@return: DeletePrivateDnsAllDomainNameResponse
|
|
3548
|
+
"""
|
|
3549
|
+
runtime = util_models.RuntimeOptions()
|
|
3550
|
+
return await self.delete_private_dns_all_domain_name_with_options_async(request, runtime)
|
|
3551
|
+
|
|
3552
|
+
def delete_private_dns_domain_name_with_options(
|
|
3553
|
+
self,
|
|
3554
|
+
request: cloudfw_20171207_models.DeletePrivateDnsDomainNameRequest,
|
|
3555
|
+
runtime: util_models.RuntimeOptions,
|
|
3556
|
+
) -> cloudfw_20171207_models.DeletePrivateDnsDomainNameResponse:
|
|
3557
|
+
"""
|
|
3558
|
+
@summary 删除私网DNS域名
|
|
3559
|
+
|
|
3560
|
+
@param request: DeletePrivateDnsDomainNameRequest
|
|
3561
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
3562
|
+
@return: DeletePrivateDnsDomainNameResponse
|
|
3563
|
+
"""
|
|
3564
|
+
UtilClient.validate_model(request)
|
|
3565
|
+
query = {}
|
|
3566
|
+
if not UtilClient.is_unset(request.access_instance_id):
|
|
3567
|
+
query['AccessInstanceId'] = request.access_instance_id
|
|
3568
|
+
if not UtilClient.is_unset(request.domain_name_list):
|
|
3569
|
+
query['DomainNameList'] = request.domain_name_list
|
|
3570
|
+
if not UtilClient.is_unset(request.region_no):
|
|
3571
|
+
query['RegionNo'] = request.region_no
|
|
3572
|
+
req = open_api_models.OpenApiRequest(
|
|
3573
|
+
query=OpenApiUtilClient.query(query)
|
|
3574
|
+
)
|
|
3575
|
+
params = open_api_models.Params(
|
|
3576
|
+
action='DeletePrivateDnsDomainName',
|
|
3577
|
+
version='2017-12-07',
|
|
3578
|
+
protocol='HTTPS',
|
|
3579
|
+
pathname='/',
|
|
3580
|
+
method='POST',
|
|
3581
|
+
auth_type='AK',
|
|
3582
|
+
style='RPC',
|
|
3583
|
+
req_body_type='formData',
|
|
3584
|
+
body_type='json'
|
|
3585
|
+
)
|
|
3586
|
+
return TeaCore.from_map(
|
|
3587
|
+
cloudfw_20171207_models.DeletePrivateDnsDomainNameResponse(),
|
|
3588
|
+
self.call_api(params, req, runtime)
|
|
3589
|
+
)
|
|
3590
|
+
|
|
3591
|
+
async def delete_private_dns_domain_name_with_options_async(
|
|
3592
|
+
self,
|
|
3593
|
+
request: cloudfw_20171207_models.DeletePrivateDnsDomainNameRequest,
|
|
3594
|
+
runtime: util_models.RuntimeOptions,
|
|
3595
|
+
) -> cloudfw_20171207_models.DeletePrivateDnsDomainNameResponse:
|
|
3596
|
+
"""
|
|
3597
|
+
@summary 删除私网DNS域名
|
|
3598
|
+
|
|
3599
|
+
@param request: DeletePrivateDnsDomainNameRequest
|
|
2818
3600
|
@param runtime: runtime options for this request RuntimeOptions
|
|
2819
|
-
@return:
|
|
3601
|
+
@return: DeletePrivateDnsDomainNameResponse
|
|
2820
3602
|
"""
|
|
2821
3603
|
UtilClient.validate_model(request)
|
|
2822
3604
|
query = {}
|
|
2823
|
-
if not UtilClient.is_unset(request.
|
|
2824
|
-
query['
|
|
2825
|
-
if not UtilClient.is_unset(request.
|
|
2826
|
-
query['
|
|
2827
|
-
if not UtilClient.is_unset(request.
|
|
2828
|
-
query['
|
|
2829
|
-
if not UtilClient.is_unset(request.nat_gateway_id):
|
|
2830
|
-
query['NatGatewayId'] = request.nat_gateway_id
|
|
3605
|
+
if not UtilClient.is_unset(request.access_instance_id):
|
|
3606
|
+
query['AccessInstanceId'] = request.access_instance_id
|
|
3607
|
+
if not UtilClient.is_unset(request.domain_name_list):
|
|
3608
|
+
query['DomainNameList'] = request.domain_name_list
|
|
3609
|
+
if not UtilClient.is_unset(request.region_no):
|
|
3610
|
+
query['RegionNo'] = request.region_no
|
|
2831
3611
|
req = open_api_models.OpenApiRequest(
|
|
2832
3612
|
query=OpenApiUtilClient.query(query)
|
|
2833
3613
|
)
|
|
2834
3614
|
params = open_api_models.Params(
|
|
2835
|
-
action='
|
|
3615
|
+
action='DeletePrivateDnsDomainName',
|
|
2836
3616
|
version='2017-12-07',
|
|
2837
3617
|
protocol='HTTPS',
|
|
2838
3618
|
pathname='/',
|
|
@@ -2843,67 +3623,59 @@ class Client(OpenApiClient):
|
|
|
2843
3623
|
body_type='json'
|
|
2844
3624
|
)
|
|
2845
3625
|
return TeaCore.from_map(
|
|
2846
|
-
cloudfw_20171207_models.
|
|
3626
|
+
cloudfw_20171207_models.DeletePrivateDnsDomainNameResponse(),
|
|
2847
3627
|
await self.call_api_async(params, req, runtime)
|
|
2848
3628
|
)
|
|
2849
3629
|
|
|
2850
|
-
def
|
|
3630
|
+
def delete_private_dns_domain_name(
|
|
2851
3631
|
self,
|
|
2852
|
-
request: cloudfw_20171207_models.
|
|
2853
|
-
) -> cloudfw_20171207_models.
|
|
3632
|
+
request: cloudfw_20171207_models.DeletePrivateDnsDomainNameRequest,
|
|
3633
|
+
) -> cloudfw_20171207_models.DeletePrivateDnsDomainNameResponse:
|
|
2854
3634
|
"""
|
|
2855
|
-
@summary
|
|
3635
|
+
@summary 删除私网DNS域名
|
|
2856
3636
|
|
|
2857
|
-
@
|
|
2858
|
-
|
|
2859
|
-
@param request: DeleteNatFirewallControlPolicyRequest
|
|
2860
|
-
@return: DeleteNatFirewallControlPolicyResponse
|
|
3637
|
+
@param request: DeletePrivateDnsDomainNameRequest
|
|
3638
|
+
@return: DeletePrivateDnsDomainNameResponse
|
|
2861
3639
|
"""
|
|
2862
3640
|
runtime = util_models.RuntimeOptions()
|
|
2863
|
-
return self.
|
|
3641
|
+
return self.delete_private_dns_domain_name_with_options(request, runtime)
|
|
2864
3642
|
|
|
2865
|
-
async def
|
|
3643
|
+
async def delete_private_dns_domain_name_async(
|
|
2866
3644
|
self,
|
|
2867
|
-
request: cloudfw_20171207_models.
|
|
2868
|
-
) -> cloudfw_20171207_models.
|
|
3645
|
+
request: cloudfw_20171207_models.DeletePrivateDnsDomainNameRequest,
|
|
3646
|
+
) -> cloudfw_20171207_models.DeletePrivateDnsDomainNameResponse:
|
|
2869
3647
|
"""
|
|
2870
|
-
@summary
|
|
2871
|
-
|
|
2872
|
-
@description You can use this operation to delete an outbound access control policy that is created for a NAT firewall.
|
|
3648
|
+
@summary 删除私网DNS域名
|
|
2873
3649
|
|
|
2874
|
-
@param request:
|
|
2875
|
-
@return:
|
|
3650
|
+
@param request: DeletePrivateDnsDomainNameRequest
|
|
3651
|
+
@return: DeletePrivateDnsDomainNameResponse
|
|
2876
3652
|
"""
|
|
2877
3653
|
runtime = util_models.RuntimeOptions()
|
|
2878
|
-
return await self.
|
|
3654
|
+
return await self.delete_private_dns_domain_name_with_options_async(request, runtime)
|
|
2879
3655
|
|
|
2880
|
-
def
|
|
3656
|
+
def delete_private_dns_endpoint_with_options(
|
|
2881
3657
|
self,
|
|
2882
|
-
request: cloudfw_20171207_models.
|
|
3658
|
+
request: cloudfw_20171207_models.DeletePrivateDnsEndpointRequest,
|
|
2883
3659
|
runtime: util_models.RuntimeOptions,
|
|
2884
|
-
) -> cloudfw_20171207_models.
|
|
3660
|
+
) -> cloudfw_20171207_models.DeletePrivateDnsEndpointResponse:
|
|
2885
3661
|
"""
|
|
2886
|
-
@summary
|
|
3662
|
+
@summary 删除私网DNS终端节点
|
|
2887
3663
|
|
|
2888
|
-
@param request:
|
|
3664
|
+
@param request: DeletePrivateDnsEndpointRequest
|
|
2889
3665
|
@param runtime: runtime options for this request RuntimeOptions
|
|
2890
|
-
@return:
|
|
3666
|
+
@return: DeletePrivateDnsEndpointResponse
|
|
2891
3667
|
"""
|
|
2892
3668
|
UtilClient.validate_model(request)
|
|
2893
3669
|
query = {}
|
|
2894
|
-
if not UtilClient.is_unset(request.
|
|
2895
|
-
query['
|
|
2896
|
-
if not UtilClient.is_unset(request.
|
|
2897
|
-
query['
|
|
2898
|
-
if not UtilClient.is_unset(request.lang):
|
|
2899
|
-
query['Lang'] = request.lang
|
|
2900
|
-
if not UtilClient.is_unset(request.nat_gateway_id):
|
|
2901
|
-
query['NatGatewayId'] = request.nat_gateway_id
|
|
3670
|
+
if not UtilClient.is_unset(request.access_instance_id):
|
|
3671
|
+
query['AccessInstanceId'] = request.access_instance_id
|
|
3672
|
+
if not UtilClient.is_unset(request.region_no):
|
|
3673
|
+
query['RegionNo'] = request.region_no
|
|
2902
3674
|
req = open_api_models.OpenApiRequest(
|
|
2903
3675
|
query=OpenApiUtilClient.query(query)
|
|
2904
3676
|
)
|
|
2905
3677
|
params = open_api_models.Params(
|
|
2906
|
-
action='
|
|
3678
|
+
action='DeletePrivateDnsEndpoint',
|
|
2907
3679
|
version='2017-12-07',
|
|
2908
3680
|
protocol='HTTPS',
|
|
2909
3681
|
pathname='/',
|
|
@@ -2914,37 +3686,33 @@ class Client(OpenApiClient):
|
|
|
2914
3686
|
body_type='json'
|
|
2915
3687
|
)
|
|
2916
3688
|
return TeaCore.from_map(
|
|
2917
|
-
cloudfw_20171207_models.
|
|
3689
|
+
cloudfw_20171207_models.DeletePrivateDnsEndpointResponse(),
|
|
2918
3690
|
self.call_api(params, req, runtime)
|
|
2919
3691
|
)
|
|
2920
3692
|
|
|
2921
|
-
async def
|
|
3693
|
+
async def delete_private_dns_endpoint_with_options_async(
|
|
2922
3694
|
self,
|
|
2923
|
-
request: cloudfw_20171207_models.
|
|
3695
|
+
request: cloudfw_20171207_models.DeletePrivateDnsEndpointRequest,
|
|
2924
3696
|
runtime: util_models.RuntimeOptions,
|
|
2925
|
-
) -> cloudfw_20171207_models.
|
|
3697
|
+
) -> cloudfw_20171207_models.DeletePrivateDnsEndpointResponse:
|
|
2926
3698
|
"""
|
|
2927
|
-
@summary
|
|
3699
|
+
@summary 删除私网DNS终端节点
|
|
2928
3700
|
|
|
2929
|
-
@param request:
|
|
3701
|
+
@param request: DeletePrivateDnsEndpointRequest
|
|
2930
3702
|
@param runtime: runtime options for this request RuntimeOptions
|
|
2931
|
-
@return:
|
|
3703
|
+
@return: DeletePrivateDnsEndpointResponse
|
|
2932
3704
|
"""
|
|
2933
3705
|
UtilClient.validate_model(request)
|
|
2934
3706
|
query = {}
|
|
2935
|
-
if not UtilClient.is_unset(request.
|
|
2936
|
-
query['
|
|
2937
|
-
if not UtilClient.is_unset(request.
|
|
2938
|
-
query['
|
|
2939
|
-
if not UtilClient.is_unset(request.lang):
|
|
2940
|
-
query['Lang'] = request.lang
|
|
2941
|
-
if not UtilClient.is_unset(request.nat_gateway_id):
|
|
2942
|
-
query['NatGatewayId'] = request.nat_gateway_id
|
|
3707
|
+
if not UtilClient.is_unset(request.access_instance_id):
|
|
3708
|
+
query['AccessInstanceId'] = request.access_instance_id
|
|
3709
|
+
if not UtilClient.is_unset(request.region_no):
|
|
3710
|
+
query['RegionNo'] = request.region_no
|
|
2943
3711
|
req = open_api_models.OpenApiRequest(
|
|
2944
3712
|
query=OpenApiUtilClient.query(query)
|
|
2945
3713
|
)
|
|
2946
3714
|
params = open_api_models.Params(
|
|
2947
|
-
action='
|
|
3715
|
+
action='DeletePrivateDnsEndpoint',
|
|
2948
3716
|
version='2017-12-07',
|
|
2949
3717
|
protocol='HTTPS',
|
|
2950
3718
|
pathname='/',
|
|
@@ -2955,35 +3723,35 @@ class Client(OpenApiClient):
|
|
|
2955
3723
|
body_type='json'
|
|
2956
3724
|
)
|
|
2957
3725
|
return TeaCore.from_map(
|
|
2958
|
-
cloudfw_20171207_models.
|
|
3726
|
+
cloudfw_20171207_models.DeletePrivateDnsEndpointResponse(),
|
|
2959
3727
|
await self.call_api_async(params, req, runtime)
|
|
2960
3728
|
)
|
|
2961
3729
|
|
|
2962
|
-
def
|
|
3730
|
+
def delete_private_dns_endpoint(
|
|
2963
3731
|
self,
|
|
2964
|
-
request: cloudfw_20171207_models.
|
|
2965
|
-
) -> cloudfw_20171207_models.
|
|
3732
|
+
request: cloudfw_20171207_models.DeletePrivateDnsEndpointRequest,
|
|
3733
|
+
) -> cloudfw_20171207_models.DeletePrivateDnsEndpointResponse:
|
|
2966
3734
|
"""
|
|
2967
|
-
@summary
|
|
3735
|
+
@summary 删除私网DNS终端节点
|
|
2968
3736
|
|
|
2969
|
-
@param request:
|
|
2970
|
-
@return:
|
|
3737
|
+
@param request: DeletePrivateDnsEndpointRequest
|
|
3738
|
+
@return: DeletePrivateDnsEndpointResponse
|
|
2971
3739
|
"""
|
|
2972
3740
|
runtime = util_models.RuntimeOptions()
|
|
2973
|
-
return self.
|
|
3741
|
+
return self.delete_private_dns_endpoint_with_options(request, runtime)
|
|
2974
3742
|
|
|
2975
|
-
async def
|
|
3743
|
+
async def delete_private_dns_endpoint_async(
|
|
2976
3744
|
self,
|
|
2977
|
-
request: cloudfw_20171207_models.
|
|
2978
|
-
) -> cloudfw_20171207_models.
|
|
3745
|
+
request: cloudfw_20171207_models.DeletePrivateDnsEndpointRequest,
|
|
3746
|
+
) -> cloudfw_20171207_models.DeletePrivateDnsEndpointResponse:
|
|
2979
3747
|
"""
|
|
2980
|
-
@summary
|
|
3748
|
+
@summary 删除私网DNS终端节点
|
|
2981
3749
|
|
|
2982
|
-
@param request:
|
|
2983
|
-
@return:
|
|
3750
|
+
@param request: DeletePrivateDnsEndpointRequest
|
|
3751
|
+
@return: DeletePrivateDnsEndpointResponse
|
|
2984
3752
|
"""
|
|
2985
3753
|
runtime = util_models.RuntimeOptions()
|
|
2986
|
-
return await self.
|
|
3754
|
+
return await self.delete_private_dns_endpoint_with_options_async(request, runtime)
|
|
2987
3755
|
|
|
2988
3756
|
def delete_security_proxy_with_options(
|
|
2989
3757
|
self,
|
|
@@ -3657,6 +4425,80 @@ class Client(OpenApiClient):
|
|
|
3657
4425
|
runtime = util_models.RuntimeOptions()
|
|
3658
4426
|
return await self.describe_aclprotect_trend_with_options_async(request, runtime)
|
|
3659
4427
|
|
|
4428
|
+
def describe_aitraffic_analysis_status_with_options(
|
|
4429
|
+
self,
|
|
4430
|
+
runtime: util_models.RuntimeOptions,
|
|
4431
|
+
) -> cloudfw_20171207_models.DescribeAITrafficAnalysisStatusResponse:
|
|
4432
|
+
"""
|
|
4433
|
+
@summary 查询AI流量分析开启状态
|
|
4434
|
+
|
|
4435
|
+
@param request: DescribeAITrafficAnalysisStatusRequest
|
|
4436
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
4437
|
+
@return: DescribeAITrafficAnalysisStatusResponse
|
|
4438
|
+
"""
|
|
4439
|
+
req = open_api_models.OpenApiRequest()
|
|
4440
|
+
params = open_api_models.Params(
|
|
4441
|
+
action='DescribeAITrafficAnalysisStatus',
|
|
4442
|
+
version='2017-12-07',
|
|
4443
|
+
protocol='HTTPS',
|
|
4444
|
+
pathname='/',
|
|
4445
|
+
method='POST',
|
|
4446
|
+
auth_type='AK',
|
|
4447
|
+
style='RPC',
|
|
4448
|
+
req_body_type='formData',
|
|
4449
|
+
body_type='json'
|
|
4450
|
+
)
|
|
4451
|
+
return TeaCore.from_map(
|
|
4452
|
+
cloudfw_20171207_models.DescribeAITrafficAnalysisStatusResponse(),
|
|
4453
|
+
self.call_api(params, req, runtime)
|
|
4454
|
+
)
|
|
4455
|
+
|
|
4456
|
+
async def describe_aitraffic_analysis_status_with_options_async(
|
|
4457
|
+
self,
|
|
4458
|
+
runtime: util_models.RuntimeOptions,
|
|
4459
|
+
) -> cloudfw_20171207_models.DescribeAITrafficAnalysisStatusResponse:
|
|
4460
|
+
"""
|
|
4461
|
+
@summary 查询AI流量分析开启状态
|
|
4462
|
+
|
|
4463
|
+
@param request: DescribeAITrafficAnalysisStatusRequest
|
|
4464
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
4465
|
+
@return: DescribeAITrafficAnalysisStatusResponse
|
|
4466
|
+
"""
|
|
4467
|
+
req = open_api_models.OpenApiRequest()
|
|
4468
|
+
params = open_api_models.Params(
|
|
4469
|
+
action='DescribeAITrafficAnalysisStatus',
|
|
4470
|
+
version='2017-12-07',
|
|
4471
|
+
protocol='HTTPS',
|
|
4472
|
+
pathname='/',
|
|
4473
|
+
method='POST',
|
|
4474
|
+
auth_type='AK',
|
|
4475
|
+
style='RPC',
|
|
4476
|
+
req_body_type='formData',
|
|
4477
|
+
body_type='json'
|
|
4478
|
+
)
|
|
4479
|
+
return TeaCore.from_map(
|
|
4480
|
+
cloudfw_20171207_models.DescribeAITrafficAnalysisStatusResponse(),
|
|
4481
|
+
await self.call_api_async(params, req, runtime)
|
|
4482
|
+
)
|
|
4483
|
+
|
|
4484
|
+
def describe_aitraffic_analysis_status(self) -> cloudfw_20171207_models.DescribeAITrafficAnalysisStatusResponse:
|
|
4485
|
+
"""
|
|
4486
|
+
@summary 查询AI流量分析开启状态
|
|
4487
|
+
|
|
4488
|
+
@return: DescribeAITrafficAnalysisStatusResponse
|
|
4489
|
+
"""
|
|
4490
|
+
runtime = util_models.RuntimeOptions()
|
|
4491
|
+
return self.describe_aitraffic_analysis_status_with_options(runtime)
|
|
4492
|
+
|
|
4493
|
+
async def describe_aitraffic_analysis_status_async(self) -> cloudfw_20171207_models.DescribeAITrafficAnalysisStatusResponse:
|
|
4494
|
+
"""
|
|
4495
|
+
@summary 查询AI流量分析开启状态
|
|
4496
|
+
|
|
4497
|
+
@return: DescribeAITrafficAnalysisStatusResponse
|
|
4498
|
+
"""
|
|
4499
|
+
runtime = util_models.RuntimeOptions()
|
|
4500
|
+
return await self.describe_aitraffic_analysis_status_with_options_async(runtime)
|
|
4501
|
+
|
|
3660
4502
|
def describe_address_book_with_options(
|
|
3661
4503
|
self,
|
|
3662
4504
|
request: cloudfw_20171207_models.DescribeAddressBookRequest,
|
|
@@ -4514,24 +5356,164 @@ class Client(OpenApiClient):
|
|
|
4514
5356
|
"""
|
|
4515
5357
|
@summary Queries the default intrusion prevention system (IPS) configurations.
|
|
4516
5358
|
|
|
4517
|
-
@param request: DescribeDefaultIPSConfigRequest
|
|
4518
|
-
@return: DescribeDefaultIPSConfigResponse
|
|
5359
|
+
@param request: DescribeDefaultIPSConfigRequest
|
|
5360
|
+
@return: DescribeDefaultIPSConfigResponse
|
|
5361
|
+
"""
|
|
5362
|
+
runtime = util_models.RuntimeOptions()
|
|
5363
|
+
return self.describe_default_ipsconfig_with_options(request, runtime)
|
|
5364
|
+
|
|
5365
|
+
async def describe_default_ipsconfig_async(
|
|
5366
|
+
self,
|
|
5367
|
+
request: cloudfw_20171207_models.DescribeDefaultIPSConfigRequest,
|
|
5368
|
+
) -> cloudfw_20171207_models.DescribeDefaultIPSConfigResponse:
|
|
5369
|
+
"""
|
|
5370
|
+
@summary Queries the default intrusion prevention system (IPS) configurations.
|
|
5371
|
+
|
|
5372
|
+
@param request: DescribeDefaultIPSConfigRequest
|
|
5373
|
+
@return: DescribeDefaultIPSConfigResponse
|
|
5374
|
+
"""
|
|
5375
|
+
runtime = util_models.RuntimeOptions()
|
|
5376
|
+
return await self.describe_default_ipsconfig_with_options_async(request, runtime)
|
|
5377
|
+
|
|
5378
|
+
def describe_dns_firewall_policy_with_options(
|
|
5379
|
+
self,
|
|
5380
|
+
request: cloudfw_20171207_models.DescribeDnsFirewallPolicyRequest,
|
|
5381
|
+
runtime: util_models.RuntimeOptions,
|
|
5382
|
+
) -> cloudfw_20171207_models.DescribeDnsFirewallPolicyResponse:
|
|
5383
|
+
"""
|
|
5384
|
+
@summary 获取DNS防火墙ACL列表
|
|
5385
|
+
|
|
5386
|
+
@param request: DescribeDnsFirewallPolicyRequest
|
|
5387
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
5388
|
+
@return: DescribeDnsFirewallPolicyResponse
|
|
5389
|
+
"""
|
|
5390
|
+
UtilClient.validate_model(request)
|
|
5391
|
+
query = {}
|
|
5392
|
+
if not UtilClient.is_unset(request.acl_action):
|
|
5393
|
+
query['AclAction'] = request.acl_action
|
|
5394
|
+
if not UtilClient.is_unset(request.acl_uuid):
|
|
5395
|
+
query['AclUuid'] = request.acl_uuid
|
|
5396
|
+
if not UtilClient.is_unset(request.current_page):
|
|
5397
|
+
query['CurrentPage'] = request.current_page
|
|
5398
|
+
if not UtilClient.is_unset(request.description):
|
|
5399
|
+
query['Description'] = request.description
|
|
5400
|
+
if not UtilClient.is_unset(request.destination):
|
|
5401
|
+
query['Destination'] = request.destination
|
|
5402
|
+
if not UtilClient.is_unset(request.ip_version):
|
|
5403
|
+
query['IpVersion'] = request.ip_version
|
|
5404
|
+
if not UtilClient.is_unset(request.lang):
|
|
5405
|
+
query['Lang'] = request.lang
|
|
5406
|
+
if not UtilClient.is_unset(request.lang):
|
|
5407
|
+
query['Lang'] = request.lang
|
|
5408
|
+
if not UtilClient.is_unset(request.page_size):
|
|
5409
|
+
query['PageSize'] = request.page_size
|
|
5410
|
+
if not UtilClient.is_unset(request.release):
|
|
5411
|
+
query['Release'] = request.release
|
|
5412
|
+
if not UtilClient.is_unset(request.source):
|
|
5413
|
+
query['Source'] = request.source
|
|
5414
|
+
if not UtilClient.is_unset(request.source_ip):
|
|
5415
|
+
query['SourceIp'] = request.source_ip
|
|
5416
|
+
req = open_api_models.OpenApiRequest(
|
|
5417
|
+
query=OpenApiUtilClient.query(query)
|
|
5418
|
+
)
|
|
5419
|
+
params = open_api_models.Params(
|
|
5420
|
+
action='DescribeDnsFirewallPolicy',
|
|
5421
|
+
version='2017-12-07',
|
|
5422
|
+
protocol='HTTPS',
|
|
5423
|
+
pathname='/',
|
|
5424
|
+
method='POST',
|
|
5425
|
+
auth_type='AK',
|
|
5426
|
+
style='RPC',
|
|
5427
|
+
req_body_type='formData',
|
|
5428
|
+
body_type='json'
|
|
5429
|
+
)
|
|
5430
|
+
return TeaCore.from_map(
|
|
5431
|
+
cloudfw_20171207_models.DescribeDnsFirewallPolicyResponse(),
|
|
5432
|
+
self.call_api(params, req, runtime)
|
|
5433
|
+
)
|
|
5434
|
+
|
|
5435
|
+
async def describe_dns_firewall_policy_with_options_async(
|
|
5436
|
+
self,
|
|
5437
|
+
request: cloudfw_20171207_models.DescribeDnsFirewallPolicyRequest,
|
|
5438
|
+
runtime: util_models.RuntimeOptions,
|
|
5439
|
+
) -> cloudfw_20171207_models.DescribeDnsFirewallPolicyResponse:
|
|
5440
|
+
"""
|
|
5441
|
+
@summary 获取DNS防火墙ACL列表
|
|
5442
|
+
|
|
5443
|
+
@param request: DescribeDnsFirewallPolicyRequest
|
|
5444
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
5445
|
+
@return: DescribeDnsFirewallPolicyResponse
|
|
5446
|
+
"""
|
|
5447
|
+
UtilClient.validate_model(request)
|
|
5448
|
+
query = {}
|
|
5449
|
+
if not UtilClient.is_unset(request.acl_action):
|
|
5450
|
+
query['AclAction'] = request.acl_action
|
|
5451
|
+
if not UtilClient.is_unset(request.acl_uuid):
|
|
5452
|
+
query['AclUuid'] = request.acl_uuid
|
|
5453
|
+
if not UtilClient.is_unset(request.current_page):
|
|
5454
|
+
query['CurrentPage'] = request.current_page
|
|
5455
|
+
if not UtilClient.is_unset(request.description):
|
|
5456
|
+
query['Description'] = request.description
|
|
5457
|
+
if not UtilClient.is_unset(request.destination):
|
|
5458
|
+
query['Destination'] = request.destination
|
|
5459
|
+
if not UtilClient.is_unset(request.ip_version):
|
|
5460
|
+
query['IpVersion'] = request.ip_version
|
|
5461
|
+
if not UtilClient.is_unset(request.lang):
|
|
5462
|
+
query['Lang'] = request.lang
|
|
5463
|
+
if not UtilClient.is_unset(request.lang):
|
|
5464
|
+
query['Lang'] = request.lang
|
|
5465
|
+
if not UtilClient.is_unset(request.page_size):
|
|
5466
|
+
query['PageSize'] = request.page_size
|
|
5467
|
+
if not UtilClient.is_unset(request.release):
|
|
5468
|
+
query['Release'] = request.release
|
|
5469
|
+
if not UtilClient.is_unset(request.source):
|
|
5470
|
+
query['Source'] = request.source
|
|
5471
|
+
if not UtilClient.is_unset(request.source_ip):
|
|
5472
|
+
query['SourceIp'] = request.source_ip
|
|
5473
|
+
req = open_api_models.OpenApiRequest(
|
|
5474
|
+
query=OpenApiUtilClient.query(query)
|
|
5475
|
+
)
|
|
5476
|
+
params = open_api_models.Params(
|
|
5477
|
+
action='DescribeDnsFirewallPolicy',
|
|
5478
|
+
version='2017-12-07',
|
|
5479
|
+
protocol='HTTPS',
|
|
5480
|
+
pathname='/',
|
|
5481
|
+
method='POST',
|
|
5482
|
+
auth_type='AK',
|
|
5483
|
+
style='RPC',
|
|
5484
|
+
req_body_type='formData',
|
|
5485
|
+
body_type='json'
|
|
5486
|
+
)
|
|
5487
|
+
return TeaCore.from_map(
|
|
5488
|
+
cloudfw_20171207_models.DescribeDnsFirewallPolicyResponse(),
|
|
5489
|
+
await self.call_api_async(params, req, runtime)
|
|
5490
|
+
)
|
|
5491
|
+
|
|
5492
|
+
def describe_dns_firewall_policy(
|
|
5493
|
+
self,
|
|
5494
|
+
request: cloudfw_20171207_models.DescribeDnsFirewallPolicyRequest,
|
|
5495
|
+
) -> cloudfw_20171207_models.DescribeDnsFirewallPolicyResponse:
|
|
5496
|
+
"""
|
|
5497
|
+
@summary 获取DNS防火墙ACL列表
|
|
5498
|
+
|
|
5499
|
+
@param request: DescribeDnsFirewallPolicyRequest
|
|
5500
|
+
@return: DescribeDnsFirewallPolicyResponse
|
|
4519
5501
|
"""
|
|
4520
5502
|
runtime = util_models.RuntimeOptions()
|
|
4521
|
-
return self.
|
|
5503
|
+
return self.describe_dns_firewall_policy_with_options(request, runtime)
|
|
4522
5504
|
|
|
4523
|
-
async def
|
|
5505
|
+
async def describe_dns_firewall_policy_async(
|
|
4524
5506
|
self,
|
|
4525
|
-
request: cloudfw_20171207_models.
|
|
4526
|
-
) -> cloudfw_20171207_models.
|
|
5507
|
+
request: cloudfw_20171207_models.DescribeDnsFirewallPolicyRequest,
|
|
5508
|
+
) -> cloudfw_20171207_models.DescribeDnsFirewallPolicyResponse:
|
|
4527
5509
|
"""
|
|
4528
|
-
@summary
|
|
5510
|
+
@summary 获取DNS防火墙ACL列表
|
|
4529
5511
|
|
|
4530
|
-
@param request:
|
|
4531
|
-
@return:
|
|
5512
|
+
@param request: DescribeDnsFirewallPolicyRequest
|
|
5513
|
+
@return: DescribeDnsFirewallPolicyResponse
|
|
4532
5514
|
"""
|
|
4533
5515
|
runtime = util_models.RuntimeOptions()
|
|
4534
|
-
return await self.
|
|
5516
|
+
return await self.describe_dns_firewall_policy_with_options_async(request, runtime)
|
|
4535
5517
|
|
|
4536
5518
|
def describe_domain_resolve_with_options(
|
|
4537
5519
|
self,
|
|
@@ -5554,7 +6536,7 @@ class Client(OpenApiClient):
|
|
|
5554
6536
|
runtime: util_models.RuntimeOptions,
|
|
5555
6537
|
) -> cloudfw_20171207_models.DescribeLogStoreInfoResponse:
|
|
5556
6538
|
"""
|
|
5557
|
-
@summary
|
|
6539
|
+
@summary Get Log Service Information
|
|
5558
6540
|
|
|
5559
6541
|
@param request: DescribeLogStoreInfoRequest
|
|
5560
6542
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -5582,7 +6564,7 @@ class Client(OpenApiClient):
|
|
|
5582
6564
|
runtime: util_models.RuntimeOptions,
|
|
5583
6565
|
) -> cloudfw_20171207_models.DescribeLogStoreInfoResponse:
|
|
5584
6566
|
"""
|
|
5585
|
-
@summary
|
|
6567
|
+
@summary Get Log Service Information
|
|
5586
6568
|
|
|
5587
6569
|
@param request: DescribeLogStoreInfoRequest
|
|
5588
6570
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -5607,7 +6589,7 @@ class Client(OpenApiClient):
|
|
|
5607
6589
|
|
|
5608
6590
|
def describe_log_store_info(self) -> cloudfw_20171207_models.DescribeLogStoreInfoResponse:
|
|
5609
6591
|
"""
|
|
5610
|
-
@summary
|
|
6592
|
+
@summary Get Log Service Information
|
|
5611
6593
|
|
|
5612
6594
|
@return: DescribeLogStoreInfoResponse
|
|
5613
6595
|
"""
|
|
@@ -5616,7 +6598,7 @@ class Client(OpenApiClient):
|
|
|
5616
6598
|
|
|
5617
6599
|
async def describe_log_store_info_async(self) -> cloudfw_20171207_models.DescribeLogStoreInfoResponse:
|
|
5618
6600
|
"""
|
|
5619
|
-
@summary
|
|
6601
|
+
@summary Get Log Service Information
|
|
5620
6602
|
|
|
5621
6603
|
@return: DescribeLogStoreInfoResponse
|
|
5622
6604
|
"""
|
|
@@ -6221,7 +7203,7 @@ class Client(OpenApiClient):
|
|
|
6221
7203
|
runtime: util_models.RuntimeOptions,
|
|
6222
7204
|
) -> cloudfw_20171207_models.DescribeOutgoingDestinationIPResponse:
|
|
6223
7205
|
"""
|
|
6224
|
-
@summary
|
|
7206
|
+
@summary Get details of outgoing destination IPs
|
|
6225
7207
|
|
|
6226
7208
|
@param request: DescribeOutgoingDestinationIPRequest
|
|
6227
7209
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -6282,7 +7264,7 @@ class Client(OpenApiClient):
|
|
|
6282
7264
|
runtime: util_models.RuntimeOptions,
|
|
6283
7265
|
) -> cloudfw_20171207_models.DescribeOutgoingDestinationIPResponse:
|
|
6284
7266
|
"""
|
|
6285
|
-
@summary
|
|
7267
|
+
@summary Get details of outgoing destination IPs
|
|
6286
7268
|
|
|
6287
7269
|
@param request: DescribeOutgoingDestinationIPRequest
|
|
6288
7270
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -6342,7 +7324,7 @@ class Client(OpenApiClient):
|
|
|
6342
7324
|
request: cloudfw_20171207_models.DescribeOutgoingDestinationIPRequest,
|
|
6343
7325
|
) -> cloudfw_20171207_models.DescribeOutgoingDestinationIPResponse:
|
|
6344
7326
|
"""
|
|
6345
|
-
@summary
|
|
7327
|
+
@summary Get details of outgoing destination IPs
|
|
6346
7328
|
|
|
6347
7329
|
@param request: DescribeOutgoingDestinationIPRequest
|
|
6348
7330
|
@return: DescribeOutgoingDestinationIPResponse
|
|
@@ -6355,7 +7337,7 @@ class Client(OpenApiClient):
|
|
|
6355
7337
|
request: cloudfw_20171207_models.DescribeOutgoingDestinationIPRequest,
|
|
6356
7338
|
) -> cloudfw_20171207_models.DescribeOutgoingDestinationIPResponse:
|
|
6357
7339
|
"""
|
|
6358
|
-
@summary
|
|
7340
|
+
@summary Get details of outgoing destination IPs
|
|
6359
7341
|
|
|
6360
7342
|
@param request: DescribeOutgoingDestinationIPRequest
|
|
6361
7343
|
@return: DescribeOutgoingDestinationIPResponse
|
|
@@ -6909,99 +7891,375 @@ class Client(OpenApiClient):
|
|
|
6909
7891
|
query=OpenApiUtilClient.query(query)
|
|
6910
7892
|
)
|
|
6911
7893
|
params = open_api_models.Params(
|
|
6912
|
-
action='DescribePostpayTrafficTotal',
|
|
7894
|
+
action='DescribePostpayTrafficTotal',
|
|
7895
|
+
version='2017-12-07',
|
|
7896
|
+
protocol='HTTPS',
|
|
7897
|
+
pathname='/',
|
|
7898
|
+
method='POST',
|
|
7899
|
+
auth_type='AK',
|
|
7900
|
+
style='RPC',
|
|
7901
|
+
req_body_type='formData',
|
|
7902
|
+
body_type='json'
|
|
7903
|
+
)
|
|
7904
|
+
return TeaCore.from_map(
|
|
7905
|
+
cloudfw_20171207_models.DescribePostpayTrafficTotalResponse(),
|
|
7906
|
+
self.call_api(params, req, runtime)
|
|
7907
|
+
)
|
|
7908
|
+
|
|
7909
|
+
async def describe_postpay_traffic_total_with_options_async(
|
|
7910
|
+
self,
|
|
7911
|
+
request: cloudfw_20171207_models.DescribePostpayTrafficTotalRequest,
|
|
7912
|
+
runtime: util_models.RuntimeOptions,
|
|
7913
|
+
) -> cloudfw_20171207_models.DescribePostpayTrafficTotalResponse:
|
|
7914
|
+
"""
|
|
7915
|
+
@summary Queries the total volume of traffic that is billed based on the pay-as-you-go billing method, including all firewalls within the current account.
|
|
7916
|
+
|
|
7917
|
+
@description You can call this operation to query statistics of the current Cloud Firewall from the date of purchase.
|
|
7918
|
+
|
|
7919
|
+
@param request: DescribePostpayTrafficTotalRequest
|
|
7920
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
7921
|
+
@return: DescribePostpayTrafficTotalResponse
|
|
7922
|
+
"""
|
|
7923
|
+
UtilClient.validate_model(request)
|
|
7924
|
+
query = {}
|
|
7925
|
+
if not UtilClient.is_unset(request.lang):
|
|
7926
|
+
query['Lang'] = request.lang
|
|
7927
|
+
req = open_api_models.OpenApiRequest(
|
|
7928
|
+
query=OpenApiUtilClient.query(query)
|
|
7929
|
+
)
|
|
7930
|
+
params = open_api_models.Params(
|
|
7931
|
+
action='DescribePostpayTrafficTotal',
|
|
7932
|
+
version='2017-12-07',
|
|
7933
|
+
protocol='HTTPS',
|
|
7934
|
+
pathname='/',
|
|
7935
|
+
method='POST',
|
|
7936
|
+
auth_type='AK',
|
|
7937
|
+
style='RPC',
|
|
7938
|
+
req_body_type='formData',
|
|
7939
|
+
body_type='json'
|
|
7940
|
+
)
|
|
7941
|
+
return TeaCore.from_map(
|
|
7942
|
+
cloudfw_20171207_models.DescribePostpayTrafficTotalResponse(),
|
|
7943
|
+
await self.call_api_async(params, req, runtime)
|
|
7944
|
+
)
|
|
7945
|
+
|
|
7946
|
+
def describe_postpay_traffic_total(
|
|
7947
|
+
self,
|
|
7948
|
+
request: cloudfw_20171207_models.DescribePostpayTrafficTotalRequest,
|
|
7949
|
+
) -> cloudfw_20171207_models.DescribePostpayTrafficTotalResponse:
|
|
7950
|
+
"""
|
|
7951
|
+
@summary Queries the total volume of traffic that is billed based on the pay-as-you-go billing method, including all firewalls within the current account.
|
|
7952
|
+
|
|
7953
|
+
@description You can call this operation to query statistics of the current Cloud Firewall from the date of purchase.
|
|
7954
|
+
|
|
7955
|
+
@param request: DescribePostpayTrafficTotalRequest
|
|
7956
|
+
@return: DescribePostpayTrafficTotalResponse
|
|
7957
|
+
"""
|
|
7958
|
+
runtime = util_models.RuntimeOptions()
|
|
7959
|
+
return self.describe_postpay_traffic_total_with_options(request, runtime)
|
|
7960
|
+
|
|
7961
|
+
async def describe_postpay_traffic_total_async(
|
|
7962
|
+
self,
|
|
7963
|
+
request: cloudfw_20171207_models.DescribePostpayTrafficTotalRequest,
|
|
7964
|
+
) -> cloudfw_20171207_models.DescribePostpayTrafficTotalResponse:
|
|
7965
|
+
"""
|
|
7966
|
+
@summary Queries the total volume of traffic that is billed based on the pay-as-you-go billing method, including all firewalls within the current account.
|
|
7967
|
+
|
|
7968
|
+
@description You can call this operation to query statistics of the current Cloud Firewall from the date of purchase.
|
|
7969
|
+
|
|
7970
|
+
@param request: DescribePostpayTrafficTotalRequest
|
|
7971
|
+
@return: DescribePostpayTrafficTotalResponse
|
|
7972
|
+
"""
|
|
7973
|
+
runtime = util_models.RuntimeOptions()
|
|
7974
|
+
return await self.describe_postpay_traffic_total_with_options_async(request, runtime)
|
|
7975
|
+
|
|
7976
|
+
def describe_prefix_lists_with_options(
|
|
7977
|
+
self,
|
|
7978
|
+
request: cloudfw_20171207_models.DescribePrefixListsRequest,
|
|
7979
|
+
runtime: util_models.RuntimeOptions,
|
|
7980
|
+
) -> cloudfw_20171207_models.DescribePrefixListsResponse:
|
|
7981
|
+
"""
|
|
7982
|
+
@summary Queries prefix lists.
|
|
7983
|
+
|
|
7984
|
+
@param request: DescribePrefixListsRequest
|
|
7985
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
7986
|
+
@return: DescribePrefixListsResponse
|
|
7987
|
+
"""
|
|
7988
|
+
UtilClient.validate_model(request)
|
|
7989
|
+
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
7990
|
+
req = open_api_models.OpenApiRequest(
|
|
7991
|
+
query=OpenApiUtilClient.query(query)
|
|
7992
|
+
)
|
|
7993
|
+
params = open_api_models.Params(
|
|
7994
|
+
action='DescribePrefixLists',
|
|
7995
|
+
version='2017-12-07',
|
|
7996
|
+
protocol='HTTPS',
|
|
7997
|
+
pathname='/',
|
|
7998
|
+
method='GET',
|
|
7999
|
+
auth_type='AK',
|
|
8000
|
+
style='RPC',
|
|
8001
|
+
req_body_type='formData',
|
|
8002
|
+
body_type='json'
|
|
8003
|
+
)
|
|
8004
|
+
return TeaCore.from_map(
|
|
8005
|
+
cloudfw_20171207_models.DescribePrefixListsResponse(),
|
|
8006
|
+
self.call_api(params, req, runtime)
|
|
8007
|
+
)
|
|
8008
|
+
|
|
8009
|
+
async def describe_prefix_lists_with_options_async(
|
|
8010
|
+
self,
|
|
8011
|
+
request: cloudfw_20171207_models.DescribePrefixListsRequest,
|
|
8012
|
+
runtime: util_models.RuntimeOptions,
|
|
8013
|
+
) -> cloudfw_20171207_models.DescribePrefixListsResponse:
|
|
8014
|
+
"""
|
|
8015
|
+
@summary Queries prefix lists.
|
|
8016
|
+
|
|
8017
|
+
@param request: DescribePrefixListsRequest
|
|
8018
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
8019
|
+
@return: DescribePrefixListsResponse
|
|
8020
|
+
"""
|
|
8021
|
+
UtilClient.validate_model(request)
|
|
8022
|
+
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
8023
|
+
req = open_api_models.OpenApiRequest(
|
|
8024
|
+
query=OpenApiUtilClient.query(query)
|
|
8025
|
+
)
|
|
8026
|
+
params = open_api_models.Params(
|
|
8027
|
+
action='DescribePrefixLists',
|
|
8028
|
+
version='2017-12-07',
|
|
8029
|
+
protocol='HTTPS',
|
|
8030
|
+
pathname='/',
|
|
8031
|
+
method='GET',
|
|
8032
|
+
auth_type='AK',
|
|
8033
|
+
style='RPC',
|
|
8034
|
+
req_body_type='formData',
|
|
8035
|
+
body_type='json'
|
|
8036
|
+
)
|
|
8037
|
+
return TeaCore.from_map(
|
|
8038
|
+
cloudfw_20171207_models.DescribePrefixListsResponse(),
|
|
8039
|
+
await self.call_api_async(params, req, runtime)
|
|
8040
|
+
)
|
|
8041
|
+
|
|
8042
|
+
def describe_prefix_lists(
|
|
8043
|
+
self,
|
|
8044
|
+
request: cloudfw_20171207_models.DescribePrefixListsRequest,
|
|
8045
|
+
) -> cloudfw_20171207_models.DescribePrefixListsResponse:
|
|
8046
|
+
"""
|
|
8047
|
+
@summary Queries prefix lists.
|
|
8048
|
+
|
|
8049
|
+
@param request: DescribePrefixListsRequest
|
|
8050
|
+
@return: DescribePrefixListsResponse
|
|
8051
|
+
"""
|
|
8052
|
+
runtime = util_models.RuntimeOptions()
|
|
8053
|
+
return self.describe_prefix_lists_with_options(request, runtime)
|
|
8054
|
+
|
|
8055
|
+
async def describe_prefix_lists_async(
|
|
8056
|
+
self,
|
|
8057
|
+
request: cloudfw_20171207_models.DescribePrefixListsRequest,
|
|
8058
|
+
) -> cloudfw_20171207_models.DescribePrefixListsResponse:
|
|
8059
|
+
"""
|
|
8060
|
+
@summary Queries prefix lists.
|
|
8061
|
+
|
|
8062
|
+
@param request: DescribePrefixListsRequest
|
|
8063
|
+
@return: DescribePrefixListsResponse
|
|
8064
|
+
"""
|
|
8065
|
+
runtime = util_models.RuntimeOptions()
|
|
8066
|
+
return await self.describe_prefix_lists_with_options_async(request, runtime)
|
|
8067
|
+
|
|
8068
|
+
def describe_private_dns_domain_name_list_with_options(
|
|
8069
|
+
self,
|
|
8070
|
+
request: cloudfw_20171207_models.DescribePrivateDnsDomainNameListRequest,
|
|
8071
|
+
runtime: util_models.RuntimeOptions,
|
|
8072
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsDomainNameListResponse:
|
|
8073
|
+
"""
|
|
8074
|
+
@summary 查询私网DNS域名列表
|
|
8075
|
+
|
|
8076
|
+
@param request: DescribePrivateDnsDomainNameListRequest
|
|
8077
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
8078
|
+
@return: DescribePrivateDnsDomainNameListResponse
|
|
8079
|
+
"""
|
|
8080
|
+
UtilClient.validate_model(request)
|
|
8081
|
+
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
8082
|
+
req = open_api_models.OpenApiRequest(
|
|
8083
|
+
query=OpenApiUtilClient.query(query)
|
|
8084
|
+
)
|
|
8085
|
+
params = open_api_models.Params(
|
|
8086
|
+
action='DescribePrivateDnsDomainNameList',
|
|
8087
|
+
version='2017-12-07',
|
|
8088
|
+
protocol='HTTPS',
|
|
8089
|
+
pathname='/',
|
|
8090
|
+
method='GET',
|
|
8091
|
+
auth_type='AK',
|
|
8092
|
+
style='RPC',
|
|
8093
|
+
req_body_type='formData',
|
|
8094
|
+
body_type='json'
|
|
8095
|
+
)
|
|
8096
|
+
return TeaCore.from_map(
|
|
8097
|
+
cloudfw_20171207_models.DescribePrivateDnsDomainNameListResponse(),
|
|
8098
|
+
self.call_api(params, req, runtime)
|
|
8099
|
+
)
|
|
8100
|
+
|
|
8101
|
+
async def describe_private_dns_domain_name_list_with_options_async(
|
|
8102
|
+
self,
|
|
8103
|
+
request: cloudfw_20171207_models.DescribePrivateDnsDomainNameListRequest,
|
|
8104
|
+
runtime: util_models.RuntimeOptions,
|
|
8105
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsDomainNameListResponse:
|
|
8106
|
+
"""
|
|
8107
|
+
@summary 查询私网DNS域名列表
|
|
8108
|
+
|
|
8109
|
+
@param request: DescribePrivateDnsDomainNameListRequest
|
|
8110
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
8111
|
+
@return: DescribePrivateDnsDomainNameListResponse
|
|
8112
|
+
"""
|
|
8113
|
+
UtilClient.validate_model(request)
|
|
8114
|
+
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
8115
|
+
req = open_api_models.OpenApiRequest(
|
|
8116
|
+
query=OpenApiUtilClient.query(query)
|
|
8117
|
+
)
|
|
8118
|
+
params = open_api_models.Params(
|
|
8119
|
+
action='DescribePrivateDnsDomainNameList',
|
|
8120
|
+
version='2017-12-07',
|
|
8121
|
+
protocol='HTTPS',
|
|
8122
|
+
pathname='/',
|
|
8123
|
+
method='GET',
|
|
8124
|
+
auth_type='AK',
|
|
8125
|
+
style='RPC',
|
|
8126
|
+
req_body_type='formData',
|
|
8127
|
+
body_type='json'
|
|
8128
|
+
)
|
|
8129
|
+
return TeaCore.from_map(
|
|
8130
|
+
cloudfw_20171207_models.DescribePrivateDnsDomainNameListResponse(),
|
|
8131
|
+
await self.call_api_async(params, req, runtime)
|
|
8132
|
+
)
|
|
8133
|
+
|
|
8134
|
+
def describe_private_dns_domain_name_list(
|
|
8135
|
+
self,
|
|
8136
|
+
request: cloudfw_20171207_models.DescribePrivateDnsDomainNameListRequest,
|
|
8137
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsDomainNameListResponse:
|
|
8138
|
+
"""
|
|
8139
|
+
@summary 查询私网DNS域名列表
|
|
8140
|
+
|
|
8141
|
+
@param request: DescribePrivateDnsDomainNameListRequest
|
|
8142
|
+
@return: DescribePrivateDnsDomainNameListResponse
|
|
8143
|
+
"""
|
|
8144
|
+
runtime = util_models.RuntimeOptions()
|
|
8145
|
+
return self.describe_private_dns_domain_name_list_with_options(request, runtime)
|
|
8146
|
+
|
|
8147
|
+
async def describe_private_dns_domain_name_list_async(
|
|
8148
|
+
self,
|
|
8149
|
+
request: cloudfw_20171207_models.DescribePrivateDnsDomainNameListRequest,
|
|
8150
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsDomainNameListResponse:
|
|
8151
|
+
"""
|
|
8152
|
+
@summary 查询私网DNS域名列表
|
|
8153
|
+
|
|
8154
|
+
@param request: DescribePrivateDnsDomainNameListRequest
|
|
8155
|
+
@return: DescribePrivateDnsDomainNameListResponse
|
|
8156
|
+
"""
|
|
8157
|
+
runtime = util_models.RuntimeOptions()
|
|
8158
|
+
return await self.describe_private_dns_domain_name_list_with_options_async(request, runtime)
|
|
8159
|
+
|
|
8160
|
+
def describe_private_dns_endpoint_detail_with_options(
|
|
8161
|
+
self,
|
|
8162
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointDetailRequest,
|
|
8163
|
+
runtime: util_models.RuntimeOptions,
|
|
8164
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointDetailResponse:
|
|
8165
|
+
"""
|
|
8166
|
+
@summary 查询私网DNS终端节点详情
|
|
8167
|
+
|
|
8168
|
+
@param request: DescribePrivateDnsEndpointDetailRequest
|
|
8169
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
8170
|
+
@return: DescribePrivateDnsEndpointDetailResponse
|
|
8171
|
+
"""
|
|
8172
|
+
UtilClient.validate_model(request)
|
|
8173
|
+
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
8174
|
+
req = open_api_models.OpenApiRequest(
|
|
8175
|
+
query=OpenApiUtilClient.query(query)
|
|
8176
|
+
)
|
|
8177
|
+
params = open_api_models.Params(
|
|
8178
|
+
action='DescribePrivateDnsEndpointDetail',
|
|
6913
8179
|
version='2017-12-07',
|
|
6914
8180
|
protocol='HTTPS',
|
|
6915
8181
|
pathname='/',
|
|
6916
|
-
method='
|
|
8182
|
+
method='GET',
|
|
6917
8183
|
auth_type='AK',
|
|
6918
8184
|
style='RPC',
|
|
6919
8185
|
req_body_type='formData',
|
|
6920
8186
|
body_type='json'
|
|
6921
8187
|
)
|
|
6922
8188
|
return TeaCore.from_map(
|
|
6923
|
-
cloudfw_20171207_models.
|
|
8189
|
+
cloudfw_20171207_models.DescribePrivateDnsEndpointDetailResponse(),
|
|
6924
8190
|
self.call_api(params, req, runtime)
|
|
6925
8191
|
)
|
|
6926
8192
|
|
|
6927
|
-
async def
|
|
8193
|
+
async def describe_private_dns_endpoint_detail_with_options_async(
|
|
6928
8194
|
self,
|
|
6929
|
-
request: cloudfw_20171207_models.
|
|
8195
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointDetailRequest,
|
|
6930
8196
|
runtime: util_models.RuntimeOptions,
|
|
6931
|
-
) -> cloudfw_20171207_models.
|
|
8197
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointDetailResponse:
|
|
6932
8198
|
"""
|
|
6933
|
-
@summary
|
|
6934
|
-
|
|
6935
|
-
@description You can call this operation to query statistics of the current Cloud Firewall from the date of purchase.
|
|
8199
|
+
@summary 查询私网DNS终端节点详情
|
|
6936
8200
|
|
|
6937
|
-
@param request:
|
|
8201
|
+
@param request: DescribePrivateDnsEndpointDetailRequest
|
|
6938
8202
|
@param runtime: runtime options for this request RuntimeOptions
|
|
6939
|
-
@return:
|
|
8203
|
+
@return: DescribePrivateDnsEndpointDetailResponse
|
|
6940
8204
|
"""
|
|
6941
8205
|
UtilClient.validate_model(request)
|
|
6942
|
-
query =
|
|
6943
|
-
if not UtilClient.is_unset(request.lang):
|
|
6944
|
-
query['Lang'] = request.lang
|
|
8206
|
+
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
6945
8207
|
req = open_api_models.OpenApiRequest(
|
|
6946
8208
|
query=OpenApiUtilClient.query(query)
|
|
6947
8209
|
)
|
|
6948
8210
|
params = open_api_models.Params(
|
|
6949
|
-
action='
|
|
8211
|
+
action='DescribePrivateDnsEndpointDetail',
|
|
6950
8212
|
version='2017-12-07',
|
|
6951
8213
|
protocol='HTTPS',
|
|
6952
8214
|
pathname='/',
|
|
6953
|
-
method='
|
|
8215
|
+
method='GET',
|
|
6954
8216
|
auth_type='AK',
|
|
6955
8217
|
style='RPC',
|
|
6956
8218
|
req_body_type='formData',
|
|
6957
8219
|
body_type='json'
|
|
6958
8220
|
)
|
|
6959
8221
|
return TeaCore.from_map(
|
|
6960
|
-
cloudfw_20171207_models.
|
|
8222
|
+
cloudfw_20171207_models.DescribePrivateDnsEndpointDetailResponse(),
|
|
6961
8223
|
await self.call_api_async(params, req, runtime)
|
|
6962
8224
|
)
|
|
6963
8225
|
|
|
6964
|
-
def
|
|
8226
|
+
def describe_private_dns_endpoint_detail(
|
|
6965
8227
|
self,
|
|
6966
|
-
request: cloudfw_20171207_models.
|
|
6967
|
-
) -> cloudfw_20171207_models.
|
|
8228
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointDetailRequest,
|
|
8229
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointDetailResponse:
|
|
6968
8230
|
"""
|
|
6969
|
-
@summary
|
|
6970
|
-
|
|
6971
|
-
@description You can call this operation to query statistics of the current Cloud Firewall from the date of purchase.
|
|
8231
|
+
@summary 查询私网DNS终端节点详情
|
|
6972
8232
|
|
|
6973
|
-
@param request:
|
|
6974
|
-
@return:
|
|
8233
|
+
@param request: DescribePrivateDnsEndpointDetailRequest
|
|
8234
|
+
@return: DescribePrivateDnsEndpointDetailResponse
|
|
6975
8235
|
"""
|
|
6976
8236
|
runtime = util_models.RuntimeOptions()
|
|
6977
|
-
return self.
|
|
8237
|
+
return self.describe_private_dns_endpoint_detail_with_options(request, runtime)
|
|
6978
8238
|
|
|
6979
|
-
async def
|
|
8239
|
+
async def describe_private_dns_endpoint_detail_async(
|
|
6980
8240
|
self,
|
|
6981
|
-
request: cloudfw_20171207_models.
|
|
6982
|
-
) -> cloudfw_20171207_models.
|
|
8241
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointDetailRequest,
|
|
8242
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointDetailResponse:
|
|
6983
8243
|
"""
|
|
6984
|
-
@summary
|
|
6985
|
-
|
|
6986
|
-
@description You can call this operation to query statistics of the current Cloud Firewall from the date of purchase.
|
|
8244
|
+
@summary 查询私网DNS终端节点详情
|
|
6987
8245
|
|
|
6988
|
-
@param request:
|
|
6989
|
-
@return:
|
|
8246
|
+
@param request: DescribePrivateDnsEndpointDetailRequest
|
|
8247
|
+
@return: DescribePrivateDnsEndpointDetailResponse
|
|
6990
8248
|
"""
|
|
6991
8249
|
runtime = util_models.RuntimeOptions()
|
|
6992
|
-
return await self.
|
|
8250
|
+
return await self.describe_private_dns_endpoint_detail_with_options_async(request, runtime)
|
|
6993
8251
|
|
|
6994
|
-
def
|
|
8252
|
+
def describe_private_dns_endpoint_list_with_options(
|
|
6995
8253
|
self,
|
|
6996
|
-
request: cloudfw_20171207_models.
|
|
8254
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointListRequest,
|
|
6997
8255
|
runtime: util_models.RuntimeOptions,
|
|
6998
|
-
) -> cloudfw_20171207_models.
|
|
8256
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointListResponse:
|
|
6999
8257
|
"""
|
|
7000
|
-
@summary
|
|
8258
|
+
@summary 查询私网DNS终端节点列表
|
|
7001
8259
|
|
|
7002
|
-
@param request:
|
|
8260
|
+
@param request: DescribePrivateDnsEndpointListRequest
|
|
7003
8261
|
@param runtime: runtime options for this request RuntimeOptions
|
|
7004
|
-
@return:
|
|
8262
|
+
@return: DescribePrivateDnsEndpointListResponse
|
|
7005
8263
|
"""
|
|
7006
8264
|
UtilClient.validate_model(request)
|
|
7007
8265
|
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
@@ -7009,7 +8267,7 @@ class Client(OpenApiClient):
|
|
|
7009
8267
|
query=OpenApiUtilClient.query(query)
|
|
7010
8268
|
)
|
|
7011
8269
|
params = open_api_models.Params(
|
|
7012
|
-
action='
|
|
8270
|
+
action='DescribePrivateDnsEndpointList',
|
|
7013
8271
|
version='2017-12-07',
|
|
7014
8272
|
protocol='HTTPS',
|
|
7015
8273
|
pathname='/',
|
|
@@ -7020,21 +8278,21 @@ class Client(OpenApiClient):
|
|
|
7020
8278
|
body_type='json'
|
|
7021
8279
|
)
|
|
7022
8280
|
return TeaCore.from_map(
|
|
7023
|
-
cloudfw_20171207_models.
|
|
8281
|
+
cloudfw_20171207_models.DescribePrivateDnsEndpointListResponse(),
|
|
7024
8282
|
self.call_api(params, req, runtime)
|
|
7025
8283
|
)
|
|
7026
8284
|
|
|
7027
|
-
async def
|
|
8285
|
+
async def describe_private_dns_endpoint_list_with_options_async(
|
|
7028
8286
|
self,
|
|
7029
|
-
request: cloudfw_20171207_models.
|
|
8287
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointListRequest,
|
|
7030
8288
|
runtime: util_models.RuntimeOptions,
|
|
7031
|
-
) -> cloudfw_20171207_models.
|
|
8289
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointListResponse:
|
|
7032
8290
|
"""
|
|
7033
|
-
@summary
|
|
8291
|
+
@summary 查询私网DNS终端节点列表
|
|
7034
8292
|
|
|
7035
|
-
@param request:
|
|
8293
|
+
@param request: DescribePrivateDnsEndpointListRequest
|
|
7036
8294
|
@param runtime: runtime options for this request RuntimeOptions
|
|
7037
|
-
@return:
|
|
8295
|
+
@return: DescribePrivateDnsEndpointListResponse
|
|
7038
8296
|
"""
|
|
7039
8297
|
UtilClient.validate_model(request)
|
|
7040
8298
|
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
@@ -7042,7 +8300,7 @@ class Client(OpenApiClient):
|
|
|
7042
8300
|
query=OpenApiUtilClient.query(query)
|
|
7043
8301
|
)
|
|
7044
8302
|
params = open_api_models.Params(
|
|
7045
|
-
action='
|
|
8303
|
+
action='DescribePrivateDnsEndpointList',
|
|
7046
8304
|
version='2017-12-07',
|
|
7047
8305
|
protocol='HTTPS',
|
|
7048
8306
|
pathname='/',
|
|
@@ -7053,35 +8311,35 @@ class Client(OpenApiClient):
|
|
|
7053
8311
|
body_type='json'
|
|
7054
8312
|
)
|
|
7055
8313
|
return TeaCore.from_map(
|
|
7056
|
-
cloudfw_20171207_models.
|
|
8314
|
+
cloudfw_20171207_models.DescribePrivateDnsEndpointListResponse(),
|
|
7057
8315
|
await self.call_api_async(params, req, runtime)
|
|
7058
8316
|
)
|
|
7059
8317
|
|
|
7060
|
-
def
|
|
8318
|
+
def describe_private_dns_endpoint_list(
|
|
7061
8319
|
self,
|
|
7062
|
-
request: cloudfw_20171207_models.
|
|
7063
|
-
) -> cloudfw_20171207_models.
|
|
8320
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointListRequest,
|
|
8321
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointListResponse:
|
|
7064
8322
|
"""
|
|
7065
|
-
@summary
|
|
8323
|
+
@summary 查询私网DNS终端节点列表
|
|
7066
8324
|
|
|
7067
|
-
@param request:
|
|
7068
|
-
@return:
|
|
8325
|
+
@param request: DescribePrivateDnsEndpointListRequest
|
|
8326
|
+
@return: DescribePrivateDnsEndpointListResponse
|
|
7069
8327
|
"""
|
|
7070
8328
|
runtime = util_models.RuntimeOptions()
|
|
7071
|
-
return self.
|
|
8329
|
+
return self.describe_private_dns_endpoint_list_with_options(request, runtime)
|
|
7072
8330
|
|
|
7073
|
-
async def
|
|
8331
|
+
async def describe_private_dns_endpoint_list_async(
|
|
7074
8332
|
self,
|
|
7075
|
-
request: cloudfw_20171207_models.
|
|
7076
|
-
) -> cloudfw_20171207_models.
|
|
8333
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointListRequest,
|
|
8334
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointListResponse:
|
|
7077
8335
|
"""
|
|
7078
|
-
@summary
|
|
8336
|
+
@summary 查询私网DNS终端节点列表
|
|
7079
8337
|
|
|
7080
|
-
@param request:
|
|
7081
|
-
@return:
|
|
8338
|
+
@param request: DescribePrivateDnsEndpointListRequest
|
|
8339
|
+
@return: DescribePrivateDnsEndpointListResponse
|
|
7082
8340
|
"""
|
|
7083
8341
|
runtime = util_models.RuntimeOptions()
|
|
7084
|
-
return await self.
|
|
8342
|
+
return await self.describe_private_dns_endpoint_list_with_options_async(request, runtime)
|
|
7085
8343
|
|
|
7086
8344
|
def describe_risk_event_group_with_options(
|
|
7087
8345
|
self,
|
|
@@ -7103,6 +8361,8 @@ class Client(OpenApiClient):
|
|
|
7103
8361
|
query = {}
|
|
7104
8362
|
if not UtilClient.is_unset(request.attack_app):
|
|
7105
8363
|
query['AttackApp'] = request.attack_app
|
|
8364
|
+
if not UtilClient.is_unset(request.attack_app_category):
|
|
8365
|
+
query['AttackAppCategory'] = request.attack_app_category
|
|
7106
8366
|
if not UtilClient.is_unset(request.attack_type):
|
|
7107
8367
|
query['AttackType'] = request.attack_type
|
|
7108
8368
|
if not UtilClient.is_unset(request.buy_version):
|
|
@@ -7188,6 +8448,8 @@ class Client(OpenApiClient):
|
|
|
7188
8448
|
query = {}
|
|
7189
8449
|
if not UtilClient.is_unset(request.attack_app):
|
|
7190
8450
|
query['AttackApp'] = request.attack_app
|
|
8451
|
+
if not UtilClient.is_unset(request.attack_app_category):
|
|
8452
|
+
query['AttackAppCategory'] = request.attack_app_category
|
|
7191
8453
|
if not UtilClient.is_unset(request.attack_type):
|
|
7192
8454
|
query['AttackType'] = request.attack_type
|
|
7193
8455
|
if not UtilClient.is_unset(request.buy_version):
|
|
@@ -10433,6 +11695,106 @@ class Client(OpenApiClient):
|
|
|
10433
11695
|
runtime = util_models.RuntimeOptions()
|
|
10434
11696
|
return await self.modify_control_policy_position_with_options_async(request, runtime)
|
|
10435
11697
|
|
|
11698
|
+
def modify_control_policy_priority_with_options(
|
|
11699
|
+
self,
|
|
11700
|
+
request: cloudfw_20171207_models.ModifyControlPolicyPriorityRequest,
|
|
11701
|
+
runtime: util_models.RuntimeOptions,
|
|
11702
|
+
) -> cloudfw_20171207_models.ModifyControlPolicyPriorityResponse:
|
|
11703
|
+
"""
|
|
11704
|
+
@summary Modifies the priority of an access control policy.
|
|
11705
|
+
|
|
11706
|
+
@param request: ModifyControlPolicyPriorityRequest
|
|
11707
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11708
|
+
@return: ModifyControlPolicyPriorityResponse
|
|
11709
|
+
"""
|
|
11710
|
+
UtilClient.validate_model(request)
|
|
11711
|
+
query = {}
|
|
11712
|
+
if not UtilClient.is_unset(request.acl_uuid):
|
|
11713
|
+
query['AclUuid'] = request.acl_uuid
|
|
11714
|
+
if not UtilClient.is_unset(request.order):
|
|
11715
|
+
query['Order'] = request.order
|
|
11716
|
+
req = open_api_models.OpenApiRequest(
|
|
11717
|
+
query=OpenApiUtilClient.query(query)
|
|
11718
|
+
)
|
|
11719
|
+
params = open_api_models.Params(
|
|
11720
|
+
action='ModifyControlPolicyPriority',
|
|
11721
|
+
version='2017-12-07',
|
|
11722
|
+
protocol='HTTPS',
|
|
11723
|
+
pathname='/',
|
|
11724
|
+
method='POST',
|
|
11725
|
+
auth_type='AK',
|
|
11726
|
+
style='RPC',
|
|
11727
|
+
req_body_type='formData',
|
|
11728
|
+
body_type='json'
|
|
11729
|
+
)
|
|
11730
|
+
return TeaCore.from_map(
|
|
11731
|
+
cloudfw_20171207_models.ModifyControlPolicyPriorityResponse(),
|
|
11732
|
+
self.call_api(params, req, runtime)
|
|
11733
|
+
)
|
|
11734
|
+
|
|
11735
|
+
async def modify_control_policy_priority_with_options_async(
|
|
11736
|
+
self,
|
|
11737
|
+
request: cloudfw_20171207_models.ModifyControlPolicyPriorityRequest,
|
|
11738
|
+
runtime: util_models.RuntimeOptions,
|
|
11739
|
+
) -> cloudfw_20171207_models.ModifyControlPolicyPriorityResponse:
|
|
11740
|
+
"""
|
|
11741
|
+
@summary Modifies the priority of an access control policy.
|
|
11742
|
+
|
|
11743
|
+
@param request: ModifyControlPolicyPriorityRequest
|
|
11744
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11745
|
+
@return: ModifyControlPolicyPriorityResponse
|
|
11746
|
+
"""
|
|
11747
|
+
UtilClient.validate_model(request)
|
|
11748
|
+
query = {}
|
|
11749
|
+
if not UtilClient.is_unset(request.acl_uuid):
|
|
11750
|
+
query['AclUuid'] = request.acl_uuid
|
|
11751
|
+
if not UtilClient.is_unset(request.order):
|
|
11752
|
+
query['Order'] = request.order
|
|
11753
|
+
req = open_api_models.OpenApiRequest(
|
|
11754
|
+
query=OpenApiUtilClient.query(query)
|
|
11755
|
+
)
|
|
11756
|
+
params = open_api_models.Params(
|
|
11757
|
+
action='ModifyControlPolicyPriority',
|
|
11758
|
+
version='2017-12-07',
|
|
11759
|
+
protocol='HTTPS',
|
|
11760
|
+
pathname='/',
|
|
11761
|
+
method='POST',
|
|
11762
|
+
auth_type='AK',
|
|
11763
|
+
style='RPC',
|
|
11764
|
+
req_body_type='formData',
|
|
11765
|
+
body_type='json'
|
|
11766
|
+
)
|
|
11767
|
+
return TeaCore.from_map(
|
|
11768
|
+
cloudfw_20171207_models.ModifyControlPolicyPriorityResponse(),
|
|
11769
|
+
await self.call_api_async(params, req, runtime)
|
|
11770
|
+
)
|
|
11771
|
+
|
|
11772
|
+
def modify_control_policy_priority(
|
|
11773
|
+
self,
|
|
11774
|
+
request: cloudfw_20171207_models.ModifyControlPolicyPriorityRequest,
|
|
11775
|
+
) -> cloudfw_20171207_models.ModifyControlPolicyPriorityResponse:
|
|
11776
|
+
"""
|
|
11777
|
+
@summary Modifies the priority of an access control policy.
|
|
11778
|
+
|
|
11779
|
+
@param request: ModifyControlPolicyPriorityRequest
|
|
11780
|
+
@return: ModifyControlPolicyPriorityResponse
|
|
11781
|
+
"""
|
|
11782
|
+
runtime = util_models.RuntimeOptions()
|
|
11783
|
+
return self.modify_control_policy_priority_with_options(request, runtime)
|
|
11784
|
+
|
|
11785
|
+
async def modify_control_policy_priority_async(
|
|
11786
|
+
self,
|
|
11787
|
+
request: cloudfw_20171207_models.ModifyControlPolicyPriorityRequest,
|
|
11788
|
+
) -> cloudfw_20171207_models.ModifyControlPolicyPriorityResponse:
|
|
11789
|
+
"""
|
|
11790
|
+
@summary Modifies the priority of an access control policy.
|
|
11791
|
+
|
|
11792
|
+
@param request: ModifyControlPolicyPriorityRequest
|
|
11793
|
+
@return: ModifyControlPolicyPriorityResponse
|
|
11794
|
+
"""
|
|
11795
|
+
runtime = util_models.RuntimeOptions()
|
|
11796
|
+
return await self.modify_control_policy_priority_with_options_async(request, runtime)
|
|
11797
|
+
|
|
10436
11798
|
def modify_default_ipsconfig_with_options(
|
|
10437
11799
|
self,
|
|
10438
11800
|
request: cloudfw_20171207_models.ModifyDefaultIPSConfigRequest,
|
|
@@ -10465,7 +11827,135 @@ class Client(OpenApiClient):
|
|
|
10465
11827
|
query=OpenApiUtilClient.query(query)
|
|
10466
11828
|
)
|
|
10467
11829
|
params = open_api_models.Params(
|
|
10468
|
-
action='ModifyDefaultIPSConfig',
|
|
11830
|
+
action='ModifyDefaultIPSConfig',
|
|
11831
|
+
version='2017-12-07',
|
|
11832
|
+
protocol='HTTPS',
|
|
11833
|
+
pathname='/',
|
|
11834
|
+
method='POST',
|
|
11835
|
+
auth_type='AK',
|
|
11836
|
+
style='RPC',
|
|
11837
|
+
req_body_type='formData',
|
|
11838
|
+
body_type='json'
|
|
11839
|
+
)
|
|
11840
|
+
return TeaCore.from_map(
|
|
11841
|
+
cloudfw_20171207_models.ModifyDefaultIPSConfigResponse(),
|
|
11842
|
+
self.call_api(params, req, runtime)
|
|
11843
|
+
)
|
|
11844
|
+
|
|
11845
|
+
async def modify_default_ipsconfig_with_options_async(
|
|
11846
|
+
self,
|
|
11847
|
+
request: cloudfw_20171207_models.ModifyDefaultIPSConfigRequest,
|
|
11848
|
+
runtime: util_models.RuntimeOptions,
|
|
11849
|
+
) -> cloudfw_20171207_models.ModifyDefaultIPSConfigResponse:
|
|
11850
|
+
"""
|
|
11851
|
+
@summary Modifies the default configuration of the intrusion prevention system (IPS).
|
|
11852
|
+
|
|
11853
|
+
@param request: ModifyDefaultIPSConfigRequest
|
|
11854
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11855
|
+
@return: ModifyDefaultIPSConfigResponse
|
|
11856
|
+
"""
|
|
11857
|
+
UtilClient.validate_model(request)
|
|
11858
|
+
query = {}
|
|
11859
|
+
if not UtilClient.is_unset(request.basic_rules):
|
|
11860
|
+
query['BasicRules'] = request.basic_rules
|
|
11861
|
+
if not UtilClient.is_unset(request.cti_rules):
|
|
11862
|
+
query['CtiRules'] = request.cti_rules
|
|
11863
|
+
if not UtilClient.is_unset(request.lang):
|
|
11864
|
+
query['Lang'] = request.lang
|
|
11865
|
+
if not UtilClient.is_unset(request.max_sdl):
|
|
11866
|
+
query['MaxSdl'] = request.max_sdl
|
|
11867
|
+
if not UtilClient.is_unset(request.patch_rules):
|
|
11868
|
+
query['PatchRules'] = request.patch_rules
|
|
11869
|
+
if not UtilClient.is_unset(request.rule_class):
|
|
11870
|
+
query['RuleClass'] = request.rule_class
|
|
11871
|
+
if not UtilClient.is_unset(request.run_mode):
|
|
11872
|
+
query['RunMode'] = request.run_mode
|
|
11873
|
+
req = open_api_models.OpenApiRequest(
|
|
11874
|
+
query=OpenApiUtilClient.query(query)
|
|
11875
|
+
)
|
|
11876
|
+
params = open_api_models.Params(
|
|
11877
|
+
action='ModifyDefaultIPSConfig',
|
|
11878
|
+
version='2017-12-07',
|
|
11879
|
+
protocol='HTTPS',
|
|
11880
|
+
pathname='/',
|
|
11881
|
+
method='POST',
|
|
11882
|
+
auth_type='AK',
|
|
11883
|
+
style='RPC',
|
|
11884
|
+
req_body_type='formData',
|
|
11885
|
+
body_type='json'
|
|
11886
|
+
)
|
|
11887
|
+
return TeaCore.from_map(
|
|
11888
|
+
cloudfw_20171207_models.ModifyDefaultIPSConfigResponse(),
|
|
11889
|
+
await self.call_api_async(params, req, runtime)
|
|
11890
|
+
)
|
|
11891
|
+
|
|
11892
|
+
def modify_default_ipsconfig(
|
|
11893
|
+
self,
|
|
11894
|
+
request: cloudfw_20171207_models.ModifyDefaultIPSConfigRequest,
|
|
11895
|
+
) -> cloudfw_20171207_models.ModifyDefaultIPSConfigResponse:
|
|
11896
|
+
"""
|
|
11897
|
+
@summary Modifies the default configuration of the intrusion prevention system (IPS).
|
|
11898
|
+
|
|
11899
|
+
@param request: ModifyDefaultIPSConfigRequest
|
|
11900
|
+
@return: ModifyDefaultIPSConfigResponse
|
|
11901
|
+
"""
|
|
11902
|
+
runtime = util_models.RuntimeOptions()
|
|
11903
|
+
return self.modify_default_ipsconfig_with_options(request, runtime)
|
|
11904
|
+
|
|
11905
|
+
async def modify_default_ipsconfig_async(
|
|
11906
|
+
self,
|
|
11907
|
+
request: cloudfw_20171207_models.ModifyDefaultIPSConfigRequest,
|
|
11908
|
+
) -> cloudfw_20171207_models.ModifyDefaultIPSConfigResponse:
|
|
11909
|
+
"""
|
|
11910
|
+
@summary Modifies the default configuration of the intrusion prevention system (IPS).
|
|
11911
|
+
|
|
11912
|
+
@param request: ModifyDefaultIPSConfigRequest
|
|
11913
|
+
@return: ModifyDefaultIPSConfigResponse
|
|
11914
|
+
"""
|
|
11915
|
+
runtime = util_models.RuntimeOptions()
|
|
11916
|
+
return await self.modify_default_ipsconfig_with_options_async(request, runtime)
|
|
11917
|
+
|
|
11918
|
+
def modify_dns_firewall_policy_with_options(
|
|
11919
|
+
self,
|
|
11920
|
+
request: cloudfw_20171207_models.ModifyDnsFirewallPolicyRequest,
|
|
11921
|
+
runtime: util_models.RuntimeOptions,
|
|
11922
|
+
) -> cloudfw_20171207_models.ModifyDnsFirewallPolicyResponse:
|
|
11923
|
+
"""
|
|
11924
|
+
@summary 修改DNS防火墙规则
|
|
11925
|
+
|
|
11926
|
+
@param request: ModifyDnsFirewallPolicyRequest
|
|
11927
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11928
|
+
@return: ModifyDnsFirewallPolicyResponse
|
|
11929
|
+
"""
|
|
11930
|
+
UtilClient.validate_model(request)
|
|
11931
|
+
query = {}
|
|
11932
|
+
if not UtilClient.is_unset(request.acl_action):
|
|
11933
|
+
query['AclAction'] = request.acl_action
|
|
11934
|
+
if not UtilClient.is_unset(request.acl_uuid):
|
|
11935
|
+
query['AclUuid'] = request.acl_uuid
|
|
11936
|
+
if not UtilClient.is_unset(request.description):
|
|
11937
|
+
query['Description'] = request.description
|
|
11938
|
+
if not UtilClient.is_unset(request.destination):
|
|
11939
|
+
query['Destination'] = request.destination
|
|
11940
|
+
if not UtilClient.is_unset(request.destination_type):
|
|
11941
|
+
query['DestinationType'] = request.destination_type
|
|
11942
|
+
if not UtilClient.is_unset(request.lang):
|
|
11943
|
+
query['Lang'] = request.lang
|
|
11944
|
+
if not UtilClient.is_unset(request.priority):
|
|
11945
|
+
query['Priority'] = request.priority
|
|
11946
|
+
if not UtilClient.is_unset(request.release):
|
|
11947
|
+
query['Release'] = request.release
|
|
11948
|
+
if not UtilClient.is_unset(request.source):
|
|
11949
|
+
query['Source'] = request.source
|
|
11950
|
+
if not UtilClient.is_unset(request.source_ip):
|
|
11951
|
+
query['SourceIp'] = request.source_ip
|
|
11952
|
+
if not UtilClient.is_unset(request.source_type):
|
|
11953
|
+
query['SourceType'] = request.source_type
|
|
11954
|
+
req = open_api_models.OpenApiRequest(
|
|
11955
|
+
query=OpenApiUtilClient.query(query)
|
|
11956
|
+
)
|
|
11957
|
+
params = open_api_models.Params(
|
|
11958
|
+
action='ModifyDnsFirewallPolicy',
|
|
10469
11959
|
version='2017-12-07',
|
|
10470
11960
|
protocol='HTTPS',
|
|
10471
11961
|
pathname='/',
|
|
@@ -10476,43 +11966,51 @@ class Client(OpenApiClient):
|
|
|
10476
11966
|
body_type='json'
|
|
10477
11967
|
)
|
|
10478
11968
|
return TeaCore.from_map(
|
|
10479
|
-
cloudfw_20171207_models.
|
|
11969
|
+
cloudfw_20171207_models.ModifyDnsFirewallPolicyResponse(),
|
|
10480
11970
|
self.call_api(params, req, runtime)
|
|
10481
11971
|
)
|
|
10482
11972
|
|
|
10483
|
-
async def
|
|
11973
|
+
async def modify_dns_firewall_policy_with_options_async(
|
|
10484
11974
|
self,
|
|
10485
|
-
request: cloudfw_20171207_models.
|
|
11975
|
+
request: cloudfw_20171207_models.ModifyDnsFirewallPolicyRequest,
|
|
10486
11976
|
runtime: util_models.RuntimeOptions,
|
|
10487
|
-
) -> cloudfw_20171207_models.
|
|
11977
|
+
) -> cloudfw_20171207_models.ModifyDnsFirewallPolicyResponse:
|
|
10488
11978
|
"""
|
|
10489
|
-
@summary
|
|
11979
|
+
@summary 修改DNS防火墙规则
|
|
10490
11980
|
|
|
10491
|
-
@param request:
|
|
11981
|
+
@param request: ModifyDnsFirewallPolicyRequest
|
|
10492
11982
|
@param runtime: runtime options for this request RuntimeOptions
|
|
10493
|
-
@return:
|
|
11983
|
+
@return: ModifyDnsFirewallPolicyResponse
|
|
10494
11984
|
"""
|
|
10495
11985
|
UtilClient.validate_model(request)
|
|
10496
11986
|
query = {}
|
|
10497
|
-
if not UtilClient.is_unset(request.
|
|
10498
|
-
query['
|
|
10499
|
-
if not UtilClient.is_unset(request.
|
|
10500
|
-
query['
|
|
11987
|
+
if not UtilClient.is_unset(request.acl_action):
|
|
11988
|
+
query['AclAction'] = request.acl_action
|
|
11989
|
+
if not UtilClient.is_unset(request.acl_uuid):
|
|
11990
|
+
query['AclUuid'] = request.acl_uuid
|
|
11991
|
+
if not UtilClient.is_unset(request.description):
|
|
11992
|
+
query['Description'] = request.description
|
|
11993
|
+
if not UtilClient.is_unset(request.destination):
|
|
11994
|
+
query['Destination'] = request.destination
|
|
11995
|
+
if not UtilClient.is_unset(request.destination_type):
|
|
11996
|
+
query['DestinationType'] = request.destination_type
|
|
10501
11997
|
if not UtilClient.is_unset(request.lang):
|
|
10502
11998
|
query['Lang'] = request.lang
|
|
10503
|
-
if not UtilClient.is_unset(request.
|
|
10504
|
-
query['
|
|
10505
|
-
if not UtilClient.is_unset(request.
|
|
10506
|
-
query['
|
|
10507
|
-
if not UtilClient.is_unset(request.
|
|
10508
|
-
query['
|
|
10509
|
-
if not UtilClient.is_unset(request.
|
|
10510
|
-
query['
|
|
11999
|
+
if not UtilClient.is_unset(request.priority):
|
|
12000
|
+
query['Priority'] = request.priority
|
|
12001
|
+
if not UtilClient.is_unset(request.release):
|
|
12002
|
+
query['Release'] = request.release
|
|
12003
|
+
if not UtilClient.is_unset(request.source):
|
|
12004
|
+
query['Source'] = request.source
|
|
12005
|
+
if not UtilClient.is_unset(request.source_ip):
|
|
12006
|
+
query['SourceIp'] = request.source_ip
|
|
12007
|
+
if not UtilClient.is_unset(request.source_type):
|
|
12008
|
+
query['SourceType'] = request.source_type
|
|
10511
12009
|
req = open_api_models.OpenApiRequest(
|
|
10512
12010
|
query=OpenApiUtilClient.query(query)
|
|
10513
12011
|
)
|
|
10514
12012
|
params = open_api_models.Params(
|
|
10515
|
-
action='
|
|
12013
|
+
action='ModifyDnsFirewallPolicy',
|
|
10516
12014
|
version='2017-12-07',
|
|
10517
12015
|
protocol='HTTPS',
|
|
10518
12016
|
pathname='/',
|
|
@@ -10523,35 +12021,35 @@ class Client(OpenApiClient):
|
|
|
10523
12021
|
body_type='json'
|
|
10524
12022
|
)
|
|
10525
12023
|
return TeaCore.from_map(
|
|
10526
|
-
cloudfw_20171207_models.
|
|
12024
|
+
cloudfw_20171207_models.ModifyDnsFirewallPolicyResponse(),
|
|
10527
12025
|
await self.call_api_async(params, req, runtime)
|
|
10528
12026
|
)
|
|
10529
12027
|
|
|
10530
|
-
def
|
|
12028
|
+
def modify_dns_firewall_policy(
|
|
10531
12029
|
self,
|
|
10532
|
-
request: cloudfw_20171207_models.
|
|
10533
|
-
) -> cloudfw_20171207_models.
|
|
12030
|
+
request: cloudfw_20171207_models.ModifyDnsFirewallPolicyRequest,
|
|
12031
|
+
) -> cloudfw_20171207_models.ModifyDnsFirewallPolicyResponse:
|
|
10534
12032
|
"""
|
|
10535
|
-
@summary
|
|
12033
|
+
@summary 修改DNS防火墙规则
|
|
10536
12034
|
|
|
10537
|
-
@param request:
|
|
10538
|
-
@return:
|
|
12035
|
+
@param request: ModifyDnsFirewallPolicyRequest
|
|
12036
|
+
@return: ModifyDnsFirewallPolicyResponse
|
|
10539
12037
|
"""
|
|
10540
12038
|
runtime = util_models.RuntimeOptions()
|
|
10541
|
-
return self.
|
|
12039
|
+
return self.modify_dns_firewall_policy_with_options(request, runtime)
|
|
10542
12040
|
|
|
10543
|
-
async def
|
|
12041
|
+
async def modify_dns_firewall_policy_async(
|
|
10544
12042
|
self,
|
|
10545
|
-
request: cloudfw_20171207_models.
|
|
10546
|
-
) -> cloudfw_20171207_models.
|
|
12043
|
+
request: cloudfw_20171207_models.ModifyDnsFirewallPolicyRequest,
|
|
12044
|
+
) -> cloudfw_20171207_models.ModifyDnsFirewallPolicyResponse:
|
|
10547
12045
|
"""
|
|
10548
|
-
@summary
|
|
12046
|
+
@summary 修改DNS防火墙规则
|
|
10549
12047
|
|
|
10550
|
-
@param request:
|
|
10551
|
-
@return:
|
|
12048
|
+
@param request: ModifyDnsFirewallPolicyRequest
|
|
12049
|
+
@return: ModifyDnsFirewallPolicyResponse
|
|
10552
12050
|
"""
|
|
10553
12051
|
runtime = util_models.RuntimeOptions()
|
|
10554
|
-
return await self.
|
|
12052
|
+
return await self.modify_dns_firewall_policy_with_options_async(request, runtime)
|
|
10555
12053
|
|
|
10556
12054
|
def modify_firewall_v2route_policy_switch_with_options(
|
|
10557
12055
|
self,
|
|
@@ -11325,6 +12823,122 @@ class Client(OpenApiClient):
|
|
|
11325
12823
|
runtime = util_models.RuntimeOptions()
|
|
11326
12824
|
return await self.modify_policy_advanced_config_with_options_async(request, runtime)
|
|
11327
12825
|
|
|
12826
|
+
def modify_private_dns_endpoint_with_options(
|
|
12827
|
+
self,
|
|
12828
|
+
request: cloudfw_20171207_models.ModifyPrivateDnsEndpointRequest,
|
|
12829
|
+
runtime: util_models.RuntimeOptions,
|
|
12830
|
+
) -> cloudfw_20171207_models.ModifyPrivateDnsEndpointResponse:
|
|
12831
|
+
"""
|
|
12832
|
+
@summary 修改私网DNS终端节点
|
|
12833
|
+
|
|
12834
|
+
@param request: ModifyPrivateDnsEndpointRequest
|
|
12835
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12836
|
+
@return: ModifyPrivateDnsEndpointResponse
|
|
12837
|
+
"""
|
|
12838
|
+
UtilClient.validate_model(request)
|
|
12839
|
+
query = {}
|
|
12840
|
+
if not UtilClient.is_unset(request.access_instance_id):
|
|
12841
|
+
query['AccessInstanceId'] = request.access_instance_id
|
|
12842
|
+
if not UtilClient.is_unset(request.access_instance_name):
|
|
12843
|
+
query['AccessInstanceName'] = request.access_instance_name
|
|
12844
|
+
if not UtilClient.is_unset(request.primary_dns):
|
|
12845
|
+
query['PrimaryDns'] = request.primary_dns
|
|
12846
|
+
if not UtilClient.is_unset(request.private_dns_type):
|
|
12847
|
+
query['PrivateDnsType'] = request.private_dns_type
|
|
12848
|
+
if not UtilClient.is_unset(request.region_no):
|
|
12849
|
+
query['RegionNo'] = request.region_no
|
|
12850
|
+
if not UtilClient.is_unset(request.standby_dns):
|
|
12851
|
+
query['StandbyDns'] = request.standby_dns
|
|
12852
|
+
req = open_api_models.OpenApiRequest(
|
|
12853
|
+
query=OpenApiUtilClient.query(query)
|
|
12854
|
+
)
|
|
12855
|
+
params = open_api_models.Params(
|
|
12856
|
+
action='ModifyPrivateDnsEndpoint',
|
|
12857
|
+
version='2017-12-07',
|
|
12858
|
+
protocol='HTTPS',
|
|
12859
|
+
pathname='/',
|
|
12860
|
+
method='POST',
|
|
12861
|
+
auth_type='AK',
|
|
12862
|
+
style='RPC',
|
|
12863
|
+
req_body_type='formData',
|
|
12864
|
+
body_type='json'
|
|
12865
|
+
)
|
|
12866
|
+
return TeaCore.from_map(
|
|
12867
|
+
cloudfw_20171207_models.ModifyPrivateDnsEndpointResponse(),
|
|
12868
|
+
self.call_api(params, req, runtime)
|
|
12869
|
+
)
|
|
12870
|
+
|
|
12871
|
+
async def modify_private_dns_endpoint_with_options_async(
|
|
12872
|
+
self,
|
|
12873
|
+
request: cloudfw_20171207_models.ModifyPrivateDnsEndpointRequest,
|
|
12874
|
+
runtime: util_models.RuntimeOptions,
|
|
12875
|
+
) -> cloudfw_20171207_models.ModifyPrivateDnsEndpointResponse:
|
|
12876
|
+
"""
|
|
12877
|
+
@summary 修改私网DNS终端节点
|
|
12878
|
+
|
|
12879
|
+
@param request: ModifyPrivateDnsEndpointRequest
|
|
12880
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12881
|
+
@return: ModifyPrivateDnsEndpointResponse
|
|
12882
|
+
"""
|
|
12883
|
+
UtilClient.validate_model(request)
|
|
12884
|
+
query = {}
|
|
12885
|
+
if not UtilClient.is_unset(request.access_instance_id):
|
|
12886
|
+
query['AccessInstanceId'] = request.access_instance_id
|
|
12887
|
+
if not UtilClient.is_unset(request.access_instance_name):
|
|
12888
|
+
query['AccessInstanceName'] = request.access_instance_name
|
|
12889
|
+
if not UtilClient.is_unset(request.primary_dns):
|
|
12890
|
+
query['PrimaryDns'] = request.primary_dns
|
|
12891
|
+
if not UtilClient.is_unset(request.private_dns_type):
|
|
12892
|
+
query['PrivateDnsType'] = request.private_dns_type
|
|
12893
|
+
if not UtilClient.is_unset(request.region_no):
|
|
12894
|
+
query['RegionNo'] = request.region_no
|
|
12895
|
+
if not UtilClient.is_unset(request.standby_dns):
|
|
12896
|
+
query['StandbyDns'] = request.standby_dns
|
|
12897
|
+
req = open_api_models.OpenApiRequest(
|
|
12898
|
+
query=OpenApiUtilClient.query(query)
|
|
12899
|
+
)
|
|
12900
|
+
params = open_api_models.Params(
|
|
12901
|
+
action='ModifyPrivateDnsEndpoint',
|
|
12902
|
+
version='2017-12-07',
|
|
12903
|
+
protocol='HTTPS',
|
|
12904
|
+
pathname='/',
|
|
12905
|
+
method='POST',
|
|
12906
|
+
auth_type='AK',
|
|
12907
|
+
style='RPC',
|
|
12908
|
+
req_body_type='formData',
|
|
12909
|
+
body_type='json'
|
|
12910
|
+
)
|
|
12911
|
+
return TeaCore.from_map(
|
|
12912
|
+
cloudfw_20171207_models.ModifyPrivateDnsEndpointResponse(),
|
|
12913
|
+
await self.call_api_async(params, req, runtime)
|
|
12914
|
+
)
|
|
12915
|
+
|
|
12916
|
+
def modify_private_dns_endpoint(
|
|
12917
|
+
self,
|
|
12918
|
+
request: cloudfw_20171207_models.ModifyPrivateDnsEndpointRequest,
|
|
12919
|
+
) -> cloudfw_20171207_models.ModifyPrivateDnsEndpointResponse:
|
|
12920
|
+
"""
|
|
12921
|
+
@summary 修改私网DNS终端节点
|
|
12922
|
+
|
|
12923
|
+
@param request: ModifyPrivateDnsEndpointRequest
|
|
12924
|
+
@return: ModifyPrivateDnsEndpointResponse
|
|
12925
|
+
"""
|
|
12926
|
+
runtime = util_models.RuntimeOptions()
|
|
12927
|
+
return self.modify_private_dns_endpoint_with_options(request, runtime)
|
|
12928
|
+
|
|
12929
|
+
async def modify_private_dns_endpoint_async(
|
|
12930
|
+
self,
|
|
12931
|
+
request: cloudfw_20171207_models.ModifyPrivateDnsEndpointRequest,
|
|
12932
|
+
) -> cloudfw_20171207_models.ModifyPrivateDnsEndpointResponse:
|
|
12933
|
+
"""
|
|
12934
|
+
@summary 修改私网DNS终端节点
|
|
12935
|
+
|
|
12936
|
+
@param request: ModifyPrivateDnsEndpointRequest
|
|
12937
|
+
@return: ModifyPrivateDnsEndpointResponse
|
|
12938
|
+
"""
|
|
12939
|
+
runtime = util_models.RuntimeOptions()
|
|
12940
|
+
return await self.modify_private_dns_endpoint_with_options_async(request, runtime)
|
|
12941
|
+
|
|
11328
12942
|
def modify_tr_firewall_v2configuration_with_options(
|
|
11329
12943
|
self,
|
|
11330
12944
|
request: cloudfw_20171207_models.ModifyTrFirewallV2ConfigurationRequest,
|
|
@@ -13273,6 +14887,102 @@ class Client(OpenApiClient):
|
|
|
13273
14887
|
runtime = util_models.RuntimeOptions()
|
|
13274
14888
|
return await self.put_enable_fw_switch_with_options_async(request, runtime)
|
|
13275
14889
|
|
|
14890
|
+
def release_expired_instance_with_options(
|
|
14891
|
+
self,
|
|
14892
|
+
request: cloudfw_20171207_models.ReleaseExpiredInstanceRequest,
|
|
14893
|
+
runtime: util_models.RuntimeOptions,
|
|
14894
|
+
) -> cloudfw_20171207_models.ReleaseExpiredInstanceResponse:
|
|
14895
|
+
"""
|
|
14896
|
+
@summary 释放已过期的实例
|
|
14897
|
+
|
|
14898
|
+
@param request: ReleaseExpiredInstanceRequest
|
|
14899
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
14900
|
+
@return: ReleaseExpiredInstanceResponse
|
|
14901
|
+
"""
|
|
14902
|
+
UtilClient.validate_model(request)
|
|
14903
|
+
query = {}
|
|
14904
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
14905
|
+
query['InstanceId'] = request.instance_id
|
|
14906
|
+
req = open_api_models.OpenApiRequest(
|
|
14907
|
+
query=OpenApiUtilClient.query(query)
|
|
14908
|
+
)
|
|
14909
|
+
params = open_api_models.Params(
|
|
14910
|
+
action='ReleaseExpiredInstance',
|
|
14911
|
+
version='2017-12-07',
|
|
14912
|
+
protocol='HTTPS',
|
|
14913
|
+
pathname='/',
|
|
14914
|
+
method='POST',
|
|
14915
|
+
auth_type='AK',
|
|
14916
|
+
style='RPC',
|
|
14917
|
+
req_body_type='formData',
|
|
14918
|
+
body_type='json'
|
|
14919
|
+
)
|
|
14920
|
+
return TeaCore.from_map(
|
|
14921
|
+
cloudfw_20171207_models.ReleaseExpiredInstanceResponse(),
|
|
14922
|
+
self.call_api(params, req, runtime)
|
|
14923
|
+
)
|
|
14924
|
+
|
|
14925
|
+
async def release_expired_instance_with_options_async(
|
|
14926
|
+
self,
|
|
14927
|
+
request: cloudfw_20171207_models.ReleaseExpiredInstanceRequest,
|
|
14928
|
+
runtime: util_models.RuntimeOptions,
|
|
14929
|
+
) -> cloudfw_20171207_models.ReleaseExpiredInstanceResponse:
|
|
14930
|
+
"""
|
|
14931
|
+
@summary 释放已过期的实例
|
|
14932
|
+
|
|
14933
|
+
@param request: ReleaseExpiredInstanceRequest
|
|
14934
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
14935
|
+
@return: ReleaseExpiredInstanceResponse
|
|
14936
|
+
"""
|
|
14937
|
+
UtilClient.validate_model(request)
|
|
14938
|
+
query = {}
|
|
14939
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
14940
|
+
query['InstanceId'] = request.instance_id
|
|
14941
|
+
req = open_api_models.OpenApiRequest(
|
|
14942
|
+
query=OpenApiUtilClient.query(query)
|
|
14943
|
+
)
|
|
14944
|
+
params = open_api_models.Params(
|
|
14945
|
+
action='ReleaseExpiredInstance',
|
|
14946
|
+
version='2017-12-07',
|
|
14947
|
+
protocol='HTTPS',
|
|
14948
|
+
pathname='/',
|
|
14949
|
+
method='POST',
|
|
14950
|
+
auth_type='AK',
|
|
14951
|
+
style='RPC',
|
|
14952
|
+
req_body_type='formData',
|
|
14953
|
+
body_type='json'
|
|
14954
|
+
)
|
|
14955
|
+
return TeaCore.from_map(
|
|
14956
|
+
cloudfw_20171207_models.ReleaseExpiredInstanceResponse(),
|
|
14957
|
+
await self.call_api_async(params, req, runtime)
|
|
14958
|
+
)
|
|
14959
|
+
|
|
14960
|
+
def release_expired_instance(
|
|
14961
|
+
self,
|
|
14962
|
+
request: cloudfw_20171207_models.ReleaseExpiredInstanceRequest,
|
|
14963
|
+
) -> cloudfw_20171207_models.ReleaseExpiredInstanceResponse:
|
|
14964
|
+
"""
|
|
14965
|
+
@summary 释放已过期的实例
|
|
14966
|
+
|
|
14967
|
+
@param request: ReleaseExpiredInstanceRequest
|
|
14968
|
+
@return: ReleaseExpiredInstanceResponse
|
|
14969
|
+
"""
|
|
14970
|
+
runtime = util_models.RuntimeOptions()
|
|
14971
|
+
return self.release_expired_instance_with_options(request, runtime)
|
|
14972
|
+
|
|
14973
|
+
async def release_expired_instance_async(
|
|
14974
|
+
self,
|
|
14975
|
+
request: cloudfw_20171207_models.ReleaseExpiredInstanceRequest,
|
|
14976
|
+
) -> cloudfw_20171207_models.ReleaseExpiredInstanceResponse:
|
|
14977
|
+
"""
|
|
14978
|
+
@summary 释放已过期的实例
|
|
14979
|
+
|
|
14980
|
+
@param request: ReleaseExpiredInstanceRequest
|
|
14981
|
+
@return: ReleaseExpiredInstanceResponse
|
|
14982
|
+
"""
|
|
14983
|
+
runtime = util_models.RuntimeOptions()
|
|
14984
|
+
return await self.release_expired_instance_with_options_async(request, runtime)
|
|
14985
|
+
|
|
13276
14986
|
def release_post_instance_with_options(
|
|
13277
14987
|
self,
|
|
13278
14988
|
request: cloudfw_20171207_models.ReleasePostInstanceRequest,
|
|
@@ -13692,3 +15402,99 @@ class Client(OpenApiClient):
|
|
|
13692
15402
|
"""
|
|
13693
15403
|
runtime = util_models.RuntimeOptions()
|
|
13694
15404
|
return await self.switch_security_proxy_with_options_async(request, runtime)
|
|
15405
|
+
|
|
15406
|
+
def update_aitraffic_analysis_status_with_options(
|
|
15407
|
+
self,
|
|
15408
|
+
request: cloudfw_20171207_models.UpdateAITrafficAnalysisStatusRequest,
|
|
15409
|
+
runtime: util_models.RuntimeOptions,
|
|
15410
|
+
) -> cloudfw_20171207_models.UpdateAITrafficAnalysisStatusResponse:
|
|
15411
|
+
"""
|
|
15412
|
+
@summary 修改AI流量分析开启状态
|
|
15413
|
+
|
|
15414
|
+
@param request: UpdateAITrafficAnalysisStatusRequest
|
|
15415
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
15416
|
+
@return: UpdateAITrafficAnalysisStatusResponse
|
|
15417
|
+
"""
|
|
15418
|
+
UtilClient.validate_model(request)
|
|
15419
|
+
query = {}
|
|
15420
|
+
if not UtilClient.is_unset(request.status):
|
|
15421
|
+
query['Status'] = request.status
|
|
15422
|
+
req = open_api_models.OpenApiRequest(
|
|
15423
|
+
query=OpenApiUtilClient.query(query)
|
|
15424
|
+
)
|
|
15425
|
+
params = open_api_models.Params(
|
|
15426
|
+
action='UpdateAITrafficAnalysisStatus',
|
|
15427
|
+
version='2017-12-07',
|
|
15428
|
+
protocol='HTTPS',
|
|
15429
|
+
pathname='/',
|
|
15430
|
+
method='POST',
|
|
15431
|
+
auth_type='AK',
|
|
15432
|
+
style='RPC',
|
|
15433
|
+
req_body_type='formData',
|
|
15434
|
+
body_type='json'
|
|
15435
|
+
)
|
|
15436
|
+
return TeaCore.from_map(
|
|
15437
|
+
cloudfw_20171207_models.UpdateAITrafficAnalysisStatusResponse(),
|
|
15438
|
+
self.call_api(params, req, runtime)
|
|
15439
|
+
)
|
|
15440
|
+
|
|
15441
|
+
async def update_aitraffic_analysis_status_with_options_async(
|
|
15442
|
+
self,
|
|
15443
|
+
request: cloudfw_20171207_models.UpdateAITrafficAnalysisStatusRequest,
|
|
15444
|
+
runtime: util_models.RuntimeOptions,
|
|
15445
|
+
) -> cloudfw_20171207_models.UpdateAITrafficAnalysisStatusResponse:
|
|
15446
|
+
"""
|
|
15447
|
+
@summary 修改AI流量分析开启状态
|
|
15448
|
+
|
|
15449
|
+
@param request: UpdateAITrafficAnalysisStatusRequest
|
|
15450
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
15451
|
+
@return: UpdateAITrafficAnalysisStatusResponse
|
|
15452
|
+
"""
|
|
15453
|
+
UtilClient.validate_model(request)
|
|
15454
|
+
query = {}
|
|
15455
|
+
if not UtilClient.is_unset(request.status):
|
|
15456
|
+
query['Status'] = request.status
|
|
15457
|
+
req = open_api_models.OpenApiRequest(
|
|
15458
|
+
query=OpenApiUtilClient.query(query)
|
|
15459
|
+
)
|
|
15460
|
+
params = open_api_models.Params(
|
|
15461
|
+
action='UpdateAITrafficAnalysisStatus',
|
|
15462
|
+
version='2017-12-07',
|
|
15463
|
+
protocol='HTTPS',
|
|
15464
|
+
pathname='/',
|
|
15465
|
+
method='POST',
|
|
15466
|
+
auth_type='AK',
|
|
15467
|
+
style='RPC',
|
|
15468
|
+
req_body_type='formData',
|
|
15469
|
+
body_type='json'
|
|
15470
|
+
)
|
|
15471
|
+
return TeaCore.from_map(
|
|
15472
|
+
cloudfw_20171207_models.UpdateAITrafficAnalysisStatusResponse(),
|
|
15473
|
+
await self.call_api_async(params, req, runtime)
|
|
15474
|
+
)
|
|
15475
|
+
|
|
15476
|
+
def update_aitraffic_analysis_status(
|
|
15477
|
+
self,
|
|
15478
|
+
request: cloudfw_20171207_models.UpdateAITrafficAnalysisStatusRequest,
|
|
15479
|
+
) -> cloudfw_20171207_models.UpdateAITrafficAnalysisStatusResponse:
|
|
15480
|
+
"""
|
|
15481
|
+
@summary 修改AI流量分析开启状态
|
|
15482
|
+
|
|
15483
|
+
@param request: UpdateAITrafficAnalysisStatusRequest
|
|
15484
|
+
@return: UpdateAITrafficAnalysisStatusResponse
|
|
15485
|
+
"""
|
|
15486
|
+
runtime = util_models.RuntimeOptions()
|
|
15487
|
+
return self.update_aitraffic_analysis_status_with_options(request, runtime)
|
|
15488
|
+
|
|
15489
|
+
async def update_aitraffic_analysis_status_async(
|
|
15490
|
+
self,
|
|
15491
|
+
request: cloudfw_20171207_models.UpdateAITrafficAnalysisStatusRequest,
|
|
15492
|
+
) -> cloudfw_20171207_models.UpdateAITrafficAnalysisStatusResponse:
|
|
15493
|
+
"""
|
|
15494
|
+
@summary 修改AI流量分析开启状态
|
|
15495
|
+
|
|
15496
|
+
@param request: UpdateAITrafficAnalysisStatusRequest
|
|
15497
|
+
@return: UpdateAITrafficAnalysisStatusResponse
|
|
15498
|
+
"""
|
|
15499
|
+
runtime = util_models.RuntimeOptions()
|
|
15500
|
+
return await self.update_aitraffic_analysis_status_with_options_async(request, runtime)
|