@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,62 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { WafRuleConfig } from "./WafRuleConfig";
3
+ import { WafBatchRuleShared } from "./WafBatchRuleShared";
4
+ export declare class CreateUserWafRulesetRequest extends $dara.Model {
5
+ /**
6
+ * @example
7
+ * this is a test ruleset.
8
+ */
9
+ description?: string;
10
+ /**
11
+ * @remarks
12
+ * This parameter is required.
13
+ *
14
+ * @example
15
+ * ip.src == 1.1.1.1
16
+ */
17
+ expression?: string;
18
+ /**
19
+ * @remarks
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * esa-site-ads11w
24
+ */
25
+ instanceId?: string;
26
+ /**
27
+ * @remarks
28
+ * This parameter is required.
29
+ *
30
+ * @example
31
+ * example
32
+ */
33
+ name?: string;
34
+ /**
35
+ * @remarks
36
+ * This parameter is required.
37
+ *
38
+ * @example
39
+ * http_custom
40
+ */
41
+ phase?: string;
42
+ rules?: WafRuleConfig[];
43
+ shared?: WafBatchRuleShared;
44
+ /**
45
+ * @remarks
46
+ * This parameter is required.
47
+ *
48
+ * @example
49
+ * on
50
+ */
51
+ status?: string;
52
+ static names(): {
53
+ [key: string]: string;
54
+ };
55
+ static types(): {
56
+ [key: string]: any;
57
+ };
58
+ validate(): void;
59
+ constructor(map?: {
60
+ [key: string]: any;
61
+ });
62
+ }
@@ -0,0 +1,80 @@
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.CreateUserWafRulesetRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const WafRuleConfig_1 = require("./WafRuleConfig");
40
+ const WafBatchRuleShared_1 = require("./WafBatchRuleShared");
41
+ class CreateUserWafRulesetRequest extends $dara.Model {
42
+ static names() {
43
+ return {
44
+ description: 'Description',
45
+ expression: 'Expression',
46
+ instanceId: 'InstanceId',
47
+ name: 'Name',
48
+ phase: 'Phase',
49
+ rules: 'Rules',
50
+ shared: 'Shared',
51
+ status: 'Status',
52
+ };
53
+ }
54
+ static types() {
55
+ return {
56
+ description: 'string',
57
+ expression: 'string',
58
+ instanceId: 'string',
59
+ name: 'string',
60
+ phase: 'string',
61
+ rules: { 'type': 'array', 'itemType': WafRuleConfig_1.WafRuleConfig },
62
+ shared: WafBatchRuleShared_1.WafBatchRuleShared,
63
+ status: 'string',
64
+ };
65
+ }
66
+ validate() {
67
+ if (Array.isArray(this.rules)) {
68
+ $dara.Model.validateArray(this.rules);
69
+ }
70
+ if (this.shared && typeof this.shared.validate === 'function') {
71
+ this.shared.validate();
72
+ }
73
+ super.validate();
74
+ }
75
+ constructor(map) {
76
+ super(map);
77
+ }
78
+ }
79
+ exports.CreateUserWafRulesetRequest = CreateUserWafRulesetRequest;
80
+ //# sourceMappingURL=CreateUserWafRulesetRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateUserWafRulesetRequest.js","sourceRoot":"","sources":["../../src/models/CreateUserWafRulesetRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mDAAgD;AAChD,6DAA0D;AAG1D,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAgD1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,6BAAa,EAAE;YACrD,MAAM,EAAE,uCAAkB;YAC1B,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC7B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,MAAM,IAAI,OAAQ,IAAI,CAAC,MAAc,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACrE,IAAI,CAAC,MAAc,CAAC,QAAQ,EAAE,CAAC;QAClC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvFD,kEAuFC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { CreateUserWafRulesetResponseBody } from "./CreateUserWafRulesetResponseBody";
3
+ export declare class CreateUserWafRulesetResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: CreateUserWafRulesetResponseBody;
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.CreateUserWafRulesetResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const CreateUserWafRulesetResponseBody_1 = require("./CreateUserWafRulesetResponseBody");
40
+ class CreateUserWafRulesetResponse 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: CreateUserWafRulesetResponseBody_1.CreateUserWafRulesetResponseBody,
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.CreateUserWafRulesetResponse = CreateUserWafRulesetResponse;
69
+ //# sourceMappingURL=CreateUserWafRulesetResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateUserWafRulesetResponse.js","sourceRoot":"","sources":["../../src/models/CreateUserWafRulesetResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yFAAsF;AAGtF,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAI3D,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,mEAAgC;SACvC,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,oEAiCC"}
@@ -0,0 +1,24 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class CreateUserWafRulesetResponseBody extends $dara.Model {
3
+ /**
4
+ * @example
5
+ * 665d3af3621bccf3fe29e1a4
6
+ */
7
+ id?: number;
8
+ /**
9
+ * @example
10
+ * 15C66C7B-671A-4297-9187-2C4477247A74
11
+ */
12
+ requestId?: string;
13
+ ruleIds?: number[];
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
+ }
@@ -0,0 +1,65 @@
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.CreateUserWafRulesetResponseBody = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class CreateUserWafRulesetResponseBody extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ id: 'Id',
43
+ requestId: 'RequestId',
44
+ ruleIds: 'RuleIds',
45
+ };
46
+ }
47
+ static types() {
48
+ return {
49
+ id: 'number',
50
+ requestId: 'string',
51
+ ruleIds: { 'type': 'array', 'itemType': 'number' },
52
+ };
53
+ }
54
+ validate() {
55
+ if (Array.isArray(this.ruleIds)) {
56
+ $dara.Model.validateArray(this.ruleIds);
57
+ }
58
+ super.validate();
59
+ }
60
+ constructor(map) {
61
+ super(map);
62
+ }
63
+ }
64
+ exports.CreateUserWafRulesetResponseBody = CreateUserWafRulesetResponseBody;
65
+ //# sourceMappingURL=CreateUserWafRulesetResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateUserWafRulesetResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateUserWafRulesetResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAY/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,IAAI;YACR,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,QAAQ;YACZ,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACnD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC/B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,4EAsCC"}
@@ -0,0 +1,60 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class CreateUserWafRulesetShrinkRequest extends $dara.Model {
3
+ /**
4
+ * @example
5
+ * this is a test ruleset.
6
+ */
7
+ description?: string;
8
+ /**
9
+ * @remarks
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * ip.src == 1.1.1.1
14
+ */
15
+ expression?: string;
16
+ /**
17
+ * @remarks
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * esa-site-ads11w
22
+ */
23
+ instanceId?: string;
24
+ /**
25
+ * @remarks
26
+ * This parameter is required.
27
+ *
28
+ * @example
29
+ * example
30
+ */
31
+ name?: string;
32
+ /**
33
+ * @remarks
34
+ * This parameter is required.
35
+ *
36
+ * @example
37
+ * http_custom
38
+ */
39
+ phase?: string;
40
+ rulesShrink?: string;
41
+ sharedShrink?: string;
42
+ /**
43
+ * @remarks
44
+ * This parameter is required.
45
+ *
46
+ * @example
47
+ * on
48
+ */
49
+ status?: string;
50
+ static names(): {
51
+ [key: string]: string;
52
+ };
53
+ static types(): {
54
+ [key: string]: any;
55
+ };
56
+ validate(): void;
57
+ constructor(map?: {
58
+ [key: string]: any;
59
+ });
60
+ }
@@ -0,0 +1,72 @@
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.CreateUserWafRulesetShrinkRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class CreateUserWafRulesetShrinkRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ description: 'Description',
43
+ expression: 'Expression',
44
+ instanceId: 'InstanceId',
45
+ name: 'Name',
46
+ phase: 'Phase',
47
+ rulesShrink: 'Rules',
48
+ sharedShrink: 'Shared',
49
+ status: 'Status',
50
+ };
51
+ }
52
+ static types() {
53
+ return {
54
+ description: 'string',
55
+ expression: 'string',
56
+ instanceId: 'string',
57
+ name: 'string',
58
+ phase: 'string',
59
+ rulesShrink: 'string',
60
+ sharedShrink: 'string',
61
+ status: 'string',
62
+ };
63
+ }
64
+ validate() {
65
+ super.validate();
66
+ }
67
+ constructor(map) {
68
+ super(map);
69
+ }
70
+ }
71
+ exports.CreateUserWafRulesetShrinkRequest = CreateUserWafRulesetShrinkRequest;
72
+ //# sourceMappingURL=CreateUserWafRulesetShrinkRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateUserWafRulesetShrinkRequest.js","sourceRoot":"","sources":["../../src/models/CreateUserWafRulesetShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAgDhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,OAAO;YACpB,YAAY,EAAE,QAAQ;YACtB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,QAAQ;YACrB,YAAY,EAAE,QAAQ;YACtB,MAAM,EAAE,QAAQ;SACjB,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;AAjFD,8EAiFC"}
@@ -0,0 +1,29 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class DeleteUserWafRulesetRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * This parameter is required.
6
+ *
7
+ * @example
8
+ * 10000001
9
+ */
10
+ id?: number;
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ *
15
+ * @example
16
+ * esa-xxxxxxx
17
+ */
18
+ instanceId?: string;
19
+ static names(): {
20
+ [key: string]: string;
21
+ };
22
+ static types(): {
23
+ [key: string]: any;
24
+ };
25
+ validate(): void;
26
+ constructor(map?: {
27
+ [key: string]: any;
28
+ });
29
+ }
@@ -0,0 +1,60 @@
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.DeleteUserWafRulesetRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class DeleteUserWafRulesetRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ id: 'Id',
43
+ instanceId: 'InstanceId',
44
+ };
45
+ }
46
+ static types() {
47
+ return {
48
+ id: 'number',
49
+ instanceId: 'string',
50
+ };
51
+ }
52
+ validate() {
53
+ super.validate();
54
+ }
55
+ constructor(map) {
56
+ super(map);
57
+ }
58
+ }
59
+ exports.DeleteUserWafRulesetRequest = DeleteUserWafRulesetRequest;
60
+ //# sourceMappingURL=DeleteUserWafRulesetRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteUserWafRulesetRequest.js","sourceRoot":"","sources":["../../src/models/DeleteUserWafRulesetRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAiB1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,IAAI;YACR,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,QAAQ;YACZ,UAAU,EAAE,QAAQ;SACrB,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;AAtCD,kEAsCC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { DeleteUserWafRulesetResponseBody } from "./DeleteUserWafRulesetResponseBody";
3
+ export declare class DeleteUserWafRulesetResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: DeleteUserWafRulesetResponseBody;
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.DeleteUserWafRulesetResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const DeleteUserWafRulesetResponseBody_1 = require("./DeleteUserWafRulesetResponseBody");
40
+ class DeleteUserWafRulesetResponse 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: DeleteUserWafRulesetResponseBody_1.DeleteUserWafRulesetResponseBody,
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.DeleteUserWafRulesetResponse = DeleteUserWafRulesetResponse;
69
+ //# sourceMappingURL=DeleteUserWafRulesetResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteUserWafRulesetResponse.js","sourceRoot":"","sources":["../../src/models/DeleteUserWafRulesetResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yFAAsF;AAGtF,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAI3D,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,mEAAgC;SACvC,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,oEAiCC"}