tencentcloud-sdk-nodejs-intl-en 3.0.1112 → 3.0.1113

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.
@@ -0,0 +1,2171 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+ const AbstractModel = require("../../common/abstract_model");
18
+
19
+ /**
20
+ * DeleteProject request structure.
21
+ * @class
22
+ */
23
+ class DeleteProjectRequest extends AbstractModel {
24
+ constructor(){
25
+ super();
26
+
27
+ /**
28
+ * Project id.
29
+ * @type {string || null}
30
+ */
31
+ this.ProjectId = null;
32
+
33
+ }
34
+
35
+ /**
36
+ * @private
37
+ */
38
+ deserialize(params) {
39
+ if (!params) {
40
+ return;
41
+ }
42
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
43
+
44
+ }
45
+ }
46
+
47
+ /**
48
+ * License list viewed by authorization
49
+ * @class
50
+ */
51
+ class License extends AbstractModel {
52
+ constructor(){
53
+ super();
54
+
55
+ /**
56
+ * The number of licenses of this type.
57
+ * @type {number || null}
58
+ */
59
+ this.Count = null;
60
+
61
+ /**
62
+ * License status. 0: unbound; 1: bound; 2: service suspension; 3: refund.
63
+ * @type {number || null}
64
+ */
65
+ this.Status = null;
66
+
67
+ /**
68
+ * Expiration timestamp: s.
69
+ * @type {string || null}
70
+ */
71
+ this.ExpireTime = null;
72
+
73
+ /**
74
+ * Service duration: s.
75
+ * @type {string || null}
76
+ */
77
+ this.Duration = null;
78
+
79
+ /**
80
+ * Remaining days: days.
81
+ * @type {number || null}
82
+ */
83
+ this.RemainDay = null;
84
+
85
+ /**
86
+ * The list of license ids of this type.
87
+ * @type {Array.<string> || null}
88
+ */
89
+ this.LicenseIds = null;
90
+
91
+ }
92
+
93
+ /**
94
+ * @private
95
+ */
96
+ deserialize(params) {
97
+ if (!params) {
98
+ return;
99
+ }
100
+ this.Count = 'Count' in params ? params.Count : null;
101
+ this.Status = 'Status' in params ? params.Status : null;
102
+ this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null;
103
+ this.Duration = 'Duration' in params ? params.Duration : null;
104
+ this.RemainDay = 'RemainDay' in params ? params.RemainDay : null;
105
+ this.LicenseIds = 'LicenseIds' in params ? params.LicenseIds : null;
106
+
107
+ }
108
+ }
109
+
110
+ /**
111
+ * ModifyDevice response structure.
112
+ * @class
113
+ */
114
+ class ModifyDeviceResponse extends AbstractModel {
115
+ constructor(){
116
+ super();
117
+
118
+ /**
119
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
120
+ * @type {string || null}
121
+ */
122
+ this.RequestId = null;
123
+
124
+ }
125
+
126
+ /**
127
+ * @private
128
+ */
129
+ deserialize(params) {
130
+ if (!params) {
131
+ return;
132
+ }
133
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
134
+
135
+ }
136
+ }
137
+
138
+ /**
139
+ * GetLicenses request structure.
140
+ * @class
141
+ */
142
+ class GetLicensesRequest extends AbstractModel {
143
+ constructor(){
144
+ super();
145
+
146
+ /**
147
+ * Page number.
148
+ * @type {number || null}
149
+ */
150
+ this.PageNum = null;
151
+
152
+ /**
153
+ * Number of pages.
154
+ * @type {number || null}
155
+ */
156
+ this.PageSize = null;
157
+
158
+ /**
159
+ * projectId
160
+ * @type {string || null}
161
+ */
162
+ this.ProjectId = null;
163
+
164
+ /**
165
+ * DeviceId
166
+ * @type {string || null}
167
+ */
168
+ this.DeviceId = null;
169
+
170
+ /**
171
+ * License status. 0: unbound; 1: bound; 2: service suspension; 3: refund.
172
+ * @type {number || null}
173
+ */
174
+ this.Status = null;
175
+
176
+ }
177
+
178
+ /**
179
+ * @private
180
+ */
181
+ deserialize(params) {
182
+ if (!params) {
183
+ return;
184
+ }
185
+ this.PageNum = 'PageNum' in params ? params.PageNum : null;
186
+ this.PageSize = 'PageSize' in params ? params.PageSize : null;
187
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
188
+ this.DeviceId = 'DeviceId' in params ? params.DeviceId : null;
189
+ this.Status = 'Status' in params ? params.Status : null;
190
+
191
+ }
192
+ }
193
+
194
+ /**
195
+ * BatchDeleteDevices request structure.
196
+ * @class
197
+ */
198
+ class BatchDeleteDevicesRequest extends AbstractModel {
199
+ constructor(){
200
+ super();
201
+
202
+ /**
203
+ * Project id of the targeted deleted device.
204
+ * @type {string || null}
205
+ */
206
+ this.ProjectId = null;
207
+
208
+ /**
209
+ * Device id array of the targeted deleted device.
210
+ * @type {Array.<string> || null}
211
+ */
212
+ this.DeviceIds = null;
213
+
214
+ }
215
+
216
+ /**
217
+ * @private
218
+ */
219
+ deserialize(params) {
220
+ if (!params) {
221
+ return;
222
+ }
223
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
224
+ this.DeviceIds = 'DeviceIds' in params ? params.DeviceIds : null;
225
+
226
+ }
227
+ }
228
+
229
+ /**
230
+ * Session information.
231
+ * @class
232
+ */
233
+ class SessionInfo extends AbstractModel {
234
+ constructor(){
235
+ super();
236
+
237
+ /**
238
+ * Session id.
239
+ * @type {string || null}
240
+ */
241
+ this.SessionId = null;
242
+
243
+ /**
244
+ * Remote device id.
245
+ * @type {string || null}
246
+ */
247
+ this.RemoteDeviceId = null;
248
+
249
+ /**
250
+ * On-Site device id.
251
+ * @type {string || null}
252
+ */
253
+ this.FieldDeviceId = null;
254
+
255
+ /**
256
+ * Target resolution.
257
+ * @type {string || null}
258
+ */
259
+ this.Resolution = null;
260
+
261
+ /**
262
+ * Session start time.
263
+ * @type {number || null}
264
+ */
265
+ this.StartTime = null;
266
+
267
+ /**
268
+ * Session end time.
269
+ * @type {number || null}
270
+ */
271
+ this.EndTime = null;
272
+
273
+ /**
274
+ * Call quality: good|normal|bad.
275
+ * @type {string || null}
276
+ */
277
+ this.Quality = null;
278
+
279
+ }
280
+
281
+ /**
282
+ * @private
283
+ */
284
+ deserialize(params) {
285
+ if (!params) {
286
+ return;
287
+ }
288
+ this.SessionId = 'SessionId' in params ? params.SessionId : null;
289
+ this.RemoteDeviceId = 'RemoteDeviceId' in params ? params.RemoteDeviceId : null;
290
+ this.FieldDeviceId = 'FieldDeviceId' in params ? params.FieldDeviceId : null;
291
+ this.Resolution = 'Resolution' in params ? params.Resolution : null;
292
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
293
+ this.EndTime = 'EndTime' in params ? params.EndTime : null;
294
+ this.Quality = 'Quality' in params ? params.Quality : null;
295
+
296
+ }
297
+ }
298
+
299
+ /**
300
+ * DescribeDeviceInfo request structure.
301
+ * @class
302
+ */
303
+ class DescribeDeviceInfoRequest extends AbstractModel {
304
+ constructor(){
305
+ super();
306
+
307
+ /**
308
+ * Project id to which the target device belongs.
309
+ * @type {string || null}
310
+ */
311
+ this.ProjectId = null;
312
+
313
+ /**
314
+ * Target device id.
315
+ * @type {string || null}
316
+ */
317
+ this.DeviceId = null;
318
+
319
+ }
320
+
321
+ /**
322
+ * @private
323
+ */
324
+ deserialize(params) {
325
+ if (!params) {
326
+ return;
327
+ }
328
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
329
+ this.DeviceId = 'DeviceId' in params ? params.DeviceId : null;
330
+
331
+ }
332
+ }
333
+
334
+ /**
335
+ * DescribeSessionStatisticsByInterval response structure.
336
+ * @class
337
+ */
338
+ class DescribeSessionStatisticsByIntervalResponse extends AbstractModel {
339
+ constructor(){
340
+ super();
341
+
342
+ /**
343
+ * Session statistics for each time period.
344
+ * @type {Array.<SessionIntervalStatistic> || null}
345
+ */
346
+ this.SessionStatistics = null;
347
+
348
+ /**
349
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
350
+ * @type {string || null}
351
+ */
352
+ this.RequestId = null;
353
+
354
+ }
355
+
356
+ /**
357
+ * @private
358
+ */
359
+ deserialize(params) {
360
+ if (!params) {
361
+ return;
362
+ }
363
+
364
+ if (params.SessionStatistics) {
365
+ this.SessionStatistics = new Array();
366
+ for (let z in params.SessionStatistics) {
367
+ let obj = new SessionIntervalStatistic();
368
+ obj.deserialize(params.SessionStatistics[z]);
369
+ this.SessionStatistics.push(obj);
370
+ }
371
+ }
372
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
373
+
374
+ }
375
+ }
376
+
377
+ /**
378
+ * DescribeRecentSessionList request structure.
379
+ * @class
380
+ */
381
+ class DescribeRecentSessionListRequest extends AbstractModel {
382
+ constructor(){
383
+ super();
384
+
385
+ /**
386
+ * Project id.
387
+ * @type {string || null}
388
+ */
389
+ this.ProjectId = null;
390
+
391
+ /**
392
+ * Page number, beginning from 1.
393
+ * @type {number || null}
394
+ */
395
+ this.PageNumber = null;
396
+
397
+ /**
398
+ * Number of entries per page.
399
+ * @type {number || null}
400
+ */
401
+ this.PageSize = null;
402
+
403
+ /**
404
+ * Device id, supports filtering by remote device or on-site device.
405
+ * @type {string || null}
406
+ */
407
+ this.DeviceId = null;
408
+
409
+ /**
410
+ * Start time of the time range. the maximum time range is the last two hours. if not specified or out of range, the start time is calculated as two hours ago.
411
+ * @type {number || null}
412
+ */
413
+ this.StartTime = null;
414
+
415
+ /**
416
+ * End time of the time range. the maximum time range is the last two hours. if not specified or out of range, the end time is calculated as the current time.
417
+ * @type {number || null}
418
+ */
419
+ this.EndTime = null;
420
+
421
+ }
422
+
423
+ /**
424
+ * @private
425
+ */
426
+ deserialize(params) {
427
+ if (!params) {
428
+ return;
429
+ }
430
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
431
+ this.PageNumber = 'PageNumber' in params ? params.PageNumber : null;
432
+ this.PageSize = 'PageSize' in params ? params.PageSize : null;
433
+ this.DeviceId = 'DeviceId' in params ? params.DeviceId : null;
434
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
435
+ this.EndTime = 'EndTime' in params ? params.EndTime : null;
436
+
437
+ }
438
+ }
439
+
440
+ /**
441
+ * Latest session information
442
+ * @class
443
+ */
444
+ class RecentSessionInfo extends AbstractModel {
445
+ constructor(){
446
+ super();
447
+
448
+ /**
449
+ * Session id.
450
+ * @type {string || null}
451
+ */
452
+ this.SessionId = null;
453
+
454
+ /**
455
+ * Remote device id.
456
+ * @type {string || null}
457
+ */
458
+ this.RemoteDeviceId = null;
459
+
460
+ /**
461
+ * On-Site device id.
462
+ * @type {string || null}
463
+ */
464
+ this.FieldDeviceId = null;
465
+
466
+ /**
467
+ * Target resolution.
468
+ * @type {string || null}
469
+ */
470
+ this.Resolution = null;
471
+
472
+ /**
473
+ * Session start time.
474
+ * @type {number || null}
475
+ */
476
+ this.StartTime = null;
477
+
478
+ /**
479
+ * Last updated time.
480
+ * @type {number || null}
481
+ */
482
+ this.LatestUpdateTime = null;
483
+
484
+ }
485
+
486
+ /**
487
+ * @private
488
+ */
489
+ deserialize(params) {
490
+ if (!params) {
491
+ return;
492
+ }
493
+ this.SessionId = 'SessionId' in params ? params.SessionId : null;
494
+ this.RemoteDeviceId = 'RemoteDeviceId' in params ? params.RemoteDeviceId : null;
495
+ this.FieldDeviceId = 'FieldDeviceId' in params ? params.FieldDeviceId : null;
496
+ this.Resolution = 'Resolution' in params ? params.Resolution : null;
497
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
498
+ this.LatestUpdateTime = 'LatestUpdateTime' in params ? params.LatestUpdateTime : null;
499
+
500
+ }
501
+ }
502
+
503
+ /**
504
+ * DescribeProjectInfo request structure.
505
+ * @class
506
+ */
507
+ class DescribeProjectInfoRequest extends AbstractModel {
508
+ constructor(){
509
+ super();
510
+
511
+ /**
512
+ * Target project id. required parameter.
513
+ * @type {string || null}
514
+ */
515
+ this.ProjectId = null;
516
+
517
+ }
518
+
519
+ /**
520
+ * @private
521
+ */
522
+ deserialize(params) {
523
+ if (!params) {
524
+ return;
525
+ }
526
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
527
+
528
+ }
529
+ }
530
+
531
+ /**
532
+ * ModifyPolicy request structure.
533
+ * @class
534
+ */
535
+ class ModifyPolicyRequest extends AbstractModel {
536
+ constructor(){
537
+ super();
538
+
539
+ /**
540
+ * Project id for modifying permission configuration.
541
+ * @type {string || null}
542
+ */
543
+ this.ProjectId = null;
544
+
545
+ /**
546
+ * Remote device id for modifying permission configuration.
547
+ * @type {string || null}
548
+ */
549
+ this.RemoteDeviceId = null;
550
+
551
+ /**
552
+ * Array of on-site device ids involved in permission modification.
553
+ * @type {Array.<string> || null}
554
+ */
555
+ this.FieldDeviceIds = null;
556
+
557
+ /**
558
+ * The target permission mode to modify, black for blocklist, white for allowlist.
559
+ * @type {string || null}
560
+ */
561
+ this.PolicyMode = null;
562
+
563
+ /**
564
+ * Modification mode, add for adding (associating on-site devices), remove for deletion (dissociating on-site devices), set for setting (updating on-site device association).
565
+ * @type {string || null}
566
+ */
567
+ this.ModifyMode = null;
568
+
569
+ }
570
+
571
+ /**
572
+ * @private
573
+ */
574
+ deserialize(params) {
575
+ if (!params) {
576
+ return;
577
+ }
578
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
579
+ this.RemoteDeviceId = 'RemoteDeviceId' in params ? params.RemoteDeviceId : null;
580
+ this.FieldDeviceIds = 'FieldDeviceIds' in params ? params.FieldDeviceIds : null;
581
+ this.PolicyMode = 'PolicyMode' in params ? params.PolicyMode : null;
582
+ this.ModifyMode = 'ModifyMode' in params ? params.ModifyMode : null;
583
+
584
+ }
585
+ }
586
+
587
+ /**
588
+ * DescribeDeviceInfo response structure.
589
+ * @class
590
+ */
591
+ class DescribeDeviceInfoResponse extends AbstractModel {
592
+ constructor(){
593
+ super();
594
+
595
+ /**
596
+ * Device name.
597
+ * @type {string || null}
598
+ */
599
+ this.DeviceName = null;
600
+
601
+ /**
602
+ * Device type: "field" specifies on-site devices (controlled party), and "remote" specifies remote devices (controlling party).
603
+ * @type {string || null}
604
+ */
605
+ this.DeviceType = null;
606
+
607
+ /**
608
+ * Device status: offline means offline, ready means online and ready, connected means in session.
609
+ * @type {string || null}
610
+ */
611
+ this.DeviceStatus = null;
612
+
613
+ /**
614
+ * Last updated time of device status.
615
+ * @type {string || null}
616
+ */
617
+ this.LastReportTime = null;
618
+
619
+ /**
620
+ * Modification time of device information.
621
+ * @type {string || null}
622
+ */
623
+ this.ModifyTime = null;
624
+
625
+ /**
626
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
627
+ * @type {string || null}
628
+ */
629
+ this.RequestId = null;
630
+
631
+ }
632
+
633
+ /**
634
+ * @private
635
+ */
636
+ deserialize(params) {
637
+ if (!params) {
638
+ return;
639
+ }
640
+ this.DeviceName = 'DeviceName' in params ? params.DeviceName : null;
641
+ this.DeviceType = 'DeviceType' in params ? params.DeviceType : null;
642
+ this.DeviceStatus = 'DeviceStatus' in params ? params.DeviceStatus : null;
643
+ this.LastReportTime = 'LastReportTime' in params ? params.LastReportTime : null;
644
+ this.ModifyTime = 'ModifyTime' in params ? params.ModifyTime : null;
645
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
646
+
647
+ }
648
+ }
649
+
650
+ /**
651
+ * GetLicenseStat request structure.
652
+ * @class
653
+ */
654
+ class GetLicenseStatRequest extends AbstractModel {
655
+ constructor(){
656
+ super();
657
+
658
+ }
659
+
660
+ /**
661
+ * @private
662
+ */
663
+ deserialize(params) {
664
+ if (!params) {
665
+ return;
666
+ }
667
+
668
+ }
669
+ }
670
+
671
+ /**
672
+ * DescribeProjectList response structure.
673
+ * @class
674
+ */
675
+ class DescribeProjectListResponse extends AbstractModel {
676
+ constructor(){
677
+ super();
678
+
679
+ /**
680
+ * Array of project information.
681
+ * @type {Array.<ProjectInfo> || null}
682
+ */
683
+ this.Projects = null;
684
+
685
+ /**
686
+ * Total number of projects.
687
+ * @type {number || null}
688
+ */
689
+ this.Total = null;
690
+
691
+ /**
692
+ * Number of projects returned in this request.
693
+ * @type {number || null}
694
+ */
695
+ this.Num = null;
696
+
697
+ /**
698
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
699
+ * @type {string || null}
700
+ */
701
+ this.RequestId = null;
702
+
703
+ }
704
+
705
+ /**
706
+ * @private
707
+ */
708
+ deserialize(params) {
709
+ if (!params) {
710
+ return;
711
+ }
712
+
713
+ if (params.Projects) {
714
+ this.Projects = new Array();
715
+ for (let z in params.Projects) {
716
+ let obj = new ProjectInfo();
717
+ obj.deserialize(params.Projects[z]);
718
+ this.Projects.push(obj);
719
+ }
720
+ }
721
+ this.Total = 'Total' in params ? params.Total : null;
722
+ this.Num = 'Num' in params ? params.Num : null;
723
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
724
+
725
+ }
726
+ }
727
+
728
+ /**
729
+ * ModifyProject response structure.
730
+ * @class
731
+ */
732
+ class ModifyProjectResponse extends AbstractModel {
733
+ constructor(){
734
+ super();
735
+
736
+ /**
737
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
738
+ * @type {string || null}
739
+ */
740
+ this.RequestId = null;
741
+
742
+ }
743
+
744
+ /**
745
+ * @private
746
+ */
747
+ deserialize(params) {
748
+ if (!params) {
749
+ return;
750
+ }
751
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
752
+
753
+ }
754
+ }
755
+
756
+ /**
757
+ * BatchDeletePolicy response structure.
758
+ * @class
759
+ */
760
+ class BatchDeletePolicyResponse extends AbstractModel {
761
+ constructor(){
762
+ super();
763
+
764
+ /**
765
+ * Remote device id list with failed permission configuration deletion.
766
+ * @type {Array.<string> || null}
767
+ */
768
+ this.FailedRemoteDeviceIds = null;
769
+
770
+ /**
771
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
772
+ * @type {string || null}
773
+ */
774
+ this.RequestId = null;
775
+
776
+ }
777
+
778
+ /**
779
+ * @private
780
+ */
781
+ deserialize(params) {
782
+ if (!params) {
783
+ return;
784
+ }
785
+ this.FailedRemoteDeviceIds = 'FailedRemoteDeviceIds' in params ? params.FailedRemoteDeviceIds : null;
786
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
787
+
788
+ }
789
+ }
790
+
791
+ /**
792
+ * GetLicenseStat response structure.
793
+ * @class
794
+ */
795
+ class GetLicenseStatResponse extends AbstractModel {
796
+ constructor(){
797
+ super();
798
+
799
+ /**
800
+ * Valid authorization.
801
+ * @type {number || null}
802
+ */
803
+ this.Valid = null;
804
+
805
+ /**
806
+ * Bound authorization.
807
+ * @type {number || null}
808
+ */
809
+ this.Bound = null;
810
+
811
+ /**
812
+ * Unbound authorization.
813
+ * @type {number || null}
814
+ */
815
+ this.UnBound = null;
816
+
817
+ /**
818
+ * Expired authorization.
819
+ * @type {number || null}
820
+ */
821
+ this.Expire = null;
822
+
823
+ /**
824
+ * Number of authorization timeouts for the current month.
825
+ * @type {number || null}
826
+ */
827
+ this.MonthlyExpire = null;
828
+
829
+ /**
830
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
831
+ * @type {string || null}
832
+ */
833
+ this.RequestId = null;
834
+
835
+ }
836
+
837
+ /**
838
+ * @private
839
+ */
840
+ deserialize(params) {
841
+ if (!params) {
842
+ return;
843
+ }
844
+ this.Valid = 'Valid' in params ? params.Valid : null;
845
+ this.Bound = 'Bound' in params ? params.Bound : null;
846
+ this.UnBound = 'UnBound' in params ? params.UnBound : null;
847
+ this.Expire = 'Expire' in params ? params.Expire : null;
848
+ this.MonthlyExpire = 'MonthlyExpire' in params ? params.MonthlyExpire : null;
849
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
850
+
851
+ }
852
+ }
853
+
854
+ /**
855
+ * ModifyPolicy response structure.
856
+ * @class
857
+ */
858
+ class ModifyPolicyResponse extends AbstractModel {
859
+ constructor(){
860
+ super();
861
+
862
+ /**
863
+ * List of on-site device ids with association failed.
864
+ * @type {Array.<string> || null}
865
+ */
866
+ this.FailedInsertIds = null;
867
+
868
+ /**
869
+ * List of on-site device ids with disassociation failed.
870
+ * @type {Array.<string> || null}
871
+ */
872
+ this.FailedDeleteIds = null;
873
+
874
+ /**
875
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
876
+ * @type {string || null}
877
+ */
878
+ this.RequestId = null;
879
+
880
+ }
881
+
882
+ /**
883
+ * @private
884
+ */
885
+ deserialize(params) {
886
+ if (!params) {
887
+ return;
888
+ }
889
+ this.FailedInsertIds = 'FailedInsertIds' in params ? params.FailedInsertIds : null;
890
+ this.FailedDeleteIds = 'FailedDeleteIds' in params ? params.FailedDeleteIds : null;
891
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
892
+
893
+ }
894
+ }
895
+
896
+ /**
897
+ * Query the authorization binding status of user devices
898
+ * @class
899
+ */
900
+ class Device extends AbstractModel {
901
+ constructor(){
902
+ super();
903
+
904
+ /**
905
+ * Device id.
906
+ * @type {string || null}
907
+ */
908
+ this.DeviceId = null;
909
+
910
+ /**
911
+ * Device name.
912
+ * @type {string || null}
913
+ */
914
+ this.DeviceName = null;
915
+
916
+ /**
917
+ * Number of bound licenses.
918
+ * @type {number || null}
919
+ */
920
+ this.LicenseCount = null;
921
+
922
+ /**
923
+ * Remaining days: days.
924
+ * @type {number || null}
925
+ */
926
+ this.RemainDay = null;
927
+
928
+ /**
929
+ * Expiration time: s.
930
+ * @type {string || null}
931
+ */
932
+ this.ExpireTime = null;
933
+
934
+ /**
935
+ * Service duration: s.
936
+ * @type {string || null}
937
+ */
938
+ this.Duration = null;
939
+
940
+ /**
941
+ * List of bound license ids.
942
+ * @type {Array.<string> || null}
943
+ */
944
+ this.LicenseIds = null;
945
+
946
+ /**
947
+ * Monthly license duration limit.
948
+ * @type {number || null}
949
+ */
950
+ this.MonthlyRemainTime = null;
951
+
952
+ /**
953
+ * Monthly maximum duration (minutes).
954
+ * @type {number || null}
955
+ */
956
+ this.LimitedTime = null;
957
+
958
+ }
959
+
960
+ /**
961
+ * @private
962
+ */
963
+ deserialize(params) {
964
+ if (!params) {
965
+ return;
966
+ }
967
+ this.DeviceId = 'DeviceId' in params ? params.DeviceId : null;
968
+ this.DeviceName = 'DeviceName' in params ? params.DeviceName : null;
969
+ this.LicenseCount = 'LicenseCount' in params ? params.LicenseCount : null;
970
+ this.RemainDay = 'RemainDay' in params ? params.RemainDay : null;
971
+ this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null;
972
+ this.Duration = 'Duration' in params ? params.Duration : null;
973
+ this.LicenseIds = 'LicenseIds' in params ? params.LicenseIds : null;
974
+ this.MonthlyRemainTime = 'MonthlyRemainTime' in params ? params.MonthlyRemainTime : null;
975
+ this.LimitedTime = 'LimitedTime' in params ? params.LimitedTime : null;
976
+
977
+ }
978
+ }
979
+
980
+ /**
981
+ * DescribeSessionStatistics request structure.
982
+ * @class
983
+ */
984
+ class DescribeSessionStatisticsRequest extends AbstractModel {
985
+ constructor(){
986
+ super();
987
+
988
+ /**
989
+ * Project id.
990
+ * @type {string || null}
991
+ */
992
+ this.ProjectId = null;
993
+
994
+ /**
995
+ * Device id.
996
+ * @type {string || null}
997
+ */
998
+ this.DeviceId = null;
999
+
1000
+ /**
1001
+ * Start time, unit: seconds.
1002
+ * @type {number || null}
1003
+ */
1004
+ this.StartTime = null;
1005
+
1006
+ /**
1007
+ * End time in seconds.
1008
+ * @type {number || null}
1009
+ */
1010
+ this.EndTime = null;
1011
+
1012
+ }
1013
+
1014
+ /**
1015
+ * @private
1016
+ */
1017
+ deserialize(params) {
1018
+ if (!params) {
1019
+ return;
1020
+ }
1021
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
1022
+ this.DeviceId = 'DeviceId' in params ? params.DeviceId : null;
1023
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
1024
+ this.EndTime = 'EndTime' in params ? params.EndTime : null;
1025
+
1026
+ }
1027
+ }
1028
+
1029
+ /**
1030
+ * BatchDeleteDevices response structure.
1031
+ * @class
1032
+ */
1033
+ class BatchDeleteDevicesResponse extends AbstractModel {
1034
+ constructor(){
1035
+ super();
1036
+
1037
+ /**
1038
+ * List of device ids with deletion failed.
1039
+ * @type {Array.<string> || null}
1040
+ */
1041
+ this.FailedDeviceIds = null;
1042
+
1043
+ /**
1044
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1045
+ * @type {string || null}
1046
+ */
1047
+ this.RequestId = null;
1048
+
1049
+ }
1050
+
1051
+ /**
1052
+ * @private
1053
+ */
1054
+ deserialize(params) {
1055
+ if (!params) {
1056
+ return;
1057
+ }
1058
+ this.FailedDeviceIds = 'FailedDeviceIds' in params ? params.FailedDeviceIds : null;
1059
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1060
+
1061
+ }
1062
+ }
1063
+
1064
+ /**
1065
+ * ModifyProject request structure.
1066
+ * @class
1067
+ */
1068
+ class ModifyProjectRequest extends AbstractModel {
1069
+ constructor(){
1070
+ super();
1071
+
1072
+ /**
1073
+ * Project id of the target project to modify.
1074
+ * @type {string || null}
1075
+ */
1076
+ this.ProjectId = null;
1077
+
1078
+ /**
1079
+ * Modified project name, leave blank if not modifying.
1080
+ * @type {string || null}
1081
+ */
1082
+ this.ProjectName = null;
1083
+
1084
+ /**
1085
+ * Modified project description, leave blank if not modifying.
1086
+ * @type {string || null}
1087
+ */
1088
+ this.ProjectDescription = null;
1089
+
1090
+ /**
1091
+ * The modified permission mode, black for blocklist, white for allowlist. if not specified, no modification will be made.
1092
+ * @type {string || null}
1093
+ */
1094
+ this.PolicyMode = null;
1095
+
1096
+ }
1097
+
1098
+ /**
1099
+ * @private
1100
+ */
1101
+ deserialize(params) {
1102
+ if (!params) {
1103
+ return;
1104
+ }
1105
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
1106
+ this.ProjectName = 'ProjectName' in params ? params.ProjectName : null;
1107
+ this.ProjectDescription = 'ProjectDescription' in params ? params.ProjectDescription : null;
1108
+ this.PolicyMode = 'PolicyMode' in params ? params.PolicyMode : null;
1109
+
1110
+ }
1111
+ }
1112
+
1113
+ /**
1114
+ * DescribeRecentSessionList response structure.
1115
+ * @class
1116
+ */
1117
+ class DescribeRecentSessionListResponse extends AbstractModel {
1118
+ constructor(){
1119
+ super();
1120
+
1121
+ /**
1122
+ * Total number.
1123
+ * @type {number || null}
1124
+ */
1125
+ this.Total = null;
1126
+
1127
+ /**
1128
+ * Conversation list.
1129
+ * @type {Array.<RecentSessionInfo> || null}
1130
+ */
1131
+ this.RecentSessionList = null;
1132
+
1133
+ /**
1134
+ * Number of items on this page.
1135
+ * @type {number || null}
1136
+ */
1137
+ this.Num = null;
1138
+
1139
+ /**
1140
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1141
+ * @type {string || null}
1142
+ */
1143
+ this.RequestId = null;
1144
+
1145
+ }
1146
+
1147
+ /**
1148
+ * @private
1149
+ */
1150
+ deserialize(params) {
1151
+ if (!params) {
1152
+ return;
1153
+ }
1154
+ this.Total = 'Total' in params ? params.Total : null;
1155
+
1156
+ if (params.RecentSessionList) {
1157
+ this.RecentSessionList = new Array();
1158
+ for (let z in params.RecentSessionList) {
1159
+ let obj = new RecentSessionInfo();
1160
+ obj.deserialize(params.RecentSessionList[z]);
1161
+ this.RecentSessionList.push(obj);
1162
+ }
1163
+ }
1164
+ this.Num = 'Num' in params ? params.Num : null;
1165
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1166
+
1167
+ }
1168
+ }
1169
+
1170
+ /**
1171
+ * ModifyDevice request structure.
1172
+ * @class
1173
+ */
1174
+ class ModifyDeviceRequest extends AbstractModel {
1175
+ constructor(){
1176
+ super();
1177
+
1178
+ /**
1179
+ * The target project id to modify the device's affiliated project.
1180
+ * @type {string || null}
1181
+ */
1182
+ this.ProjectId = null;
1183
+
1184
+ /**
1185
+ * The target device id to modify the device.
1186
+ * @type {string || null}
1187
+ */
1188
+ this.DeviceId = null;
1189
+
1190
+ /**
1191
+ * The modified device name; if not filled in, no modification will be made.
1192
+ * @type {string || null}
1193
+ */
1194
+ this.DeviceName = null;
1195
+
1196
+ /**
1197
+ * The modified device authentication password; if not filled in, no modification will be made.
1198
+ * @type {string || null}
1199
+ */
1200
+ this.DeviceToken = null;
1201
+
1202
+ }
1203
+
1204
+ /**
1205
+ * @private
1206
+ */
1207
+ deserialize(params) {
1208
+ if (!params) {
1209
+ return;
1210
+ }
1211
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
1212
+ this.DeviceId = 'DeviceId' in params ? params.DeviceId : null;
1213
+ this.DeviceName = 'DeviceName' in params ? params.DeviceName : null;
1214
+ this.DeviceToken = 'DeviceToken' in params ? params.DeviceToken : null;
1215
+
1216
+ }
1217
+ }
1218
+
1219
+ /**
1220
+ * DescribeProjectList request structure.
1221
+ * @class
1222
+ */
1223
+ class DescribeProjectListRequest extends AbstractModel {
1224
+ constructor(){
1225
+ super();
1226
+
1227
+ /**
1228
+ * The maximum number of projects returned per page. the default value is 10 if it is not filled in.
1229
+ * @type {number || null}
1230
+ */
1231
+ this.PageSize = null;
1232
+
1233
+ /**
1234
+ * The current page number. the default value is 1 (homepage) if it is not filled in.
1235
+ * @type {number || null}
1236
+ */
1237
+ this.PageNumber = null;
1238
+
1239
+ }
1240
+
1241
+ /**
1242
+ * @private
1243
+ */
1244
+ deserialize(params) {
1245
+ if (!params) {
1246
+ return;
1247
+ }
1248
+ this.PageSize = 'PageSize' in params ? params.PageSize : null;
1249
+ this.PageNumber = 'PageNumber' in params ? params.PageNumber : null;
1250
+
1251
+ }
1252
+ }
1253
+
1254
+ /**
1255
+ * Project information.
1256
+ * @class
1257
+ */
1258
+ class ProjectInfo extends AbstractModel {
1259
+ constructor(){
1260
+ super();
1261
+
1262
+ /**
1263
+ * Project id.
1264
+ * @type {string || null}
1265
+ */
1266
+ this.ProjectId = null;
1267
+
1268
+ /**
1269
+ * Project name.
1270
+ * @type {string || null}
1271
+ */
1272
+ this.ProjectName = null;
1273
+
1274
+ /**
1275
+ * Project description.
1276
+ * @type {string || null}
1277
+ */
1278
+ this.ProjectDescription = null;
1279
+
1280
+ /**
1281
+ * Project permission mode, black for blocklist, white for allowlist.
1282
+ * @type {string || null}
1283
+ */
1284
+ this.PolicyMode = null;
1285
+
1286
+ /**
1287
+ * Project information modification time.
1288
+ * @type {string || null}
1289
+ */
1290
+ this.ModifyTime = null;
1291
+
1292
+ }
1293
+
1294
+ /**
1295
+ * @private
1296
+ */
1297
+ deserialize(params) {
1298
+ if (!params) {
1299
+ return;
1300
+ }
1301
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
1302
+ this.ProjectName = 'ProjectName' in params ? params.ProjectName : null;
1303
+ this.ProjectDescription = 'ProjectDescription' in params ? params.ProjectDescription : null;
1304
+ this.PolicyMode = 'PolicyMode' in params ? params.PolicyMode : null;
1305
+ this.ModifyTime = 'ModifyTime' in params ? params.ModifyTime : null;
1306
+
1307
+ }
1308
+ }
1309
+
1310
+ /**
1311
+ * BatchDeletePolicy request structure.
1312
+ * @class
1313
+ */
1314
+ class BatchDeletePolicyRequest extends AbstractModel {
1315
+ constructor(){
1316
+ super();
1317
+
1318
+ /**
1319
+ * Project id of the deleted permission configuration.
1320
+ * @type {string || null}
1321
+ */
1322
+ this.ProjectId = null;
1323
+
1324
+ /**
1325
+ * Remote device id list of the deleted permission configuration.
1326
+ * @type {Array.<string> || null}
1327
+ */
1328
+ this.RemoteDeviceIds = null;
1329
+
1330
+ /**
1331
+ * Permission mode of the deleted permission configuration, black for blocklist, white for allowlist.
1332
+ * @type {string || null}
1333
+ */
1334
+ this.PolicyMode = null;
1335
+
1336
+ }
1337
+
1338
+ /**
1339
+ * @private
1340
+ */
1341
+ deserialize(params) {
1342
+ if (!params) {
1343
+ return;
1344
+ }
1345
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
1346
+ this.RemoteDeviceIds = 'RemoteDeviceIds' in params ? params.RemoteDeviceIds : null;
1347
+ this.PolicyMode = 'PolicyMode' in params ? params.PolicyMode : null;
1348
+
1349
+ }
1350
+ }
1351
+
1352
+ /**
1353
+ * DescribeDeviceSessionList response structure.
1354
+ * @class
1355
+ */
1356
+ class DescribeDeviceSessionListResponse extends AbstractModel {
1357
+ constructor(){
1358
+ super();
1359
+
1360
+ /**
1361
+ * Total number.
1362
+ * @type {number || null}
1363
+ */
1364
+ this.Total = null;
1365
+
1366
+ /**
1367
+ * Conversation list.
1368
+ * @type {Array.<SessionInfo> || null}
1369
+ */
1370
+ this.DeviceSessionList = null;
1371
+
1372
+ /**
1373
+ * Number of items on this page.
1374
+ * @type {number || null}
1375
+ */
1376
+ this.Num = null;
1377
+
1378
+ /**
1379
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1380
+ * @type {string || null}
1381
+ */
1382
+ this.RequestId = null;
1383
+
1384
+ }
1385
+
1386
+ /**
1387
+ * @private
1388
+ */
1389
+ deserialize(params) {
1390
+ if (!params) {
1391
+ return;
1392
+ }
1393
+ this.Total = 'Total' in params ? params.Total : null;
1394
+
1395
+ if (params.DeviceSessionList) {
1396
+ this.DeviceSessionList = new Array();
1397
+ for (let z in params.DeviceSessionList) {
1398
+ let obj = new SessionInfo();
1399
+ obj.deserialize(params.DeviceSessionList[z]);
1400
+ this.DeviceSessionList.push(obj);
1401
+ }
1402
+ }
1403
+ this.Num = 'Num' in params ? params.Num : null;
1404
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1405
+
1406
+ }
1407
+ }
1408
+
1409
+ /**
1410
+ * DescribeProjectInfo response structure.
1411
+ * @class
1412
+ */
1413
+ class DescribeProjectInfoResponse extends AbstractModel {
1414
+ constructor(){
1415
+ super();
1416
+
1417
+ /**
1418
+ * Project name.
1419
+ * @type {string || null}
1420
+ */
1421
+ this.ProjectName = null;
1422
+
1423
+ /**
1424
+ * Project description.
1425
+ * @type {string || null}
1426
+ */
1427
+ this.ProjectDescription = null;
1428
+
1429
+ /**
1430
+ * Project permission mode, black for blocklist, white for allowlist.
1431
+ * @type {string || null}
1432
+ */
1433
+ this.PolicyMode = null;
1434
+
1435
+ /**
1436
+ * Project information modification time.
1437
+ * @type {string || null}
1438
+ */
1439
+ this.ModifyTime = null;
1440
+
1441
+ /**
1442
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1443
+ * @type {string || null}
1444
+ */
1445
+ this.RequestId = null;
1446
+
1447
+ }
1448
+
1449
+ /**
1450
+ * @private
1451
+ */
1452
+ deserialize(params) {
1453
+ if (!params) {
1454
+ return;
1455
+ }
1456
+ this.ProjectName = 'ProjectName' in params ? params.ProjectName : null;
1457
+ this.ProjectDescription = 'ProjectDescription' in params ? params.ProjectDescription : null;
1458
+ this.PolicyMode = 'PolicyMode' in params ? params.PolicyMode : null;
1459
+ this.ModifyTime = 'ModifyTime' in params ? params.ModifyTime : null;
1460
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1461
+
1462
+ }
1463
+ }
1464
+
1465
+ /**
1466
+ * DeleteProject response structure.
1467
+ * @class
1468
+ */
1469
+ class DeleteProjectResponse extends AbstractModel {
1470
+ constructor(){
1471
+ super();
1472
+
1473
+ /**
1474
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1475
+ * @type {string || null}
1476
+ */
1477
+ this.RequestId = null;
1478
+
1479
+ }
1480
+
1481
+ /**
1482
+ * @private
1483
+ */
1484
+ deserialize(params) {
1485
+ if (!params) {
1486
+ return;
1487
+ }
1488
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1489
+
1490
+ }
1491
+ }
1492
+
1493
+ /**
1494
+ * GetDeviceLicense response structure.
1495
+ * @class
1496
+ */
1497
+ class GetDeviceLicenseResponse extends AbstractModel {
1498
+ constructor(){
1499
+ super();
1500
+
1501
+ /**
1502
+ * Specifies the number of available licenses bound to the specified device.
1503
+ * @type {number || null}
1504
+ */
1505
+ this.AvailableCount = null;
1506
+
1507
+ /**
1508
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1509
+ * @type {string || null}
1510
+ */
1511
+ this.RequestId = null;
1512
+
1513
+ }
1514
+
1515
+ /**
1516
+ * @private
1517
+ */
1518
+ deserialize(params) {
1519
+ if (!params) {
1520
+ return;
1521
+ }
1522
+ this.AvailableCount = 'AvailableCount' in params ? params.AvailableCount : null;
1523
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1524
+
1525
+ }
1526
+ }
1527
+
1528
+ /**
1529
+ * CreateDevice response structure.
1530
+ * @class
1531
+ */
1532
+ class CreateDeviceResponse extends AbstractModel {
1533
+ constructor(){
1534
+ super();
1535
+
1536
+ /**
1537
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1538
+ * @type {string || null}
1539
+ */
1540
+ this.RequestId = null;
1541
+
1542
+ }
1543
+
1544
+ /**
1545
+ * @private
1546
+ */
1547
+ deserialize(params) {
1548
+ if (!params) {
1549
+ return;
1550
+ }
1551
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1552
+
1553
+ }
1554
+ }
1555
+
1556
+ /**
1557
+ * DescribeSessionStatisticsByInterval request structure.
1558
+ * @class
1559
+ */
1560
+ class DescribeSessionStatisticsByIntervalRequest extends AbstractModel {
1561
+ constructor(){
1562
+ super();
1563
+
1564
+ /**
1565
+ * Project id.
1566
+ * @type {string || null}
1567
+ */
1568
+ this.ProjectId = null;
1569
+
1570
+ /**
1571
+ * Statistical time interval: hour|day|month.
1572
+ * @type {string || null}
1573
+ */
1574
+ this.StatisticInterval = null;
1575
+
1576
+ /**
1577
+ * Device id.
1578
+ * @type {string || null}
1579
+ */
1580
+ this.DeviceId = null;
1581
+
1582
+ /**
1583
+ * Start time in seconds.
1584
+ * @type {number || null}
1585
+ */
1586
+ this.StartTime = null;
1587
+
1588
+ /**
1589
+ * End time in seconds.
1590
+ * @type {number || null}
1591
+ */
1592
+ this.EndTime = null;
1593
+
1594
+ }
1595
+
1596
+ /**
1597
+ * @private
1598
+ */
1599
+ deserialize(params) {
1600
+ if (!params) {
1601
+ return;
1602
+ }
1603
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
1604
+ this.StatisticInterval = 'StatisticInterval' in params ? params.StatisticInterval : null;
1605
+ this.DeviceId = 'DeviceId' in params ? params.DeviceId : null;
1606
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
1607
+ this.EndTime = 'EndTime' in params ? params.EndTime : null;
1608
+
1609
+ }
1610
+ }
1611
+
1612
+ /**
1613
+ * CreateDevice request structure.
1614
+ * @class
1615
+ */
1616
+ class CreateDeviceRequest extends AbstractModel {
1617
+ constructor(){
1618
+ super();
1619
+
1620
+ /**
1621
+ * Create the project id to which the device belongs.
1622
+ * @type {string || null}
1623
+ */
1624
+ this.ProjectId = null;
1625
+
1626
+ /**
1627
+ * Create a device id, which must be unique within the project, consisting of lowercase english letters, numbers, and underscores, with a length not exceeding 18.
1628
+ * @type {string || null}
1629
+ */
1630
+ this.DeviceId = null;
1631
+
1632
+ /**
1633
+ * Create a device name, with a length of less than 24, which can include chinese, numbers, english letters, and underscores.
1634
+ * @type {string || null}
1635
+ */
1636
+ this.DeviceName = null;
1637
+
1638
+ /**
1639
+ * Device type, field for on-site device (controlled device), remote for remote device (control device), default is field if not specified.
1640
+ * @type {string || null}
1641
+ */
1642
+ this.DeviceType = null;
1643
+
1644
+ /**
1645
+ * Device authentication password, consisting of uppercase and lowercase english letters and digits, must be 16 characters.
1646
+ * @type {string || null}
1647
+ */
1648
+ this.DeviceToken = null;
1649
+
1650
+ }
1651
+
1652
+ /**
1653
+ * @private
1654
+ */
1655
+ deserialize(params) {
1656
+ if (!params) {
1657
+ return;
1658
+ }
1659
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
1660
+ this.DeviceId = 'DeviceId' in params ? params.DeviceId : null;
1661
+ this.DeviceName = 'DeviceName' in params ? params.DeviceName : null;
1662
+ this.DeviceType = 'DeviceType' in params ? params.DeviceType : null;
1663
+ this.DeviceToken = 'DeviceToken' in params ? params.DeviceToken : null;
1664
+
1665
+ }
1666
+ }
1667
+
1668
+ /**
1669
+ * DescribeSessionStatistics response structure.
1670
+ * @class
1671
+ */
1672
+ class DescribeSessionStatisticsResponse extends AbstractModel {
1673
+ constructor(){
1674
+ super();
1675
+
1676
+ /**
1677
+ * Number of sessions.
1678
+ * @type {number || null}
1679
+ */
1680
+ this.SessionNum = null;
1681
+
1682
+ /**
1683
+ * Call duration, unit: minutes.
1684
+ * @type {number || null}
1685
+ */
1686
+ this.TotalDuration = null;
1687
+
1688
+ /**
1689
+ * Number of active on-site devices.
1690
+ * @type {number || null}
1691
+ */
1692
+ this.ActiveFieldDeviceNum = null;
1693
+
1694
+ /**
1695
+ * Number of active remote devices.
1696
+ * @type {number || null}
1697
+ */
1698
+ this.ActiveRemoteDeviceNum = null;
1699
+
1700
+ /**
1701
+ * Proportion of excellent sessions, unit: %.
1702
+ * @type {number || null}
1703
+ */
1704
+ this.NotBadSessionRatio = null;
1705
+
1706
+ /**
1707
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1708
+ * @type {string || null}
1709
+ */
1710
+ this.RequestId = null;
1711
+
1712
+ }
1713
+
1714
+ /**
1715
+ * @private
1716
+ */
1717
+ deserialize(params) {
1718
+ if (!params) {
1719
+ return;
1720
+ }
1721
+ this.SessionNum = 'SessionNum' in params ? params.SessionNum : null;
1722
+ this.TotalDuration = 'TotalDuration' in params ? params.TotalDuration : null;
1723
+ this.ActiveFieldDeviceNum = 'ActiveFieldDeviceNum' in params ? params.ActiveFieldDeviceNum : null;
1724
+ this.ActiveRemoteDeviceNum = 'ActiveRemoteDeviceNum' in params ? params.ActiveRemoteDeviceNum : null;
1725
+ this.NotBadSessionRatio = 'NotBadSessionRatio' in params ? params.NotBadSessionRatio : null;
1726
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1727
+
1728
+ }
1729
+ }
1730
+
1731
+ /**
1732
+ * GetDevices response structure.
1733
+ * @class
1734
+ */
1735
+ class GetDevicesResponse extends AbstractModel {
1736
+ constructor(){
1737
+ super();
1738
+
1739
+ /**
1740
+ * Device authorization list.
1741
+ * @type {Array.<Device> || null}
1742
+ */
1743
+ this.Devices = null;
1744
+
1745
+ /**
1746
+ * Number of tables in the list.
1747
+ * @type {number || null}
1748
+ */
1749
+ this.TotalCount = null;
1750
+
1751
+ /**
1752
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1753
+ * @type {string || null}
1754
+ */
1755
+ this.RequestId = null;
1756
+
1757
+ }
1758
+
1759
+ /**
1760
+ * @private
1761
+ */
1762
+ deserialize(params) {
1763
+ if (!params) {
1764
+ return;
1765
+ }
1766
+
1767
+ if (params.Devices) {
1768
+ this.Devices = new Array();
1769
+ for (let z in params.Devices) {
1770
+ let obj = new Device();
1771
+ obj.deserialize(params.Devices[z]);
1772
+ this.Devices.push(obj);
1773
+ }
1774
+ }
1775
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
1776
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1777
+
1778
+ }
1779
+ }
1780
+
1781
+ /**
1782
+ * GetLicenses response structure.
1783
+ * @class
1784
+ */
1785
+ class GetLicensesResponse extends AbstractModel {
1786
+ constructor(){
1787
+ super();
1788
+
1789
+ /**
1790
+ * License list.
1791
+ * @type {Array.<License> || null}
1792
+ */
1793
+ this.Licenses = null;
1794
+
1795
+ /**
1796
+ * Number of license list items.
1797
+ * @type {number || null}
1798
+ */
1799
+ this.TotalCount = null;
1800
+
1801
+ /**
1802
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1803
+ * @type {string || null}
1804
+ */
1805
+ this.RequestId = null;
1806
+
1807
+ }
1808
+
1809
+ /**
1810
+ * @private
1811
+ */
1812
+ deserialize(params) {
1813
+ if (!params) {
1814
+ return;
1815
+ }
1816
+
1817
+ if (params.Licenses) {
1818
+ this.Licenses = new Array();
1819
+ for (let z in params.Licenses) {
1820
+ let obj = new License();
1821
+ obj.deserialize(params.Licenses[z]);
1822
+ this.Licenses.push(obj);
1823
+ }
1824
+ }
1825
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
1826
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1827
+
1828
+ }
1829
+ }
1830
+
1831
+ /**
1832
+ * DescribeDeviceSessionList request structure.
1833
+ * @class
1834
+ */
1835
+ class DescribeDeviceSessionListRequest extends AbstractModel {
1836
+ constructor(){
1837
+ super();
1838
+
1839
+ /**
1840
+ * Project id.
1841
+ * @type {string || null}
1842
+ */
1843
+ this.ProjectId = null;
1844
+
1845
+ /**
1846
+ * Page number, beginning from 1.
1847
+ * @type {number || null}
1848
+ */
1849
+ this.PageNumber = null;
1850
+
1851
+ /**
1852
+ * Number of entries per page.
1853
+ * @type {number || null}
1854
+ */
1855
+ this.PageSize = null;
1856
+
1857
+ /**
1858
+ * Device id.
1859
+ * @type {string || null}
1860
+ */
1861
+ this.DeviceId = null;
1862
+
1863
+ /**
1864
+ * Start time.
1865
+ * @type {number || null}
1866
+ */
1867
+ this.StartTime = null;
1868
+
1869
+ /**
1870
+ * End time.
1871
+ * @type {number || null}
1872
+ */
1873
+ this.EndTime = null;
1874
+
1875
+ }
1876
+
1877
+ /**
1878
+ * @private
1879
+ */
1880
+ deserialize(params) {
1881
+ if (!params) {
1882
+ return;
1883
+ }
1884
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
1885
+ this.PageNumber = 'PageNumber' in params ? params.PageNumber : null;
1886
+ this.PageSize = 'PageSize' in params ? params.PageSize : null;
1887
+ this.DeviceId = 'DeviceId' in params ? params.DeviceId : null;
1888
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
1889
+ this.EndTime = 'EndTime' in params ? params.EndTime : null;
1890
+
1891
+ }
1892
+ }
1893
+
1894
+ /**
1895
+ * GetDevices request structure.
1896
+ * @class
1897
+ */
1898
+ class GetDevicesRequest extends AbstractModel {
1899
+ constructor(){
1900
+ super();
1901
+
1902
+ /**
1903
+ * Page number.
1904
+ * @type {number || null}
1905
+ */
1906
+ this.PageNum = null;
1907
+
1908
+ /**
1909
+ * Number of pages.
1910
+ * @type {number || null}
1911
+ */
1912
+ this.PageSize = null;
1913
+
1914
+ /**
1915
+ * Project id.
1916
+ * @type {string || null}
1917
+ */
1918
+ this.ProjectId = null;
1919
+
1920
+ /**
1921
+ * Device id.
1922
+ * @type {string || null}
1923
+ */
1924
+ this.DeviceId = null;
1925
+
1926
+ }
1927
+
1928
+ /**
1929
+ * @private
1930
+ */
1931
+ deserialize(params) {
1932
+ if (!params) {
1933
+ return;
1934
+ }
1935
+ this.PageNum = 'PageNum' in params ? params.PageNum : null;
1936
+ this.PageSize = 'PageSize' in params ? params.PageSize : null;
1937
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
1938
+ this.DeviceId = 'DeviceId' in params ? params.DeviceId : null;
1939
+
1940
+ }
1941
+ }
1942
+
1943
+ /**
1944
+ * CreateProject response structure.
1945
+ * @class
1946
+ */
1947
+ class CreateProjectResponse extends AbstractModel {
1948
+ constructor(){
1949
+ super();
1950
+
1951
+ /**
1952
+ * Project id, length is 16 characters.
1953
+ * @type {string || null}
1954
+ */
1955
+ this.ProjectId = null;
1956
+
1957
+ /**
1958
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1959
+ * @type {string || null}
1960
+ */
1961
+ this.RequestId = null;
1962
+
1963
+ }
1964
+
1965
+ /**
1966
+ * @private
1967
+ */
1968
+ deserialize(params) {
1969
+ if (!params) {
1970
+ return;
1971
+ }
1972
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
1973
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1974
+
1975
+ }
1976
+ }
1977
+
1978
+ /**
1979
+ * Session statistics data in a unit time interval
1980
+ * @class
1981
+ */
1982
+ class SessionIntervalStatistic extends AbstractModel {
1983
+ constructor(){
1984
+ super();
1985
+
1986
+ /**
1987
+ * Number of active on-site devices.
1988
+ * @type {number || null}
1989
+ */
1990
+ this.ActiveFieldDeviceNum = null;
1991
+
1992
+ /**
1993
+ * Number of active remote devices.
1994
+ * @type {number || null}
1995
+ */
1996
+ this.ActiveRemoteDeviceNum = null;
1997
+
1998
+ /**
1999
+ * Number of sessions.
2000
+ * @type {number || null}
2001
+ */
2002
+ this.SessionNum = null;
2003
+
2004
+ /**
2005
+ * Session age, unit: minutes.
2006
+ * @type {number || null}
2007
+ */
2008
+ this.TotalDuration = null;
2009
+
2010
+ /**
2011
+ * Timestamp in seconds.
2012
+ * @type {number || null}
2013
+ */
2014
+ this.StartTime = null;
2015
+
2016
+ /**
2017
+ * Timestamp in seconds.
2018
+ * @type {number || null}
2019
+ */
2020
+ this.EndTime = null;
2021
+
2022
+ /**
2023
+ * Proportion of excellent sessions, unit: %.
2024
+ * @type {number || null}
2025
+ */
2026
+ this.NotBadSessionRatio = null;
2027
+
2028
+ }
2029
+
2030
+ /**
2031
+ * @private
2032
+ */
2033
+ deserialize(params) {
2034
+ if (!params) {
2035
+ return;
2036
+ }
2037
+ this.ActiveFieldDeviceNum = 'ActiveFieldDeviceNum' in params ? params.ActiveFieldDeviceNum : null;
2038
+ this.ActiveRemoteDeviceNum = 'ActiveRemoteDeviceNum' in params ? params.ActiveRemoteDeviceNum : null;
2039
+ this.SessionNum = 'SessionNum' in params ? params.SessionNum : null;
2040
+ this.TotalDuration = 'TotalDuration' in params ? params.TotalDuration : null;
2041
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
2042
+ this.EndTime = 'EndTime' in params ? params.EndTime : null;
2043
+ this.NotBadSessionRatio = 'NotBadSessionRatio' in params ? params.NotBadSessionRatio : null;
2044
+
2045
+ }
2046
+ }
2047
+
2048
+ /**
2049
+ * GetDeviceLicense request structure.
2050
+ * @class
2051
+ */
2052
+ class GetDeviceLicenseRequest extends AbstractModel {
2053
+ constructor(){
2054
+ super();
2055
+
2056
+ /**
2057
+ * Project id to which the target device belongs.
2058
+ * @type {string || null}
2059
+ */
2060
+ this.ProjectId = null;
2061
+
2062
+ /**
2063
+ * Target device id.
2064
+ * @type {string || null}
2065
+ */
2066
+ this.DeviceId = null;
2067
+
2068
+ }
2069
+
2070
+ /**
2071
+ * @private
2072
+ */
2073
+ deserialize(params) {
2074
+ if (!params) {
2075
+ return;
2076
+ }
2077
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
2078
+ this.DeviceId = 'DeviceId' in params ? params.DeviceId : null;
2079
+
2080
+ }
2081
+ }
2082
+
2083
+ /**
2084
+ * CreateProject request structure.
2085
+ * @class
2086
+ */
2087
+ class CreateProjectRequest extends AbstractModel {
2088
+ constructor(){
2089
+ super();
2090
+
2091
+ /**
2092
+ * Project name, up to 24 characters.
2093
+ * @type {string || null}
2094
+ */
2095
+ this.ProjectName = null;
2096
+
2097
+ /**
2098
+ * Project description, up to 120 characters, default is empty if not filled.
2099
+ * @type {string || null}
2100
+ */
2101
+ this.ProjectDescription = null;
2102
+
2103
+ /**
2104
+ * Permission mode, black for blocklist, white for allowlist. defaults to black if not specified.
2105
+ * @type {string || null}
2106
+ */
2107
+ this.PolicyMode = null;
2108
+
2109
+ }
2110
+
2111
+ /**
2112
+ * @private
2113
+ */
2114
+ deserialize(params) {
2115
+ if (!params) {
2116
+ return;
2117
+ }
2118
+ this.ProjectName = 'ProjectName' in params ? params.ProjectName : null;
2119
+ this.ProjectDescription = 'ProjectDescription' in params ? params.ProjectDescription : null;
2120
+ this.PolicyMode = 'PolicyMode' in params ? params.PolicyMode : null;
2121
+
2122
+ }
2123
+ }
2124
+
2125
+ module.exports = {
2126
+ DeleteProjectRequest: DeleteProjectRequest,
2127
+ License: License,
2128
+ ModifyDeviceResponse: ModifyDeviceResponse,
2129
+ GetLicensesRequest: GetLicensesRequest,
2130
+ BatchDeleteDevicesRequest: BatchDeleteDevicesRequest,
2131
+ SessionInfo: SessionInfo,
2132
+ DescribeDeviceInfoRequest: DescribeDeviceInfoRequest,
2133
+ DescribeSessionStatisticsByIntervalResponse: DescribeSessionStatisticsByIntervalResponse,
2134
+ DescribeRecentSessionListRequest: DescribeRecentSessionListRequest,
2135
+ RecentSessionInfo: RecentSessionInfo,
2136
+ DescribeProjectInfoRequest: DescribeProjectInfoRequest,
2137
+ ModifyPolicyRequest: ModifyPolicyRequest,
2138
+ DescribeDeviceInfoResponse: DescribeDeviceInfoResponse,
2139
+ GetLicenseStatRequest: GetLicenseStatRequest,
2140
+ DescribeProjectListResponse: DescribeProjectListResponse,
2141
+ ModifyProjectResponse: ModifyProjectResponse,
2142
+ BatchDeletePolicyResponse: BatchDeletePolicyResponse,
2143
+ GetLicenseStatResponse: GetLicenseStatResponse,
2144
+ ModifyPolicyResponse: ModifyPolicyResponse,
2145
+ Device: Device,
2146
+ DescribeSessionStatisticsRequest: DescribeSessionStatisticsRequest,
2147
+ BatchDeleteDevicesResponse: BatchDeleteDevicesResponse,
2148
+ ModifyProjectRequest: ModifyProjectRequest,
2149
+ DescribeRecentSessionListResponse: DescribeRecentSessionListResponse,
2150
+ ModifyDeviceRequest: ModifyDeviceRequest,
2151
+ DescribeProjectListRequest: DescribeProjectListRequest,
2152
+ ProjectInfo: ProjectInfo,
2153
+ BatchDeletePolicyRequest: BatchDeletePolicyRequest,
2154
+ DescribeDeviceSessionListResponse: DescribeDeviceSessionListResponse,
2155
+ DescribeProjectInfoResponse: DescribeProjectInfoResponse,
2156
+ DeleteProjectResponse: DeleteProjectResponse,
2157
+ GetDeviceLicenseResponse: GetDeviceLicenseResponse,
2158
+ CreateDeviceResponse: CreateDeviceResponse,
2159
+ DescribeSessionStatisticsByIntervalRequest: DescribeSessionStatisticsByIntervalRequest,
2160
+ CreateDeviceRequest: CreateDeviceRequest,
2161
+ DescribeSessionStatisticsResponse: DescribeSessionStatisticsResponse,
2162
+ GetDevicesResponse: GetDevicesResponse,
2163
+ GetLicensesResponse: GetLicensesResponse,
2164
+ DescribeDeviceSessionListRequest: DescribeDeviceSessionListRequest,
2165
+ GetDevicesRequest: GetDevicesRequest,
2166
+ CreateProjectResponse: CreateProjectResponse,
2167
+ SessionIntervalStatistic: SessionIntervalStatistic,
2168
+ GetDeviceLicenseRequest: GetDeviceLicenseRequest,
2169
+ CreateProjectRequest: CreateProjectRequest,
2170
+
2171
+ }