@alicloud/waf-openapi20211001 6.0.4 → 6.1.1

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.
Files changed (37) hide show
  1. package/dist/client.d.ts +15 -0
  2. package/dist/client.js +57 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateCloudResourceRequest.d.ts +1 -0
  5. package/dist/models/CreateCloudResourceRequest.js +2 -0
  6. package/dist/models/CreateCloudResourceRequest.js.map +1 -1
  7. package/dist/models/CreateDomainRequest.d.ts +6 -0
  8. package/dist/models/CreateDomainRequest.js +4 -0
  9. package/dist/models/CreateDomainRequest.js.map +1 -1
  10. package/dist/models/DescribeBotRuleLabelsRequest.d.ts +51 -0
  11. package/dist/models/DescribeBotRuleLabelsRequest.js +70 -0
  12. package/dist/models/DescribeBotRuleLabelsRequest.js.map +1 -0
  13. package/dist/models/DescribeBotRuleLabelsResponse.d.ts +19 -0
  14. package/dist/models/DescribeBotRuleLabelsResponse.js +69 -0
  15. package/dist/models/DescribeBotRuleLabelsResponse.js.map +1 -0
  16. package/dist/models/DescribeBotRuleLabelsResponseBody.d.ts +66 -0
  17. package/dist/models/DescribeBotRuleLabelsResponseBody.js +94 -0
  18. package/dist/models/DescribeBotRuleLabelsResponseBody.js.map +1 -0
  19. package/dist/models/DescribeDomainDetailResponseBody.d.ts +6 -0
  20. package/dist/models/DescribeDomainDetailResponseBody.js +4 -0
  21. package/dist/models/DescribeDomainDetailResponseBody.js.map +1 -1
  22. package/dist/models/ModifyDomainRequest.d.ts +6 -0
  23. package/dist/models/ModifyDomainRequest.js +4 -0
  24. package/dist/models/ModifyDomainRequest.js.map +1 -1
  25. package/dist/models/model.d.ts +4 -0
  26. package/dist/models/model.js +26 -18
  27. package/dist/models/model.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/client.ts +66 -0
  30. package/src/models/CreateCloudResourceRequest.ts +3 -0
  31. package/src/models/CreateDomainRequest.ts +10 -0
  32. package/src/models/DescribeBotRuleLabelsRequest.ts +76 -0
  33. package/src/models/DescribeBotRuleLabelsResponse.ts +40 -0
  34. package/src/models/DescribeBotRuleLabelsResponseBody.ts +106 -0
  35. package/src/models/DescribeDomainDetailResponseBody.ts +10 -0
  36. package/src/models/ModifyDomainRequest.ts +10 -0
  37. package/src/models/model.ts +4 -0
@@ -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
+
@@ -477,6 +477,12 @@ export class DescribeDomainDetailResponseBodyRedirect extends $dara.Model {
477
477
  * true
478
478
  */
479
479
  focusHttpBackend?: boolean;
480
+ http2Origin?: boolean;
481
+ /**
482
+ * @example
483
+ * 128
484
+ */
485
+ http2OriginMaxConcurrency?: number;
480
486
  /**
481
487
  * @remarks
482
488
  * Indicates whether the persistent connection feature is enabled. Valid values:
@@ -600,6 +606,8 @@ export class DescribeDomainDetailResponseBodyRedirect extends $dara.Model {
600
606
  backupBackends: 'BackupBackends',
601
607
  connectTimeout: 'ConnectTimeout',
602
608
  focusHttpBackend: 'FocusHttpBackend',
609
+ http2Origin: 'Http2Origin',
610
+ http2OriginMaxConcurrency: 'Http2OriginMaxConcurrency',
603
611
  keepalive: 'Keepalive',
604
612
  keepaliveRequests: 'KeepaliveRequests',
605
613
  keepaliveTimeout: 'KeepaliveTimeout',
@@ -628,6 +636,8 @@ export class DescribeDomainDetailResponseBodyRedirect extends $dara.Model {
628
636
  backupBackends: { 'type': 'array', 'itemType': DescribeDomainDetailResponseBodyRedirectBackupBackends },
629
637
  connectTimeout: 'number',
630
638
  focusHttpBackend: 'boolean',
639
+ http2Origin: 'boolean',
640
+ http2OriginMaxConcurrency: 'number',
631
641
  keepalive: 'boolean',
632
642
  keepaliveRequests: 'number',
633
643
  keepaliveTimeout: 'number',
@@ -341,6 +341,12 @@ export class ModifyDomainRequestRedirect extends $dara.Model {
341
341
  * true
342
342
  */
343
343
  focusHttpBackend?: boolean;
344
+ http2Origin?: boolean;
345
+ /**
346
+ * @example
347
+ * 128
348
+ */
349
+ http2OriginMaxConcurrency?: number;
344
350
  /**
345
351
  * @remarks
346
352
  * Specifies whether to enable the persistent connection feature. Valid values:
@@ -505,6 +511,8 @@ export class ModifyDomainRequestRedirect extends $dara.Model {
505
511
  cnameEnabled: 'CnameEnabled',
506
512
  connectTimeout: 'ConnectTimeout',
507
513
  focusHttpBackend: 'FocusHttpBackend',
514
+ http2Origin: 'Http2Origin',
515
+ http2OriginMaxConcurrency: 'Http2OriginMaxConcurrency',
508
516
  keepalive: 'Keepalive',
509
517
  keepaliveRequests: 'KeepaliveRequests',
510
518
  keepaliveTimeout: 'KeepaliveTimeout',
@@ -533,6 +541,8 @@ export class ModifyDomainRequestRedirect extends $dara.Model {
533
541
  cnameEnabled: 'boolean',
534
542
  connectTimeout: 'number',
535
543
  focusHttpBackend: 'boolean',
544
+ http2Origin: 'boolean',
545
+ http2OriginMaxConcurrency: 'number',
536
546
  keepalive: 'boolean',
537
547
  keepaliveRequests: 'number',
538
548
  keepaliveTimeout: 'number',
@@ -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';