tencentcloud-sdk-nodejs-intl-en 3.0.1348 → 3.0.1349

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.1348",
3
+ "version": "3.0.1349",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.1348";
1
+ const sdkVersion = "3.0.1349";
2
2
  module.exports = sdkVersion
@@ -16,6 +16,118 @@
16
16
  */
17
17
  const AbstractModel = require("../../common/abstract_model");
18
18
 
19
+ /**
20
+ * Order.
21
+ * @class
22
+ */
23
+ class Sort extends AbstractModel {
24
+ constructor(){
25
+ super();
26
+
27
+ /**
28
+ * Ascending Descending Order
29
+ * @type {string || null}
30
+ */
31
+ this.Type = null;
32
+
33
+ /**
34
+ * Field
35
+ * @type {string || null}
36
+ */
37
+ this.Field = null;
38
+
39
+ }
40
+
41
+ /**
42
+ * @private
43
+ */
44
+ deserialize(params) {
45
+ if (!params) {
46
+ return;
47
+ }
48
+ this.Type = 'Type' in params ? params.Type : null;
49
+ this.Field = 'Field' in params ? params.Field : null;
50
+
51
+ }
52
+ }
53
+
54
+ /**
55
+ * DescribeUserQuota response structure.
56
+ * @class
57
+ */
58
+ class DescribeUserQuotaResponse extends AbstractModel {
59
+ constructor(){
60
+ super();
61
+
62
+ /**
63
+ * Quota Id
64
+ * @type {number || null}
65
+ */
66
+ this.QuotaId = null;
67
+
68
+ /**
69
+ * quota name
70
+ * @type {string || null}
71
+ */
72
+ this.QuotaName = null;
73
+
74
+ /**
75
+ * Product name
76
+ * @type {string || null}
77
+ */
78
+ this.ProductName = null;
79
+
80
+ /**
81
+ * Quota unit
82
+ * @type {string || null}
83
+ */
84
+ this.QuotaUnit = null;
85
+
86
+ /**
87
+ * User Quota
88
+ * @type {number || null}
89
+ */
90
+ this.TotalQuota = null;
91
+
92
+ /**
93
+ * Quota usage
94
+ * @type {number || null}
95
+ */
96
+ this.TotalUsage = null;
97
+
98
+ /**
99
+ * Quota description
100
+ * @type {string || null}
101
+ */
102
+ this.QuotaDescription = null;
103
+
104
+ /**
105
+ * 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.
106
+ * @type {string || null}
107
+ */
108
+ this.RequestId = null;
109
+
110
+ }
111
+
112
+ /**
113
+ * @private
114
+ */
115
+ deserialize(params) {
116
+ if (!params) {
117
+ return;
118
+ }
119
+ this.QuotaId = 'QuotaId' in params ? params.QuotaId : null;
120
+ this.QuotaName = 'QuotaName' in params ? params.QuotaName : null;
121
+ this.ProductName = 'ProductName' in params ? params.ProductName : null;
122
+ this.QuotaUnit = 'QuotaUnit' in params ? params.QuotaUnit : null;
123
+ this.TotalQuota = 'TotalQuota' in params ? params.TotalQuota : null;
124
+ this.TotalUsage = 'TotalUsage' in params ? params.TotalUsage : null;
125
+ this.QuotaDescription = 'QuotaDescription' in params ? params.QuotaDescription : null;
126
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
127
+
128
+ }
129
+ }
130
+
19
131
  /**
20
132
  * EnableAlarm response structure.
21
133
  * @class
@@ -255,6 +367,141 @@ class Alarm extends AbstractModel {
255
367
  }
256
368
  }
257
369
 
370
+ /**
371
+ * DescribeAlarms request structure.
372
+ * @class
373
+ */
374
+ class DescribeAlarmsRequest extends AbstractModel {
375
+ constructor(){
376
+ super();
377
+
378
+ /**
379
+ * Number of items per page. maximum 100.
380
+ * @type {number || null}
381
+ */
382
+ this.Limit = null;
383
+
384
+ /**
385
+ * Offset.
386
+ * @type {number || null}
387
+ */
388
+ this.Offset = null;
389
+
390
+ /**
391
+ * Product ID.
392
+ * @type {number || null}
393
+ */
394
+ this.ProductId = null;
395
+
396
+ /**
397
+ * Quota ID.
398
+ * @type {number || null}
399
+ */
400
+ this.QuotaId = null;
401
+
402
+ /**
403
+ * Alarm, quota name.
404
+ * @type {string || null}
405
+ */
406
+ this.Content = null;
407
+
408
+ /**
409
+ * Member uins.
410
+ * @type {Array.<number> || null}
411
+ */
412
+ this.MemberUins = null;
413
+
414
+ /**
415
+ * AlAlarm metric.
416
+ * @type {number || null}
417
+ */
418
+ this.Metrics = null;
419
+
420
+ /**
421
+ * Rule ID
422
+ * @type {number || null}
423
+ */
424
+ this.Id = null;
425
+
426
+ }
427
+
428
+ /**
429
+ * @private
430
+ */
431
+ deserialize(params) {
432
+ if (!params) {
433
+ return;
434
+ }
435
+ this.Limit = 'Limit' in params ? params.Limit : null;
436
+ this.Offset = 'Offset' in params ? params.Offset : null;
437
+ this.ProductId = 'ProductId' in params ? params.ProductId : null;
438
+ this.QuotaId = 'QuotaId' in params ? params.QuotaId : null;
439
+ this.Content = 'Content' in params ? params.Content : null;
440
+ this.MemberUins = 'MemberUins' in params ? params.MemberUins : null;
441
+ this.Metrics = 'Metrics' in params ? params.Metrics : null;
442
+ this.Id = 'Id' in params ? params.Id : null;
443
+
444
+ }
445
+ }
446
+
447
+ /**
448
+ * DescribeAggregateUserQuotas response structure.
449
+ * @class
450
+ */
451
+ class DescribeAggregateUserQuotasResponse extends AbstractModel {
452
+ constructor(){
453
+ super();
454
+
455
+ /**
456
+ * Quota Id
457
+ * @type {number || null}
458
+ */
459
+ this.OwnerUin = null;
460
+
461
+ /**
462
+ * quota name
463
+ * @type {number || null}
464
+ */
465
+ this.Count = null;
466
+
467
+ /**
468
+ * Quota dimension
469
+ Note: This field may return null, indicating that no valid values can be obtained.
470
+ * @type {Array.<UserQuota> || null}
471
+ */
472
+ this.Data = null;
473
+
474
+ /**
475
+ * 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.
476
+ * @type {string || null}
477
+ */
478
+ this.RequestId = null;
479
+
480
+ }
481
+
482
+ /**
483
+ * @private
484
+ */
485
+ deserialize(params) {
486
+ if (!params) {
487
+ return;
488
+ }
489
+ this.OwnerUin = 'OwnerUin' in params ? params.OwnerUin : null;
490
+ this.Count = 'Count' in params ? params.Count : null;
491
+
492
+ if (params.Data) {
493
+ this.Data = new Array();
494
+ for (let z in params.Data) {
495
+ let obj = new UserQuota();
496
+ obj.deserialize(params.Data[z]);
497
+ this.Data.push(obj);
498
+ }
499
+ }
500
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
501
+
502
+ }
503
+ }
504
+
258
505
  /**
259
506
  * EnableAlarm request structure.
260
507
  * @class
@@ -318,6 +565,41 @@ class DeleteAlarmResponse extends AbstractModel {
318
565
  }
319
566
  }
320
567
 
568
+ /**
569
+ * Filter
570
+ * @class
571
+ */
572
+ class Filter extends AbstractModel {
573
+ constructor(){
574
+ super();
575
+
576
+ /**
577
+ * Filter name
578
+ * @type {string || null}
579
+ */
580
+ this.Name = null;
581
+
582
+ /**
583
+ * Values after filtering
584
+ * @type {string || null}
585
+ */
586
+ this.Value = null;
587
+
588
+ }
589
+
590
+ /**
591
+ * @private
592
+ */
593
+ deserialize(params) {
594
+ if (!params) {
595
+ return;
596
+ }
597
+ this.Name = 'Name' in params ? params.Name : null;
598
+ this.Value = 'Value' in params ? params.Value : null;
599
+
600
+ }
601
+ }
602
+
321
603
  /**
322
604
  * DeleteAlarm request structure.
323
605
  * @class
@@ -511,60 +793,259 @@ class UpdateAlarmResponse extends AbstractModel {
511
793
  }
512
794
 
513
795
  /**
514
- * DescribeAlarms request structure.
796
+ * Quota dimension
515
797
  * @class
516
798
  */
517
- class DescribeAlarmsRequest extends AbstractModel {
799
+ class QuotaDimension extends AbstractModel {
518
800
  constructor(){
519
801
  super();
520
802
 
521
803
  /**
522
- * Number of items per page. maximum 100.
804
+ * Quota dimension
805
+ Note: This field may return null, indicating that no valid values can be obtained.
806
+ * @type {string || null}
807
+ */
808
+ this.DimensionName = null;
809
+
810
+ /**
811
+ * Dimension value
812
+ Note: This field may return null, indicating that no valid values can be obtained.
813
+ * @type {string || null}
814
+ */
815
+ this.PrimaryValue = null;
816
+
817
+ }
818
+
819
+ /**
820
+ * @private
821
+ */
822
+ deserialize(params) {
823
+ if (!params) {
824
+ return;
825
+ }
826
+ this.DimensionName = 'DimensionName' in params ? params.DimensionName : null;
827
+ this.PrimaryValue = 'PrimaryValue' in params ? params.PrimaryValue : null;
828
+
829
+ }
830
+ }
831
+
832
+ /**
833
+ * DescribeUserQuota request structure.
834
+ * @class
835
+ */
836
+ class DescribeUserQuotaRequest extends AbstractModel {
837
+ constructor(){
838
+ super();
839
+
840
+ /**
841
+ * Product name
842
+ * @type {string || null}
843
+ */
844
+ this.ProductName = null;
845
+
846
+ /**
847
+ * Quota id
848
+ * @type {Sort || null}
849
+ */
850
+ this.QuotaId = null;
851
+
852
+ /**
853
+ * Quota ID of each product
854
+ * @type {string || null}
855
+ */
856
+ this.QuotaInstanceId = null;
857
+
858
+ }
859
+
860
+ /**
861
+ * @private
862
+ */
863
+ deserialize(params) {
864
+ if (!params) {
865
+ return;
866
+ }
867
+ this.ProductName = 'ProductName' in params ? params.ProductName : null;
868
+
869
+ if (params.QuotaId) {
870
+ let obj = new Sort();
871
+ obj.deserialize(params.QuotaId)
872
+ this.QuotaId = obj;
873
+ }
874
+ this.QuotaInstanceId = 'QuotaInstanceId' in params ? params.QuotaInstanceId : null;
875
+
876
+ }
877
+ }
878
+
879
+ /**
880
+ * User quota
881
+ * @class
882
+ */
883
+ class UserQuota extends AbstractModel {
884
+ constructor(){
885
+ super();
886
+
887
+ /**
888
+ * uin
523
889
  * @type {number || null}
524
890
  */
525
- this.Limit = null;
891
+ this.MemberUin = null;
526
892
 
527
893
  /**
528
- * Offset.
894
+ * Account nickname
895
+ * @type {string || null}
896
+ */
897
+ this.MemberName = null;
898
+
899
+ /**
900
+ * Quota Instance ID
901
+ * @type {string || null}
902
+ */
903
+ this.QuotaInstanceId = null;
904
+
905
+ /**
906
+ * Quota ID
529
907
  * @type {number || null}
530
908
  */
531
- this.Offset = null;
909
+ this.QuotaId = null;
532
910
 
533
911
  /**
534
- * Product ID.
912
+ * quota name
913
+ * @type {string || null}
914
+ */
915
+ this.QuotaName = null;
916
+
917
+ /**
918
+ * Product name
919
+ * @type {string || null}
920
+ */
921
+ this.ProductName = null;
922
+
923
+ /**
924
+ * Quota unit
925
+ * @type {string || null}
926
+ */
927
+ this.QuotaUnit = null;
928
+
929
+ /**
930
+ * Quota application method, enumeration value: 1: Can apply, 2: Ticket application, 3: Cannot apply.
535
931
  * @type {number || null}
536
932
  */
537
- this.ProductId = null;
933
+ this.ApplyType = null;
538
934
 
539
935
  /**
540
- * Quota ID.
936
+ * User Total Quota
541
937
  * @type {number || null}
542
938
  */
543
- this.QuotaId = null;
939
+ this.TotalQuota = null;
544
940
 
545
941
  /**
546
- * Alarm, quota name.
942
+ * Total usage of user quota
943
+ * @type {number || null}
944
+ */
945
+ this.TotalUsage = null;
946
+
947
+ /**
948
+ * Quota description
547
949
  * @type {string || null}
548
950
  */
549
- this.Content = null;
951
+ this.QuotaDescription = null;
550
952
 
551
953
  /**
552
- * Member uins.
954
+ * Quota Dimension Value
955
+ Note: This field may return null, indicating that no valid values can be obtained.
956
+ * @type {Array.<QuotaDimension> || null}
957
+ */
958
+ this.QuotaDimensions = null;
959
+
960
+ /**
961
+ * Status 5 Pending Approval
962
+ * @type {number || null}
963
+ */
964
+ this.Status = null;
965
+
966
+ }
967
+
968
+ /**
969
+ * @private
970
+ */
971
+ deserialize(params) {
972
+ if (!params) {
973
+ return;
974
+ }
975
+ this.MemberUin = 'MemberUin' in params ? params.MemberUin : null;
976
+ this.MemberName = 'MemberName' in params ? params.MemberName : null;
977
+ this.QuotaInstanceId = 'QuotaInstanceId' in params ? params.QuotaInstanceId : null;
978
+ this.QuotaId = 'QuotaId' in params ? params.QuotaId : null;
979
+ this.QuotaName = 'QuotaName' in params ? params.QuotaName : null;
980
+ this.ProductName = 'ProductName' in params ? params.ProductName : null;
981
+ this.QuotaUnit = 'QuotaUnit' in params ? params.QuotaUnit : null;
982
+ this.ApplyType = 'ApplyType' in params ? params.ApplyType : null;
983
+ this.TotalQuota = 'TotalQuota' in params ? params.TotalQuota : null;
984
+ this.TotalUsage = 'TotalUsage' in params ? params.TotalUsage : null;
985
+ this.QuotaDescription = 'QuotaDescription' in params ? params.QuotaDescription : null;
986
+
987
+ if (params.QuotaDimensions) {
988
+ this.QuotaDimensions = new Array();
989
+ for (let z in params.QuotaDimensions) {
990
+ let obj = new QuotaDimension();
991
+ obj.deserialize(params.QuotaDimensions[z]);
992
+ this.QuotaDimensions.push(obj);
993
+ }
994
+ }
995
+ this.Status = 'Status' in params ? params.Status : null;
996
+
997
+ }
998
+ }
999
+
1000
+ /**
1001
+ * DescribeAggregateUserQuotas request structure.
1002
+ * @class
1003
+ */
1004
+ class DescribeAggregateUserQuotasRequest extends AbstractModel {
1005
+ constructor(){
1006
+ super();
1007
+
1008
+ /**
1009
+ * Member account. Can be empty. If empty, query the current account list.
553
1010
  * @type {Array.<number> || null}
554
1011
  */
555
1012
  this.MemberUins = null;
556
1013
 
557
1014
  /**
558
- * AlAlarm metric.
1015
+ * limit
559
1016
  * @type {number || null}
560
1017
  */
561
- this.Metrics = null;
1018
+ this.Limit = null;
562
1019
 
563
1020
  /**
564
- * Rule ID
1021
+ * offset
565
1022
  * @type {number || null}
566
1023
  */
567
- this.Id = null;
1024
+ this.Offset = null;
1025
+
1026
+ /**
1027
+ * Filter
1028
+ * @type {Array.<Filter> || null}
1029
+ */
1030
+ this.Filter = null;
1031
+
1032
+ /**
1033
+ * sort
1034
+ * @type {Array.<Sort> || null}
1035
+ */
1036
+ this.Sort = null;
1037
+
1038
+ /**
1039
+ * Product ID
1040
+ * @type {number || null}
1041
+ */
1042
+ this.ProductId = null;
1043
+
1044
+ /**
1045
+ * Quota dimension
1046
+ * @type {Array.<QuotaDimension> || null}
1047
+ */
1048
+ this.QuotaDimensions = null;
568
1049
 
569
1050
  }
570
1051
 
@@ -575,29 +1056,60 @@ class DescribeAlarmsRequest extends AbstractModel {
575
1056
  if (!params) {
576
1057
  return;
577
1058
  }
1059
+ this.MemberUins = 'MemberUins' in params ? params.MemberUins : null;
578
1060
  this.Limit = 'Limit' in params ? params.Limit : null;
579
1061
  this.Offset = 'Offset' in params ? params.Offset : null;
1062
+
1063
+ if (params.Filter) {
1064
+ this.Filter = new Array();
1065
+ for (let z in params.Filter) {
1066
+ let obj = new Filter();
1067
+ obj.deserialize(params.Filter[z]);
1068
+ this.Filter.push(obj);
1069
+ }
1070
+ }
1071
+
1072
+ if (params.Sort) {
1073
+ this.Sort = new Array();
1074
+ for (let z in params.Sort) {
1075
+ let obj = new Sort();
1076
+ obj.deserialize(params.Sort[z]);
1077
+ this.Sort.push(obj);
1078
+ }
1079
+ }
580
1080
  this.ProductId = 'ProductId' in params ? params.ProductId : null;
581
- this.QuotaId = 'QuotaId' in params ? params.QuotaId : null;
582
- this.Content = 'Content' in params ? params.Content : null;
583
- this.MemberUins = 'MemberUins' in params ? params.MemberUins : null;
584
- this.Metrics = 'Metrics' in params ? params.Metrics : null;
585
- this.Id = 'Id' in params ? params.Id : null;
1081
+
1082
+ if (params.QuotaDimensions) {
1083
+ this.QuotaDimensions = new Array();
1084
+ for (let z in params.QuotaDimensions) {
1085
+ let obj = new QuotaDimension();
1086
+ obj.deserialize(params.QuotaDimensions[z]);
1087
+ this.QuotaDimensions.push(obj);
1088
+ }
1089
+ }
586
1090
 
587
1091
  }
588
1092
  }
589
1093
 
590
1094
  module.exports = {
1095
+ Sort: Sort,
1096
+ DescribeUserQuotaResponse: DescribeUserQuotaResponse,
591
1097
  EnableAlarmResponse: EnableAlarmResponse,
592
1098
  CreateAlarmResponse: CreateAlarmResponse,
593
1099
  CreateAlarmRequest: CreateAlarmRequest,
594
1100
  Alarm: Alarm,
1101
+ DescribeAlarmsRequest: DescribeAlarmsRequest,
1102
+ DescribeAggregateUserQuotasResponse: DescribeAggregateUserQuotasResponse,
595
1103
  EnableAlarmRequest: EnableAlarmRequest,
596
1104
  DeleteAlarmResponse: DeleteAlarmResponse,
1105
+ Filter: Filter,
597
1106
  DeleteAlarmRequest: DeleteAlarmRequest,
598
1107
  DescribeAlarmsResponse: DescribeAlarmsResponse,
599
1108
  UpdateAlarmRequest: UpdateAlarmRequest,
600
1109
  UpdateAlarmResponse: UpdateAlarmResponse,
601
- DescribeAlarmsRequest: DescribeAlarmsRequest,
1110
+ QuotaDimension: QuotaDimension,
1111
+ DescribeUserQuotaRequest: DescribeUserQuotaRequest,
1112
+ UserQuota: UserQuota,
1113
+ DescribeAggregateUserQuotasRequest: DescribeAggregateUserQuotasRequest,
602
1114
 
603
1115
  }