@alicloud/cloudfw20171207 2.2.0 → 2.4.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 +128 -0
- package/dist/client.js +1400 -1137
- package/dist/client.js.map +1 -1
- package/package.json +4 -4
- package/src/client.ts +309 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/cloudfw20171207",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"author": "Alibaba Cloud SDK",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@types/node": "^
|
|
15
|
+
"@types/node": "^16.0.0",
|
|
16
16
|
"nyc": "^15.0.0",
|
|
17
17
|
"source-map-support": "^0.5.16",
|
|
18
|
-
"ts-node": "^
|
|
19
|
-
"typescript": "^
|
|
18
|
+
"ts-node": "^10.0.0",
|
|
19
|
+
"typescript": "^5"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
package/src/client.ts
CHANGED
|
@@ -368,6 +368,72 @@ export class BatchCopyVpcFirewallControlPolicyResponse extends $tea.Model {
|
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
+
export class BatchDeleteVpcFirewallControlPolicyRequest extends $tea.Model {
|
|
372
|
+
aclUuidList?: string[];
|
|
373
|
+
vpcFirewallId?: string;
|
|
374
|
+
static names(): { [key: string]: string } {
|
|
375
|
+
return {
|
|
376
|
+
aclUuidList: 'AclUuidList',
|
|
377
|
+
vpcFirewallId: 'VpcFirewallId',
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
static types(): { [key: string]: any } {
|
|
382
|
+
return {
|
|
383
|
+
aclUuidList: { 'type': 'array', 'itemType': 'string' },
|
|
384
|
+
vpcFirewallId: 'string',
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
constructor(map?: { [key: string]: any }) {
|
|
389
|
+
super(map);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export class BatchDeleteVpcFirewallControlPolicyResponseBody extends $tea.Model {
|
|
394
|
+
requestId?: string;
|
|
395
|
+
static names(): { [key: string]: string } {
|
|
396
|
+
return {
|
|
397
|
+
requestId: 'RequestId',
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
static types(): { [key: string]: any } {
|
|
402
|
+
return {
|
|
403
|
+
requestId: 'string',
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
constructor(map?: { [key: string]: any }) {
|
|
408
|
+
super(map);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export class BatchDeleteVpcFirewallControlPolicyResponse extends $tea.Model {
|
|
413
|
+
headers?: { [key: string]: string };
|
|
414
|
+
statusCode?: number;
|
|
415
|
+
body?: BatchDeleteVpcFirewallControlPolicyResponseBody;
|
|
416
|
+
static names(): { [key: string]: string } {
|
|
417
|
+
return {
|
|
418
|
+
headers: 'headers',
|
|
419
|
+
statusCode: 'statusCode',
|
|
420
|
+
body: 'body',
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
static types(): { [key: string]: any } {
|
|
425
|
+
return {
|
|
426
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
427
|
+
statusCode: 'number',
|
|
428
|
+
body: BatchDeleteVpcFirewallControlPolicyResponseBody,
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
constructor(map?: { [key: string]: any }) {
|
|
433
|
+
super(map);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
371
437
|
export class CreateDownloadTaskRequest extends $tea.Model {
|
|
372
438
|
lang?: string;
|
|
373
439
|
taskData?: string;
|
|
@@ -578,6 +644,102 @@ export class CreateNatFirewallControlPolicyResponse extends $tea.Model {
|
|
|
578
644
|
}
|
|
579
645
|
}
|
|
580
646
|
|
|
647
|
+
export class CreateSecurityProxyRequest extends $tea.Model {
|
|
648
|
+
firewallSwitch?: string;
|
|
649
|
+
lang?: string;
|
|
650
|
+
natGatewayId?: string;
|
|
651
|
+
natRouteEntryList?: CreateSecurityProxyRequestNatRouteEntryList[];
|
|
652
|
+
proxyName?: string;
|
|
653
|
+
regionNo?: string;
|
|
654
|
+
strictMode?: number;
|
|
655
|
+
vpcId?: string;
|
|
656
|
+
vswitchAuto?: string;
|
|
657
|
+
vswitchCidr?: string;
|
|
658
|
+
vswitchId?: string;
|
|
659
|
+
static names(): { [key: string]: string } {
|
|
660
|
+
return {
|
|
661
|
+
firewallSwitch: 'FirewallSwitch',
|
|
662
|
+
lang: 'Lang',
|
|
663
|
+
natGatewayId: 'NatGatewayId',
|
|
664
|
+
natRouteEntryList: 'NatRouteEntryList',
|
|
665
|
+
proxyName: 'ProxyName',
|
|
666
|
+
regionNo: 'RegionNo',
|
|
667
|
+
strictMode: 'StrictMode',
|
|
668
|
+
vpcId: 'VpcId',
|
|
669
|
+
vswitchAuto: 'VswitchAuto',
|
|
670
|
+
vswitchCidr: 'VswitchCidr',
|
|
671
|
+
vswitchId: 'VswitchId',
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
static types(): { [key: string]: any } {
|
|
676
|
+
return {
|
|
677
|
+
firewallSwitch: 'string',
|
|
678
|
+
lang: 'string',
|
|
679
|
+
natGatewayId: 'string',
|
|
680
|
+
natRouteEntryList: { 'type': 'array', 'itemType': CreateSecurityProxyRequestNatRouteEntryList },
|
|
681
|
+
proxyName: 'string',
|
|
682
|
+
regionNo: 'string',
|
|
683
|
+
strictMode: 'number',
|
|
684
|
+
vpcId: 'string',
|
|
685
|
+
vswitchAuto: 'string',
|
|
686
|
+
vswitchCidr: 'string',
|
|
687
|
+
vswitchId: 'string',
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
constructor(map?: { [key: string]: any }) {
|
|
692
|
+
super(map);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
export class CreateSecurityProxyResponseBody extends $tea.Model {
|
|
697
|
+
proxyId?: string;
|
|
698
|
+
requestId?: string;
|
|
699
|
+
static names(): { [key: string]: string } {
|
|
700
|
+
return {
|
|
701
|
+
proxyId: 'ProxyId',
|
|
702
|
+
requestId: 'RequestId',
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
static types(): { [key: string]: any } {
|
|
707
|
+
return {
|
|
708
|
+
proxyId: 'string',
|
|
709
|
+
requestId: 'string',
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
constructor(map?: { [key: string]: any }) {
|
|
714
|
+
super(map);
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
export class CreateSecurityProxyResponse extends $tea.Model {
|
|
719
|
+
headers?: { [key: string]: string };
|
|
720
|
+
statusCode?: number;
|
|
721
|
+
body?: CreateSecurityProxyResponseBody;
|
|
722
|
+
static names(): { [key: string]: string } {
|
|
723
|
+
return {
|
|
724
|
+
headers: 'headers',
|
|
725
|
+
statusCode: 'statusCode',
|
|
726
|
+
body: 'body',
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
static types(): { [key: string]: any } {
|
|
731
|
+
return {
|
|
732
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
733
|
+
statusCode: 'number',
|
|
734
|
+
body: CreateSecurityProxyResponseBody,
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
constructor(map?: { [key: string]: any }) {
|
|
739
|
+
super(map);
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
|
|
581
743
|
export class CreateTrFirewallV2Request extends $tea.Model {
|
|
582
744
|
cenId?: string;
|
|
583
745
|
firewallDescription?: string;
|
|
@@ -8418,6 +8580,34 @@ export class AddInstanceMembersRequestMembers extends $tea.Model {
|
|
|
8418
8580
|
}
|
|
8419
8581
|
}
|
|
8420
8582
|
|
|
8583
|
+
export class CreateSecurityProxyRequestNatRouteEntryList extends $tea.Model {
|
|
8584
|
+
destinationCidr?: string;
|
|
8585
|
+
nextHopId?: string;
|
|
8586
|
+
nextHopType?: string;
|
|
8587
|
+
routeTableId?: string;
|
|
8588
|
+
static names(): { [key: string]: string } {
|
|
8589
|
+
return {
|
|
8590
|
+
destinationCidr: 'DestinationCidr',
|
|
8591
|
+
nextHopId: 'NextHopId',
|
|
8592
|
+
nextHopType: 'NextHopType',
|
|
8593
|
+
routeTableId: 'RouteTableId',
|
|
8594
|
+
};
|
|
8595
|
+
}
|
|
8596
|
+
|
|
8597
|
+
static types(): { [key: string]: any } {
|
|
8598
|
+
return {
|
|
8599
|
+
destinationCidr: 'string',
|
|
8600
|
+
nextHopId: 'string',
|
|
8601
|
+
nextHopType: 'string',
|
|
8602
|
+
routeTableId: 'string',
|
|
8603
|
+
};
|
|
8604
|
+
}
|
|
8605
|
+
|
|
8606
|
+
constructor(map?: { [key: string]: any }) {
|
|
8607
|
+
super(map);
|
|
8608
|
+
}
|
|
8609
|
+
}
|
|
8610
|
+
|
|
8421
8611
|
export class CreateTrFirewallV2RoutePolicyRequestDestCandidateList extends $tea.Model {
|
|
8422
8612
|
candidateId?: string;
|
|
8423
8613
|
candidateType?: string;
|
|
@@ -11877,6 +12067,39 @@ export default class Client extends OpenApi {
|
|
|
11877
12067
|
return await this.batchCopyVpcFirewallControlPolicyWithOptions(request, runtime);
|
|
11878
12068
|
}
|
|
11879
12069
|
|
|
12070
|
+
async batchDeleteVpcFirewallControlPolicyWithOptions(request: BatchDeleteVpcFirewallControlPolicyRequest, runtime: $Util.RuntimeOptions): Promise<BatchDeleteVpcFirewallControlPolicyResponse> {
|
|
12071
|
+
Util.validateModel(request);
|
|
12072
|
+
let query = { };
|
|
12073
|
+
if (!Util.isUnset(request.aclUuidList)) {
|
|
12074
|
+
query["AclUuidList"] = request.aclUuidList;
|
|
12075
|
+
}
|
|
12076
|
+
|
|
12077
|
+
if (!Util.isUnset(request.vpcFirewallId)) {
|
|
12078
|
+
query["VpcFirewallId"] = request.vpcFirewallId;
|
|
12079
|
+
}
|
|
12080
|
+
|
|
12081
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
12082
|
+
query: OpenApiUtil.query(query),
|
|
12083
|
+
});
|
|
12084
|
+
let params = new $OpenApi.Params({
|
|
12085
|
+
action: "BatchDeleteVpcFirewallControlPolicy",
|
|
12086
|
+
version: "2017-12-07",
|
|
12087
|
+
protocol: "HTTPS",
|
|
12088
|
+
pathname: "/",
|
|
12089
|
+
method: "POST",
|
|
12090
|
+
authType: "AK",
|
|
12091
|
+
style: "RPC",
|
|
12092
|
+
reqBodyType: "formData",
|
|
12093
|
+
bodyType: "json",
|
|
12094
|
+
});
|
|
12095
|
+
return $tea.cast<BatchDeleteVpcFirewallControlPolicyResponse>(await this.callApi(params, req, runtime), new BatchDeleteVpcFirewallControlPolicyResponse({}));
|
|
12096
|
+
}
|
|
12097
|
+
|
|
12098
|
+
async batchDeleteVpcFirewallControlPolicy(request: BatchDeleteVpcFirewallControlPolicyRequest): Promise<BatchDeleteVpcFirewallControlPolicyResponse> {
|
|
12099
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
12100
|
+
return await this.batchDeleteVpcFirewallControlPolicyWithOptions(request, runtime);
|
|
12101
|
+
}
|
|
12102
|
+
|
|
11880
12103
|
async createDownloadTaskWithOptions(request: CreateDownloadTaskRequest, runtime: $Util.RuntimeOptions): Promise<CreateDownloadTaskResponse> {
|
|
11881
12104
|
Util.validateModel(request);
|
|
11882
12105
|
let query = { };
|
|
@@ -12044,6 +12267,75 @@ export default class Client extends OpenApi {
|
|
|
12044
12267
|
return await this.createNatFirewallControlPolicyWithOptions(request, runtime);
|
|
12045
12268
|
}
|
|
12046
12269
|
|
|
12270
|
+
async createSecurityProxyWithOptions(request: CreateSecurityProxyRequest, runtime: $Util.RuntimeOptions): Promise<CreateSecurityProxyResponse> {
|
|
12271
|
+
Util.validateModel(request);
|
|
12272
|
+
let query = { };
|
|
12273
|
+
if (!Util.isUnset(request.firewallSwitch)) {
|
|
12274
|
+
query["FirewallSwitch"] = request.firewallSwitch;
|
|
12275
|
+
}
|
|
12276
|
+
|
|
12277
|
+
if (!Util.isUnset(request.lang)) {
|
|
12278
|
+
query["Lang"] = request.lang;
|
|
12279
|
+
}
|
|
12280
|
+
|
|
12281
|
+
if (!Util.isUnset(request.natGatewayId)) {
|
|
12282
|
+
query["NatGatewayId"] = request.natGatewayId;
|
|
12283
|
+
}
|
|
12284
|
+
|
|
12285
|
+
if (!Util.isUnset(request.natRouteEntryList)) {
|
|
12286
|
+
query["NatRouteEntryList"] = request.natRouteEntryList;
|
|
12287
|
+
}
|
|
12288
|
+
|
|
12289
|
+
if (!Util.isUnset(request.proxyName)) {
|
|
12290
|
+
query["ProxyName"] = request.proxyName;
|
|
12291
|
+
}
|
|
12292
|
+
|
|
12293
|
+
if (!Util.isUnset(request.regionNo)) {
|
|
12294
|
+
query["RegionNo"] = request.regionNo;
|
|
12295
|
+
}
|
|
12296
|
+
|
|
12297
|
+
if (!Util.isUnset(request.strictMode)) {
|
|
12298
|
+
query["StrictMode"] = request.strictMode;
|
|
12299
|
+
}
|
|
12300
|
+
|
|
12301
|
+
if (!Util.isUnset(request.vpcId)) {
|
|
12302
|
+
query["VpcId"] = request.vpcId;
|
|
12303
|
+
}
|
|
12304
|
+
|
|
12305
|
+
if (!Util.isUnset(request.vswitchAuto)) {
|
|
12306
|
+
query["VswitchAuto"] = request.vswitchAuto;
|
|
12307
|
+
}
|
|
12308
|
+
|
|
12309
|
+
if (!Util.isUnset(request.vswitchCidr)) {
|
|
12310
|
+
query["VswitchCidr"] = request.vswitchCidr;
|
|
12311
|
+
}
|
|
12312
|
+
|
|
12313
|
+
if (!Util.isUnset(request.vswitchId)) {
|
|
12314
|
+
query["VswitchId"] = request.vswitchId;
|
|
12315
|
+
}
|
|
12316
|
+
|
|
12317
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
12318
|
+
query: OpenApiUtil.query(query),
|
|
12319
|
+
});
|
|
12320
|
+
let params = new $OpenApi.Params({
|
|
12321
|
+
action: "CreateSecurityProxy",
|
|
12322
|
+
version: "2017-12-07",
|
|
12323
|
+
protocol: "HTTPS",
|
|
12324
|
+
pathname: "/",
|
|
12325
|
+
method: "POST",
|
|
12326
|
+
authType: "AK",
|
|
12327
|
+
style: "RPC",
|
|
12328
|
+
reqBodyType: "formData",
|
|
12329
|
+
bodyType: "json",
|
|
12330
|
+
});
|
|
12331
|
+
return $tea.cast<CreateSecurityProxyResponse>(await this.callApi(params, req, runtime), new CreateSecurityProxyResponse({}));
|
|
12332
|
+
}
|
|
12333
|
+
|
|
12334
|
+
async createSecurityProxy(request: CreateSecurityProxyRequest): Promise<CreateSecurityProxyResponse> {
|
|
12335
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
12336
|
+
return await this.createSecurityProxyWithOptions(request, runtime);
|
|
12337
|
+
}
|
|
12338
|
+
|
|
12047
12339
|
async createTrFirewallV2WithOptions(request: CreateTrFirewallV2Request, runtime: $Util.RuntimeOptions): Promise<CreateTrFirewallV2Response> {
|
|
12048
12340
|
Util.validateModel(request);
|
|
12049
12341
|
let query = { };
|
|
@@ -12647,6 +12939,15 @@ export default class Client extends OpenApi {
|
|
|
12647
12939
|
return await this.deleteControlPolicyTemplateWithOptions(request, runtime);
|
|
12648
12940
|
}
|
|
12649
12941
|
|
|
12942
|
+
/**
|
|
12943
|
+
* You can call this operation to delete file download tasks and delete the files.
|
|
12944
|
+
* **
|
|
12945
|
+
* **Warning** Both tasks and involved files are deleted. You can no longer download the involved files by using the download links. This operation is irreversible. Proceed with caution.
|
|
12946
|
+
*
|
|
12947
|
+
* @param request DeleteDownloadTaskRequest
|
|
12948
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
12949
|
+
* @return DeleteDownloadTaskResponse
|
|
12950
|
+
*/
|
|
12650
12951
|
async deleteDownloadTaskWithOptions(request: DeleteDownloadTaskRequest, runtime: $Util.RuntimeOptions): Promise<DeleteDownloadTaskResponse> {
|
|
12651
12952
|
Util.validateModel(request);
|
|
12652
12953
|
let query = { };
|
|
@@ -12675,6 +12976,14 @@ export default class Client extends OpenApi {
|
|
|
12675
12976
|
return $tea.cast<DeleteDownloadTaskResponse>(await this.callApi(params, req, runtime), new DeleteDownloadTaskResponse({}));
|
|
12676
12977
|
}
|
|
12677
12978
|
|
|
12979
|
+
/**
|
|
12980
|
+
* You can call this operation to delete file download tasks and delete the files.
|
|
12981
|
+
* **
|
|
12982
|
+
* **Warning** Both tasks and involved files are deleted. You can no longer download the involved files by using the download links. This operation is irreversible. Proceed with caution.
|
|
12983
|
+
*
|
|
12984
|
+
* @param request DeleteDownloadTaskRequest
|
|
12985
|
+
* @return DeleteDownloadTaskResponse
|
|
12986
|
+
*/
|
|
12678
12987
|
async deleteDownloadTask(request: DeleteDownloadTaskRequest): Promise<DeleteDownloadTaskResponse> {
|
|
12679
12988
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12680
12989
|
return await this.deleteDownloadTaskWithOptions(request, runtime);
|