@alicloud/cloudfw20171207 6.3.0 → 7.0.0
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.
- package/dist/client.d.ts +79 -2
- package/dist/client.js +331 -4
- package/dist/client.js.map +1 -1
- package/dist/models/ClearLogStoreStorageRequest.d.ts +18 -0
- package/dist/models/ClearLogStoreStorageRequest.js +58 -0
- package/dist/models/ClearLogStoreStorageRequest.js.map +1 -0
- package/dist/models/DescribeBatchSlsDispatchStatusResponseBody.d.ts +76 -0
- package/dist/models/DescribeBatchSlsDispatchStatusResponseBody.js +68 -1
- package/dist/models/DescribeBatchSlsDispatchStatusResponseBody.js.map +1 -1
- package/dist/models/DescribeLogStoreInfoResponseBody.d.ts +78 -0
- package/dist/models/DescribeLogStoreInfoResponseBody.js +49 -1
- package/dist/models/DescribeLogStoreInfoResponseBody.js.map +1 -1
- package/dist/models/DescribeRegionResourceTypeAutoEnableRequest.d.ts +18 -0
- package/dist/models/DescribeRegionResourceTypeAutoEnableRequest.js +58 -0
- package/dist/models/DescribeRegionResourceTypeAutoEnableRequest.js.map +1 -0
- package/dist/models/DescribeRegionResourceTypeAutoEnableResponse.d.ts +19 -0
- package/dist/models/DescribeRegionResourceTypeAutoEnableResponse.js +69 -0
- package/dist/models/DescribeRegionResourceTypeAutoEnableResponse.js.map +1 -0
- package/dist/models/DescribeRegionResourceTypeAutoEnableResponseBody.d.ts +26 -0
- package/dist/models/DescribeRegionResourceTypeAutoEnableResponseBody.js +63 -0
- package/dist/models/DescribeRegionResourceTypeAutoEnableResponseBody.js.map +1 -0
- package/dist/models/DescribeVpcFirewallDomainListRequest.d.ts +74 -0
- package/dist/models/DescribeVpcFirewallDomainListRequest.js +78 -0
- package/dist/models/DescribeVpcFirewallDomainListRequest.js.map +1 -0
- package/dist/models/DescribeVpcFirewallDomainListResponse.d.ts +19 -0
- package/dist/models/DescribeVpcFirewallDomainListResponse.js +69 -0
- package/dist/models/DescribeVpcFirewallDomainListResponse.js.map +1 -0
- package/dist/models/DescribeVpcFirewallDomainListResponseBody.d.ts +82 -0
- package/dist/models/DescribeVpcFirewallDomainListResponseBody.js +105 -0
- package/dist/models/DescribeVpcFirewallDomainListResponseBody.js.map +1 -0
- package/dist/models/DescribeVpcFirewallDomainRelationListRequest.d.ts +75 -0
- package/dist/models/DescribeVpcFirewallDomainRelationListRequest.js +83 -0
- package/dist/models/DescribeVpcFirewallDomainRelationListRequest.js.map +1 -0
- package/dist/models/DescribeVpcFirewallDomainRelationListResponse.d.ts +19 -0
- package/dist/models/DescribeVpcFirewallDomainRelationListResponse.js +69 -0
- package/dist/models/DescribeVpcFirewallDomainRelationListResponse.js.map +1 -0
- package/dist/models/DescribeVpcFirewallDomainRelationListResponseBody.d.ts +149 -0
- package/dist/models/DescribeVpcFirewallDomainRelationListResponseBody.js +144 -0
- package/dist/models/DescribeVpcFirewallDomainRelationListResponseBody.js.map +1 -0
- package/dist/models/DescribeVpcFirewallTrafficAssetListRequest.d.ts +74 -0
- package/dist/models/DescribeVpcFirewallTrafficAssetListRequest.js +78 -0
- package/dist/models/DescribeVpcFirewallTrafficAssetListRequest.js.map +1 -0
- package/dist/models/DescribeVpcFirewallTrafficAssetListResponse.d.ts +19 -0
- package/dist/models/DescribeVpcFirewallTrafficAssetListResponse.js +69 -0
- package/dist/models/DescribeVpcFirewallTrafficAssetListResponse.js.map +1 -0
- package/dist/models/DescribeVpcFirewallTrafficAssetListResponseBody.d.ts +66 -0
- package/dist/models/DescribeVpcFirewallTrafficAssetListResponseBody.js +94 -0
- package/dist/models/DescribeVpcFirewallTrafficAssetListResponseBody.js.map +1 -0
- package/dist/models/ModifyResourceTypeAutoEnableRequest.d.ts +1 -0
- package/dist/models/ModifyResourceTypeAutoEnableRequest.js +2 -0
- package/dist/models/ModifyResourceTypeAutoEnableRequest.js.map +1 -1
- package/dist/models/ModifySlsDispatchStatusRequest.d.ts +5 -0
- package/dist/models/ModifySlsDispatchStatusRequest.js +2 -0
- package/dist/models/ModifySlsDispatchStatusRequest.js.map +1 -1
- package/dist/models/ModifyUserSlsLogStorageTimeRequest.d.ts +10 -0
- package/dist/models/ModifyUserSlsLogStorageTimeRequest.js +4 -0
- package/dist/models/ModifyUserSlsLogStorageTimeRequest.js.map +1 -1
- package/dist/models/PutDisableFwSwitchRequest.d.ts +10 -0
- package/dist/models/PutDisableFwSwitchRequest.js +4 -0
- package/dist/models/PutDisableFwSwitchRequest.js.map +1 -1
- package/dist/models/PutEnableFwSwitchRequest.d.ts +10 -0
- package/dist/models/PutEnableFwSwitchRequest.js +4 -0
- package/dist/models/PutEnableFwSwitchRequest.js.map +1 -1
- package/dist/models/SetAutoProtectNewAssetsRequest.d.ts +31 -0
- package/dist/models/SetAutoProtectNewAssetsRequest.js +62 -0
- package/dist/models/SetAutoProtectNewAssetsRequest.js.map +1 -0
- package/dist/models/SetAutoProtectNewAssetsResponse.d.ts +19 -0
- package/dist/models/SetAutoProtectNewAssetsResponse.js +69 -0
- package/dist/models/SetAutoProtectNewAssetsResponse.js.map +1 -0
- package/dist/models/SetAutoProtectNewAssetsResponseBody.d.ts +23 -0
- package/dist/models/SetAutoProtectNewAssetsResponseBody.js +60 -0
- package/dist/models/SetAutoProtectNewAssetsResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +23 -0
- package/dist/models/model.js +73 -26
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +388 -4
- package/src/models/ClearLogStoreStorageRequest.ts +31 -0
- package/src/models/DescribeBatchSlsDispatchStatusResponseBody.ts +125 -0
- package/src/models/DescribeLogStoreInfoResponseBody.ts +117 -0
- package/src/models/DescribeRegionResourceTypeAutoEnableRequest.ts +31 -0
- package/src/models/DescribeRegionResourceTypeAutoEnableResponse.ts +40 -0
- package/src/models/DescribeRegionResourceTypeAutoEnableResponseBody.ts +40 -0
- package/src/models/DescribeVpcFirewallDomainListRequest.ts +107 -0
- package/src/models/DescribeVpcFirewallDomainListResponse.ts +40 -0
- package/src/models/DescribeVpcFirewallDomainListResponseBody.ts +133 -0
- package/src/models/DescribeVpcFirewallDomainRelationListRequest.ts +113 -0
- package/src/models/DescribeVpcFirewallDomainRelationListResponse.ts +40 -0
- package/src/models/DescribeVpcFirewallDomainRelationListResponseBody.ts +230 -0
- package/src/models/DescribeVpcFirewallTrafficAssetListRequest.ts +107 -0
- package/src/models/DescribeVpcFirewallTrafficAssetListResponse.ts +40 -0
- package/src/models/DescribeVpcFirewallTrafficAssetListResponseBody.ts +106 -0
- package/src/models/ModifyResourceTypeAutoEnableRequest.ts +3 -0
- package/src/models/ModifySlsDispatchStatusRequest.ts +7 -0
- package/src/models/ModifyUserSlsLogStorageTimeRequest.ts +14 -0
- package/src/models/PutDisableFwSwitchRequest.ts +14 -0
- package/src/models/PutEnableFwSwitchRequest.ts +14 -0
- package/src/models/SetAutoProtectNewAssetsRequest.ts +48 -0
- package/src/models/SetAutoProtectNewAssetsResponse.ts +40 -0
- package/src/models/SetAutoProtectNewAssetsResponseBody.ts +38 -0
- package/src/models/model.ts +23 -0
package/src/client.ts
CHANGED
|
@@ -697,8 +697,16 @@ export default class Client extends OpenApi {
|
|
|
697
697
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
698
698
|
* @returns ClearLogStoreStorageResponse
|
|
699
699
|
*/
|
|
700
|
-
async clearLogStoreStorageWithOptions(runtime: $dara.RuntimeOptions): Promise<$_model.ClearLogStoreStorageResponse> {
|
|
701
|
-
|
|
700
|
+
async clearLogStoreStorageWithOptions(request: $_model.ClearLogStoreStorageRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ClearLogStoreStorageResponse> {
|
|
701
|
+
request.validate();
|
|
702
|
+
let query = { };
|
|
703
|
+
if (!$dara.isNull(request.site)) {
|
|
704
|
+
query["Site"] = request.site;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
708
|
+
query: OpenApiUtil.query(query),
|
|
709
|
+
});
|
|
702
710
|
let params = new $OpenApiUtil.Params({
|
|
703
711
|
action: "ClearLogStoreStorage",
|
|
704
712
|
version: "2017-12-07",
|
|
@@ -715,11 +723,13 @@ export default class Client extends OpenApi {
|
|
|
715
723
|
|
|
716
724
|
/**
|
|
717
725
|
* 清空防火墙日志
|
|
726
|
+
*
|
|
727
|
+
* @param request - ClearLogStoreStorageRequest
|
|
718
728
|
* @returns ClearLogStoreStorageResponse
|
|
719
729
|
*/
|
|
720
|
-
async clearLogStoreStorage(): Promise<$_model.ClearLogStoreStorageResponse> {
|
|
730
|
+
async clearLogStoreStorage(request: $_model.ClearLogStoreStorageRequest): Promise<$_model.ClearLogStoreStorageResponse> {
|
|
721
731
|
let runtime = new $dara.RuntimeOptions({ });
|
|
722
|
-
return await this.clearLogStoreStorageWithOptions(runtime);
|
|
732
|
+
return await this.clearLogStoreStorageWithOptions(request, runtime);
|
|
723
733
|
}
|
|
724
734
|
|
|
725
735
|
/**
|
|
@@ -9498,6 +9508,48 @@ export default class Client extends OpenApi {
|
|
|
9498
9508
|
return await this.describeRegionInfoWithOptions(request, runtime);
|
|
9499
9509
|
}
|
|
9500
9510
|
|
|
9511
|
+
/**
|
|
9512
|
+
* 查询地域和资产类型引流设置
|
|
9513
|
+
*
|
|
9514
|
+
* @param request - DescribeRegionResourceTypeAutoEnableRequest
|
|
9515
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
9516
|
+
* @returns DescribeRegionResourceTypeAutoEnableResponse
|
|
9517
|
+
*/
|
|
9518
|
+
async describeRegionResourceTypeAutoEnableWithOptions(request: $_model.DescribeRegionResourceTypeAutoEnableRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeRegionResourceTypeAutoEnableResponse> {
|
|
9519
|
+
request.validate();
|
|
9520
|
+
let query = { };
|
|
9521
|
+
if (!$dara.isNull(request.lang)) {
|
|
9522
|
+
query["Lang"] = request.lang;
|
|
9523
|
+
}
|
|
9524
|
+
|
|
9525
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
9526
|
+
query: OpenApiUtil.query(query),
|
|
9527
|
+
});
|
|
9528
|
+
let params = new $OpenApiUtil.Params({
|
|
9529
|
+
action: "DescribeRegionResourceTypeAutoEnable",
|
|
9530
|
+
version: "2017-12-07",
|
|
9531
|
+
protocol: "HTTPS",
|
|
9532
|
+
pathname: "/",
|
|
9533
|
+
method: "POST",
|
|
9534
|
+
authType: "AK",
|
|
9535
|
+
style: "RPC",
|
|
9536
|
+
reqBodyType: "formData",
|
|
9537
|
+
bodyType: "json",
|
|
9538
|
+
});
|
|
9539
|
+
return $dara.cast<$_model.DescribeRegionResourceTypeAutoEnableResponse>(await this.callApi(params, req, runtime), new $_model.DescribeRegionResourceTypeAutoEnableResponse({}));
|
|
9540
|
+
}
|
|
9541
|
+
|
|
9542
|
+
/**
|
|
9543
|
+
* 查询地域和资产类型引流设置
|
|
9544
|
+
*
|
|
9545
|
+
* @param request - DescribeRegionResourceTypeAutoEnableRequest
|
|
9546
|
+
* @returns DescribeRegionResourceTypeAutoEnableResponse
|
|
9547
|
+
*/
|
|
9548
|
+
async describeRegionResourceTypeAutoEnable(request: $_model.DescribeRegionResourceTypeAutoEnableRequest): Promise<$_model.DescribeRegionResourceTypeAutoEnableResponse> {
|
|
9549
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
9550
|
+
return await this.describeRegionResourceTypeAutoEnableWithOptions(request, runtime);
|
|
9551
|
+
}
|
|
9552
|
+
|
|
9501
9553
|
/**
|
|
9502
9554
|
* 查询资产类型默认引流
|
|
9503
9555
|
*
|
|
@@ -12555,6 +12607,174 @@ export default class Client extends OpenApi {
|
|
|
12555
12607
|
return await this.describeVpcFirewallDetailWithOptions(request, runtime);
|
|
12556
12608
|
}
|
|
12557
12609
|
|
|
12610
|
+
/**
|
|
12611
|
+
* 查询VPC互访的域名信息
|
|
12612
|
+
*
|
|
12613
|
+
* @param request - DescribeVpcFirewallDomainListRequest
|
|
12614
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
12615
|
+
* @returns DescribeVpcFirewallDomainListResponse
|
|
12616
|
+
*/
|
|
12617
|
+
async describeVpcFirewallDomainListWithOptions(request: $_model.DescribeVpcFirewallDomainListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeVpcFirewallDomainListResponse> {
|
|
12618
|
+
request.validate();
|
|
12619
|
+
let query = { };
|
|
12620
|
+
if (!$dara.isNull(request.currentPage)) {
|
|
12621
|
+
query["CurrentPage"] = request.currentPage;
|
|
12622
|
+
}
|
|
12623
|
+
|
|
12624
|
+
if (!$dara.isNull(request.domain)) {
|
|
12625
|
+
query["Domain"] = request.domain;
|
|
12626
|
+
}
|
|
12627
|
+
|
|
12628
|
+
if (!$dara.isNull(request.endTime)) {
|
|
12629
|
+
query["EndTime"] = request.endTime;
|
|
12630
|
+
}
|
|
12631
|
+
|
|
12632
|
+
if (!$dara.isNull(request.isAITraffic)) {
|
|
12633
|
+
query["IsAITraffic"] = request.isAITraffic;
|
|
12634
|
+
}
|
|
12635
|
+
|
|
12636
|
+
if (!$dara.isNull(request.lang)) {
|
|
12637
|
+
query["Lang"] = request.lang;
|
|
12638
|
+
}
|
|
12639
|
+
|
|
12640
|
+
if (!$dara.isNull(request.order)) {
|
|
12641
|
+
query["Order"] = request.order;
|
|
12642
|
+
}
|
|
12643
|
+
|
|
12644
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
12645
|
+
query["PageSize"] = request.pageSize;
|
|
12646
|
+
}
|
|
12647
|
+
|
|
12648
|
+
if (!$dara.isNull(request.sort)) {
|
|
12649
|
+
query["Sort"] = request.sort;
|
|
12650
|
+
}
|
|
12651
|
+
|
|
12652
|
+
if (!$dara.isNull(request.srcIP)) {
|
|
12653
|
+
query["SrcIP"] = request.srcIP;
|
|
12654
|
+
}
|
|
12655
|
+
|
|
12656
|
+
if (!$dara.isNull(request.srcVpcId)) {
|
|
12657
|
+
query["SrcVpcId"] = request.srcVpcId;
|
|
12658
|
+
}
|
|
12659
|
+
|
|
12660
|
+
if (!$dara.isNull(request.startTime)) {
|
|
12661
|
+
query["StartTime"] = request.startTime;
|
|
12662
|
+
}
|
|
12663
|
+
|
|
12664
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
12665
|
+
query: OpenApiUtil.query(query),
|
|
12666
|
+
});
|
|
12667
|
+
let params = new $OpenApiUtil.Params({
|
|
12668
|
+
action: "DescribeVpcFirewallDomainList",
|
|
12669
|
+
version: "2017-12-07",
|
|
12670
|
+
protocol: "HTTPS",
|
|
12671
|
+
pathname: "/",
|
|
12672
|
+
method: "POST",
|
|
12673
|
+
authType: "AK",
|
|
12674
|
+
style: "RPC",
|
|
12675
|
+
reqBodyType: "formData",
|
|
12676
|
+
bodyType: "json",
|
|
12677
|
+
});
|
|
12678
|
+
return $dara.cast<$_model.DescribeVpcFirewallDomainListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeVpcFirewallDomainListResponse({}));
|
|
12679
|
+
}
|
|
12680
|
+
|
|
12681
|
+
/**
|
|
12682
|
+
* 查询VPC互访的域名信息
|
|
12683
|
+
*
|
|
12684
|
+
* @param request - DescribeVpcFirewallDomainListRequest
|
|
12685
|
+
* @returns DescribeVpcFirewallDomainListResponse
|
|
12686
|
+
*/
|
|
12687
|
+
async describeVpcFirewallDomainList(request: $_model.DescribeVpcFirewallDomainListRequest): Promise<$_model.DescribeVpcFirewallDomainListResponse> {
|
|
12688
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
12689
|
+
return await this.describeVpcFirewallDomainListWithOptions(request, runtime);
|
|
12690
|
+
}
|
|
12691
|
+
|
|
12692
|
+
/**
|
|
12693
|
+
* 查询VPC互访的域名信息
|
|
12694
|
+
*
|
|
12695
|
+
* @param request - DescribeVpcFirewallDomainRelationListRequest
|
|
12696
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
12697
|
+
* @returns DescribeVpcFirewallDomainRelationListResponse
|
|
12698
|
+
*/
|
|
12699
|
+
async describeVpcFirewallDomainRelationListWithOptions(request: $_model.DescribeVpcFirewallDomainRelationListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeVpcFirewallDomainRelationListResponse> {
|
|
12700
|
+
request.validate();
|
|
12701
|
+
let query = { };
|
|
12702
|
+
if (!$dara.isNull(request.currentPage)) {
|
|
12703
|
+
query["CurrentPage"] = request.currentPage;
|
|
12704
|
+
}
|
|
12705
|
+
|
|
12706
|
+
if (!$dara.isNull(request.domainList)) {
|
|
12707
|
+
query["DomainList"] = request.domainList;
|
|
12708
|
+
}
|
|
12709
|
+
|
|
12710
|
+
if (!$dara.isNull(request.dstIP)) {
|
|
12711
|
+
query["DstIP"] = request.dstIP;
|
|
12712
|
+
}
|
|
12713
|
+
|
|
12714
|
+
if (!$dara.isNull(request.dstVpcId)) {
|
|
12715
|
+
query["DstVpcId"] = request.dstVpcId;
|
|
12716
|
+
}
|
|
12717
|
+
|
|
12718
|
+
if (!$dara.isNull(request.endTime)) {
|
|
12719
|
+
query["EndTime"] = request.endTime;
|
|
12720
|
+
}
|
|
12721
|
+
|
|
12722
|
+
if (!$dara.isNull(request.lang)) {
|
|
12723
|
+
query["Lang"] = request.lang;
|
|
12724
|
+
}
|
|
12725
|
+
|
|
12726
|
+
if (!$dara.isNull(request.order)) {
|
|
12727
|
+
query["Order"] = request.order;
|
|
12728
|
+
}
|
|
12729
|
+
|
|
12730
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
12731
|
+
query["PageSize"] = request.pageSize;
|
|
12732
|
+
}
|
|
12733
|
+
|
|
12734
|
+
if (!$dara.isNull(request.sort)) {
|
|
12735
|
+
query["Sort"] = request.sort;
|
|
12736
|
+
}
|
|
12737
|
+
|
|
12738
|
+
if (!$dara.isNull(request.srcIP)) {
|
|
12739
|
+
query["SrcIP"] = request.srcIP;
|
|
12740
|
+
}
|
|
12741
|
+
|
|
12742
|
+
if (!$dara.isNull(request.srcVpcId)) {
|
|
12743
|
+
query["SrcVpcId"] = request.srcVpcId;
|
|
12744
|
+
}
|
|
12745
|
+
|
|
12746
|
+
if (!$dara.isNull(request.startTime)) {
|
|
12747
|
+
query["StartTime"] = request.startTime;
|
|
12748
|
+
}
|
|
12749
|
+
|
|
12750
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
12751
|
+
query: OpenApiUtil.query(query),
|
|
12752
|
+
});
|
|
12753
|
+
let params = new $OpenApiUtil.Params({
|
|
12754
|
+
action: "DescribeVpcFirewallDomainRelationList",
|
|
12755
|
+
version: "2017-12-07",
|
|
12756
|
+
protocol: "HTTPS",
|
|
12757
|
+
pathname: "/",
|
|
12758
|
+
method: "POST",
|
|
12759
|
+
authType: "AK",
|
|
12760
|
+
style: "RPC",
|
|
12761
|
+
reqBodyType: "formData",
|
|
12762
|
+
bodyType: "json",
|
|
12763
|
+
});
|
|
12764
|
+
return $dara.cast<$_model.DescribeVpcFirewallDomainRelationListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeVpcFirewallDomainRelationListResponse({}));
|
|
12765
|
+
}
|
|
12766
|
+
|
|
12767
|
+
/**
|
|
12768
|
+
* 查询VPC互访的域名信息
|
|
12769
|
+
*
|
|
12770
|
+
* @param request - DescribeVpcFirewallDomainRelationListRequest
|
|
12771
|
+
* @returns DescribeVpcFirewallDomainRelationListResponse
|
|
12772
|
+
*/
|
|
12773
|
+
async describeVpcFirewallDomainRelationList(request: $_model.DescribeVpcFirewallDomainRelationListRequest): Promise<$_model.DescribeVpcFirewallDomainRelationListResponse> {
|
|
12774
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
12775
|
+
return await this.describeVpcFirewallDomainRelationListWithOptions(request, runtime);
|
|
12776
|
+
}
|
|
12777
|
+
|
|
12558
12778
|
/**
|
|
12559
12779
|
* 概览页-vpc防火墙拦截趋势
|
|
12560
12780
|
*
|
|
@@ -12977,6 +13197,88 @@ export default class Client extends OpenApi {
|
|
|
12977
13197
|
return await this.describeVpcFirewallSummaryInfoWithOptions(request, runtime);
|
|
12978
13198
|
}
|
|
12979
13199
|
|
|
13200
|
+
/**
|
|
13201
|
+
* 查询VPC互访的资产信息
|
|
13202
|
+
*
|
|
13203
|
+
* @param request - DescribeVpcFirewallTrafficAssetListRequest
|
|
13204
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13205
|
+
* @returns DescribeVpcFirewallTrafficAssetListResponse
|
|
13206
|
+
*/
|
|
13207
|
+
async describeVpcFirewallTrafficAssetListWithOptions(request: $_model.DescribeVpcFirewallTrafficAssetListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeVpcFirewallTrafficAssetListResponse> {
|
|
13208
|
+
request.validate();
|
|
13209
|
+
let query = { };
|
|
13210
|
+
if (!$dara.isNull(request.currentPage)) {
|
|
13211
|
+
query["CurrentPage"] = request.currentPage;
|
|
13212
|
+
}
|
|
13213
|
+
|
|
13214
|
+
if (!$dara.isNull(request.domain)) {
|
|
13215
|
+
query["Domain"] = request.domain;
|
|
13216
|
+
}
|
|
13217
|
+
|
|
13218
|
+
if (!$dara.isNull(request.endTime)) {
|
|
13219
|
+
query["EndTime"] = request.endTime;
|
|
13220
|
+
}
|
|
13221
|
+
|
|
13222
|
+
if (!$dara.isNull(request.IP)) {
|
|
13223
|
+
query["IP"] = request.IP;
|
|
13224
|
+
}
|
|
13225
|
+
|
|
13226
|
+
if (!$dara.isNull(request.isAITraffic)) {
|
|
13227
|
+
query["IsAITraffic"] = request.isAITraffic;
|
|
13228
|
+
}
|
|
13229
|
+
|
|
13230
|
+
if (!$dara.isNull(request.lang)) {
|
|
13231
|
+
query["Lang"] = request.lang;
|
|
13232
|
+
}
|
|
13233
|
+
|
|
13234
|
+
if (!$dara.isNull(request.order)) {
|
|
13235
|
+
query["Order"] = request.order;
|
|
13236
|
+
}
|
|
13237
|
+
|
|
13238
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
13239
|
+
query["PageSize"] = request.pageSize;
|
|
13240
|
+
}
|
|
13241
|
+
|
|
13242
|
+
if (!$dara.isNull(request.sort)) {
|
|
13243
|
+
query["Sort"] = request.sort;
|
|
13244
|
+
}
|
|
13245
|
+
|
|
13246
|
+
if (!$dara.isNull(request.startTime)) {
|
|
13247
|
+
query["StartTime"] = request.startTime;
|
|
13248
|
+
}
|
|
13249
|
+
|
|
13250
|
+
if (!$dara.isNull(request.vpcId)) {
|
|
13251
|
+
query["VpcId"] = request.vpcId;
|
|
13252
|
+
}
|
|
13253
|
+
|
|
13254
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
13255
|
+
query: OpenApiUtil.query(query),
|
|
13256
|
+
});
|
|
13257
|
+
let params = new $OpenApiUtil.Params({
|
|
13258
|
+
action: "DescribeVpcFirewallTrafficAssetList",
|
|
13259
|
+
version: "2017-12-07",
|
|
13260
|
+
protocol: "HTTPS",
|
|
13261
|
+
pathname: "/",
|
|
13262
|
+
method: "POST",
|
|
13263
|
+
authType: "AK",
|
|
13264
|
+
style: "RPC",
|
|
13265
|
+
reqBodyType: "formData",
|
|
13266
|
+
bodyType: "json",
|
|
13267
|
+
});
|
|
13268
|
+
return $dara.cast<$_model.DescribeVpcFirewallTrafficAssetListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeVpcFirewallTrafficAssetListResponse({}));
|
|
13269
|
+
}
|
|
13270
|
+
|
|
13271
|
+
/**
|
|
13272
|
+
* 查询VPC互访的资产信息
|
|
13273
|
+
*
|
|
13274
|
+
* @param request - DescribeVpcFirewallTrafficAssetListRequest
|
|
13275
|
+
* @returns DescribeVpcFirewallTrafficAssetListResponse
|
|
13276
|
+
*/
|
|
13277
|
+
async describeVpcFirewallTrafficAssetList(request: $_model.DescribeVpcFirewallTrafficAssetListRequest): Promise<$_model.DescribeVpcFirewallTrafficAssetListResponse> {
|
|
13278
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
13279
|
+
return await this.describeVpcFirewallTrafficAssetListWithOptions(request, runtime);
|
|
13280
|
+
}
|
|
13281
|
+
|
|
12980
13282
|
/**
|
|
12981
13283
|
* 查询VPC防火墙资源可用区
|
|
12982
13284
|
*
|
|
@@ -14644,6 +14946,10 @@ export default class Client extends OpenApi {
|
|
|
14644
14946
|
query["Lang"] = request.lang;
|
|
14645
14947
|
}
|
|
14646
14948
|
|
|
14949
|
+
if (!$dara.isNull(request.regionNo)) {
|
|
14950
|
+
query["RegionNo"] = request.regionNo;
|
|
14951
|
+
}
|
|
14952
|
+
|
|
14647
14953
|
if (!$dara.isNull(request.resourceTypeAutoEnable)) {
|
|
14648
14954
|
query["ResourceTypeAutoEnable"] = request.resourceTypeAutoEnable;
|
|
14649
14955
|
}
|
|
@@ -14752,6 +15058,10 @@ export default class Client extends OpenApi {
|
|
|
14752
15058
|
query["NewRegionId"] = request.newRegionId;
|
|
14753
15059
|
}
|
|
14754
15060
|
|
|
15061
|
+
if (!$dara.isNull(request.site)) {
|
|
15062
|
+
query["Site"] = request.site;
|
|
15063
|
+
}
|
|
15064
|
+
|
|
14755
15065
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
14756
15066
|
query: OpenApiUtil.query(query),
|
|
14757
15067
|
});
|
|
@@ -15098,6 +15408,14 @@ export default class Client extends OpenApi {
|
|
|
15098
15408
|
query["InstanceId"] = request.instanceId;
|
|
15099
15409
|
}
|
|
15100
15410
|
|
|
15411
|
+
if (!$dara.isNull(request.logVersion)) {
|
|
15412
|
+
query["LogVersion"] = request.logVersion;
|
|
15413
|
+
}
|
|
15414
|
+
|
|
15415
|
+
if (!$dara.isNull(request.slsRegionId)) {
|
|
15416
|
+
query["SlsRegionId"] = request.slsRegionId;
|
|
15417
|
+
}
|
|
15418
|
+
|
|
15101
15419
|
if (!$dara.isNull(request.storageTime)) {
|
|
15102
15420
|
query["StorageTime"] = request.storageTime;
|
|
15103
15421
|
}
|
|
@@ -15873,6 +16191,10 @@ export default class Client extends OpenApi {
|
|
|
15873
16191
|
async putDisableFwSwitchWithOptions(request: $_model.PutDisableFwSwitchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutDisableFwSwitchResponse> {
|
|
15874
16192
|
request.validate();
|
|
15875
16193
|
let query = { };
|
|
16194
|
+
if (!$dara.isNull(request.ipVersion)) {
|
|
16195
|
+
query["IpVersion"] = request.ipVersion;
|
|
16196
|
+
}
|
|
16197
|
+
|
|
15876
16198
|
if (!$dara.isNull(request.ipaddrList)) {
|
|
15877
16199
|
query["IpaddrList"] = request.ipaddrList;
|
|
15878
16200
|
}
|
|
@@ -15881,6 +16203,10 @@ export default class Client extends OpenApi {
|
|
|
15881
16203
|
query["Lang"] = request.lang;
|
|
15882
16204
|
}
|
|
15883
16205
|
|
|
16206
|
+
if (!$dara.isNull(request.memberUid)) {
|
|
16207
|
+
query["MemberUid"] = request.memberUid;
|
|
16208
|
+
}
|
|
16209
|
+
|
|
15884
16210
|
if (!$dara.isNull(request.regionList)) {
|
|
15885
16211
|
query["RegionList"] = request.regionList;
|
|
15886
16212
|
}
|
|
@@ -16001,6 +16327,10 @@ export default class Client extends OpenApi {
|
|
|
16001
16327
|
async putEnableFwSwitchWithOptions(request: $_model.PutEnableFwSwitchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutEnableFwSwitchResponse> {
|
|
16002
16328
|
request.validate();
|
|
16003
16329
|
let query = { };
|
|
16330
|
+
if (!$dara.isNull(request.ipVersion)) {
|
|
16331
|
+
query["IpVersion"] = request.ipVersion;
|
|
16332
|
+
}
|
|
16333
|
+
|
|
16004
16334
|
if (!$dara.isNull(request.ipaddrList)) {
|
|
16005
16335
|
query["IpaddrList"] = request.ipaddrList;
|
|
16006
16336
|
}
|
|
@@ -16009,6 +16339,10 @@ export default class Client extends OpenApi {
|
|
|
16009
16339
|
query["Lang"] = request.lang;
|
|
16010
16340
|
}
|
|
16011
16341
|
|
|
16342
|
+
if (!$dara.isNull(request.memberUid)) {
|
|
16343
|
+
query["MemberUid"] = request.memberUid;
|
|
16344
|
+
}
|
|
16345
|
+
|
|
16012
16346
|
if (!$dara.isNull(request.regionList)) {
|
|
16013
16347
|
query["RegionList"] = request.regionList;
|
|
16014
16348
|
}
|
|
@@ -16294,6 +16628,56 @@ export default class Client extends OpenApi {
|
|
|
16294
16628
|
return await this.resetVpcFirewallRuleHitCountWithOptions(request, runtime);
|
|
16295
16629
|
}
|
|
16296
16630
|
|
|
16631
|
+
/**
|
|
16632
|
+
* 开启自动保护新入资产
|
|
16633
|
+
*
|
|
16634
|
+
* @param request - SetAutoProtectNewAssetsRequest
|
|
16635
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16636
|
+
* @returns SetAutoProtectNewAssetsResponse
|
|
16637
|
+
*/
|
|
16638
|
+
async setAutoProtectNewAssetsWithOptions(request: $_model.SetAutoProtectNewAssetsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SetAutoProtectNewAssetsResponse> {
|
|
16639
|
+
request.validate();
|
|
16640
|
+
let query = { };
|
|
16641
|
+
if (!$dara.isNull(request.autoProtect)) {
|
|
16642
|
+
query["AutoProtect"] = request.autoProtect;
|
|
16643
|
+
}
|
|
16644
|
+
|
|
16645
|
+
if (!$dara.isNull(request.lang)) {
|
|
16646
|
+
query["Lang"] = request.lang;
|
|
16647
|
+
}
|
|
16648
|
+
|
|
16649
|
+
if (!$dara.isNull(request.sourceIp)) {
|
|
16650
|
+
query["SourceIp"] = request.sourceIp;
|
|
16651
|
+
}
|
|
16652
|
+
|
|
16653
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
16654
|
+
query: OpenApiUtil.query(query),
|
|
16655
|
+
});
|
|
16656
|
+
let params = new $OpenApiUtil.Params({
|
|
16657
|
+
action: "SetAutoProtectNewAssets",
|
|
16658
|
+
version: "2017-12-07",
|
|
16659
|
+
protocol: "HTTPS",
|
|
16660
|
+
pathname: "/",
|
|
16661
|
+
method: "POST",
|
|
16662
|
+
authType: "AK",
|
|
16663
|
+
style: "RPC",
|
|
16664
|
+
reqBodyType: "formData",
|
|
16665
|
+
bodyType: "json",
|
|
16666
|
+
});
|
|
16667
|
+
return $dara.cast<$_model.SetAutoProtectNewAssetsResponse>(await this.callApi(params, req, runtime), new $_model.SetAutoProtectNewAssetsResponse({}));
|
|
16668
|
+
}
|
|
16669
|
+
|
|
16670
|
+
/**
|
|
16671
|
+
* 开启自动保护新入资产
|
|
16672
|
+
*
|
|
16673
|
+
* @param request - SetAutoProtectNewAssetsRequest
|
|
16674
|
+
* @returns SetAutoProtectNewAssetsResponse
|
|
16675
|
+
*/
|
|
16676
|
+
async setAutoProtectNewAssets(request: $_model.SetAutoProtectNewAssetsRequest): Promise<$_model.SetAutoProtectNewAssetsResponse> {
|
|
16677
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
16678
|
+
return await this.setAutoProtectNewAssetsWithOptions(request, runtime);
|
|
16679
|
+
}
|
|
16680
|
+
|
|
16297
16681
|
/**
|
|
16298
16682
|
* Enables or disables a NAT firewall.
|
|
16299
16683
|
*
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ClearLogStoreStorageRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* cn
|
|
9
|
+
*/
|
|
10
|
+
site?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
site: 'Site',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
site: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -2,12 +2,124 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class DescribeBatchSlsDispatchStatusResponseBodyInfoListItemList extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* success_finished
|
|
9
|
+
*/
|
|
10
|
+
configStatus?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 互联网流量日志、VPC流量日志、NAT流量日志
|
|
14
|
+
*/
|
|
15
|
+
dispatchName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* ipv6_firewall_log
|
|
19
|
+
*/
|
|
20
|
+
dispatchValue?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* true
|
|
24
|
+
*/
|
|
25
|
+
enable?: boolean;
|
|
26
|
+
filterKeys?: string[];
|
|
27
|
+
/**
|
|
28
|
+
* @example
|
|
29
|
+
* log_type
|
|
30
|
+
*/
|
|
31
|
+
searchName?: string;
|
|
32
|
+
static names(): { [key: string]: string } {
|
|
33
|
+
return {
|
|
34
|
+
configStatus: 'ConfigStatus',
|
|
35
|
+
dispatchName: 'DispatchName',
|
|
36
|
+
dispatchValue: 'DispatchValue',
|
|
37
|
+
enable: 'Enable',
|
|
38
|
+
filterKeys: 'FilterKeys',
|
|
39
|
+
searchName: 'SearchName',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static types(): { [key: string]: any } {
|
|
44
|
+
return {
|
|
45
|
+
configStatus: 'string',
|
|
46
|
+
dispatchName: 'string',
|
|
47
|
+
dispatchValue: 'string',
|
|
48
|
+
enable: 'boolean',
|
|
49
|
+
filterKeys: { 'type': 'array', 'itemType': 'string' },
|
|
50
|
+
searchName: 'string',
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
validate() {
|
|
55
|
+
if(Array.isArray(this.filterKeys)) {
|
|
56
|
+
$dara.Model.validateArray(this.filterKeys);
|
|
57
|
+
}
|
|
58
|
+
super.validate();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
constructor(map?: { [key: string]: any }) {
|
|
62
|
+
super(map);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export class DescribeBatchSlsDispatchStatusResponseBodyInfoList extends $dara.Model {
|
|
67
|
+
itemList?: DescribeBatchSlsDispatchStatusResponseBodyInfoListItemList[];
|
|
68
|
+
/**
|
|
69
|
+
* @example
|
|
70
|
+
* cloudfirewall-logstore
|
|
71
|
+
*/
|
|
72
|
+
logstoreName?: string;
|
|
73
|
+
/**
|
|
74
|
+
* @example
|
|
75
|
+
* cloudfirewall-project-1204872307283650-cn-hangzhou
|
|
76
|
+
*/
|
|
77
|
+
projectName?: string;
|
|
78
|
+
/**
|
|
79
|
+
* @example
|
|
80
|
+
* cn
|
|
81
|
+
*/
|
|
82
|
+
site?: string;
|
|
83
|
+
static names(): { [key: string]: string } {
|
|
84
|
+
return {
|
|
85
|
+
itemList: 'ItemList',
|
|
86
|
+
logstoreName: 'LogstoreName',
|
|
87
|
+
projectName: 'ProjectName',
|
|
88
|
+
site: 'Site',
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
static types(): { [key: string]: any } {
|
|
93
|
+
return {
|
|
94
|
+
itemList: { 'type': 'array', 'itemType': DescribeBatchSlsDispatchStatusResponseBodyInfoListItemList },
|
|
95
|
+
logstoreName: 'string',
|
|
96
|
+
projectName: 'string',
|
|
97
|
+
site: 'string',
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
validate() {
|
|
102
|
+
if(Array.isArray(this.itemList)) {
|
|
103
|
+
$dara.Model.validateArray(this.itemList);
|
|
104
|
+
}
|
|
105
|
+
super.validate();
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
constructor(map?: { [key: string]: any }) {
|
|
109
|
+
super(map);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
5
113
|
export class DescribeBatchSlsDispatchStatusResponseBodyItemList extends $dara.Model {
|
|
6
114
|
/**
|
|
7
115
|
* @example
|
|
8
116
|
* success_finished
|
|
9
117
|
*/
|
|
10
118
|
configStatus?: string;
|
|
119
|
+
/**
|
|
120
|
+
* @example
|
|
121
|
+
* 互联网流量日志、VPC流量日志、NAT流量日志
|
|
122
|
+
*/
|
|
11
123
|
dispatchName?: string;
|
|
12
124
|
/**
|
|
13
125
|
* @example
|
|
@@ -60,7 +172,13 @@ export class DescribeBatchSlsDispatchStatusResponseBodyItemList extends $dara.Mo
|
|
|
60
172
|
}
|
|
61
173
|
|
|
62
174
|
export class DescribeBatchSlsDispatchStatusResponseBody extends $dara.Model {
|
|
175
|
+
infoList?: DescribeBatchSlsDispatchStatusResponseBodyInfoList[];
|
|
63
176
|
itemList?: DescribeBatchSlsDispatchStatusResponseBodyItemList[];
|
|
177
|
+
/**
|
|
178
|
+
* @example
|
|
179
|
+
* 1
|
|
180
|
+
*/
|
|
181
|
+
logVersion?: string;
|
|
64
182
|
/**
|
|
65
183
|
* @example
|
|
66
184
|
* rs-stats
|
|
@@ -78,7 +196,9 @@ export class DescribeBatchSlsDispatchStatusResponseBody extends $dara.Model {
|
|
|
78
196
|
requestId?: string;
|
|
79
197
|
static names(): { [key: string]: string } {
|
|
80
198
|
return {
|
|
199
|
+
infoList: 'InfoList',
|
|
81
200
|
itemList: 'ItemList',
|
|
201
|
+
logVersion: 'LogVersion',
|
|
82
202
|
logstoreName: 'LogstoreName',
|
|
83
203
|
projectName: 'ProjectName',
|
|
84
204
|
requestId: 'RequestId',
|
|
@@ -87,7 +207,9 @@ export class DescribeBatchSlsDispatchStatusResponseBody extends $dara.Model {
|
|
|
87
207
|
|
|
88
208
|
static types(): { [key: string]: any } {
|
|
89
209
|
return {
|
|
210
|
+
infoList: { 'type': 'array', 'itemType': DescribeBatchSlsDispatchStatusResponseBodyInfoList },
|
|
90
211
|
itemList: { 'type': 'array', 'itemType': DescribeBatchSlsDispatchStatusResponseBodyItemList },
|
|
212
|
+
logVersion: 'string',
|
|
91
213
|
logstoreName: 'string',
|
|
92
214
|
projectName: 'string',
|
|
93
215
|
requestId: 'string',
|
|
@@ -95,6 +217,9 @@ export class DescribeBatchSlsDispatchStatusResponseBody extends $dara.Model {
|
|
|
95
217
|
}
|
|
96
218
|
|
|
97
219
|
validate() {
|
|
220
|
+
if(Array.isArray(this.infoList)) {
|
|
221
|
+
$dara.Model.validateArray(this.infoList);
|
|
222
|
+
}
|
|
98
223
|
if(Array.isArray(this.itemList)) {
|
|
99
224
|
$dara.Model.validateArray(this.itemList);
|
|
100
225
|
}
|