@alicloud/waf-openapi20211001 5.2.1 → 5.4.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.
Files changed (133) hide show
  1. package/dist/client.d.ts +150 -0
  2. package/dist/client.js +596 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateHybridCloudClusterRequest.d.ts +175 -0
  5. package/dist/models/CreateHybridCloudClusterRequest.js +88 -0
  6. package/dist/models/CreateHybridCloudClusterRequest.js.map +1 -0
  7. package/dist/models/CreateHybridCloudClusterResponse.d.ts +19 -0
  8. package/dist/models/CreateHybridCloudClusterResponse.js +69 -0
  9. package/dist/models/CreateHybridCloudClusterResponse.js.map +1 -0
  10. package/dist/models/CreateHybridCloudClusterResponseBody.d.ts +29 -0
  11. package/dist/models/CreateHybridCloudClusterResponseBody.js +60 -0
  12. package/dist/models/CreateHybridCloudClusterResponseBody.js.map +1 -0
  13. package/dist/models/DescribeBaseSystemRulesRequest.d.ts +81 -0
  14. package/dist/models/DescribeBaseSystemRulesRequest.js +82 -0
  15. package/dist/models/DescribeBaseSystemRulesRequest.js.map +1 -0
  16. package/dist/models/DescribeBaseSystemRulesResponse.d.ts +19 -0
  17. package/dist/models/DescribeBaseSystemRulesResponse.js +69 -0
  18. package/dist/models/DescribeBaseSystemRulesResponse.js.map +1 -0
  19. package/dist/models/DescribeBaseSystemRulesResponseBody.d.ts +81 -0
  20. package/dist/models/DescribeBaseSystemRulesResponseBody.js +100 -0
  21. package/dist/models/DescribeBaseSystemRulesResponseBody.js.map +1 -0
  22. package/dist/models/DescribeCommonLogFieldsRequest.d.ts +42 -0
  23. package/dist/models/DescribeCommonLogFieldsRequest.js +71 -0
  24. package/dist/models/DescribeCommonLogFieldsRequest.js.map +1 -0
  25. package/dist/models/DescribeCommonLogFieldsResponse.d.ts +19 -0
  26. package/dist/models/DescribeCommonLogFieldsResponse.js +69 -0
  27. package/dist/models/DescribeCommonLogFieldsResponse.js.map +1 -0
  28. package/dist/models/DescribeCommonLogFieldsResponseBody.d.ts +56 -0
  29. package/dist/models/DescribeCommonLogFieldsResponseBody.js +90 -0
  30. package/dist/models/DescribeCommonLogFieldsResponseBody.js.map +1 -0
  31. package/dist/models/DescribeCommonLogFieldsShrinkRequest.d.ts +42 -0
  32. package/dist/models/DescribeCommonLogFieldsShrinkRequest.js +68 -0
  33. package/dist/models/DescribeCommonLogFieldsShrinkRequest.js.map +1 -0
  34. package/dist/models/DescribeCustomBaseRuleCompileResultRequest.d.ts +31 -0
  35. package/dist/models/DescribeCustomBaseRuleCompileResultRequest.js +62 -0
  36. package/dist/models/DescribeCustomBaseRuleCompileResultRequest.js.map +1 -0
  37. package/dist/models/DescribeCustomBaseRuleCompileResultResponse.d.ts +19 -0
  38. package/dist/models/DescribeCustomBaseRuleCompileResultResponse.js +69 -0
  39. package/dist/models/DescribeCustomBaseRuleCompileResultResponse.js.map +1 -0
  40. package/dist/models/DescribeCustomBaseRuleCompileResultResponseBody.d.ts +23 -0
  41. package/dist/models/DescribeCustomBaseRuleCompileResultResponseBody.js +60 -0
  42. package/dist/models/DescribeCustomBaseRuleCompileResultResponseBody.js.map +1 -0
  43. package/dist/models/DescribeDefenseGroupValidResourcesRequest.d.ts +51 -0
  44. package/dist/models/DescribeDefenseGroupValidResourcesRequest.js +70 -0
  45. package/dist/models/DescribeDefenseGroupValidResourcesRequest.js.map +1 -0
  46. package/dist/models/DescribeDefenseGroupValidResourcesResponse.d.ts +19 -0
  47. package/dist/models/DescribeDefenseGroupValidResourcesResponse.js +69 -0
  48. package/dist/models/DescribeDefenseGroupValidResourcesResponse.js.map +1 -0
  49. package/dist/models/DescribeDefenseGroupValidResourcesResponseBody.d.ts +24 -0
  50. package/dist/models/DescribeDefenseGroupValidResourcesResponseBody.js +65 -0
  51. package/dist/models/DescribeDefenseGroupValidResourcesResponseBody.js.map +1 -0
  52. package/dist/models/DescribeDefenseRuleStatisticsRequest.d.ts +62 -0
  53. package/dist/models/DescribeDefenseRuleStatisticsRequest.js +72 -0
  54. package/dist/models/DescribeDefenseRuleStatisticsRequest.js.map +1 -0
  55. package/dist/models/DescribeDefenseRuleStatisticsResponse.d.ts +19 -0
  56. package/dist/models/DescribeDefenseRuleStatisticsResponse.js +69 -0
  57. package/dist/models/DescribeDefenseRuleStatisticsResponse.js.map +1 -0
  58. package/dist/models/DescribeDefenseRuleStatisticsResponseBody.d.ts +56 -0
  59. package/dist/models/DescribeDefenseRuleStatisticsResponseBody.js +90 -0
  60. package/dist/models/DescribeDefenseRuleStatisticsResponseBody.js.map +1 -0
  61. package/dist/models/DescribeDefenseTemplateValidResourcesRequest.d.ts +59 -0
  62. package/dist/models/DescribeDefenseTemplateValidResourcesRequest.js +72 -0
  63. package/dist/models/DescribeDefenseTemplateValidResourcesRequest.js.map +1 -0
  64. package/dist/models/DescribeDefenseTemplateValidResourcesResponse.d.ts +19 -0
  65. package/dist/models/DescribeDefenseTemplateValidResourcesResponse.js +69 -0
  66. package/dist/models/DescribeDefenseTemplateValidResourcesResponse.js.map +1 -0
  67. package/dist/models/DescribeDefenseTemplateValidResourcesResponseBody.d.ts +24 -0
  68. package/dist/models/DescribeDefenseTemplateValidResourcesResponseBody.js +65 -0
  69. package/dist/models/DescribeDefenseTemplateValidResourcesResponseBody.js.map +1 -0
  70. package/dist/models/DescribeUserLogFieldConfigRequest.d.ts +36 -0
  71. package/dist/models/DescribeUserLogFieldConfigRequest.js +64 -0
  72. package/dist/models/DescribeUserLogFieldConfigRequest.js.map +1 -0
  73. package/dist/models/DescribeUserLogFieldConfigResponse.d.ts +19 -0
  74. package/dist/models/DescribeUserLogFieldConfigResponse.js +69 -0
  75. package/dist/models/DescribeUserLogFieldConfigResponse.js.map +1 -0
  76. package/dist/models/DescribeUserLogFieldConfigResponseBody.d.ts +53 -0
  77. package/dist/models/DescribeUserLogFieldConfigResponseBody.js +72 -0
  78. package/dist/models/DescribeUserLogFieldConfigResponseBody.js.map +1 -0
  79. package/dist/models/ModifyUserLogFieldConfigRequest.d.ts +54 -0
  80. package/dist/models/ModifyUserLogFieldConfigRequest.js +70 -0
  81. package/dist/models/ModifyUserLogFieldConfigRequest.js.map +1 -0
  82. package/dist/models/ModifyUserLogFieldConfigResponse.d.ts +19 -0
  83. package/dist/models/ModifyUserLogFieldConfigResponse.js +69 -0
  84. package/dist/models/ModifyUserLogFieldConfigResponse.js.map +1 -0
  85. package/dist/models/ModifyUserLogFieldConfigResponseBody.d.ts +18 -0
  86. package/dist/models/ModifyUserLogFieldConfigResponseBody.js +58 -0
  87. package/dist/models/ModifyUserLogFieldConfigResponseBody.js.map +1 -0
  88. package/dist/models/ModifyUserWafLogStatusRequest.d.ts +44 -0
  89. package/dist/models/ModifyUserWafLogStatusRequest.js +66 -0
  90. package/dist/models/ModifyUserWafLogStatusRequest.js.map +1 -0
  91. package/dist/models/ModifyUserWafLogStatusResponse.d.ts +19 -0
  92. package/dist/models/ModifyUserWafLogStatusResponse.js +69 -0
  93. package/dist/models/ModifyUserWafLogStatusResponse.js.map +1 -0
  94. package/dist/models/ModifyUserWafLogStatusResponseBody.d.ts +28 -0
  95. package/dist/models/ModifyUserWafLogStatusResponseBody.js +62 -0
  96. package/dist/models/ModifyUserWafLogStatusResponseBody.js.map +1 -0
  97. package/dist/models/model.d.ts +34 -0
  98. package/dist/models/model.js +84 -15
  99. package/dist/models/model.js.map +1 -1
  100. package/package.json +1 -1
  101. package/src/client.ts +701 -7
  102. package/src/models/CreateHybridCloudClusterRequest.ts +218 -0
  103. package/src/models/CreateHybridCloudClusterResponse.ts +40 -0
  104. package/src/models/CreateHybridCloudClusterResponseBody.ts +44 -0
  105. package/src/models/DescribeBaseSystemRulesRequest.ts +118 -0
  106. package/src/models/DescribeBaseSystemRulesResponse.ts +40 -0
  107. package/src/models/DescribeBaseSystemRulesResponseBody.ts +127 -0
  108. package/src/models/DescribeCommonLogFieldsRequest.ts +68 -0
  109. package/src/models/DescribeCommonLogFieldsResponse.ts +40 -0
  110. package/src/models/DescribeCommonLogFieldsResponseBody.ts +92 -0
  111. package/src/models/DescribeCommonLogFieldsShrinkRequest.ts +65 -0
  112. package/src/models/DescribeCustomBaseRuleCompileResultRequest.ts +48 -0
  113. package/src/models/DescribeCustomBaseRuleCompileResultResponse.ts +40 -0
  114. package/src/models/DescribeCustomBaseRuleCompileResultResponseBody.ts +38 -0
  115. package/src/models/DescribeDefenseGroupValidResourcesRequest.ts +76 -0
  116. package/src/models/DescribeDefenseGroupValidResourcesResponse.ts +40 -0
  117. package/src/models/DescribeDefenseGroupValidResourcesResponseBody.ts +44 -0
  118. package/src/models/DescribeDefenseRuleStatisticsRequest.ts +89 -0
  119. package/src/models/DescribeDefenseRuleStatisticsResponse.ts +40 -0
  120. package/src/models/DescribeDefenseRuleStatisticsResponseBody.ts +92 -0
  121. package/src/models/DescribeDefenseTemplateValidResourcesRequest.ts +86 -0
  122. package/src/models/DescribeDefenseTemplateValidResourcesResponse.ts +40 -0
  123. package/src/models/DescribeDefenseTemplateValidResourcesResponseBody.ts +44 -0
  124. package/src/models/DescribeUserLogFieldConfigRequest.ts +55 -0
  125. package/src/models/DescribeUserLogFieldConfigResponse.ts +40 -0
  126. package/src/models/DescribeUserLogFieldConfigResponseBody.ts +80 -0
  127. package/src/models/ModifyUserLogFieldConfigRequest.ts +79 -0
  128. package/src/models/ModifyUserLogFieldConfigResponse.ts +40 -0
  129. package/src/models/ModifyUserLogFieldConfigResponseBody.ts +31 -0
  130. package/src/models/ModifyUserWafLogStatusRequest.ts +65 -0
  131. package/src/models/ModifyUserWafLogStatusResponse.ts +40 -0
  132. package/src/models/ModifyUserWafLogStatusResponseBody.ts +45 -0
  133. package/src/models/model.ts +34 -0
@@ -0,0 +1,92 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeCommonLogFieldsResponseBodyLogFieldList extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * true
9
+ */
10
+ isDefault?: boolean;
11
+ /**
12
+ * @example
13
+ * true
14
+ */
15
+ isRequired?: boolean;
16
+ /**
17
+ * @example
18
+ * final_action
19
+ */
20
+ logKey?: string;
21
+ /**
22
+ * @example
23
+ * 1
24
+ */
25
+ status?: boolean;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ isDefault: 'IsDefault',
29
+ isRequired: 'IsRequired',
30
+ logKey: 'LogKey',
31
+ status: 'Status',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ isDefault: 'boolean',
38
+ isRequired: 'boolean',
39
+ logKey: 'string',
40
+ status: 'boolean',
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 DescribeCommonLogFieldsResponseBody extends $dara.Model {
54
+ logFieldList?: DescribeCommonLogFieldsResponseBodyLogFieldList[];
55
+ /**
56
+ * @example
57
+ * AB0775EB-2594-598A-97E1-51B1*******
58
+ */
59
+ requestId?: string;
60
+ /**
61
+ * @example
62
+ * 6
63
+ */
64
+ totalCount?: number;
65
+ static names(): { [key: string]: string } {
66
+ return {
67
+ logFieldList: 'LogFieldList',
68
+ requestId: 'RequestId',
69
+ totalCount: 'TotalCount',
70
+ };
71
+ }
72
+
73
+ static types(): { [key: string]: any } {
74
+ return {
75
+ logFieldList: { 'type': 'array', 'itemType': DescribeCommonLogFieldsResponseBodyLogFieldList },
76
+ requestId: 'string',
77
+ totalCount: 'number',
78
+ };
79
+ }
80
+
81
+ validate() {
82
+ if(Array.isArray(this.logFieldList)) {
83
+ $dara.Model.validateArray(this.logFieldList);
84
+ }
85
+ super.validate();
86
+ }
87
+
88
+ constructor(map?: { [key: string]: any }) {
89
+ super(map);
90
+ }
91
+ }
92
+
@@ -0,0 +1,65 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeCommonLogFieldsShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * waf_v3prepaid_public_cn-l*****
12
+ */
13
+ instanceId?: string;
14
+ /**
15
+ * @example
16
+ * true
17
+ */
18
+ isDefault?: boolean;
19
+ /**
20
+ * @example
21
+ * false
22
+ */
23
+ isRequired?: boolean;
24
+ logKeyListShrink?: string;
25
+ /**
26
+ * @example
27
+ * cn-hangzhou
28
+ */
29
+ regionId?: string;
30
+ /**
31
+ * @example
32
+ * rg-aek2sxgs*****
33
+ */
34
+ resourceManagerResourceGroupId?: string;
35
+ static names(): { [key: string]: string } {
36
+ return {
37
+ instanceId: 'InstanceId',
38
+ isDefault: 'IsDefault',
39
+ isRequired: 'IsRequired',
40
+ logKeyListShrink: 'LogKeyList',
41
+ regionId: 'RegionId',
42
+ resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
43
+ };
44
+ }
45
+
46
+ static types(): { [key: string]: any } {
47
+ return {
48
+ instanceId: 'string',
49
+ isDefault: 'boolean',
50
+ isRequired: 'boolean',
51
+ logKeyListShrink: 'string',
52
+ regionId: 'string',
53
+ resourceManagerResourceGroupId: 'string',
54
+ };
55
+ }
56
+
57
+ validate() {
58
+ super.validate();
59
+ }
60
+
61
+ constructor(map?: { [key: string]: any }) {
62
+ super(map);
63
+ }
64
+ }
65
+
@@ -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 DescribeCustomBaseRuleCompileResultRequest 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 { DescribeCustomBaseRuleCompileResultResponseBody } from "./DescribeCustomBaseRuleCompileResultResponseBody";
4
+
5
+
6
+ export class DescribeCustomBaseRuleCompileResultResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribeCustomBaseRuleCompileResultResponseBody;
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: DescribeCustomBaseRuleCompileResultResponseBody,
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
+
4
+
5
+ export class DescribeCustomBaseRuleCompileResultResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 58FDF266-3D56-5DE8-91E0-96A26BAB****
9
+ */
10
+ requestId?: string;
11
+ /**
12
+ * @example
13
+ * success
14
+ */
15
+ result?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ requestId: 'RequestId',
19
+ result: 'Result',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ requestId: 'string',
26
+ result: 'string',
27
+ };
28
+ }
29
+
30
+ validate() {
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
@@ -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 DescribeDefenseGroupValidResourcesRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * group221
9
+ */
10
+ groupName?: string;
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ *
15
+ * @example
16
+ * waf_v3prepaid_public_cn-zxu****jc01
17
+ */
18
+ instanceId?: string;
19
+ /**
20
+ * @example
21
+ * 1
22
+ */
23
+ pageNumber?: number;
24
+ /**
25
+ * @example
26
+ * 10
27
+ */
28
+ pageSize?: number;
29
+ /**
30
+ * @example
31
+ * cn-hangzhou
32
+ */
33
+ regionId?: string;
34
+ /**
35
+ * @example
36
+ * example.aliyun-waf
37
+ */
38
+ resource?: string;
39
+ /**
40
+ * @example
41
+ * rg-aek2lrm****6pnq
42
+ */
43
+ resourceManagerResourceGroupId?: string;
44
+ static names(): { [key: string]: string } {
45
+ return {
46
+ groupName: 'GroupName',
47
+ instanceId: 'InstanceId',
48
+ pageNumber: 'PageNumber',
49
+ pageSize: 'PageSize',
50
+ regionId: 'RegionId',
51
+ resource: 'Resource',
52
+ resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
53
+ };
54
+ }
55
+
56
+ static types(): { [key: string]: any } {
57
+ return {
58
+ groupName: 'string',
59
+ instanceId: 'string',
60
+ pageNumber: 'number',
61
+ pageSize: 'number',
62
+ regionId: 'string',
63
+ resource: 'string',
64
+ resourceManagerResourceGroupId: '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 { DescribeDefenseGroupValidResourcesResponseBody } from "./DescribeDefenseGroupValidResourcesResponseBody";
4
+
5
+
6
+ export class DescribeDefenseGroupValidResourcesResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribeDefenseGroupValidResourcesResponseBody;
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: DescribeDefenseGroupValidResourcesResponseBody,
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 DescribeDefenseGroupValidResourcesResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * A57BA089-3B28-5C82-8331-7B94****4978
9
+ */
10
+ requestId?: string;
11
+ resources?: string[];
12
+ /**
13
+ * @example
14
+ * 12
15
+ */
16
+ totalCount?: number;
17
+ static names(): { [key: string]: string } {
18
+ return {
19
+ requestId: 'RequestId',
20
+ resources: 'Resources',
21
+ totalCount: 'TotalCount',
22
+ };
23
+ }
24
+
25
+ static types(): { [key: string]: any } {
26
+ return {
27
+ requestId: 'string',
28
+ resources: { 'type': 'array', 'itemType': 'string' },
29
+ totalCount: 'number',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ if(Array.isArray(this.resources)) {
35
+ $dara.Model.validateArray(this.resources);
36
+ }
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
@@ -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 DescribeDefenseRuleStatisticsRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * riskLevel
9
+ */
10
+ fourthKey?: string;
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ *
15
+ * @example
16
+ * waf_elasticity-cn-0xldbqt****
17
+ */
18
+ instanceId?: string;
19
+ /**
20
+ * @remarks
21
+ * This parameter is required.
22
+ *
23
+ * @example
24
+ * scene
25
+ */
26
+ primaryKey?: string;
27
+ /**
28
+ * @example
29
+ * cn-hangzhou
30
+ */
31
+ regionId?: string;
32
+ /**
33
+ * @example
34
+ * rg-acfm***q
35
+ */
36
+ resourceManagerResourceGroupId?: string;
37
+ /**
38
+ * @example
39
+ * action
40
+ */
41
+ secondaryKey?: string;
42
+ /**
43
+ * @remarks
44
+ * This parameter is required.
45
+ *
46
+ * @example
47
+ * 239136
48
+ */
49
+ templateId?: number;
50
+ /**
51
+ * @example
52
+ * status
53
+ */
54
+ thirdKey?: string;
55
+ static names(): { [key: string]: string } {
56
+ return {
57
+ fourthKey: 'FourthKey',
58
+ instanceId: 'InstanceId',
59
+ primaryKey: 'PrimaryKey',
60
+ regionId: 'RegionId',
61
+ resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
62
+ secondaryKey: 'SecondaryKey',
63
+ templateId: 'TemplateId',
64
+ thirdKey: 'ThirdKey',
65
+ };
66
+ }
67
+
68
+ static types(): { [key: string]: any } {
69
+ return {
70
+ fourthKey: 'string',
71
+ instanceId: 'string',
72
+ primaryKey: 'string',
73
+ regionId: 'string',
74
+ resourceManagerResourceGroupId: 'string',
75
+ secondaryKey: 'string',
76
+ templateId: 'number',
77
+ thirdKey: '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 { DescribeDefenseRuleStatisticsResponseBody } from "./DescribeDefenseRuleStatisticsResponseBody";
4
+
5
+
6
+ export class DescribeDefenseRuleStatisticsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribeDefenseRuleStatisticsResponseBody;
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: DescribeDefenseRuleStatisticsResponseBody,
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,92 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeDefenseRuleStatisticsResponseBodyStatisticsInfos extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 27
9
+ */
10
+ count?: number;
11
+ /**
12
+ * @example
13
+ * action
14
+ */
15
+ fourthValue?: string;
16
+ /**
17
+ * @example
18
+ * sytem
19
+ */
20
+ primaryValue?: string;
21
+ /**
22
+ * @example
23
+ * block
24
+ */
25
+ secondaryValue?: string;
26
+ /**
27
+ * @example
28
+ * 1
29
+ */
30
+ thirdValue?: string;
31
+ static names(): { [key: string]: string } {
32
+ return {
33
+ count: 'Count',
34
+ fourthValue: 'FourthValue',
35
+ primaryValue: 'PrimaryValue',
36
+ secondaryValue: 'SecondaryValue',
37
+ thirdValue: 'ThirdValue',
38
+ };
39
+ }
40
+
41
+ static types(): { [key: string]: any } {
42
+ return {
43
+ count: 'number',
44
+ fourthValue: 'string',
45
+ primaryValue: 'string',
46
+ secondaryValue: 'string',
47
+ thirdValue: 'string',
48
+ };
49
+ }
50
+
51
+ validate() {
52
+ super.validate();
53
+ }
54
+
55
+ constructor(map?: { [key: string]: any }) {
56
+ super(map);
57
+ }
58
+ }
59
+
60
+ export class DescribeDefenseRuleStatisticsResponseBody extends $dara.Model {
61
+ /**
62
+ * @example
63
+ * D7861F61-5B61-46CE-A47C-6B19160D5EB0
64
+ */
65
+ requestId?: string;
66
+ statisticsInfos?: DescribeDefenseRuleStatisticsResponseBodyStatisticsInfos[];
67
+ static names(): { [key: string]: string } {
68
+ return {
69
+ requestId: 'RequestId',
70
+ statisticsInfos: 'StatisticsInfos',
71
+ };
72
+ }
73
+
74
+ static types(): { [key: string]: any } {
75
+ return {
76
+ requestId: 'string',
77
+ statisticsInfos: { 'type': 'array', 'itemType': DescribeDefenseRuleStatisticsResponseBodyStatisticsInfos },
78
+ };
79
+ }
80
+
81
+ validate() {
82
+ if(Array.isArray(this.statisticsInfos)) {
83
+ $dara.Model.validateArray(this.statisticsInfos);
84
+ }
85
+ super.validate();
86
+ }
87
+
88
+ constructor(map?: { [key: string]: any }) {
89
+ super(map);
90
+ }
91
+ }
92
+