tencentcloud-sdk-nodejs-intl-en 3.0.1384 → 3.0.1386

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,145 @@
1
+ /*
2
+ * Copyright (c) 2018 Tencent. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+ const models = require("./models");
18
+ const AbstractClient = require('../../common/abstract_client')
19
+ const ModifyGlossaryEntriesRequest = models.ModifyGlossaryEntriesRequest;
20
+ const CreateGlossaryRequest = models.CreateGlossaryRequest;
21
+ const DescribeGlossaryEntriesResponse = models.DescribeGlossaryEntriesResponse;
22
+ const DeleteGlossaryRequest = models.DeleteGlossaryRequest;
23
+ const DescribeGlossaryEntriesRequest = models.DescribeGlossaryEntriesRequest;
24
+ const DescribeGlossariesRequest = models.DescribeGlossariesRequest;
25
+ const RequestFilter = models.RequestFilter;
26
+ const DeleteGlossaryEntriesRequest = models.DeleteGlossaryEntriesRequest;
27
+ const CreateGlossaryEntriesResponse = models.CreateGlossaryEntriesResponse;
28
+ const DeleteGlossaryEntryInput = models.DeleteGlossaryEntryInput;
29
+ const GlossaryEntryItem = models.GlossaryEntryItem;
30
+ const DeleteGlossaryResponse = models.DeleteGlossaryResponse;
31
+ const CreateGlossaryEntriesRequest = models.CreateGlossaryEntriesRequest;
32
+ const RequestSort = models.RequestSort;
33
+ const ModifyGlossaryEntriesResponse = models.ModifyGlossaryEntriesResponse;
34
+ const ModifyGlossaryEntryInput = models.ModifyGlossaryEntryInput;
35
+ const DeleteGlossaryEntriesResponse = models.DeleteGlossaryEntriesResponse;
36
+ const DescribeGlossariesResponse = models.DescribeGlossariesResponse;
37
+ const GlossaryItem = models.GlossaryItem;
38
+ const GlossaryEntryInput = models.GlossaryEntryInput;
39
+ const CreateGlossaryResponse = models.CreateGlossaryResponse;
40
+
41
+
42
+ /**
43
+ * tokenhub client
44
+ * @class
45
+ */
46
+ class TokenhubClient extends AbstractClient {
47
+
48
+ constructor(credential, region, profile) {
49
+ super("tokenhub.intl.tencentcloudapi.com", "2026-03-22", credential, region, profile);
50
+ }
51
+
52
+ /**
53
+ * Delete terminology entries in batches.
54
+
55
+ Delete terminology entries in batches under the specified Termbase. You can delete up to 200 entries at a time. If the Termbase is nonexistent or NOT_IN this application, it returns a ResourceNotFound error.
56
+ * @param {DeleteGlossaryEntriesRequest} req
57
+ * @param {function(string, DeleteGlossaryEntriesResponse):void} cb
58
+ * @public
59
+ */
60
+ DeleteGlossaryEntries(req, cb) {
61
+ let resp = new DeleteGlossaryEntriesResponse();
62
+ this.request("DeleteGlossaryEntries", req, resp, cb);
63
+ }
64
+
65
+ /**
66
+ * Create terminology entries in batches.
67
+
68
+ Create terminology entries in batches under the designated Termbase. You can create up to 100 entries at a time.
69
+ * @param {CreateGlossaryEntriesRequest} req
70
+ * @param {function(string, CreateGlossaryEntriesResponse):void} cb
71
+ * @public
72
+ */
73
+ CreateGlossaryEntries(req, cb) {
74
+ let resp = new CreateGlossaryEntriesResponse();
75
+ this.request("CreateGlossaryEntries", req, resp, cb);
76
+ }
77
+
78
+ /**
79
+ * Batch modify terminology entries.
80
+
81
+ This API is used to batch modify terminology entries in a designated Termbase. You can modify up to 200 entries at a time.
82
+ * @param {ModifyGlossaryEntriesRequest} req
83
+ * @param {function(string, ModifyGlossaryEntriesResponse):void} cb
84
+ * @public
85
+ */
86
+ ModifyGlossaryEntries(req, cb) {
87
+ let resp = new ModifyGlossaryEntriesResponse();
88
+ this.request("ModifyGlossaryEntries", req, resp, cb);
89
+ }
90
+
91
+ /**
92
+ * Query the terminology repository list.
93
+
94
+ Query the Termbase list under this application. Support paginate, filter, and sort.
95
+ * @param {DescribeGlossariesRequest} req
96
+ * @param {function(string, DescribeGlossariesResponse):void} cb
97
+ * @public
98
+ */
99
+ DescribeGlossaries(req, cb) {
100
+ let resp = new DescribeGlossariesResponse();
101
+ this.request("DescribeGlossaries", req, resp, cb);
102
+ }
103
+
104
+ /**
105
+ * Create a Termbase.
106
+
107
+ Create a new Termbase in this application for custom definition source to target language terminology mapping. Return the Termbase ID upon success, which can be used to carry out other management operations on terminology entries.
108
+ * @param {CreateGlossaryRequest} req
109
+ * @param {function(string, CreateGlossaryResponse):void} cb
110
+ * @public
111
+ */
112
+ CreateGlossary(req, cb) {
113
+ let resp = new CreateGlossaryResponse();
114
+ this.request("CreateGlossary", req, resp, cb);
115
+ }
116
+
117
+ /**
118
+ * Delete a termbase.
119
+
120
+ This API is used to delete specified Termbase and ALL terminology entries under it. The deletion is idempotent and returns a successful result for non-existing Termbase. After calling the API, if the corresponding Termbase cannot be found via DescribeGlossaries, it indicates successful deletion.
121
+ * @param {DeleteGlossaryRequest} req
122
+ * @param {function(string, DeleteGlossaryResponse):void} cb
123
+ * @public
124
+ */
125
+ DeleteGlossary(req, cb) {
126
+ let resp = new DeleteGlossaryResponse();
127
+ this.request("DeleteGlossary", req, resp, cb);
128
+ }
129
+
130
+ /**
131
+ * Query the terminology entry list.
132
+
133
+ Query specified entries in a Termbase. Support pagination.
134
+ * @param {DescribeGlossaryEntriesRequest} req
135
+ * @param {function(string, DescribeGlossaryEntriesResponse):void} cb
136
+ * @public
137
+ */
138
+ DescribeGlossaryEntries(req, cb) {
139
+ let resp = new DescribeGlossaryEntriesResponse();
140
+ this.request("DescribeGlossaryEntries", req, resp, cb);
141
+ }
142
+
143
+
144
+ }
145
+ module.exports = TokenhubClient;
@@ -3697,7 +3697,8 @@ class DescribeTRTCMarketQualityDataResponse extends AbstractModel {
3697
3697
  super();
3698
3698
 
3699
3699
  /**
3700
- * TRTC Data Dashboard output parameters
3700
+ * TRTC monitoring data output parameters.
3701
+ Note: This field may return null, indicating that no valid values can be obtained.
3701
3702
  * @type {TRTCDataResult || null}
3702
3703
  */
3703
3704
  this.Data = null;
@@ -6409,19 +6410,22 @@ class TRTCDataResult extends AbstractModel {
6409
6410
  super();
6410
6411
 
6411
6412
  /**
6412
- * StatementID value, fixed at 0 for Monitoring Dashboard.
6413
+ * The StatementID value is fixed as 0 in the monitoring dashboard.
6414
+ Note: This field may return null, indicating that no valid values can be obtained.
6413
6415
  * @type {number || null}
6414
6416
  */
6415
6417
  this.StatementID = null;
6416
6418
 
6417
6419
  /**
6418
- * Query result data, returned in Columns-Values format.
6420
+ * Query result data is returned in Columns-Values format.
6421
+ Note: This field may return null, indicating that no valid values can be obtained.
6419
6422
  * @type {Array.<SeriesInfos> || null}
6420
6423
  */
6421
6424
  this.Series = null;
6422
6425
 
6423
6426
  /**
6424
- * Total value, fixed at 1 for Monitoring Dashboard.
6427
+ * The Total value is fixed as 1 in the dashboard feature monitoring.
6428
+ Note: This field may return null, indicating that no valid values can be obtained.
6425
6429
  * @type {number || null}
6426
6430
  */
6427
6431
  this.Total = null;
@@ -7278,11 +7282,18 @@ class RowValues extends AbstractModel {
7278
7282
  super();
7279
7283
 
7280
7284
  /**
7281
- * Data value
7285
+ * Data value.
7286
+ Note: This field may return null, indicating that no valid values can be obtained.
7282
7287
  * @type {Array.<number> || null}
7283
7288
  */
7284
7289
  this.RowValue = null;
7285
7290
 
7291
+ /**
7292
+ * Data value.
7293
+ * @type {Array.<number> || null}
7294
+ */
7295
+ this.RowValueFloat = null;
7296
+
7286
7297
  }
7287
7298
 
7288
7299
  /**
@@ -7293,6 +7304,7 @@ class RowValues extends AbstractModel {
7293
7304
  return;
7294
7305
  }
7295
7306
  this.RowValue = 'RowValue' in params ? params.RowValue : null;
7307
+ this.RowValueFloat = 'RowValueFloat' in params ? params.RowValueFloat : null;
7296
7308
 
7297
7309
  }
7298
7310
  }
@@ -8883,31 +8895,37 @@ class DescribeTRTCMarketQualityDataRequest extends AbstractModel {
8883
8895
  super();
8884
8896
 
8885
8897
  /**
8886
- * User SDKAppId (e.g., 1400xxxxxx)
8898
+ * User SdkAppId (for example: 1400xxxxxx).
8887
8899
  * @type {string || null}
8888
8900
  */
8889
8901
  this.SdkAppId = null;
8890
8902
 
8891
8903
  /**
8892
- * Query start time, format is YYYY-MM-DD. (The query time range depends on the monitoring dashboard function version, the premium edition can query up to 30 days)
8904
+ * Query start time, and the format is YYYY-MM-DD. (query time range is based on the monitoring dashboard feature version. the basic version supports querying the last 30 days, and the advanced version supports querying the last 60 days).
8893
8905
  * @type {string || null}
8894
8906
  */
8895
8907
  this.StartTime = null;
8896
8908
 
8897
8909
  /**
8898
- * Query end time, format is YYYY-MM-DD.
8910
+ * Query end time in YYYY-MM-DD format.
8899
8911
  * @type {string || null}
8900
8912
  */
8901
8913
  this.EndTime = null;
8902
8914
 
8903
8915
  /**
8904
- * The granularity of the returned data, which can be set to the following values:
8905
- d: by day. This returns data for the entire UTC day of the query time range.
8906
- h: by hour. This returns data for the entire UTC hour of the query time range.
8916
+ * The granularity of returned data supports the following values:.
8917
+ d: day. at this time, return the data of UTC time at zero point within a specified time range.
8918
+ h: billed hourly. at this point, return the data of full hour UTC time within a specified time range.
8907
8919
  * @type {string || null}
8908
8920
  */
8909
8921
  this.Period = null;
8910
8922
 
8923
+ /**
8924
+ * Whether the returned data is a decimal.
8925
+ * @type {boolean || null}
8926
+ */
8927
+ this.IsFloat = null;
8928
+
8911
8929
  }
8912
8930
 
8913
8931
  /**
@@ -8921,6 +8939,7 @@ h: by hour. This returns data for the entire UTC hour of the query time range.
8921
8939
  this.StartTime = 'StartTime' in params ? params.StartTime : null;
8922
8940
  this.EndTime = 'EndTime' in params ? params.EndTime : null;
8923
8941
  this.Period = 'Period' in params ? params.Period : null;
8942
+ this.IsFloat = 'IsFloat' in params ? params.IsFloat : null;
8924
8943
 
8925
8944
  }
8926
8945
  }
@@ -9951,13 +9970,15 @@ class SeriesInfos extends AbstractModel {
9951
9970
  super();
9952
9971
 
9953
9972
  /**
9954
- * Data columns
9973
+ * Data column
9974
+ Note: This field may return null, indicating that no valid values can be obtained.
9955
9975
  * @type {Array.<string> || null}
9956
9976
  */
9957
9977
  this.Columns = null;
9958
9978
 
9959
9979
  /**
9960
- * Data values
9980
+ * Data value.
9981
+ Note: This field may return null, indicating that no valid values can be obtained.
9961
9982
  * @type {Array.<RowValues> || null}
9962
9983
  */
9963
9984
  this.Values = null;