@alicloud/xtee20210910 2.1.2 → 2.2.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 (52) hide show
  1. package/dist/client.d.ts +45 -0
  2. package/dist/client.js +162 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CompareRuleRequest.d.ts +47 -0
  5. package/dist/models/CompareRuleRequest.js +64 -0
  6. package/dist/models/CompareRuleRequest.js.map +1 -0
  7. package/dist/models/CompareRuleResponse.d.ts +19 -0
  8. package/dist/models/CompareRuleResponse.js +69 -0
  9. package/dist/models/CompareRuleResponse.js.map +1 -0
  10. package/dist/models/CompareRuleResponseBody.d.ts +644 -0
  11. package/dist/models/CompareRuleResponseBody.js +222 -0
  12. package/dist/models/CompareRuleResponseBody.js.map +1 -0
  13. package/dist/models/DescribeExpressionVariableVersionDetailRequest.d.ts +63 -0
  14. package/dist/models/DescribeExpressionVariableVersionDetailRequest.js +68 -0
  15. package/dist/models/DescribeExpressionVariableVersionDetailRequest.js.map +1 -0
  16. package/dist/models/DescribeExpressionVariableVersionDetailResponse.d.ts +19 -0
  17. package/dist/models/DescribeExpressionVariableVersionDetailResponse.js +69 -0
  18. package/dist/models/DescribeExpressionVariableVersionDetailResponse.js.map +1 -0
  19. package/dist/models/DescribeExpressionVariableVersionDetailResponseBody.d.ts +214 -0
  20. package/dist/models/DescribeExpressionVariableVersionDetailResponseBody.js +124 -0
  21. package/dist/models/DescribeExpressionVariableVersionDetailResponseBody.js.map +1 -0
  22. package/dist/models/DescribeListPocRequest.d.ts +2 -0
  23. package/dist/models/DescribeListPocRequest.js +4 -0
  24. package/dist/models/DescribeListPocRequest.js.map +1 -1
  25. package/dist/models/DescribeSafDeOrderResponseBody.d.ts +30 -0
  26. package/dist/models/DescribeSafDeOrderResponseBody.js.map +1 -1
  27. package/dist/models/DescribeVariableVersionDetailRequest.d.ts +63 -0
  28. package/dist/models/DescribeVariableVersionDetailRequest.js +68 -0
  29. package/dist/models/DescribeVariableVersionDetailRequest.js.map +1 -0
  30. package/dist/models/DescribeVariableVersionDetailResponse.d.ts +19 -0
  31. package/dist/models/DescribeVariableVersionDetailResponse.js +69 -0
  32. package/dist/models/DescribeVariableVersionDetailResponse.js.map +1 -0
  33. package/dist/models/DescribeVariableVersionDetailResponseBody.d.ts +166 -0
  34. package/dist/models/DescribeVariableVersionDetailResponseBody.js +112 -0
  35. package/dist/models/DescribeVariableVersionDetailResponseBody.js.map +1 -0
  36. package/dist/models/model.d.ts +14 -0
  37. package/dist/models/model.js +50 -22
  38. package/dist/models/model.js.map +1 -1
  39. package/package.json +1 -1
  40. package/src/client.ts +186 -0
  41. package/src/models/CompareRuleRequest.ts +66 -0
  42. package/src/models/CompareRuleResponse.ts +40 -0
  43. package/src/models/CompareRuleResponseBody.ts +790 -0
  44. package/src/models/DescribeExpressionVariableVersionDetailRequest.ts +86 -0
  45. package/src/models/DescribeExpressionVariableVersionDetailResponse.ts +40 -0
  46. package/src/models/DescribeExpressionVariableVersionDetailResponseBody.ts +284 -0
  47. package/src/models/DescribeListPocRequest.ts +6 -0
  48. package/src/models/DescribeSafDeOrderResponseBody.ts +30 -0
  49. package/src/models/DescribeVariableVersionDetailRequest.ts +86 -0
  50. package/src/models/DescribeVariableVersionDetailResponse.ts +40 -0
  51. package/src/models/DescribeVariableVersionDetailResponseBody.ts +224 -0
  52. package/src/models/model.ts +14 -0
@@ -0,0 +1,790 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CompareRuleResponseBodyResultObjectNewRule extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Audit ID.
9
+ *
10
+ * @example
11
+ * 258
12
+ */
13
+ auditId?: number;
14
+ /**
15
+ * @remarks
16
+ * Authorization type.
17
+ *
18
+ * @example
19
+ * all
20
+ */
21
+ authType?: string;
22
+ /**
23
+ * @remarks
24
+ * Primary key ID of the rule.
25
+ *
26
+ * @example
27
+ * 6760
28
+ */
29
+ consoleRuleId?: number;
30
+ /**
31
+ * @remarks
32
+ * Creation type.
33
+ *
34
+ * @example
35
+ * NORMAL
36
+ */
37
+ createType?: string;
38
+ /**
39
+ * @remarks
40
+ * Event code.
41
+ *
42
+ * @example
43
+ * de_asssce8122
44
+ */
45
+ eventCode?: string;
46
+ /**
47
+ * @remarks
48
+ * Event name.
49
+ *
50
+ * @example
51
+ * 注册_事件
52
+ */
53
+ eventName?: string;
54
+ /**
55
+ * @remarks
56
+ * Creation time.
57
+ *
58
+ * @example
59
+ * 1760670462000
60
+ */
61
+ gmtCreate?: number;
62
+ /**
63
+ * @remarks
64
+ * Modification time.
65
+ *
66
+ * @example
67
+ * 1761196952000
68
+ */
69
+ gmtModified?: number;
70
+ /**
71
+ * @remarks
72
+ * Logic of the rule expression execution.
73
+ *
74
+ * @example
75
+ * 1&2&3
76
+ */
77
+ logicExpression?: string;
78
+ /**
79
+ * @remarks
80
+ * Main event code.
81
+ *
82
+ * @example
83
+ * de_asssce8122
84
+ */
85
+ mainEventCode?: string;
86
+ /**
87
+ * @remarks
88
+ * Memo.
89
+ *
90
+ * @example
91
+ * 鸿蒙元服务_交费业务
92
+ */
93
+ memo?: string;
94
+ /**
95
+ * @remarks
96
+ * Returned rule action structure. Returned when the policy type is DEFAULT.
97
+ *
98
+ * @example
99
+ * {
100
+ * "TAG": "[{\\"code\\":\\"addDeTags\\",\\"inputs\\":[\\"test\\"],\\"description\\":\\"打标签\\",\\"type\\":\\"ACTION\\",\\"title\\":\\"打标签\\",\\"actionType\\":\\"TAG\\",\\"displayType\\":\\"ACTION\\",\\"sourceType\\":\\"SAF\\",\\"name\\":\\"__addDeTags__\\",\\"fieldType\\":\\"STRING\\"}]"
101
+ * }
102
+ */
103
+ ruleActionMap?: { [key: string]: any };
104
+ /**
105
+ * @remarks
106
+ * Output actions of the rule execution. Returned when the rule type is DEFAULT.
107
+ *
108
+ * @example
109
+ * [
110
+ * {
111
+ * "actionType": "TAG",
112
+ * "code": "addDeTags",
113
+ * "description": "打标签",
114
+ * "displayType": "ACTION",
115
+ * "fieldType": "STRING",
116
+ * "inputs": [
117
+ * "test"
118
+ * ],
119
+ * "name": "__addDeTags__",
120
+ * "sourceType": "SAF",
121
+ * "title": "打标签",
122
+ * "type": "ACTION"
123
+ * }
124
+ * ]
125
+ */
126
+ ruleActions?: string;
127
+ /**
128
+ * @remarks
129
+ * Authorization type of the rule.
130
+ *
131
+ * @example
132
+ * NORMAL
133
+ */
134
+ ruleAuthType?: string;
135
+ /**
136
+ * @remarks
137
+ * DSL logic for rule execution. Returned when the rule type is DSL.
138
+ *
139
+ * @example
140
+ * {
141
+ * "elseStatement": {
142
+ *
143
+ * },
144
+ * "ifStatement": {
145
+ * "condition": {
146
+ * "currentId": 0,
147
+ * "deepCount": 1,
148
+ * "list": [
149
+ * {
150
+ * "sequence": 1,
151
+ * "left": {
152
+ * "displayType": "NATIVE",
153
+ * "code": "ip",
154
+ * "functionCode": "",
155
+ * "functionName": "",
156
+ * "name": "ip",
157
+ * "description": "IP地址",
158
+ * "hasRightVariable": true,
159
+ * "title": "IP地址",
160
+ * "type": "NATIVE",
161
+ * "fieldType": "STRING"
162
+ * },
163
+ * "currentId": 0,
164
+ * "deepCount": 1,
165
+ * "right": {
166
+ * "name": "192.168.1.1",
167
+ * "rightVariableType": "constant"
168
+ * },
169
+ * "operatorCode": "equals",
170
+ * "operatorName": "等于",
171
+ * "parentId": 0
172
+ * }
173
+ * ],
174
+ * "relationship": "and",
175
+ * "parentId": 0
176
+ * },
177
+ * "then": [
178
+ * {
179
+ * "actionType": "TAG",
180
+ * "displayType": "ACTION",
181
+ * "code": "addDeTags",
182
+ * "sourceType": "SAF",
183
+ * "inputs": [
184
+ * "10"
185
+ * ],
186
+ * "name": "__addDeTags__",
187
+ * "description": "打标签",
188
+ * "outputType": "const",
189
+ * "title": "打标签",
190
+ * "type": "ACTION",
191
+ * "fieldType": "STRING"
192
+ * }
193
+ * ],
194
+ * "expressions": [
195
+ * {
196
+ * "itemId": 1,
197
+ * "left": {
198
+ * "displayType": "NATIVE",
199
+ * "code": "ip",
200
+ * "functionCode": "",
201
+ * "functionName": "",
202
+ * "name": "ip",
203
+ * "description": "IP地址",
204
+ * "hasRightVariable": true,
205
+ * "title": "IP地址",
206
+ * "type": "NATIVE",
207
+ * "fieldType": "STRING"
208
+ * },
209
+ * "expressionName": "IP地址 等于 192.168.1.1",
210
+ * "rightValue": "192.168.1.1",
211
+ * "right": {
212
+ * "name": "192.168.1.1",
213
+ * "fieldValue": "192.168.1.1"
214
+ * },
215
+ * "operatorCode": "equals",
216
+ * "operatorName": "等于"
217
+ * }
218
+ * ]
219
+ * },
220
+ * "elseIfStatement": [
221
+ *
222
+ * ]
223
+ * }
224
+ */
225
+ ruleBody?: string;
226
+ /**
227
+ * @remarks
228
+ * Policy expressions. Returned when the policy type is DEFAULT.
229
+ *
230
+ * @example
231
+ * [{\\"expressionName\\":\\"设备token不为空\\",\\"itemId\\":1,\\"left\\":{\\"name\\":\\"deviceToken\\"},\\"operatorCode\\":\\"isNotEmptyWrapper\\",\\"operatorName\\":\\"不为空\\"}]
232
+ */
233
+ ruleExpressions?: string;
234
+ /**
235
+ * @remarks
236
+ * Rule ID.
237
+ *
238
+ * @example
239
+ * 101793
240
+ */
241
+ ruleId?: string;
242
+ /**
243
+ * @remarks
244
+ * Rule name.
245
+ *
246
+ * @example
247
+ * 返回设备信息
248
+ */
249
+ ruleName?: string;
250
+ /**
251
+ * @remarks
252
+ * Policy status.
253
+ *
254
+ * @example
255
+ * DRAFT
256
+ */
257
+ ruleStatus?: string;
258
+ /**
259
+ * @remarks
260
+ * Rule type.
261
+ *
262
+ * @example
263
+ * DSL
264
+ */
265
+ ruleType?: string;
266
+ /**
267
+ * @remarks
268
+ * Primary key ID of the rule version.
269
+ *
270
+ * @example
271
+ * 11519
272
+ */
273
+ ruleVersionId?: number;
274
+ /**
275
+ * @remarks
276
+ * User UID.
277
+ *
278
+ * @example
279
+ * 151222xxxxxxxxx
280
+ */
281
+ userId?: number;
282
+ /**
283
+ * @remarks
284
+ * Version number.
285
+ *
286
+ * @example
287
+ * 3
288
+ */
289
+ version?: number;
290
+ static names(): { [key: string]: string } {
291
+ return {
292
+ auditId: 'auditId',
293
+ authType: 'authType',
294
+ consoleRuleId: 'consoleRuleId',
295
+ createType: 'createType',
296
+ eventCode: 'eventCode',
297
+ eventName: 'eventName',
298
+ gmtCreate: 'gmtCreate',
299
+ gmtModified: 'gmtModified',
300
+ logicExpression: 'logicExpression',
301
+ mainEventCode: 'mainEventCode',
302
+ memo: 'memo',
303
+ ruleActionMap: 'ruleActionMap',
304
+ ruleActions: 'ruleActions',
305
+ ruleAuthType: 'ruleAuthType',
306
+ ruleBody: 'ruleBody',
307
+ ruleExpressions: 'ruleExpressions',
308
+ ruleId: 'ruleId',
309
+ ruleName: 'ruleName',
310
+ ruleStatus: 'ruleStatus',
311
+ ruleType: 'ruleType',
312
+ ruleVersionId: 'ruleVersionId',
313
+ userId: 'userId',
314
+ version: 'version',
315
+ };
316
+ }
317
+
318
+ static types(): { [key: string]: any } {
319
+ return {
320
+ auditId: 'number',
321
+ authType: 'string',
322
+ consoleRuleId: 'number',
323
+ createType: 'string',
324
+ eventCode: 'string',
325
+ eventName: 'string',
326
+ gmtCreate: 'number',
327
+ gmtModified: 'number',
328
+ logicExpression: 'string',
329
+ mainEventCode: 'string',
330
+ memo: 'string',
331
+ ruleActionMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
332
+ ruleActions: 'string',
333
+ ruleAuthType: 'string',
334
+ ruleBody: 'string',
335
+ ruleExpressions: 'string',
336
+ ruleId: 'string',
337
+ ruleName: 'string',
338
+ ruleStatus: 'string',
339
+ ruleType: 'string',
340
+ ruleVersionId: 'number',
341
+ userId: 'number',
342
+ version: 'number',
343
+ };
344
+ }
345
+
346
+ validate() {
347
+ if(this.ruleActionMap) {
348
+ $dara.Model.validateMap(this.ruleActionMap);
349
+ }
350
+ super.validate();
351
+ }
352
+
353
+ constructor(map?: { [key: string]: any }) {
354
+ super(map);
355
+ }
356
+ }
357
+
358
+ export class CompareRuleResponseBodyResultObjectOldRule extends $dara.Model {
359
+ /**
360
+ * @remarks
361
+ * Audit ID.
362
+ *
363
+ * @example
364
+ * 257
365
+ */
366
+ auditId?: number;
367
+ /**
368
+ * @remarks
369
+ * Authorization type.
370
+ *
371
+ * @example
372
+ * all
373
+ */
374
+ authType?: string;
375
+ /**
376
+ * @remarks
377
+ * Primary key ID of the policy.
378
+ *
379
+ * @example
380
+ * 6760
381
+ */
382
+ consoleRuleId?: number;
383
+ /**
384
+ * @remarks
385
+ * Creation type.
386
+ *
387
+ * @example
388
+ * NORMAL
389
+ */
390
+ createType?: string;
391
+ /**
392
+ * @remarks
393
+ * Event code.
394
+ *
395
+ * @example
396
+ * de_asssce8122
397
+ */
398
+ eventCode?: string;
399
+ /**
400
+ * @remarks
401
+ * Event name.
402
+ *
403
+ * @example
404
+ * 注册_事件
405
+ */
406
+ eventName?: string;
407
+ /**
408
+ * @remarks
409
+ * Creation time.
410
+ *
411
+ * @example
412
+ * 1760670462000
413
+ */
414
+ gmtCreate?: number;
415
+ /**
416
+ * @remarks
417
+ * Modification time.
418
+ *
419
+ * @example
420
+ * 1760670462000
421
+ */
422
+ gmtModified?: number;
423
+ /**
424
+ * @remarks
425
+ * Execution logic of the policy expression.
426
+ *
427
+ * @example
428
+ * 1&2
429
+ */
430
+ logicExpression?: string;
431
+ /**
432
+ * @remarks
433
+ * Main event code.
434
+ *
435
+ * @example
436
+ * de_asssce8122
437
+ */
438
+ mainEventCode?: string;
439
+ /**
440
+ * @remarks
441
+ * Description.
442
+ *
443
+ * @example
444
+ * 鸿蒙元服务_交费业务
445
+ */
446
+ memo?: string;
447
+ /**
448
+ * @remarks
449
+ * Returned rule action structure. Returned when the policy type is DEFAULT.
450
+ *
451
+ * @example
452
+ * {
453
+ * "TAG": "[{\\"code\\":\\"addDeTags\\",\\"inputs\\":[\\"test\\"],\\"description\\":\\"打标签\\",\\"type\\":\\"ACTION\\",\\"title\\":\\"打标签\\",\\"actionType\\":\\"TAG\\",\\"displayType\\":\\"ACTION\\",\\"sourceType\\":\\"SAF\\",\\"name\\":\\"__addDeTags__\\",\\"fieldType\\":\\"STRING\\"}]"
454
+ * }
455
+ */
456
+ ruleActionMap?: { [key: string]: any };
457
+ /**
458
+ * @remarks
459
+ * Policy execution output actions. Returned when the policy type is DEFAULT.
460
+ *
461
+ * @example
462
+ * [
463
+ * {
464
+ * "actionType": "TAG",
465
+ * "code": "addDeTags",
466
+ * "description": "打标签",
467
+ * "displayType": "ACTION",
468
+ * "fieldType": "STRING",
469
+ * "inputs": [
470
+ * "test"
471
+ * ],
472
+ * "name": "__addDeTags__",
473
+ * "sourceType": "SAF",
474
+ * "title": "打标签",
475
+ * "type": "ACTION"
476
+ * }
477
+ * ]
478
+ */
479
+ ruleActions?: string;
480
+ /**
481
+ * @remarks
482
+ * Policy authorization type.
483
+ *
484
+ * @example
485
+ * NORMAL
486
+ */
487
+ ruleAuthType?: string;
488
+ /**
489
+ * @remarks
490
+ * DSL policy execution logic. Returned when the policy type is DSL.
491
+ *
492
+ * @example
493
+ * {
494
+ * "elseStatement": {
495
+ *
496
+ * },
497
+ * "ifStatement": {
498
+ * "condition": {
499
+ * "currentId": 0,
500
+ * "deepCount": 1,
501
+ * "list": [
502
+ * {
503
+ * "sequence": 1,
504
+ * "left": {
505
+ * "displayType": "NATIVE",
506
+ * "code": "ip",
507
+ * "functionCode": "",
508
+ * "functionName": "",
509
+ * "name": "ip",
510
+ * "description": "IP地址",
511
+ * "hasRightVariable": true,
512
+ * "title": "IP地址",
513
+ * "type": "NATIVE",
514
+ * "fieldType": "STRING"
515
+ * },
516
+ * "currentId": 0,
517
+ * "deepCount": 1,
518
+ * "right": {
519
+ * "name": "192.168.1.1",
520
+ * "rightVariableType": "constant"
521
+ * },
522
+ * "operatorCode": "equals",
523
+ * "operatorName": "等于",
524
+ * "parentId": 0
525
+ * }
526
+ * ],
527
+ * "relationship": "and",
528
+ * "parentId": 0
529
+ * },
530
+ * "then": [
531
+ * {
532
+ * "actionType": "TAG",
533
+ * "displayType": "ACTION",
534
+ * "code": "addDeTags",
535
+ * "sourceType": "SAF",
536
+ * "inputs": [
537
+ * "10"
538
+ * ],
539
+ * "name": "__addDeTags__",
540
+ * "description": "打标签",
541
+ * "outputType": "const",
542
+ * "title": "打标签",
543
+ * "type": "ACTION",
544
+ * "fieldType": "STRING"
545
+ * }
546
+ * ],
547
+ * "expressions": [
548
+ * {
549
+ * "itemId": 1,
550
+ * "left": {
551
+ * "displayType": "NATIVE",
552
+ * "code": "ip",
553
+ * "functionCode": "",
554
+ * "functionName": "",
555
+ * "name": "ip",
556
+ * "description": "IP地址",
557
+ * "hasRightVariable": true,
558
+ * "title": "IP地址",
559
+ * "type": "NATIVE",
560
+ * "fieldType": "STRING"
561
+ * },
562
+ * "expressionName": "IP地址 等于 192.168.1.1",
563
+ * "rightValue": "192.168.1.1",
564
+ * "right": {
565
+ * "name": "192.168.1.1",
566
+ * "fieldValue": "192.168.1.1"
567
+ * },
568
+ * "operatorCode": "equals",
569
+ * "operatorName": "等于"
570
+ * }
571
+ * ]
572
+ * },
573
+ * "elseIfStatement": [
574
+ *
575
+ * ]
576
+ * }
577
+ */
578
+ ruleBody?: string;
579
+ /**
580
+ * @remarks
581
+ * Policy expression. Returned when the policy type is DEFAULT.
582
+ *
583
+ * @example
584
+ * [{\\"expressionName\\":\\"设备token不为空\\",\\"itemId\\":1,\\"left\\":{\\"name\\":\\"deviceToken\\"},\\"operatorCode\\":\\"isNotEmptyWrapper\\",\\"operatorName\\":\\"不为空\\"}]
585
+ */
586
+ ruleExpressions?: string;
587
+ /**
588
+ * @remarks
589
+ * Policy ID.
590
+ *
591
+ * @example
592
+ * 101793
593
+ */
594
+ ruleId?: string;
595
+ /**
596
+ * @remarks
597
+ * Policy name.
598
+ *
599
+ * @example
600
+ * 返回设备信息
601
+ */
602
+ ruleName?: string;
603
+ /**
604
+ * @remarks
605
+ * Policy status.
606
+ *
607
+ * @example
608
+ * RUNNING
609
+ */
610
+ ruleStatus?: string;
611
+ /**
612
+ * @remarks
613
+ * Policy type.
614
+ *
615
+ * @example
616
+ * DSL
617
+ */
618
+ ruleType?: string;
619
+ /**
620
+ * @remarks
621
+ * Primary key ID of the policy version.
622
+ *
623
+ * @example
624
+ * 11518
625
+ */
626
+ ruleVersionId?: number;
627
+ /**
628
+ * @remarks
629
+ * User UID.
630
+ *
631
+ * @example
632
+ * 151222xxxxxxxxx
633
+ */
634
+ userId?: number;
635
+ /**
636
+ * @remarks
637
+ * Version number.
638
+ *
639
+ * @example
640
+ * 2
641
+ */
642
+ version?: number;
643
+ static names(): { [key: string]: string } {
644
+ return {
645
+ auditId: 'auditId',
646
+ authType: 'authType',
647
+ consoleRuleId: 'consoleRuleId',
648
+ createType: 'createType',
649
+ eventCode: 'eventCode',
650
+ eventName: 'eventName',
651
+ gmtCreate: 'gmtCreate',
652
+ gmtModified: 'gmtModified',
653
+ logicExpression: 'logicExpression',
654
+ mainEventCode: 'mainEventCode',
655
+ memo: 'memo',
656
+ ruleActionMap: 'ruleActionMap',
657
+ ruleActions: 'ruleActions',
658
+ ruleAuthType: 'ruleAuthType',
659
+ ruleBody: 'ruleBody',
660
+ ruleExpressions: 'ruleExpressions',
661
+ ruleId: 'ruleId',
662
+ ruleName: 'ruleName',
663
+ ruleStatus: 'ruleStatus',
664
+ ruleType: 'ruleType',
665
+ ruleVersionId: 'ruleVersionId',
666
+ userId: 'userId',
667
+ version: 'version',
668
+ };
669
+ }
670
+
671
+ static types(): { [key: string]: any } {
672
+ return {
673
+ auditId: 'number',
674
+ authType: 'string',
675
+ consoleRuleId: 'number',
676
+ createType: 'string',
677
+ eventCode: 'string',
678
+ eventName: 'string',
679
+ gmtCreate: 'number',
680
+ gmtModified: 'number',
681
+ logicExpression: 'string',
682
+ mainEventCode: 'string',
683
+ memo: 'string',
684
+ ruleActionMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
685
+ ruleActions: 'string',
686
+ ruleAuthType: 'string',
687
+ ruleBody: 'string',
688
+ ruleExpressions: 'string',
689
+ ruleId: 'string',
690
+ ruleName: 'string',
691
+ ruleStatus: 'string',
692
+ ruleType: 'string',
693
+ ruleVersionId: 'number',
694
+ userId: 'number',
695
+ version: 'number',
696
+ };
697
+ }
698
+
699
+ validate() {
700
+ if(this.ruleActionMap) {
701
+ $dara.Model.validateMap(this.ruleActionMap);
702
+ }
703
+ super.validate();
704
+ }
705
+
706
+ constructor(map?: { [key: string]: any }) {
707
+ super(map);
708
+ }
709
+ }
710
+
711
+ export class CompareRuleResponseBodyResultObject extends $dara.Model {
712
+ /**
713
+ * @remarks
714
+ * New policy object.
715
+ */
716
+ newRule?: CompareRuleResponseBodyResultObjectNewRule;
717
+ /**
718
+ * @remarks
719
+ * Old policy object.
720
+ */
721
+ oldRule?: CompareRuleResponseBodyResultObjectOldRule;
722
+ static names(): { [key: string]: string } {
723
+ return {
724
+ newRule: 'newRule',
725
+ oldRule: 'oldRule',
726
+ };
727
+ }
728
+
729
+ static types(): { [key: string]: any } {
730
+ return {
731
+ newRule: CompareRuleResponseBodyResultObjectNewRule,
732
+ oldRule: CompareRuleResponseBodyResultObjectOldRule,
733
+ };
734
+ }
735
+
736
+ validate() {
737
+ if(this.newRule && typeof (this.newRule as any).validate === 'function') {
738
+ (this.newRule as any).validate();
739
+ }
740
+ if(this.oldRule && typeof (this.oldRule as any).validate === 'function') {
741
+ (this.oldRule as any).validate();
742
+ }
743
+ super.validate();
744
+ }
745
+
746
+ constructor(map?: { [key: string]: any }) {
747
+ super(map);
748
+ }
749
+ }
750
+
751
+ export class CompareRuleResponseBody extends $dara.Model {
752
+ /**
753
+ * @remarks
754
+ * Request ID.
755
+ *
756
+ * @example
757
+ * A32FE941-35F2-5378-B37C-4B8FDB16F094
758
+ */
759
+ requestId?: string;
760
+ /**
761
+ * @remarks
762
+ * Returned object.
763
+ */
764
+ resultObject?: CompareRuleResponseBodyResultObject;
765
+ static names(): { [key: string]: string } {
766
+ return {
767
+ requestId: 'RequestId',
768
+ resultObject: 'resultObject',
769
+ };
770
+ }
771
+
772
+ static types(): { [key: string]: any } {
773
+ return {
774
+ requestId: 'string',
775
+ resultObject: CompareRuleResponseBodyResultObject,
776
+ };
777
+ }
778
+
779
+ validate() {
780
+ if(this.resultObject && typeof (this.resultObject as any).validate === 'function') {
781
+ (this.resultObject as any).validate();
782
+ }
783
+ super.validate();
784
+ }
785
+
786
+ constructor(map?: { [key: string]: any }) {
787
+ super(map);
788
+ }
789
+ }
790
+