@alicloud/waf-openapi20211001 5.5.1 → 5.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 +105 -0
- package/dist/client.js +351 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateMajorProtectionBlackIpV2request.d.ts +68 -0
- package/dist/models/CreateMajorProtectionBlackIpV2request.js +72 -0
- package/dist/models/CreateMajorProtectionBlackIpV2request.js.map +1 -0
- package/dist/models/CreateMajorProtectionBlackIpV2response.d.ts +19 -0
- package/dist/models/CreateMajorProtectionBlackIpV2response.js +69 -0
- package/dist/models/CreateMajorProtectionBlackIpV2response.js.map +1 -0
- package/dist/models/CreateMajorProtectionBlackIpV2responseBody.d.ts +18 -0
- package/dist/models/CreateMajorProtectionBlackIpV2responseBody.js +58 -0
- package/dist/models/CreateMajorProtectionBlackIpV2responseBody.js.map +1 -0
- package/dist/models/CreatePocFunctionRequest.d.ts +39 -0
- package/dist/models/CreatePocFunctionRequest.js +64 -0
- package/dist/models/CreatePocFunctionRequest.js.map +1 -0
- package/dist/models/CreatePocFunctionResponse.d.ts +19 -0
- package/dist/models/CreatePocFunctionResponse.js +69 -0
- package/dist/models/CreatePocFunctionResponse.js.map +1 -0
- package/dist/models/CreatePocFunctionResponseBody.d.ts +18 -0
- package/dist/models/CreatePocFunctionResponseBody.js +58 -0
- package/dist/models/CreatePocFunctionResponseBody.js.map +1 -0
- package/dist/models/DescribeChargeModuleRequest.d.ts +31 -0
- package/dist/models/DescribeChargeModuleRequest.js +62 -0
- package/dist/models/DescribeChargeModuleRequest.js.map +1 -0
- package/dist/models/DescribeChargeModuleResponse.d.ts +19 -0
- package/dist/models/DescribeChargeModuleResponse.js +69 -0
- package/dist/models/DescribeChargeModuleResponse.js.map +1 -0
- package/dist/models/DescribeChargeModuleResponseBody.d.ts +57 -0
- package/dist/models/DescribeChargeModuleResponseBody.js +95 -0
- package/dist/models/DescribeChargeModuleResponseBody.js.map +1 -0
- package/dist/models/DescribeChargeResultRequest.d.ts +63 -0
- package/dist/models/DescribeChargeResultRequest.js +90 -0
- package/dist/models/DescribeChargeResultRequest.js.map +1 -0
- package/dist/models/DescribeChargeResultResponse.d.ts +19 -0
- package/dist/models/DescribeChargeResultResponse.js +69 -0
- package/dist/models/DescribeChargeResultResponse.js.map +1 -0
- package/dist/models/DescribeChargeResultResponseBody.d.ts +46 -0
- package/dist/models/DescribeChargeResultResponseBody.js +86 -0
- package/dist/models/DescribeChargeResultResponseBody.js.map +1 -0
- package/dist/models/DescribeDefenseRulesResponseBody.d.ts +30 -0
- package/dist/models/DescribeDefenseRulesResponseBody.js.map +1 -1
- package/dist/models/DescribePocFunctionsRequest.d.ts +31 -0
- package/dist/models/DescribePocFunctionsRequest.js +62 -0
- package/dist/models/DescribePocFunctionsRequest.js.map +1 -0
- package/dist/models/DescribePocFunctionsResponse.d.ts +19 -0
- package/dist/models/DescribePocFunctionsResponse.js +69 -0
- package/dist/models/DescribePocFunctionsResponse.js.map +1 -0
- package/dist/models/DescribePocFunctionsResponseBody.d.ts +41 -0
- package/dist/models/DescribePocFunctionsResponseBody.js +84 -0
- package/dist/models/DescribePocFunctionsResponseBody.js.map +1 -0
- package/dist/models/DescribeTemplateResourceCountResponseBody.d.ts +5 -0
- package/dist/models/DescribeTemplateResourceCountResponseBody.js +2 -0
- package/dist/models/DescribeTemplateResourceCountResponseBody.js.map +1 -1
- package/dist/models/DescribeTemplateResourcesRequest.d.ts +5 -0
- package/dist/models/DescribeTemplateResourcesRequest.js +2 -0
- package/dist/models/DescribeTemplateResourcesRequest.js.map +1 -1
- package/dist/models/DescribeVerifyContentRequest.d.ts +37 -0
- package/dist/models/DescribeVerifyContentRequest.js +62 -0
- package/dist/models/DescribeVerifyContentRequest.js.map +1 -0
- package/dist/models/DescribeVerifyContentResponse.d.ts +19 -0
- package/dist/models/DescribeVerifyContentResponse.js +69 -0
- package/dist/models/DescribeVerifyContentResponse.js.map +1 -0
- package/dist/models/DescribeVerifyContentResponseBody.d.ts +89 -0
- package/dist/models/DescribeVerifyContentResponseBody.js +120 -0
- package/dist/models/DescribeVerifyContentResponseBody.js.map +1 -0
- package/dist/models/ModifyTemplateResourcesRequest.d.ts +2 -0
- package/dist/models/ModifyTemplateResourcesRequest.js +10 -0
- package/dist/models/ModifyTemplateResourcesRequest.js.map +1 -1
- package/dist/models/VerifyDomainOwnerRequest.d.ts +61 -0
- package/dist/models/VerifyDomainOwnerRequest.js +64 -0
- package/dist/models/VerifyDomainOwnerRequest.js.map +1 -0
- package/dist/models/VerifyDomainOwnerResponse.d.ts +19 -0
- package/dist/models/VerifyDomainOwnerResponse.js +69 -0
- package/dist/models/VerifyDomainOwnerResponse.js.map +1 -0
- package/dist/models/VerifyDomainOwnerResponseBody.d.ts +63 -0
- package/dist/models/VerifyDomainOwnerResponseBody.js +84 -0
- package/dist/models/VerifyDomainOwnerResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +28 -0
- package/dist/models/model.js +73 -16
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +398 -0
- package/src/models/CreateMajorProtectionBlackIpV2request.ts +95 -0
- package/src/models/CreateMajorProtectionBlackIpV2response.ts +40 -0
- package/src/models/CreateMajorProtectionBlackIpV2responseBody.ts +31 -0
- package/src/models/CreatePocFunctionRequest.ts +58 -0
- package/src/models/CreatePocFunctionResponse.ts +40 -0
- package/src/models/CreatePocFunctionResponseBody.ts +31 -0
- package/src/models/DescribeChargeModuleRequest.ts +48 -0
- package/src/models/DescribeChargeModuleResponse.ts +40 -0
- package/src/models/DescribeChargeModuleResponseBody.ts +98 -0
- package/src/models/DescribeChargeResultRequest.ts +99 -0
- package/src/models/DescribeChargeResultResponse.ts +40 -0
- package/src/models/DescribeChargeResultResponseBody.ts +78 -0
- package/src/models/DescribeDefenseRulesResponseBody.ts +30 -0
- package/src/models/DescribePocFunctionsRequest.ts +48 -0
- package/src/models/DescribePocFunctionsResponse.ts +40 -0
- package/src/models/DescribePocFunctionsResponseBody.ts +71 -0
- package/src/models/DescribeTemplateResourceCountResponseBody.ts +7 -0
- package/src/models/DescribeTemplateResourcesRequest.ts +7 -0
- package/src/models/DescribeVerifyContentRequest.ts +54 -0
- package/src/models/DescribeVerifyContentResponse.ts +40 -0
- package/src/models/DescribeVerifyContentResponseBody.ts +146 -0
- package/src/models/ModifyTemplateResourcesRequest.ts +12 -0
- package/src/models/VerifyDomainOwnerRequest.ts +80 -0
- package/src/models/VerifyDomainOwnerResponse.ts +40 -0
- package/src/models/VerifyDomainOwnerResponseBody.ts +93 -0
- package/src/models/model.ts +28 -0
|
@@ -3,6 +3,12 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class DescribeDefenseRulesResponseBodyRules extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* {"empty":"test"}
|
|
9
|
+
*
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
6
12
|
actionExternal?: string;
|
|
7
13
|
/**
|
|
8
14
|
* @remarks
|
|
@@ -46,8 +52,26 @@ export class DescribeDefenseRulesResponseBodyRules extends $dara.Model {
|
|
|
46
52
|
*/
|
|
47
53
|
defenseScene?: string;
|
|
48
54
|
defenseType?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @example
|
|
57
|
+
* test
|
|
58
|
+
*
|
|
59
|
+
* @deprecated
|
|
60
|
+
*/
|
|
49
61
|
description?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @example
|
|
64
|
+
* 123,456
|
|
65
|
+
*
|
|
66
|
+
* @deprecated
|
|
67
|
+
*/
|
|
50
68
|
detailRuleIds?: string;
|
|
69
|
+
/**
|
|
70
|
+
* @example
|
|
71
|
+
* empty
|
|
72
|
+
*
|
|
73
|
+
* @deprecated
|
|
74
|
+
*/
|
|
51
75
|
externalInfo?: string;
|
|
52
76
|
gmtCreate?: number;
|
|
53
77
|
/**
|
|
@@ -75,6 +99,12 @@ export class DescribeDefenseRulesResponseBodyRules extends $dara.Model {
|
|
|
75
99
|
* rules_41
|
|
76
100
|
*/
|
|
77
101
|
ruleName?: string;
|
|
102
|
+
/**
|
|
103
|
+
* @example
|
|
104
|
+
* test
|
|
105
|
+
*
|
|
106
|
+
* @deprecated
|
|
107
|
+
*/
|
|
78
108
|
ruleType?: string;
|
|
79
109
|
/**
|
|
80
110
|
* @remarks
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribePocFunctionsRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* waf_cdnsdf3****
|
|
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
|
+
static names(): { [key: string]: string } {
|
|
25
|
+
return {
|
|
26
|
+
instanceId: 'InstanceId',
|
|
27
|
+
regionId: 'RegionId',
|
|
28
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static types(): { [key: string]: any } {
|
|
33
|
+
return {
|
|
34
|
+
instanceId: 'string',
|
|
35
|
+
regionId: 'string',
|
|
36
|
+
resourceManagerResourceGroupId: 'string',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
validate() {
|
|
41
|
+
super.validate();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(map?: { [key: string]: any }) {
|
|
45
|
+
super(map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribePocFunctionsResponseBody } from "./DescribePocFunctionsResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribePocFunctionsResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribePocFunctionsResponseBody;
|
|
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: DescribePocFunctionsResponseBody,
|
|
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,71 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribePocFunctionsResponseBodyFunctions extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 1760581677000
|
|
9
|
+
*/
|
|
10
|
+
expireTime?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* botWeb
|
|
14
|
+
*/
|
|
15
|
+
type?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
expireTime: 'ExpireTime',
|
|
19
|
+
type: 'Type',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
expireTime: 'number',
|
|
26
|
+
type: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class DescribePocFunctionsResponseBody extends $dara.Model {
|
|
40
|
+
functions?: DescribePocFunctionsResponseBodyFunctions[];
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* 1557B42F-B889-460A-B17F-1DE5C5AD7FF2
|
|
44
|
+
*/
|
|
45
|
+
requestId?: string;
|
|
46
|
+
static names(): { [key: string]: string } {
|
|
47
|
+
return {
|
|
48
|
+
functions: 'Functions',
|
|
49
|
+
requestId: 'RequestId',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static types(): { [key: string]: any } {
|
|
54
|
+
return {
|
|
55
|
+
functions: { 'type': 'array', 'itemType': DescribePocFunctionsResponseBodyFunctions },
|
|
56
|
+
requestId: 'string',
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
validate() {
|
|
61
|
+
if(Array.isArray(this.functions)) {
|
|
62
|
+
$dara.Model.validateArray(this.functions);
|
|
63
|
+
}
|
|
64
|
+
super.validate();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
constructor(map?: { [key: string]: any }) {
|
|
68
|
+
super(map);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -3,6 +3,11 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class DescribeTemplateResourceCountResponseBodyResourceCount extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 10
|
|
9
|
+
*/
|
|
10
|
+
assetCount?: number;
|
|
6
11
|
/**
|
|
7
12
|
* @remarks
|
|
8
13
|
* The number of protected object groups.
|
|
@@ -29,6 +34,7 @@ export class DescribeTemplateResourceCountResponseBodyResourceCount extends $dar
|
|
|
29
34
|
templateId?: number;
|
|
30
35
|
static names(): { [key: string]: string } {
|
|
31
36
|
return {
|
|
37
|
+
assetCount: 'AssetCount',
|
|
32
38
|
groupCount: 'GroupCount',
|
|
33
39
|
singleCount: 'SingleCount',
|
|
34
40
|
templateId: 'TemplateId',
|
|
@@ -37,6 +43,7 @@ export class DescribeTemplateResourceCountResponseBodyResourceCount extends $dar
|
|
|
37
43
|
|
|
38
44
|
static types(): { [key: string]: any } {
|
|
39
45
|
return {
|
|
46
|
+
assetCount: 'number',
|
|
40
47
|
groupCount: 'number',
|
|
41
48
|
singleCount: 'number',
|
|
42
49
|
templateId: 'number',
|
|
@@ -3,6 +3,11 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class DescribeTemplateResourcesRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* abc.com
|
|
9
|
+
*/
|
|
10
|
+
assetApi?: string;
|
|
6
11
|
/**
|
|
7
12
|
* @remarks
|
|
8
13
|
* The ID of the Web Application Firewall (WAF) instance.
|
|
@@ -62,6 +67,7 @@ export class DescribeTemplateResourcesRequest extends $dara.Model {
|
|
|
62
67
|
templateId?: number;
|
|
63
68
|
static names(): { [key: string]: string } {
|
|
64
69
|
return {
|
|
70
|
+
assetApi: 'AssetApi',
|
|
65
71
|
instanceId: 'InstanceId',
|
|
66
72
|
maxResults: 'MaxResults',
|
|
67
73
|
nextToken: 'NextToken',
|
|
@@ -75,6 +81,7 @@ export class DescribeTemplateResourcesRequest extends $dara.Model {
|
|
|
75
81
|
|
|
76
82
|
static types(): { [key: string]: any } {
|
|
77
83
|
return {
|
|
84
|
+
assetApi: 'string',
|
|
78
85
|
instanceId: 'string',
|
|
79
86
|
maxResults: 'number',
|
|
80
87
|
nextToken: 'string',
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeVerifyContentRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* share
|
|
12
|
+
*/
|
|
13
|
+
accessOrigin?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* This parameter is required.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* example.com
|
|
20
|
+
*/
|
|
21
|
+
domainName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* This parameter is required.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* waf_v2_public_cn-***
|
|
28
|
+
*/
|
|
29
|
+
instanceId?: string;
|
|
30
|
+
static names(): { [key: string]: string } {
|
|
31
|
+
return {
|
|
32
|
+
accessOrigin: 'AccessOrigin',
|
|
33
|
+
domainName: 'DomainName',
|
|
34
|
+
instanceId: 'InstanceId',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static types(): { [key: string]: any } {
|
|
39
|
+
return {
|
|
40
|
+
accessOrigin: 'string',
|
|
41
|
+
domainName: 'string',
|
|
42
|
+
instanceId: 'string',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
validate() {
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeVerifyContentResponseBody } from "./DescribeVerifyContentResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeVerifyContentResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeVerifyContentResponseBody;
|
|
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: DescribeVerifyContentResponseBody,
|
|
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,146 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeVerifyContentResponseBodyDnsContent extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* verification
|
|
9
|
+
*/
|
|
10
|
+
RR?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* TXT
|
|
14
|
+
*/
|
|
15
|
+
type?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* verify_0a246ca99d504ba087472d***
|
|
19
|
+
*/
|
|
20
|
+
value?: string;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
RR: 'RR',
|
|
24
|
+
type: 'Type',
|
|
25
|
+
value: 'Value',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
RR: 'string',
|
|
32
|
+
type: 'string',
|
|
33
|
+
value: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class DescribeVerifyContentResponseBodyFileContent extends $dara.Model {
|
|
47
|
+
/**
|
|
48
|
+
* @example
|
|
49
|
+
* http://oss.xxx.com//xxx.html
|
|
50
|
+
*/
|
|
51
|
+
downloadUrl?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @example
|
|
54
|
+
* xxx.html
|
|
55
|
+
*/
|
|
56
|
+
fileName?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @example
|
|
59
|
+
* aliyundemo.com
|
|
60
|
+
*/
|
|
61
|
+
topDomain?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @example
|
|
64
|
+
* verify_0a246ca99d504ba08***
|
|
65
|
+
*/
|
|
66
|
+
value?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @example
|
|
69
|
+
* http://xxx.xxx.com//xxx.html
|
|
70
|
+
*/
|
|
71
|
+
verifyPath?: string;
|
|
72
|
+
static names(): { [key: string]: string } {
|
|
73
|
+
return {
|
|
74
|
+
downloadUrl: 'DownloadUrl',
|
|
75
|
+
fileName: 'FileName',
|
|
76
|
+
topDomain: 'TopDomain',
|
|
77
|
+
value: 'Value',
|
|
78
|
+
verifyPath: 'VerifyPath',
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
static types(): { [key: string]: any } {
|
|
83
|
+
return {
|
|
84
|
+
downloadUrl: 'string',
|
|
85
|
+
fileName: 'string',
|
|
86
|
+
topDomain: 'string',
|
|
87
|
+
value: 'string',
|
|
88
|
+
verifyPath: 'string',
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
validate() {
|
|
93
|
+
super.validate();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
constructor(map?: { [key: string]: any }) {
|
|
97
|
+
super(map);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export class DescribeVerifyContentResponseBody extends $dara.Model {
|
|
102
|
+
dnsContent?: DescribeVerifyContentResponseBodyDnsContent;
|
|
103
|
+
fileContent?: DescribeVerifyContentResponseBodyFileContent;
|
|
104
|
+
/**
|
|
105
|
+
* @example
|
|
106
|
+
* D7861F61-5B61-46CE-A47C-***
|
|
107
|
+
*/
|
|
108
|
+
requestId?: string;
|
|
109
|
+
/**
|
|
110
|
+
* @example
|
|
111
|
+
* true
|
|
112
|
+
*/
|
|
113
|
+
verifyResult?: boolean;
|
|
114
|
+
static names(): { [key: string]: string } {
|
|
115
|
+
return {
|
|
116
|
+
dnsContent: 'DnsContent',
|
|
117
|
+
fileContent: 'FileContent',
|
|
118
|
+
requestId: 'RequestId',
|
|
119
|
+
verifyResult: 'VerifyResult',
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
static types(): { [key: string]: any } {
|
|
124
|
+
return {
|
|
125
|
+
dnsContent: DescribeVerifyContentResponseBodyDnsContent,
|
|
126
|
+
fileContent: DescribeVerifyContentResponseBodyFileContent,
|
|
127
|
+
requestId: 'string',
|
|
128
|
+
verifyResult: 'boolean',
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
validate() {
|
|
133
|
+
if(this.dnsContent && typeof (this.dnsContent as any).validate === 'function') {
|
|
134
|
+
(this.dnsContent as any).validate();
|
|
135
|
+
}
|
|
136
|
+
if(this.fileContent && typeof (this.fileContent as any).validate === 'function') {
|
|
137
|
+
(this.fileContent as any).validate();
|
|
138
|
+
}
|
|
139
|
+
super.validate();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
constructor(map?: { [key: string]: any }) {
|
|
143
|
+
super(map);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class ModifyTemplateResourcesRequest extends $dara.Model {
|
|
6
|
+
bindAssets?: string[];
|
|
6
7
|
/**
|
|
7
8
|
* @remarks
|
|
8
9
|
* The protected object groups that you want to associate with the template. Specify the value in the [**"group1","group2",...**] format.
|
|
@@ -54,6 +55,7 @@ export class ModifyTemplateResourcesRequest extends $dara.Model {
|
|
|
54
55
|
* 2291
|
|
55
56
|
*/
|
|
56
57
|
templateId?: number;
|
|
58
|
+
unbindAssets?: string[];
|
|
57
59
|
/**
|
|
58
60
|
* @remarks
|
|
59
61
|
* The protected object groups that you want to disassociate from the template. Specify the value in the [**"group1","group2",...**] format.
|
|
@@ -66,12 +68,14 @@ export class ModifyTemplateResourcesRequest extends $dara.Model {
|
|
|
66
68
|
unbindResources?: string[];
|
|
67
69
|
static names(): { [key: string]: string } {
|
|
68
70
|
return {
|
|
71
|
+
bindAssets: 'BindAssets',
|
|
69
72
|
bindResourceGroups: 'BindResourceGroups',
|
|
70
73
|
bindResources: 'BindResources',
|
|
71
74
|
instanceId: 'InstanceId',
|
|
72
75
|
regionId: 'RegionId',
|
|
73
76
|
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
74
77
|
templateId: 'TemplateId',
|
|
78
|
+
unbindAssets: 'UnbindAssets',
|
|
75
79
|
unbindResourceGroups: 'UnbindResourceGroups',
|
|
76
80
|
unbindResources: 'UnbindResources',
|
|
77
81
|
};
|
|
@@ -79,24 +83,32 @@ export class ModifyTemplateResourcesRequest extends $dara.Model {
|
|
|
79
83
|
|
|
80
84
|
static types(): { [key: string]: any } {
|
|
81
85
|
return {
|
|
86
|
+
bindAssets: { 'type': 'array', 'itemType': 'string' },
|
|
82
87
|
bindResourceGroups: { 'type': 'array', 'itemType': 'string' },
|
|
83
88
|
bindResources: { 'type': 'array', 'itemType': 'string' },
|
|
84
89
|
instanceId: 'string',
|
|
85
90
|
regionId: 'string',
|
|
86
91
|
resourceManagerResourceGroupId: 'string',
|
|
87
92
|
templateId: 'number',
|
|
93
|
+
unbindAssets: { 'type': 'array', 'itemType': 'string' },
|
|
88
94
|
unbindResourceGroups: { 'type': 'array', 'itemType': 'string' },
|
|
89
95
|
unbindResources: { 'type': 'array', 'itemType': 'string' },
|
|
90
96
|
};
|
|
91
97
|
}
|
|
92
98
|
|
|
93
99
|
validate() {
|
|
100
|
+
if(Array.isArray(this.bindAssets)) {
|
|
101
|
+
$dara.Model.validateArray(this.bindAssets);
|
|
102
|
+
}
|
|
94
103
|
if(Array.isArray(this.bindResourceGroups)) {
|
|
95
104
|
$dara.Model.validateArray(this.bindResourceGroups);
|
|
96
105
|
}
|
|
97
106
|
if(Array.isArray(this.bindResources)) {
|
|
98
107
|
$dara.Model.validateArray(this.bindResources);
|
|
99
108
|
}
|
|
109
|
+
if(Array.isArray(this.unbindAssets)) {
|
|
110
|
+
$dara.Model.validateArray(this.unbindAssets);
|
|
111
|
+
}
|
|
100
112
|
if(Array.isArray(this.unbindResourceGroups)) {
|
|
101
113
|
$dara.Model.validateArray(this.unbindResourceGroups);
|
|
102
114
|
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class VerifyDomainOwnerRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The domain name of which you want to verify the ownership.
|
|
9
|
+
*
|
|
10
|
+
* You can specify this parameter to check whether a domain name is added to WAF. Fuzzy match is supported.
|
|
11
|
+
*
|
|
12
|
+
* This parameter is required.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* example.com
|
|
16
|
+
*/
|
|
17
|
+
domainName?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @remarks
|
|
20
|
+
* The ID of the WAF instance.
|
|
21
|
+
*
|
|
22
|
+
* > You can call the [DescribeInstance](https://help.aliyun.com/document_detail/433756.html) operation to query the ID of the WAF instance.
|
|
23
|
+
*
|
|
24
|
+
* This parameter is required.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* waf_v2_public_cn-*****
|
|
28
|
+
*/
|
|
29
|
+
instanceId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The protocol type that is used for file verification. Specify this parameter when you set VerifyType to fileCheck. Valid values:
|
|
33
|
+
*
|
|
34
|
+
* * **HTTP**
|
|
35
|
+
* * **HTTPS**
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* HTTP
|
|
39
|
+
*/
|
|
40
|
+
protocol?: string;
|
|
41
|
+
/**
|
|
42
|
+
* @remarks
|
|
43
|
+
* The verification method. Valid values:
|
|
44
|
+
*
|
|
45
|
+
* * **dnsCheck**: DNS verification
|
|
46
|
+
* * **fileCheck**: file verification
|
|
47
|
+
*
|
|
48
|
+
* This parameter is required.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* dnsCheck
|
|
52
|
+
*/
|
|
53
|
+
verifyType?: string;
|
|
54
|
+
static names(): { [key: string]: string } {
|
|
55
|
+
return {
|
|
56
|
+
domainName: 'DomainName',
|
|
57
|
+
instanceId: 'InstanceId',
|
|
58
|
+
protocol: 'Protocol',
|
|
59
|
+
verifyType: 'VerifyType',
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
static types(): { [key: string]: any } {
|
|
64
|
+
return {
|
|
65
|
+
domainName: 'string',
|
|
66
|
+
instanceId: 'string',
|
|
67
|
+
protocol: 'string',
|
|
68
|
+
verifyType: 'string',
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
validate() {
|
|
73
|
+
super.validate();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
constructor(map?: { [key: string]: any }) {
|
|
77
|
+
super(map);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { VerifyDomainOwnerResponseBody } from "./VerifyDomainOwnerResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class VerifyDomainOwnerResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: VerifyDomainOwnerResponseBody;
|
|
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: VerifyDomainOwnerResponseBody,
|
|
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
|
+
|