@alicloud/esa20240910 2.37.0 → 2.38.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 (93) hide show
  1. package/dist/client.d.ts +156 -0
  2. package/dist/client.js +390 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateUserWafRulesetRequest.d.ts +62 -0
  5. package/dist/models/CreateUserWafRulesetRequest.js +80 -0
  6. package/dist/models/CreateUserWafRulesetRequest.js.map +1 -0
  7. package/dist/models/CreateUserWafRulesetResponse.d.ts +19 -0
  8. package/dist/models/CreateUserWafRulesetResponse.js +69 -0
  9. package/dist/models/CreateUserWafRulesetResponse.js.map +1 -0
  10. package/dist/models/CreateUserWafRulesetResponseBody.d.ts +24 -0
  11. package/dist/models/CreateUserWafRulesetResponseBody.js +65 -0
  12. package/dist/models/CreateUserWafRulesetResponseBody.js.map +1 -0
  13. package/dist/models/CreateUserWafRulesetShrinkRequest.d.ts +60 -0
  14. package/dist/models/CreateUserWafRulesetShrinkRequest.js +72 -0
  15. package/dist/models/CreateUserWafRulesetShrinkRequest.js.map +1 -0
  16. package/dist/models/DeleteUserWafRulesetRequest.d.ts +29 -0
  17. package/dist/models/DeleteUserWafRulesetRequest.js +60 -0
  18. package/dist/models/DeleteUserWafRulesetRequest.js.map +1 -0
  19. package/dist/models/DeleteUserWafRulesetResponse.d.ts +19 -0
  20. package/dist/models/DeleteUserWafRulesetResponse.js +69 -0
  21. package/dist/models/DeleteUserWafRulesetResponse.js.map +1 -0
  22. package/dist/models/DeleteUserWafRulesetResponseBody.d.ts +18 -0
  23. package/dist/models/DeleteUserWafRulesetResponseBody.js +58 -0
  24. package/dist/models/DeleteUserWafRulesetResponseBody.js.map +1 -0
  25. package/dist/models/GetRoutineAccessTokenRequest.d.ts +21 -0
  26. package/dist/models/GetRoutineAccessTokenRequest.js +58 -0
  27. package/dist/models/GetRoutineAccessTokenRequest.js.map +1 -0
  28. package/dist/models/GetRoutineAccessTokenResponse.d.ts +19 -0
  29. package/dist/models/GetRoutineAccessTokenResponse.js +69 -0
  30. package/dist/models/GetRoutineAccessTokenResponse.js.map +1 -0
  31. package/dist/models/GetRoutineAccessTokenResponseBody.d.ts +23 -0
  32. package/dist/models/GetRoutineAccessTokenResponseBody.js +60 -0
  33. package/dist/models/GetRoutineAccessTokenResponseBody.js.map +1 -0
  34. package/dist/models/GetUserWafRulesetRequest.d.ts +29 -0
  35. package/dist/models/GetUserWafRulesetRequest.js +60 -0
  36. package/dist/models/GetUserWafRulesetRequest.js.map +1 -0
  37. package/dist/models/GetUserWafRulesetResponse.d.ts +19 -0
  38. package/dist/models/GetUserWafRulesetResponse.js +69 -0
  39. package/dist/models/GetUserWafRulesetResponse.js.map +1 -0
  40. package/dist/models/GetUserWafRulesetResponseBody.d.ts +165 -0
  41. package/dist/models/GetUserWafRulesetResponseBody.js +163 -0
  42. package/dist/models/GetUserWafRulesetResponseBody.js.map +1 -0
  43. package/dist/models/ListUserWafRulesetsRequest.d.ts +64 -0
  44. package/dist/models/ListUserWafRulesetsRequest.js +92 -0
  45. package/dist/models/ListUserWafRulesetsRequest.js.map +1 -0
  46. package/dist/models/ListUserWafRulesetsResponse.d.ts +19 -0
  47. package/dist/models/ListUserWafRulesetsResponse.js +69 -0
  48. package/dist/models/ListUserWafRulesetsResponse.js.map +1 -0
  49. package/dist/models/ListUserWafRulesetsResponseBody.d.ts +84 -0
  50. package/dist/models/ListUserWafRulesetsResponseBody.js +100 -0
  51. package/dist/models/ListUserWafRulesetsResponseBody.js.map +1 -0
  52. package/dist/models/ListUserWafRulesetsShrinkRequest.d.ts +41 -0
  53. package/dist/models/ListUserWafRulesetsShrinkRequest.js +66 -0
  54. package/dist/models/ListUserWafRulesetsShrinkRequest.js.map +1 -0
  55. package/dist/models/UpdateUserWafRulesetRequest.d.ts +68 -0
  56. package/dist/models/UpdateUserWafRulesetRequest.js +82 -0
  57. package/dist/models/UpdateUserWafRulesetRequest.js.map +1 -0
  58. package/dist/models/UpdateUserWafRulesetResponse.d.ts +19 -0
  59. package/dist/models/UpdateUserWafRulesetResponse.js +69 -0
  60. package/dist/models/UpdateUserWafRulesetResponse.js.map +1 -0
  61. package/dist/models/UpdateUserWafRulesetResponseBody.d.ts +18 -0
  62. package/dist/models/UpdateUserWafRulesetResponseBody.js +58 -0
  63. package/dist/models/UpdateUserWafRulesetResponseBody.js.map +1 -0
  64. package/dist/models/UpdateUserWafRulesetShrinkRequest.d.ts +66 -0
  65. package/dist/models/UpdateUserWafRulesetShrinkRequest.js +74 -0
  66. package/dist/models/UpdateUserWafRulesetShrinkRequest.js.map +1 -0
  67. package/dist/models/model.d.ts +25 -0
  68. package/dist/models/model.js +77 -27
  69. package/dist/models/model.js.map +1 -1
  70. package/package.json +1 -1
  71. package/src/client.ts +434 -0
  72. package/src/models/CreateUserWafRulesetRequest.ts +95 -0
  73. package/src/models/CreateUserWafRulesetResponse.ts +40 -0
  74. package/src/models/CreateUserWafRulesetResponseBody.ts +44 -0
  75. package/src/models/CreateUserWafRulesetShrinkRequest.ts +87 -0
  76. package/src/models/DeleteUserWafRulesetRequest.ts +44 -0
  77. package/src/models/DeleteUserWafRulesetResponse.ts +40 -0
  78. package/src/models/DeleteUserWafRulesetResponseBody.ts +31 -0
  79. package/src/models/GetRoutineAccessTokenRequest.ts +34 -0
  80. package/src/models/GetRoutineAccessTokenResponse.ts +40 -0
  81. package/src/models/GetRoutineAccessTokenResponseBody.ts +38 -0
  82. package/src/models/GetUserWafRulesetRequest.ts +44 -0
  83. package/src/models/GetUserWafRulesetResponse.ts +40 -0
  84. package/src/models/GetUserWafRulesetResponseBody.ts +263 -0
  85. package/src/models/ListUserWafRulesetsRequest.ts +102 -0
  86. package/src/models/ListUserWafRulesetsResponse.ts +40 -0
  87. package/src/models/ListUserWafRulesetsResponseBody.ts +130 -0
  88. package/src/models/ListUserWafRulesetsShrinkRequest.ts +62 -0
  89. package/src/models/UpdateUserWafRulesetRequest.ts +103 -0
  90. package/src/models/UpdateUserWafRulesetResponse.ts +40 -0
  91. package/src/models/UpdateUserWafRulesetResponseBody.ts +31 -0
  92. package/src/models/UpdateUserWafRulesetShrinkRequest.ts +95 -0
  93. package/src/models/model.ts +25 -0
@@ -0,0 +1,165 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { WafBatchRuleShared } from "./WafBatchRuleShared";
3
+ import { WafRuleConfig } from "./WafRuleConfig";
4
+ export declare class GetUserWafRulesetResponseBodyRulesetRules extends $dara.Model {
5
+ /**
6
+ * @example
7
+ * deny
8
+ */
9
+ action?: string;
10
+ /**
11
+ * @example
12
+ * ["http.host"]
13
+ */
14
+ characteristicsFields?: string[];
15
+ /**
16
+ * @example
17
+ * {
18
+ * "Id": 20000001,
19
+ * "Name": "rule1",
20
+ * "Expression": "ip.src eq 1.1.1.1",
21
+ * "Action": "deny"
22
+ * }
23
+ */
24
+ config?: WafRuleConfig;
25
+ /**
26
+ * @example
27
+ * ["ip.src"]
28
+ */
29
+ fields?: string[];
30
+ /**
31
+ * @example
32
+ * 20000001
33
+ */
34
+ id?: number;
35
+ /**
36
+ * @example
37
+ * example
38
+ */
39
+ name?: string;
40
+ /**
41
+ * @example
42
+ * http_custom
43
+ */
44
+ phase?: string;
45
+ /**
46
+ * @example
47
+ * 1
48
+ */
49
+ position?: number;
50
+ /**
51
+ * @example
52
+ * 10000001
53
+ */
54
+ rulesetId?: number;
55
+ /**
56
+ * @example
57
+ * all
58
+ */
59
+ skip?: string;
60
+ /**
61
+ * @example
62
+ * on
63
+ */
64
+ status?: string;
65
+ /**
66
+ * @example
67
+ * ["http_custom"]
68
+ */
69
+ tags?: string[];
70
+ type?: string;
71
+ /**
72
+ * @example
73
+ * 2025-07-07T15:00:00Z
74
+ */
75
+ updateTime?: string;
76
+ static names(): {
77
+ [key: string]: string;
78
+ };
79
+ static types(): {
80
+ [key: string]: any;
81
+ };
82
+ validate(): void;
83
+ constructor(map?: {
84
+ [key: string]: any;
85
+ });
86
+ }
87
+ export declare class GetUserWafRulesetResponseBodyRuleset extends $dara.Model {
88
+ /**
89
+ * @example
90
+ * example
91
+ */
92
+ description?: string;
93
+ /**
94
+ * @example
95
+ * ip.src == 1.1.1.1
96
+ */
97
+ expression?: string;
98
+ /**
99
+ * @example
100
+ * 10000001
101
+ */
102
+ id?: number;
103
+ /**
104
+ * @example
105
+ * example
106
+ */
107
+ name?: string;
108
+ /**
109
+ * @example
110
+ * http_custom
111
+ */
112
+ phase?: string;
113
+ /**
114
+ * @example
115
+ * 1
116
+ */
117
+ position?: number;
118
+ /**
119
+ * @example
120
+ * [{}]
121
+ */
122
+ rules?: GetUserWafRulesetResponseBodyRulesetRules[];
123
+ /**
124
+ * @example
125
+ * {}
126
+ */
127
+ shared?: WafBatchRuleShared;
128
+ /**
129
+ * @example
130
+ * on
131
+ */
132
+ status?: string;
133
+ static names(): {
134
+ [key: string]: string;
135
+ };
136
+ static types(): {
137
+ [key: string]: any;
138
+ };
139
+ validate(): void;
140
+ constructor(map?: {
141
+ [key: string]: any;
142
+ });
143
+ }
144
+ export declare class GetUserWafRulesetResponseBody extends $dara.Model {
145
+ /**
146
+ * @example
147
+ * 36af3fcc-43d0-441c-86b1-428951dc8225
148
+ */
149
+ requestId?: string;
150
+ /**
151
+ * @example
152
+ * {}
153
+ */
154
+ ruleset?: GetUserWafRulesetResponseBodyRuleset;
155
+ static names(): {
156
+ [key: string]: string;
157
+ };
158
+ static types(): {
159
+ [key: string]: any;
160
+ };
161
+ validate(): void;
162
+ constructor(map?: {
163
+ [key: string]: any;
164
+ });
165
+ }
@@ -0,0 +1,163 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.GetUserWafRulesetResponseBody = exports.GetUserWafRulesetResponseBodyRuleset = exports.GetUserWafRulesetResponseBodyRulesetRules = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const WafBatchRuleShared_1 = require("./WafBatchRuleShared");
40
+ const WafRuleConfig_1 = require("./WafRuleConfig");
41
+ class GetUserWafRulesetResponseBodyRulesetRules extends $dara.Model {
42
+ static names() {
43
+ return {
44
+ action: 'Action',
45
+ characteristicsFields: 'CharacteristicsFields',
46
+ config: 'Config',
47
+ fields: 'Fields',
48
+ id: 'Id',
49
+ name: 'Name',
50
+ phase: 'Phase',
51
+ position: 'Position',
52
+ rulesetId: 'RulesetId',
53
+ skip: 'Skip',
54
+ status: 'Status',
55
+ tags: 'Tags',
56
+ type: 'Type',
57
+ updateTime: 'UpdateTime',
58
+ };
59
+ }
60
+ static types() {
61
+ return {
62
+ action: 'string',
63
+ characteristicsFields: { 'type': 'array', 'itemType': 'string' },
64
+ config: WafRuleConfig_1.WafRuleConfig,
65
+ fields: { 'type': 'array', 'itemType': 'string' },
66
+ id: 'number',
67
+ name: 'string',
68
+ phase: 'string',
69
+ position: 'number',
70
+ rulesetId: 'number',
71
+ skip: 'string',
72
+ status: 'string',
73
+ tags: { 'type': 'array', 'itemType': 'string' },
74
+ type: 'string',
75
+ updateTime: 'string',
76
+ };
77
+ }
78
+ validate() {
79
+ if (Array.isArray(this.characteristicsFields)) {
80
+ $dara.Model.validateArray(this.characteristicsFields);
81
+ }
82
+ if (this.config && typeof this.config.validate === 'function') {
83
+ this.config.validate();
84
+ }
85
+ if (Array.isArray(this.fields)) {
86
+ $dara.Model.validateArray(this.fields);
87
+ }
88
+ if (Array.isArray(this.tags)) {
89
+ $dara.Model.validateArray(this.tags);
90
+ }
91
+ super.validate();
92
+ }
93
+ constructor(map) {
94
+ super(map);
95
+ }
96
+ }
97
+ exports.GetUserWafRulesetResponseBodyRulesetRules = GetUserWafRulesetResponseBodyRulesetRules;
98
+ class GetUserWafRulesetResponseBodyRuleset extends $dara.Model {
99
+ static names() {
100
+ return {
101
+ description: 'Description',
102
+ expression: 'Expression',
103
+ id: 'Id',
104
+ name: 'Name',
105
+ phase: 'Phase',
106
+ position: 'Position',
107
+ rules: 'Rules',
108
+ shared: 'Shared',
109
+ status: 'Status',
110
+ };
111
+ }
112
+ static types() {
113
+ return {
114
+ description: 'string',
115
+ expression: 'string',
116
+ id: 'number',
117
+ name: 'string',
118
+ phase: 'string',
119
+ position: 'number',
120
+ rules: { 'type': 'array', 'itemType': GetUserWafRulesetResponseBodyRulesetRules },
121
+ shared: WafBatchRuleShared_1.WafBatchRuleShared,
122
+ status: 'string',
123
+ };
124
+ }
125
+ validate() {
126
+ if (Array.isArray(this.rules)) {
127
+ $dara.Model.validateArray(this.rules);
128
+ }
129
+ if (this.shared && typeof this.shared.validate === 'function') {
130
+ this.shared.validate();
131
+ }
132
+ super.validate();
133
+ }
134
+ constructor(map) {
135
+ super(map);
136
+ }
137
+ }
138
+ exports.GetUserWafRulesetResponseBodyRuleset = GetUserWafRulesetResponseBodyRuleset;
139
+ class GetUserWafRulesetResponseBody extends $dara.Model {
140
+ static names() {
141
+ return {
142
+ requestId: 'RequestId',
143
+ ruleset: 'Ruleset',
144
+ };
145
+ }
146
+ static types() {
147
+ return {
148
+ requestId: 'string',
149
+ ruleset: GetUserWafRulesetResponseBodyRuleset,
150
+ };
151
+ }
152
+ validate() {
153
+ if (this.ruleset && typeof this.ruleset.validate === 'function') {
154
+ this.ruleset.validate();
155
+ }
156
+ super.validate();
157
+ }
158
+ constructor(map) {
159
+ super(map);
160
+ }
161
+ }
162
+ exports.GetUserWafRulesetResponseBody = GetUserWafRulesetResponseBody;
163
+ //# sourceMappingURL=GetUserWafRulesetResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetUserWafRulesetResponseBody.js","sourceRoot":"","sources":["../../src/models/GetUserWafRulesetResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6DAA0D;AAC1D,mDAAgD;AAGhD,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IAwExE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,qBAAqB,EAAE,uBAAuB;YAC9C,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAA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,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,oCAAoC;SAC9C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,IAAI,OAAQ,IAAI,CAAC,OAAe,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACvE,IAAI,CAAC,OAAe,CAAC,QAAQ,EAAE,CAAC;QACnC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnCD,sEAmCC"}
@@ -0,0 +1,64 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ListUserWafRulesetsRequestQueryArgs extends $dara.Model {
3
+ desc?: boolean;
4
+ /**
5
+ * @example
6
+ * example
7
+ */
8
+ nameLike?: string;
9
+ /**
10
+ * @example
11
+ * id
12
+ */
13
+ orderBy?: string;
14
+ static names(): {
15
+ [key: string]: string;
16
+ };
17
+ static types(): {
18
+ [key: string]: any;
19
+ };
20
+ validate(): void;
21
+ constructor(map?: {
22
+ [key: string]: any;
23
+ });
24
+ }
25
+ export declare class ListUserWafRulesetsRequest extends $dara.Model {
26
+ /**
27
+ * @remarks
28
+ * This parameter is required.
29
+ *
30
+ * @example
31
+ * esa-xxxxxxx
32
+ */
33
+ instanceId?: string;
34
+ /**
35
+ * @example
36
+ * 1
37
+ */
38
+ pageNumber?: number;
39
+ /**
40
+ * @example
41
+ * 20
42
+ */
43
+ pageSize?: number;
44
+ /**
45
+ * @example
46
+ * http_bot
47
+ */
48
+ phase?: string;
49
+ /**
50
+ * @example
51
+ * 1
52
+ */
53
+ queryArgs?: ListUserWafRulesetsRequestQueryArgs;
54
+ static names(): {
55
+ [key: string]: string;
56
+ };
57
+ static types(): {
58
+ [key: string]: any;
59
+ };
60
+ validate(): void;
61
+ constructor(map?: {
62
+ [key: string]: any;
63
+ });
64
+ }
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ListUserWafRulesetsRequest = exports.ListUserWafRulesetsRequestQueryArgs = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ListUserWafRulesetsRequestQueryArgs extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ desc: 'Desc',
43
+ nameLike: 'NameLike',
44
+ orderBy: 'OrderBy',
45
+ };
46
+ }
47
+ static types() {
48
+ return {
49
+ desc: 'boolean',
50
+ nameLike: 'string',
51
+ orderBy: 'string',
52
+ };
53
+ }
54
+ validate() {
55
+ super.validate();
56
+ }
57
+ constructor(map) {
58
+ super(map);
59
+ }
60
+ }
61
+ exports.ListUserWafRulesetsRequestQueryArgs = ListUserWafRulesetsRequestQueryArgs;
62
+ class ListUserWafRulesetsRequest extends $dara.Model {
63
+ static names() {
64
+ return {
65
+ instanceId: 'InstanceId',
66
+ pageNumber: 'PageNumber',
67
+ pageSize: 'PageSize',
68
+ phase: 'Phase',
69
+ queryArgs: 'QueryArgs',
70
+ };
71
+ }
72
+ static types() {
73
+ return {
74
+ instanceId: 'string',
75
+ pageNumber: 'number',
76
+ pageSize: 'number',
77
+ phase: 'string',
78
+ queryArgs: ListUserWafRulesetsRequestQueryArgs,
79
+ };
80
+ }
81
+ validate() {
82
+ if (this.queryArgs && typeof this.queryArgs.validate === 'function') {
83
+ this.queryArgs.validate();
84
+ }
85
+ super.validate();
86
+ }
87
+ constructor(map) {
88
+ super(map);
89
+ }
90
+ }
91
+ exports.ListUserWafRulesetsRequest = ListUserWafRulesetsRequest;
92
+ //# sourceMappingURL=ListUserWafRulesetsRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListUserWafRulesetsRequest.js","sourceRoot":"","sources":["../../src/models/ListUserWafRulesetsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAYlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnCD,kFAmCC;AAED,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IA6BzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;YACd,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,QAAQ;YACf,SAAS,EAAE,mCAAmC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,SAAS,IAAI,OAAQ,IAAI,CAAC,SAAiB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC3E,IAAI,CAAC,SAAiB,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA3DD,gEA2DC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { ListUserWafRulesetsResponseBody } from "./ListUserWafRulesetsResponseBody";
3
+ export declare class ListUserWafRulesetsResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: ListUserWafRulesetsResponseBody;
9
+ static names(): {
10
+ [key: string]: string;
11
+ };
12
+ static types(): {
13
+ [key: string]: any;
14
+ };
15
+ validate(): void;
16
+ constructor(map?: {
17
+ [key: string]: any;
18
+ });
19
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ListUserWafRulesetsResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const ListUserWafRulesetsResponseBody_1 = require("./ListUserWafRulesetsResponseBody");
40
+ class ListUserWafRulesetsResponse extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ headers: 'headers',
44
+ statusCode: 'statusCode',
45
+ body: 'body',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
51
+ statusCode: 'number',
52
+ body: ListUserWafRulesetsResponseBody_1.ListUserWafRulesetsResponseBody,
53
+ };
54
+ }
55
+ validate() {
56
+ if (this.headers) {
57
+ $dara.Model.validateMap(this.headers);
58
+ }
59
+ if (this.body && typeof this.body.validate === 'function') {
60
+ this.body.validate();
61
+ }
62
+ super.validate();
63
+ }
64
+ constructor(map) {
65
+ super(map);
66
+ }
67
+ }
68
+ exports.ListUserWafRulesetsResponse = ListUserWafRulesetsResponse;
69
+ //# sourceMappingURL=ListUserWafRulesetsResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListUserWafRulesetsResponse.js","sourceRoot":"","sources":["../../src/models/ListUserWafRulesetsResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uFAAoF;AAGpF,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAI1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iEAA+B;SACtC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kEAiCC"}
@@ -0,0 +1,84 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ListUserWafRulesetsResponseBodyRulesets extends $dara.Model {
3
+ /**
4
+ * @example
5
+ * example
6
+ */
7
+ description?: string;
8
+ /**
9
+ * @example
10
+ * 10000001
11
+ */
12
+ id?: number;
13
+ /**
14
+ * @example
15
+ * example
16
+ */
17
+ name?: string;
18
+ /**
19
+ * @example
20
+ * http_custom
21
+ */
22
+ phase?: string;
23
+ /**
24
+ * @example
25
+ * 1
26
+ */
27
+ position?: number;
28
+ /**
29
+ * @example
30
+ * on
31
+ */
32
+ status?: string;
33
+ static names(): {
34
+ [key: string]: string;
35
+ };
36
+ static types(): {
37
+ [key: string]: any;
38
+ };
39
+ validate(): void;
40
+ constructor(map?: {
41
+ [key: string]: any;
42
+ });
43
+ }
44
+ export declare class ListUserWafRulesetsResponseBody extends $dara.Model {
45
+ /**
46
+ * @example
47
+ * 10
48
+ */
49
+ instanceUsage?: number;
50
+ /**
51
+ * @example
52
+ * 1
53
+ */
54
+ pageNumber?: number;
55
+ /**
56
+ * @example
57
+ * 20
58
+ */
59
+ pageSize?: number;
60
+ /**
61
+ * @remarks
62
+ * Id of the request
63
+ *
64
+ * @example
65
+ * 36af3fcc-43d0-441c-86b1-428951dc8225
66
+ */
67
+ requestId?: string;
68
+ rulesets?: ListUserWafRulesetsResponseBodyRulesets[];
69
+ /**
70
+ * @example
71
+ * 5
72
+ */
73
+ totalCount?: number;
74
+ static names(): {
75
+ [key: string]: string;
76
+ };
77
+ static types(): {
78
+ [key: string]: any;
79
+ };
80
+ validate(): void;
81
+ constructor(map?: {
82
+ [key: string]: any;
83
+ });
84
+ }