tencentcloud-sdk-nodejs-intl-en 3.0.1222 → 3.0.1224

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.1222",
3
+ "version": "3.0.1224",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.1222";
1
+ const sdkVersion = "3.0.1224";
2
2
  module.exports = sdkVersion
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ v20230202: require("./v20230202"),
3
+ };
@@ -0,0 +1,74 @@
1
+ /*
2
+ * Copyright (c) 2018 Tencent. 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 models = require("./models");
18
+ const AbstractClient = require('../../common/abstract_client')
19
+ const Tag = models.Tag;
20
+ const Network = models.Network;
21
+ const DescribeClustersRequest = models.DescribeClustersRequest;
22
+ const Database = models.Database;
23
+ const DescribeDatabasesResponse = models.DescribeDatabasesResponse;
24
+ const Period = models.Period;
25
+ const DescribeDatabasesRequest = models.DescribeDatabasesRequest;
26
+ const Spec = models.Spec;
27
+ const Filter = models.Filter;
28
+ const Cluster = models.Cluster;
29
+ const DescribeClustersResponse = models.DescribeClustersResponse;
30
+ const Order = models.Order;
31
+ const Tenant = models.Tenant;
32
+
33
+
34
+ /**
35
+ * ctsdb client
36
+ * @class
37
+ */
38
+ class CtsdbClient extends AbstractClient {
39
+
40
+ constructor(credential, region, profile) {
41
+ super("ctsdb.intl.tencentcloudapi.com", "2023-02-02", credential, region, profile);
42
+ }
43
+
44
+ /**
45
+ * This API is used to query the instance list and details.
46
+ * @param {DescribeClustersRequest} req
47
+ * @param {function(string, DescribeClustersResponse):void} cb
48
+ * @public
49
+ */
50
+ DescribeClusters(req, cb) {
51
+ let resp = new DescribeClustersResponse();
52
+ this.request("DescribeClusters", req, resp, cb);
53
+ }
54
+
55
+ /**
56
+ * This API is used to query the database list.
57
+ ```
58
+ "Database":{
59
+ "ClusterID":"ctsdbi-rebg0ghl",
60
+ "Name":"" //This API is used to query all databases under the instance if the parameter is not specified.
61
+ }
62
+ ```
63
+ * @param {DescribeDatabasesRequest} req
64
+ * @param {function(string, DescribeDatabasesResponse):void} cb
65
+ * @public
66
+ */
67
+ DescribeDatabases(req, cb) {
68
+ let resp = new DescribeDatabasesResponse();
69
+ this.request("DescribeDatabases", req, resp, cb);
70
+ }
71
+
72
+
73
+ }
74
+ module.exports = CtsdbClient;
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ Client: require("./ctsdb_client"),
3
+ Models: require("./models"),
4
+ };
@@ -0,0 +1,809 @@
1
+ /*
2
+ * Copyright (c) 2018 Tencent. 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
+ * Tag.
21
+ * @class
22
+ */
23
+ class Tag extends AbstractModel {
24
+ constructor(){
25
+ super();
26
+
27
+ /**
28
+ * Key.
29
+ Note: This field may return null, indicating that no valid values can be obtained.
30
+ * @type {string || null}
31
+ */
32
+ this.Key = null;
33
+
34
+ /**
35
+ * Value.
36
+ Note: This field may return null, indicating that no valid values can be obtained.
37
+ * @type {string || null}
38
+ */
39
+ this.Value = null;
40
+
41
+ }
42
+
43
+ /**
44
+ * @private
45
+ */
46
+ deserialize(params) {
47
+ if (!params) {
48
+ return;
49
+ }
50
+ this.Key = 'Key' in params ? params.Key : null;
51
+ this.Value = 'Value' in params ? params.Value : null;
52
+
53
+ }
54
+ }
55
+
56
+ /**
57
+ * Instance network information (influxdb).
58
+ * @class
59
+ */
60
+ class Network extends AbstractModel {
61
+ constructor(){
62
+ super();
63
+
64
+ /**
65
+ * vpc id
66
+ Note: This field may return null, indicating that no valid values can be obtained.
67
+ * @type {string || null}
68
+ */
69
+ this.VpcId = null;
70
+
71
+ /**
72
+ * vpc subnet id
73
+ Note: This field may return null, indicating that no valid values can be obtained.
74
+ * @type {string || null}
75
+ */
76
+ this.SubnetId = null;
77
+
78
+ /**
79
+ * VPC IP address.
80
+ Note: This field may return null, indicating that no valid values can be obtained.
81
+ * @type {string || null}
82
+ */
83
+ this.VIP = null;
84
+
85
+ /**
86
+ * VPC port address.
87
+ Note: This field may return null, indicating that no valid values can be obtained.
88
+ * @type {number || null}
89
+ */
90
+ this.Port = null;
91
+
92
+ }
93
+
94
+ /**
95
+ * @private
96
+ */
97
+ deserialize(params) {
98
+ if (!params) {
99
+ return;
100
+ }
101
+ this.VpcId = 'VpcId' in params ? params.VpcId : null;
102
+ this.SubnetId = 'SubnetId' in params ? params.SubnetId : null;
103
+ this.VIP = 'VIP' in params ? params.VIP : null;
104
+ this.Port = 'Port' in params ? params.Port : null;
105
+
106
+ }
107
+ }
108
+
109
+ /**
110
+ * DescribeClusters request structure.
111
+ * @class
112
+ */
113
+ class DescribeClustersRequest extends AbstractModel {
114
+ constructor(){
115
+ super();
116
+
117
+ /**
118
+ * Current page number.
119
+ * @type {number || null}
120
+ */
121
+ this.PageNumber = null;
122
+
123
+ /**
124
+ * Page size.
125
+ * @type {number || null}
126
+ */
127
+ this.PageSize = null;
128
+
129
+ /**
130
+ * Query parameter: Filtering and querying by instance ID (cluster_id) and instance name (name) are supported.
131
+ * @type {Array.<Filter> || null}
132
+ */
133
+ this.Filters = null;
134
+
135
+ /**
136
+ * Sorting parameter: Sorting by the creation time field (created_at) is supported. The value of Type can be set to DESC (descending order) or ASC (ascending order).
137
+ * @type {Array.<Order> || null}
138
+ */
139
+ this.Orders = null;
140
+
141
+ }
142
+
143
+ /**
144
+ * @private
145
+ */
146
+ deserialize(params) {
147
+ if (!params) {
148
+ return;
149
+ }
150
+ this.PageNumber = 'PageNumber' in params ? params.PageNumber : null;
151
+ this.PageSize = 'PageSize' in params ? params.PageSize : null;
152
+
153
+ if (params.Filters) {
154
+ this.Filters = new Array();
155
+ for (let z in params.Filters) {
156
+ let obj = new Filter();
157
+ obj.deserialize(params.Filters[z]);
158
+ this.Filters.push(obj);
159
+ }
160
+ }
161
+
162
+ if (params.Orders) {
163
+ this.Orders = new Array();
164
+ for (let z in params.Orders) {
165
+ let obj = new Order();
166
+ obj.deserialize(params.Orders[z]);
167
+ this.Orders.push(obj);
168
+ }
169
+ }
170
+
171
+ }
172
+ }
173
+
174
+ /**
175
+ * Database-related information.
176
+ * @class
177
+ */
178
+ class Database extends AbstractModel {
179
+ constructor(){
180
+ super();
181
+
182
+ /**
183
+ * Instance ID.
184
+ Note: This field may return null, indicating that no valid values can be obtained.
185
+ * @type {string || null}
186
+ */
187
+ this.ClusterID = null;
188
+
189
+ /**
190
+ * Database name.Note: This field may return null, indicating that no valid values can be obtained.
191
+ * @type {string || null}
192
+ */
193
+ this.Name = null;
194
+
195
+ /**
196
+ * Cold storage time (days).
197
+ Note: This field may return null, indicating that no valid values can be obtained.
198
+ * @type {number || null}
199
+ */
200
+ this.CoolDownInDays = null;
201
+
202
+ /**
203
+ * Data retention time (days).
204
+ Note: This field may return null, indicating that no valid values can be obtained.
205
+ * @type {number || null}
206
+ */
207
+ this.RetentionInDays = null;
208
+
209
+ /**
210
+ * Remarks.Note: This field may return null, indicating that no valid values can be obtained.
211
+ * @type {string || null}
212
+ */
213
+ this.Remark = null;
214
+
215
+ /**
216
+ * Status. 0: initializing resources; 1: creating resources; 2: normal status; 3: deleting resources; 4: deleted resources; 5: disabling resources; 6: disabled resources; 7: abnormal resources, and manual operation is required.
217
+ Note: This field may return null, indicating that no valid values can be obtained.
218
+ * @type {number || null}
219
+ */
220
+ this.Status = null;
221
+
222
+ /**
223
+ * Creation time.Note: This field may return null, indicating that no valid values can be obtained.
224
+ * @type {string || null}
225
+ */
226
+ this.CreatedAt = null;
227
+
228
+ /**
229
+ * Last modification time.
230
+ Note: This field may return null, indicating that no valid values can be obtained.
231
+ * @type {string || null}
232
+ */
233
+ this.UpdatedAt = null;
234
+
235
+ }
236
+
237
+ /**
238
+ * @private
239
+ */
240
+ deserialize(params) {
241
+ if (!params) {
242
+ return;
243
+ }
244
+ this.ClusterID = 'ClusterID' in params ? params.ClusterID : null;
245
+ this.Name = 'Name' in params ? params.Name : null;
246
+ this.CoolDownInDays = 'CoolDownInDays' in params ? params.CoolDownInDays : null;
247
+ this.RetentionInDays = 'RetentionInDays' in params ? params.RetentionInDays : null;
248
+ this.Remark = 'Remark' in params ? params.Remark : null;
249
+ this.Status = 'Status' in params ? params.Status : null;
250
+ this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
251
+ this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null;
252
+
253
+ }
254
+ }
255
+
256
+ /**
257
+ * DescribeDatabases response structure.
258
+ * @class
259
+ */
260
+ class DescribeDatabasesResponse extends AbstractModel {
261
+ constructor(){
262
+ super();
263
+
264
+ /**
265
+ * Database list.
266
+ * @type {Array.<Database> || null}
267
+ */
268
+ this.Databases = null;
269
+
270
+ /**
271
+ * Quantity.
272
+ * @type {number || null}
273
+ */
274
+ this.TotalCount = null;
275
+
276
+ /**
277
+ * 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.
278
+ * @type {string || null}
279
+ */
280
+ this.RequestId = null;
281
+
282
+ }
283
+
284
+ /**
285
+ * @private
286
+ */
287
+ deserialize(params) {
288
+ if (!params) {
289
+ return;
290
+ }
291
+
292
+ if (params.Databases) {
293
+ this.Databases = new Array();
294
+ for (let z in params.Databases) {
295
+ let obj = new Database();
296
+ obj.deserialize(params.Databases[z]);
297
+ this.Databases.push(obj);
298
+ }
299
+ }
300
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
301
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
302
+
303
+ }
304
+ }
305
+
306
+ /**
307
+ * Validity period.
308
+ * @class
309
+ */
310
+ class Period extends AbstractModel {
311
+ constructor(){
312
+ super();
313
+
314
+ /**
315
+ * Start time.
316
+
317
+ Note: This field may return null, indicating that no valid values can be obtained.
318
+ * @type {string || null}
319
+ */
320
+ this.StartTime = null;
321
+
322
+ /**
323
+ * End time.
324
+
325
+ Note: This field may return null, indicating that no valid values can be obtained.
326
+ * @type {string || null}
327
+ */
328
+ this.EndTime = null;
329
+
330
+ }
331
+
332
+ /**
333
+ * @private
334
+ */
335
+ deserialize(params) {
336
+ if (!params) {
337
+ return;
338
+ }
339
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
340
+ this.EndTime = 'EndTime' in params ? params.EndTime : null;
341
+
342
+ }
343
+ }
344
+
345
+ /**
346
+ * DescribeDatabases request structure.
347
+ * @class
348
+ */
349
+ class DescribeDatabasesRequest extends AbstractModel {
350
+ constructor(){
351
+ super();
352
+
353
+ /**
354
+ * Database parameter.
355
+ * @type {Database || null}
356
+ */
357
+ this.Database = null;
358
+
359
+ /**
360
+ * Pagination size.
361
+ * @type {number || null}
362
+ */
363
+ this.PageSize = null;
364
+
365
+ /**
366
+ * Pagination page.
367
+ * @type {number || null}
368
+ */
369
+ this.PageNumber = null;
370
+
371
+ }
372
+
373
+ /**
374
+ * @private
375
+ */
376
+ deserialize(params) {
377
+ if (!params) {
378
+ return;
379
+ }
380
+
381
+ if (params.Database) {
382
+ let obj = new Database();
383
+ obj.deserialize(params.Database)
384
+ this.Database = obj;
385
+ }
386
+ this.PageSize = 'PageSize' in params ? params.PageSize : null;
387
+ this.PageNumber = 'PageNumber' in params ? params.PageNumber : null;
388
+
389
+ }
390
+ }
391
+
392
+ /**
393
+ * Instance specification information (influxdb).
394
+ * @class
395
+ */
396
+ class Spec extends AbstractModel {
397
+ constructor(){
398
+ super();
399
+
400
+ /**
401
+ * 1: yearly/monthly subscription; 2: bill by hour.
402
+ Note: This field may return null, indicating that no valid values can be obtained.
403
+ * @type {number || null}
404
+ */
405
+ this.PayMode = null;
406
+
407
+ /**
408
+ * Request unit. 0 indicates following the resource configuration.
409
+ Note: This field may return null, indicating that no valid values can be obtained.
410
+ * @type {number || null}
411
+ */
412
+ this.RequestUnit = null;
413
+
414
+ /**
415
+ * Maximum number of CPU cores.
416
+ Note: This field may return null, indicating that no valid values can be obtained.
417
+ * @type {number || null}
418
+ */
419
+ this.CpuLimit = null;
420
+
421
+ /**
422
+ * Maximum memory size (Gi).
423
+ Note: This field may return null, indicating that no valid values can be obtained.
424
+ * @type {number || null}
425
+ */
426
+ this.MemoryLimit = null;
427
+
428
+ /**
429
+ * Maximum number of disks (Gi).
430
+ Note: This field may return null, indicating that no valid values can be obtained.
431
+ * @type {number || null}
432
+ */
433
+ this.DiskLimit = null;
434
+
435
+ /**
436
+ * Number of business shards.
437
+ Note: This field may return null, indicating that no valid values can be obtained.
438
+ * @type {number || null}
439
+ */
440
+ this.Shards = null;
441
+
442
+ /**
443
+ * Number of business nodes.
444
+ Note: This field may return null, indicating that no valid values can be obtained.
445
+ * @type {number || null}
446
+ */
447
+ this.Replicas = null;
448
+
449
+ }
450
+
451
+ /**
452
+ * @private
453
+ */
454
+ deserialize(params) {
455
+ if (!params) {
456
+ return;
457
+ }
458
+ this.PayMode = 'PayMode' in params ? params.PayMode : null;
459
+ this.RequestUnit = 'RequestUnit' in params ? params.RequestUnit : null;
460
+ this.CpuLimit = 'CpuLimit' in params ? params.CpuLimit : null;
461
+ this.MemoryLimit = 'MemoryLimit' in params ? params.MemoryLimit : null;
462
+ this.DiskLimit = 'DiskLimit' in params ? params.DiskLimit : null;
463
+ this.Shards = 'Shards' in params ? params.Shards : null;
464
+ this.Replicas = 'Replicas' in params ? params.Replicas : null;
465
+
466
+ }
467
+ }
468
+
469
+ /**
470
+ * Query filter.
471
+ * @class
472
+ */
473
+ class Filter extends AbstractModel {
474
+ constructor(){
475
+ super();
476
+
477
+ /**
478
+ * Filter parameter.
479
+ * @type {string || null}
480
+ */
481
+ this.Name = null;
482
+
483
+ /**
484
+ * Filter expression.
485
+ * @type {string || null}
486
+ */
487
+ this.Op = null;
488
+
489
+ /**
490
+ * Value involved in filtering.
491
+ * @type {Array.<string> || null}
492
+ */
493
+ this.Values = null;
494
+
495
+ }
496
+
497
+ /**
498
+ * @private
499
+ */
500
+ deserialize(params) {
501
+ if (!params) {
502
+ return;
503
+ }
504
+ this.Name = 'Name' in params ? params.Name : null;
505
+ this.Op = 'Op' in params ? params.Op : null;
506
+ this.Values = 'Values' in params ? params.Values : null;
507
+
508
+ }
509
+ }
510
+
511
+ /**
512
+ * Instance-related information.
513
+ * @class
514
+ */
515
+ class Cluster extends AbstractModel {
516
+ constructor(){
517
+ super();
518
+
519
+ /**
520
+ * User APP ID.
521
+
522
+ Note: This field may return null, indicating that no valid values can be obtained.
523
+ * @type {number || null}
524
+ */
525
+ this.AppID = null;
526
+
527
+ /**
528
+ * Instance ID.
529
+ Note: This field may return null, indicating that no valid values can be obtained.
530
+ * @type {string || null}
531
+ */
532
+ this.ClusterID = null;
533
+
534
+ /**
535
+ * Account ID.Note: This field may return null, indicating that no valid values can be obtained.
536
+ * @type {string || null}
537
+ */
538
+ this.AccountID = null;
539
+
540
+ /**
541
+ * Customizes the instance name.
542
+ Note: This field may return null, indicating that no valid values can be obtained.
543
+ * @type {string || null}
544
+ */
545
+ this.Name = null;
546
+
547
+ /**
548
+ * Region.Note: This field may return null, indicating that no valid values can be obtained.
549
+ * @type {string || null}
550
+ */
551
+ this.Region = null;
552
+
553
+ /**
554
+ * Availability zone.Note: This field may return null, indicating that no valid values can be obtained.
555
+ * @type {string || null}
556
+ */
557
+ this.Zones = null;
558
+
559
+ /**
560
+ * Network information.
561
+ Note: This field may return null, indicating that no valid values can be obtained.
562
+ * @type {Array.<Network> || null}
563
+ */
564
+ this.Networks = null;
565
+
566
+ /**
567
+ * Instance specification.
568
+ Note: This field may return null, indicating that no valid values can be obtained.
569
+ * @type {Spec || null}
570
+ */
571
+ this.Spec = null;
572
+
573
+ /**
574
+ * Instance status. 0: running; 1: creating; 16: adjusting configuration; 17: isolating; 18: to be terminated; 19: recovering; 20: shutting down; 21: terminating; 22: terminated.
575
+ Note: This field may return null, indicating that no valid values can be obtained.
576
+ * @type {number || null}
577
+ */
578
+ this.Status = null;
579
+
580
+ /**
581
+ * Instance validity period.
582
+ Note: This field may return null, indicating that no valid values can be obtained.
583
+ * @type {Period || null}
584
+ */
585
+ this.Period = null;
586
+
587
+ /**
588
+ * Creation time.Note: This field may return null, indicating that no valid values can be obtained.
589
+ * @type {string || null}
590
+ */
591
+ this.CreatedAt = null;
592
+
593
+ /**
594
+ * Last modification time.
595
+ Note: This field may return null, indicating that no valid values can be obtained.
596
+ * @type {string || null}
597
+ */
598
+ this.UpdatedAt = null;
599
+
600
+ /**
601
+ * Internal features of the product.
602
+ Note: This field may return null, indicating that no valid values can be obtained.
603
+ * @type {Tenant || null}
604
+ */
605
+ this.Tenant = null;
606
+
607
+ /**
608
+ * Tag.
609
+ Note: This field may return null, indicating that no valid values can be obtained.
610
+ * @type {Array.<Tag> || null}
611
+ */
612
+ this.Tags = null;
613
+
614
+ /**
615
+ * Security group information.Note: This field may return null, indicating that no valid values can be obtained.
616
+ * @type {Array.<string> || null}
617
+ */
618
+ this.Security = null;
619
+
620
+ }
621
+
622
+ /**
623
+ * @private
624
+ */
625
+ deserialize(params) {
626
+ if (!params) {
627
+ return;
628
+ }
629
+ this.AppID = 'AppID' in params ? params.AppID : null;
630
+ this.ClusterID = 'ClusterID' in params ? params.ClusterID : null;
631
+ this.AccountID = 'AccountID' in params ? params.AccountID : null;
632
+ this.Name = 'Name' in params ? params.Name : null;
633
+ this.Region = 'Region' in params ? params.Region : null;
634
+ this.Zones = 'Zones' in params ? params.Zones : null;
635
+
636
+ if (params.Networks) {
637
+ this.Networks = new Array();
638
+ for (let z in params.Networks) {
639
+ let obj = new Network();
640
+ obj.deserialize(params.Networks[z]);
641
+ this.Networks.push(obj);
642
+ }
643
+ }
644
+
645
+ if (params.Spec) {
646
+ let obj = new Spec();
647
+ obj.deserialize(params.Spec)
648
+ this.Spec = obj;
649
+ }
650
+ this.Status = 'Status' in params ? params.Status : null;
651
+
652
+ if (params.Period) {
653
+ let obj = new Period();
654
+ obj.deserialize(params.Period)
655
+ this.Period = obj;
656
+ }
657
+ this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
658
+ this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null;
659
+
660
+ if (params.Tenant) {
661
+ let obj = new Tenant();
662
+ obj.deserialize(params.Tenant)
663
+ this.Tenant = obj;
664
+ }
665
+
666
+ if (params.Tags) {
667
+ this.Tags = new Array();
668
+ for (let z in params.Tags) {
669
+ let obj = new Tag();
670
+ obj.deserialize(params.Tags[z]);
671
+ this.Tags.push(obj);
672
+ }
673
+ }
674
+ this.Security = 'Security' in params ? params.Security : null;
675
+
676
+ }
677
+ }
678
+
679
+ /**
680
+ * DescribeClusters response structure.
681
+ * @class
682
+ */
683
+ class DescribeClustersResponse extends AbstractModel {
684
+ constructor(){
685
+ super();
686
+
687
+ /**
688
+ * Total number of records under current conditions.
689
+ Note: This field may return null, indicating that no valid values can be obtained.
690
+ * @type {number || null}
691
+ */
692
+ this.TotalCount = null;
693
+
694
+ /**
695
+ * List of instances meeting the conditions.
696
+ Note: This field may return null, indicating that no valid values can be obtained.
697
+ * @type {Array.<Cluster> || null}
698
+ */
699
+ this.Clusters = null;
700
+
701
+ /**
702
+ * 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.
703
+ * @type {string || null}
704
+ */
705
+ this.RequestId = null;
706
+
707
+ }
708
+
709
+ /**
710
+ * @private
711
+ */
712
+ deserialize(params) {
713
+ if (!params) {
714
+ return;
715
+ }
716
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
717
+
718
+ if (params.Clusters) {
719
+ this.Clusters = new Array();
720
+ for (let z in params.Clusters) {
721
+ let obj = new Cluster();
722
+ obj.deserialize(params.Clusters[z]);
723
+ this.Clusters.push(obj);
724
+ }
725
+ }
726
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
727
+
728
+ }
729
+ }
730
+
731
+ /**
732
+ * Sorting parameter, which is used for sorting the query results.
733
+ * @class
734
+ */
735
+ class Order extends AbstractModel {
736
+ constructor(){
737
+ super();
738
+
739
+ /**
740
+ * Sorting field.
741
+ * @type {string || null}
742
+ */
743
+ this.Name = null;
744
+
745
+ /**
746
+ * Sorting method.
747
+ * @type {string || null}
748
+ */
749
+ this.Type = null;
750
+
751
+ }
752
+
753
+ /**
754
+ * @private
755
+ */
756
+ deserialize(params) {
757
+ if (!params) {
758
+ return;
759
+ }
760
+ this.Name = 'Name' in params ? params.Name : null;
761
+ this.Type = 'Type' in params ? params.Type : null;
762
+
763
+ }
764
+ }
765
+
766
+ /**
767
+ * Internal features of the product.
768
+ * @class
769
+ */
770
+ class Tenant extends AbstractModel {
771
+ constructor(){
772
+ super();
773
+
774
+ /**
775
+ * Whether the password is encrypted.
776
+ * @type {boolean || null}
777
+ */
778
+ this.IsPasswordEncrypted = null;
779
+
780
+ }
781
+
782
+ /**
783
+ * @private
784
+ */
785
+ deserialize(params) {
786
+ if (!params) {
787
+ return;
788
+ }
789
+ this.IsPasswordEncrypted = 'IsPasswordEncrypted' in params ? params.IsPasswordEncrypted : null;
790
+
791
+ }
792
+ }
793
+
794
+ module.exports = {
795
+ Tag: Tag,
796
+ Network: Network,
797
+ DescribeClustersRequest: DescribeClustersRequest,
798
+ Database: Database,
799
+ DescribeDatabasesResponse: DescribeDatabasesResponse,
800
+ Period: Period,
801
+ DescribeDatabasesRequest: DescribeDatabasesRequest,
802
+ Spec: Spec,
803
+ Filter: Filter,
804
+ Cluster: Cluster,
805
+ DescribeClustersResponse: DescribeClustersResponse,
806
+ Order: Order,
807
+ Tenant: Tenant,
808
+
809
+ }
@@ -390,8 +390,7 @@ The face quality information is mainly used to evaluate the quality of the input
390
390
 
391
391
  4. Face fusion: this is to ensure the quality of the uploaded face images to improve the fusion effect.
392
392
 
393
- >
394
- - Please use the signature algorithm v3 to calculate the signature in the common parameters, that is, set the `SignatureMethod` parameter to `TC3-HMAC-SHA256`.
393
+ >- Please use the signature algorithm v3 to calculate the signature in the common parameters, that is, set the `SignatureMethod` parameter to `TC3-HMAC-SHA256`.
395
394
  * @param {DetectFaceRequest} req
396
395
  * @param {function(string, DetectFaceResponse):void} cb
397
396
  * @public
@@ -33,6 +33,7 @@ module.exports = {
33
33
  config: require("./config"),
34
34
  controlcenter: require("./controlcenter"),
35
35
  csip: require("./csip"),
36
+ ctsdb: require("./ctsdb"),
36
37
  cvm: require("./cvm"),
37
38
  cwp: require("./cwp"),
38
39
  cynosdb: require("./cynosdb"),
@@ -1443,6 +1443,18 @@ The parameters can only contain digits, letters, underscores (_), and hyphens (-
1443
1443
  */
1444
1444
  this.CustomUrlParam = null;
1445
1445
 
1446
+ /**
1447
+ * Enable DRM. This is only effective for CMAF protocol.
1448
+ * @type {boolean || null}
1449
+ */
1450
+ this.DRMEnabled = null;
1451
+
1452
+ /**
1453
+ * DRM configuration information
1454
+ * @type {DRMInfo || null}
1455
+ */
1456
+ this.DRMInfo = null;
1457
+
1446
1458
  }
1447
1459
 
1448
1460
  /**
@@ -1473,6 +1485,13 @@ The parameters can only contain digits, letters, underscores (_), and hyphens (-
1473
1485
  }
1474
1486
  this.CustomUrlParamIndex = 'CustomUrlParamIndex' in params ? params.CustomUrlParamIndex : null;
1475
1487
  this.CustomUrlParam = 'CustomUrlParam' in params ? params.CustomUrlParam : null;
1488
+ this.DRMEnabled = 'DRMEnabled' in params ? params.DRMEnabled : null;
1489
+
1490
+ if (params.DRMInfo) {
1491
+ let obj = new DRMInfo();
1492
+ obj.deserialize(params.DRMInfo)
1493
+ this.DRMInfo = obj;
1494
+ }
1476
1495
 
1477
1496
  }
1478
1497
  }
@@ -4896,6 +4915,18 @@ class CreateStreamPackageChannelEndpointRequest extends AbstractModel {
4896
4915
  */
4897
4916
  this.TimeShiftDuration = null;
4898
4917
 
4918
+ /**
4919
+ * Enable DRM. This is only effective for CMAF protocol.
4920
+ * @type {boolean || null}
4921
+ */
4922
+ this.DRMEnabled = null;
4923
+
4924
+ /**
4925
+ * DRM configuration information.
4926
+ * @type {DRMInfo || null}
4927
+ */
4928
+ this.DRMInfo = null;
4929
+
4899
4930
  }
4900
4931
 
4901
4932
  /**
@@ -4917,6 +4948,13 @@ class CreateStreamPackageChannelEndpointRequest extends AbstractModel {
4917
4948
  this.Manifest = 'Manifest' in params ? params.Manifest : null;
4918
4949
  this.TimeShiftEnable = 'TimeShiftEnable' in params ? params.TimeShiftEnable : null;
4919
4950
  this.TimeShiftDuration = 'TimeShiftDuration' in params ? params.TimeShiftDuration : null;
4951
+ this.DRMEnabled = 'DRMEnabled' in params ? params.DRMEnabled : null;
4952
+
4953
+ if (params.DRMInfo) {
4954
+ let obj = new DRMInfo();
4955
+ obj.deserialize(params.DRMInfo)
4956
+ this.DRMInfo = obj;
4957
+ }
4920
4958
 
4921
4959
  }
4922
4960
  }