@alicloud/waf-openapi20211001 6.0.3 → 6.1.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.
@@ -0,0 +1,76 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeBotRuleLabelsRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * waf_v3prepaid_public_cn-53y4******
12
+ */
13
+ instanceId?: string;
14
+ /**
15
+ * @example
16
+ * human_machine_challenge
17
+ */
18
+ labelType?: string;
19
+ /**
20
+ * @example
21
+ * 20
22
+ */
23
+ maxResults?: number;
24
+ /**
25
+ * @example
26
+ * AAAAAGBgV9tolsLfijC4wam2htS*****D/46H3X2wIS
27
+ */
28
+ nextToken?: string;
29
+ /**
30
+ * @example
31
+ * cn-hangzhou
32
+ */
33
+ regionId?: string;
34
+ /**
35
+ * @example
36
+ * rg-acfm***q
37
+ */
38
+ resourceManagerResourceGroupId?: string;
39
+ /**
40
+ * @example
41
+ * app
42
+ */
43
+ subScene?: string;
44
+ static names(): { [key: string]: string } {
45
+ return {
46
+ instanceId: 'InstanceId',
47
+ labelType: 'LabelType',
48
+ maxResults: 'MaxResults',
49
+ nextToken: 'NextToken',
50
+ regionId: 'RegionId',
51
+ resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
52
+ subScene: 'SubScene',
53
+ };
54
+ }
55
+
56
+ static types(): { [key: string]: any } {
57
+ return {
58
+ instanceId: 'string',
59
+ labelType: 'string',
60
+ maxResults: 'number',
61
+ nextToken: 'string',
62
+ regionId: 'string',
63
+ resourceManagerResourceGroupId: 'string',
64
+ subScene: 'string',
65
+ };
66
+ }
67
+
68
+ validate() {
69
+ super.validate();
70
+ }
71
+
72
+ constructor(map?: { [key: string]: any }) {
73
+ super(map);
74
+ }
75
+ }
76
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DescribeBotRuleLabelsResponseBody } from "./DescribeBotRuleLabelsResponseBody";
4
+
5
+
6
+ export class DescribeBotRuleLabelsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribeBotRuleLabelsResponseBody;
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: DescribeBotRuleLabelsResponseBody,
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,106 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeBotRuleLabelsResponseBodyRuleLabels extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * malicious
9
+ */
10
+ botBehavior?: string;
11
+ /**
12
+ * @example
13
+ * malicious_crawler_python
14
+ */
15
+ labelKey?: string;
16
+ /**
17
+ * @example
18
+ * human_machine_challenge
19
+ */
20
+ labelType?: string;
21
+ /**
22
+ * @example
23
+ * Web,app
24
+ */
25
+ subScene?: string;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ botBehavior: 'BotBehavior',
29
+ labelKey: 'LabelKey',
30
+ labelType: 'LabelType',
31
+ subScene: 'SubScene',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ botBehavior: 'string',
38
+ labelKey: 'string',
39
+ labelType: 'string',
40
+ subScene: 'string',
41
+ };
42
+ }
43
+
44
+ validate() {
45
+ super.validate();
46
+ }
47
+
48
+ constructor(map?: { [key: string]: any }) {
49
+ super(map);
50
+ }
51
+ }
52
+
53
+ export class DescribeBotRuleLabelsResponseBody extends $dara.Model {
54
+ /**
55
+ * @example
56
+ * 20
57
+ */
58
+ maxResults?: number;
59
+ /**
60
+ * @example
61
+ * AAAAAGBgV9tolsLfijC4wam2htS*****D/46H3X2wIS
62
+ */
63
+ nextToken?: string;
64
+ /**
65
+ * @example
66
+ * D7861F61-5B61-46CE-A47C-6B19****5EB0
67
+ */
68
+ requestId?: string;
69
+ ruleLabels?: DescribeBotRuleLabelsResponseBodyRuleLabels[];
70
+ /**
71
+ * @example
72
+ * 8
73
+ */
74
+ totalCount?: number;
75
+ static names(): { [key: string]: string } {
76
+ return {
77
+ maxResults: 'MaxResults',
78
+ nextToken: 'NextToken',
79
+ requestId: 'RequestId',
80
+ ruleLabels: 'RuleLabels',
81
+ totalCount: 'TotalCount',
82
+ };
83
+ }
84
+
85
+ static types(): { [key: string]: any } {
86
+ return {
87
+ maxResults: 'number',
88
+ nextToken: 'string',
89
+ requestId: 'string',
90
+ ruleLabels: { 'type': 'array', 'itemType': DescribeBotRuleLabelsResponseBodyRuleLabels },
91
+ totalCount: 'number',
92
+ };
93
+ }
94
+
95
+ validate() {
96
+ if(Array.isArray(this.ruleLabels)) {
97
+ $dara.Model.validateArray(this.ruleLabels);
98
+ }
99
+ super.validate();
100
+ }
101
+
102
+ constructor(map?: { [key: string]: any }) {
103
+ super(map);
104
+ }
105
+ }
106
+
@@ -32,6 +32,7 @@ export { DescribeApisecStatisticsResponseBodyData } from './DescribeApisecStatis
32
32
  export { DescribeApisecSuggestionsResponseBodyData } from './DescribeApisecSuggestionsResponseBody';
33
33
  export { DescribeApisecUserOperationsResponseBodyData } from './DescribeApisecUserOperationsResponseBody';
34
34
  export { DescribeBaseSystemRulesResponseBodyRules } from './DescribeBaseSystemRulesResponseBody';
35
+ export { DescribeBotRuleLabelsResponseBodyRuleLabels } from './DescribeBotRuleLabelsResponseBody';
35
36
  export { DescribeCertDetailResponseBodyCertDetail } from './DescribeCertDetailResponseBody';
36
37
  export { DescribeCertsResponseBodyCerts } from './DescribeCertsResponseBody';
37
38
  export { DescribeChargeModuleResponseBodyChargeModules } from './DescribeChargeModuleResponseBody';
@@ -365,6 +366,9 @@ export { DescribeApisecUserOperationsResponse } from './DescribeApisecUserOperat
365
366
  export { DescribeBaseSystemRulesRequest } from './DescribeBaseSystemRulesRequest';
366
367
  export { DescribeBaseSystemRulesResponseBody } from './DescribeBaseSystemRulesResponseBody';
367
368
  export { DescribeBaseSystemRulesResponse } from './DescribeBaseSystemRulesResponse';
369
+ export { DescribeBotRuleLabelsRequest } from './DescribeBotRuleLabelsRequest';
370
+ export { DescribeBotRuleLabelsResponseBody } from './DescribeBotRuleLabelsResponseBody';
371
+ export { DescribeBotRuleLabelsResponse } from './DescribeBotRuleLabelsResponse';
368
372
  export { DescribeCertDetailRequest } from './DescribeCertDetailRequest';
369
373
  export { DescribeCertDetailResponseBody } from './DescribeCertDetailResponseBody';
370
374
  export { DescribeCertDetailResponse } from './DescribeCertDetailResponse';