@alicloud/cloudfw20171207 2.2.0 → 2.3.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 +60 -0
- package/dist/client.js +101 -1
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +116 -0
package/package.json
CHANGED
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;
|
|
@@ -11877,6 +11943,39 @@ export default class Client extends OpenApi {
|
|
|
11877
11943
|
return await this.batchCopyVpcFirewallControlPolicyWithOptions(request, runtime);
|
|
11878
11944
|
}
|
|
11879
11945
|
|
|
11946
|
+
async batchDeleteVpcFirewallControlPolicyWithOptions(request: BatchDeleteVpcFirewallControlPolicyRequest, runtime: $Util.RuntimeOptions): Promise<BatchDeleteVpcFirewallControlPolicyResponse> {
|
|
11947
|
+
Util.validateModel(request);
|
|
11948
|
+
let query = { };
|
|
11949
|
+
if (!Util.isUnset(request.aclUuidList)) {
|
|
11950
|
+
query["AclUuidList"] = request.aclUuidList;
|
|
11951
|
+
}
|
|
11952
|
+
|
|
11953
|
+
if (!Util.isUnset(request.vpcFirewallId)) {
|
|
11954
|
+
query["VpcFirewallId"] = request.vpcFirewallId;
|
|
11955
|
+
}
|
|
11956
|
+
|
|
11957
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11958
|
+
query: OpenApiUtil.query(query),
|
|
11959
|
+
});
|
|
11960
|
+
let params = new $OpenApi.Params({
|
|
11961
|
+
action: "BatchDeleteVpcFirewallControlPolicy",
|
|
11962
|
+
version: "2017-12-07",
|
|
11963
|
+
protocol: "HTTPS",
|
|
11964
|
+
pathname: "/",
|
|
11965
|
+
method: "POST",
|
|
11966
|
+
authType: "AK",
|
|
11967
|
+
style: "RPC",
|
|
11968
|
+
reqBodyType: "formData",
|
|
11969
|
+
bodyType: "json",
|
|
11970
|
+
});
|
|
11971
|
+
return $tea.cast<BatchDeleteVpcFirewallControlPolicyResponse>(await this.callApi(params, req, runtime), new BatchDeleteVpcFirewallControlPolicyResponse({}));
|
|
11972
|
+
}
|
|
11973
|
+
|
|
11974
|
+
async batchDeleteVpcFirewallControlPolicy(request: BatchDeleteVpcFirewallControlPolicyRequest): Promise<BatchDeleteVpcFirewallControlPolicyResponse> {
|
|
11975
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11976
|
+
return await this.batchDeleteVpcFirewallControlPolicyWithOptions(request, runtime);
|
|
11977
|
+
}
|
|
11978
|
+
|
|
11880
11979
|
async createDownloadTaskWithOptions(request: CreateDownloadTaskRequest, runtime: $Util.RuntimeOptions): Promise<CreateDownloadTaskResponse> {
|
|
11881
11980
|
Util.validateModel(request);
|
|
11882
11981
|
let query = { };
|
|
@@ -12647,6 +12746,15 @@ export default class Client extends OpenApi {
|
|
|
12647
12746
|
return await this.deleteControlPolicyTemplateWithOptions(request, runtime);
|
|
12648
12747
|
}
|
|
12649
12748
|
|
|
12749
|
+
/**
|
|
12750
|
+
* You can call this operation to delete file download tasks and delete the files.
|
|
12751
|
+
* **
|
|
12752
|
+
* **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.
|
|
12753
|
+
*
|
|
12754
|
+
* @param request DeleteDownloadTaskRequest
|
|
12755
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
12756
|
+
* @return DeleteDownloadTaskResponse
|
|
12757
|
+
*/
|
|
12650
12758
|
async deleteDownloadTaskWithOptions(request: DeleteDownloadTaskRequest, runtime: $Util.RuntimeOptions): Promise<DeleteDownloadTaskResponse> {
|
|
12651
12759
|
Util.validateModel(request);
|
|
12652
12760
|
let query = { };
|
|
@@ -12675,6 +12783,14 @@ export default class Client extends OpenApi {
|
|
|
12675
12783
|
return $tea.cast<DeleteDownloadTaskResponse>(await this.callApi(params, req, runtime), new DeleteDownloadTaskResponse({}));
|
|
12676
12784
|
}
|
|
12677
12785
|
|
|
12786
|
+
/**
|
|
12787
|
+
* You can call this operation to delete file download tasks and delete the files.
|
|
12788
|
+
* **
|
|
12789
|
+
* **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.
|
|
12790
|
+
*
|
|
12791
|
+
* @param request DeleteDownloadTaskRequest
|
|
12792
|
+
* @return DeleteDownloadTaskResponse
|
|
12793
|
+
*/
|
|
12678
12794
|
async deleteDownloadTask(request: DeleteDownloadTaskRequest): Promise<DeleteDownloadTaskResponse> {
|
|
12679
12795
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12680
12796
|
return await this.deleteDownloadTaskWithOptions(request, runtime);
|