@alicloud/csas20230120 1.14.21 → 1.15.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 (57) hide show
  1. package/dist/client.d.ts +30 -0
  2. package/dist/client.js +107 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreatePadiagnosisTaskRequest.d.ts +92 -0
  5. package/dist/models/CreatePadiagnosisTaskRequest.js +100 -0
  6. package/dist/models/CreatePadiagnosisTaskRequest.js.map +1 -0
  7. package/dist/models/CreatePadiagnosisTaskResponse.d.ts +19 -0
  8. package/dist/models/CreatePadiagnosisTaskResponse.js +69 -0
  9. package/dist/models/CreatePadiagnosisTaskResponse.js.map +1 -0
  10. package/dist/models/CreatePadiagnosisTaskResponseBody.d.ts +130 -0
  11. package/dist/models/CreatePadiagnosisTaskResponseBody.js +152 -0
  12. package/dist/models/CreatePadiagnosisTaskResponseBody.js.map +1 -0
  13. package/dist/models/CreatePadiagnosisTaskShrinkRequest.d.ts +70 -0
  14. package/dist/models/CreatePadiagnosisTaskShrinkRequest.js +76 -0
  15. package/dist/models/CreatePadiagnosisTaskShrinkRequest.js.map +1 -0
  16. package/dist/models/GetPadiagnosisTaskRequest.d.ts +21 -0
  17. package/dist/models/GetPadiagnosisTaskRequest.js +58 -0
  18. package/dist/models/GetPadiagnosisTaskRequest.js.map +1 -0
  19. package/dist/models/GetPadiagnosisTaskResponse.d.ts +19 -0
  20. package/dist/models/GetPadiagnosisTaskResponse.js +69 -0
  21. package/dist/models/GetPadiagnosisTaskResponse.js.map +1 -0
  22. package/dist/models/GetPadiagnosisTaskResponseBody.d.ts +659 -0
  23. package/dist/models/GetPadiagnosisTaskResponseBody.js +629 -0
  24. package/dist/models/GetPadiagnosisTaskResponseBody.js.map +1 -0
  25. package/dist/models/GetUserDeviceResponseBody.d.ts +27 -0
  26. package/dist/models/GetUserDeviceResponseBody.js +51 -1
  27. package/dist/models/GetUserDeviceResponseBody.js.map +1 -1
  28. package/dist/models/ListExcessiveDeviceRegistrationApplicationsResponseBody.d.ts +1 -0
  29. package/dist/models/ListExcessiveDeviceRegistrationApplicationsResponseBody.js +5 -0
  30. package/dist/models/ListExcessiveDeviceRegistrationApplicationsResponseBody.js.map +1 -1
  31. package/dist/models/ListUninstallApplicationsResponseBody.d.ts +1 -0
  32. package/dist/models/ListUninstallApplicationsResponseBody.js +5 -0
  33. package/dist/models/ListUninstallApplicationsResponseBody.js.map +1 -1
  34. package/dist/models/ListUserDevicesResponseBody.d.ts +6 -0
  35. package/dist/models/ListUserDevicesResponseBody.js +15 -0
  36. package/dist/models/ListUserDevicesResponseBody.js.map +1 -1
  37. package/dist/models/ListUsersResponseBody.d.ts +1 -0
  38. package/dist/models/ListUsersResponseBody.js +5 -0
  39. package/dist/models/ListUsersResponseBody.js.map +1 -1
  40. package/dist/models/model.d.ts +30 -0
  41. package/dist/models/model.js +77 -17
  42. package/dist/models/model.js.map +1 -1
  43. package/package.json +1 -1
  44. package/src/client.ts +122 -0
  45. package/src/models/CreatePadiagnosisTaskRequest.ts +138 -0
  46. package/src/models/CreatePadiagnosisTaskResponse.ts +40 -0
  47. package/src/models/CreatePadiagnosisTaskResponseBody.ts +210 -0
  48. package/src/models/CreatePadiagnosisTaskShrinkRequest.ts +101 -0
  49. package/src/models/GetPadiagnosisTaskRequest.ts +34 -0
  50. package/src/models/GetPadiagnosisTaskResponse.ts +40 -0
  51. package/src/models/GetPadiagnosisTaskResponseBody.ts +1081 -0
  52. package/src/models/GetUserDeviceResponseBody.ts +68 -0
  53. package/src/models/ListExcessiveDeviceRegistrationApplicationsResponseBody.ts +6 -0
  54. package/src/models/ListUninstallApplicationsResponseBody.ts +6 -0
  55. package/src/models/ListUserDevicesResponseBody.ts +21 -0
  56. package/src/models/ListUsersResponseBody.ts +6 -0
  57. package/src/models/model.ts +30 -0
@@ -0,0 +1,1081 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoDnsHopsGeoData extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * CN
9
+ */
10
+ country?: string;
11
+ /**
12
+ * @example
13
+ * Zhejiang
14
+ */
15
+ prov?: string;
16
+ /**
17
+ * @example
18
+ * hangzhou
19
+ */
20
+ city?: string;
21
+ /**
22
+ * @example
23
+ * telecom
24
+ */
25
+ isp?: string;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ country: 'Country',
29
+ prov: 'Prov',
30
+ city: 'City',
31
+ isp: 'Isp',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ country: 'string',
38
+ prov: 'string',
39
+ city: 'string',
40
+ isp: '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 GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoDnsHops extends $dara.Model {
54
+ /**
55
+ * @example
56
+ * *******************************************
57
+ */
58
+ address?: string;
59
+ /**
60
+ * @remarks
61
+ * TTL。
62
+ *
63
+ * @example
64
+ * 10
65
+ */
66
+ TTL?: string;
67
+ /**
68
+ * @example
69
+ * 10
70
+ */
71
+ latency?: string;
72
+ geoData?: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoDnsHopsGeoData;
73
+ static names(): { [key: string]: string } {
74
+ return {
75
+ address: 'Address',
76
+ TTL: 'TTL',
77
+ latency: 'Latency',
78
+ geoData: 'GeoData',
79
+ };
80
+ }
81
+
82
+ static types(): { [key: string]: any } {
83
+ return {
84
+ address: 'string',
85
+ TTL: 'string',
86
+ latency: 'string',
87
+ geoData: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoDnsHopsGeoData,
88
+ };
89
+ }
90
+
91
+ validate() {
92
+ if(this.geoData && typeof (this.geoData as any).validate === 'function') {
93
+ (this.geoData as any).validate();
94
+ }
95
+ super.validate();
96
+ }
97
+
98
+ constructor(map?: { [key: string]: any }) {
99
+ super(map);
100
+ }
101
+ }
102
+
103
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoDns extends $dara.Model {
104
+ /**
105
+ * @example
106
+ * 100.100.2.136,100.100.2.138
107
+ */
108
+ dnsServer?: string;
109
+ /**
110
+ * @example
111
+ * private-zone
112
+ */
113
+ dnsType?: string;
114
+ /**
115
+ * @example
116
+ * 0
117
+ */
118
+ error?: string;
119
+ /**
120
+ * @example
121
+ * 2
122
+ */
123
+ fromNode?: number;
124
+ hops?: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoDnsHops[][];
125
+ /**
126
+ * @example
127
+ * 10
128
+ */
129
+ latency?: string;
130
+ /**
131
+ * @example
132
+ * 10.0.0.1
133
+ */
134
+ result?: string;
135
+ /**
136
+ * @example
137
+ * True
138
+ */
139
+ success?: boolean;
140
+ /**
141
+ * @example
142
+ * 3
143
+ */
144
+ toNode?: number;
145
+ static names(): { [key: string]: string } {
146
+ return {
147
+ dnsServer: 'DnsServer',
148
+ dnsType: 'DnsType',
149
+ error: 'Error',
150
+ fromNode: 'FromNode',
151
+ hops: 'Hops',
152
+ latency: 'Latency',
153
+ result: 'Result',
154
+ success: 'Success',
155
+ toNode: 'ToNode',
156
+ };
157
+ }
158
+
159
+ static types(): { [key: string]: any } {
160
+ return {
161
+ dnsServer: 'string',
162
+ dnsType: 'string',
163
+ error: 'string',
164
+ fromNode: 'number',
165
+ hops: { 'type': 'array', 'itemType': { 'type': 'array', 'itemType': GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoDnsHops } },
166
+ latency: 'string',
167
+ result: 'string',
168
+ success: 'boolean',
169
+ toNode: 'number',
170
+ };
171
+ }
172
+
173
+ validate() {
174
+ if(Array.isArray(this.hops)) {
175
+ $dara.Model.validateArray(this.hops);
176
+ }
177
+ super.validate();
178
+ }
179
+
180
+ constructor(map?: { [key: string]: any }) {
181
+ super(map);
182
+ }
183
+ }
184
+
185
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoLinksHopsGeoData extends $dara.Model {
186
+ /**
187
+ * @example
188
+ * Haikou City
189
+ */
190
+ city?: string;
191
+ /**
192
+ * @example
193
+ * CN
194
+ */
195
+ country?: string;
196
+ /**
197
+ * @example
198
+ * ChinaMobile_L2
199
+ */
200
+ isp?: string;
201
+ /**
202
+ * @example
203
+ * ZHejiang
204
+ */
205
+ prov?: string;
206
+ static names(): { [key: string]: string } {
207
+ return {
208
+ city: 'City',
209
+ country: 'Country',
210
+ isp: 'Isp',
211
+ prov: 'Prov',
212
+ };
213
+ }
214
+
215
+ static types(): { [key: string]: any } {
216
+ return {
217
+ city: 'string',
218
+ country: 'string',
219
+ isp: 'string',
220
+ prov: 'string',
221
+ };
222
+ }
223
+
224
+ validate() {
225
+ super.validate();
226
+ }
227
+
228
+ constructor(map?: { [key: string]: any }) {
229
+ super(map);
230
+ }
231
+ }
232
+
233
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoLinksHops extends $dara.Model {
234
+ /**
235
+ * @example
236
+ * **********************
237
+ */
238
+ address?: string;
239
+ geoData?: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoLinksHopsGeoData;
240
+ /**
241
+ * @example
242
+ * 10
243
+ */
244
+ latency?: string;
245
+ /**
246
+ * @remarks
247
+ * TTL。
248
+ *
249
+ * @example
250
+ * 10
251
+ */
252
+ TTL?: string;
253
+ static names(): { [key: string]: string } {
254
+ return {
255
+ address: 'Address',
256
+ geoData: 'GeoData',
257
+ latency: 'Latency',
258
+ TTL: 'TTL',
259
+ };
260
+ }
261
+
262
+ static types(): { [key: string]: any } {
263
+ return {
264
+ address: 'string',
265
+ geoData: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoLinksHopsGeoData,
266
+ latency: 'string',
267
+ TTL: 'string',
268
+ };
269
+ }
270
+
271
+ validate() {
272
+ if(this.geoData && typeof (this.geoData as any).validate === 'function') {
273
+ (this.geoData as any).validate();
274
+ }
275
+ super.validate();
276
+ }
277
+
278
+ constructor(map?: { [key: string]: any }) {
279
+ super(map);
280
+ }
281
+ }
282
+
283
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoLinks extends $dara.Model {
284
+ /**
285
+ * @example
286
+ * 0
287
+ */
288
+ error?: string;
289
+ /**
290
+ * @example
291
+ * 1
292
+ */
293
+ fromNode?: number;
294
+ hops?: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoLinksHops[];
295
+ /**
296
+ * @example
297
+ * 10
298
+ */
299
+ latency?: string;
300
+ /**
301
+ * @example
302
+ * True
303
+ */
304
+ success?: boolean;
305
+ /**
306
+ * @example
307
+ * 2
308
+ */
309
+ toNode?: number;
310
+ static names(): { [key: string]: string } {
311
+ return {
312
+ error: 'Error',
313
+ fromNode: 'FromNode',
314
+ hops: 'Hops',
315
+ latency: 'Latency',
316
+ success: 'Success',
317
+ toNode: 'ToNode',
318
+ };
319
+ }
320
+
321
+ static types(): { [key: string]: any } {
322
+ return {
323
+ error: 'string',
324
+ fromNode: 'number',
325
+ hops: { 'type': 'array', 'itemType': GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoLinksHops },
326
+ latency: 'string',
327
+ success: 'boolean',
328
+ toNode: 'number',
329
+ };
330
+ }
331
+
332
+ validate() {
333
+ if(Array.isArray(this.hops)) {
334
+ $dara.Model.validateArray(this.hops);
335
+ }
336
+ super.validate();
337
+ }
338
+
339
+ constructor(map?: { [key: string]: any }) {
340
+ super(map);
341
+ }
342
+ }
343
+
344
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoNodesGeoData extends $dara.Model {
345
+ /**
346
+ * @example
347
+ * Hangzhou
348
+ */
349
+ city?: string;
350
+ /**
351
+ * @example
352
+ * CN
353
+ */
354
+ country?: string;
355
+ /**
356
+ * @example
357
+ * ChinaTelecom_L2
358
+ */
359
+ isp?: string;
360
+ /**
361
+ * @example
362
+ * Zhejiang
363
+ */
364
+ prov?: string;
365
+ static names(): { [key: string]: string } {
366
+ return {
367
+ city: 'City',
368
+ country: 'Country',
369
+ isp: 'Isp',
370
+ prov: 'Prov',
371
+ };
372
+ }
373
+
374
+ static types(): { [key: string]: any } {
375
+ return {
376
+ city: 'string',
377
+ country: 'string',
378
+ isp: 'string',
379
+ prov: 'string',
380
+ };
381
+ }
382
+
383
+ validate() {
384
+ super.validate();
385
+ }
386
+
387
+ constructor(map?: { [key: string]: any }) {
388
+ super(map);
389
+ }
390
+ }
391
+
392
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoNodes extends $dara.Model {
393
+ /**
394
+ * @example
395
+ * 172.27.228.132
396
+ */
397
+ address?: string;
398
+ /**
399
+ * @example
400
+ * vpc-xxxxxx
401
+ */
402
+ cloudNetId?: string;
403
+ /**
404
+ * @example
405
+ * 1
406
+ */
407
+ error?: string;
408
+ geoData?: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoNodesGeoData;
409
+ /**
410
+ * @example
411
+ * 1237
412
+ */
413
+ id?: number;
414
+ name?: string;
415
+ /**
416
+ * @example
417
+ * Japan Private POP
418
+ */
419
+ nameEn?: string;
420
+ /**
421
+ * @example
422
+ * stunnel
423
+ */
424
+ nodeType?: string;
425
+ /**
426
+ * @example
427
+ * pop-xxxxxx
428
+ */
429
+ resourceId?: string;
430
+ /**
431
+ * @example
432
+ * True
433
+ */
434
+ success?: boolean;
435
+ static names(): { [key: string]: string } {
436
+ return {
437
+ address: 'Address',
438
+ cloudNetId: 'CloudNetId',
439
+ error: 'Error',
440
+ geoData: 'GeoData',
441
+ id: 'Id',
442
+ name: 'Name',
443
+ nameEn: 'NameEn',
444
+ nodeType: 'NodeType',
445
+ resourceId: 'ResourceId',
446
+ success: 'Success',
447
+ };
448
+ }
449
+
450
+ static types(): { [key: string]: any } {
451
+ return {
452
+ address: 'string',
453
+ cloudNetId: 'string',
454
+ error: 'string',
455
+ geoData: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoNodesGeoData,
456
+ id: 'number',
457
+ name: 'string',
458
+ nameEn: 'string',
459
+ nodeType: 'string',
460
+ resourceId: 'string',
461
+ success: 'boolean',
462
+ };
463
+ }
464
+
465
+ validate() {
466
+ if(this.geoData && typeof (this.geoData as any).validate === 'function') {
467
+ (this.geoData as any).validate();
468
+ }
469
+ super.validate();
470
+ }
471
+
472
+ constructor(map?: { [key: string]: any }) {
473
+ super(map);
474
+ }
475
+ }
476
+
477
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfo extends $dara.Model {
478
+ dns?: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoDns;
479
+ /**
480
+ * @example
481
+ * 300
482
+ */
483
+ FBT?: string;
484
+ links?: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoLinks[];
485
+ nodes?: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoNodes[];
486
+ static names(): { [key: string]: string } {
487
+ return {
488
+ dns: 'Dns',
489
+ FBT: 'FBT',
490
+ links: 'Links',
491
+ nodes: 'Nodes',
492
+ };
493
+ }
494
+
495
+ static types(): { [key: string]: any } {
496
+ return {
497
+ dns: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoDns,
498
+ FBT: 'string',
499
+ links: { 'type': 'array', 'itemType': GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoLinks },
500
+ nodes: { 'type': 'array', 'itemType': GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfoNodes },
501
+ };
502
+ }
503
+
504
+ validate() {
505
+ if(this.dns && typeof (this.dns as any).validate === 'function') {
506
+ (this.dns as any).validate();
507
+ }
508
+ if(Array.isArray(this.links)) {
509
+ $dara.Model.validateArray(this.links);
510
+ }
511
+ if(Array.isArray(this.nodes)) {
512
+ $dara.Model.validateArray(this.nodes);
513
+ }
514
+ super.validate();
515
+ }
516
+
517
+ constructor(map?: { [key: string]: any }) {
518
+ super(map);
519
+ }
520
+ }
521
+
522
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskResultPolicyInfoDeviceAttributeInfo extends $dara.Model {
523
+ /**
524
+ * @example
525
+ * E9EE1CE7-4AA0-521D-B8E1-E13E47F05E94
526
+ */
527
+ devTag?: string;
528
+ /**
529
+ * @example
530
+ * macos
531
+ */
532
+ deviceType?: string;
533
+ file?: string[];
534
+ /**
535
+ * @example
536
+ * [{\\"Platform\\":\\"windows\\",\\"Status\\":\\"disabled\\"},{\\"Platform\\":\\"macos\\",\\"Status\\":\\"disabled\\"},{\\"Platform\\":\\"linux\\",\\"Status\\":\\"disabled\\"}]
537
+ */
538
+ firewall?: string;
539
+ /**
540
+ * @example
541
+ * DESKTOP-CVTB5KT.CXISHD01.CATHAY_INS.CHN
542
+ */
543
+ hostname?: string;
544
+ /**
545
+ * @example
546
+ * 10.5.208.122
547
+ */
548
+ innerIp?: string;
549
+ /**
550
+ * @example
551
+ * 47.98.146.136
552
+ */
553
+ internetIp?: string;
554
+ /**
555
+ * @example
556
+ * `curl Rj0F9uvI.popscan.xaliyun.com`
557
+ */
558
+ mac?: string;
559
+ /**
560
+ * @example
561
+ * Test
562
+ */
563
+ matchedSecurityBaseline?: string;
564
+ process?: string[];
565
+ /**
566
+ * @remarks
567
+ * SSID。
568
+ *
569
+ * @example
570
+ * abcd
571
+ */
572
+ ssid?: string;
573
+ static names(): { [key: string]: string } {
574
+ return {
575
+ devTag: 'DevTag',
576
+ deviceType: 'DeviceType',
577
+ file: 'File',
578
+ firewall: 'Firewall',
579
+ hostname: 'Hostname',
580
+ innerIp: 'InnerIp',
581
+ internetIp: 'InternetIp',
582
+ mac: 'Mac',
583
+ matchedSecurityBaseline: 'MatchedSecurityBaseline',
584
+ process: 'Process',
585
+ ssid: 'Ssid',
586
+ };
587
+ }
588
+
589
+ static types(): { [key: string]: any } {
590
+ return {
591
+ devTag: 'string',
592
+ deviceType: 'string',
593
+ file: { 'type': 'array', 'itemType': 'string' },
594
+ firewall: 'string',
595
+ hostname: 'string',
596
+ innerIp: 'string',
597
+ internetIp: 'string',
598
+ mac: 'string',
599
+ matchedSecurityBaseline: 'string',
600
+ process: { 'type': 'array', 'itemType': 'string' },
601
+ ssid: 'string',
602
+ };
603
+ }
604
+
605
+ validate() {
606
+ if(Array.isArray(this.file)) {
607
+ $dara.Model.validateArray(this.file);
608
+ }
609
+ if(Array.isArray(this.process)) {
610
+ $dara.Model.validateArray(this.process);
611
+ }
612
+ super.validate();
613
+ }
614
+
615
+ constructor(map?: { [key: string]: any }) {
616
+ super(map);
617
+ }
618
+ }
619
+
620
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskResultPolicyInfoRouteStrategyInfo extends $dara.Model {
621
+ /**
622
+ * @example
623
+ * connector
624
+ */
625
+ routeType?: string;
626
+ /**
627
+ * @example
628
+ * av-rtd-091c2d6e3f24aae4
629
+ */
630
+ strategyId?: string;
631
+ /**
632
+ * @example
633
+ * 1
634
+ */
635
+ strategyName?: string;
636
+ static names(): { [key: string]: string } {
637
+ return {
638
+ routeType: 'RouteType',
639
+ strategyId: 'StrategyId',
640
+ strategyName: 'StrategyName',
641
+ };
642
+ }
643
+
644
+ static types(): { [key: string]: any } {
645
+ return {
646
+ routeType: 'string',
647
+ strategyId: 'string',
648
+ strategyName: 'string',
649
+ };
650
+ }
651
+
652
+ validate() {
653
+ super.validate();
654
+ }
655
+
656
+ constructor(map?: { [key: string]: any }) {
657
+ super(map);
658
+ }
659
+ }
660
+
661
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskResultPolicyInfoUserGroupInfo extends $dara.Model {
662
+ /**
663
+ * @example
664
+ * 1234@xxxx.com
665
+ */
666
+ email?: string;
667
+ group?: string[];
668
+ /**
669
+ * @example
670
+ * IT
671
+ */
672
+ matchedUserGroups?: string;
673
+ /**
674
+ * @example
675
+ * 123456789
676
+ */
677
+ telephone?: string;
678
+ /**
679
+ * @example
680
+ * zhangsan
681
+ */
682
+ username?: string;
683
+ static names(): { [key: string]: string } {
684
+ return {
685
+ email: 'Email',
686
+ group: 'Group',
687
+ matchedUserGroups: 'MatchedUserGroups',
688
+ telephone: 'Telephone',
689
+ username: 'Username',
690
+ };
691
+ }
692
+
693
+ static types(): { [key: string]: any } {
694
+ return {
695
+ email: 'string',
696
+ group: { 'type': 'array', 'itemType': 'string' },
697
+ matchedUserGroups: 'string',
698
+ telephone: 'string',
699
+ username: 'string',
700
+ };
701
+ }
702
+
703
+ validate() {
704
+ if(Array.isArray(this.group)) {
705
+ $dara.Model.validateArray(this.group);
706
+ }
707
+ super.validate();
708
+ }
709
+
710
+ constructor(map?: { [key: string]: any }) {
711
+ super(map);
712
+ }
713
+ }
714
+
715
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskResultPolicyInfoZeroTrustPolicyInfo extends $dara.Model {
716
+ /**
717
+ * @example
718
+ * block
719
+ */
720
+ action?: string;
721
+ /**
722
+ * @example
723
+ * MyApp2
724
+ */
725
+ appName?: string;
726
+ /**
727
+ * @example
728
+ * access denied
729
+ */
730
+ blockInfo?: string;
731
+ policyName?: string;
732
+ static names(): { [key: string]: string } {
733
+ return {
734
+ action: 'Action',
735
+ appName: 'AppName',
736
+ blockInfo: 'BlockInfo',
737
+ policyName: 'PolicyName',
738
+ };
739
+ }
740
+
741
+ static types(): { [key: string]: any } {
742
+ return {
743
+ action: 'string',
744
+ appName: 'string',
745
+ blockInfo: 'string',
746
+ policyName: 'string',
747
+ };
748
+ }
749
+
750
+ validate() {
751
+ super.validate();
752
+ }
753
+
754
+ constructor(map?: { [key: string]: any }) {
755
+ super(map);
756
+ }
757
+ }
758
+
759
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskResultPolicyInfo extends $dara.Model {
760
+ deviceAttributeInfo?: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultPolicyInfoDeviceAttributeInfo;
761
+ /**
762
+ * @example
763
+ * 1000
764
+ */
765
+ processTime?: number;
766
+ routeStrategyInfo?: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultPolicyInfoRouteStrategyInfo;
767
+ userGroupInfo?: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultPolicyInfoUserGroupInfo;
768
+ zeroTrustPolicyInfo?: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultPolicyInfoZeroTrustPolicyInfo;
769
+ static names(): { [key: string]: string } {
770
+ return {
771
+ deviceAttributeInfo: 'DeviceAttributeInfo',
772
+ processTime: 'ProcessTime',
773
+ routeStrategyInfo: 'RouteStrategyInfo',
774
+ userGroupInfo: 'UserGroupInfo',
775
+ zeroTrustPolicyInfo: 'ZeroTrustPolicyInfo',
776
+ };
777
+ }
778
+
779
+ static types(): { [key: string]: any } {
780
+ return {
781
+ deviceAttributeInfo: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultPolicyInfoDeviceAttributeInfo,
782
+ processTime: 'number',
783
+ routeStrategyInfo: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultPolicyInfoRouteStrategyInfo,
784
+ userGroupInfo: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultPolicyInfoUserGroupInfo,
785
+ zeroTrustPolicyInfo: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultPolicyInfoZeroTrustPolicyInfo,
786
+ };
787
+ }
788
+
789
+ validate() {
790
+ if(this.deviceAttributeInfo && typeof (this.deviceAttributeInfo as any).validate === 'function') {
791
+ (this.deviceAttributeInfo as any).validate();
792
+ }
793
+ if(this.routeStrategyInfo && typeof (this.routeStrategyInfo as any).validate === 'function') {
794
+ (this.routeStrategyInfo as any).validate();
795
+ }
796
+ if(this.userGroupInfo && typeof (this.userGroupInfo as any).validate === 'function') {
797
+ (this.userGroupInfo as any).validate();
798
+ }
799
+ if(this.zeroTrustPolicyInfo && typeof (this.zeroTrustPolicyInfo as any).validate === 'function') {
800
+ (this.zeroTrustPolicyInfo as any).validate();
801
+ }
802
+ super.validate();
803
+ }
804
+
805
+ constructor(map?: { [key: string]: any }) {
806
+ super(map);
807
+ }
808
+ }
809
+
810
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskResult extends $dara.Model {
811
+ /**
812
+ * @example
813
+ * device offline
814
+ */
815
+ errorMessage?: string;
816
+ /**
817
+ * @example
818
+ * flow-d918b12f9b974f6489fc
819
+ */
820
+ flowId?: string;
821
+ networkLinkInfo?: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfo;
822
+ policyInfo?: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultPolicyInfo;
823
+ /**
824
+ * @example
825
+ * True
826
+ */
827
+ success?: boolean;
828
+ static names(): { [key: string]: string } {
829
+ return {
830
+ errorMessage: 'ErrorMessage',
831
+ flowId: 'FlowId',
832
+ networkLinkInfo: 'NetworkLinkInfo',
833
+ policyInfo: 'PolicyInfo',
834
+ success: 'Success',
835
+ };
836
+ }
837
+
838
+ static types(): { [key: string]: any } {
839
+ return {
840
+ errorMessage: 'string',
841
+ flowId: 'string',
842
+ networkLinkInfo: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultNetworkLinkInfo,
843
+ policyInfo: GetPADiagnosisTaskResponseBodyDiagnosisTaskResultPolicyInfo,
844
+ success: 'boolean',
845
+ };
846
+ }
847
+
848
+ validate() {
849
+ if(this.networkLinkInfo && typeof (this.networkLinkInfo as any).validate === 'function') {
850
+ (this.networkLinkInfo as any).validate();
851
+ }
852
+ if(this.policyInfo && typeof (this.policyInfo as any).validate === 'function') {
853
+ (this.policyInfo as any).validate();
854
+ }
855
+ super.validate();
856
+ }
857
+
858
+ constructor(map?: { [key: string]: any }) {
859
+ super(map);
860
+ }
861
+ }
862
+
863
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskUdpExtraConfigs extends $dara.Model {
864
+ /**
865
+ * @example
866
+ * hello
867
+ */
868
+ expectedResponse?: string;
869
+ /**
870
+ * @example
871
+ * hello
872
+ */
873
+ requestContent?: string;
874
+ static names(): { [key: string]: string } {
875
+ return {
876
+ expectedResponse: 'ExpectedResponse',
877
+ requestContent: 'RequestContent',
878
+ };
879
+ }
880
+
881
+ static types(): { [key: string]: any } {
882
+ return {
883
+ expectedResponse: 'string',
884
+ requestContent: 'string',
885
+ };
886
+ }
887
+
888
+ validate() {
889
+ super.validate();
890
+ }
891
+
892
+ constructor(map?: { [key: string]: any }) {
893
+ super(map);
894
+ }
895
+ }
896
+
897
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTaskUserGroup extends $dara.Model {
898
+ /**
899
+ * @example
900
+ * ug-xxxxx
901
+ */
902
+ userGroupId?: string;
903
+ /**
904
+ * @example
905
+ * IT
906
+ */
907
+ userGroupName?: string;
908
+ static names(): { [key: string]: string } {
909
+ return {
910
+ userGroupId: 'UserGroupId',
911
+ userGroupName: 'UserGroupName',
912
+ };
913
+ }
914
+
915
+ static types(): { [key: string]: any } {
916
+ return {
917
+ userGroupId: 'string',
918
+ userGroupName: 'string',
919
+ };
920
+ }
921
+
922
+ validate() {
923
+ super.validate();
924
+ }
925
+
926
+ constructor(map?: { [key: string]: any }) {
927
+ super(map);
928
+ }
929
+ }
930
+
931
+ export class GetPADiagnosisTaskResponseBodyDiagnosisTask extends $dara.Model {
932
+ /**
933
+ * @example
934
+ * 2023-08-17 09:49:03
935
+ */
936
+ createTime?: string;
937
+ /**
938
+ * @example
939
+ * 76C08B0F-CEFD-8F01-C1D3-0D5B493B5EAF
940
+ */
941
+ devTag?: string;
942
+ /**
943
+ * @example
944
+ * diag-3e0d36d6c15a0502
945
+ */
946
+ diagnoseId?: string;
947
+ /**
948
+ * @example
949
+ * FullLink
950
+ */
951
+ diagnoseType?: string;
952
+ /**
953
+ * @example
954
+ * mtools-admin.redotpay.com
955
+ */
956
+ host?: string;
957
+ /**
958
+ * @example
959
+ * pop-2504cd067e094750
960
+ */
961
+ popId?: string;
962
+ /**
963
+ * @example
964
+ * AutoSelect
965
+ */
966
+ popMode?: string;
967
+ /**
968
+ * @example
969
+ * 80
970
+ */
971
+ port?: string;
972
+ /**
973
+ * @example
974
+ * All
975
+ */
976
+ protocol?: string;
977
+ result?: GetPADiagnosisTaskResponseBodyDiagnosisTaskResult;
978
+ /**
979
+ * @example
980
+ * Running
981
+ */
982
+ status?: string;
983
+ udpExtraConfigs?: GetPADiagnosisTaskResponseBodyDiagnosisTaskUdpExtraConfigs;
984
+ userGroup?: GetPADiagnosisTaskResponseBodyDiagnosisTaskUserGroup;
985
+ /**
986
+ * @example
987
+ * zhangsan
988
+ */
989
+ username?: string;
990
+ static names(): { [key: string]: string } {
991
+ return {
992
+ createTime: 'CreateTime',
993
+ devTag: 'DevTag',
994
+ diagnoseId: 'DiagnoseId',
995
+ diagnoseType: 'DiagnoseType',
996
+ host: 'Host',
997
+ popId: 'PopId',
998
+ popMode: 'PopMode',
999
+ port: 'Port',
1000
+ protocol: 'Protocol',
1001
+ result: 'Result',
1002
+ status: 'Status',
1003
+ udpExtraConfigs: 'UdpExtraConfigs',
1004
+ userGroup: 'UserGroup',
1005
+ username: 'Username',
1006
+ };
1007
+ }
1008
+
1009
+ static types(): { [key: string]: any } {
1010
+ return {
1011
+ createTime: 'string',
1012
+ devTag: 'string',
1013
+ diagnoseId: 'string',
1014
+ diagnoseType: 'string',
1015
+ host: 'string',
1016
+ popId: 'string',
1017
+ popMode: 'string',
1018
+ port: 'string',
1019
+ protocol: 'string',
1020
+ result: GetPADiagnosisTaskResponseBodyDiagnosisTaskResult,
1021
+ status: 'string',
1022
+ udpExtraConfigs: GetPADiagnosisTaskResponseBodyDiagnosisTaskUdpExtraConfigs,
1023
+ userGroup: GetPADiagnosisTaskResponseBodyDiagnosisTaskUserGroup,
1024
+ username: 'string',
1025
+ };
1026
+ }
1027
+
1028
+ validate() {
1029
+ if(this.result && typeof (this.result as any).validate === 'function') {
1030
+ (this.result as any).validate();
1031
+ }
1032
+ if(this.udpExtraConfigs && typeof (this.udpExtraConfigs as any).validate === 'function') {
1033
+ (this.udpExtraConfigs as any).validate();
1034
+ }
1035
+ if(this.userGroup && typeof (this.userGroup as any).validate === 'function') {
1036
+ (this.userGroup as any).validate();
1037
+ }
1038
+ super.validate();
1039
+ }
1040
+
1041
+ constructor(map?: { [key: string]: any }) {
1042
+ super(map);
1043
+ }
1044
+ }
1045
+
1046
+ export class GetPADiagnosisTaskResponseBody extends $dara.Model {
1047
+ diagnosisTask?: GetPADiagnosisTaskResponseBodyDiagnosisTask;
1048
+ /**
1049
+ * @remarks
1050
+ * Id of the request
1051
+ *
1052
+ * @example
1053
+ * 2CABFEBB-0CE7-575E-833A-266F75D46713
1054
+ */
1055
+ requestId?: string;
1056
+ static names(): { [key: string]: string } {
1057
+ return {
1058
+ diagnosisTask: 'DiagnosisTask',
1059
+ requestId: 'RequestId',
1060
+ };
1061
+ }
1062
+
1063
+ static types(): { [key: string]: any } {
1064
+ return {
1065
+ diagnosisTask: GetPADiagnosisTaskResponseBodyDiagnosisTask,
1066
+ requestId: 'string',
1067
+ };
1068
+ }
1069
+
1070
+ validate() {
1071
+ if(this.diagnosisTask && typeof (this.diagnosisTask as any).validate === 'function') {
1072
+ (this.diagnosisTask as any).validate();
1073
+ }
1074
+ super.validate();
1075
+ }
1076
+
1077
+ constructor(map?: { [key: string]: any }) {
1078
+ super(map);
1079
+ }
1080
+ }
1081
+