tencentcloud-sdk-nodejs-intl-en 3.0.1426 → 3.0.1428

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.
@@ -16,6 +16,56 @@
16
16
  */
17
17
  const AbstractModel = require("../../common/abstract_model");
18
18
 
19
+ /**
20
+ * DescribeTokenPlanList response structure.
21
+ * @class
22
+ */
23
+ class DescribeTokenPlanListResponse extends AbstractModel {
24
+ constructor(){
25
+ super();
26
+
27
+ /**
28
+ * List of package options.
29
+ * @type {Array.<TokenPlanListItem> || null}
30
+ */
31
+ this.TokenPlanSet = null;
32
+
33
+ /**
34
+ * Total number of packages.
35
+ * @type {number || null}
36
+ */
37
+ this.TotalCount = null;
38
+
39
+ /**
40
+ * 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.
41
+ * @type {string || null}
42
+ */
43
+ this.RequestId = null;
44
+
45
+ }
46
+
47
+ /**
48
+ * @private
49
+ */
50
+ deserialize(params) {
51
+ if (!params) {
52
+ return;
53
+ }
54
+
55
+ if (params.TokenPlanSet) {
56
+ this.TokenPlanSet = new Array();
57
+ for (let z in params.TokenPlanSet) {
58
+ let obj = new TokenPlanListItem();
59
+ obj.deserialize(params.TokenPlanSet[z]);
60
+ this.TokenPlanSet.push(obj);
61
+ }
62
+ }
63
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
64
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
65
+
66
+ }
67
+ }
68
+
19
69
  /**
20
70
  * Termbase detail
21
71
  * @class
@@ -129,24 +179,30 @@ class BindingItem extends AbstractModel {
129
179
  }
130
180
 
131
181
  /**
132
- * Create terminology entry
182
+ * DescribeTokenPlanApiKeySecret response structure.
133
183
  * @class
134
184
  */
135
- class GlossaryEntryInput extends AbstractModel {
185
+ class DescribeTokenPlanApiKeySecretResponse extends AbstractModel {
136
186
  constructor(){
137
187
  super();
138
188
 
139
189
  /**
140
- * Source language terminology. Maximum 1000 characters.
190
+ * APIKey ID.
141
191
  * @type {string || null}
142
192
  */
143
- this.SourceTerm = null;
193
+ this.ApiKeyId = null;
144
194
 
145
195
  /**
146
- * Target language terminology. Maximum 1000 characters.
196
+ * APIKey key value (plaintext). Keep it safe.
147
197
  * @type {string || null}
148
198
  */
149
- this.TargetTerm = null;
199
+ this.ApiKey = null;
200
+
201
+ /**
202
+ * 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.
203
+ * @type {string || null}
204
+ */
205
+ this.RequestId = null;
150
206
 
151
207
  }
152
208
 
@@ -157,72 +213,123 @@ class GlossaryEntryInput extends AbstractModel {
157
213
  if (!params) {
158
214
  return;
159
215
  }
160
- this.SourceTerm = 'SourceTerm' in params ? params.SourceTerm : null;
161
- this.TargetTerm = 'TargetTerm' in params ? params.TargetTerm : null;
216
+ this.ApiKeyId = 'ApiKeyId' in params ? params.ApiKeyId : null;
217
+ this.ApiKey = 'ApiKey' in params ? params.ApiKey : null;
218
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
162
219
 
163
220
  }
164
221
  }
165
222
 
166
223
  /**
167
- * Delete terminology entry
224
+ * Token Plan API Key list item
168
225
  * @class
169
226
  */
170
- class DeleteGlossaryEntryInput extends AbstractModel {
227
+ class TokenPlanApiKeyListItem extends AbstractModel {
171
228
  constructor(){
172
229
  super();
173
230
 
174
231
  /**
175
- * Terminology entry ID. Obtain through the API DescribeGlossaryEntries.
232
+ * API Key ID.
176
233
  * @type {string || null}
177
234
  */
178
- this.EntryId = null;
235
+ this.ApiKeyId = null;
179
236
 
180
- }
237
+ /**
238
+ * API Key secret key value (masking).
239
+ * @type {string || null}
240
+ */
241
+ this.ApiKey = null;
181
242
 
182
- /**
183
- * @private
184
- */
185
- deserialize(params) {
186
- if (!params) {
187
- return;
188
- }
189
- this.EntryId = 'EntryId' in params ? params.EntryId : null;
243
+ /**
244
+ * API Key name.
245
+ * @type {string || null}
246
+ */
247
+ this.Name = null;
190
248
 
191
- }
192
- }
249
+ /**
250
+ * Bundle ID
251
+ * @type {string || null}
252
+ */
253
+ this.TeamId = null;
193
254
 
194
- /**
195
- * Terminology entry detail
196
- * @class
197
- */
198
- class GlossaryEntryItem extends AbstractModel {
199
- constructor(){
200
- super();
255
+ /**
256
+ * Account APP ID.
257
+ * @type {string || null}
258
+ */
259
+ this.AppId = null;
201
260
 
202
261
  /**
203
- * Terminology entry ID.
262
+ * Main account UIN. Maximum 128 characters.
204
263
  * @type {string || null}
205
264
  */
206
- this.EntryId = null;
265
+ this.Uin = null;
207
266
 
208
267
  /**
209
- * Source language terminology.
268
+ * API Key available model list (JSON array string).
210
269
  * @type {string || null}
211
270
  */
212
- this.SourceTerm = null;
271
+ this.AllowedModels = null;
213
272
 
214
273
  /**
215
- * Target language terminology.
274
+ * Whether the API Key is available. Values: enable (enable), disable (disable).
216
275
  * @type {string || null}
217
276
  */
218
- this.TargetTerm = null;
277
+ this.Status = null;
219
278
 
220
279
  /**
221
- * Last update time. Unix timestamp (ms).
280
+ * Reason for disabling the API Key. Value: NORMAL (normal, default value), QUOTA_EXHAUSTED (API Key quota package exhausted), ABNORMAL (abnormal, requires human intervention)
281
+ * @type {string || null}
282
+ */
283
+ this.StopReason = null;
284
+
285
+ /**
286
+ * User-side switch. Valid values: enable, disable.
287
+ * @type {string || null}
288
+ */
289
+ this.UseStatus = null;
290
+
291
+ /**
292
+ * Key version.
222
293
  * @type {number || null}
223
294
  */
295
+ this.KeyVersion = null;
296
+
297
+ /**
298
+ * Last reset time (ISO 8601).
299
+ * @type {string || null}
300
+ */
301
+ this.LastRotatedAt = null;
302
+
303
+ /**
304
+ * Creator. If it is created by a sub-account, this value is the sub-account UIN.
305
+ * @type {string || null}
306
+ */
307
+ this.Creator = null;
308
+
309
+ /**
310
+ * Creation time.
311
+ * @type {string || null}
312
+ */
313
+ this.CreatedAt = null;
314
+
315
+ /**
316
+ * Update time.
317
+ * @type {string || null}
318
+ */
224
319
  this.UpdatedAt = null;
225
320
 
321
+ /**
322
+ * API Key limit usage information
323
+ * @type {SubPackageBalance || null}
324
+ */
325
+ this.Balance = null;
326
+
327
+ /**
328
+ * Package type. Values: enterprise (Enterprise Professional package), enterprise-auto (Enterprise Light package).
329
+ * @type {string || null}
330
+ */
331
+ this.ProductType = null;
332
+
226
333
  }
227
334
 
228
335
  /**
@@ -232,27 +339,45 @@ class GlossaryEntryItem extends AbstractModel {
232
339
  if (!params) {
233
340
  return;
234
341
  }
235
- this.EntryId = 'EntryId' in params ? params.EntryId : null;
236
- this.SourceTerm = 'SourceTerm' in params ? params.SourceTerm : null;
237
- this.TargetTerm = 'TargetTerm' in params ? params.TargetTerm : null;
342
+ this.ApiKeyId = 'ApiKeyId' in params ? params.ApiKeyId : null;
343
+ this.ApiKey = 'ApiKey' in params ? params.ApiKey : null;
344
+ this.Name = 'Name' in params ? params.Name : null;
345
+ this.TeamId = 'TeamId' in params ? params.TeamId : null;
346
+ this.AppId = 'AppId' in params ? params.AppId : null;
347
+ this.Uin = 'Uin' in params ? params.Uin : null;
348
+ this.AllowedModels = 'AllowedModels' in params ? params.AllowedModels : null;
349
+ this.Status = 'Status' in params ? params.Status : null;
350
+ this.StopReason = 'StopReason' in params ? params.StopReason : null;
351
+ this.UseStatus = 'UseStatus' in params ? params.UseStatus : null;
352
+ this.KeyVersion = 'KeyVersion' in params ? params.KeyVersion : null;
353
+ this.LastRotatedAt = 'LastRotatedAt' in params ? params.LastRotatedAt : null;
354
+ this.Creator = 'Creator' in params ? params.Creator : null;
355
+ this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
238
356
  this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null;
239
357
 
358
+ if (params.Balance) {
359
+ let obj = new SubPackageBalance();
360
+ obj.deserialize(params.Balance)
361
+ this.Balance = obj;
362
+ }
363
+ this.ProductType = 'ProductType' in params ? params.ProductType : null;
364
+
240
365
  }
241
366
  }
242
367
 
243
368
  /**
244
- * DeleteGlossary response structure.
369
+ * Batch create succeeded items
245
370
  * @class
246
371
  */
247
- class DeleteGlossaryResponse extends AbstractModel {
372
+ class CreateApiKeysResultItem extends AbstractModel {
248
373
  constructor(){
249
374
  super();
250
375
 
251
376
  /**
252
- * 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.
377
+ * APIKey ID.
253
378
  * @type {string || null}
254
379
  */
255
- this.RequestId = null;
380
+ this.ApiKeyId = null;
256
381
 
257
382
  }
258
383
 
@@ -263,60 +388,30 @@ class DeleteGlossaryResponse extends AbstractModel {
263
388
  if (!params) {
264
389
  return;
265
390
  }
266
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
391
+ this.ApiKeyId = 'ApiKeyId' in params ? params.ApiKeyId : null;
267
392
 
268
393
  }
269
394
  }
270
395
 
271
396
  /**
272
- * Token quota information
397
+ * Create terminology entry
273
398
  * @class
274
399
  */
275
- class QuotaInfo extends AbstractModel {
400
+ class GlossaryEntryInput extends AbstractModel {
276
401
  constructor(){
277
402
  super();
278
403
 
279
404
  /**
280
- * Quota package ID.
281
- * @type {string || null}
282
- */
283
- this.PkgId = null;
284
-
285
- /**
286
- * Package status. Value: 1 (normal), 3 (exhausted), 4 (terminated).
287
- * @type {number || null}
288
- */
289
- this.Status = null;
290
-
291
- /**
292
- * Quota period. Value: d (by day), m (monthly), lifetime (total quota, no reset).
293
- * @type {string || null}
294
- */
295
- this.CycleUnit = null;
296
-
297
- /**
298
- * Dimensional quota total amount (number of tokens). Use string to avoid precision loss.
299
- * @type {string || null}
300
- */
301
- this.CycleCredits = null;
302
-
303
- /**
304
- * Dimensional used amount (number of tokens). Use string literal to avoid precision loss.
305
- * @type {string || null}
306
- */
307
- this.CycleUsed = null;
308
-
309
- /**
310
- * Quota effective start time.
405
+ * Source language terminology. Maximum 1000 characters.
311
406
  * @type {string || null}
312
407
  */
313
- this.StartTime = null;
408
+ this.SourceTerm = null;
314
409
 
315
410
  /**
316
- * Quota expiration time.
411
+ * Target language terminology. Maximum 1000 characters.
317
412
  * @type {string || null}
318
413
  */
319
- this.ExpireTime = null;
414
+ this.TargetTerm = null;
320
415
 
321
416
  }
322
417
 
@@ -327,25 +422,32 @@ class QuotaInfo extends AbstractModel {
327
422
  if (!params) {
328
423
  return;
329
424
  }
330
- this.PkgId = 'PkgId' in params ? params.PkgId : null;
331
- this.Status = 'Status' in params ? params.Status : null;
332
- this.CycleUnit = 'CycleUnit' in params ? params.CycleUnit : null;
333
- this.CycleCredits = 'CycleCredits' in params ? params.CycleCredits : null;
334
- this.CycleUsed = 'CycleUsed' in params ? params.CycleUsed : null;
335
- this.StartTime = 'StartTime' in params ? params.StartTime : null;
336
- this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null;
425
+ this.SourceTerm = 'SourceTerm' in params ? params.SourceTerm : null;
426
+ this.TargetTerm = 'TargetTerm' in params ? params.TargetTerm : null;
337
427
 
338
428
  }
339
429
  }
340
430
 
341
431
  /**
342
- * DeleteGlossaryEntries response structure.
432
+ * ModifyTokenPlanApiKeySecret response structure.
343
433
  * @class
344
434
  */
345
- class DeleteGlossaryEntriesResponse extends AbstractModel {
435
+ class ModifyTokenPlanApiKeySecretResponse extends AbstractModel {
346
436
  constructor(){
347
437
  super();
348
438
 
439
+ /**
440
+ * API Key ID.
441
+ * @type {string || null}
442
+ */
443
+ this.ApiKeyId = null;
444
+
445
+ /**
446
+ * Key version after resetting.
447
+ * @type {number || null}
448
+ */
449
+ this.KeyVersion = null;
450
+
349
451
  /**
350
452
  * 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.
351
453
  * @type {string || null}
@@ -361,27 +463,29 @@ class DeleteGlossaryEntriesResponse extends AbstractModel {
361
463
  if (!params) {
362
464
  return;
363
465
  }
466
+ this.ApiKeyId = 'ApiKeyId' in params ? params.ApiKeyId : null;
467
+ this.KeyVersion = 'KeyVersion' in params ? params.KeyVersion : null;
364
468
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
365
469
 
366
470
  }
367
471
  }
368
472
 
369
473
  /**
370
- * DescribeApiKeyList response structure.
474
+ * DescribeTokenPlanApiKeyList response structure.
371
475
  * @class
372
476
  */
373
- class DescribeApiKeyListResponse extends AbstractModel {
477
+ class DescribeTokenPlanApiKeyListResponse extends AbstractModel {
374
478
  constructor(){
375
479
  super();
376
480
 
377
481
  /**
378
- * API Key List.
379
- * @type {Array.<ApiKeyDetail> || null}
482
+ * API Key list.
483
+ * @type {Array.<TokenPlanApiKeyListItem> || null}
380
484
  */
381
485
  this.ApiKeySet = null;
382
486
 
383
487
  /**
384
- * Total number of eligible API keys.
488
+ * Total number of API Keys.
385
489
  * @type {number || null}
386
490
  */
387
491
  this.TotalCount = null;
@@ -405,7 +509,7 @@ class DescribeApiKeyListResponse extends AbstractModel {
405
509
  if (params.ApiKeySet) {
406
510
  this.ApiKeySet = new Array();
407
511
  for (let z in params.ApiKeySet) {
408
- let obj = new ApiKeyDetail();
512
+ let obj = new TokenPlanApiKeyListItem();
409
513
  obj.deserialize(params.ApiKeySet[z]);
410
514
  this.ApiKeySet.push(obj);
411
515
  }
@@ -417,18 +521,18 @@ class DescribeApiKeyListResponse extends AbstractModel {
417
521
  }
418
522
 
419
523
  /**
420
- * ModifyApiKeyInfo response structure.
524
+ * Delete terminology entry
421
525
  * @class
422
526
  */
423
- class ModifyApiKeyInfoResponse extends AbstractModel {
527
+ class DeleteGlossaryEntryInput extends AbstractModel {
424
528
  constructor(){
425
529
  super();
426
530
 
427
531
  /**
428
- * 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.
532
+ * Terminology entry ID. Obtain through the API DescribeGlossaryEntries.
429
533
  * @type {string || null}
430
534
  */
431
- this.RequestId = null;
535
+ this.EntryId = null;
432
536
 
433
537
  }
434
538
 
@@ -439,50 +543,26 @@ class ModifyApiKeyInfoResponse extends AbstractModel {
439
543
  if (!params) {
440
544
  return;
441
545
  }
442
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
546
+ this.EntryId = 'EntryId' in params ? params.EntryId : null;
443
547
 
444
548
  }
445
549
  }
446
550
 
447
551
  /**
448
- * DescribeApiKeyList request structure.
552
+ * DescribeTokenPlan request structure.
449
553
  * @class
450
554
  */
451
- class DescribeApiKeyListRequest extends AbstractModel {
555
+ class DescribeTokenPlanRequest extends AbstractModel {
452
556
  constructor(){
453
557
  super();
454
558
 
455
559
  /**
456
- * Platform type. Currently supported values: maas.
560
+ * Package ID. You can obtain it through the DescribeTokenPlanList API.
457
561
  * @type {string || null}
458
562
  */
459
- this.Platform = null;
460
-
461
- /**
462
- * Number of returned results, defaults to 20, maximum value 100.
463
- * @type {number || null}
464
- */
465
- this.Limit = null;
563
+ this.TeamId = null;
466
564
 
467
- /**
468
- * Offset. Default value: 0.
469
- * @type {number || null}
470
- */
471
- this.Offset = null;
472
-
473
- /**
474
- * Filter condition list. Supported filter fields: apikeyId (API Key ID), apiKeyName (name), platform (platform type), status (status), bindType (binding type).
475
- * @type {Array.<RequestFilter> || null}
476
- */
477
- this.Filters = null;
478
-
479
- /**
480
- * Sorting condition list. Supported sorting field: apiKeyName
481
- * @type {Array.<RequestSort> || null}
482
- */
483
- this.Sorts = null;
484
-
485
- }
565
+ }
486
566
 
487
567
  /**
488
568
  * @private
@@ -491,62 +571,42 @@ class DescribeApiKeyListRequest extends AbstractModel {
491
571
  if (!params) {
492
572
  return;
493
573
  }
494
- this.Platform = 'Platform' in params ? params.Platform : null;
495
- this.Limit = 'Limit' in params ? params.Limit : null;
496
- this.Offset = 'Offset' in params ? params.Offset : null;
497
-
498
- if (params.Filters) {
499
- this.Filters = new Array();
500
- for (let z in params.Filters) {
501
- let obj = new RequestFilter();
502
- obj.deserialize(params.Filters[z]);
503
- this.Filters.push(obj);
504
- }
505
- }
506
-
507
- if (params.Sorts) {
508
- this.Sorts = new Array();
509
- for (let z in params.Sorts) {
510
- let obj = new RequestSort();
511
- obj.deserialize(params.Sorts[z]);
512
- this.Sorts.push(obj);
513
- }
514
- }
574
+ this.TeamId = 'TeamId' in params ? params.TeamId : null;
515
575
 
516
576
  }
517
577
  }
518
578
 
519
579
  /**
520
- * CreateGlossary request structure.
580
+ * Terminology entry detail
521
581
  * @class
522
582
  */
523
- class CreateGlossaryRequest extends AbstractModel {
583
+ class GlossaryEntryItem extends AbstractModel {
524
584
  constructor(){
525
585
  super();
526
586
 
527
587
  /**
528
- * Terminology library name. Maximum 50 characters.
588
+ * Terminology entry ID.
529
589
  * @type {string || null}
530
590
  */
531
- this.Name = null;
591
+ this.EntryId = null;
532
592
 
533
593
  /**
534
- * Source language code. Maximum 16 characters, such as zh (Chinese), en (English).
594
+ * Source language terminology.
535
595
  * @type {string || null}
536
596
  */
537
- this.Source = null;
597
+ this.SourceTerm = null;
538
598
 
539
599
  /**
540
- * Target language code. Maximum 16 characters, such as zh (Chinese), en (English).
600
+ * Target language terminology.
541
601
  * @type {string || null}
542
602
  */
543
- this.Target = null;
603
+ this.TargetTerm = null;
544
604
 
545
605
  /**
546
- * Termbase description. Maximum 255 characters.
547
- * @type {string || null}
606
+ * Last update time. Unix timestamp (ms).
607
+ * @type {number || null}
548
608
  */
549
- this.Description = null;
609
+ this.UpdatedAt = null;
550
610
 
551
611
  }
552
612
 
@@ -557,45 +617,61 @@ class CreateGlossaryRequest extends AbstractModel {
557
617
  if (!params) {
558
618
  return;
559
619
  }
560
- this.Name = 'Name' in params ? params.Name : null;
561
- this.Source = 'Source' in params ? params.Source : null;
562
- this.Target = 'Target' in params ? params.Target : null;
563
- this.Description = 'Description' in params ? params.Description : null;
620
+ this.EntryId = 'EntryId' in params ? params.EntryId : null;
621
+ this.SourceTerm = 'SourceTerm' in params ? params.SourceTerm : null;
622
+ this.TargetTerm = 'TargetTerm' in params ? params.TargetTerm : null;
623
+ this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null;
564
624
 
565
625
  }
566
626
  }
567
627
 
568
628
  /**
569
- * DescribeGlossaryEntries response structure.
629
+ * DeleteGlossary response structure.
570
630
  * @class
571
631
  */
572
- class DescribeGlossaryEntriesResponse extends AbstractModel {
632
+ class DeleteGlossaryResponse extends AbstractModel {
573
633
  constructor(){
574
634
  super();
575
635
 
576
636
  /**
577
- * Terminology entry list.
578
- * @type {Array.<GlossaryEntryItem> || null}
637
+ * 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.
638
+ * @type {string || null}
579
639
  */
580
- this.Entries = null;
640
+ this.RequestId = null;
581
641
 
582
- /**
583
- * Total number of eligible terminology entries.
584
- * @type {number || null}
585
- */
586
- this.Total = null;
642
+ }
643
+
644
+ /**
645
+ * @private
646
+ */
647
+ deserialize(params) {
648
+ if (!params) {
649
+ return;
650
+ }
651
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
652
+
653
+ }
654
+ }
655
+
656
+ /**
657
+ * DescribeTokenPlanApiKey response structure.
658
+ * @class
659
+ */
660
+ class DescribeTokenPlanApiKeyResponse extends AbstractModel {
661
+ constructor(){
662
+ super();
587
663
 
588
664
  /**
589
- * Current page.
590
- * @type {number || null}
665
+ * API Key details.
666
+ * @type {TokenPlanApiKeyInfo || null}
591
667
  */
592
- this.Page = null;
668
+ this.ApiKey = null;
593
669
 
594
670
  /**
595
- * Size per page
596
- * @type {number || null}
671
+ * API Key limit and usage information.
672
+ * @type {SubPackageBalance || null}
597
673
  */
598
- this.PageSize = null;
674
+ this.Balance = null;
599
675
 
600
676
  /**
601
677
  * 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.
@@ -613,35 +689,35 @@ class DescribeGlossaryEntriesResponse extends AbstractModel {
613
689
  return;
614
690
  }
615
691
 
616
- if (params.Entries) {
617
- this.Entries = new Array();
618
- for (let z in params.Entries) {
619
- let obj = new GlossaryEntryItem();
620
- obj.deserialize(params.Entries[z]);
621
- this.Entries.push(obj);
622
- }
692
+ if (params.ApiKey) {
693
+ let obj = new TokenPlanApiKeyInfo();
694
+ obj.deserialize(params.ApiKey)
695
+ this.ApiKey = obj;
696
+ }
697
+
698
+ if (params.Balance) {
699
+ let obj = new SubPackageBalance();
700
+ obj.deserialize(params.Balance)
701
+ this.Balance = obj;
623
702
  }
624
- this.Total = 'Total' in params ? params.Total : null;
625
- this.Page = 'Page' in params ? params.Page : null;
626
- this.PageSize = 'PageSize' in params ? params.PageSize : null;
627
703
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
628
704
 
629
705
  }
630
706
  }
631
707
 
632
708
  /**
633
- * DeleteGlossary request structure.
709
+ * ModifyTokenPlanApiKeySecret request structure.
634
710
  * @class
635
711
  */
636
- class DeleteGlossaryRequest extends AbstractModel {
712
+ class ModifyTokenPlanApiKeySecretRequest extends AbstractModel {
637
713
  constructor(){
638
714
  super();
639
715
 
640
716
  /**
641
- * Termbase ID. Obtain through the API DescribeGlossaries.
717
+ * API Key ID. You can obtain it through the DescribeTokenPlanApiKeyList API.
642
718
  * @type {string || null}
643
719
  */
644
- this.GlossaryId = null;
720
+ this.ApiKeyId = null;
645
721
 
646
722
  }
647
723
 
@@ -652,36 +728,72 @@ class DeleteGlossaryRequest extends AbstractModel {
652
728
  if (!params) {
653
729
  return;
654
730
  }
655
- this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
731
+ this.ApiKeyId = 'ApiKeyId' in params ? params.ApiKeyId : null;
656
732
 
657
733
  }
658
734
  }
659
735
 
660
736
  /**
661
- * DescribeGlossaryEntries request structure.
737
+ * API Key limit and usage information
662
738
  * @class
663
739
  */
664
- class DescribeGlossaryEntriesRequest extends AbstractModel {
740
+ class SubPackageBalance extends AbstractModel {
665
741
  constructor(){
666
742
  super();
667
743
 
668
744
  /**
669
- * Termbase ID. Obtain through the API DescribeGlossaries.
745
+ * Dedicated limit. Units are as follows:
746
+ -Package type: professional. Measurement unit: point.
747
+ - Package type is lite package, and the measurement unit is token.
670
748
  * @type {string || null}
671
749
  */
672
- this.GlossaryId = null;
750
+ this.ExclusiveQuota = null;
673
751
 
674
752
  /**
675
- * Page number. Default is 1.
676
- * @type {number || null}
753
+ * Used amount of the dedicated limit. The measurement units are as follows:
754
+ -Package type: professional. Measurement unit: point.
755
+ - Package type is lite package, and the measurement unit is token.
756
+ * @type {string || null}
677
757
  */
678
- this.Page = null;
758
+ this.ExclusiveUsed = null;
679
759
 
680
760
  /**
681
- * Size per page. The default value is 20, and the maximum value is 200.
761
+ * Remaining exclusive quota. Units are as follows:
762
+ -Package type: professional. Measurement unit: point.
763
+ -Package type: lite package. Measurement unit: token.
764
+ * @type {string || null}
765
+ */
766
+ this.ExclusiveRemain = null;
767
+
768
+ /**
769
+ * Shared credit limit. -1 means unlimited. Measurement units are as follows:
770
+ -Package type is professional package, measurement unit value is point;
771
+ -Package type: lite package. Measurement unit: token.
772
+ * @type {string || null}
773
+ */
774
+ this.SharedQuota = null;
775
+
776
+ /**
777
+ * Used amount of the shared quota. Measurement units are as follows:
778
+ -Package type is professional package, measurement unit value is point;
779
+ -Package type: lite package. Measurement unit: token.
780
+ * @type {string || null}
781
+ */
782
+ this.SharedUsed = null;
783
+
784
+ /**
785
+ * Remaining shared quota. Units are described as follows:
786
+ -Package type is professional package, measurement unit value is point;
787
+ -Package type: lite package. Measurement unit: token.
788
+ * @type {string || null}
789
+ */
790
+ this.SharedRemain = null;
791
+
792
+ /**
793
+ * API Key package status. Valid values: 0 (normal), 1 (exhausted).
682
794
  * @type {number || null}
683
795
  */
684
- this.PageSize = null;
796
+ this.Status = null;
685
797
 
686
798
  }
687
799
 
@@ -692,32 +804,30 @@ class DescribeGlossaryEntriesRequest extends AbstractModel {
692
804
  if (!params) {
693
805
  return;
694
806
  }
695
- this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
696
- this.Page = 'Page' in params ? params.Page : null;
697
- this.PageSize = 'PageSize' in params ? params.PageSize : null;
807
+ this.ExclusiveQuota = 'ExclusiveQuota' in params ? params.ExclusiveQuota : null;
808
+ this.ExclusiveUsed = 'ExclusiveUsed' in params ? params.ExclusiveUsed : null;
809
+ this.ExclusiveRemain = 'ExclusiveRemain' in params ? params.ExclusiveRemain : null;
810
+ this.SharedQuota = 'SharedQuota' in params ? params.SharedQuota : null;
811
+ this.SharedUsed = 'SharedUsed' in params ? params.SharedUsed : null;
812
+ this.SharedRemain = 'SharedRemain' in params ? params.SharedRemain : null;
813
+ this.Status = 'Status' in params ? params.Status : null;
698
814
 
699
815
  }
700
816
  }
701
817
 
702
818
  /**
703
- * DeleteGlossaryEntries request structure.
819
+ * DeleteGlossaryEntries response structure.
704
820
  * @class
705
821
  */
706
- class DeleteGlossaryEntriesRequest extends AbstractModel {
822
+ class DeleteGlossaryEntriesResponse extends AbstractModel {
707
823
  constructor(){
708
824
  super();
709
825
 
710
826
  /**
711
- * Termbase ID. Obtain through the API DescribeGlossaries.
827
+ * 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.
712
828
  * @type {string || null}
713
829
  */
714
- this.GlossaryId = null;
715
-
716
- /**
717
- * Terminology entry list to be deleted. At a time 200.
718
- * @type {Array.<DeleteGlossaryEntryInput> || null}
719
- */
720
- this.Entries = null;
830
+ this.RequestId = null;
721
831
 
722
832
  }
723
833
 
@@ -728,33 +838,30 @@ class DeleteGlossaryEntriesRequest extends AbstractModel {
728
838
  if (!params) {
729
839
  return;
730
840
  }
731
- this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
732
-
733
- if (params.Entries) {
734
- this.Entries = new Array();
735
- for (let z in params.Entries) {
736
- let obj = new DeleteGlossaryEntryInput();
737
- obj.deserialize(params.Entries[z]);
738
- this.Entries.push(obj);
739
- }
740
- }
841
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
741
842
 
742
843
  }
743
844
  }
744
845
 
745
846
  /**
746
- * CreateGlossaryEntries response structure.
847
+ * DescribeApiKeyList response structure.
747
848
  * @class
748
849
  */
749
- class CreateGlossaryEntriesResponse extends AbstractModel {
850
+ class DescribeApiKeyListResponse extends AbstractModel {
750
851
  constructor(){
751
852
  super();
752
853
 
753
854
  /**
754
- * List of successfully created terminology entries.
755
- * @type {Array.<GlossaryEntryItem> || null}
855
+ * API Key List.
856
+ * @type {Array.<ApiKeyDetail> || null}
756
857
  */
757
- this.Entries = null;
858
+ this.ApiKeySet = null;
859
+
860
+ /**
861
+ * Total number of eligible API keys.
862
+ * @type {number || null}
863
+ */
864
+ this.TotalCount = null;
758
865
 
759
866
  /**
760
867
  * 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,27 +879,34 @@ class CreateGlossaryEntriesResponse extends AbstractModel {
772
879
  return;
773
880
  }
774
881
 
775
- if (params.Entries) {
776
- this.Entries = new Array();
777
- for (let z in params.Entries) {
778
- let obj = new GlossaryEntryItem();
779
- obj.deserialize(params.Entries[z]);
780
- this.Entries.push(obj);
882
+ if (params.ApiKeySet) {
883
+ this.ApiKeySet = new Array();
884
+ for (let z in params.ApiKeySet) {
885
+ let obj = new ApiKeyDetail();
886
+ obj.deserialize(params.ApiKeySet[z]);
887
+ this.ApiKeySet.push(obj);
781
888
  }
782
889
  }
890
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
783
891
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
784
892
 
785
893
  }
786
894
  }
787
895
 
788
896
  /**
789
- * DeleteApiKey response structure.
897
+ * RenewTokenPlanTeamOrder response structure.
790
898
  * @class
791
899
  */
792
- class DeleteApiKeyResponse extends AbstractModel {
900
+ class RenewTokenPlanTeamOrderResponse extends AbstractModel {
793
901
  constructor(){
794
902
  super();
795
903
 
904
+ /**
905
+ * Tencent Cloud order ID. Used to associate all sub-orders under a renewal operation.
906
+ * @type {string || null}
907
+ */
908
+ this.BigOrderId = null;
909
+
796
910
  /**
797
911
  * 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.
798
912
  * @type {string || null}
@@ -808,60 +922,121 @@ class DeleteApiKeyResponse extends AbstractModel {
808
922
  if (!params) {
809
923
  return;
810
924
  }
925
+ this.BigOrderId = 'BigOrderId' in params ? params.BigOrderId : null;
811
926
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
812
927
 
813
928
  }
814
929
  }
815
930
 
816
931
  /**
817
- * Modify terminology entry
932
+ * Token Plan API Key details
818
933
  * @class
819
934
  */
820
- class ModifyGlossaryEntryInput extends AbstractModel {
935
+ class TokenPlanApiKeyInfo extends AbstractModel {
821
936
  constructor(){
822
937
  super();
823
938
 
824
939
  /**
825
- * Terminology entry ID. Obtain through the API DescribeGlossaryEntries.
940
+ * API Key ID.
826
941
  * @type {string || null}
827
942
  */
828
- this.EntryId = null;
943
+ this.ApiKeyId = null;
829
944
 
830
945
  /**
831
- * Source language terminology. Maximum 1000 characters. If not passed, remain unchanged.
946
+ * API Key secret key value (masked).
832
947
  * @type {string || null}
833
948
  */
834
- this.SourceTerm = null;
949
+ this.ApiKey = null;
835
950
 
836
951
  /**
837
- * Target language terminology. Maximum 1000 characters. Remain unchanged if not passed.
952
+ * API Key name.
838
953
  * @type {string || null}
839
954
  */
840
- this.TargetTerm = null;
955
+ this.Name = null;
841
956
 
842
- }
957
+ /**
958
+ * Bundle ID.
959
+ * @type {string || null}
960
+ */
961
+ this.TeamId = null;
843
962
 
844
- /**
845
- * @private
846
- */
847
- deserialize(params) {
848
- if (!params) {
849
- return;
850
- }
851
- this.EntryId = 'EntryId' in params ? params.EntryId : null;
852
- this.SourceTerm = 'SourceTerm' in params ? params.SourceTerm : null;
853
- this.TargetTerm = 'TargetTerm' in params ? params.TargetTerm : null;
963
+ /**
964
+ * Account APP ID.
965
+ * @type {string || null}
966
+ */
967
+ this.AppId = null;
854
968
 
855
- }
856
- }
969
+ /**
970
+ * Main account UIN.
971
+ * @type {string || null}
972
+ */
973
+ this.Uin = null;
857
974
 
858
- /**
859
- * ModifyApiKeyInfo request structure.
860
- * @class
861
- */
862
- class ModifyApiKeyInfoRequest extends AbstractModel {
863
- constructor(){
864
- super();
975
+ /**
976
+ * API Key available model list (JSON array string).
977
+ * @type {string || null}
978
+ */
979
+ this.AllowedModels = null;
980
+
981
+ /**
982
+ * Whether the API Key is available. Values: enable (enable), disable (disable).
983
+ * @type {string || null}
984
+ */
985
+ this.Status = null;
986
+
987
+ /**
988
+ * Reason for disabling the API Key. Valid values: NORMAL (normal, default value), QUOTA_EXHAUSTED (API Key quota package exhausted), ABNORMAL (exception, human intervention required)
989
+ * @type {string || null}
990
+ */
991
+ this.StopReason = null;
992
+
993
+ /**
994
+ * User-side switch. Valid values: enable, disable.
995
+ * @type {string || null}
996
+ */
997
+ this.UseStatus = null;
998
+
999
+ /**
1000
+ * Key version.
1001
+ * @type {number || null}
1002
+ */
1003
+ this.KeyVersion = null;
1004
+
1005
+ /**
1006
+ * Last reset time (ISO 8601).
1007
+ * @type {string || null}
1008
+ */
1009
+ this.LastRotatedAt = null;
1010
+
1011
+ /**
1012
+ * Creator. If it is created by a sub-account, this value is the sub-account UIN.
1013
+ * @type {string || null}
1014
+ */
1015
+ this.Creator = null;
1016
+
1017
+ /**
1018
+ * Creation time.
1019
+ * @type {string || null}
1020
+ */
1021
+ this.CreatedAt = null;
1022
+
1023
+ /**
1024
+ * Update time.
1025
+ * @type {string || null}
1026
+ */
1027
+ this.UpdatedAt = null;
1028
+
1029
+ /**
1030
+ * TPM limit (Tokens Per Minute).
1031
+ * @type {number || null}
1032
+ */
1033
+ this.TPM = null;
1034
+
1035
+ /**
1036
+ * Package type. Values: enterprise (Enterprise Professional package), enterprise-auto (Enterprise Light package)
1037
+ * @type {string || null}
1038
+ */
1039
+ this.ProductType = null;
865
1040
 
866
1041
  }
867
1042
 
@@ -872,36 +1047,35 @@ class ModifyApiKeyInfoRequest extends AbstractModel {
872
1047
  if (!params) {
873
1048
  return;
874
1049
  }
1050
+ this.ApiKeyId = 'ApiKeyId' in params ? params.ApiKeyId : null;
1051
+ this.ApiKey = 'ApiKey' in params ? params.ApiKey : null;
1052
+ this.Name = 'Name' in params ? params.Name : null;
1053
+ this.TeamId = 'TeamId' in params ? params.TeamId : null;
1054
+ this.AppId = 'AppId' in params ? params.AppId : null;
1055
+ this.Uin = 'Uin' in params ? params.Uin : null;
1056
+ this.AllowedModels = 'AllowedModels' in params ? params.AllowedModels : null;
1057
+ this.Status = 'Status' in params ? params.Status : null;
1058
+ this.StopReason = 'StopReason' in params ? params.StopReason : null;
1059
+ this.UseStatus = 'UseStatus' in params ? params.UseStatus : null;
1060
+ this.KeyVersion = 'KeyVersion' in params ? params.KeyVersion : null;
1061
+ this.LastRotatedAt = 'LastRotatedAt' in params ? params.LastRotatedAt : null;
1062
+ this.Creator = 'Creator' in params ? params.Creator : null;
1063
+ this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
1064
+ this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null;
1065
+ this.TPM = 'TPM' in params ? params.TPM : null;
1066
+ this.ProductType = 'ProductType' in params ? params.ProductType : null;
875
1067
 
876
1068
  }
877
1069
  }
878
1070
 
879
1071
  /**
880
- * CreateGlossary response structure.
1072
+ * ModifyApiKeyInfo response structure.
881
1073
  * @class
882
1074
  */
883
- class CreateGlossaryResponse extends AbstractModel {
1075
+ class ModifyApiKeyInfoResponse extends AbstractModel {
884
1076
  constructor(){
885
1077
  super();
886
1078
 
887
- /**
888
- * Termbase ID.
889
- * @type {string || null}
890
- */
891
- this.GlossaryId = null;
892
-
893
- /**
894
- * Terminology repository name.
895
- * @type {string || null}
896
- */
897
- this.Name = null;
898
-
899
- /**
900
- * Creation time. Unix timestamp (ms).
901
- * @type {number || null}
902
- */
903
- this.CreatedAt = null;
904
-
905
1079
  /**
906
1080
  * 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.
907
1081
  * @type {string || null}
@@ -917,33 +1091,24 @@ class CreateGlossaryResponse extends AbstractModel {
917
1091
  if (!params) {
918
1092
  return;
919
1093
  }
920
- this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
921
- this.Name = 'Name' in params ? params.Name : null;
922
- this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
923
1094
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
924
1095
 
925
1096
  }
926
1097
  }
927
1098
 
928
1099
  /**
929
- * ModifyGlossaryEntries request structure.
1100
+ * ModifyTokenPlanApiKey response structure.
930
1101
  * @class
931
1102
  */
932
- class ModifyGlossaryEntriesRequest extends AbstractModel {
1103
+ class ModifyTokenPlanApiKeyResponse extends AbstractModel {
933
1104
  constructor(){
934
1105
  super();
935
1106
 
936
1107
  /**
937
- * Termbase ID. Obtain through the API DescribeGlossaries.
1108
+ * 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.
938
1109
  * @type {string || null}
939
1110
  */
940
- this.GlossaryId = null;
941
-
942
- /**
943
- * Terminology entry list. At a time 200.
944
- * @type {Array.<ModifyGlossaryEntryInput> || null}
945
- */
946
- this.Entries = null;
1111
+ this.RequestId = null;
947
1112
 
948
1113
  }
949
1114
 
@@ -954,30 +1119,27 @@ class ModifyGlossaryEntriesRequest extends AbstractModel {
954
1119
  if (!params) {
955
1120
  return;
956
1121
  }
957
- this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
958
-
959
- if (params.Entries) {
960
- this.Entries = new Array();
961
- for (let z in params.Entries) {
962
- let obj = new ModifyGlossaryEntryInput();
963
- obj.deserialize(params.Entries[z]);
964
- this.Entries.push(obj);
965
- }
966
- }
1122
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
967
1123
 
968
1124
  }
969
1125
  }
970
1126
 
971
1127
  /**
972
- * DescribeGlossaries request structure.
1128
+ * DescribeApiKeyList request structure.
973
1129
  * @class
974
1130
  */
975
- class DescribeGlossariesRequest extends AbstractModel {
1131
+ class DescribeApiKeyListRequest extends AbstractModel {
976
1132
  constructor(){
977
1133
  super();
978
1134
 
979
1135
  /**
980
- * Number of returned results. Defaults to 20, maximum value is 100.
1136
+ * Platform type. Currently supported values: maas.
1137
+ * @type {string || null}
1138
+ */
1139
+ this.Platform = null;
1140
+
1141
+ /**
1142
+ * Number of returned results, defaults to 20, maximum value 100.
981
1143
  * @type {number || null}
982
1144
  */
983
1145
  this.Limit = null;
@@ -989,13 +1151,13 @@ class DescribeGlossariesRequest extends AbstractModel {
989
1151
  this.Offset = null;
990
1152
 
991
1153
  /**
992
- * Filter condition list. Supported filter fields: GlossaryId (Termbase ID), Name, Source (source language code), Target (target language code).
1154
+ * Filter condition list. Supported filter fields: apikeyId (API Key ID), apiKeyName (name), platform (platform type), status (status), bindType (binding type).
993
1155
  * @type {Array.<RequestFilter> || null}
994
1156
  */
995
1157
  this.Filters = null;
996
1158
 
997
1159
  /**
998
- * Sorting condition list. Supported sorting fields: CreatedTime (creation time), UpdatedTime (last update time).
1160
+ * Sorting condition list. Supported sorting field: apiKeyName
999
1161
  * @type {Array.<RequestSort> || null}
1000
1162
  */
1001
1163
  this.Sorts = null;
@@ -1009,6 +1171,7 @@ class DescribeGlossariesRequest extends AbstractModel {
1009
1171
  if (!params) {
1010
1172
  return;
1011
1173
  }
1174
+ this.Platform = 'Platform' in params ? params.Platform : null;
1012
1175
  this.Limit = 'Limit' in params ? params.Limit : null;
1013
1176
  this.Offset = 'Offset' in params ? params.Offset : null;
1014
1177
 
@@ -1034,30 +1197,36 @@ class DescribeGlossariesRequest extends AbstractModel {
1034
1197
  }
1035
1198
 
1036
1199
  /**
1037
- * DescribeApiKey request structure.
1200
+ * CreateGlossary request structure.
1038
1201
  * @class
1039
1202
  */
1040
- class DescribeApiKeyRequest extends AbstractModel {
1203
+ class CreateGlossaryRequest extends AbstractModel {
1041
1204
  constructor(){
1042
1205
  super();
1043
1206
 
1044
1207
  /**
1045
- * Platform type. Currently supported values: maas.
1208
+ * Terminology library name. Maximum 50 characters.
1046
1209
  * @type {string || null}
1047
1210
  */
1048
- this.Platform = null;
1211
+ this.Name = null;
1049
1212
 
1050
1213
  /**
1051
- * API Key ID. At least one of this or ApiKey is required. Prioritize ApiKeyId.
1214
+ * Source language code. Maximum 16 characters, such as zh (Chinese), en (English).
1052
1215
  * @type {string || null}
1053
1216
  */
1054
- this.ApiKeyId = null;
1217
+ this.Source = null;
1055
1218
 
1056
1219
  /**
1057
- * API key plaintext. At least one of it and ApiKeyId must be imported.
1220
+ * Target language code. Maximum 16 characters, such as zh (Chinese), en (English).
1058
1221
  * @type {string || null}
1059
1222
  */
1060
- this.ApiKey = null;
1223
+ this.Target = null;
1224
+
1225
+ /**
1226
+ * Termbase description. Maximum 255 characters.
1227
+ * @type {string || null}
1228
+ */
1229
+ this.Description = null;
1061
1230
 
1062
1231
  }
1063
1232
 
@@ -1068,21 +1237,52 @@ class DescribeApiKeyRequest extends AbstractModel {
1068
1237
  if (!params) {
1069
1238
  return;
1070
1239
  }
1071
- this.Platform = 'Platform' in params ? params.Platform : null;
1072
- this.ApiKeyId = 'ApiKeyId' in params ? params.ApiKeyId : null;
1073
- this.ApiKey = 'ApiKey' in params ? params.ApiKey : null;
1240
+ this.Name = 'Name' in params ? params.Name : null;
1241
+ this.Source = 'Source' in params ? params.Source : null;
1242
+ this.Target = 'Target' in params ? params.Target : null;
1243
+ this.Description = 'Description' in params ? params.Description : null;
1074
1244
 
1075
1245
  }
1076
1246
  }
1077
1247
 
1078
1248
  /**
1079
- * ModifyApiKeyStatus request structure.
1249
+ * DescribeGlossaryEntries response structure.
1080
1250
  * @class
1081
1251
  */
1082
- class ModifyApiKeyStatusRequest extends AbstractModel {
1252
+ class DescribeGlossaryEntriesResponse extends AbstractModel {
1083
1253
  constructor(){
1084
1254
  super();
1085
1255
 
1256
+ /**
1257
+ * Terminology entry list.
1258
+ * @type {Array.<GlossaryEntryItem> || null}
1259
+ */
1260
+ this.Entries = null;
1261
+
1262
+ /**
1263
+ * Total number of eligible terminology entries.
1264
+ * @type {number || null}
1265
+ */
1266
+ this.Total = null;
1267
+
1268
+ /**
1269
+ * Current page.
1270
+ * @type {number || null}
1271
+ */
1272
+ this.Page = null;
1273
+
1274
+ /**
1275
+ * Size per page
1276
+ * @type {number || null}
1277
+ */
1278
+ this.PageSize = null;
1279
+
1280
+ /**
1281
+ * 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.
1282
+ * @type {string || null}
1283
+ */
1284
+ this.RequestId = null;
1285
+
1086
1286
  }
1087
1287
 
1088
1288
  /**
@@ -1093,14 +1293,27 @@ class ModifyApiKeyStatusRequest extends AbstractModel {
1093
1293
  return;
1094
1294
  }
1095
1295
 
1296
+ if (params.Entries) {
1297
+ this.Entries = new Array();
1298
+ for (let z in params.Entries) {
1299
+ let obj = new GlossaryEntryItem();
1300
+ obj.deserialize(params.Entries[z]);
1301
+ this.Entries.push(obj);
1302
+ }
1303
+ }
1304
+ this.Total = 'Total' in params ? params.Total : null;
1305
+ this.Page = 'Page' in params ? params.Page : null;
1306
+ this.PageSize = 'PageSize' in params ? params.PageSize : null;
1307
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1308
+
1096
1309
  }
1097
1310
  }
1098
1311
 
1099
1312
  /**
1100
- * CreateGlossaryEntries request structure.
1313
+ * DeleteGlossary request structure.
1101
1314
  * @class
1102
1315
  */
1103
- class CreateGlossaryEntriesRequest extends AbstractModel {
1316
+ class DeleteGlossaryRequest extends AbstractModel {
1104
1317
  constructor(){
1105
1318
  super();
1106
1319
 
@@ -1110,12 +1323,6 @@ class CreateGlossaryEntriesRequest extends AbstractModel {
1110
1323
  */
1111
1324
  this.GlossaryId = null;
1112
1325
 
1113
- /**
1114
- * Terminology entry list. At a time 100.
1115
- * @type {Array.<GlossaryEntryInput> || null}
1116
- */
1117
- this.Entries = null;
1118
-
1119
1326
  }
1120
1327
 
1121
1328
  /**
@@ -1127,133 +1334,1542 @@ class CreateGlossaryEntriesRequest extends AbstractModel {
1127
1334
  }
1128
1335
  this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
1129
1336
 
1130
- if (params.Entries) {
1131
- this.Entries = new Array();
1132
- for (let z in params.Entries) {
1133
- let obj = new GlossaryEntryInput();
1134
- obj.deserialize(params.Entries[z]);
1135
- this.Entries.push(obj);
1136
- }
1137
- }
1138
-
1139
1337
  }
1140
1338
  }
1141
1339
 
1142
1340
  /**
1143
- * Details of the specified API key
1341
+ * DescribeGlossaryEntries request structure.
1144
1342
  * @class
1145
1343
  */
1146
- class ApiKeyDetail extends AbstractModel {
1344
+ class DescribeGlossaryEntriesRequest extends AbstractModel {
1147
1345
  constructor(){
1148
1346
  super();
1149
1347
 
1150
1348
  /**
1151
- * API Key ID.
1152
- * @type {string || null}
1153
- */
1154
- this.ApiKeyId = null;
1155
-
1156
- /**
1157
- * Name
1349
+ * Termbase ID. Obtain through the API DescribeGlossaries.
1158
1350
  * @type {string || null}
1159
1351
  */
1160
- this.Name = null;
1352
+ this.GlossaryId = null;
1161
1353
 
1162
1354
  /**
1163
- * API key value. The API response contains the masking value.
1164
- * @type {string || null}
1355
+ * Page number. Default is 1.
1356
+ * @type {number || null}
1165
1357
  */
1166
- this.ApiKey = null;
1358
+ this.Page = null;
1167
1359
 
1168
1360
  /**
1169
- * Remarks.
1170
- * @type {string || null}
1361
+ * Size per page. The default value is 20, and the maximum value is 200.
1362
+ * @type {number || null}
1171
1363
  */
1172
- this.Remark = null;
1364
+ this.PageSize = null;
1173
1365
 
1174
- /**
1175
- * Platform type. Currently supported values: maas.
1176
- * @type {string || null}
1177
- */
1178
- this.Platform = null;
1366
+ }
1179
1367
 
1180
- /**
1181
- * Root account.
1182
- * @type {string || null}
1368
+ /**
1369
+ * @private
1370
+ */
1371
+ deserialize(params) {
1372
+ if (!params) {
1373
+ return;
1374
+ }
1375
+ this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
1376
+ this.Page = 'Page' in params ? params.Page : null;
1377
+ this.PageSize = 'PageSize' in params ? params.PageSize : null;
1378
+
1379
+ }
1380
+ }
1381
+
1382
+ /**
1383
+ * DeleteGlossaryEntries request structure.
1384
+ * @class
1385
+ */
1386
+ class DeleteGlossaryEntriesRequest extends AbstractModel {
1387
+ constructor(){
1388
+ super();
1389
+
1390
+ /**
1391
+ * Termbase ID. Obtain through the API DescribeGlossaries.
1392
+ * @type {string || null}
1393
+ */
1394
+ this.GlossaryId = null;
1395
+
1396
+ /**
1397
+ * Terminology entry list to be deleted. At a time 200.
1398
+ * @type {Array.<DeleteGlossaryEntryInput> || null}
1399
+ */
1400
+ this.Entries = null;
1401
+
1402
+ }
1403
+
1404
+ /**
1405
+ * @private
1406
+ */
1407
+ deserialize(params) {
1408
+ if (!params) {
1409
+ return;
1410
+ }
1411
+ this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
1412
+
1413
+ if (params.Entries) {
1414
+ this.Entries = new Array();
1415
+ for (let z in params.Entries) {
1416
+ let obj = new DeleteGlossaryEntryInput();
1417
+ obj.deserialize(params.Entries[z]);
1418
+ this.Entries.push(obj);
1419
+ }
1420
+ }
1421
+
1422
+ }
1423
+ }
1424
+
1425
+ /**
1426
+ * CreateGlossaryEntries response structure.
1427
+ * @class
1428
+ */
1429
+ class CreateGlossaryEntriesResponse extends AbstractModel {
1430
+ constructor(){
1431
+ super();
1432
+
1433
+ /**
1434
+ * List of successfully created terminology entries.
1435
+ * @type {Array.<GlossaryEntryItem> || null}
1436
+ */
1437
+ this.Entries = null;
1438
+
1439
+ /**
1440
+ * 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.
1441
+ * @type {string || null}
1442
+ */
1443
+ this.RequestId = null;
1444
+
1445
+ }
1446
+
1447
+ /**
1448
+ * @private
1449
+ */
1450
+ deserialize(params) {
1451
+ if (!params) {
1452
+ return;
1453
+ }
1454
+
1455
+ if (params.Entries) {
1456
+ this.Entries = new Array();
1457
+ for (let z in params.Entries) {
1458
+ let obj = new GlossaryEntryItem();
1459
+ obj.deserialize(params.Entries[z]);
1460
+ this.Entries.push(obj);
1461
+ }
1462
+ }
1463
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1464
+
1465
+ }
1466
+ }
1467
+
1468
+ /**
1469
+ * CreateTokenPlanApiKeys response structure.
1470
+ * @class
1471
+ */
1472
+ class CreateTokenPlanApiKeysResponse extends AbstractModel {
1473
+ constructor(){
1474
+ super();
1475
+
1476
+ /**
1477
+ * Item list of successful creation.
1478
+ * @type {Array.<CreateApiKeysResultItem> || null}
1479
+ */
1480
+ this.Items = null;
1481
+
1482
+ /**
1483
+ * Item list that failed to be created.
1484
+ * @type {Array.<BatchCreateFailedItem> || null}
1485
+ */
1486
+ this.FailedItems = null;
1487
+
1488
+ /**
1489
+ * 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.
1490
+ * @type {string || null}
1491
+ */
1492
+ this.RequestId = null;
1493
+
1494
+ }
1495
+
1496
+ /**
1497
+ * @private
1498
+ */
1499
+ deserialize(params) {
1500
+ if (!params) {
1501
+ return;
1502
+ }
1503
+
1504
+ if (params.Items) {
1505
+ this.Items = new Array();
1506
+ for (let z in params.Items) {
1507
+ let obj = new CreateApiKeysResultItem();
1508
+ obj.deserialize(params.Items[z]);
1509
+ this.Items.push(obj);
1510
+ }
1511
+ }
1512
+
1513
+ if (params.FailedItems) {
1514
+ this.FailedItems = new Array();
1515
+ for (let z in params.FailedItems) {
1516
+ let obj = new BatchCreateFailedItem();
1517
+ obj.deserialize(params.FailedItems[z]);
1518
+ this.FailedItems.push(obj);
1519
+ }
1520
+ }
1521
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1522
+
1523
+ }
1524
+ }
1525
+
1526
+ /**
1527
+ * DescribeTokenPlanApiKey request structure.
1528
+ * @class
1529
+ */
1530
+ class DescribeTokenPlanApiKeyRequest extends AbstractModel {
1531
+ constructor(){
1532
+ super();
1533
+
1534
+ /**
1535
+ * API Key ID. You can obtain it through the DescribeTokenPlanApiKeyList API.
1536
+ * @type {string || null}
1537
+ */
1538
+ this.ApiKeyId = null;
1539
+
1540
+ }
1541
+
1542
+ /**
1543
+ * @private
1544
+ */
1545
+ deserialize(params) {
1546
+ if (!params) {
1547
+ return;
1548
+ }
1549
+ this.ApiKeyId = 'ApiKeyId' in params ? params.ApiKeyId : null;
1550
+
1551
+ }
1552
+ }
1553
+
1554
+ /**
1555
+ * DescribeApiKey request structure.
1556
+ * @class
1557
+ */
1558
+ class DescribeApiKeyRequest extends AbstractModel {
1559
+ constructor(){
1560
+ super();
1561
+
1562
+ /**
1563
+ * Platform type. Currently supported values: maas.
1564
+ * @type {string || null}
1565
+ */
1566
+ this.Platform = null;
1567
+
1568
+ /**
1569
+ * API Key ID. At least one of this or ApiKey is required. Prioritize ApiKeyId.
1570
+ * @type {string || null}
1571
+ */
1572
+ this.ApiKeyId = null;
1573
+
1574
+ /**
1575
+ * API key plaintext. At least one of it and ApiKeyId must be imported.
1576
+ * @type {string || null}
1577
+ */
1578
+ this.ApiKey = null;
1579
+
1580
+ }
1581
+
1582
+ /**
1583
+ * @private
1584
+ */
1585
+ deserialize(params) {
1586
+ if (!params) {
1587
+ return;
1588
+ }
1589
+ this.Platform = 'Platform' in params ? params.Platform : null;
1590
+ this.ApiKeyId = 'ApiKeyId' in params ? params.ApiKeyId : null;
1591
+ this.ApiKey = 'ApiKey' in params ? params.ApiKey : null;
1592
+
1593
+ }
1594
+ }
1595
+
1596
+ /**
1597
+ * DeleteApiKey response structure.
1598
+ * @class
1599
+ */
1600
+ class DeleteApiKeyResponse extends AbstractModel {
1601
+ constructor(){
1602
+ super();
1603
+
1604
+ /**
1605
+ * 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.
1606
+ * @type {string || null}
1607
+ */
1608
+ this.RequestId = null;
1609
+
1610
+ }
1611
+
1612
+ /**
1613
+ * @private
1614
+ */
1615
+ deserialize(params) {
1616
+ if (!params) {
1617
+ return;
1618
+ }
1619
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1620
+
1621
+ }
1622
+ }
1623
+
1624
+ /**
1625
+ * Modify terminology entry
1626
+ * @class
1627
+ */
1628
+ class ModifyGlossaryEntryInput extends AbstractModel {
1629
+ constructor(){
1630
+ super();
1631
+
1632
+ /**
1633
+ * Terminology entry ID. Obtain through the API DescribeGlossaryEntries.
1634
+ * @type {string || null}
1635
+ */
1636
+ this.EntryId = null;
1637
+
1638
+ /**
1639
+ * Source language terminology. Maximum 1000 characters. If not passed, remain unchanged.
1640
+ * @type {string || null}
1641
+ */
1642
+ this.SourceTerm = null;
1643
+
1644
+ /**
1645
+ * Target language terminology. Maximum 1000 characters. Remain unchanged if not passed.
1646
+ * @type {string || null}
1647
+ */
1648
+ this.TargetTerm = null;
1649
+
1650
+ }
1651
+
1652
+ /**
1653
+ * @private
1654
+ */
1655
+ deserialize(params) {
1656
+ if (!params) {
1657
+ return;
1658
+ }
1659
+ this.EntryId = 'EntryId' in params ? params.EntryId : null;
1660
+ this.SourceTerm = 'SourceTerm' in params ? params.SourceTerm : null;
1661
+ this.TargetTerm = 'TargetTerm' in params ? params.TargetTerm : null;
1662
+
1663
+ }
1664
+ }
1665
+
1666
+ /**
1667
+ * ModifyTokenPlanApiKey request structure.
1668
+ * @class
1669
+ */
1670
+ class ModifyTokenPlanApiKeyRequest extends AbstractModel {
1671
+ constructor(){
1672
+ super();
1673
+
1674
+ /**
1675
+ * API Key ID.
1676
+ * @type {string || null}
1677
+ */
1678
+ this.ApiKeyId = null;
1679
+
1680
+ /**
1681
+ * Available model list. If this parameter is not specified, no modification is made.
1682
+
1683
+ - If the package type is enterprise professional:
1684
+ 1) Input "all": use all models supported by the package
1685
+ 2) Import Model ID: specify a specific model. "all" and a specific Model ID cannot be specified at the same time.
1686
+
1687
+ -If the package type is enterprise lightweight edition, do not pass in this parameter.
1688
+ * @type {Array.<string> || null}
1689
+ */
1690
+ this.AllowedModels = null;
1691
+
1692
+ /**
1693
+ * Dedicated limit. If this parameter is not specified, no modification will be made. Unit:
1694
+
1695
+ -Package type: professional. Measurement unit: point.
1696
+ - Package type is lite package, and the measurement unit is token.
1697
+ * @type {number || null}
1698
+ */
1699
+ this.ExclusiveQuota = null;
1700
+
1701
+ /**
1702
+ * Total credit limit. -1 means unlimited. It must be -1 or greater than or equal to the current ExclusiveQuota of the API Key. If not passed, no modification is made. Measurement units are as follows:
1703
+ -Package type: professional. Measurement unit: point.
1704
+ - Package type is lite package, and the measurement unit is token.
1705
+ * @type {number || null}
1706
+ */
1707
+ this.TotalQuota = null;
1708
+
1709
+ /**
1710
+ * Whether to enable the API Key. Values: enable (enable), disable (disable). If not passed, no modification is made.
1711
+ * @type {string || null}
1712
+ */
1713
+ this.UseStatus = null;
1714
+
1715
+ /**
1716
+ * TPM (Tokens Per Minute) limit. If not passed, no modification will be made. Must be >= 0 and <= the package TPM.
1717
+ * @type {number || null}
1718
+ */
1719
+ this.TPM = null;
1720
+
1721
+ }
1722
+
1723
+ /**
1724
+ * @private
1725
+ */
1726
+ deserialize(params) {
1727
+ if (!params) {
1728
+ return;
1729
+ }
1730
+ this.ApiKeyId = 'ApiKeyId' in params ? params.ApiKeyId : null;
1731
+ this.AllowedModels = 'AllowedModels' in params ? params.AllowedModels : null;
1732
+ this.ExclusiveQuota = 'ExclusiveQuota' in params ? params.ExclusiveQuota : null;
1733
+ this.TotalQuota = 'TotalQuota' in params ? params.TotalQuota : null;
1734
+ this.UseStatus = 'UseStatus' in params ? params.UseStatus : null;
1735
+ this.TPM = 'TPM' in params ? params.TPM : null;
1736
+
1737
+ }
1738
+ }
1739
+
1740
+ /**
1741
+ * Billing item for Token aggregation
1742
+ * @class
1743
+ */
1744
+ class TokenSummaryBillingItem extends AbstractModel {
1745
+ constructor(){
1746
+ super();
1747
+
1748
+ /**
1749
+ * Billing item. Values: input (input Token), output (output Token), cache (cache Token), call_count (call count).
1750
+ * @type {string || null}
1751
+ */
1752
+ this.BillingItem = null;
1753
+
1754
+ /**
1755
+ * Aggregated raw usage of this billing item during a period. Unit: tokens.
1756
+ * @type {number || null}
1757
+ */
1758
+ this.TotalQty = null;
1759
+
1760
+ }
1761
+
1762
+ /**
1763
+ * @private
1764
+ */
1765
+ deserialize(params) {
1766
+ if (!params) {
1767
+ return;
1768
+ }
1769
+ this.BillingItem = 'BillingItem' in params ? params.BillingItem : null;
1770
+ this.TotalQty = 'TotalQty' in params ? params.TotalQty : null;
1771
+
1772
+ }
1773
+ }
1774
+
1775
+ /**
1776
+ * DescribeTokenPlanApiKeyUsageDetail response structure.
1777
+ * @class
1778
+ */
1779
+ class DescribeTokenPlanApiKeyUsageDetailResponse extends AbstractModel {
1780
+ constructor(){
1781
+ super();
1782
+
1783
+ /**
1784
+ * 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.
1785
+ * @type {string || null}
1786
+ */
1787
+ this.RequestId = null;
1788
+
1789
+ }
1790
+
1791
+ /**
1792
+ * @private
1793
+ */
1794
+ deserialize(params) {
1795
+ if (!params) {
1796
+ return;
1797
+ }
1798
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1799
+
1800
+ }
1801
+ }
1802
+
1803
+ /**
1804
+ * Sort criteria
1805
+ * @class
1806
+ */
1807
+ class RequestSort extends AbstractModel {
1808
+ constructor(){
1809
+ super();
1810
+
1811
+ /**
1812
+ * Sorting field name.
1813
+ * @type {string || null}
1814
+ */
1815
+ this.Name = null;
1816
+
1817
+ /**
1818
+ * Sorting order. Value: ASC (ascending), DESC (descending).
1819
+ * @type {string || null}
1820
+ */
1821
+ this.Order = null;
1822
+
1823
+ }
1824
+
1825
+ /**
1826
+ * @private
1827
+ */
1828
+ deserialize(params) {
1829
+ if (!params) {
1830
+ return;
1831
+ }
1832
+ this.Name = 'Name' in params ? params.Name : null;
1833
+ this.Order = 'Order' in params ? params.Order : null;
1834
+
1835
+ }
1836
+ }
1837
+
1838
+ /**
1839
+ * ModifyApiKeyInfo request structure.
1840
+ * @class
1841
+ */
1842
+ class ModifyApiKeyInfoRequest extends AbstractModel {
1843
+ constructor(){
1844
+ super();
1845
+
1846
+ }
1847
+
1848
+ /**
1849
+ * @private
1850
+ */
1851
+ deserialize(params) {
1852
+ if (!params) {
1853
+ return;
1854
+ }
1855
+
1856
+ }
1857
+ }
1858
+
1859
+ /**
1860
+ * Token Plan package option
1861
+ * @class
1862
+ */
1863
+ class TokenPlanListItem extends AbstractModel {
1864
+ constructor(){
1865
+ super();
1866
+
1867
+ /**
1868
+ * <p>Package ID.</p>
1869
+ * @type {string || null}
1870
+ */
1871
+ this.TeamId = null;
1872
+
1873
+ /**
1874
+ * <p>Package type. Values: enterprise (Enterprise Professional package), enterprise-auto (Enterprise Light package)</p>
1875
+ * @type {string || null}
1876
+ */
1877
+ this.ProductType = null;
1878
+
1879
+ /**
1880
+ * <p>Package name. Maximum 128 characters.</p>
1881
+ * @type {string || null}
1882
+ */
1883
+ this.Name = null;
1884
+
1885
+ /**
1886
+ * <p>Account APP ID.</p>
1887
+ * @type {string || null}
1888
+ */
1889
+ this.AppId = null;
1890
+
1891
+ /**
1892
+ * <p>Main account UIN.</p>
1893
+ * @type {string || null}
1894
+ */
1895
+ this.Uin = null;
1896
+
1897
+ /**
1898
+ * <p>Package status. Valid values: enable, disable.</p>
1899
+ * @type {string || null}
1900
+ */
1901
+ this.Status = null;
1902
+
1903
+ /**
1904
+ * <p>Reason for package disablement. Value: NORMAL, ISOLATED, FROZEN, EXHAUSTED, DESTROYED</p>
1905
+ * @type {string || null}
1906
+ */
1907
+ this.StopReason = null;
1908
+
1909
+ /**
1910
+ * <p>Maximum number of API Keys that can be created.</p>
1911
+ * @type {number || null}
1912
+ */
1913
+ this.ApiKeyMax = null;
1914
+
1915
+ /**
1916
+ * <p>Number of API Keys currently created</p>
1917
+ * @type {number || null}
1918
+ */
1919
+ this.ApiKeyCount = null;
1920
+
1921
+ /**
1922
+ * <p>Cloud billing prepaid resource package ID.</p>
1923
+ * @type {string || null}
1924
+ */
1925
+ this.PrepayResourceID = null;
1926
+
1927
+ /**
1928
+ * <p>Creator. If the package is created by a sub-account, this value is the sub-account UIN.</p>
1929
+ * @type {string || null}
1930
+ */
1931
+ this.Creator = null;
1932
+
1933
+ /**
1934
+ * <p>Creation time.</p>
1935
+ * @type {string || null}
1936
+ */
1937
+ this.CreatedAt = null;
1938
+
1939
+ /**
1940
+ * <p>Update time.</p>
1941
+ * @type {string || null}
1942
+ */
1943
+ this.UpdatedAt = null;
1944
+
1945
+ /**
1946
+ * <p>Basic information of the package.</p>
1947
+ * @type {TokenPlanPackageInfo || null}
1948
+ */
1949
+ this.PackageInfo = null;
1950
+
1951
+ /**
1952
+ * <p>Whether to enable auto-renewal. Value: 0 (not enabled), 1 (enabled)</p>
1953
+ * @type {number || null}
1954
+ */
1955
+ this.AutoRenewFlag = null;
1956
+
1957
+ }
1958
+
1959
+ /**
1960
+ * @private
1961
+ */
1962
+ deserialize(params) {
1963
+ if (!params) {
1964
+ return;
1965
+ }
1966
+ this.TeamId = 'TeamId' in params ? params.TeamId : null;
1967
+ this.ProductType = 'ProductType' in params ? params.ProductType : null;
1968
+ this.Name = 'Name' in params ? params.Name : null;
1969
+ this.AppId = 'AppId' in params ? params.AppId : null;
1970
+ this.Uin = 'Uin' in params ? params.Uin : null;
1971
+ this.Status = 'Status' in params ? params.Status : null;
1972
+ this.StopReason = 'StopReason' in params ? params.StopReason : null;
1973
+ this.ApiKeyMax = 'ApiKeyMax' in params ? params.ApiKeyMax : null;
1974
+ this.ApiKeyCount = 'ApiKeyCount' in params ? params.ApiKeyCount : null;
1975
+ this.PrepayResourceID = 'PrepayResourceID' in params ? params.PrepayResourceID : null;
1976
+ this.Creator = 'Creator' in params ? params.Creator : null;
1977
+ this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
1978
+ this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null;
1979
+
1980
+ if (params.PackageInfo) {
1981
+ let obj = new TokenPlanPackageInfo();
1982
+ obj.deserialize(params.PackageInfo)
1983
+ this.PackageInfo = obj;
1984
+ }
1985
+ this.AutoRenewFlag = 'AutoRenewFlag' in params ? params.AutoRenewFlag : null;
1986
+
1987
+ }
1988
+ }
1989
+
1990
+ /**
1991
+ * CreateGlossary response structure.
1992
+ * @class
1993
+ */
1994
+ class CreateGlossaryResponse extends AbstractModel {
1995
+ constructor(){
1996
+ super();
1997
+
1998
+ /**
1999
+ * Termbase ID.
2000
+ * @type {string || null}
2001
+ */
2002
+ this.GlossaryId = null;
2003
+
2004
+ /**
2005
+ * Terminology repository name.
2006
+ * @type {string || null}
2007
+ */
2008
+ this.Name = null;
2009
+
2010
+ /**
2011
+ * Creation time. Unix timestamp (ms).
2012
+ * @type {number || null}
2013
+ */
2014
+ this.CreatedAt = null;
2015
+
2016
+ /**
2017
+ * 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.
2018
+ * @type {string || null}
2019
+ */
2020
+ this.RequestId = null;
2021
+
2022
+ }
2023
+
2024
+ /**
2025
+ * @private
2026
+ */
2027
+ deserialize(params) {
2028
+ if (!params) {
2029
+ return;
2030
+ }
2031
+ this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
2032
+ this.Name = 'Name' in params ? params.Name : null;
2033
+ this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
2034
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2035
+
2036
+ }
2037
+ }
2038
+
2039
+ /**
2040
+ * CreateTokenPlanTeamOrderAndBuy request structure.
2041
+ * @class
2042
+ */
2043
+ class CreateTokenPlanTeamOrderAndBuyRequest extends AbstractModel {
2044
+ constructor(){
2045
+ super();
2046
+
2047
+ /**
2048
+ * <p>Package type. Value: enterprise (enterprise edition professional package), enterprise-auto (enterprise edition lite package).</p>
2049
+ * @type {string || null}
2050
+ */
2051
+ this.ProductType = null;
2052
+
2053
+ /**
2054
+ * <p>Package name. It can only contain Chinese, letters, digits, underscores, and hyphens. It must start with a Chinese character or a letter and end with a Chinese character, letter, or digit. The length should be 2-50 characters.</p>
2055
+ * @type {string || null}
2056
+ */
2057
+ this.TeamName = null;
2058
+
2059
+ /**
2060
+ * <p>Purchase duration. Unit: Month. It must be greater than 0, supporting 1 to 12 months.</p>
2061
+ * @type {number || null}
2062
+ */
2063
+ this.TimeSpan = null;
2064
+
2065
+ /**
2066
+ * <p>Specification of the purchased package. If the package type is enterprise, the measurement unit is point; if the package type is enterprise-auto, the measurement unit is tokens.</p>
2067
+ * @type {number || null}
2068
+ */
2069
+ this.CreditOrToken = null;
2070
+
2071
+ /**
2072
+ * <p>Whether to enable auto-renewal. Not enabled by default.</p>
2073
+ * @type {boolean || null}
2074
+ */
2075
+ this.EnableAutoRenew = null;
2076
+
2077
+ /**
2078
+ * <p>Existing package ID (if not empty, the renewal process is performed; if empty, a new purchase is performed)</p>
2079
+ * @type {string || null}
2080
+ */
2081
+ this.TeamId = null;
2082
+
2083
+ }
2084
+
2085
+ /**
2086
+ * @private
2087
+ */
2088
+ deserialize(params) {
2089
+ if (!params) {
2090
+ return;
2091
+ }
2092
+ this.ProductType = 'ProductType' in params ? params.ProductType : null;
2093
+ this.TeamName = 'TeamName' in params ? params.TeamName : null;
2094
+ this.TimeSpan = 'TimeSpan' in params ? params.TimeSpan : null;
2095
+ this.CreditOrToken = 'CreditOrToken' in params ? params.CreditOrToken : null;
2096
+ this.EnableAutoRenew = 'EnableAutoRenew' in params ? params.EnableAutoRenew : null;
2097
+ this.TeamId = 'TeamId' in params ? params.TeamId : null;
2098
+
2099
+ }
2100
+ }
2101
+
2102
+ /**
2103
+ * ModifyGlossaryEntries request structure.
2104
+ * @class
2105
+ */
2106
+ class ModifyGlossaryEntriesRequest extends AbstractModel {
2107
+ constructor(){
2108
+ super();
2109
+
2110
+ /**
2111
+ * Termbase ID. Obtain through the API DescribeGlossaries.
2112
+ * @type {string || null}
2113
+ */
2114
+ this.GlossaryId = null;
2115
+
2116
+ /**
2117
+ * Terminology entry list. At a time 200.
2118
+ * @type {Array.<ModifyGlossaryEntryInput> || null}
2119
+ */
2120
+ this.Entries = null;
2121
+
2122
+ }
2123
+
2124
+ /**
2125
+ * @private
2126
+ */
2127
+ deserialize(params) {
2128
+ if (!params) {
2129
+ return;
2130
+ }
2131
+ this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
2132
+
2133
+ if (params.Entries) {
2134
+ this.Entries = new Array();
2135
+ for (let z in params.Entries) {
2136
+ let obj = new ModifyGlossaryEntryInput();
2137
+ obj.deserialize(params.Entries[z]);
2138
+ this.Entries.push(obj);
2139
+ }
2140
+ }
2141
+
2142
+ }
2143
+ }
2144
+
2145
+ /**
2146
+ * RenewTokenPlanTeamOrder request structure.
2147
+ * @class
2148
+ */
2149
+ class RenewTokenPlanTeamOrderRequest extends AbstractModel {
2150
+ constructor(){
2151
+ super();
2152
+
2153
+ /**
2154
+ * Package ID, which can be obtained through the DescribeTokenPlanList API.
2155
+ * @type {string || null}
2156
+ */
2157
+ this.TeamId = null;
2158
+
2159
+ /**
2160
+ * Renewal duration. Unit: month. Must be greater than 0.
2161
+ * @type {number || null}
2162
+ */
2163
+ this.TimeSpan = null;
2164
+
2165
+ }
2166
+
2167
+ /**
2168
+ * @private
2169
+ */
2170
+ deserialize(params) {
2171
+ if (!params) {
2172
+ return;
2173
+ }
2174
+ this.TeamId = 'TeamId' in params ? params.TeamId : null;
2175
+ this.TimeSpan = 'TimeSpan' in params ? params.TimeSpan : null;
2176
+
2177
+ }
2178
+ }
2179
+
2180
+ /**
2181
+ * DescribeGlossaries request structure.
2182
+ * @class
2183
+ */
2184
+ class DescribeGlossariesRequest extends AbstractModel {
2185
+ constructor(){
2186
+ super();
2187
+
2188
+ /**
2189
+ * Number of returned results. Defaults to 20, maximum value is 100.
2190
+ * @type {number || null}
2191
+ */
2192
+ this.Limit = null;
2193
+
2194
+ /**
2195
+ * Offset. Default value: 0.
2196
+ * @type {number || null}
2197
+ */
2198
+ this.Offset = null;
2199
+
2200
+ /**
2201
+ * Filter condition list. Supported filter fields: GlossaryId (Termbase ID), Name, Source (source language code), Target (target language code).
2202
+ * @type {Array.<RequestFilter> || null}
2203
+ */
2204
+ this.Filters = null;
2205
+
2206
+ /**
2207
+ * Sorting condition list. Supported sorting fields: CreatedTime (creation time), UpdatedTime (last update time).
2208
+ * @type {Array.<RequestSort> || null}
2209
+ */
2210
+ this.Sorts = null;
2211
+
2212
+ }
2213
+
2214
+ /**
2215
+ * @private
2216
+ */
2217
+ deserialize(params) {
2218
+ if (!params) {
2219
+ return;
2220
+ }
2221
+ this.Limit = 'Limit' in params ? params.Limit : null;
2222
+ this.Offset = 'Offset' in params ? params.Offset : null;
2223
+
2224
+ if (params.Filters) {
2225
+ this.Filters = new Array();
2226
+ for (let z in params.Filters) {
2227
+ let obj = new RequestFilter();
2228
+ obj.deserialize(params.Filters[z]);
2229
+ this.Filters.push(obj);
2230
+ }
2231
+ }
2232
+
2233
+ if (params.Sorts) {
2234
+ this.Sorts = new Array();
2235
+ for (let z in params.Sorts) {
2236
+ let obj = new RequestSort();
2237
+ obj.deserialize(params.Sorts[z]);
2238
+ this.Sorts.push(obj);
2239
+ }
2240
+ }
2241
+
2242
+ }
2243
+ }
2244
+
2245
+ /**
2246
+ * DeleteTokenPlanApiKey response structure.
2247
+ * @class
2248
+ */
2249
+ class DeleteTokenPlanApiKeyResponse extends AbstractModel {
2250
+ constructor(){
2251
+ super();
2252
+
2253
+ /**
2254
+ * 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.
2255
+ * @type {string || null}
2256
+ */
2257
+ this.RequestId = null;
2258
+
2259
+ }
2260
+
2261
+ /**
2262
+ * @private
2263
+ */
2264
+ deserialize(params) {
2265
+ if (!params) {
2266
+ return;
2267
+ }
2268
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2269
+
2270
+ }
2271
+ }
2272
+
2273
+ /**
2274
+ * DescribeTokenPlanApiKeyUsageDetail request structure.
2275
+ * @class
2276
+ */
2277
+ class DescribeTokenPlanApiKeyUsageDetailRequest extends AbstractModel {
2278
+ constructor(){
2279
+ super();
2280
+
2281
+ }
2282
+
2283
+ /**
2284
+ * @private
2285
+ */
2286
+ deserialize(params) {
2287
+ if (!params) {
2288
+ return;
2289
+ }
2290
+
2291
+ }
2292
+ }
2293
+
2294
+ /**
2295
+ * UpgradeTokenPlanTeamOrder request structure.
2296
+ * @class
2297
+ */
2298
+ class UpgradeTokenPlanTeamOrderRequest extends AbstractModel {
2299
+ constructor(){
2300
+ super();
2301
+
2302
+ /**
2303
+ * Package ID. You can obtain it through the DescribeTokenPlanList API.
2304
+ * @type {string || null}
2305
+ */
2306
+ this.TeamId = null;
2307
+
2308
+ /**
2309
+ * Limit of the new specification after upgrade. For the enterprise package type, it refers to the point limit. For the enterprise-auto package type, it refers to the Token count. Must be greater than the current limit.
2310
+ * @type {number || null}
2311
+ */
2312
+ this.NewCreditOrToken = null;
2313
+
2314
+ }
2315
+
2316
+ /**
2317
+ * @private
2318
+ */
2319
+ deserialize(params) {
2320
+ if (!params) {
2321
+ return;
2322
+ }
2323
+ this.TeamId = 'TeamId' in params ? params.TeamId : null;
2324
+ this.NewCreditOrToken = 'NewCreditOrToken' in params ? params.NewCreditOrToken : null;
2325
+
2326
+ }
2327
+ }
2328
+
2329
+ /**
2330
+ * ModifyApiKeyStatus request structure.
2331
+ * @class
2332
+ */
2333
+ class ModifyApiKeyStatusRequest extends AbstractModel {
2334
+ constructor(){
2335
+ super();
2336
+
2337
+ }
2338
+
2339
+ /**
2340
+ * @private
2341
+ */
2342
+ deserialize(params) {
2343
+ if (!params) {
2344
+ return;
2345
+ }
2346
+
2347
+ }
2348
+ }
2349
+
2350
+ /**
2351
+ * Token quota information
2352
+ * @class
2353
+ */
2354
+ class QuotaInfo extends AbstractModel {
2355
+ constructor(){
2356
+ super();
2357
+
2358
+ /**
2359
+ * Quota package ID.
2360
+ * @type {string || null}
2361
+ */
2362
+ this.PkgId = null;
2363
+
2364
+ /**
2365
+ * Package status. Value: 1 (normal), 3 (exhausted), 4 (terminated).
2366
+ * @type {number || null}
2367
+ */
2368
+ this.Status = null;
2369
+
2370
+ /**
2371
+ * Quota period. Value: d (by day), m (monthly), lifetime (total quota, no reset).
2372
+ * @type {string || null}
2373
+ */
2374
+ this.CycleUnit = null;
2375
+
2376
+ /**
2377
+ * Dimensional quota total amount (number of tokens). Use string to avoid precision loss.
2378
+ * @type {string || null}
2379
+ */
2380
+ this.CycleCredits = null;
2381
+
2382
+ /**
2383
+ * Dimensional used amount (number of tokens). Use string literal to avoid precision loss.
2384
+ * @type {string || null}
2385
+ */
2386
+ this.CycleUsed = null;
2387
+
2388
+ /**
2389
+ * Quota effective start time.
2390
+ * @type {string || null}
2391
+ */
2392
+ this.StartTime = null;
2393
+
2394
+ /**
2395
+ * Quota expiration time.
2396
+ * @type {string || null}
2397
+ */
2398
+ this.ExpireTime = null;
2399
+
2400
+ }
2401
+
2402
+ /**
2403
+ * @private
2404
+ */
2405
+ deserialize(params) {
2406
+ if (!params) {
2407
+ return;
2408
+ }
2409
+ this.PkgId = 'PkgId' in params ? params.PkgId : null;
2410
+ this.Status = 'Status' in params ? params.Status : null;
2411
+ this.CycleUnit = 'CycleUnit' in params ? params.CycleUnit : null;
2412
+ this.CycleCredits = 'CycleCredits' in params ? params.CycleCredits : null;
2413
+ this.CycleUsed = 'CycleUsed' in params ? params.CycleUsed : null;
2414
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
2415
+ this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null;
2416
+
2417
+ }
2418
+ }
2419
+
2420
+ /**
2421
+ * CreateGlossaryEntries request structure.
2422
+ * @class
2423
+ */
2424
+ class CreateGlossaryEntriesRequest extends AbstractModel {
2425
+ constructor(){
2426
+ super();
2427
+
2428
+ /**
2429
+ * Termbase ID. Obtain through the API DescribeGlossaries.
2430
+ * @type {string || null}
2431
+ */
2432
+ this.GlossaryId = null;
2433
+
2434
+ /**
2435
+ * Terminology entry list. At a time 100.
2436
+ * @type {Array.<GlossaryEntryInput> || null}
2437
+ */
2438
+ this.Entries = null;
2439
+
2440
+ }
2441
+
2442
+ /**
2443
+ * @private
2444
+ */
2445
+ deserialize(params) {
2446
+ if (!params) {
2447
+ return;
2448
+ }
2449
+ this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
2450
+
2451
+ if (params.Entries) {
2452
+ this.Entries = new Array();
2453
+ for (let z in params.Entries) {
2454
+ let obj = new GlossaryEntryInput();
2455
+ obj.deserialize(params.Entries[z]);
2456
+ this.Entries.push(obj);
2457
+ }
2458
+ }
2459
+
2460
+ }
2461
+ }
2462
+
2463
+ /**
2464
+ * Details of the specified API key
2465
+ * @class
2466
+ */
2467
+ class ApiKeyDetail extends AbstractModel {
2468
+ constructor(){
2469
+ super();
2470
+
2471
+ /**
2472
+ * API Key ID.
2473
+ * @type {string || null}
2474
+ */
2475
+ this.ApiKeyId = null;
2476
+
2477
+ /**
2478
+ * Name
2479
+ * @type {string || null}
2480
+ */
2481
+ this.Name = null;
2482
+
2483
+ /**
2484
+ * API key value. The API response contains the masking value.
2485
+ * @type {string || null}
2486
+ */
2487
+ this.ApiKey = null;
2488
+
2489
+ /**
2490
+ * Remarks.
2491
+ * @type {string || null}
2492
+ */
2493
+ this.Remark = null;
2494
+
2495
+ /**
2496
+ * Platform type. Currently supported values: maas.
2497
+ * @type {string || null}
2498
+ */
2499
+ this.Platform = null;
2500
+
2501
+ /**
2502
+ * Root account.
2503
+ * @type {string || null}
2504
+ */
2505
+ this.Uin = null;
2506
+
2507
+ /**
2508
+ * Sub-account.
2509
+ * @type {string || null}
2510
+ */
2511
+ this.SubUin = null;
2512
+
2513
+ /**
2514
+ * Status. Valid values: enable, disable.
2515
+ * @type {string || null}
1183
2516
  */
1184
- this.Uin = null;
2517
+ this.Status = null;
2518
+
2519
+ /**
2520
+ * Binding type. Value: all (all models and services), model_all_endpoint_custom (all models + custom service), model_custom_endpoint_all (custom model + all services), model_custom_endpoint_custom (custom model + custom service).
2521
+ * @type {string || null}
2522
+ */
2523
+ this.BindType = null;
2524
+
2525
+ /**
2526
+ * Creation time. Format: YYYY-MM-DD HH:mm:ss.
2527
+ * @type {string || null}
2528
+ */
2529
+ this.CreateTime = null;
2530
+
2531
+ /**
2532
+ * Last update time. Format: YYYY-MM-DD HH:mm:ss.
2533
+ * @type {string || null}
2534
+ */
2535
+ this.UpdateTime = null;
2536
+
2537
+ /**
2538
+ * App ID.
2539
+ * @type {string || null}
2540
+ */
2541
+ this.AppId = null;
2542
+
2543
+ /**
2544
+ * Whether it is editable. true means editable, false means non-editable.
2545
+ * @type {boolean || null}
2546
+ */
2547
+ this.Editable = null;
2548
+
2549
+ /**
2550
+ * List of bound resources, case-sensitive for endpoint and model kind.
2551
+ * @type {Array.<BindingItem> || null}
2552
+ */
2553
+ this.BindingItems = null;
2554
+
2555
+ /**
2556
+ * IP allowlist. Supports IPv4 and CIDR format. Empty array indicates no restriction.
2557
+ * @type {Array.<string> || null}
2558
+ */
2559
+ this.IpWhitelist = null;
2560
+
2561
+ /**
2562
+ * This field is empty when Platform is maas.
2563
+ * @type {string || null}
2564
+ */
2565
+ this.Creator = null;
2566
+
2567
+ /**
2568
+ * Multi-dimensional list of Token quota information. This field is not returned when unconfigured.
2569
+ * @type {Array.<QuotaInfo> || null}
2570
+ */
2571
+ this.QuotaSet = null;
2572
+
2573
+ /**
2574
+ * Token quota status. An empty string means no configuration. active means configured with current availability. inactive means configured but quota exhausted.
2575
+ * @type {string || null}
2576
+ */
2577
+ this.QuotaStatus = null;
2578
+
2579
+ }
2580
+
2581
+ /**
2582
+ * @private
2583
+ */
2584
+ deserialize(params) {
2585
+ if (!params) {
2586
+ return;
2587
+ }
2588
+ this.ApiKeyId = 'ApiKeyId' in params ? params.ApiKeyId : null;
2589
+ this.Name = 'Name' in params ? params.Name : null;
2590
+ this.ApiKey = 'ApiKey' in params ? params.ApiKey : null;
2591
+ this.Remark = 'Remark' in params ? params.Remark : null;
2592
+ this.Platform = 'Platform' in params ? params.Platform : null;
2593
+ this.Uin = 'Uin' in params ? params.Uin : null;
2594
+ this.SubUin = 'SubUin' in params ? params.SubUin : null;
2595
+ this.Status = 'Status' in params ? params.Status : null;
2596
+ this.BindType = 'BindType' in params ? params.BindType : null;
2597
+ this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
2598
+ this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null;
2599
+ this.AppId = 'AppId' in params ? params.AppId : null;
2600
+ this.Editable = 'Editable' in params ? params.Editable : null;
2601
+
2602
+ if (params.BindingItems) {
2603
+ this.BindingItems = new Array();
2604
+ for (let z in params.BindingItems) {
2605
+ let obj = new BindingItem();
2606
+ obj.deserialize(params.BindingItems[z]);
2607
+ this.BindingItems.push(obj);
2608
+ }
2609
+ }
2610
+ this.IpWhitelist = 'IpWhitelist' in params ? params.IpWhitelist : null;
2611
+ this.Creator = 'Creator' in params ? params.Creator : null;
2612
+
2613
+ if (params.QuotaSet) {
2614
+ this.QuotaSet = new Array();
2615
+ for (let z in params.QuotaSet) {
2616
+ let obj = new QuotaInfo();
2617
+ obj.deserialize(params.QuotaSet[z]);
2618
+ this.QuotaSet.push(obj);
2619
+ }
2620
+ }
2621
+ this.QuotaStatus = 'QuotaStatus' in params ? params.QuotaStatus : null;
2622
+
2623
+ }
2624
+ }
2625
+
2626
+ /**
2627
+ * DescribeGlossaries response structure.
2628
+ * @class
2629
+ */
2630
+ class DescribeGlossariesResponse extends AbstractModel {
2631
+ constructor(){
2632
+ super();
2633
+
2634
+ /**
2635
+ * Terminology repository list.
2636
+ * @type {Array.<GlossaryItem> || null}
2637
+ */
2638
+ this.Items = null;
2639
+
2640
+ /**
2641
+ * Total number of eligible terminology repositories.
2642
+ * @type {number || null}
2643
+ */
2644
+ this.TotalCount = null;
2645
+
2646
+ /**
2647
+ * Current page.
2648
+ * @type {number || null}
2649
+ */
2650
+ this.Current = null;
2651
+
2652
+ /**
2653
+ * Size per page
2654
+ * @type {number || null}
2655
+ */
2656
+ this.PageSize = null;
2657
+
2658
+ /**
2659
+ * 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.
2660
+ * @type {string || null}
2661
+ */
2662
+ this.RequestId = null;
2663
+
2664
+ }
2665
+
2666
+ /**
2667
+ * @private
2668
+ */
2669
+ deserialize(params) {
2670
+ if (!params) {
2671
+ return;
2672
+ }
2673
+
2674
+ if (params.Items) {
2675
+ this.Items = new Array();
2676
+ for (let z in params.Items) {
2677
+ let obj = new GlossaryItem();
2678
+ obj.deserialize(params.Items[z]);
2679
+ this.Items.push(obj);
2680
+ }
2681
+ }
2682
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
2683
+ this.Current = 'Current' in params ? params.Current : null;
2684
+ this.PageSize = 'PageSize' in params ? params.PageSize : null;
2685
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2686
+
2687
+ }
2688
+ }
2689
+
2690
+ /**
2691
+ * ModifyApiKeyStatus response structure.
2692
+ * @class
2693
+ */
2694
+ class ModifyApiKeyStatusResponse extends AbstractModel {
2695
+ constructor(){
2696
+ super();
2697
+
2698
+ /**
2699
+ * 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.
2700
+ * @type {string || null}
2701
+ */
2702
+ this.RequestId = null;
2703
+
2704
+ }
2705
+
2706
+ /**
2707
+ * @private
2708
+ */
2709
+ deserialize(params) {
2710
+ if (!params) {
2711
+ return;
2712
+ }
2713
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2714
+
2715
+ }
2716
+ }
2717
+
2718
+ /**
2719
+ * Batch create failed items
2720
+ * @class
2721
+ */
2722
+ class BatchCreateFailedItem extends AbstractModel {
2723
+ constructor(){
2724
+ super();
2725
+
2726
+ /**
2727
+ * Serial number of the failed item (starting from 1, corresponding to the suffix number).
2728
+ * @type {number || null}
2729
+ */
2730
+ this.Index = null;
2731
+
2732
+ /**
2733
+ * Name of the failed item.
2734
+ * @type {string || null}
2735
+ */
2736
+ this.Name = null;
2737
+
2738
+ /**
2739
+ * Failure reason.
2740
+ * @type {string || null}
2741
+ */
2742
+ this.Reason = null;
2743
+
2744
+ }
2745
+
2746
+ /**
2747
+ * @private
2748
+ */
2749
+ deserialize(params) {
2750
+ if (!params) {
2751
+ return;
2752
+ }
2753
+ this.Index = 'Index' in params ? params.Index : null;
2754
+ this.Name = 'Name' in params ? params.Name : null;
2755
+ this.Reason = 'Reason' in params ? params.Reason : null;
2756
+
2757
+ }
2758
+ }
2759
+
2760
+ /**
2761
+ * CreateApiKey response structure.
2762
+ * @class
2763
+ */
2764
+ class CreateApiKeyResponse extends AbstractModel {
2765
+ constructor(){
2766
+ super();
2767
+
2768
+ /**
2769
+ * 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.
2770
+ * @type {string || null}
2771
+ */
2772
+ this.RequestId = null;
2773
+
2774
+ }
2775
+
2776
+ /**
2777
+ * @private
2778
+ */
2779
+ deserialize(params) {
2780
+ if (!params) {
2781
+ return;
2782
+ }
2783
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2784
+
2785
+ }
2786
+ }
2787
+
2788
+ /**
2789
+ * Main limit package info
2790
+ * @class
2791
+ */
2792
+ class TokenPlanPackageInfo extends AbstractModel {
2793
+ constructor(){
2794
+ super();
1185
2795
 
1186
2796
  /**
1187
- * Sub-account.
2797
+ * Total quota. The unit is determined by the package type: credits for the Enterprise Professional package and tokens for the Enterprise auto package.
1188
2798
  * @type {string || null}
1189
2799
  */
1190
- this.SubUin = null;
2800
+ this.TotalQuota = null;
1191
2801
 
1192
2802
  /**
1193
- * Status. Valid values: enable, disable.
2803
+ * Total used quota. The unit varies by package type: credits (enterprise edition professional package), tokens (enterprise edition auto package)
1194
2804
  * @type {string || null}
1195
2805
  */
1196
- this.Status = null;
2806
+ this.TotalUsed = null;
1197
2807
 
1198
2808
  /**
1199
- * Binding type. Value: all (all models and services), model_all_endpoint_custom (all models + custom service), model_custom_endpoint_all (custom model + all services), model_custom_endpoint_custom (custom model + custom service).
2809
+ * Total number of periods.
2810
+ * @type {number || null}
2811
+ */
2812
+ this.TotalCycles = null;
2813
+
2814
+ /**
2815
+ * Period unit. Value: month
1200
2816
  * @type {string || null}
1201
2817
  */
1202
- this.BindType = null;
2818
+ this.CycleUnit = null;
1203
2819
 
1204
2820
  /**
1205
- * Creation time. Format: YYYY-MM-DD HH:mm:ss.
2821
+ * Package effective time.
1206
2822
  * @type {string || null}
1207
2823
  */
1208
- this.CreateTime = null;
2824
+ this.StartTime = null;
1209
2825
 
1210
2826
  /**
1211
- * Last update time. Format: YYYY-MM-DD HH:mm:ss.
2827
+ * Package expiration time.
1212
2828
  * @type {string || null}
1213
2829
  */
1214
- this.UpdateTime = null;
2830
+ this.ExpireTime = null;
1215
2831
 
1216
2832
  /**
1217
- * App ID.
2833
+ * Allocated quota for dedicated pool. The unit varies by package type: credits (enterprise edition professional package), tokens (enterprise edition auto package)
1218
2834
  * @type {string || null}
1219
2835
  */
1220
- this.AppId = null;
2836
+ this.ExclusiveAllocated = null;
1221
2837
 
1222
2838
  /**
1223
- * Whether it is editable. true means editable, false means non-editable.
1224
- * @type {boolean || null}
2839
+ * Used credit of the dedicated pool. The unit varies based on the package type: credits for the enterprise professional package, and tokens for the enterprise auto package.
2840
+ * @type {string || null}
1225
2841
  */
1226
- this.Editable = null;
2842
+ this.ExclusiveUsed = null;
1227
2843
 
1228
2844
  /**
1229
- * List of bound resources, case-sensitive for endpoint and model kind.
1230
- * @type {Array.<BindingItem> || null}
2845
+ * Total shared pool quota. The measurement unit varies based on the package type: credits (enterprise edition professional package), tokens (enterprise edition auto package).
2846
+ * @type {string || null}
1231
2847
  */
1232
- this.BindingItems = null;
2848
+ this.SharedPool = null;
1233
2849
 
1234
2850
  /**
1235
- * IP allowlist. Supports IPv4 and CIDR format. Empty array indicates no restriction.
1236
- * @type {Array.<string> || null}
2851
+ * Shared used credit. The unit varies by package type: credits (enterprise edition professional package), tokens (enterprise edition auto package)
2852
+ * @type {string || null}
1237
2853
  */
1238
- this.IpWhitelist = null;
2854
+ this.SharedUsed = null;
1239
2855
 
1240
2856
  /**
1241
- * This field is empty when Platform is maas.
2857
+ * Current period limit. The unit varies by package type: credits (Enterprise Edition Professional), tokens (Enterprise Edition auto).
1242
2858
  * @type {string || null}
1243
2859
  */
1244
- this.Creator = null;
2860
+ this.CycleQuota = null;
1245
2861
 
1246
2862
  /**
1247
- * Multi-dimensional list of Token quota information. This field is not returned when unconfigured.
1248
- * @type {Array.<QuotaInfo> || null}
2863
+ * Current cycle.
2864
+ * @type {number || null}
1249
2865
  */
1250
- this.QuotaSet = null;
2866
+ this.CurrentCycle = null;
1251
2867
 
1252
2868
  /**
1253
- * Token quota status. An empty string means no configuration. active means configured with current availability. inactive means configured but quota exhausted.
1254
- * @type {string || null}
2869
+ * Remaining cycle.
2870
+ * @type {number || null}
1255
2871
  */
1256
- this.QuotaStatus = null;
2872
+ this.RemainCycles = null;
1257
2873
 
1258
2874
  }
1259
2875
 
@@ -1264,81 +2880,152 @@ class ApiKeyDetail extends AbstractModel {
1264
2880
  if (!params) {
1265
2881
  return;
1266
2882
  }
1267
- this.ApiKeyId = 'ApiKeyId' in params ? params.ApiKeyId : null;
1268
- this.Name = 'Name' in params ? params.Name : null;
1269
- this.ApiKey = 'ApiKey' in params ? params.ApiKey : null;
1270
- this.Remark = 'Remark' in params ? params.Remark : null;
1271
- this.Platform = 'Platform' in params ? params.Platform : null;
1272
- this.Uin = 'Uin' in params ? params.Uin : null;
1273
- this.SubUin = 'SubUin' in params ? params.SubUin : null;
1274
- this.Status = 'Status' in params ? params.Status : null;
1275
- this.BindType = 'BindType' in params ? params.BindType : null;
1276
- this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
1277
- this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null;
1278
- this.AppId = 'AppId' in params ? params.AppId : null;
1279
- this.Editable = 'Editable' in params ? params.Editable : null;
2883
+ this.TotalQuota = 'TotalQuota' in params ? params.TotalQuota : null;
2884
+ this.TotalUsed = 'TotalUsed' in params ? params.TotalUsed : null;
2885
+ this.TotalCycles = 'TotalCycles' in params ? params.TotalCycles : null;
2886
+ this.CycleUnit = 'CycleUnit' in params ? params.CycleUnit : null;
2887
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
2888
+ this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null;
2889
+ this.ExclusiveAllocated = 'ExclusiveAllocated' in params ? params.ExclusiveAllocated : null;
2890
+ this.ExclusiveUsed = 'ExclusiveUsed' in params ? params.ExclusiveUsed : null;
2891
+ this.SharedPool = 'SharedPool' in params ? params.SharedPool : null;
2892
+ this.SharedUsed = 'SharedUsed' in params ? params.SharedUsed : null;
2893
+ this.CycleQuota = 'CycleQuota' in params ? params.CycleQuota : null;
2894
+ this.CurrentCycle = 'CurrentCycle' in params ? params.CurrentCycle : null;
2895
+ this.RemainCycles = 'RemainCycles' in params ? params.RemainCycles : null;
1280
2896
 
1281
- if (params.BindingItems) {
1282
- this.BindingItems = new Array();
1283
- for (let z in params.BindingItems) {
1284
- let obj = new BindingItem();
1285
- obj.deserialize(params.BindingItems[z]);
1286
- this.BindingItems.push(obj);
1287
- }
2897
+ }
2898
+ }
2899
+
2900
+ /**
2901
+ * CreateTokenPlanTeamOrderAndBuy response structure.
2902
+ * @class
2903
+ */
2904
+ class CreateTokenPlanTeamOrderAndBuyResponse extends AbstractModel {
2905
+ constructor(){
2906
+ super();
2907
+
2908
+ /**
2909
+ * <p>Tencent Cloud order ID. Used to associate all sub-orders under a purchase operation.</p>
2910
+ * @type {string || null}
2911
+ */
2912
+ this.BigOrderId = null;
2913
+
2914
+ /**
2915
+ * 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.
2916
+ * @type {string || null}
2917
+ */
2918
+ this.RequestId = null;
2919
+
2920
+ }
2921
+
2922
+ /**
2923
+ * @private
2924
+ */
2925
+ deserialize(params) {
2926
+ if (!params) {
2927
+ return;
1288
2928
  }
1289
- this.IpWhitelist = 'IpWhitelist' in params ? params.IpWhitelist : null;
1290
- this.Creator = 'Creator' in params ? params.Creator : null;
2929
+ this.BigOrderId = 'BigOrderId' in params ? params.BigOrderId : null;
2930
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1291
2931
 
1292
- if (params.QuotaSet) {
1293
- this.QuotaSet = new Array();
1294
- for (let z in params.QuotaSet) {
1295
- let obj = new QuotaInfo();
1296
- obj.deserialize(params.QuotaSet[z]);
1297
- this.QuotaSet.push(obj);
1298
- }
2932
+ }
2933
+ }
2934
+
2935
+ /**
2936
+ * DeleteApiKey request structure.
2937
+ * @class
2938
+ */
2939
+ class DeleteApiKeyRequest extends AbstractModel {
2940
+ constructor(){
2941
+ super();
2942
+
2943
+ }
2944
+
2945
+ /**
2946
+ * @private
2947
+ */
2948
+ deserialize(params) {
2949
+ if (!params) {
2950
+ return;
1299
2951
  }
1300
- this.QuotaStatus = 'QuotaStatus' in params ? params.QuotaStatus : null;
1301
2952
 
1302
2953
  }
1303
2954
  }
1304
2955
 
1305
2956
  /**
1306
- * DescribeGlossaries response structure.
2957
+ * Filter criteria
1307
2958
  * @class
1308
2959
  */
1309
- class DescribeGlossariesResponse extends AbstractModel {
2960
+ class RequestFilter extends AbstractModel {
1310
2961
  constructor(){
1311
2962
  super();
1312
2963
 
1313
2964
  /**
1314
- * Terminology repository list.
1315
- * @type {Array.<GlossaryItem> || null}
2965
+ * Filter field name.
2966
+ * @type {string || null}
1316
2967
  */
1317
- this.Items = null;
2968
+ this.Name = null;
1318
2969
 
1319
2970
  /**
1320
- * Total number of eligible terminology repositories.
1321
- * @type {number || null}
2971
+ * Filter operator. Values: EXACT (exact match), FUZZY (fuzzy matching), NOT (exclusion).
2972
+ * @type {string || null}
1322
2973
  */
1323
- this.TotalCount = null;
2974
+ this.Op = null;
1324
2975
 
1325
2976
  /**
1326
- * Current page.
1327
- * @type {number || null}
2977
+ * Filter value list. Supports up to 10.
2978
+ * @type {Array.<string> || null}
1328
2979
  */
1329
- this.Current = null;
2980
+ this.Values = null;
2981
+
2982
+ }
2983
+
2984
+ /**
2985
+ * @private
2986
+ */
2987
+ deserialize(params) {
2988
+ if (!params) {
2989
+ return;
2990
+ }
2991
+ this.Name = 'Name' in params ? params.Name : null;
2992
+ this.Op = 'Op' in params ? params.Op : null;
2993
+ this.Values = 'Values' in params ? params.Values : null;
2994
+
2995
+ }
2996
+ }
2997
+
2998
+ /**
2999
+ * Main package Token summary
3000
+ * @class
3001
+ */
3002
+ class TokenSummary extends AbstractModel {
3003
+ constructor(){
3004
+ super();
1330
3005
 
1331
3006
  /**
1332
- * Size per page
3007
+ * Package serial number of the current billing cycle
1333
3008
  * @type {number || null}
1334
3009
  */
1335
- this.PageSize = null;
3010
+ this.CycleSeq = null;
1336
3011
 
1337
3012
  /**
1338
- * 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.
3013
+ * Package billing cycle start time (RFC3339)
1339
3014
  * @type {string || null}
1340
3015
  */
1341
- this.RequestId = null;
3016
+ this.CycleStartTime = null;
3017
+
3018
+ /**
3019
+ * Package billing cycle end time (RFC3339)
3020
+ * @type {string || null}
3021
+ */
3022
+ this.CycleEndTime = null;
3023
+
3024
+ /**
3025
+ * Summary list of tokens grouped by billing item
3026
+ * @type {Array.<TokenSummaryBillingItem> || null}
3027
+ */
3028
+ this.BillingItems = null;
1342
3029
 
1343
3030
  }
1344
3031
 
@@ -1349,36 +3036,53 @@ class DescribeGlossariesResponse extends AbstractModel {
1349
3036
  if (!params) {
1350
3037
  return;
1351
3038
  }
1352
-
1353
- if (params.Items) {
1354
- this.Items = new Array();
1355
- for (let z in params.Items) {
1356
- let obj = new GlossaryItem();
1357
- obj.deserialize(params.Items[z]);
1358
- this.Items.push(obj);
3039
+ this.CycleSeq = 'CycleSeq' in params ? params.CycleSeq : null;
3040
+ this.CycleStartTime = 'CycleStartTime' in params ? params.CycleStartTime : null;
3041
+ this.CycleEndTime = 'CycleEndTime' in params ? params.CycleEndTime : null;
3042
+
3043
+ if (params.BillingItems) {
3044
+ this.BillingItems = new Array();
3045
+ for (let z in params.BillingItems) {
3046
+ let obj = new TokenSummaryBillingItem();
3047
+ obj.deserialize(params.BillingItems[z]);
3048
+ this.BillingItems.push(obj);
1359
3049
  }
1360
3050
  }
1361
- this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
1362
- this.Current = 'Current' in params ? params.Current : null;
1363
- this.PageSize = 'PageSize' in params ? params.PageSize : null;
1364
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
1365
3051
 
1366
3052
  }
1367
3053
  }
1368
3054
 
1369
3055
  /**
1370
- * ModifyApiKeyStatus response structure.
3056
+ * DescribeTokenPlanList request structure.
1371
3057
  * @class
1372
3058
  */
1373
- class ModifyApiKeyStatusResponse extends AbstractModel {
3059
+ class DescribeTokenPlanListRequest extends AbstractModel {
1374
3060
  constructor(){
1375
3061
  super();
1376
3062
 
1377
3063
  /**
1378
- * 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.
1379
- * @type {string || null}
3064
+ * Offset of paginated query. Default value: 0.
3065
+ * @type {number || null}
1380
3066
  */
1381
- this.RequestId = null;
3067
+ this.Offset = null;
3068
+
3069
+ /**
3070
+ * Number of results returned by paging query. Default value: 20. Maximum value: 100.
3071
+ * @type {number || null}
3072
+ */
3073
+ this.Limit = null;
3074
+
3075
+ /**
3076
+ * Paginate the query filter criteria list. Supported filter fields: TeamId (Package ID), Name (package name), StopReason (disable reason), ProductType (package type).
3077
+ * @type {Array.<RequestFilter> || null}
3078
+ */
3079
+ this.Filters = null;
3080
+
3081
+ /**
3082
+ * List of sorting criteria. Supported sorting fields: CreatedAt (creation time) and UpdatedAt (update time). By default, results are sorted by CreatedAt in descending order.
3083
+ * @type {Array.<RequestSort> || null}
3084
+ */
3085
+ this.Sorts = null;
1382
3086
 
1383
3087
  }
1384
3088
 
@@ -1389,19 +3093,44 @@ class ModifyApiKeyStatusResponse extends AbstractModel {
1389
3093
  if (!params) {
1390
3094
  return;
1391
3095
  }
1392
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
3096
+ this.Offset = 'Offset' in params ? params.Offset : null;
3097
+ this.Limit = 'Limit' in params ? params.Limit : null;
3098
+
3099
+ if (params.Filters) {
3100
+ this.Filters = new Array();
3101
+ for (let z in params.Filters) {
3102
+ let obj = new RequestFilter();
3103
+ obj.deserialize(params.Filters[z]);
3104
+ this.Filters.push(obj);
3105
+ }
3106
+ }
3107
+
3108
+ if (params.Sorts) {
3109
+ this.Sorts = new Array();
3110
+ for (let z in params.Sorts) {
3111
+ let obj = new RequestSort();
3112
+ obj.deserialize(params.Sorts[z]);
3113
+ this.Sorts.push(obj);
3114
+ }
3115
+ }
1393
3116
 
1394
3117
  }
1395
3118
  }
1396
3119
 
1397
3120
  /**
1398
- * CreateApiKey response structure.
3121
+ * UpgradeTokenPlanTeamOrder response structure.
1399
3122
  * @class
1400
3123
  */
1401
- class CreateApiKeyResponse extends AbstractModel {
3124
+ class UpgradeTokenPlanTeamOrderResponse extends AbstractModel {
1402
3125
  constructor(){
1403
3126
  super();
1404
3127
 
3128
+ /**
3129
+ * Tencent Cloud order ID. Used to associate all sub-orders under an upgrade operation.
3130
+ * @type {string || null}
3131
+ */
3132
+ this.BigOrderId = null;
3133
+
1405
3134
  /**
1406
3135
  * 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.
1407
3136
  * @type {string || null}
@@ -1417,19 +3146,32 @@ class CreateApiKeyResponse extends AbstractModel {
1417
3146
  if (!params) {
1418
3147
  return;
1419
3148
  }
3149
+ this.BigOrderId = 'BigOrderId' in params ? params.BigOrderId : null;
1420
3150
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
1421
3151
 
1422
3152
  }
1423
3153
  }
1424
3154
 
1425
3155
  /**
1426
- * DeleteApiKey request structure.
3156
+ * ModifyGlossaryEntries response structure.
1427
3157
  * @class
1428
3158
  */
1429
- class DeleteApiKeyRequest extends AbstractModel {
3159
+ class ModifyGlossaryEntriesResponse extends AbstractModel {
1430
3160
  constructor(){
1431
3161
  super();
1432
3162
 
3163
+ /**
3164
+ * Terminology entry list after modification.
3165
+ * @type {Array.<GlossaryEntryItem> || null}
3166
+ */
3167
+ this.Entries = null;
3168
+
3169
+ /**
3170
+ * 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.
3171
+ * @type {string || null}
3172
+ */
3173
+ this.RequestId = null;
3174
+
1433
3175
  }
1434
3176
 
1435
3177
  /**
@@ -1440,34 +3182,128 @@ class DeleteApiKeyRequest extends AbstractModel {
1440
3182
  return;
1441
3183
  }
1442
3184
 
3185
+ if (params.Entries) {
3186
+ this.Entries = new Array();
3187
+ for (let z in params.Entries) {
3188
+ let obj = new GlossaryEntryItem();
3189
+ obj.deserialize(params.Entries[z]);
3190
+ this.Entries.push(obj);
3191
+ }
3192
+ }
3193
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
3194
+
1443
3195
  }
1444
3196
  }
1445
3197
 
1446
3198
  /**
1447
- * Filter criteria
3199
+ * DescribeTokenPlan response structure.
1448
3200
  * @class
1449
3201
  */
1450
- class RequestFilter extends AbstractModel {
3202
+ class DescribeTokenPlanResponse extends AbstractModel {
1451
3203
  constructor(){
1452
3204
  super();
1453
3205
 
1454
3206
  /**
1455
- * Filter field name.
3207
+ * Package ID
3208
+ * @type {string || null}
3209
+ */
3210
+ this.TeamId = null;
3211
+
3212
+ /**
3213
+ * Package name.
1456
3214
  * @type {string || null}
1457
3215
  */
1458
3216
  this.Name = null;
1459
3217
 
1460
3218
  /**
1461
- * Filter operator. Values: EXACT (exact match), FUZZY (fuzzy matching), NOT (exclusion).
3219
+ * Root account APP ID.
1462
3220
  * @type {string || null}
1463
3221
  */
1464
- this.Op = null;
3222
+ this.AppId = null;
1465
3223
 
1466
3224
  /**
1467
- * Filter value list. Supports up to 10.
1468
- * @type {Array.<string> || null}
3225
+ * Main account UIN.
3226
+ * @type {string || null}
1469
3227
  */
1470
- this.Values = null;
3228
+ this.Uin = null;
3229
+
3230
+ /**
3231
+ * Status. Valid values: enable, disable.
3232
+ * @type {string || null}
3233
+ */
3234
+ this.Status = null;
3235
+
3236
+ /**
3237
+ * Disablement reason. Value: NORMAL, ISOLATED, FROZEN, EXHAUSTED, DESTROYED.
3238
+ * @type {string || null}
3239
+ */
3240
+ this.StopReason = null;
3241
+
3242
+ /**
3243
+ * Maximum number of API Keys that can be created.
3244
+ * @type {number || null}
3245
+ */
3246
+ this.ApiKeyMax = null;
3247
+
3248
+ /**
3249
+ * Cloud billing prepaid resource package ID.
3250
+ * @type {string || null}
3251
+ */
3252
+ this.PrepayResourceID = null;
3253
+
3254
+ /**
3255
+ * Creator. Packages created by a sub-account show the sub-account UIN.
3256
+ * @type {string || null}
3257
+ */
3258
+ this.Creator = null;
3259
+
3260
+ /**
3261
+ * Creation time.
3262
+ * @type {string || null}
3263
+ */
3264
+ this.CreatedAt = null;
3265
+
3266
+ /**
3267
+ * Update time.
3268
+ * @type {string || null}
3269
+ */
3270
+ this.UpdatedAt = null;
3271
+
3272
+ /**
3273
+ * Basic information of the package.
3274
+ * @type {TokenPlanPackageInfo || null}
3275
+ */
3276
+ this.PackageInfo = null;
3277
+
3278
+ /**
3279
+ * Auto-renewal flag. Value: 0 (manual renewal), 1 (auto renewal), 2 (no automatic renewal). It is not returned if not bound to a prepaid resource.
3280
+ * @type {number || null}
3281
+ */
3282
+ this.AutoRenewFlag = null;
3283
+
3284
+ /**
3285
+ * Current number of created API Keys.
3286
+ * @type {number || null}
3287
+ */
3288
+ this.ApiKeyCount = null;
3289
+
3290
+ /**
3291
+ * Token usage details in the current cycle
3292
+ * @type {TokenSummary || null}
3293
+ */
3294
+ this.TokenSummary = null;
3295
+
3296
+ /**
3297
+ * Package type. Values: enterprise (Enterprise Professional package), enterprise-auto (Enterprise Light package)
3298
+ * @type {string || null}
3299
+ */
3300
+ this.ProductType = null;
3301
+
3302
+ /**
3303
+ * 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.
3304
+ * @type {string || null}
3305
+ */
3306
+ this.RequestId = null;
1471
3307
 
1472
3308
  }
1473
3309
 
@@ -1478,32 +3314,90 @@ class RequestFilter extends AbstractModel {
1478
3314
  if (!params) {
1479
3315
  return;
1480
3316
  }
3317
+ this.TeamId = 'TeamId' in params ? params.TeamId : null;
1481
3318
  this.Name = 'Name' in params ? params.Name : null;
1482
- this.Op = 'Op' in params ? params.Op : null;
1483
- this.Values = 'Values' in params ? params.Values : null;
3319
+ this.AppId = 'AppId' in params ? params.AppId : null;
3320
+ this.Uin = 'Uin' in params ? params.Uin : null;
3321
+ this.Status = 'Status' in params ? params.Status : null;
3322
+ this.StopReason = 'StopReason' in params ? params.StopReason : null;
3323
+ this.ApiKeyMax = 'ApiKeyMax' in params ? params.ApiKeyMax : null;
3324
+ this.PrepayResourceID = 'PrepayResourceID' in params ? params.PrepayResourceID : null;
3325
+ this.Creator = 'Creator' in params ? params.Creator : null;
3326
+ this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
3327
+ this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null;
3328
+
3329
+ if (params.PackageInfo) {
3330
+ let obj = new TokenPlanPackageInfo();
3331
+ obj.deserialize(params.PackageInfo)
3332
+ this.PackageInfo = obj;
3333
+ }
3334
+ this.AutoRenewFlag = 'AutoRenewFlag' in params ? params.AutoRenewFlag : null;
3335
+ this.ApiKeyCount = 'ApiKeyCount' in params ? params.ApiKeyCount : null;
3336
+
3337
+ if (params.TokenSummary) {
3338
+ let obj = new TokenSummary();
3339
+ obj.deserialize(params.TokenSummary)
3340
+ this.TokenSummary = obj;
3341
+ }
3342
+ this.ProductType = 'ProductType' in params ? params.ProductType : null;
3343
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1484
3344
 
1485
3345
  }
1486
3346
  }
1487
3347
 
1488
3348
  /**
1489
- * ModifyGlossaryEntries response structure.
3349
+ * CreateTokenPlanApiKeys request structure.
1490
3350
  * @class
1491
3351
  */
1492
- class ModifyGlossaryEntriesResponse extends AbstractModel {
3352
+ class CreateTokenPlanApiKeysRequest extends AbstractModel {
1493
3353
  constructor(){
1494
3354
  super();
1495
3355
 
1496
3356
  /**
1497
- * Terminology entry list after modification.
1498
- * @type {Array.<GlossaryEntryItem> || null}
3357
+ * Package ID. You can obtain it through the DescribeTokenPlanList API.
3358
+ * @type {string || null}
1499
3359
  */
1500
- this.Entries = null;
3360
+ this.TeamId = null;
1501
3361
 
1502
3362
  /**
1503
- * 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.
3363
+ * API key name, up to 128 characters. If the number of API keys created exceeds 1, the actual name format is {ApiKeyName}-{serial number} (for example, mykey-1, mykey-2).
1504
3364
  * @type {string || null}
1505
3365
  */
1506
- this.RequestId = null;
3366
+ this.ApiKeyName = null;
3367
+
3368
+ /**
3369
+ * Number of creations. Value range: 1–10.
3370
+ * @type {number || null}
3371
+ */
3372
+ this.Count = null;
3373
+
3374
+ /**
3375
+ * List of available models. If the package type is the enterprise edition professional package, you can specify a model or pass in "all". "all" means all models supported by the package are available for use. To specify specific models, pass in Model IDs. "all" and specific Model IDs cannot be specified at the same time. If not provided, it indicates the API Key does not support any models, thereby impacting normal use of the API Key. If the package type is the enterprise edition lite package, this field will be force overwritten to ["auto"] regardless of whether it is provided and what value is passed in.
3376
+ * @type {Array.<string> || null}
3377
+ */
3378
+ this.AllowedModels = null;
3379
+
3380
+ /**
3381
+ * Exclusive reserved quota. If not passed in, the value is `0`, which means no exclusive reserved quota is assigned to the API Key. Measurement units are as follows:
3382
+ -Package type is professional, unit value is points;
3383
+ -Package type is lite package, and the measurement unit is token.
3384
+ * @type {number || null}
3385
+ */
3386
+ this.ExclusiveQuota = null;
3387
+
3388
+ /**
3389
+ * Total credit limit. -1 means unlimited. It must be -1 or greater than or equal to the current ExclusiveQuota of the API Key. If not passed, no upper limit is set. The units are as follows:
3390
+ -Package type is professional, unit value is points;
3391
+ -Package type is lite package, and the measurement unit is token.
3392
+ * @type {number || null}
3393
+ */
3394
+ this.TotalQuota = null;
3395
+
3396
+ /**
3397
+ * TPM (Tokens Per Minute) limit. If not passed, the plan-level TPM is used. Must be >= 0 and <= the package TPM.
3398
+ * @type {number || null}
3399
+ */
3400
+ this.TPM = null;
1507
3401
 
1508
3402
  }
1509
3403
 
@@ -1514,39 +3408,30 @@ class ModifyGlossaryEntriesResponse extends AbstractModel {
1514
3408
  if (!params) {
1515
3409
  return;
1516
3410
  }
1517
-
1518
- if (params.Entries) {
1519
- this.Entries = new Array();
1520
- for (let z in params.Entries) {
1521
- let obj = new GlossaryEntryItem();
1522
- obj.deserialize(params.Entries[z]);
1523
- this.Entries.push(obj);
1524
- }
1525
- }
1526
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
3411
+ this.TeamId = 'TeamId' in params ? params.TeamId : null;
3412
+ this.ApiKeyName = 'ApiKeyName' in params ? params.ApiKeyName : null;
3413
+ this.Count = 'Count' in params ? params.Count : null;
3414
+ this.AllowedModels = 'AllowedModels' in params ? params.AllowedModels : null;
3415
+ this.ExclusiveQuota = 'ExclusiveQuota' in params ? params.ExclusiveQuota : null;
3416
+ this.TotalQuota = 'TotalQuota' in params ? params.TotalQuota : null;
3417
+ this.TPM = 'TPM' in params ? params.TPM : null;
1527
3418
 
1528
3419
  }
1529
3420
  }
1530
3421
 
1531
3422
  /**
1532
- * Sort criteria
3423
+ * DeleteTokenPlanApiKey request structure.
1533
3424
  * @class
1534
3425
  */
1535
- class RequestSort extends AbstractModel {
3426
+ class DeleteTokenPlanApiKeyRequest extends AbstractModel {
1536
3427
  constructor(){
1537
3428
  super();
1538
3429
 
1539
3430
  /**
1540
- * Sorting field name.
1541
- * @type {string || null}
1542
- */
1543
- this.Name = null;
1544
-
1545
- /**
1546
- * Sorting order. Value: ASC (ascending), DESC (descending).
3431
+ * API Key ID. You can obtain it through the DescribeTokenPlanApiKeyList API.
1547
3432
  * @type {string || null}
1548
3433
  */
1549
- this.Order = null;
3434
+ this.ApiKeyId = null;
1550
3435
 
1551
3436
  }
1552
3437
 
@@ -1557,8 +3442,7 @@ class RequestSort extends AbstractModel {
1557
3442
  if (!params) {
1558
3443
  return;
1559
3444
  }
1560
- this.Name = 'Name' in params ? params.Name : null;
1561
- this.Order = 'Order' in params ? params.Order : null;
3445
+ this.ApiKeyId = 'ApiKeyId' in params ? params.ApiKeyId : null;
1562
3446
 
1563
3447
  }
1564
3448
  }
@@ -1733,6 +3617,106 @@ class DescribeApiKeyResponse extends AbstractModel {
1733
3617
  }
1734
3618
  }
1735
3619
 
3620
+ /**
3621
+ * DescribeTokenPlanApiKeyList request structure.
3622
+ * @class
3623
+ */
3624
+ class DescribeTokenPlanApiKeyListRequest extends AbstractModel {
3625
+ constructor(){
3626
+ super();
3627
+
3628
+ /**
3629
+ * Package ID. You can obtain it through the DescribeTokenPlanList API.
3630
+ * @type {string || null}
3631
+ */
3632
+ this.TeamId = null;
3633
+
3634
+ /**
3635
+ * Offset of paginated query. Default value: 0.
3636
+ * @type {number || null}
3637
+ */
3638
+ this.Offset = null;
3639
+
3640
+ /**
3641
+ * Number of results returned by paging query. Default value: 20. Maximum value: 100.
3642
+ * @type {number || null}
3643
+ */
3644
+ this.Limit = null;
3645
+
3646
+ /**
3647
+ * Paginate the list of query filter criteria. Supported filter fields: ApiKeyId (API Key ID), Name (API Key name), Status (whether the API Key is available), StopReason (reason for disabling the API Key), UseStatus (API Key user-side switch).
3648
+ * @type {Array.<RequestFilter> || null}
3649
+ */
3650
+ this.Filters = null;
3651
+
3652
+ /**
3653
+ * Paginate the list of sorting criteria. Supported sorting fields: CreatedAt (creation time) and UpdatedAt (update time). By default, results are sorted by CreatedAt in descending order.
3654
+ * @type {Array.<RequestSort> || null}
3655
+ */
3656
+ this.Sorts = null;
3657
+
3658
+ }
3659
+
3660
+ /**
3661
+ * @private
3662
+ */
3663
+ deserialize(params) {
3664
+ if (!params) {
3665
+ return;
3666
+ }
3667
+ this.TeamId = 'TeamId' in params ? params.TeamId : null;
3668
+ this.Offset = 'Offset' in params ? params.Offset : null;
3669
+ this.Limit = 'Limit' in params ? params.Limit : null;
3670
+
3671
+ if (params.Filters) {
3672
+ this.Filters = new Array();
3673
+ for (let z in params.Filters) {
3674
+ let obj = new RequestFilter();
3675
+ obj.deserialize(params.Filters[z]);
3676
+ this.Filters.push(obj);
3677
+ }
3678
+ }
3679
+
3680
+ if (params.Sorts) {
3681
+ this.Sorts = new Array();
3682
+ for (let z in params.Sorts) {
3683
+ let obj = new RequestSort();
3684
+ obj.deserialize(params.Sorts[z]);
3685
+ this.Sorts.push(obj);
3686
+ }
3687
+ }
3688
+
3689
+ }
3690
+ }
3691
+
3692
+ /**
3693
+ * DescribeTokenPlanApiKeySecret request structure.
3694
+ * @class
3695
+ */
3696
+ class DescribeTokenPlanApiKeySecretRequest extends AbstractModel {
3697
+ constructor(){
3698
+ super();
3699
+
3700
+ /**
3701
+ * API Key ID. You can obtain it through the DescribeTokenPlanApiKeyList API.
3702
+ * @type {string || null}
3703
+ */
3704
+ this.ApiKeyId = null;
3705
+
3706
+ }
3707
+
3708
+ /**
3709
+ * @private
3710
+ */
3711
+ deserialize(params) {
3712
+ if (!params) {
3713
+ return;
3714
+ }
3715
+ this.ApiKeyId = 'ApiKeyId' in params ? params.ApiKeyId : null;
3716
+
3717
+ }
3718
+ }
3719
+
1736
3720
  /**
1737
3721
  * CreateApiKey request structure.
1738
3722
  * @class
@@ -1755,16 +3739,28 @@ class CreateApiKeyRequest extends AbstractModel {
1755
3739
  }
1756
3740
 
1757
3741
  module.exports = {
3742
+ DescribeTokenPlanListResponse: DescribeTokenPlanListResponse,
1758
3743
  GlossaryItem: GlossaryItem,
1759
3744
  BindingItem: BindingItem,
3745
+ DescribeTokenPlanApiKeySecretResponse: DescribeTokenPlanApiKeySecretResponse,
3746
+ TokenPlanApiKeyListItem: TokenPlanApiKeyListItem,
3747
+ CreateApiKeysResultItem: CreateApiKeysResultItem,
1760
3748
  GlossaryEntryInput: GlossaryEntryInput,
3749
+ ModifyTokenPlanApiKeySecretResponse: ModifyTokenPlanApiKeySecretResponse,
3750
+ DescribeTokenPlanApiKeyListResponse: DescribeTokenPlanApiKeyListResponse,
1761
3751
  DeleteGlossaryEntryInput: DeleteGlossaryEntryInput,
3752
+ DescribeTokenPlanRequest: DescribeTokenPlanRequest,
1762
3753
  GlossaryEntryItem: GlossaryEntryItem,
1763
3754
  DeleteGlossaryResponse: DeleteGlossaryResponse,
1764
- QuotaInfo: QuotaInfo,
3755
+ DescribeTokenPlanApiKeyResponse: DescribeTokenPlanApiKeyResponse,
3756
+ ModifyTokenPlanApiKeySecretRequest: ModifyTokenPlanApiKeySecretRequest,
3757
+ SubPackageBalance: SubPackageBalance,
1765
3758
  DeleteGlossaryEntriesResponse: DeleteGlossaryEntriesResponse,
1766
3759
  DescribeApiKeyListResponse: DescribeApiKeyListResponse,
3760
+ RenewTokenPlanTeamOrderResponse: RenewTokenPlanTeamOrderResponse,
3761
+ TokenPlanApiKeyInfo: TokenPlanApiKeyInfo,
1767
3762
  ModifyApiKeyInfoResponse: ModifyApiKeyInfoResponse,
3763
+ ModifyTokenPlanApiKeyResponse: ModifyTokenPlanApiKeyResponse,
1768
3764
  DescribeApiKeyListRequest: DescribeApiKeyListRequest,
1769
3765
  CreateGlossaryRequest: CreateGlossaryRequest,
1770
3766
  DescribeGlossaryEntriesResponse: DescribeGlossaryEntriesResponse,
@@ -1772,24 +3768,47 @@ module.exports = {
1772
3768
  DescribeGlossaryEntriesRequest: DescribeGlossaryEntriesRequest,
1773
3769
  DeleteGlossaryEntriesRequest: DeleteGlossaryEntriesRequest,
1774
3770
  CreateGlossaryEntriesResponse: CreateGlossaryEntriesResponse,
3771
+ CreateTokenPlanApiKeysResponse: CreateTokenPlanApiKeysResponse,
3772
+ DescribeTokenPlanApiKeyRequest: DescribeTokenPlanApiKeyRequest,
3773
+ DescribeApiKeyRequest: DescribeApiKeyRequest,
1775
3774
  DeleteApiKeyResponse: DeleteApiKeyResponse,
1776
3775
  ModifyGlossaryEntryInput: ModifyGlossaryEntryInput,
3776
+ ModifyTokenPlanApiKeyRequest: ModifyTokenPlanApiKeyRequest,
3777
+ TokenSummaryBillingItem: TokenSummaryBillingItem,
3778
+ DescribeTokenPlanApiKeyUsageDetailResponse: DescribeTokenPlanApiKeyUsageDetailResponse,
3779
+ RequestSort: RequestSort,
1777
3780
  ModifyApiKeyInfoRequest: ModifyApiKeyInfoRequest,
3781
+ TokenPlanListItem: TokenPlanListItem,
1778
3782
  CreateGlossaryResponse: CreateGlossaryResponse,
3783
+ CreateTokenPlanTeamOrderAndBuyRequest: CreateTokenPlanTeamOrderAndBuyRequest,
1779
3784
  ModifyGlossaryEntriesRequest: ModifyGlossaryEntriesRequest,
3785
+ RenewTokenPlanTeamOrderRequest: RenewTokenPlanTeamOrderRequest,
1780
3786
  DescribeGlossariesRequest: DescribeGlossariesRequest,
1781
- DescribeApiKeyRequest: DescribeApiKeyRequest,
3787
+ DeleteTokenPlanApiKeyResponse: DeleteTokenPlanApiKeyResponse,
3788
+ DescribeTokenPlanApiKeyUsageDetailRequest: DescribeTokenPlanApiKeyUsageDetailRequest,
3789
+ UpgradeTokenPlanTeamOrderRequest: UpgradeTokenPlanTeamOrderRequest,
1782
3790
  ModifyApiKeyStatusRequest: ModifyApiKeyStatusRequest,
3791
+ QuotaInfo: QuotaInfo,
1783
3792
  CreateGlossaryEntriesRequest: CreateGlossaryEntriesRequest,
1784
3793
  ApiKeyDetail: ApiKeyDetail,
1785
3794
  DescribeGlossariesResponse: DescribeGlossariesResponse,
1786
3795
  ModifyApiKeyStatusResponse: ModifyApiKeyStatusResponse,
3796
+ BatchCreateFailedItem: BatchCreateFailedItem,
1787
3797
  CreateApiKeyResponse: CreateApiKeyResponse,
3798
+ TokenPlanPackageInfo: TokenPlanPackageInfo,
3799
+ CreateTokenPlanTeamOrderAndBuyResponse: CreateTokenPlanTeamOrderAndBuyResponse,
1788
3800
  DeleteApiKeyRequest: DeleteApiKeyRequest,
1789
3801
  RequestFilter: RequestFilter,
3802
+ TokenSummary: TokenSummary,
3803
+ DescribeTokenPlanListRequest: DescribeTokenPlanListRequest,
3804
+ UpgradeTokenPlanTeamOrderResponse: UpgradeTokenPlanTeamOrderResponse,
1790
3805
  ModifyGlossaryEntriesResponse: ModifyGlossaryEntriesResponse,
1791
- RequestSort: RequestSort,
3806
+ DescribeTokenPlanResponse: DescribeTokenPlanResponse,
3807
+ CreateTokenPlanApiKeysRequest: CreateTokenPlanApiKeysRequest,
3808
+ DeleteTokenPlanApiKeyRequest: DeleteTokenPlanApiKeyRequest,
1792
3809
  DescribeApiKeyResponse: DescribeApiKeyResponse,
3810
+ DescribeTokenPlanApiKeyListRequest: DescribeTokenPlanApiKeyListRequest,
3811
+ DescribeTokenPlanApiKeySecretRequest: DescribeTokenPlanApiKeySecretRequest,
1793
3812
  CreateApiKeyRequest: CreateApiKeyRequest,
1794
3813
 
1795
3814
  }