@alicloud/waf-openapi20211001 4.4.0 → 4.6.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 +45 -0
- package/dist/client.js +162 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateCertsRequest.d.ts +66 -0
- package/dist/models/CreateCertsRequest.js +68 -0
- package/dist/models/CreateCertsRequest.js.map +1 -0
- package/dist/models/CreateCertsResponse.d.ts +19 -0
- package/dist/models/CreateCertsResponse.js +69 -0
- package/dist/models/CreateCertsResponse.js.map +1 -0
- package/dist/models/CreateCertsResponseBody.d.ts +29 -0
- package/dist/models/CreateCertsResponseBody.js +60 -0
- package/dist/models/CreateCertsResponseBody.js.map +1 -0
- package/dist/models/CreateDefenseTemplateRequest.d.ts +2 -0
- package/dist/models/CreateDefenseTemplateRequest.js +10 -0
- package/dist/models/CreateDefenseTemplateRequest.js.map +1 -1
- package/dist/models/DescribeDefenseResourceOwnerUidRequest.d.ts +39 -0
- package/dist/models/DescribeDefenseResourceOwnerUidRequest.js +64 -0
- package/dist/models/DescribeDefenseResourceOwnerUidRequest.js.map +1 -0
- package/dist/models/DescribeDefenseResourceOwnerUidResponse.d.ts +19 -0
- package/dist/models/DescribeDefenseResourceOwnerUidResponse.js +69 -0
- package/dist/models/DescribeDefenseResourceOwnerUidResponse.js.map +1 -0
- package/dist/models/DescribeDefenseResourceOwnerUidResponseBody.d.ts +20 -0
- package/dist/models/DescribeDefenseResourceOwnerUidResponseBody.js +64 -0
- package/dist/models/DescribeDefenseResourceOwnerUidResponseBody.js.map +1 -0
- package/dist/models/DescribeDefenseResourceOwnerUidResponseBodyOwnerInfos.d.ts +23 -0
- package/dist/models/DescribeDefenseResourceOwnerUidResponseBodyOwnerInfos.js +60 -0
- package/dist/models/DescribeDefenseResourceOwnerUidResponseBodyOwnerInfos.js.map +1 -0
- package/dist/models/DescribeDefenseRulesRequest.d.ts +1 -0
- package/dist/models/DescribeDefenseRulesRequest.js +2 -0
- package/dist/models/DescribeDefenseRulesRequest.js.map +1 -1
- package/dist/models/DescribeDomainDetailResponseBodyListen.d.ts +1 -1
- package/dist/models/DescribeDomainDetailResponseBodyListen.js +1 -1
- package/dist/models/DescribeDomainUsedPortsRequest.d.ts +26 -0
- package/dist/models/DescribeDomainUsedPortsRequest.js +60 -0
- package/dist/models/DescribeDomainUsedPortsRequest.js.map +1 -0
- package/dist/models/DescribeDomainUsedPortsResponse.d.ts +19 -0
- package/dist/models/DescribeDomainUsedPortsResponse.js +69 -0
- package/dist/models/DescribeDomainUsedPortsResponse.js.map +1 -0
- package/dist/models/DescribeDomainUsedPortsResponseBody.d.ts +19 -0
- package/dist/models/DescribeDomainUsedPortsResponseBody.js +63 -0
- package/dist/models/DescribeDomainUsedPortsResponseBody.js.map +1 -0
- package/dist/models/DescribeTemplateResourcesRequest.d.ts +3 -0
- package/dist/models/DescribeTemplateResourcesRequest.js +6 -0
- package/dist/models/DescribeTemplateResourcesRequest.js.map +1 -1
- package/dist/models/DescribeTemplateResourcesResponseBody.d.ts +3 -0
- package/dist/models/DescribeTemplateResourcesResponseBody.js +6 -0
- package/dist/models/DescribeTemplateResourcesResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +10 -0
- package/dist/models/model.js +34 -14
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +186 -0
- package/src/models/CreateCertsRequest.ts +89 -0
- package/src/models/CreateCertsResponse.ts +40 -0
- package/src/models/CreateCertsResponseBody.ts +44 -0
- package/src/models/CreateDefenseTemplateRequest.ts +12 -0
- package/src/models/DescribeDefenseResourceOwnerUidRequest.ts +58 -0
- package/src/models/DescribeDefenseResourceOwnerUidResponse.ts +40 -0
- package/src/models/DescribeDefenseResourceOwnerUidResponseBody.ts +38 -0
- package/src/models/DescribeDefenseResourceOwnerUidResponseBodyOwnerInfos.ts +38 -0
- package/src/models/DescribeDefenseRulesRequest.ts +3 -0
- package/src/models/DescribeDomainDetailResponseBodyListen.ts +2 -2
- package/src/models/DescribeDomainUsedPortsRequest.ts +41 -0
- package/src/models/DescribeDomainUsedPortsResponse.ts +40 -0
- package/src/models/DescribeDomainUsedPortsResponseBody.ts +37 -0
- package/src/models/DescribeTemplateResourcesRequest.ts +9 -0
- package/src/models/DescribeTemplateResourcesResponseBody.ts +9 -0
- package/src/models/model.ts +10 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateCertsRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The content of the certificate.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* -----BEGIN CERTIFICATE----- 62EcYPWd2****s6MTXcJSfN9Z7rZ9fmxWr2BFN2XbahgnsSXM48ixZJ4krc+1M+j2kcubVpsE2cgHdj4v8H6jUz9Ji4mr7vMNS6dXv8PUkl/qoDeNGCNdyTS5NIL5ir+g92cL8IGOkjgvhlqt9vc65Cgb4mL+n5+DV9uOyTZTW/MojmlgfUekC2xiXa54nxJf17Y1TADGSbyJbsC0Q9nIrHsPl8YKkvRWvIAqYxXZ7wRwWWmv4TMxFhWRiNY7yZIo2ZUhl02S****gIEeg== -----END CERTIFICATE-----
|
|
12
|
+
*/
|
|
13
|
+
certContent?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The private key that corresponds to the certificate.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* -----BEGIN RSA PRIVATE KEY----- DADTPZoOHd9WtZ3U****RgNQmioPQn2bqdKHop+B/dn/4VZL7Jt8zSDGM9sTMThLyvsmLQKBgQCr+ujntC1kN6pGBj2Fw2l/EA/W3rYEce2tyhjgmG7rZ+A/jVE9fld5sQra6ZdwBcQJaiygoIYoaMF2EjRwc0qwHaluq0C15f6ujSoHh2e+D5zdmkTg/3NKNjqNv6xA2gYpinVDzFdZ9Zujxvuh9o4Vqf0YF8****K5G04RtKadOw== -----END RSA PRIVATE KEY-----
|
|
20
|
+
*/
|
|
21
|
+
certKey?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The name of the certificate.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* testrsa1
|
|
28
|
+
*/
|
|
29
|
+
certName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The ID of the WAF instance.
|
|
33
|
+
*
|
|
34
|
+
* > You can call the [DescribeInstance](https://help.aliyun.com/document_detail/433756.html) operation to query the ID of the WAF instance.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* waf_v2_public_cn-20p****nw01
|
|
38
|
+
*/
|
|
39
|
+
instanceId?: string;
|
|
40
|
+
/**
|
|
41
|
+
* @remarks
|
|
42
|
+
* The region in which the WAF instance is deployed. Valid values:
|
|
43
|
+
*
|
|
44
|
+
* * **cn-hangzhou**: Chinese mainland.
|
|
45
|
+
* * **ap-southeast-1**: outside the Chinese mainland.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* cn-hangzhou
|
|
49
|
+
*/
|
|
50
|
+
regionId?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @remarks
|
|
53
|
+
* The ID of the Alibaba Cloud resource group.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* rg-acfm***q
|
|
57
|
+
*/
|
|
58
|
+
resourceManagerResourceGroupId?: string;
|
|
59
|
+
static names(): { [key: string]: string } {
|
|
60
|
+
return {
|
|
61
|
+
certContent: 'CertContent',
|
|
62
|
+
certKey: 'CertKey',
|
|
63
|
+
certName: 'CertName',
|
|
64
|
+
instanceId: 'InstanceId',
|
|
65
|
+
regionId: 'RegionId',
|
|
66
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
static types(): { [key: string]: any } {
|
|
71
|
+
return {
|
|
72
|
+
certContent: 'string',
|
|
73
|
+
certKey: 'string',
|
|
74
|
+
certName: 'string',
|
|
75
|
+
instanceId: 'string',
|
|
76
|
+
regionId: 'string',
|
|
77
|
+
resourceManagerResourceGroupId: 'string',
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
validate() {
|
|
82
|
+
super.validate();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
constructor(map?: { [key: string]: any }) {
|
|
86
|
+
super(map);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateCertsResponseBody } from "./CreateCertsResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateCertsResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateCertsResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CreateCertsResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateCertsResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The ID of the certificate.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 123456-cn-hangzhou
|
|
12
|
+
*/
|
|
13
|
+
certIdentifier?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The ID of the request.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 5BBA38B1-07AE-559F-8766-AB50****C300
|
|
20
|
+
*/
|
|
21
|
+
requestId?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
certIdentifier: 'CertIdentifier',
|
|
25
|
+
requestId: 'RequestId',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
certIdentifier: 'string',
|
|
32
|
+
requestId: 'string',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
validate() {
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -98,6 +98,8 @@ export class CreateDefenseTemplateRequest extends $dara.Model {
|
|
|
98
98
|
* user_default
|
|
99
99
|
*/
|
|
100
100
|
templateType?: string;
|
|
101
|
+
unbindResourceGroups?: string[];
|
|
102
|
+
unbindResources?: string[];
|
|
101
103
|
static names(): { [key: string]: string } {
|
|
102
104
|
return {
|
|
103
105
|
defenseScene: 'DefenseScene',
|
|
@@ -109,6 +111,8 @@ export class CreateDefenseTemplateRequest extends $dara.Model {
|
|
|
109
111
|
templateOrigin: 'TemplateOrigin',
|
|
110
112
|
templateStatus: 'TemplateStatus',
|
|
111
113
|
templateType: 'TemplateType',
|
|
114
|
+
unbindResourceGroups: 'UnbindResourceGroups',
|
|
115
|
+
unbindResources: 'UnbindResources',
|
|
112
116
|
};
|
|
113
117
|
}
|
|
114
118
|
|
|
@@ -123,10 +127,18 @@ export class CreateDefenseTemplateRequest extends $dara.Model {
|
|
|
123
127
|
templateOrigin: 'string',
|
|
124
128
|
templateStatus: 'number',
|
|
125
129
|
templateType: 'string',
|
|
130
|
+
unbindResourceGroups: { 'type': 'array', 'itemType': 'string' },
|
|
131
|
+
unbindResources: { 'type': 'array', 'itemType': 'string' },
|
|
126
132
|
};
|
|
127
133
|
}
|
|
128
134
|
|
|
129
135
|
validate() {
|
|
136
|
+
if(Array.isArray(this.unbindResourceGroups)) {
|
|
137
|
+
$dara.Model.validateArray(this.unbindResourceGroups);
|
|
138
|
+
}
|
|
139
|
+
if(Array.isArray(this.unbindResources)) {
|
|
140
|
+
$dara.Model.validateArray(this.unbindResources);
|
|
141
|
+
}
|
|
130
142
|
super.validate();
|
|
131
143
|
}
|
|
132
144
|
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeDefenseResourceOwnerUidRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* waf_v2_public_cn********60f
|
|
12
|
+
*/
|
|
13
|
+
instanceId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @example
|
|
16
|
+
* cn-hangzhou
|
|
17
|
+
*/
|
|
18
|
+
regionId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* rg-acfm***q
|
|
22
|
+
*/
|
|
23
|
+
resourceManagerResourceGroupId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* This parameter is required.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* a.com-waf,b.com-waf
|
|
30
|
+
*/
|
|
31
|
+
resourceNames?: string;
|
|
32
|
+
static names(): { [key: string]: string } {
|
|
33
|
+
return {
|
|
34
|
+
instanceId: 'InstanceId',
|
|
35
|
+
regionId: 'RegionId',
|
|
36
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
37
|
+
resourceNames: 'ResourceNames',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static types(): { [key: string]: any } {
|
|
42
|
+
return {
|
|
43
|
+
instanceId: 'string',
|
|
44
|
+
regionId: 'string',
|
|
45
|
+
resourceManagerResourceGroupId: 'string',
|
|
46
|
+
resourceNames: 'string',
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
validate() {
|
|
51
|
+
super.validate();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
constructor(map?: { [key: string]: any }) {
|
|
55
|
+
super(map);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeDefenseResourceOwnerUidResponseBody } from "./DescribeDefenseResourceOwnerUidResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeDefenseResourceOwnerUidResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeDefenseResourceOwnerUidResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DescribeDefenseResourceOwnerUidResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeDefenseResourceOwnerUidResponseBodyOwnerInfos } from "./DescribeDefenseResourceOwnerUidResponseBodyOwnerInfos";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeDefenseResourceOwnerUidResponseBody extends $dara.Model {
|
|
7
|
+
ownerInfos?: DescribeDefenseResourceOwnerUidResponseBodyOwnerInfos[];
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* 7326952B-B83B-5B7C-84FA-77F3E17310A2
|
|
11
|
+
*/
|
|
12
|
+
requestId?: string;
|
|
13
|
+
static names(): { [key: string]: string } {
|
|
14
|
+
return {
|
|
15
|
+
ownerInfos: 'OwnerInfos',
|
|
16
|
+
requestId: 'RequestId',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
ownerInfos: { 'type': 'array', 'itemType': DescribeDefenseResourceOwnerUidResponseBodyOwnerInfos },
|
|
23
|
+
requestId: 'string',
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
validate() {
|
|
28
|
+
if(Array.isArray(this.ownerInfos)) {
|
|
29
|
+
$dara.Model.validateArray(this.ownerInfos);
|
|
30
|
+
}
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeDefenseResourceOwnerUidResponseBodyOwnerInfos extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 125************21
|
|
9
|
+
*/
|
|
10
|
+
ownerUserId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* a.com-waf
|
|
14
|
+
*/
|
|
15
|
+
resourceName?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
ownerUserId: 'OwnerUserId',
|
|
19
|
+
resourceName: 'ResourceName',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
ownerUserId: 'string',
|
|
26
|
+
resourceName: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class DescribeDefenseRulesRequest extends $dara.Model {
|
|
6
|
+
defenseType?: string;
|
|
6
7
|
/**
|
|
7
8
|
* @remarks
|
|
8
9
|
* The ID of the Web Application Firewall (WAF) instance.
|
|
@@ -73,6 +74,7 @@ export class DescribeDefenseRulesRequest extends $dara.Model {
|
|
|
73
74
|
ruleType?: string;
|
|
74
75
|
static names(): { [key: string]: string } {
|
|
75
76
|
return {
|
|
77
|
+
defenseType: 'DefenseType',
|
|
76
78
|
instanceId: 'InstanceId',
|
|
77
79
|
pageNumber: 'PageNumber',
|
|
78
80
|
pageSize: 'PageSize',
|
|
@@ -85,6 +87,7 @@ export class DescribeDefenseRulesRequest extends $dara.Model {
|
|
|
85
87
|
|
|
86
88
|
static types(): { [key: string]: any } {
|
|
87
89
|
return {
|
|
90
|
+
defenseType: 'string',
|
|
88
91
|
instanceId: 'string',
|
|
89
92
|
pageNumber: 'number',
|
|
90
93
|
pageSize: 'number',
|
|
@@ -10,7 +10,7 @@ export class DescribeDomainDetailResponseBodyListen extends $dara.Model {
|
|
|
10
10
|
* @example
|
|
11
11
|
* 123
|
|
12
12
|
*/
|
|
13
|
-
certId?:
|
|
13
|
+
certId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
16
|
* The type of the cipher suites. Valid values:
|
|
@@ -187,7 +187,7 @@ export class DescribeDomainDetailResponseBodyListen extends $dara.Model {
|
|
|
187
187
|
|
|
188
188
|
static types(): { [key: string]: any } {
|
|
189
189
|
return {
|
|
190
|
-
certId: '
|
|
190
|
+
certId: 'string',
|
|
191
191
|
cipherSuite: 'number',
|
|
192
192
|
customCiphers: { 'type': 'array', 'itemType': 'string' },
|
|
193
193
|
enableTLSv3: 'boolean',
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeDomainUsedPortsRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* waf_elasticity-cn-0xldbqt****
|
|
12
|
+
*/
|
|
13
|
+
instanceId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @example
|
|
16
|
+
* cn-hangzhou
|
|
17
|
+
*/
|
|
18
|
+
regionId?: string;
|
|
19
|
+
static names(): { [key: string]: string } {
|
|
20
|
+
return {
|
|
21
|
+
instanceId: 'InstanceId',
|
|
22
|
+
regionId: 'RegionId',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static types(): { [key: string]: any } {
|
|
27
|
+
return {
|
|
28
|
+
instanceId: 'string',
|
|
29
|
+
regionId: 'string',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
validate() {
|
|
34
|
+
super.validate();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
constructor(map?: { [key: string]: any }) {
|
|
38
|
+
super(map);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeDomainUsedPortsResponseBody } from "./DescribeDomainUsedPortsResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeDomainUsedPortsResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeDomainUsedPortsResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DescribeDomainUsedPortsResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeDomainUsedPortsResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* D7861F61-5B61-*-A47C-*
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
usedPorts?: number[];
|
|
12
|
+
static names(): { [key: string]: string } {
|
|
13
|
+
return {
|
|
14
|
+
requestId: 'RequestId',
|
|
15
|
+
usedPorts: 'UsedPorts',
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static types(): { [key: string]: any } {
|
|
20
|
+
return {
|
|
21
|
+
requestId: 'string',
|
|
22
|
+
usedPorts: { 'type': 'array', 'itemType': 'number' },
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(Array.isArray(this.usedPorts)) {
|
|
28
|
+
$dara.Model.validateArray(this.usedPorts);
|
|
29
|
+
}
|
|
30
|
+
super.validate();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
constructor(map?: { [key: string]: any }) {
|
|
34
|
+
super(map);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -15,6 +15,8 @@ export class DescribeTemplateResourcesRequest extends $dara.Model {
|
|
|
15
15
|
* waf_cdnsdf3****
|
|
16
16
|
*/
|
|
17
17
|
instanceId?: string;
|
|
18
|
+
maxResults?: number;
|
|
19
|
+
nextToken?: string;
|
|
18
20
|
/**
|
|
19
21
|
* @remarks
|
|
20
22
|
* The region where the WAF instance resides. Valid values:
|
|
@@ -26,6 +28,7 @@ export class DescribeTemplateResourcesRequest extends $dara.Model {
|
|
|
26
28
|
* cn-hangzhou
|
|
27
29
|
*/
|
|
28
30
|
regionId?: string;
|
|
31
|
+
resource?: string;
|
|
29
32
|
/**
|
|
30
33
|
* @remarks
|
|
31
34
|
* The ID of the Alibaba Cloud resource group.
|
|
@@ -60,7 +63,10 @@ export class DescribeTemplateResourcesRequest extends $dara.Model {
|
|
|
60
63
|
static names(): { [key: string]: string } {
|
|
61
64
|
return {
|
|
62
65
|
instanceId: 'InstanceId',
|
|
66
|
+
maxResults: 'MaxResults',
|
|
67
|
+
nextToken: 'NextToken',
|
|
63
68
|
regionId: 'RegionId',
|
|
69
|
+
resource: 'Resource',
|
|
64
70
|
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
65
71
|
resourceType: 'ResourceType',
|
|
66
72
|
templateId: 'TemplateId',
|
|
@@ -70,7 +76,10 @@ export class DescribeTemplateResourcesRequest extends $dara.Model {
|
|
|
70
76
|
static types(): { [key: string]: any } {
|
|
71
77
|
return {
|
|
72
78
|
instanceId: 'string',
|
|
79
|
+
maxResults: 'number',
|
|
80
|
+
nextToken: 'string',
|
|
73
81
|
regionId: 'string',
|
|
82
|
+
resource: 'string',
|
|
74
83
|
resourceManagerResourceGroupId: 'string',
|
|
75
84
|
resourceType: 'string',
|
|
76
85
|
templateId: 'number',
|
|
@@ -3,6 +3,8 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class DescribeTemplateResourcesResponseBody extends $dara.Model {
|
|
6
|
+
maxResults?: number;
|
|
7
|
+
nextToken?: string;
|
|
6
8
|
/**
|
|
7
9
|
* @remarks
|
|
8
10
|
* The ID of the request.
|
|
@@ -16,17 +18,24 @@ export class DescribeTemplateResourcesResponseBody extends $dara.Model {
|
|
|
16
18
|
* An array of protected objects or protected object groups that are associated to the protection rule template.
|
|
17
19
|
*/
|
|
18
20
|
resources?: string[];
|
|
21
|
+
totalCount?: number;
|
|
19
22
|
static names(): { [key: string]: string } {
|
|
20
23
|
return {
|
|
24
|
+
maxResults: 'MaxResults',
|
|
25
|
+
nextToken: 'NextToken',
|
|
21
26
|
requestId: 'RequestId',
|
|
22
27
|
resources: 'Resources',
|
|
28
|
+
totalCount: 'TotalCount',
|
|
23
29
|
};
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
static types(): { [key: string]: any } {
|
|
27
33
|
return {
|
|
34
|
+
maxResults: 'number',
|
|
35
|
+
nextToken: 'string',
|
|
28
36
|
requestId: 'string',
|
|
29
37
|
resources: { 'type': 'array', 'itemType': 'string' },
|
|
38
|
+
totalCount: 'number',
|
|
30
39
|
};
|
|
31
40
|
}
|
|
32
41
|
|
package/src/models/model.ts
CHANGED
|
@@ -44,6 +44,7 @@ export { DescribeDefenseResourceResponseBodyResourceResponseHeaders } from './De
|
|
|
44
44
|
export { DescribeDefenseResourceResponseBodyResource } from './DescribeDefenseResourceResponseBodyResource';
|
|
45
45
|
export { DescribeDefenseResourceGroupResponseBodyGroup } from './DescribeDefenseResourceGroupResponseBodyGroup';
|
|
46
46
|
export { DescribeDefenseResourceGroupsResponseBodyGroups } from './DescribeDefenseResourceGroupsResponseBodyGroups';
|
|
47
|
+
export { DescribeDefenseResourceOwnerUidResponseBodyOwnerInfos } from './DescribeDefenseResourceOwnerUidResponseBodyOwnerInfos';
|
|
47
48
|
export { DescribeDefenseResourceTemplatesResponseBodyTemplates } from './DescribeDefenseResourceTemplatesResponseBodyTemplates';
|
|
48
49
|
export { DescribeDefenseResourcesRequestTag } from './DescribeDefenseResourcesRequestTag';
|
|
49
50
|
export { DescribeDefenseResourcesResponseBodyResourcesResponseHeaders } from './DescribeDefenseResourcesResponseBodyResourcesResponseHeaders';
|
|
@@ -179,6 +180,9 @@ export { CopyDefenseTemplateResponse } from './CopyDefenseTemplateResponse';
|
|
|
179
180
|
export { CreateApiExportRequest } from './CreateApiExportRequest';
|
|
180
181
|
export { CreateApiExportResponseBody } from './CreateApiExportResponseBody';
|
|
181
182
|
export { CreateApiExportResponse } from './CreateApiExportResponse';
|
|
183
|
+
export { CreateCertsRequest } from './CreateCertsRequest';
|
|
184
|
+
export { CreateCertsResponseBody } from './CreateCertsResponseBody';
|
|
185
|
+
export { CreateCertsResponse } from './CreateCertsResponse';
|
|
182
186
|
export { CreateCloudResourceRequest } from './CreateCloudResourceRequest';
|
|
183
187
|
export { CreateCloudResourceShrinkRequest } from './CreateCloudResourceShrinkRequest';
|
|
184
188
|
export { CreateCloudResourceResponseBody } from './CreateCloudResourceResponseBody';
|
|
@@ -344,6 +348,9 @@ export { DescribeDefenseResourceGroupsResponse } from './DescribeDefenseResource
|
|
|
344
348
|
export { DescribeDefenseResourceNamesRequest } from './DescribeDefenseResourceNamesRequest';
|
|
345
349
|
export { DescribeDefenseResourceNamesResponseBody } from './DescribeDefenseResourceNamesResponseBody';
|
|
346
350
|
export { DescribeDefenseResourceNamesResponse } from './DescribeDefenseResourceNamesResponse';
|
|
351
|
+
export { DescribeDefenseResourceOwnerUidRequest } from './DescribeDefenseResourceOwnerUidRequest';
|
|
352
|
+
export { DescribeDefenseResourceOwnerUidResponseBody } from './DescribeDefenseResourceOwnerUidResponseBody';
|
|
353
|
+
export { DescribeDefenseResourceOwnerUidResponse } from './DescribeDefenseResourceOwnerUidResponse';
|
|
347
354
|
export { DescribeDefenseResourceTemplatesRequest } from './DescribeDefenseResourceTemplatesRequest';
|
|
348
355
|
export { DescribeDefenseResourceTemplatesResponseBody } from './DescribeDefenseResourceTemplatesResponseBody';
|
|
349
356
|
export { DescribeDefenseResourceTemplatesResponse } from './DescribeDefenseResourceTemplatesResponse';
|
|
@@ -371,6 +378,9 @@ export { DescribeDomainDNSRecordResponse } from './DescribeDomainDnsrecordRespon
|
|
|
371
378
|
export { DescribeDomainDetailRequest } from './DescribeDomainDetailRequest';
|
|
372
379
|
export { DescribeDomainDetailResponseBody } from './DescribeDomainDetailResponseBody';
|
|
373
380
|
export { DescribeDomainDetailResponse } from './DescribeDomainDetailResponse';
|
|
381
|
+
export { DescribeDomainUsedPortsRequest } from './DescribeDomainUsedPortsRequest';
|
|
382
|
+
export { DescribeDomainUsedPortsResponseBody } from './DescribeDomainUsedPortsResponseBody';
|
|
383
|
+
export { DescribeDomainUsedPortsResponse } from './DescribeDomainUsedPortsResponse';
|
|
374
384
|
export { DescribeDomainsRequest } from './DescribeDomainsRequest';
|
|
375
385
|
export { DescribeDomainsResponseBody } from './DescribeDomainsResponseBody';
|
|
376
386
|
export { DescribeDomainsResponse } from './DescribeDomainsResponse';
|