alibabacloud-cloudfw20171207 6.1.0__py3-none-any.whl → 6.1.3__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 +2047 -229
- alibabacloud_cloudfw20171207/models.py +8638 -6057
- {alibabacloud_cloudfw20171207-6.1.0.dist-info → alibabacloud_cloudfw20171207-6.1.3.dist-info}/METADATA +3 -3
- alibabacloud_cloudfw20171207-6.1.3.dist-info/RECORD +8 -0
- alibabacloud_cloudfw20171207-6.1.0.dist-info/RECORD +0 -8
- {alibabacloud_cloudfw20171207-6.1.0.dist-info → alibabacloud_cloudfw20171207-6.1.3.dist-info}/LICENSE +0 -0
- {alibabacloud_cloudfw20171207-6.1.0.dist-info → alibabacloud_cloudfw20171207-6.1.3.dist-info}/WHEEL +0 -0
- {alibabacloud_cloudfw20171207-6.1.0.dist-info → alibabacloud_cloudfw20171207-6.1.3.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,
|
|
@@ -2804,35 +3268,351 @@ class Client(OpenApiClient):
|
|
|
2804
3268
|
self.call_api(params, req, runtime)
|
|
2805
3269
|
)
|
|
2806
3270
|
|
|
2807
|
-
async def delete_nat_firewall_control_policy_with_options_async(
|
|
3271
|
+
async def delete_nat_firewall_control_policy_with_options_async(
|
|
3272
|
+
self,
|
|
3273
|
+
request: cloudfw_20171207_models.DeleteNatFirewallControlPolicyRequest,
|
|
3274
|
+
runtime: util_models.RuntimeOptions,
|
|
3275
|
+
) -> cloudfw_20171207_models.DeleteNatFirewallControlPolicyResponse:
|
|
3276
|
+
"""
|
|
3277
|
+
@summary Deletes an access control policy that is created for a NAT firewall.
|
|
3278
|
+
|
|
3279
|
+
@description You can use this operation to delete an outbound access control policy that is created for a NAT firewall.
|
|
3280
|
+
|
|
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(
|
|
2808
3592
|
self,
|
|
2809
|
-
request: cloudfw_20171207_models.
|
|
3593
|
+
request: cloudfw_20171207_models.DeletePrivateDnsDomainNameRequest,
|
|
2810
3594
|
runtime: util_models.RuntimeOptions,
|
|
2811
|
-
) -> cloudfw_20171207_models.
|
|
3595
|
+
) -> cloudfw_20171207_models.DeletePrivateDnsDomainNameResponse:
|
|
2812
3596
|
"""
|
|
2813
|
-
@summary
|
|
3597
|
+
@summary 删除私网DNS域名
|
|
2814
3598
|
|
|
2815
|
-
@
|
|
2816
|
-
|
|
2817
|
-
@param request: DeleteNatFirewallControlPolicyRequest
|
|
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,
|
|
@@ -3003,6 +3771,8 @@ class Client(OpenApiClient):
|
|
|
3003
3771
|
query['Lang'] = request.lang
|
|
3004
3772
|
if not UtilClient.is_unset(request.proxy_id):
|
|
3005
3773
|
query['ProxyId'] = request.proxy_id
|
|
3774
|
+
if not UtilClient.is_unset(request.trim_sql):
|
|
3775
|
+
query['trimSql'] = request.trim_sql
|
|
3006
3776
|
req = open_api_models.OpenApiRequest(
|
|
3007
3777
|
query=OpenApiUtilClient.query(query)
|
|
3008
3778
|
)
|
|
@@ -3040,6 +3810,8 @@ class Client(OpenApiClient):
|
|
|
3040
3810
|
query['Lang'] = request.lang
|
|
3041
3811
|
if not UtilClient.is_unset(request.proxy_id):
|
|
3042
3812
|
query['ProxyId'] = request.proxy_id
|
|
3813
|
+
if not UtilClient.is_unset(request.trim_sql):
|
|
3814
|
+
query['trimSql'] = request.trim_sql
|
|
3043
3815
|
req = open_api_models.OpenApiRequest(
|
|
3044
3816
|
query=OpenApiUtilClient.query(query)
|
|
3045
3817
|
)
|
|
@@ -3657,6 +4429,80 @@ class Client(OpenApiClient):
|
|
|
3657
4429
|
runtime = util_models.RuntimeOptions()
|
|
3658
4430
|
return await self.describe_aclprotect_trend_with_options_async(request, runtime)
|
|
3659
4431
|
|
|
4432
|
+
def describe_aitraffic_analysis_status_with_options(
|
|
4433
|
+
self,
|
|
4434
|
+
runtime: util_models.RuntimeOptions,
|
|
4435
|
+
) -> cloudfw_20171207_models.DescribeAITrafficAnalysisStatusResponse:
|
|
4436
|
+
"""
|
|
4437
|
+
@summary 查询AI流量分析开启状态
|
|
4438
|
+
|
|
4439
|
+
@param request: DescribeAITrafficAnalysisStatusRequest
|
|
4440
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
4441
|
+
@return: DescribeAITrafficAnalysisStatusResponse
|
|
4442
|
+
"""
|
|
4443
|
+
req = open_api_models.OpenApiRequest()
|
|
4444
|
+
params = open_api_models.Params(
|
|
4445
|
+
action='DescribeAITrafficAnalysisStatus',
|
|
4446
|
+
version='2017-12-07',
|
|
4447
|
+
protocol='HTTPS',
|
|
4448
|
+
pathname='/',
|
|
4449
|
+
method='POST',
|
|
4450
|
+
auth_type='AK',
|
|
4451
|
+
style='RPC',
|
|
4452
|
+
req_body_type='formData',
|
|
4453
|
+
body_type='json'
|
|
4454
|
+
)
|
|
4455
|
+
return TeaCore.from_map(
|
|
4456
|
+
cloudfw_20171207_models.DescribeAITrafficAnalysisStatusResponse(),
|
|
4457
|
+
self.call_api(params, req, runtime)
|
|
4458
|
+
)
|
|
4459
|
+
|
|
4460
|
+
async def describe_aitraffic_analysis_status_with_options_async(
|
|
4461
|
+
self,
|
|
4462
|
+
runtime: util_models.RuntimeOptions,
|
|
4463
|
+
) -> cloudfw_20171207_models.DescribeAITrafficAnalysisStatusResponse:
|
|
4464
|
+
"""
|
|
4465
|
+
@summary 查询AI流量分析开启状态
|
|
4466
|
+
|
|
4467
|
+
@param request: DescribeAITrafficAnalysisStatusRequest
|
|
4468
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
4469
|
+
@return: DescribeAITrafficAnalysisStatusResponse
|
|
4470
|
+
"""
|
|
4471
|
+
req = open_api_models.OpenApiRequest()
|
|
4472
|
+
params = open_api_models.Params(
|
|
4473
|
+
action='DescribeAITrafficAnalysisStatus',
|
|
4474
|
+
version='2017-12-07',
|
|
4475
|
+
protocol='HTTPS',
|
|
4476
|
+
pathname='/',
|
|
4477
|
+
method='POST',
|
|
4478
|
+
auth_type='AK',
|
|
4479
|
+
style='RPC',
|
|
4480
|
+
req_body_type='formData',
|
|
4481
|
+
body_type='json'
|
|
4482
|
+
)
|
|
4483
|
+
return TeaCore.from_map(
|
|
4484
|
+
cloudfw_20171207_models.DescribeAITrafficAnalysisStatusResponse(),
|
|
4485
|
+
await self.call_api_async(params, req, runtime)
|
|
4486
|
+
)
|
|
4487
|
+
|
|
4488
|
+
def describe_aitraffic_analysis_status(self) -> cloudfw_20171207_models.DescribeAITrafficAnalysisStatusResponse:
|
|
4489
|
+
"""
|
|
4490
|
+
@summary 查询AI流量分析开启状态
|
|
4491
|
+
|
|
4492
|
+
@return: DescribeAITrafficAnalysisStatusResponse
|
|
4493
|
+
"""
|
|
4494
|
+
runtime = util_models.RuntimeOptions()
|
|
4495
|
+
return self.describe_aitraffic_analysis_status_with_options(runtime)
|
|
4496
|
+
|
|
4497
|
+
async def describe_aitraffic_analysis_status_async(self) -> cloudfw_20171207_models.DescribeAITrafficAnalysisStatusResponse:
|
|
4498
|
+
"""
|
|
4499
|
+
@summary 查询AI流量分析开启状态
|
|
4500
|
+
|
|
4501
|
+
@return: DescribeAITrafficAnalysisStatusResponse
|
|
4502
|
+
"""
|
|
4503
|
+
runtime = util_models.RuntimeOptions()
|
|
4504
|
+
return await self.describe_aitraffic_analysis_status_with_options_async(runtime)
|
|
4505
|
+
|
|
3660
4506
|
def describe_address_book_with_options(
|
|
3661
4507
|
self,
|
|
3662
4508
|
request: cloudfw_20171207_models.DescribeAddressBookRequest,
|
|
@@ -4522,16 +5368,156 @@ class Client(OpenApiClient):
|
|
|
4522
5368
|
|
|
4523
5369
|
async def describe_default_ipsconfig_async(
|
|
4524
5370
|
self,
|
|
4525
|
-
request: cloudfw_20171207_models.DescribeDefaultIPSConfigRequest,
|
|
4526
|
-
) -> cloudfw_20171207_models.DescribeDefaultIPSConfigResponse:
|
|
5371
|
+
request: cloudfw_20171207_models.DescribeDefaultIPSConfigRequest,
|
|
5372
|
+
) -> cloudfw_20171207_models.DescribeDefaultIPSConfigResponse:
|
|
5373
|
+
"""
|
|
5374
|
+
@summary Queries the default intrusion prevention system (IPS) configurations.
|
|
5375
|
+
|
|
5376
|
+
@param request: DescribeDefaultIPSConfigRequest
|
|
5377
|
+
@return: DescribeDefaultIPSConfigResponse
|
|
5378
|
+
"""
|
|
5379
|
+
runtime = util_models.RuntimeOptions()
|
|
5380
|
+
return await self.describe_default_ipsconfig_with_options_async(request, runtime)
|
|
5381
|
+
|
|
5382
|
+
def describe_dns_firewall_policy_with_options(
|
|
5383
|
+
self,
|
|
5384
|
+
request: cloudfw_20171207_models.DescribeDnsFirewallPolicyRequest,
|
|
5385
|
+
runtime: util_models.RuntimeOptions,
|
|
5386
|
+
) -> cloudfw_20171207_models.DescribeDnsFirewallPolicyResponse:
|
|
5387
|
+
"""
|
|
5388
|
+
@summary 获取DNS防火墙ACL列表
|
|
5389
|
+
|
|
5390
|
+
@param request: DescribeDnsFirewallPolicyRequest
|
|
5391
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
5392
|
+
@return: DescribeDnsFirewallPolicyResponse
|
|
5393
|
+
"""
|
|
5394
|
+
UtilClient.validate_model(request)
|
|
5395
|
+
query = {}
|
|
5396
|
+
if not UtilClient.is_unset(request.acl_action):
|
|
5397
|
+
query['AclAction'] = request.acl_action
|
|
5398
|
+
if not UtilClient.is_unset(request.acl_uuid):
|
|
5399
|
+
query['AclUuid'] = request.acl_uuid
|
|
5400
|
+
if not UtilClient.is_unset(request.current_page):
|
|
5401
|
+
query['CurrentPage'] = request.current_page
|
|
5402
|
+
if not UtilClient.is_unset(request.description):
|
|
5403
|
+
query['Description'] = request.description
|
|
5404
|
+
if not UtilClient.is_unset(request.destination):
|
|
5405
|
+
query['Destination'] = request.destination
|
|
5406
|
+
if not UtilClient.is_unset(request.ip_version):
|
|
5407
|
+
query['IpVersion'] = request.ip_version
|
|
5408
|
+
if not UtilClient.is_unset(request.lang):
|
|
5409
|
+
query['Lang'] = request.lang
|
|
5410
|
+
if not UtilClient.is_unset(request.lang):
|
|
5411
|
+
query['Lang'] = request.lang
|
|
5412
|
+
if not UtilClient.is_unset(request.page_size):
|
|
5413
|
+
query['PageSize'] = request.page_size
|
|
5414
|
+
if not UtilClient.is_unset(request.release):
|
|
5415
|
+
query['Release'] = request.release
|
|
5416
|
+
if not UtilClient.is_unset(request.source):
|
|
5417
|
+
query['Source'] = request.source
|
|
5418
|
+
if not UtilClient.is_unset(request.source_ip):
|
|
5419
|
+
query['SourceIp'] = request.source_ip
|
|
5420
|
+
req = open_api_models.OpenApiRequest(
|
|
5421
|
+
query=OpenApiUtilClient.query(query)
|
|
5422
|
+
)
|
|
5423
|
+
params = open_api_models.Params(
|
|
5424
|
+
action='DescribeDnsFirewallPolicy',
|
|
5425
|
+
version='2017-12-07',
|
|
5426
|
+
protocol='HTTPS',
|
|
5427
|
+
pathname='/',
|
|
5428
|
+
method='POST',
|
|
5429
|
+
auth_type='AK',
|
|
5430
|
+
style='RPC',
|
|
5431
|
+
req_body_type='formData',
|
|
5432
|
+
body_type='json'
|
|
5433
|
+
)
|
|
5434
|
+
return TeaCore.from_map(
|
|
5435
|
+
cloudfw_20171207_models.DescribeDnsFirewallPolicyResponse(),
|
|
5436
|
+
self.call_api(params, req, runtime)
|
|
5437
|
+
)
|
|
5438
|
+
|
|
5439
|
+
async def describe_dns_firewall_policy_with_options_async(
|
|
5440
|
+
self,
|
|
5441
|
+
request: cloudfw_20171207_models.DescribeDnsFirewallPolicyRequest,
|
|
5442
|
+
runtime: util_models.RuntimeOptions,
|
|
5443
|
+
) -> cloudfw_20171207_models.DescribeDnsFirewallPolicyResponse:
|
|
5444
|
+
"""
|
|
5445
|
+
@summary 获取DNS防火墙ACL列表
|
|
5446
|
+
|
|
5447
|
+
@param request: DescribeDnsFirewallPolicyRequest
|
|
5448
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
5449
|
+
@return: DescribeDnsFirewallPolicyResponse
|
|
5450
|
+
"""
|
|
5451
|
+
UtilClient.validate_model(request)
|
|
5452
|
+
query = {}
|
|
5453
|
+
if not UtilClient.is_unset(request.acl_action):
|
|
5454
|
+
query['AclAction'] = request.acl_action
|
|
5455
|
+
if not UtilClient.is_unset(request.acl_uuid):
|
|
5456
|
+
query['AclUuid'] = request.acl_uuid
|
|
5457
|
+
if not UtilClient.is_unset(request.current_page):
|
|
5458
|
+
query['CurrentPage'] = request.current_page
|
|
5459
|
+
if not UtilClient.is_unset(request.description):
|
|
5460
|
+
query['Description'] = request.description
|
|
5461
|
+
if not UtilClient.is_unset(request.destination):
|
|
5462
|
+
query['Destination'] = request.destination
|
|
5463
|
+
if not UtilClient.is_unset(request.ip_version):
|
|
5464
|
+
query['IpVersion'] = request.ip_version
|
|
5465
|
+
if not UtilClient.is_unset(request.lang):
|
|
5466
|
+
query['Lang'] = request.lang
|
|
5467
|
+
if not UtilClient.is_unset(request.lang):
|
|
5468
|
+
query['Lang'] = request.lang
|
|
5469
|
+
if not UtilClient.is_unset(request.page_size):
|
|
5470
|
+
query['PageSize'] = request.page_size
|
|
5471
|
+
if not UtilClient.is_unset(request.release):
|
|
5472
|
+
query['Release'] = request.release
|
|
5473
|
+
if not UtilClient.is_unset(request.source):
|
|
5474
|
+
query['Source'] = request.source
|
|
5475
|
+
if not UtilClient.is_unset(request.source_ip):
|
|
5476
|
+
query['SourceIp'] = request.source_ip
|
|
5477
|
+
req = open_api_models.OpenApiRequest(
|
|
5478
|
+
query=OpenApiUtilClient.query(query)
|
|
5479
|
+
)
|
|
5480
|
+
params = open_api_models.Params(
|
|
5481
|
+
action='DescribeDnsFirewallPolicy',
|
|
5482
|
+
version='2017-12-07',
|
|
5483
|
+
protocol='HTTPS',
|
|
5484
|
+
pathname='/',
|
|
5485
|
+
method='POST',
|
|
5486
|
+
auth_type='AK',
|
|
5487
|
+
style='RPC',
|
|
5488
|
+
req_body_type='formData',
|
|
5489
|
+
body_type='json'
|
|
5490
|
+
)
|
|
5491
|
+
return TeaCore.from_map(
|
|
5492
|
+
cloudfw_20171207_models.DescribeDnsFirewallPolicyResponse(),
|
|
5493
|
+
await self.call_api_async(params, req, runtime)
|
|
5494
|
+
)
|
|
5495
|
+
|
|
5496
|
+
def describe_dns_firewall_policy(
|
|
5497
|
+
self,
|
|
5498
|
+
request: cloudfw_20171207_models.DescribeDnsFirewallPolicyRequest,
|
|
5499
|
+
) -> cloudfw_20171207_models.DescribeDnsFirewallPolicyResponse:
|
|
5500
|
+
"""
|
|
5501
|
+
@summary 获取DNS防火墙ACL列表
|
|
5502
|
+
|
|
5503
|
+
@param request: DescribeDnsFirewallPolicyRequest
|
|
5504
|
+
@return: DescribeDnsFirewallPolicyResponse
|
|
5505
|
+
"""
|
|
5506
|
+
runtime = util_models.RuntimeOptions()
|
|
5507
|
+
return self.describe_dns_firewall_policy_with_options(request, runtime)
|
|
5508
|
+
|
|
5509
|
+
async def describe_dns_firewall_policy_async(
|
|
5510
|
+
self,
|
|
5511
|
+
request: cloudfw_20171207_models.DescribeDnsFirewallPolicyRequest,
|
|
5512
|
+
) -> cloudfw_20171207_models.DescribeDnsFirewallPolicyResponse:
|
|
4527
5513
|
"""
|
|
4528
|
-
@summary
|
|
5514
|
+
@summary 获取DNS防火墙ACL列表
|
|
4529
5515
|
|
|
4530
|
-
@param request:
|
|
4531
|
-
@return:
|
|
5516
|
+
@param request: DescribeDnsFirewallPolicyRequest
|
|
5517
|
+
@return: DescribeDnsFirewallPolicyResponse
|
|
4532
5518
|
"""
|
|
4533
5519
|
runtime = util_models.RuntimeOptions()
|
|
4534
|
-
return await self.
|
|
5520
|
+
return await self.describe_dns_firewall_policy_with_options_async(request, runtime)
|
|
4535
5521
|
|
|
4536
5522
|
def describe_domain_resolve_with_options(
|
|
4537
5523
|
self,
|
|
@@ -5554,7 +6540,7 @@ class Client(OpenApiClient):
|
|
|
5554
6540
|
runtime: util_models.RuntimeOptions,
|
|
5555
6541
|
) -> cloudfw_20171207_models.DescribeLogStoreInfoResponse:
|
|
5556
6542
|
"""
|
|
5557
|
-
@summary
|
|
6543
|
+
@summary Get Log Service Information
|
|
5558
6544
|
|
|
5559
6545
|
@param request: DescribeLogStoreInfoRequest
|
|
5560
6546
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -5582,7 +6568,7 @@ class Client(OpenApiClient):
|
|
|
5582
6568
|
runtime: util_models.RuntimeOptions,
|
|
5583
6569
|
) -> cloudfw_20171207_models.DescribeLogStoreInfoResponse:
|
|
5584
6570
|
"""
|
|
5585
|
-
@summary
|
|
6571
|
+
@summary Get Log Service Information
|
|
5586
6572
|
|
|
5587
6573
|
@param request: DescribeLogStoreInfoRequest
|
|
5588
6574
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -5607,7 +6593,7 @@ class Client(OpenApiClient):
|
|
|
5607
6593
|
|
|
5608
6594
|
def describe_log_store_info(self) -> cloudfw_20171207_models.DescribeLogStoreInfoResponse:
|
|
5609
6595
|
"""
|
|
5610
|
-
@summary
|
|
6596
|
+
@summary Get Log Service Information
|
|
5611
6597
|
|
|
5612
6598
|
@return: DescribeLogStoreInfoResponse
|
|
5613
6599
|
"""
|
|
@@ -5616,7 +6602,7 @@ class Client(OpenApiClient):
|
|
|
5616
6602
|
|
|
5617
6603
|
async def describe_log_store_info_async(self) -> cloudfw_20171207_models.DescribeLogStoreInfoResponse:
|
|
5618
6604
|
"""
|
|
5619
|
-
@summary
|
|
6605
|
+
@summary Get Log Service Information
|
|
5620
6606
|
|
|
5621
6607
|
@return: DescribeLogStoreInfoResponse
|
|
5622
6608
|
"""
|
|
@@ -6221,7 +7207,7 @@ class Client(OpenApiClient):
|
|
|
6221
7207
|
runtime: util_models.RuntimeOptions,
|
|
6222
7208
|
) -> cloudfw_20171207_models.DescribeOutgoingDestinationIPResponse:
|
|
6223
7209
|
"""
|
|
6224
|
-
@summary
|
|
7210
|
+
@summary Get details of outgoing destination IPs
|
|
6225
7211
|
|
|
6226
7212
|
@param request: DescribeOutgoingDestinationIPRequest
|
|
6227
7213
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -6282,7 +7268,7 @@ class Client(OpenApiClient):
|
|
|
6282
7268
|
runtime: util_models.RuntimeOptions,
|
|
6283
7269
|
) -> cloudfw_20171207_models.DescribeOutgoingDestinationIPResponse:
|
|
6284
7270
|
"""
|
|
6285
|
-
@summary
|
|
7271
|
+
@summary Get details of outgoing destination IPs
|
|
6286
7272
|
|
|
6287
7273
|
@param request: DescribeOutgoingDestinationIPRequest
|
|
6288
7274
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -6342,7 +7328,7 @@ class Client(OpenApiClient):
|
|
|
6342
7328
|
request: cloudfw_20171207_models.DescribeOutgoingDestinationIPRequest,
|
|
6343
7329
|
) -> cloudfw_20171207_models.DescribeOutgoingDestinationIPResponse:
|
|
6344
7330
|
"""
|
|
6345
|
-
@summary
|
|
7331
|
+
@summary Get details of outgoing destination IPs
|
|
6346
7332
|
|
|
6347
7333
|
@param request: DescribeOutgoingDestinationIPRequest
|
|
6348
7334
|
@return: DescribeOutgoingDestinationIPResponse
|
|
@@ -6355,7 +7341,7 @@ class Client(OpenApiClient):
|
|
|
6355
7341
|
request: cloudfw_20171207_models.DescribeOutgoingDestinationIPRequest,
|
|
6356
7342
|
) -> cloudfw_20171207_models.DescribeOutgoingDestinationIPResponse:
|
|
6357
7343
|
"""
|
|
6358
|
-
@summary
|
|
7344
|
+
@summary Get details of outgoing destination IPs
|
|
6359
7345
|
|
|
6360
7346
|
@param request: DescribeOutgoingDestinationIPRequest
|
|
6361
7347
|
@return: DescribeOutgoingDestinationIPResponse
|
|
@@ -6381,10 +7367,14 @@ class Client(OpenApiClient):
|
|
|
6381
7367
|
query['CategoryId'] = request.category_id
|
|
6382
7368
|
if not UtilClient.is_unset(request.current_page):
|
|
6383
7369
|
query['CurrentPage'] = request.current_page
|
|
7370
|
+
if not UtilClient.is_unset(request.data_type):
|
|
7371
|
+
query['DataType'] = request.data_type
|
|
6384
7372
|
if not UtilClient.is_unset(request.domain):
|
|
6385
7373
|
query['Domain'] = request.domain
|
|
6386
7374
|
if not UtilClient.is_unset(request.end_time):
|
|
6387
7375
|
query['EndTime'] = request.end_time
|
|
7376
|
+
if not UtilClient.is_unset(request.is_aitraffic):
|
|
7377
|
+
query['IsAITraffic'] = request.is_aitraffic
|
|
6388
7378
|
if not UtilClient.is_unset(request.lang):
|
|
6389
7379
|
query['Lang'] = request.lang
|
|
6390
7380
|
if not UtilClient.is_unset(request.order):
|
|
@@ -6436,10 +7426,14 @@ class Client(OpenApiClient):
|
|
|
6436
7426
|
query['CategoryId'] = request.category_id
|
|
6437
7427
|
if not UtilClient.is_unset(request.current_page):
|
|
6438
7428
|
query['CurrentPage'] = request.current_page
|
|
7429
|
+
if not UtilClient.is_unset(request.data_type):
|
|
7430
|
+
query['DataType'] = request.data_type
|
|
6439
7431
|
if not UtilClient.is_unset(request.domain):
|
|
6440
7432
|
query['Domain'] = request.domain
|
|
6441
7433
|
if not UtilClient.is_unset(request.end_time):
|
|
6442
7434
|
query['EndTime'] = request.end_time
|
|
7435
|
+
if not UtilClient.is_unset(request.is_aitraffic):
|
|
7436
|
+
query['IsAITraffic'] = request.is_aitraffic
|
|
6443
7437
|
if not UtilClient.is_unset(request.lang):
|
|
6444
7438
|
query['Lang'] = request.lang
|
|
6445
7439
|
if not UtilClient.is_unset(request.order):
|
|
@@ -6901,99 +7895,375 @@ class Client(OpenApiClient):
|
|
|
6901
7895
|
query=OpenApiUtilClient.query(query)
|
|
6902
7896
|
)
|
|
6903
7897
|
params = open_api_models.Params(
|
|
6904
|
-
action='DescribePostpayTrafficTotal',
|
|
7898
|
+
action='DescribePostpayTrafficTotal',
|
|
7899
|
+
version='2017-12-07',
|
|
7900
|
+
protocol='HTTPS',
|
|
7901
|
+
pathname='/',
|
|
7902
|
+
method='POST',
|
|
7903
|
+
auth_type='AK',
|
|
7904
|
+
style='RPC',
|
|
7905
|
+
req_body_type='formData',
|
|
7906
|
+
body_type='json'
|
|
7907
|
+
)
|
|
7908
|
+
return TeaCore.from_map(
|
|
7909
|
+
cloudfw_20171207_models.DescribePostpayTrafficTotalResponse(),
|
|
7910
|
+
self.call_api(params, req, runtime)
|
|
7911
|
+
)
|
|
7912
|
+
|
|
7913
|
+
async def describe_postpay_traffic_total_with_options_async(
|
|
7914
|
+
self,
|
|
7915
|
+
request: cloudfw_20171207_models.DescribePostpayTrafficTotalRequest,
|
|
7916
|
+
runtime: util_models.RuntimeOptions,
|
|
7917
|
+
) -> cloudfw_20171207_models.DescribePostpayTrafficTotalResponse:
|
|
7918
|
+
"""
|
|
7919
|
+
@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.
|
|
7920
|
+
|
|
7921
|
+
@description You can call this operation to query statistics of the current Cloud Firewall from the date of purchase.
|
|
7922
|
+
|
|
7923
|
+
@param request: DescribePostpayTrafficTotalRequest
|
|
7924
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
7925
|
+
@return: DescribePostpayTrafficTotalResponse
|
|
7926
|
+
"""
|
|
7927
|
+
UtilClient.validate_model(request)
|
|
7928
|
+
query = {}
|
|
7929
|
+
if not UtilClient.is_unset(request.lang):
|
|
7930
|
+
query['Lang'] = request.lang
|
|
7931
|
+
req = open_api_models.OpenApiRequest(
|
|
7932
|
+
query=OpenApiUtilClient.query(query)
|
|
7933
|
+
)
|
|
7934
|
+
params = open_api_models.Params(
|
|
7935
|
+
action='DescribePostpayTrafficTotal',
|
|
7936
|
+
version='2017-12-07',
|
|
7937
|
+
protocol='HTTPS',
|
|
7938
|
+
pathname='/',
|
|
7939
|
+
method='POST',
|
|
7940
|
+
auth_type='AK',
|
|
7941
|
+
style='RPC',
|
|
7942
|
+
req_body_type='formData',
|
|
7943
|
+
body_type='json'
|
|
7944
|
+
)
|
|
7945
|
+
return TeaCore.from_map(
|
|
7946
|
+
cloudfw_20171207_models.DescribePostpayTrafficTotalResponse(),
|
|
7947
|
+
await self.call_api_async(params, req, runtime)
|
|
7948
|
+
)
|
|
7949
|
+
|
|
7950
|
+
def describe_postpay_traffic_total(
|
|
7951
|
+
self,
|
|
7952
|
+
request: cloudfw_20171207_models.DescribePostpayTrafficTotalRequest,
|
|
7953
|
+
) -> cloudfw_20171207_models.DescribePostpayTrafficTotalResponse:
|
|
7954
|
+
"""
|
|
7955
|
+
@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.
|
|
7956
|
+
|
|
7957
|
+
@description You can call this operation to query statistics of the current Cloud Firewall from the date of purchase.
|
|
7958
|
+
|
|
7959
|
+
@param request: DescribePostpayTrafficTotalRequest
|
|
7960
|
+
@return: DescribePostpayTrafficTotalResponse
|
|
7961
|
+
"""
|
|
7962
|
+
runtime = util_models.RuntimeOptions()
|
|
7963
|
+
return self.describe_postpay_traffic_total_with_options(request, runtime)
|
|
7964
|
+
|
|
7965
|
+
async def describe_postpay_traffic_total_async(
|
|
7966
|
+
self,
|
|
7967
|
+
request: cloudfw_20171207_models.DescribePostpayTrafficTotalRequest,
|
|
7968
|
+
) -> cloudfw_20171207_models.DescribePostpayTrafficTotalResponse:
|
|
7969
|
+
"""
|
|
7970
|
+
@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.
|
|
7971
|
+
|
|
7972
|
+
@description You can call this operation to query statistics of the current Cloud Firewall from the date of purchase.
|
|
7973
|
+
|
|
7974
|
+
@param request: DescribePostpayTrafficTotalRequest
|
|
7975
|
+
@return: DescribePostpayTrafficTotalResponse
|
|
7976
|
+
"""
|
|
7977
|
+
runtime = util_models.RuntimeOptions()
|
|
7978
|
+
return await self.describe_postpay_traffic_total_with_options_async(request, runtime)
|
|
7979
|
+
|
|
7980
|
+
def describe_prefix_lists_with_options(
|
|
7981
|
+
self,
|
|
7982
|
+
request: cloudfw_20171207_models.DescribePrefixListsRequest,
|
|
7983
|
+
runtime: util_models.RuntimeOptions,
|
|
7984
|
+
) -> cloudfw_20171207_models.DescribePrefixListsResponse:
|
|
7985
|
+
"""
|
|
7986
|
+
@summary Queries prefix lists.
|
|
7987
|
+
|
|
7988
|
+
@param request: DescribePrefixListsRequest
|
|
7989
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
7990
|
+
@return: DescribePrefixListsResponse
|
|
7991
|
+
"""
|
|
7992
|
+
UtilClient.validate_model(request)
|
|
7993
|
+
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
7994
|
+
req = open_api_models.OpenApiRequest(
|
|
7995
|
+
query=OpenApiUtilClient.query(query)
|
|
7996
|
+
)
|
|
7997
|
+
params = open_api_models.Params(
|
|
7998
|
+
action='DescribePrefixLists',
|
|
7999
|
+
version='2017-12-07',
|
|
8000
|
+
protocol='HTTPS',
|
|
8001
|
+
pathname='/',
|
|
8002
|
+
method='GET',
|
|
8003
|
+
auth_type='AK',
|
|
8004
|
+
style='RPC',
|
|
8005
|
+
req_body_type='formData',
|
|
8006
|
+
body_type='json'
|
|
8007
|
+
)
|
|
8008
|
+
return TeaCore.from_map(
|
|
8009
|
+
cloudfw_20171207_models.DescribePrefixListsResponse(),
|
|
8010
|
+
self.call_api(params, req, runtime)
|
|
8011
|
+
)
|
|
8012
|
+
|
|
8013
|
+
async def describe_prefix_lists_with_options_async(
|
|
8014
|
+
self,
|
|
8015
|
+
request: cloudfw_20171207_models.DescribePrefixListsRequest,
|
|
8016
|
+
runtime: util_models.RuntimeOptions,
|
|
8017
|
+
) -> cloudfw_20171207_models.DescribePrefixListsResponse:
|
|
8018
|
+
"""
|
|
8019
|
+
@summary Queries prefix lists.
|
|
8020
|
+
|
|
8021
|
+
@param request: DescribePrefixListsRequest
|
|
8022
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
8023
|
+
@return: DescribePrefixListsResponse
|
|
8024
|
+
"""
|
|
8025
|
+
UtilClient.validate_model(request)
|
|
8026
|
+
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
8027
|
+
req = open_api_models.OpenApiRequest(
|
|
8028
|
+
query=OpenApiUtilClient.query(query)
|
|
8029
|
+
)
|
|
8030
|
+
params = open_api_models.Params(
|
|
8031
|
+
action='DescribePrefixLists',
|
|
8032
|
+
version='2017-12-07',
|
|
8033
|
+
protocol='HTTPS',
|
|
8034
|
+
pathname='/',
|
|
8035
|
+
method='GET',
|
|
8036
|
+
auth_type='AK',
|
|
8037
|
+
style='RPC',
|
|
8038
|
+
req_body_type='formData',
|
|
8039
|
+
body_type='json'
|
|
8040
|
+
)
|
|
8041
|
+
return TeaCore.from_map(
|
|
8042
|
+
cloudfw_20171207_models.DescribePrefixListsResponse(),
|
|
8043
|
+
await self.call_api_async(params, req, runtime)
|
|
8044
|
+
)
|
|
8045
|
+
|
|
8046
|
+
def describe_prefix_lists(
|
|
8047
|
+
self,
|
|
8048
|
+
request: cloudfw_20171207_models.DescribePrefixListsRequest,
|
|
8049
|
+
) -> cloudfw_20171207_models.DescribePrefixListsResponse:
|
|
8050
|
+
"""
|
|
8051
|
+
@summary Queries prefix lists.
|
|
8052
|
+
|
|
8053
|
+
@param request: DescribePrefixListsRequest
|
|
8054
|
+
@return: DescribePrefixListsResponse
|
|
8055
|
+
"""
|
|
8056
|
+
runtime = util_models.RuntimeOptions()
|
|
8057
|
+
return self.describe_prefix_lists_with_options(request, runtime)
|
|
8058
|
+
|
|
8059
|
+
async def describe_prefix_lists_async(
|
|
8060
|
+
self,
|
|
8061
|
+
request: cloudfw_20171207_models.DescribePrefixListsRequest,
|
|
8062
|
+
) -> cloudfw_20171207_models.DescribePrefixListsResponse:
|
|
8063
|
+
"""
|
|
8064
|
+
@summary Queries prefix lists.
|
|
8065
|
+
|
|
8066
|
+
@param request: DescribePrefixListsRequest
|
|
8067
|
+
@return: DescribePrefixListsResponse
|
|
8068
|
+
"""
|
|
8069
|
+
runtime = util_models.RuntimeOptions()
|
|
8070
|
+
return await self.describe_prefix_lists_with_options_async(request, runtime)
|
|
8071
|
+
|
|
8072
|
+
def describe_private_dns_domain_name_list_with_options(
|
|
8073
|
+
self,
|
|
8074
|
+
request: cloudfw_20171207_models.DescribePrivateDnsDomainNameListRequest,
|
|
8075
|
+
runtime: util_models.RuntimeOptions,
|
|
8076
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsDomainNameListResponse:
|
|
8077
|
+
"""
|
|
8078
|
+
@summary 查询私网DNS域名列表
|
|
8079
|
+
|
|
8080
|
+
@param request: DescribePrivateDnsDomainNameListRequest
|
|
8081
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
8082
|
+
@return: DescribePrivateDnsDomainNameListResponse
|
|
8083
|
+
"""
|
|
8084
|
+
UtilClient.validate_model(request)
|
|
8085
|
+
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
8086
|
+
req = open_api_models.OpenApiRequest(
|
|
8087
|
+
query=OpenApiUtilClient.query(query)
|
|
8088
|
+
)
|
|
8089
|
+
params = open_api_models.Params(
|
|
8090
|
+
action='DescribePrivateDnsDomainNameList',
|
|
8091
|
+
version='2017-12-07',
|
|
8092
|
+
protocol='HTTPS',
|
|
8093
|
+
pathname='/',
|
|
8094
|
+
method='GET',
|
|
8095
|
+
auth_type='AK',
|
|
8096
|
+
style='RPC',
|
|
8097
|
+
req_body_type='formData',
|
|
8098
|
+
body_type='json'
|
|
8099
|
+
)
|
|
8100
|
+
return TeaCore.from_map(
|
|
8101
|
+
cloudfw_20171207_models.DescribePrivateDnsDomainNameListResponse(),
|
|
8102
|
+
self.call_api(params, req, runtime)
|
|
8103
|
+
)
|
|
8104
|
+
|
|
8105
|
+
async def describe_private_dns_domain_name_list_with_options_async(
|
|
8106
|
+
self,
|
|
8107
|
+
request: cloudfw_20171207_models.DescribePrivateDnsDomainNameListRequest,
|
|
8108
|
+
runtime: util_models.RuntimeOptions,
|
|
8109
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsDomainNameListResponse:
|
|
8110
|
+
"""
|
|
8111
|
+
@summary 查询私网DNS域名列表
|
|
8112
|
+
|
|
8113
|
+
@param request: DescribePrivateDnsDomainNameListRequest
|
|
8114
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
8115
|
+
@return: DescribePrivateDnsDomainNameListResponse
|
|
8116
|
+
"""
|
|
8117
|
+
UtilClient.validate_model(request)
|
|
8118
|
+
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
8119
|
+
req = open_api_models.OpenApiRequest(
|
|
8120
|
+
query=OpenApiUtilClient.query(query)
|
|
8121
|
+
)
|
|
8122
|
+
params = open_api_models.Params(
|
|
8123
|
+
action='DescribePrivateDnsDomainNameList',
|
|
8124
|
+
version='2017-12-07',
|
|
8125
|
+
protocol='HTTPS',
|
|
8126
|
+
pathname='/',
|
|
8127
|
+
method='GET',
|
|
8128
|
+
auth_type='AK',
|
|
8129
|
+
style='RPC',
|
|
8130
|
+
req_body_type='formData',
|
|
8131
|
+
body_type='json'
|
|
8132
|
+
)
|
|
8133
|
+
return TeaCore.from_map(
|
|
8134
|
+
cloudfw_20171207_models.DescribePrivateDnsDomainNameListResponse(),
|
|
8135
|
+
await self.call_api_async(params, req, runtime)
|
|
8136
|
+
)
|
|
8137
|
+
|
|
8138
|
+
def describe_private_dns_domain_name_list(
|
|
8139
|
+
self,
|
|
8140
|
+
request: cloudfw_20171207_models.DescribePrivateDnsDomainNameListRequest,
|
|
8141
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsDomainNameListResponse:
|
|
8142
|
+
"""
|
|
8143
|
+
@summary 查询私网DNS域名列表
|
|
8144
|
+
|
|
8145
|
+
@param request: DescribePrivateDnsDomainNameListRequest
|
|
8146
|
+
@return: DescribePrivateDnsDomainNameListResponse
|
|
8147
|
+
"""
|
|
8148
|
+
runtime = util_models.RuntimeOptions()
|
|
8149
|
+
return self.describe_private_dns_domain_name_list_with_options(request, runtime)
|
|
8150
|
+
|
|
8151
|
+
async def describe_private_dns_domain_name_list_async(
|
|
8152
|
+
self,
|
|
8153
|
+
request: cloudfw_20171207_models.DescribePrivateDnsDomainNameListRequest,
|
|
8154
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsDomainNameListResponse:
|
|
8155
|
+
"""
|
|
8156
|
+
@summary 查询私网DNS域名列表
|
|
8157
|
+
|
|
8158
|
+
@param request: DescribePrivateDnsDomainNameListRequest
|
|
8159
|
+
@return: DescribePrivateDnsDomainNameListResponse
|
|
8160
|
+
"""
|
|
8161
|
+
runtime = util_models.RuntimeOptions()
|
|
8162
|
+
return await self.describe_private_dns_domain_name_list_with_options_async(request, runtime)
|
|
8163
|
+
|
|
8164
|
+
def describe_private_dns_endpoint_detail_with_options(
|
|
8165
|
+
self,
|
|
8166
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointDetailRequest,
|
|
8167
|
+
runtime: util_models.RuntimeOptions,
|
|
8168
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointDetailResponse:
|
|
8169
|
+
"""
|
|
8170
|
+
@summary 查询私网DNS终端节点详情
|
|
8171
|
+
|
|
8172
|
+
@param request: DescribePrivateDnsEndpointDetailRequest
|
|
8173
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
8174
|
+
@return: DescribePrivateDnsEndpointDetailResponse
|
|
8175
|
+
"""
|
|
8176
|
+
UtilClient.validate_model(request)
|
|
8177
|
+
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
8178
|
+
req = open_api_models.OpenApiRequest(
|
|
8179
|
+
query=OpenApiUtilClient.query(query)
|
|
8180
|
+
)
|
|
8181
|
+
params = open_api_models.Params(
|
|
8182
|
+
action='DescribePrivateDnsEndpointDetail',
|
|
6905
8183
|
version='2017-12-07',
|
|
6906
8184
|
protocol='HTTPS',
|
|
6907
8185
|
pathname='/',
|
|
6908
|
-
method='
|
|
8186
|
+
method='GET',
|
|
6909
8187
|
auth_type='AK',
|
|
6910
8188
|
style='RPC',
|
|
6911
8189
|
req_body_type='formData',
|
|
6912
8190
|
body_type='json'
|
|
6913
8191
|
)
|
|
6914
8192
|
return TeaCore.from_map(
|
|
6915
|
-
cloudfw_20171207_models.
|
|
8193
|
+
cloudfw_20171207_models.DescribePrivateDnsEndpointDetailResponse(),
|
|
6916
8194
|
self.call_api(params, req, runtime)
|
|
6917
8195
|
)
|
|
6918
8196
|
|
|
6919
|
-
async def
|
|
8197
|
+
async def describe_private_dns_endpoint_detail_with_options_async(
|
|
6920
8198
|
self,
|
|
6921
|
-
request: cloudfw_20171207_models.
|
|
8199
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointDetailRequest,
|
|
6922
8200
|
runtime: util_models.RuntimeOptions,
|
|
6923
|
-
) -> cloudfw_20171207_models.
|
|
8201
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointDetailResponse:
|
|
6924
8202
|
"""
|
|
6925
|
-
@summary
|
|
6926
|
-
|
|
6927
|
-
@description You can call this operation to query statistics of the current Cloud Firewall from the date of purchase.
|
|
8203
|
+
@summary 查询私网DNS终端节点详情
|
|
6928
8204
|
|
|
6929
|
-
@param request:
|
|
8205
|
+
@param request: DescribePrivateDnsEndpointDetailRequest
|
|
6930
8206
|
@param runtime: runtime options for this request RuntimeOptions
|
|
6931
|
-
@return:
|
|
8207
|
+
@return: DescribePrivateDnsEndpointDetailResponse
|
|
6932
8208
|
"""
|
|
6933
8209
|
UtilClient.validate_model(request)
|
|
6934
|
-
query =
|
|
6935
|
-
if not UtilClient.is_unset(request.lang):
|
|
6936
|
-
query['Lang'] = request.lang
|
|
8210
|
+
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
6937
8211
|
req = open_api_models.OpenApiRequest(
|
|
6938
8212
|
query=OpenApiUtilClient.query(query)
|
|
6939
8213
|
)
|
|
6940
8214
|
params = open_api_models.Params(
|
|
6941
|
-
action='
|
|
8215
|
+
action='DescribePrivateDnsEndpointDetail',
|
|
6942
8216
|
version='2017-12-07',
|
|
6943
8217
|
protocol='HTTPS',
|
|
6944
8218
|
pathname='/',
|
|
6945
|
-
method='
|
|
8219
|
+
method='GET',
|
|
6946
8220
|
auth_type='AK',
|
|
6947
8221
|
style='RPC',
|
|
6948
8222
|
req_body_type='formData',
|
|
6949
8223
|
body_type='json'
|
|
6950
8224
|
)
|
|
6951
8225
|
return TeaCore.from_map(
|
|
6952
|
-
cloudfw_20171207_models.
|
|
8226
|
+
cloudfw_20171207_models.DescribePrivateDnsEndpointDetailResponse(),
|
|
6953
8227
|
await self.call_api_async(params, req, runtime)
|
|
6954
8228
|
)
|
|
6955
8229
|
|
|
6956
|
-
def
|
|
8230
|
+
def describe_private_dns_endpoint_detail(
|
|
6957
8231
|
self,
|
|
6958
|
-
request: cloudfw_20171207_models.
|
|
6959
|
-
) -> cloudfw_20171207_models.
|
|
8232
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointDetailRequest,
|
|
8233
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointDetailResponse:
|
|
6960
8234
|
"""
|
|
6961
|
-
@summary
|
|
6962
|
-
|
|
6963
|
-
@description You can call this operation to query statistics of the current Cloud Firewall from the date of purchase.
|
|
8235
|
+
@summary 查询私网DNS终端节点详情
|
|
6964
8236
|
|
|
6965
|
-
@param request:
|
|
6966
|
-
@return:
|
|
8237
|
+
@param request: DescribePrivateDnsEndpointDetailRequest
|
|
8238
|
+
@return: DescribePrivateDnsEndpointDetailResponse
|
|
6967
8239
|
"""
|
|
6968
8240
|
runtime = util_models.RuntimeOptions()
|
|
6969
|
-
return self.
|
|
8241
|
+
return self.describe_private_dns_endpoint_detail_with_options(request, runtime)
|
|
6970
8242
|
|
|
6971
|
-
async def
|
|
8243
|
+
async def describe_private_dns_endpoint_detail_async(
|
|
6972
8244
|
self,
|
|
6973
|
-
request: cloudfw_20171207_models.
|
|
6974
|
-
) -> cloudfw_20171207_models.
|
|
8245
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointDetailRequest,
|
|
8246
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointDetailResponse:
|
|
6975
8247
|
"""
|
|
6976
|
-
@summary
|
|
6977
|
-
|
|
6978
|
-
@description You can call this operation to query statistics of the current Cloud Firewall from the date of purchase.
|
|
8248
|
+
@summary 查询私网DNS终端节点详情
|
|
6979
8249
|
|
|
6980
|
-
@param request:
|
|
6981
|
-
@return:
|
|
8250
|
+
@param request: DescribePrivateDnsEndpointDetailRequest
|
|
8251
|
+
@return: DescribePrivateDnsEndpointDetailResponse
|
|
6982
8252
|
"""
|
|
6983
8253
|
runtime = util_models.RuntimeOptions()
|
|
6984
|
-
return await self.
|
|
8254
|
+
return await self.describe_private_dns_endpoint_detail_with_options_async(request, runtime)
|
|
6985
8255
|
|
|
6986
|
-
def
|
|
8256
|
+
def describe_private_dns_endpoint_list_with_options(
|
|
6987
8257
|
self,
|
|
6988
|
-
request: cloudfw_20171207_models.
|
|
8258
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointListRequest,
|
|
6989
8259
|
runtime: util_models.RuntimeOptions,
|
|
6990
|
-
) -> cloudfw_20171207_models.
|
|
8260
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointListResponse:
|
|
6991
8261
|
"""
|
|
6992
|
-
@summary
|
|
8262
|
+
@summary 查询私网DNS终端节点列表
|
|
6993
8263
|
|
|
6994
|
-
@param request:
|
|
8264
|
+
@param request: DescribePrivateDnsEndpointListRequest
|
|
6995
8265
|
@param runtime: runtime options for this request RuntimeOptions
|
|
6996
|
-
@return:
|
|
8266
|
+
@return: DescribePrivateDnsEndpointListResponse
|
|
6997
8267
|
"""
|
|
6998
8268
|
UtilClient.validate_model(request)
|
|
6999
8269
|
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
@@ -7001,7 +8271,7 @@ class Client(OpenApiClient):
|
|
|
7001
8271
|
query=OpenApiUtilClient.query(query)
|
|
7002
8272
|
)
|
|
7003
8273
|
params = open_api_models.Params(
|
|
7004
|
-
action='
|
|
8274
|
+
action='DescribePrivateDnsEndpointList',
|
|
7005
8275
|
version='2017-12-07',
|
|
7006
8276
|
protocol='HTTPS',
|
|
7007
8277
|
pathname='/',
|
|
@@ -7012,21 +8282,21 @@ class Client(OpenApiClient):
|
|
|
7012
8282
|
body_type='json'
|
|
7013
8283
|
)
|
|
7014
8284
|
return TeaCore.from_map(
|
|
7015
|
-
cloudfw_20171207_models.
|
|
8285
|
+
cloudfw_20171207_models.DescribePrivateDnsEndpointListResponse(),
|
|
7016
8286
|
self.call_api(params, req, runtime)
|
|
7017
8287
|
)
|
|
7018
8288
|
|
|
7019
|
-
async def
|
|
8289
|
+
async def describe_private_dns_endpoint_list_with_options_async(
|
|
7020
8290
|
self,
|
|
7021
|
-
request: cloudfw_20171207_models.
|
|
8291
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointListRequest,
|
|
7022
8292
|
runtime: util_models.RuntimeOptions,
|
|
7023
|
-
) -> cloudfw_20171207_models.
|
|
8293
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointListResponse:
|
|
7024
8294
|
"""
|
|
7025
|
-
@summary
|
|
8295
|
+
@summary 查询私网DNS终端节点列表
|
|
7026
8296
|
|
|
7027
|
-
@param request:
|
|
8297
|
+
@param request: DescribePrivateDnsEndpointListRequest
|
|
7028
8298
|
@param runtime: runtime options for this request RuntimeOptions
|
|
7029
|
-
@return:
|
|
8299
|
+
@return: DescribePrivateDnsEndpointListResponse
|
|
7030
8300
|
"""
|
|
7031
8301
|
UtilClient.validate_model(request)
|
|
7032
8302
|
query = OpenApiUtilClient.query(UtilClient.to_map(request))
|
|
@@ -7034,7 +8304,7 @@ class Client(OpenApiClient):
|
|
|
7034
8304
|
query=OpenApiUtilClient.query(query)
|
|
7035
8305
|
)
|
|
7036
8306
|
params = open_api_models.Params(
|
|
7037
|
-
action='
|
|
8307
|
+
action='DescribePrivateDnsEndpointList',
|
|
7038
8308
|
version='2017-12-07',
|
|
7039
8309
|
protocol='HTTPS',
|
|
7040
8310
|
pathname='/',
|
|
@@ -7045,35 +8315,35 @@ class Client(OpenApiClient):
|
|
|
7045
8315
|
body_type='json'
|
|
7046
8316
|
)
|
|
7047
8317
|
return TeaCore.from_map(
|
|
7048
|
-
cloudfw_20171207_models.
|
|
8318
|
+
cloudfw_20171207_models.DescribePrivateDnsEndpointListResponse(),
|
|
7049
8319
|
await self.call_api_async(params, req, runtime)
|
|
7050
8320
|
)
|
|
7051
8321
|
|
|
7052
|
-
def
|
|
8322
|
+
def describe_private_dns_endpoint_list(
|
|
7053
8323
|
self,
|
|
7054
|
-
request: cloudfw_20171207_models.
|
|
7055
|
-
) -> cloudfw_20171207_models.
|
|
8324
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointListRequest,
|
|
8325
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointListResponse:
|
|
7056
8326
|
"""
|
|
7057
|
-
@summary
|
|
8327
|
+
@summary 查询私网DNS终端节点列表
|
|
7058
8328
|
|
|
7059
|
-
@param request:
|
|
7060
|
-
@return:
|
|
8329
|
+
@param request: DescribePrivateDnsEndpointListRequest
|
|
8330
|
+
@return: DescribePrivateDnsEndpointListResponse
|
|
7061
8331
|
"""
|
|
7062
8332
|
runtime = util_models.RuntimeOptions()
|
|
7063
|
-
return self.
|
|
8333
|
+
return self.describe_private_dns_endpoint_list_with_options(request, runtime)
|
|
7064
8334
|
|
|
7065
|
-
async def
|
|
8335
|
+
async def describe_private_dns_endpoint_list_async(
|
|
7066
8336
|
self,
|
|
7067
|
-
request: cloudfw_20171207_models.
|
|
7068
|
-
) -> cloudfw_20171207_models.
|
|
8337
|
+
request: cloudfw_20171207_models.DescribePrivateDnsEndpointListRequest,
|
|
8338
|
+
) -> cloudfw_20171207_models.DescribePrivateDnsEndpointListResponse:
|
|
7069
8339
|
"""
|
|
7070
|
-
@summary
|
|
8340
|
+
@summary 查询私网DNS终端节点列表
|
|
7071
8341
|
|
|
7072
|
-
@param request:
|
|
7073
|
-
@return:
|
|
8342
|
+
@param request: DescribePrivateDnsEndpointListRequest
|
|
8343
|
+
@return: DescribePrivateDnsEndpointListResponse
|
|
7074
8344
|
"""
|
|
7075
8345
|
runtime = util_models.RuntimeOptions()
|
|
7076
|
-
return await self.
|
|
8346
|
+
return await self.describe_private_dns_endpoint_list_with_options_async(request, runtime)
|
|
7077
8347
|
|
|
7078
8348
|
def describe_risk_event_group_with_options(
|
|
7079
8349
|
self,
|
|
@@ -7095,6 +8365,8 @@ class Client(OpenApiClient):
|
|
|
7095
8365
|
query = {}
|
|
7096
8366
|
if not UtilClient.is_unset(request.attack_app):
|
|
7097
8367
|
query['AttackApp'] = request.attack_app
|
|
8368
|
+
if not UtilClient.is_unset(request.attack_app_category):
|
|
8369
|
+
query['AttackAppCategory'] = request.attack_app_category
|
|
7098
8370
|
if not UtilClient.is_unset(request.attack_type):
|
|
7099
8371
|
query['AttackType'] = request.attack_type
|
|
7100
8372
|
if not UtilClient.is_unset(request.buy_version):
|
|
@@ -7180,6 +8452,8 @@ class Client(OpenApiClient):
|
|
|
7180
8452
|
query = {}
|
|
7181
8453
|
if not UtilClient.is_unset(request.attack_app):
|
|
7182
8454
|
query['AttackApp'] = request.attack_app
|
|
8455
|
+
if not UtilClient.is_unset(request.attack_app_category):
|
|
8456
|
+
query['AttackAppCategory'] = request.attack_app_category
|
|
7183
8457
|
if not UtilClient.is_unset(request.attack_type):
|
|
7184
8458
|
query['AttackType'] = request.attack_type
|
|
7185
8459
|
if not UtilClient.is_unset(request.buy_version):
|
|
@@ -10425,6 +11699,106 @@ class Client(OpenApiClient):
|
|
|
10425
11699
|
runtime = util_models.RuntimeOptions()
|
|
10426
11700
|
return await self.modify_control_policy_position_with_options_async(request, runtime)
|
|
10427
11701
|
|
|
11702
|
+
def modify_control_policy_priority_with_options(
|
|
11703
|
+
self,
|
|
11704
|
+
request: cloudfw_20171207_models.ModifyControlPolicyPriorityRequest,
|
|
11705
|
+
runtime: util_models.RuntimeOptions,
|
|
11706
|
+
) -> cloudfw_20171207_models.ModifyControlPolicyPriorityResponse:
|
|
11707
|
+
"""
|
|
11708
|
+
@summary Modifies the priority of an access control policy.
|
|
11709
|
+
|
|
11710
|
+
@param request: ModifyControlPolicyPriorityRequest
|
|
11711
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11712
|
+
@return: ModifyControlPolicyPriorityResponse
|
|
11713
|
+
"""
|
|
11714
|
+
UtilClient.validate_model(request)
|
|
11715
|
+
query = {}
|
|
11716
|
+
if not UtilClient.is_unset(request.acl_uuid):
|
|
11717
|
+
query['AclUuid'] = request.acl_uuid
|
|
11718
|
+
if not UtilClient.is_unset(request.order):
|
|
11719
|
+
query['Order'] = request.order
|
|
11720
|
+
req = open_api_models.OpenApiRequest(
|
|
11721
|
+
query=OpenApiUtilClient.query(query)
|
|
11722
|
+
)
|
|
11723
|
+
params = open_api_models.Params(
|
|
11724
|
+
action='ModifyControlPolicyPriority',
|
|
11725
|
+
version='2017-12-07',
|
|
11726
|
+
protocol='HTTPS',
|
|
11727
|
+
pathname='/',
|
|
11728
|
+
method='POST',
|
|
11729
|
+
auth_type='AK',
|
|
11730
|
+
style='RPC',
|
|
11731
|
+
req_body_type='formData',
|
|
11732
|
+
body_type='json'
|
|
11733
|
+
)
|
|
11734
|
+
return TeaCore.from_map(
|
|
11735
|
+
cloudfw_20171207_models.ModifyControlPolicyPriorityResponse(),
|
|
11736
|
+
self.call_api(params, req, runtime)
|
|
11737
|
+
)
|
|
11738
|
+
|
|
11739
|
+
async def modify_control_policy_priority_with_options_async(
|
|
11740
|
+
self,
|
|
11741
|
+
request: cloudfw_20171207_models.ModifyControlPolicyPriorityRequest,
|
|
11742
|
+
runtime: util_models.RuntimeOptions,
|
|
11743
|
+
) -> cloudfw_20171207_models.ModifyControlPolicyPriorityResponse:
|
|
11744
|
+
"""
|
|
11745
|
+
@summary Modifies the priority of an access control policy.
|
|
11746
|
+
|
|
11747
|
+
@param request: ModifyControlPolicyPriorityRequest
|
|
11748
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11749
|
+
@return: ModifyControlPolicyPriorityResponse
|
|
11750
|
+
"""
|
|
11751
|
+
UtilClient.validate_model(request)
|
|
11752
|
+
query = {}
|
|
11753
|
+
if not UtilClient.is_unset(request.acl_uuid):
|
|
11754
|
+
query['AclUuid'] = request.acl_uuid
|
|
11755
|
+
if not UtilClient.is_unset(request.order):
|
|
11756
|
+
query['Order'] = request.order
|
|
11757
|
+
req = open_api_models.OpenApiRequest(
|
|
11758
|
+
query=OpenApiUtilClient.query(query)
|
|
11759
|
+
)
|
|
11760
|
+
params = open_api_models.Params(
|
|
11761
|
+
action='ModifyControlPolicyPriority',
|
|
11762
|
+
version='2017-12-07',
|
|
11763
|
+
protocol='HTTPS',
|
|
11764
|
+
pathname='/',
|
|
11765
|
+
method='POST',
|
|
11766
|
+
auth_type='AK',
|
|
11767
|
+
style='RPC',
|
|
11768
|
+
req_body_type='formData',
|
|
11769
|
+
body_type='json'
|
|
11770
|
+
)
|
|
11771
|
+
return TeaCore.from_map(
|
|
11772
|
+
cloudfw_20171207_models.ModifyControlPolicyPriorityResponse(),
|
|
11773
|
+
await self.call_api_async(params, req, runtime)
|
|
11774
|
+
)
|
|
11775
|
+
|
|
11776
|
+
def modify_control_policy_priority(
|
|
11777
|
+
self,
|
|
11778
|
+
request: cloudfw_20171207_models.ModifyControlPolicyPriorityRequest,
|
|
11779
|
+
) -> cloudfw_20171207_models.ModifyControlPolicyPriorityResponse:
|
|
11780
|
+
"""
|
|
11781
|
+
@summary Modifies the priority of an access control policy.
|
|
11782
|
+
|
|
11783
|
+
@param request: ModifyControlPolicyPriorityRequest
|
|
11784
|
+
@return: ModifyControlPolicyPriorityResponse
|
|
11785
|
+
"""
|
|
11786
|
+
runtime = util_models.RuntimeOptions()
|
|
11787
|
+
return self.modify_control_policy_priority_with_options(request, runtime)
|
|
11788
|
+
|
|
11789
|
+
async def modify_control_policy_priority_async(
|
|
11790
|
+
self,
|
|
11791
|
+
request: cloudfw_20171207_models.ModifyControlPolicyPriorityRequest,
|
|
11792
|
+
) -> cloudfw_20171207_models.ModifyControlPolicyPriorityResponse:
|
|
11793
|
+
"""
|
|
11794
|
+
@summary Modifies the priority of an access control policy.
|
|
11795
|
+
|
|
11796
|
+
@param request: ModifyControlPolicyPriorityRequest
|
|
11797
|
+
@return: ModifyControlPolicyPriorityResponse
|
|
11798
|
+
"""
|
|
11799
|
+
runtime = util_models.RuntimeOptions()
|
|
11800
|
+
return await self.modify_control_policy_priority_with_options_async(request, runtime)
|
|
11801
|
+
|
|
10428
11802
|
def modify_default_ipsconfig_with_options(
|
|
10429
11803
|
self,
|
|
10430
11804
|
request: cloudfw_20171207_models.ModifyDefaultIPSConfigRequest,
|
|
@@ -10457,7 +11831,135 @@ class Client(OpenApiClient):
|
|
|
10457
11831
|
query=OpenApiUtilClient.query(query)
|
|
10458
11832
|
)
|
|
10459
11833
|
params = open_api_models.Params(
|
|
10460
|
-
action='ModifyDefaultIPSConfig',
|
|
11834
|
+
action='ModifyDefaultIPSConfig',
|
|
11835
|
+
version='2017-12-07',
|
|
11836
|
+
protocol='HTTPS',
|
|
11837
|
+
pathname='/',
|
|
11838
|
+
method='POST',
|
|
11839
|
+
auth_type='AK',
|
|
11840
|
+
style='RPC',
|
|
11841
|
+
req_body_type='formData',
|
|
11842
|
+
body_type='json'
|
|
11843
|
+
)
|
|
11844
|
+
return TeaCore.from_map(
|
|
11845
|
+
cloudfw_20171207_models.ModifyDefaultIPSConfigResponse(),
|
|
11846
|
+
self.call_api(params, req, runtime)
|
|
11847
|
+
)
|
|
11848
|
+
|
|
11849
|
+
async def modify_default_ipsconfig_with_options_async(
|
|
11850
|
+
self,
|
|
11851
|
+
request: cloudfw_20171207_models.ModifyDefaultIPSConfigRequest,
|
|
11852
|
+
runtime: util_models.RuntimeOptions,
|
|
11853
|
+
) -> cloudfw_20171207_models.ModifyDefaultIPSConfigResponse:
|
|
11854
|
+
"""
|
|
11855
|
+
@summary Modifies the default configuration of the intrusion prevention system (IPS).
|
|
11856
|
+
|
|
11857
|
+
@param request: ModifyDefaultIPSConfigRequest
|
|
11858
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11859
|
+
@return: ModifyDefaultIPSConfigResponse
|
|
11860
|
+
"""
|
|
11861
|
+
UtilClient.validate_model(request)
|
|
11862
|
+
query = {}
|
|
11863
|
+
if not UtilClient.is_unset(request.basic_rules):
|
|
11864
|
+
query['BasicRules'] = request.basic_rules
|
|
11865
|
+
if not UtilClient.is_unset(request.cti_rules):
|
|
11866
|
+
query['CtiRules'] = request.cti_rules
|
|
11867
|
+
if not UtilClient.is_unset(request.lang):
|
|
11868
|
+
query['Lang'] = request.lang
|
|
11869
|
+
if not UtilClient.is_unset(request.max_sdl):
|
|
11870
|
+
query['MaxSdl'] = request.max_sdl
|
|
11871
|
+
if not UtilClient.is_unset(request.patch_rules):
|
|
11872
|
+
query['PatchRules'] = request.patch_rules
|
|
11873
|
+
if not UtilClient.is_unset(request.rule_class):
|
|
11874
|
+
query['RuleClass'] = request.rule_class
|
|
11875
|
+
if not UtilClient.is_unset(request.run_mode):
|
|
11876
|
+
query['RunMode'] = request.run_mode
|
|
11877
|
+
req = open_api_models.OpenApiRequest(
|
|
11878
|
+
query=OpenApiUtilClient.query(query)
|
|
11879
|
+
)
|
|
11880
|
+
params = open_api_models.Params(
|
|
11881
|
+
action='ModifyDefaultIPSConfig',
|
|
11882
|
+
version='2017-12-07',
|
|
11883
|
+
protocol='HTTPS',
|
|
11884
|
+
pathname='/',
|
|
11885
|
+
method='POST',
|
|
11886
|
+
auth_type='AK',
|
|
11887
|
+
style='RPC',
|
|
11888
|
+
req_body_type='formData',
|
|
11889
|
+
body_type='json'
|
|
11890
|
+
)
|
|
11891
|
+
return TeaCore.from_map(
|
|
11892
|
+
cloudfw_20171207_models.ModifyDefaultIPSConfigResponse(),
|
|
11893
|
+
await self.call_api_async(params, req, runtime)
|
|
11894
|
+
)
|
|
11895
|
+
|
|
11896
|
+
def modify_default_ipsconfig(
|
|
11897
|
+
self,
|
|
11898
|
+
request: cloudfw_20171207_models.ModifyDefaultIPSConfigRequest,
|
|
11899
|
+
) -> cloudfw_20171207_models.ModifyDefaultIPSConfigResponse:
|
|
11900
|
+
"""
|
|
11901
|
+
@summary Modifies the default configuration of the intrusion prevention system (IPS).
|
|
11902
|
+
|
|
11903
|
+
@param request: ModifyDefaultIPSConfigRequest
|
|
11904
|
+
@return: ModifyDefaultIPSConfigResponse
|
|
11905
|
+
"""
|
|
11906
|
+
runtime = util_models.RuntimeOptions()
|
|
11907
|
+
return self.modify_default_ipsconfig_with_options(request, runtime)
|
|
11908
|
+
|
|
11909
|
+
async def modify_default_ipsconfig_async(
|
|
11910
|
+
self,
|
|
11911
|
+
request: cloudfw_20171207_models.ModifyDefaultIPSConfigRequest,
|
|
11912
|
+
) -> cloudfw_20171207_models.ModifyDefaultIPSConfigResponse:
|
|
11913
|
+
"""
|
|
11914
|
+
@summary Modifies the default configuration of the intrusion prevention system (IPS).
|
|
11915
|
+
|
|
11916
|
+
@param request: ModifyDefaultIPSConfigRequest
|
|
11917
|
+
@return: ModifyDefaultIPSConfigResponse
|
|
11918
|
+
"""
|
|
11919
|
+
runtime = util_models.RuntimeOptions()
|
|
11920
|
+
return await self.modify_default_ipsconfig_with_options_async(request, runtime)
|
|
11921
|
+
|
|
11922
|
+
def modify_dns_firewall_policy_with_options(
|
|
11923
|
+
self,
|
|
11924
|
+
request: cloudfw_20171207_models.ModifyDnsFirewallPolicyRequest,
|
|
11925
|
+
runtime: util_models.RuntimeOptions,
|
|
11926
|
+
) -> cloudfw_20171207_models.ModifyDnsFirewallPolicyResponse:
|
|
11927
|
+
"""
|
|
11928
|
+
@summary 修改DNS防火墙规则
|
|
11929
|
+
|
|
11930
|
+
@param request: ModifyDnsFirewallPolicyRequest
|
|
11931
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11932
|
+
@return: ModifyDnsFirewallPolicyResponse
|
|
11933
|
+
"""
|
|
11934
|
+
UtilClient.validate_model(request)
|
|
11935
|
+
query = {}
|
|
11936
|
+
if not UtilClient.is_unset(request.acl_action):
|
|
11937
|
+
query['AclAction'] = request.acl_action
|
|
11938
|
+
if not UtilClient.is_unset(request.acl_uuid):
|
|
11939
|
+
query['AclUuid'] = request.acl_uuid
|
|
11940
|
+
if not UtilClient.is_unset(request.description):
|
|
11941
|
+
query['Description'] = request.description
|
|
11942
|
+
if not UtilClient.is_unset(request.destination):
|
|
11943
|
+
query['Destination'] = request.destination
|
|
11944
|
+
if not UtilClient.is_unset(request.destination_type):
|
|
11945
|
+
query['DestinationType'] = request.destination_type
|
|
11946
|
+
if not UtilClient.is_unset(request.lang):
|
|
11947
|
+
query['Lang'] = request.lang
|
|
11948
|
+
if not UtilClient.is_unset(request.priority):
|
|
11949
|
+
query['Priority'] = request.priority
|
|
11950
|
+
if not UtilClient.is_unset(request.release):
|
|
11951
|
+
query['Release'] = request.release
|
|
11952
|
+
if not UtilClient.is_unset(request.source):
|
|
11953
|
+
query['Source'] = request.source
|
|
11954
|
+
if not UtilClient.is_unset(request.source_ip):
|
|
11955
|
+
query['SourceIp'] = request.source_ip
|
|
11956
|
+
if not UtilClient.is_unset(request.source_type):
|
|
11957
|
+
query['SourceType'] = request.source_type
|
|
11958
|
+
req = open_api_models.OpenApiRequest(
|
|
11959
|
+
query=OpenApiUtilClient.query(query)
|
|
11960
|
+
)
|
|
11961
|
+
params = open_api_models.Params(
|
|
11962
|
+
action='ModifyDnsFirewallPolicy',
|
|
10461
11963
|
version='2017-12-07',
|
|
10462
11964
|
protocol='HTTPS',
|
|
10463
11965
|
pathname='/',
|
|
@@ -10468,43 +11970,51 @@ class Client(OpenApiClient):
|
|
|
10468
11970
|
body_type='json'
|
|
10469
11971
|
)
|
|
10470
11972
|
return TeaCore.from_map(
|
|
10471
|
-
cloudfw_20171207_models.
|
|
11973
|
+
cloudfw_20171207_models.ModifyDnsFirewallPolicyResponse(),
|
|
10472
11974
|
self.call_api(params, req, runtime)
|
|
10473
11975
|
)
|
|
10474
11976
|
|
|
10475
|
-
async def
|
|
11977
|
+
async def modify_dns_firewall_policy_with_options_async(
|
|
10476
11978
|
self,
|
|
10477
|
-
request: cloudfw_20171207_models.
|
|
11979
|
+
request: cloudfw_20171207_models.ModifyDnsFirewallPolicyRequest,
|
|
10478
11980
|
runtime: util_models.RuntimeOptions,
|
|
10479
|
-
) -> cloudfw_20171207_models.
|
|
11981
|
+
) -> cloudfw_20171207_models.ModifyDnsFirewallPolicyResponse:
|
|
10480
11982
|
"""
|
|
10481
|
-
@summary
|
|
11983
|
+
@summary 修改DNS防火墙规则
|
|
10482
11984
|
|
|
10483
|
-
@param request:
|
|
11985
|
+
@param request: ModifyDnsFirewallPolicyRequest
|
|
10484
11986
|
@param runtime: runtime options for this request RuntimeOptions
|
|
10485
|
-
@return:
|
|
11987
|
+
@return: ModifyDnsFirewallPolicyResponse
|
|
10486
11988
|
"""
|
|
10487
11989
|
UtilClient.validate_model(request)
|
|
10488
11990
|
query = {}
|
|
10489
|
-
if not UtilClient.is_unset(request.
|
|
10490
|
-
query['
|
|
10491
|
-
if not UtilClient.is_unset(request.
|
|
10492
|
-
query['
|
|
11991
|
+
if not UtilClient.is_unset(request.acl_action):
|
|
11992
|
+
query['AclAction'] = request.acl_action
|
|
11993
|
+
if not UtilClient.is_unset(request.acl_uuid):
|
|
11994
|
+
query['AclUuid'] = request.acl_uuid
|
|
11995
|
+
if not UtilClient.is_unset(request.description):
|
|
11996
|
+
query['Description'] = request.description
|
|
11997
|
+
if not UtilClient.is_unset(request.destination):
|
|
11998
|
+
query['Destination'] = request.destination
|
|
11999
|
+
if not UtilClient.is_unset(request.destination_type):
|
|
12000
|
+
query['DestinationType'] = request.destination_type
|
|
10493
12001
|
if not UtilClient.is_unset(request.lang):
|
|
10494
12002
|
query['Lang'] = request.lang
|
|
10495
|
-
if not UtilClient.is_unset(request.
|
|
10496
|
-
query['
|
|
10497
|
-
if not UtilClient.is_unset(request.
|
|
10498
|
-
query['
|
|
10499
|
-
if not UtilClient.is_unset(request.
|
|
10500
|
-
query['
|
|
10501
|
-
if not UtilClient.is_unset(request.
|
|
10502
|
-
query['
|
|
12003
|
+
if not UtilClient.is_unset(request.priority):
|
|
12004
|
+
query['Priority'] = request.priority
|
|
12005
|
+
if not UtilClient.is_unset(request.release):
|
|
12006
|
+
query['Release'] = request.release
|
|
12007
|
+
if not UtilClient.is_unset(request.source):
|
|
12008
|
+
query['Source'] = request.source
|
|
12009
|
+
if not UtilClient.is_unset(request.source_ip):
|
|
12010
|
+
query['SourceIp'] = request.source_ip
|
|
12011
|
+
if not UtilClient.is_unset(request.source_type):
|
|
12012
|
+
query['SourceType'] = request.source_type
|
|
10503
12013
|
req = open_api_models.OpenApiRequest(
|
|
10504
12014
|
query=OpenApiUtilClient.query(query)
|
|
10505
12015
|
)
|
|
10506
12016
|
params = open_api_models.Params(
|
|
10507
|
-
action='
|
|
12017
|
+
action='ModifyDnsFirewallPolicy',
|
|
10508
12018
|
version='2017-12-07',
|
|
10509
12019
|
protocol='HTTPS',
|
|
10510
12020
|
pathname='/',
|
|
@@ -10515,35 +12025,35 @@ class Client(OpenApiClient):
|
|
|
10515
12025
|
body_type='json'
|
|
10516
12026
|
)
|
|
10517
12027
|
return TeaCore.from_map(
|
|
10518
|
-
cloudfw_20171207_models.
|
|
12028
|
+
cloudfw_20171207_models.ModifyDnsFirewallPolicyResponse(),
|
|
10519
12029
|
await self.call_api_async(params, req, runtime)
|
|
10520
12030
|
)
|
|
10521
12031
|
|
|
10522
|
-
def
|
|
12032
|
+
def modify_dns_firewall_policy(
|
|
10523
12033
|
self,
|
|
10524
|
-
request: cloudfw_20171207_models.
|
|
10525
|
-
) -> cloudfw_20171207_models.
|
|
12034
|
+
request: cloudfw_20171207_models.ModifyDnsFirewallPolicyRequest,
|
|
12035
|
+
) -> cloudfw_20171207_models.ModifyDnsFirewallPolicyResponse:
|
|
10526
12036
|
"""
|
|
10527
|
-
@summary
|
|
12037
|
+
@summary 修改DNS防火墙规则
|
|
10528
12038
|
|
|
10529
|
-
@param request:
|
|
10530
|
-
@return:
|
|
12039
|
+
@param request: ModifyDnsFirewallPolicyRequest
|
|
12040
|
+
@return: ModifyDnsFirewallPolicyResponse
|
|
10531
12041
|
"""
|
|
10532
12042
|
runtime = util_models.RuntimeOptions()
|
|
10533
|
-
return self.
|
|
12043
|
+
return self.modify_dns_firewall_policy_with_options(request, runtime)
|
|
10534
12044
|
|
|
10535
|
-
async def
|
|
12045
|
+
async def modify_dns_firewall_policy_async(
|
|
10536
12046
|
self,
|
|
10537
|
-
request: cloudfw_20171207_models.
|
|
10538
|
-
) -> cloudfw_20171207_models.
|
|
12047
|
+
request: cloudfw_20171207_models.ModifyDnsFirewallPolicyRequest,
|
|
12048
|
+
) -> cloudfw_20171207_models.ModifyDnsFirewallPolicyResponse:
|
|
10539
12049
|
"""
|
|
10540
|
-
@summary
|
|
12050
|
+
@summary 修改DNS防火墙规则
|
|
10541
12051
|
|
|
10542
|
-
@param request:
|
|
10543
|
-
@return:
|
|
12052
|
+
@param request: ModifyDnsFirewallPolicyRequest
|
|
12053
|
+
@return: ModifyDnsFirewallPolicyResponse
|
|
10544
12054
|
"""
|
|
10545
12055
|
runtime = util_models.RuntimeOptions()
|
|
10546
|
-
return await self.
|
|
12056
|
+
return await self.modify_dns_firewall_policy_with_options_async(request, runtime)
|
|
10547
12057
|
|
|
10548
12058
|
def modify_firewall_v2route_policy_switch_with_options(
|
|
10549
12059
|
self,
|
|
@@ -11317,6 +12827,122 @@ class Client(OpenApiClient):
|
|
|
11317
12827
|
runtime = util_models.RuntimeOptions()
|
|
11318
12828
|
return await self.modify_policy_advanced_config_with_options_async(request, runtime)
|
|
11319
12829
|
|
|
12830
|
+
def modify_private_dns_endpoint_with_options(
|
|
12831
|
+
self,
|
|
12832
|
+
request: cloudfw_20171207_models.ModifyPrivateDnsEndpointRequest,
|
|
12833
|
+
runtime: util_models.RuntimeOptions,
|
|
12834
|
+
) -> cloudfw_20171207_models.ModifyPrivateDnsEndpointResponse:
|
|
12835
|
+
"""
|
|
12836
|
+
@summary 修改私网DNS终端节点
|
|
12837
|
+
|
|
12838
|
+
@param request: ModifyPrivateDnsEndpointRequest
|
|
12839
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12840
|
+
@return: ModifyPrivateDnsEndpointResponse
|
|
12841
|
+
"""
|
|
12842
|
+
UtilClient.validate_model(request)
|
|
12843
|
+
query = {}
|
|
12844
|
+
if not UtilClient.is_unset(request.access_instance_id):
|
|
12845
|
+
query['AccessInstanceId'] = request.access_instance_id
|
|
12846
|
+
if not UtilClient.is_unset(request.access_instance_name):
|
|
12847
|
+
query['AccessInstanceName'] = request.access_instance_name
|
|
12848
|
+
if not UtilClient.is_unset(request.primary_dns):
|
|
12849
|
+
query['PrimaryDns'] = request.primary_dns
|
|
12850
|
+
if not UtilClient.is_unset(request.private_dns_type):
|
|
12851
|
+
query['PrivateDnsType'] = request.private_dns_type
|
|
12852
|
+
if not UtilClient.is_unset(request.region_no):
|
|
12853
|
+
query['RegionNo'] = request.region_no
|
|
12854
|
+
if not UtilClient.is_unset(request.standby_dns):
|
|
12855
|
+
query['StandbyDns'] = request.standby_dns
|
|
12856
|
+
req = open_api_models.OpenApiRequest(
|
|
12857
|
+
query=OpenApiUtilClient.query(query)
|
|
12858
|
+
)
|
|
12859
|
+
params = open_api_models.Params(
|
|
12860
|
+
action='ModifyPrivateDnsEndpoint',
|
|
12861
|
+
version='2017-12-07',
|
|
12862
|
+
protocol='HTTPS',
|
|
12863
|
+
pathname='/',
|
|
12864
|
+
method='POST',
|
|
12865
|
+
auth_type='AK',
|
|
12866
|
+
style='RPC',
|
|
12867
|
+
req_body_type='formData',
|
|
12868
|
+
body_type='json'
|
|
12869
|
+
)
|
|
12870
|
+
return TeaCore.from_map(
|
|
12871
|
+
cloudfw_20171207_models.ModifyPrivateDnsEndpointResponse(),
|
|
12872
|
+
self.call_api(params, req, runtime)
|
|
12873
|
+
)
|
|
12874
|
+
|
|
12875
|
+
async def modify_private_dns_endpoint_with_options_async(
|
|
12876
|
+
self,
|
|
12877
|
+
request: cloudfw_20171207_models.ModifyPrivateDnsEndpointRequest,
|
|
12878
|
+
runtime: util_models.RuntimeOptions,
|
|
12879
|
+
) -> cloudfw_20171207_models.ModifyPrivateDnsEndpointResponse:
|
|
12880
|
+
"""
|
|
12881
|
+
@summary 修改私网DNS终端节点
|
|
12882
|
+
|
|
12883
|
+
@param request: ModifyPrivateDnsEndpointRequest
|
|
12884
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12885
|
+
@return: ModifyPrivateDnsEndpointResponse
|
|
12886
|
+
"""
|
|
12887
|
+
UtilClient.validate_model(request)
|
|
12888
|
+
query = {}
|
|
12889
|
+
if not UtilClient.is_unset(request.access_instance_id):
|
|
12890
|
+
query['AccessInstanceId'] = request.access_instance_id
|
|
12891
|
+
if not UtilClient.is_unset(request.access_instance_name):
|
|
12892
|
+
query['AccessInstanceName'] = request.access_instance_name
|
|
12893
|
+
if not UtilClient.is_unset(request.primary_dns):
|
|
12894
|
+
query['PrimaryDns'] = request.primary_dns
|
|
12895
|
+
if not UtilClient.is_unset(request.private_dns_type):
|
|
12896
|
+
query['PrivateDnsType'] = request.private_dns_type
|
|
12897
|
+
if not UtilClient.is_unset(request.region_no):
|
|
12898
|
+
query['RegionNo'] = request.region_no
|
|
12899
|
+
if not UtilClient.is_unset(request.standby_dns):
|
|
12900
|
+
query['StandbyDns'] = request.standby_dns
|
|
12901
|
+
req = open_api_models.OpenApiRequest(
|
|
12902
|
+
query=OpenApiUtilClient.query(query)
|
|
12903
|
+
)
|
|
12904
|
+
params = open_api_models.Params(
|
|
12905
|
+
action='ModifyPrivateDnsEndpoint',
|
|
12906
|
+
version='2017-12-07',
|
|
12907
|
+
protocol='HTTPS',
|
|
12908
|
+
pathname='/',
|
|
12909
|
+
method='POST',
|
|
12910
|
+
auth_type='AK',
|
|
12911
|
+
style='RPC',
|
|
12912
|
+
req_body_type='formData',
|
|
12913
|
+
body_type='json'
|
|
12914
|
+
)
|
|
12915
|
+
return TeaCore.from_map(
|
|
12916
|
+
cloudfw_20171207_models.ModifyPrivateDnsEndpointResponse(),
|
|
12917
|
+
await self.call_api_async(params, req, runtime)
|
|
12918
|
+
)
|
|
12919
|
+
|
|
12920
|
+
def modify_private_dns_endpoint(
|
|
12921
|
+
self,
|
|
12922
|
+
request: cloudfw_20171207_models.ModifyPrivateDnsEndpointRequest,
|
|
12923
|
+
) -> cloudfw_20171207_models.ModifyPrivateDnsEndpointResponse:
|
|
12924
|
+
"""
|
|
12925
|
+
@summary 修改私网DNS终端节点
|
|
12926
|
+
|
|
12927
|
+
@param request: ModifyPrivateDnsEndpointRequest
|
|
12928
|
+
@return: ModifyPrivateDnsEndpointResponse
|
|
12929
|
+
"""
|
|
12930
|
+
runtime = util_models.RuntimeOptions()
|
|
12931
|
+
return self.modify_private_dns_endpoint_with_options(request, runtime)
|
|
12932
|
+
|
|
12933
|
+
async def modify_private_dns_endpoint_async(
|
|
12934
|
+
self,
|
|
12935
|
+
request: cloudfw_20171207_models.ModifyPrivateDnsEndpointRequest,
|
|
12936
|
+
) -> cloudfw_20171207_models.ModifyPrivateDnsEndpointResponse:
|
|
12937
|
+
"""
|
|
12938
|
+
@summary 修改私网DNS终端节点
|
|
12939
|
+
|
|
12940
|
+
@param request: ModifyPrivateDnsEndpointRequest
|
|
12941
|
+
@return: ModifyPrivateDnsEndpointResponse
|
|
12942
|
+
"""
|
|
12943
|
+
runtime = util_models.RuntimeOptions()
|
|
12944
|
+
return await self.modify_private_dns_endpoint_with_options_async(request, runtime)
|
|
12945
|
+
|
|
11320
12946
|
def modify_tr_firewall_v2configuration_with_options(
|
|
11321
12947
|
self,
|
|
11322
12948
|
request: cloudfw_20171207_models.ModifyTrFirewallV2ConfigurationRequest,
|
|
@@ -13265,6 +14891,102 @@ class Client(OpenApiClient):
|
|
|
13265
14891
|
runtime = util_models.RuntimeOptions()
|
|
13266
14892
|
return await self.put_enable_fw_switch_with_options_async(request, runtime)
|
|
13267
14893
|
|
|
14894
|
+
def release_expired_instance_with_options(
|
|
14895
|
+
self,
|
|
14896
|
+
request: cloudfw_20171207_models.ReleaseExpiredInstanceRequest,
|
|
14897
|
+
runtime: util_models.RuntimeOptions,
|
|
14898
|
+
) -> cloudfw_20171207_models.ReleaseExpiredInstanceResponse:
|
|
14899
|
+
"""
|
|
14900
|
+
@summary 释放已过期的实例
|
|
14901
|
+
|
|
14902
|
+
@param request: ReleaseExpiredInstanceRequest
|
|
14903
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
14904
|
+
@return: ReleaseExpiredInstanceResponse
|
|
14905
|
+
"""
|
|
14906
|
+
UtilClient.validate_model(request)
|
|
14907
|
+
query = {}
|
|
14908
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
14909
|
+
query['InstanceId'] = request.instance_id
|
|
14910
|
+
req = open_api_models.OpenApiRequest(
|
|
14911
|
+
query=OpenApiUtilClient.query(query)
|
|
14912
|
+
)
|
|
14913
|
+
params = open_api_models.Params(
|
|
14914
|
+
action='ReleaseExpiredInstance',
|
|
14915
|
+
version='2017-12-07',
|
|
14916
|
+
protocol='HTTPS',
|
|
14917
|
+
pathname='/',
|
|
14918
|
+
method='POST',
|
|
14919
|
+
auth_type='AK',
|
|
14920
|
+
style='RPC',
|
|
14921
|
+
req_body_type='formData',
|
|
14922
|
+
body_type='json'
|
|
14923
|
+
)
|
|
14924
|
+
return TeaCore.from_map(
|
|
14925
|
+
cloudfw_20171207_models.ReleaseExpiredInstanceResponse(),
|
|
14926
|
+
self.call_api(params, req, runtime)
|
|
14927
|
+
)
|
|
14928
|
+
|
|
14929
|
+
async def release_expired_instance_with_options_async(
|
|
14930
|
+
self,
|
|
14931
|
+
request: cloudfw_20171207_models.ReleaseExpiredInstanceRequest,
|
|
14932
|
+
runtime: util_models.RuntimeOptions,
|
|
14933
|
+
) -> cloudfw_20171207_models.ReleaseExpiredInstanceResponse:
|
|
14934
|
+
"""
|
|
14935
|
+
@summary 释放已过期的实例
|
|
14936
|
+
|
|
14937
|
+
@param request: ReleaseExpiredInstanceRequest
|
|
14938
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
14939
|
+
@return: ReleaseExpiredInstanceResponse
|
|
14940
|
+
"""
|
|
14941
|
+
UtilClient.validate_model(request)
|
|
14942
|
+
query = {}
|
|
14943
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
14944
|
+
query['InstanceId'] = request.instance_id
|
|
14945
|
+
req = open_api_models.OpenApiRequest(
|
|
14946
|
+
query=OpenApiUtilClient.query(query)
|
|
14947
|
+
)
|
|
14948
|
+
params = open_api_models.Params(
|
|
14949
|
+
action='ReleaseExpiredInstance',
|
|
14950
|
+
version='2017-12-07',
|
|
14951
|
+
protocol='HTTPS',
|
|
14952
|
+
pathname='/',
|
|
14953
|
+
method='POST',
|
|
14954
|
+
auth_type='AK',
|
|
14955
|
+
style='RPC',
|
|
14956
|
+
req_body_type='formData',
|
|
14957
|
+
body_type='json'
|
|
14958
|
+
)
|
|
14959
|
+
return TeaCore.from_map(
|
|
14960
|
+
cloudfw_20171207_models.ReleaseExpiredInstanceResponse(),
|
|
14961
|
+
await self.call_api_async(params, req, runtime)
|
|
14962
|
+
)
|
|
14963
|
+
|
|
14964
|
+
def release_expired_instance(
|
|
14965
|
+
self,
|
|
14966
|
+
request: cloudfw_20171207_models.ReleaseExpiredInstanceRequest,
|
|
14967
|
+
) -> cloudfw_20171207_models.ReleaseExpiredInstanceResponse:
|
|
14968
|
+
"""
|
|
14969
|
+
@summary 释放已过期的实例
|
|
14970
|
+
|
|
14971
|
+
@param request: ReleaseExpiredInstanceRequest
|
|
14972
|
+
@return: ReleaseExpiredInstanceResponse
|
|
14973
|
+
"""
|
|
14974
|
+
runtime = util_models.RuntimeOptions()
|
|
14975
|
+
return self.release_expired_instance_with_options(request, runtime)
|
|
14976
|
+
|
|
14977
|
+
async def release_expired_instance_async(
|
|
14978
|
+
self,
|
|
14979
|
+
request: cloudfw_20171207_models.ReleaseExpiredInstanceRequest,
|
|
14980
|
+
) -> cloudfw_20171207_models.ReleaseExpiredInstanceResponse:
|
|
14981
|
+
"""
|
|
14982
|
+
@summary 释放已过期的实例
|
|
14983
|
+
|
|
14984
|
+
@param request: ReleaseExpiredInstanceRequest
|
|
14985
|
+
@return: ReleaseExpiredInstanceResponse
|
|
14986
|
+
"""
|
|
14987
|
+
runtime = util_models.RuntimeOptions()
|
|
14988
|
+
return await self.release_expired_instance_with_options_async(request, runtime)
|
|
14989
|
+
|
|
13268
14990
|
def release_post_instance_with_options(
|
|
13269
14991
|
self,
|
|
13270
14992
|
request: cloudfw_20171207_models.ReleasePostInstanceRequest,
|
|
@@ -13684,3 +15406,99 @@ class Client(OpenApiClient):
|
|
|
13684
15406
|
"""
|
|
13685
15407
|
runtime = util_models.RuntimeOptions()
|
|
13686
15408
|
return await self.switch_security_proxy_with_options_async(request, runtime)
|
|
15409
|
+
|
|
15410
|
+
def update_aitraffic_analysis_status_with_options(
|
|
15411
|
+
self,
|
|
15412
|
+
request: cloudfw_20171207_models.UpdateAITrafficAnalysisStatusRequest,
|
|
15413
|
+
runtime: util_models.RuntimeOptions,
|
|
15414
|
+
) -> cloudfw_20171207_models.UpdateAITrafficAnalysisStatusResponse:
|
|
15415
|
+
"""
|
|
15416
|
+
@summary 修改AI流量分析开启状态
|
|
15417
|
+
|
|
15418
|
+
@param request: UpdateAITrafficAnalysisStatusRequest
|
|
15419
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
15420
|
+
@return: UpdateAITrafficAnalysisStatusResponse
|
|
15421
|
+
"""
|
|
15422
|
+
UtilClient.validate_model(request)
|
|
15423
|
+
query = {}
|
|
15424
|
+
if not UtilClient.is_unset(request.status):
|
|
15425
|
+
query['Status'] = request.status
|
|
15426
|
+
req = open_api_models.OpenApiRequest(
|
|
15427
|
+
query=OpenApiUtilClient.query(query)
|
|
15428
|
+
)
|
|
15429
|
+
params = open_api_models.Params(
|
|
15430
|
+
action='UpdateAITrafficAnalysisStatus',
|
|
15431
|
+
version='2017-12-07',
|
|
15432
|
+
protocol='HTTPS',
|
|
15433
|
+
pathname='/',
|
|
15434
|
+
method='POST',
|
|
15435
|
+
auth_type='AK',
|
|
15436
|
+
style='RPC',
|
|
15437
|
+
req_body_type='formData',
|
|
15438
|
+
body_type='json'
|
|
15439
|
+
)
|
|
15440
|
+
return TeaCore.from_map(
|
|
15441
|
+
cloudfw_20171207_models.UpdateAITrafficAnalysisStatusResponse(),
|
|
15442
|
+
self.call_api(params, req, runtime)
|
|
15443
|
+
)
|
|
15444
|
+
|
|
15445
|
+
async def update_aitraffic_analysis_status_with_options_async(
|
|
15446
|
+
self,
|
|
15447
|
+
request: cloudfw_20171207_models.UpdateAITrafficAnalysisStatusRequest,
|
|
15448
|
+
runtime: util_models.RuntimeOptions,
|
|
15449
|
+
) -> cloudfw_20171207_models.UpdateAITrafficAnalysisStatusResponse:
|
|
15450
|
+
"""
|
|
15451
|
+
@summary 修改AI流量分析开启状态
|
|
15452
|
+
|
|
15453
|
+
@param request: UpdateAITrafficAnalysisStatusRequest
|
|
15454
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
15455
|
+
@return: UpdateAITrafficAnalysisStatusResponse
|
|
15456
|
+
"""
|
|
15457
|
+
UtilClient.validate_model(request)
|
|
15458
|
+
query = {}
|
|
15459
|
+
if not UtilClient.is_unset(request.status):
|
|
15460
|
+
query['Status'] = request.status
|
|
15461
|
+
req = open_api_models.OpenApiRequest(
|
|
15462
|
+
query=OpenApiUtilClient.query(query)
|
|
15463
|
+
)
|
|
15464
|
+
params = open_api_models.Params(
|
|
15465
|
+
action='UpdateAITrafficAnalysisStatus',
|
|
15466
|
+
version='2017-12-07',
|
|
15467
|
+
protocol='HTTPS',
|
|
15468
|
+
pathname='/',
|
|
15469
|
+
method='POST',
|
|
15470
|
+
auth_type='AK',
|
|
15471
|
+
style='RPC',
|
|
15472
|
+
req_body_type='formData',
|
|
15473
|
+
body_type='json'
|
|
15474
|
+
)
|
|
15475
|
+
return TeaCore.from_map(
|
|
15476
|
+
cloudfw_20171207_models.UpdateAITrafficAnalysisStatusResponse(),
|
|
15477
|
+
await self.call_api_async(params, req, runtime)
|
|
15478
|
+
)
|
|
15479
|
+
|
|
15480
|
+
def update_aitraffic_analysis_status(
|
|
15481
|
+
self,
|
|
15482
|
+
request: cloudfw_20171207_models.UpdateAITrafficAnalysisStatusRequest,
|
|
15483
|
+
) -> cloudfw_20171207_models.UpdateAITrafficAnalysisStatusResponse:
|
|
15484
|
+
"""
|
|
15485
|
+
@summary 修改AI流量分析开启状态
|
|
15486
|
+
|
|
15487
|
+
@param request: UpdateAITrafficAnalysisStatusRequest
|
|
15488
|
+
@return: UpdateAITrafficAnalysisStatusResponse
|
|
15489
|
+
"""
|
|
15490
|
+
runtime = util_models.RuntimeOptions()
|
|
15491
|
+
return self.update_aitraffic_analysis_status_with_options(request, runtime)
|
|
15492
|
+
|
|
15493
|
+
async def update_aitraffic_analysis_status_async(
|
|
15494
|
+
self,
|
|
15495
|
+
request: cloudfw_20171207_models.UpdateAITrafficAnalysisStatusRequest,
|
|
15496
|
+
) -> cloudfw_20171207_models.UpdateAITrafficAnalysisStatusResponse:
|
|
15497
|
+
"""
|
|
15498
|
+
@summary 修改AI流量分析开启状态
|
|
15499
|
+
|
|
15500
|
+
@param request: UpdateAITrafficAnalysisStatusRequest
|
|
15501
|
+
@return: UpdateAITrafficAnalysisStatusResponse
|
|
15502
|
+
"""
|
|
15503
|
+
runtime = util_models.RuntimeOptions()
|
|
15504
|
+
return await self.update_aitraffic_analysis_status_with_options_async(request, runtime)
|