@alicloud/cms20240330 3.1.1 → 3.2.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 (41) hide show
  1. package/dist/client.d.ts +36 -0
  2. package/dist/client.js +128 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AlertRuleQuery.d.ts +34 -0
  5. package/dist/models/AlertRuleQuery.js +61 -1
  6. package/dist/models/AlertRuleQuery.js.map +1 -1
  7. package/dist/models/ListIntegrationPoliciesRequest.d.ts +92 -0
  8. package/dist/models/ListIntegrationPoliciesRequest.js +106 -0
  9. package/dist/models/ListIntegrationPoliciesRequest.js.map +1 -0
  10. package/dist/models/ListIntegrationPoliciesResponse.d.ts +19 -0
  11. package/dist/models/ListIntegrationPoliciesResponse.js +69 -0
  12. package/dist/models/ListIntegrationPoliciesResponse.js.map +1 -0
  13. package/dist/models/ListIntegrationPoliciesResponseBody.d.ts +362 -0
  14. package/dist/models/ListIntegrationPoliciesResponseBody.js +433 -0
  15. package/dist/models/ListIntegrationPoliciesResponseBody.js.map +1 -0
  16. package/dist/models/ListIntegrationPoliciesShrinkRequest.d.ts +70 -0
  17. package/dist/models/ListIntegrationPoliciesShrinkRequest.js +82 -0
  18. package/dist/models/ListIntegrationPoliciesShrinkRequest.js.map +1 -0
  19. package/dist/models/ListIntegrationPolicyDashboardsRequest.d.ts +23 -0
  20. package/dist/models/ListIntegrationPolicyDashboardsRequest.js +60 -0
  21. package/dist/models/ListIntegrationPolicyDashboardsRequest.js.map +1 -0
  22. package/dist/models/ListIntegrationPolicyDashboardsResponse.d.ts +19 -0
  23. package/dist/models/ListIntegrationPolicyDashboardsResponse.js +69 -0
  24. package/dist/models/ListIntegrationPolicyDashboardsResponse.js.map +1 -0
  25. package/dist/models/ListIntegrationPolicyDashboardsResponseBody.d.ts +45 -0
  26. package/dist/models/ListIntegrationPolicyDashboardsResponseBody.js +97 -0
  27. package/dist/models/ListIntegrationPolicyDashboardsResponseBody.js.map +1 -0
  28. package/dist/models/model.d.ts +23 -0
  29. package/dist/models/model.js +57 -11
  30. package/dist/models/model.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/client.ts +148 -0
  33. package/src/models/AlertRuleQuery.ts +76 -0
  34. package/src/models/ListIntegrationPoliciesRequest.ts +144 -0
  35. package/src/models/ListIntegrationPoliciesResponse.ts +40 -0
  36. package/src/models/ListIntegrationPoliciesResponseBody.ts +642 -0
  37. package/src/models/ListIntegrationPoliciesShrinkRequest.ts +107 -0
  38. package/src/models/ListIntegrationPolicyDashboardsRequest.ts +38 -0
  39. package/src/models/ListIntegrationPolicyDashboardsResponse.ts +40 -0
  40. package/src/models/ListIntegrationPolicyDashboardsResponseBody.ts +88 -0
  41. package/src/models/model.ts +23 -0
@@ -0,0 +1,642 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListIntegrationPoliciesResponseBodyPoliciesBindResource extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * cv68tt87d78vyc89zy9v
9
+ */
10
+ clusterId?: string;
11
+ /**
12
+ * @example
13
+ * ManagedKubernetes
14
+ */
15
+ clusterType?: string;
16
+ /**
17
+ * @example
18
+ * 100.100.0.1/16
19
+ */
20
+ vpcCidr?: string;
21
+ /**
22
+ * @example
23
+ * vpc-uf664nyle5khp5d4d7hdo
24
+ */
25
+ vpcId?: string;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ clusterId: 'clusterId',
29
+ clusterType: 'clusterType',
30
+ vpcCidr: 'vpcCidr',
31
+ vpcId: 'vpcId',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ clusterId: 'string',
38
+ clusterType: 'string',
39
+ vpcCidr: 'string',
40
+ vpcId: 'string',
41
+ };
42
+ }
43
+
44
+ validate() {
45
+ super.validate();
46
+ }
47
+
48
+ constructor(map?: { [key: string]: any }) {
49
+ super(map);
50
+ }
51
+ }
52
+
53
+ export class ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesAnnotations extends $dara.Model {
54
+ /**
55
+ * @example
56
+ * add
57
+ */
58
+ op?: string;
59
+ /**
60
+ * @example
61
+ * key
62
+ */
63
+ tagKey?: string;
64
+ tagValues?: string[];
65
+ static names(): { [key: string]: string } {
66
+ return {
67
+ op: 'op',
68
+ tagKey: 'tagKey',
69
+ tagValues: 'tagValues',
70
+ };
71
+ }
72
+
73
+ static types(): { [key: string]: any } {
74
+ return {
75
+ op: 'string',
76
+ tagKey: 'string',
77
+ tagValues: { 'type': 'array', 'itemType': 'string' },
78
+ };
79
+ }
80
+
81
+ validate() {
82
+ if(Array.isArray(this.tagValues)) {
83
+ $dara.Model.validateArray(this.tagValues);
84
+ }
85
+ super.validate();
86
+ }
87
+
88
+ constructor(map?: { [key: string]: any }) {
89
+ super(map);
90
+ }
91
+ }
92
+
93
+ export class ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesFieldRules extends $dara.Model {
94
+ /**
95
+ * @example
96
+ * test
97
+ */
98
+ fieldKey?: string;
99
+ fieldValues?: string[];
100
+ /**
101
+ * @example
102
+ * add
103
+ */
104
+ op?: string;
105
+ static names(): { [key: string]: string } {
106
+ return {
107
+ fieldKey: 'fieldKey',
108
+ fieldValues: 'fieldValues',
109
+ op: 'op',
110
+ };
111
+ }
112
+
113
+ static types(): { [key: string]: any } {
114
+ return {
115
+ fieldKey: 'string',
116
+ fieldValues: { 'type': 'array', 'itemType': 'string' },
117
+ op: 'string',
118
+ };
119
+ }
120
+
121
+ validate() {
122
+ if(Array.isArray(this.fieldValues)) {
123
+ $dara.Model.validateArray(this.fieldValues);
124
+ }
125
+ super.validate();
126
+ }
127
+
128
+ constructor(map?: { [key: string]: any }) {
129
+ super(map);
130
+ }
131
+ }
132
+
133
+ export class ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesIpMatchRule extends $dara.Model {
134
+ /**
135
+ * @example
136
+ * 100.100.1.0/16
137
+ */
138
+ ipCidr?: string;
139
+ /**
140
+ * @example
141
+ * xxxx
142
+ */
143
+ ipFieldKey?: string;
144
+ static names(): { [key: string]: string } {
145
+ return {
146
+ ipCidr: 'ipCidr',
147
+ ipFieldKey: 'ipFieldKey',
148
+ };
149
+ }
150
+
151
+ static types(): { [key: string]: any } {
152
+ return {
153
+ ipCidr: 'string',
154
+ ipFieldKey: 'string',
155
+ };
156
+ }
157
+
158
+ validate() {
159
+ super.validate();
160
+ }
161
+
162
+ constructor(map?: { [key: string]: any }) {
163
+ super(map);
164
+ }
165
+ }
166
+
167
+ export class ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesLabels extends $dara.Model {
168
+ /**
169
+ * @example
170
+ * add
171
+ */
172
+ op?: string;
173
+ /**
174
+ * @example
175
+ * test
176
+ */
177
+ tagKey?: string;
178
+ tagValues?: string[];
179
+ static names(): { [key: string]: string } {
180
+ return {
181
+ op: 'op',
182
+ tagKey: 'tagKey',
183
+ tagValues: 'tagValues',
184
+ };
185
+ }
186
+
187
+ static types(): { [key: string]: any } {
188
+ return {
189
+ op: 'string',
190
+ tagKey: 'string',
191
+ tagValues: { 'type': 'array', 'itemType': 'string' },
192
+ };
193
+ }
194
+
195
+ validate() {
196
+ if(Array.isArray(this.tagValues)) {
197
+ $dara.Model.validateArray(this.tagValues);
198
+ }
199
+ super.validate();
200
+ }
201
+
202
+ constructor(map?: { [key: string]: any }) {
203
+ super(map);
204
+ }
205
+ }
206
+
207
+ export class ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesTags extends $dara.Model {
208
+ /**
209
+ * @example
210
+ * add
211
+ */
212
+ op?: string;
213
+ /**
214
+ * @example
215
+ * key
216
+ */
217
+ tagKey?: string;
218
+ tagValues?: string[];
219
+ static names(): { [key: string]: string } {
220
+ return {
221
+ op: 'op',
222
+ tagKey: 'tagKey',
223
+ tagValues: 'tagValues',
224
+ };
225
+ }
226
+
227
+ static types(): { [key: string]: any } {
228
+ return {
229
+ op: 'string',
230
+ tagKey: 'string',
231
+ tagValues: { 'type': 'array', 'itemType': 'string' },
232
+ };
233
+ }
234
+
235
+ validate() {
236
+ if(Array.isArray(this.tagValues)) {
237
+ $dara.Model.validateArray(this.tagValues);
238
+ }
239
+ super.validate();
240
+ }
241
+
242
+ constructor(map?: { [key: string]: any }) {
243
+ super(map);
244
+ }
245
+ }
246
+
247
+ export class ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRules extends $dara.Model {
248
+ annotations?: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesAnnotations[];
249
+ entityTypes?: string[];
250
+ fieldRules?: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesFieldRules[];
251
+ instanceIds?: string[];
252
+ ipMatchRule?: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesIpMatchRule;
253
+ labels?: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesLabels[];
254
+ regionIds?: string[];
255
+ /**
256
+ * @example
257
+ * rg-5i6dbwxfxuqihk7k
258
+ */
259
+ resourceGroupId?: string;
260
+ tags?: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesTags[];
261
+ static names(): { [key: string]: string } {
262
+ return {
263
+ annotations: 'annotations',
264
+ entityTypes: 'entityTypes',
265
+ fieldRules: 'fieldRules',
266
+ instanceIds: 'instanceIds',
267
+ ipMatchRule: 'ipMatchRule',
268
+ labels: 'labels',
269
+ regionIds: 'regionIds',
270
+ resourceGroupId: 'resourceGroupId',
271
+ tags: 'tags',
272
+ };
273
+ }
274
+
275
+ static types(): { [key: string]: any } {
276
+ return {
277
+ annotations: { 'type': 'array', 'itemType': ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesAnnotations },
278
+ entityTypes: { 'type': 'array', 'itemType': 'string' },
279
+ fieldRules: { 'type': 'array', 'itemType': ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesFieldRules },
280
+ instanceIds: { 'type': 'array', 'itemType': 'string' },
281
+ ipMatchRule: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesIpMatchRule,
282
+ labels: { 'type': 'array', 'itemType': ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesLabels },
283
+ regionIds: { 'type': 'array', 'itemType': 'string' },
284
+ resourceGroupId: 'string',
285
+ tags: { 'type': 'array', 'itemType': ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesTags },
286
+ };
287
+ }
288
+
289
+ validate() {
290
+ if(Array.isArray(this.annotations)) {
291
+ $dara.Model.validateArray(this.annotations);
292
+ }
293
+ if(Array.isArray(this.entityTypes)) {
294
+ $dara.Model.validateArray(this.entityTypes);
295
+ }
296
+ if(Array.isArray(this.fieldRules)) {
297
+ $dara.Model.validateArray(this.fieldRules);
298
+ }
299
+ if(Array.isArray(this.instanceIds)) {
300
+ $dara.Model.validateArray(this.instanceIds);
301
+ }
302
+ if(this.ipMatchRule && typeof (this.ipMatchRule as any).validate === 'function') {
303
+ (this.ipMatchRule as any).validate();
304
+ }
305
+ if(Array.isArray(this.labels)) {
306
+ $dara.Model.validateArray(this.labels);
307
+ }
308
+ if(Array.isArray(this.regionIds)) {
309
+ $dara.Model.validateArray(this.regionIds);
310
+ }
311
+ if(Array.isArray(this.tags)) {
312
+ $dara.Model.validateArray(this.tags);
313
+ }
314
+ super.validate();
315
+ }
316
+
317
+ constructor(map?: { [key: string]: any }) {
318
+ super(map);
319
+ }
320
+ }
321
+
322
+ export class ListIntegrationPoliciesResponseBodyPoliciesEntityGroup extends $dara.Model {
323
+ /**
324
+ * @example
325
+ * xxxx
326
+ */
327
+ description?: string;
328
+ /**
329
+ * @example
330
+ * eg-b79f65d11fb94e779867cf937c3a3002
331
+ */
332
+ entityGroupId?: string;
333
+ /**
334
+ * @example
335
+ * test-eg
336
+ */
337
+ entityGroupName?: string;
338
+ entityRules?: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRules;
339
+ query?: string;
340
+ /**
341
+ * @example
342
+ * cn-heyuan
343
+ */
344
+ regionId?: string;
345
+ /**
346
+ * @example
347
+ * 1236812738
348
+ */
349
+ userId?: string;
350
+ /**
351
+ * @example
352
+ * test-api
353
+ */
354
+ workspace?: string;
355
+ static names(): { [key: string]: string } {
356
+ return {
357
+ description: 'description',
358
+ entityGroupId: 'entityGroupId',
359
+ entityGroupName: 'entityGroupName',
360
+ entityRules: 'entityRules',
361
+ query: 'query',
362
+ regionId: 'regionId',
363
+ userId: 'userId',
364
+ workspace: 'workspace',
365
+ };
366
+ }
367
+
368
+ static types(): { [key: string]: any } {
369
+ return {
370
+ description: 'string',
371
+ entityGroupId: 'string',
372
+ entityGroupName: 'string',
373
+ entityRules: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRules,
374
+ query: 'string',
375
+ regionId: 'string',
376
+ userId: 'string',
377
+ workspace: 'string',
378
+ };
379
+ }
380
+
381
+ validate() {
382
+ if(this.entityRules && typeof (this.entityRules as any).validate === 'function') {
383
+ (this.entityRules as any).validate();
384
+ }
385
+ super.validate();
386
+ }
387
+
388
+ constructor(map?: { [key: string]: any }) {
389
+ super(map);
390
+ }
391
+ }
392
+
393
+ export class ListIntegrationPoliciesResponseBodyPoliciesManagedInfo extends $dara.Model {
394
+ /**
395
+ * @example
396
+ * sg-xxxxx
397
+ */
398
+ securityGroupId?: string;
399
+ /**
400
+ * @example
401
+ * vsw-xxxxxx
402
+ */
403
+ vswitchId?: string;
404
+ static names(): { [key: string]: string } {
405
+ return {
406
+ securityGroupId: 'securityGroupId',
407
+ vswitchId: 'vswitchId',
408
+ };
409
+ }
410
+
411
+ static types(): { [key: string]: any } {
412
+ return {
413
+ securityGroupId: 'string',
414
+ vswitchId: 'string',
415
+ };
416
+ }
417
+
418
+ validate() {
419
+ super.validate();
420
+ }
421
+
422
+ constructor(map?: { [key: string]: any }) {
423
+ super(map);
424
+ }
425
+ }
426
+
427
+ export class ListIntegrationPoliciesResponseBodyPoliciesSubAddonRelease extends $dara.Model {
428
+ ready?: number;
429
+ total?: number;
430
+ static names(): { [key: string]: string } {
431
+ return {
432
+ ready: 'ready',
433
+ total: 'total',
434
+ };
435
+ }
436
+
437
+ static types(): { [key: string]: any } {
438
+ return {
439
+ ready: 'number',
440
+ total: 'number',
441
+ };
442
+ }
443
+
444
+ validate() {
445
+ super.validate();
446
+ }
447
+
448
+ constructor(map?: { [key: string]: any }) {
449
+ super(map);
450
+ }
451
+ }
452
+
453
+ export class ListIntegrationPoliciesResponseBodyPoliciesTags extends $dara.Model {
454
+ /**
455
+ * @example
456
+ * key
457
+ */
458
+ key?: string;
459
+ /**
460
+ * @example
461
+ * value
462
+ */
463
+ value?: string;
464
+ static names(): { [key: string]: string } {
465
+ return {
466
+ key: 'key',
467
+ value: 'value',
468
+ };
469
+ }
470
+
471
+ static types(): { [key: string]: any } {
472
+ return {
473
+ key: 'string',
474
+ value: 'string',
475
+ };
476
+ }
477
+
478
+ validate() {
479
+ super.validate();
480
+ }
481
+
482
+ constructor(map?: { [key: string]: any }) {
483
+ super(map);
484
+ }
485
+ }
486
+
487
+ export class ListIntegrationPoliciesResponseBodyPolicies extends $dara.Model {
488
+ bindResource?: ListIntegrationPoliciesResponseBodyPoliciesBindResource;
489
+ entityGroup?: ListIntegrationPoliciesResponseBodyPoliciesEntityGroup;
490
+ managedInfo?: ListIntegrationPoliciesResponseBodyPoliciesManagedInfo;
491
+ /**
492
+ * @example
493
+ * policy-ac38a7cb02d14ff48bc9f97d0a75063e
494
+ */
495
+ policyId?: string;
496
+ /**
497
+ * @example
498
+ * 6f5HSsg3AP
499
+ */
500
+ policyName?: string;
501
+ /**
502
+ * @example
503
+ * ECS
504
+ */
505
+ policyType?: string;
506
+ /**
507
+ * @example
508
+ * cn-heyuan
509
+ */
510
+ regionId?: string;
511
+ /**
512
+ * @example
513
+ * rg-xxxxx
514
+ */
515
+ resourceGroupId?: string;
516
+ subAddonRelease?: ListIntegrationPoliciesResponseBodyPoliciesSubAddonRelease;
517
+ tags?: ListIntegrationPoliciesResponseBodyPoliciesTags[];
518
+ /**
519
+ * @example
520
+ * 128470923
521
+ */
522
+ userId?: string;
523
+ /**
524
+ * @example
525
+ * test-api
526
+ */
527
+ workspace?: string;
528
+ static names(): { [key: string]: string } {
529
+ return {
530
+ bindResource: 'bindResource',
531
+ entityGroup: 'entityGroup',
532
+ managedInfo: 'managedInfo',
533
+ policyId: 'policyId',
534
+ policyName: 'policyName',
535
+ policyType: 'policyType',
536
+ regionId: 'regionId',
537
+ resourceGroupId: 'resourceGroupId',
538
+ subAddonRelease: 'subAddonRelease',
539
+ tags: 'tags',
540
+ userId: 'userId',
541
+ workspace: 'workspace',
542
+ };
543
+ }
544
+
545
+ static types(): { [key: string]: any } {
546
+ return {
547
+ bindResource: ListIntegrationPoliciesResponseBodyPoliciesBindResource,
548
+ entityGroup: ListIntegrationPoliciesResponseBodyPoliciesEntityGroup,
549
+ managedInfo: ListIntegrationPoliciesResponseBodyPoliciesManagedInfo,
550
+ policyId: 'string',
551
+ policyName: 'string',
552
+ policyType: 'string',
553
+ regionId: 'string',
554
+ resourceGroupId: 'string',
555
+ subAddonRelease: ListIntegrationPoliciesResponseBodyPoliciesSubAddonRelease,
556
+ tags: { 'type': 'array', 'itemType': ListIntegrationPoliciesResponseBodyPoliciesTags },
557
+ userId: 'string',
558
+ workspace: 'string',
559
+ };
560
+ }
561
+
562
+ validate() {
563
+ if(this.bindResource && typeof (this.bindResource as any).validate === 'function') {
564
+ (this.bindResource as any).validate();
565
+ }
566
+ if(this.entityGroup && typeof (this.entityGroup as any).validate === 'function') {
567
+ (this.entityGroup as any).validate();
568
+ }
569
+ if(this.managedInfo && typeof (this.managedInfo as any).validate === 'function') {
570
+ (this.managedInfo as any).validate();
571
+ }
572
+ if(this.subAddonRelease && typeof (this.subAddonRelease as any).validate === 'function') {
573
+ (this.subAddonRelease as any).validate();
574
+ }
575
+ if(Array.isArray(this.tags)) {
576
+ $dara.Model.validateArray(this.tags);
577
+ }
578
+ super.validate();
579
+ }
580
+
581
+ constructor(map?: { [key: string]: any }) {
582
+ super(map);
583
+ }
584
+ }
585
+
586
+ export class ListIntegrationPoliciesResponseBody extends $dara.Model {
587
+ /**
588
+ * @example
589
+ * 100
590
+ */
591
+ maxResults?: number;
592
+ /**
593
+ * @example
594
+ * 44ANBjKZmQeKnaB1fXRq06w7sFYK3MUcCALMD9qQbmEiE
595
+ */
596
+ nextToken?: string;
597
+ policies?: ListIntegrationPoliciesResponseBodyPolicies[];
598
+ /**
599
+ * @remarks
600
+ * Id of the request
601
+ *
602
+ * @example
603
+ * CD8BA7D6-995D-578D-9941-78B0FECD14B5
604
+ */
605
+ requestId?: string;
606
+ /**
607
+ * @example
608
+ * 0
609
+ */
610
+ totalCount?: number;
611
+ static names(): { [key: string]: string } {
612
+ return {
613
+ maxResults: 'maxResults',
614
+ nextToken: 'nextToken',
615
+ policies: 'policies',
616
+ requestId: 'requestId',
617
+ totalCount: 'totalCount',
618
+ };
619
+ }
620
+
621
+ static types(): { [key: string]: any } {
622
+ return {
623
+ maxResults: 'number',
624
+ nextToken: 'string',
625
+ policies: { 'type': 'array', 'itemType': ListIntegrationPoliciesResponseBodyPolicies },
626
+ requestId: 'string',
627
+ totalCount: 'number',
628
+ };
629
+ }
630
+
631
+ validate() {
632
+ if(Array.isArray(this.policies)) {
633
+ $dara.Model.validateArray(this.policies);
634
+ }
635
+ super.validate();
636
+ }
637
+
638
+ constructor(map?: { [key: string]: any }) {
639
+ super(map);
640
+ }
641
+ }
642
+