tencentcloud-sdk-nodejs-intl-en 3.0.1383 → 3.0.1385
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 +1 -1
- package/tencentcloud/bi/v20220105/bi_client.js +70 -1
- package/tencentcloud/bi/v20220105/models.js +832 -43
- package/tencentcloud/billing/v20180709/models.js +9 -10
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/cynosdb/v20190107/cynosdb_client.js +17 -3
- package/tencentcloud/cynosdb/v20190107/models.js +294 -24
- package/tencentcloud/index.js +1 -0
- package/tencentcloud/mps/v20190612/models.js +751 -329
- package/tencentcloud/mps/v20190612/mps_client.js +49 -18
- package/tencentcloud/ocr/v20181119/models.js +249 -117
- package/tencentcloud/ocr/v20181119/ocr_client.js +2 -2
- package/tencentcloud/rum/v20210622/models.js +1 -1
- package/tencentcloud/tcsas/v20250106/models.js +63 -0
- package/tencentcloud/tdmysql/v20211122/models.js +130 -0
- package/tencentcloud/tdmysql/v20211122/tdmysql_client.js +14 -0
- package/tencentcloud/tokenhub/index.js +3 -0
- package/tencentcloud/tokenhub/v20260322/index.js +4 -0
- package/tencentcloud/tokenhub/v20260322/models.js +975 -0
- package/tencentcloud/tokenhub/v20260322/tokenhub_client.js +145 -0
|
@@ -0,0 +1,975 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 Tencent. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
const AbstractModel = require("../../common/abstract_model");
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* ModifyGlossaryEntries request structure.
|
|
21
|
+
* @class
|
|
22
|
+
*/
|
|
23
|
+
class ModifyGlossaryEntriesRequest extends AbstractModel {
|
|
24
|
+
constructor(){
|
|
25
|
+
super();
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Termbase ID. Obtain through the API DescribeGlossaries.
|
|
29
|
+
* @type {string || null}
|
|
30
|
+
*/
|
|
31
|
+
this.GlossaryId = null;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Terminology entry list. At a time 200.
|
|
35
|
+
* @type {Array.<ModifyGlossaryEntryInput> || null}
|
|
36
|
+
*/
|
|
37
|
+
this.Entries = null;
|
|
38
|
+
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @private
|
|
43
|
+
*/
|
|
44
|
+
deserialize(params) {
|
|
45
|
+
if (!params) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
|
|
49
|
+
|
|
50
|
+
if (params.Entries) {
|
|
51
|
+
this.Entries = new Array();
|
|
52
|
+
for (let z in params.Entries) {
|
|
53
|
+
let obj = new ModifyGlossaryEntryInput();
|
|
54
|
+
obj.deserialize(params.Entries[z]);
|
|
55
|
+
this.Entries.push(obj);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* CreateGlossary request structure.
|
|
64
|
+
* @class
|
|
65
|
+
*/
|
|
66
|
+
class CreateGlossaryRequest extends AbstractModel {
|
|
67
|
+
constructor(){
|
|
68
|
+
super();
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Terminology library name. Maximum 50 characters.
|
|
72
|
+
* @type {string || null}
|
|
73
|
+
*/
|
|
74
|
+
this.Name = null;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Source language code. Maximum 16 characters, such as zh (Chinese), en (English).
|
|
78
|
+
* @type {string || null}
|
|
79
|
+
*/
|
|
80
|
+
this.Source = null;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Target language code. Maximum 16 characters, such as zh (Chinese), en (English).
|
|
84
|
+
* @type {string || null}
|
|
85
|
+
*/
|
|
86
|
+
this.Target = null;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Termbase description. Maximum 255 characters.
|
|
90
|
+
* @type {string || null}
|
|
91
|
+
*/
|
|
92
|
+
this.Description = null;
|
|
93
|
+
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @private
|
|
98
|
+
*/
|
|
99
|
+
deserialize(params) {
|
|
100
|
+
if (!params) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
104
|
+
this.Source = 'Source' in params ? params.Source : null;
|
|
105
|
+
this.Target = 'Target' in params ? params.Target : null;
|
|
106
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
107
|
+
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* DescribeGlossaryEntries response structure.
|
|
113
|
+
* @class
|
|
114
|
+
*/
|
|
115
|
+
class DescribeGlossaryEntriesResponse extends AbstractModel {
|
|
116
|
+
constructor(){
|
|
117
|
+
super();
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Terminology entry list.
|
|
121
|
+
* @type {Array.<GlossaryEntryItem> || null}
|
|
122
|
+
*/
|
|
123
|
+
this.Entries = null;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Total number of eligible terminology entries.
|
|
127
|
+
* @type {number || null}
|
|
128
|
+
*/
|
|
129
|
+
this.Total = null;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Current page.
|
|
133
|
+
* @type {number || null}
|
|
134
|
+
*/
|
|
135
|
+
this.Page = null;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Size per page
|
|
139
|
+
* @type {number || null}
|
|
140
|
+
*/
|
|
141
|
+
this.PageSize = null;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* 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.
|
|
145
|
+
* @type {string || null}
|
|
146
|
+
*/
|
|
147
|
+
this.RequestId = null;
|
|
148
|
+
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @private
|
|
153
|
+
*/
|
|
154
|
+
deserialize(params) {
|
|
155
|
+
if (!params) {
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (params.Entries) {
|
|
160
|
+
this.Entries = new Array();
|
|
161
|
+
for (let z in params.Entries) {
|
|
162
|
+
let obj = new GlossaryEntryItem();
|
|
163
|
+
obj.deserialize(params.Entries[z]);
|
|
164
|
+
this.Entries.push(obj);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
this.Total = 'Total' in params ? params.Total : null;
|
|
168
|
+
this.Page = 'Page' in params ? params.Page : null;
|
|
169
|
+
this.PageSize = 'PageSize' in params ? params.PageSize : null;
|
|
170
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
171
|
+
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* DeleteGlossary request structure.
|
|
177
|
+
* @class
|
|
178
|
+
*/
|
|
179
|
+
class DeleteGlossaryRequest extends AbstractModel {
|
|
180
|
+
constructor(){
|
|
181
|
+
super();
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Termbase ID. Obtain through the API DescribeGlossaries.
|
|
185
|
+
* @type {string || null}
|
|
186
|
+
*/
|
|
187
|
+
this.GlossaryId = null;
|
|
188
|
+
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @private
|
|
193
|
+
*/
|
|
194
|
+
deserialize(params) {
|
|
195
|
+
if (!params) {
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
|
|
199
|
+
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* DescribeGlossaryEntries request structure.
|
|
205
|
+
* @class
|
|
206
|
+
*/
|
|
207
|
+
class DescribeGlossaryEntriesRequest extends AbstractModel {
|
|
208
|
+
constructor(){
|
|
209
|
+
super();
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Termbase ID. Obtain through the API DescribeGlossaries.
|
|
213
|
+
* @type {string || null}
|
|
214
|
+
*/
|
|
215
|
+
this.GlossaryId = null;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Page number. Default is 1.
|
|
219
|
+
* @type {number || null}
|
|
220
|
+
*/
|
|
221
|
+
this.Page = null;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Size per page. The default value is 20, and the maximum value is 200.
|
|
225
|
+
* @type {number || null}
|
|
226
|
+
*/
|
|
227
|
+
this.PageSize = null;
|
|
228
|
+
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* @private
|
|
233
|
+
*/
|
|
234
|
+
deserialize(params) {
|
|
235
|
+
if (!params) {
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
|
|
239
|
+
this.Page = 'Page' in params ? params.Page : null;
|
|
240
|
+
this.PageSize = 'PageSize' in params ? params.PageSize : null;
|
|
241
|
+
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* DescribeGlossaries request structure.
|
|
247
|
+
* @class
|
|
248
|
+
*/
|
|
249
|
+
class DescribeGlossariesRequest extends AbstractModel {
|
|
250
|
+
constructor(){
|
|
251
|
+
super();
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Number of returned results. Defaults to 20, maximum value is 100.
|
|
255
|
+
* @type {number || null}
|
|
256
|
+
*/
|
|
257
|
+
this.Limit = null;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Offset. Default value: 0.
|
|
261
|
+
* @type {number || null}
|
|
262
|
+
*/
|
|
263
|
+
this.Offset = null;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Filter condition list. Supported filter fields: GlossaryId (Termbase ID), Name, Source (source language code), Target (target language code).
|
|
267
|
+
* @type {Array.<RequestFilter> || null}
|
|
268
|
+
*/
|
|
269
|
+
this.Filters = null;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Sorting condition list. Supported sorting fields: CreatedTime (creation time), UpdatedTime (last update time).
|
|
273
|
+
* @type {Array.<RequestSort> || null}
|
|
274
|
+
*/
|
|
275
|
+
this.Sorts = null;
|
|
276
|
+
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* @private
|
|
281
|
+
*/
|
|
282
|
+
deserialize(params) {
|
|
283
|
+
if (!params) {
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
this.Limit = 'Limit' in params ? params.Limit : null;
|
|
287
|
+
this.Offset = 'Offset' in params ? params.Offset : null;
|
|
288
|
+
|
|
289
|
+
if (params.Filters) {
|
|
290
|
+
this.Filters = new Array();
|
|
291
|
+
for (let z in params.Filters) {
|
|
292
|
+
let obj = new RequestFilter();
|
|
293
|
+
obj.deserialize(params.Filters[z]);
|
|
294
|
+
this.Filters.push(obj);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
if (params.Sorts) {
|
|
299
|
+
this.Sorts = new Array();
|
|
300
|
+
for (let z in params.Sorts) {
|
|
301
|
+
let obj = new RequestSort();
|
|
302
|
+
obj.deserialize(params.Sorts[z]);
|
|
303
|
+
this.Sorts.push(obj);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Filter criteria
|
|
312
|
+
* @class
|
|
313
|
+
*/
|
|
314
|
+
class RequestFilter extends AbstractModel {
|
|
315
|
+
constructor(){
|
|
316
|
+
super();
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Filter field name.
|
|
320
|
+
* @type {string || null}
|
|
321
|
+
*/
|
|
322
|
+
this.Name = null;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Filter operator. Values: EXACT (exact match), FUZZY (fuzzy matching), NOT (exclusion).
|
|
326
|
+
* @type {string || null}
|
|
327
|
+
*/
|
|
328
|
+
this.Op = null;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Filter value list. Supports up to 10.
|
|
332
|
+
* @type {Array.<string> || null}
|
|
333
|
+
*/
|
|
334
|
+
this.Values = null;
|
|
335
|
+
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @private
|
|
340
|
+
*/
|
|
341
|
+
deserialize(params) {
|
|
342
|
+
if (!params) {
|
|
343
|
+
return;
|
|
344
|
+
}
|
|
345
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
346
|
+
this.Op = 'Op' in params ? params.Op : null;
|
|
347
|
+
this.Values = 'Values' in params ? params.Values : null;
|
|
348
|
+
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* DeleteGlossaryEntries request structure.
|
|
354
|
+
* @class
|
|
355
|
+
*/
|
|
356
|
+
class DeleteGlossaryEntriesRequest extends AbstractModel {
|
|
357
|
+
constructor(){
|
|
358
|
+
super();
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Termbase ID. Obtain through the API DescribeGlossaries.
|
|
362
|
+
* @type {string || null}
|
|
363
|
+
*/
|
|
364
|
+
this.GlossaryId = null;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Terminology entry list to be deleted. At a time 200.
|
|
368
|
+
* @type {Array.<DeleteGlossaryEntryInput> || null}
|
|
369
|
+
*/
|
|
370
|
+
this.Entries = null;
|
|
371
|
+
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* @private
|
|
376
|
+
*/
|
|
377
|
+
deserialize(params) {
|
|
378
|
+
if (!params) {
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
|
|
382
|
+
|
|
383
|
+
if (params.Entries) {
|
|
384
|
+
this.Entries = new Array();
|
|
385
|
+
for (let z in params.Entries) {
|
|
386
|
+
let obj = new DeleteGlossaryEntryInput();
|
|
387
|
+
obj.deserialize(params.Entries[z]);
|
|
388
|
+
this.Entries.push(obj);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* CreateGlossaryEntries response structure.
|
|
397
|
+
* @class
|
|
398
|
+
*/
|
|
399
|
+
class CreateGlossaryEntriesResponse extends AbstractModel {
|
|
400
|
+
constructor(){
|
|
401
|
+
super();
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* List of successfully created terminology entries.
|
|
405
|
+
* @type {Array.<GlossaryEntryItem> || null}
|
|
406
|
+
*/
|
|
407
|
+
this.Entries = null;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* 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.
|
|
411
|
+
* @type {string || null}
|
|
412
|
+
*/
|
|
413
|
+
this.RequestId = null;
|
|
414
|
+
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* @private
|
|
419
|
+
*/
|
|
420
|
+
deserialize(params) {
|
|
421
|
+
if (!params) {
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
if (params.Entries) {
|
|
426
|
+
this.Entries = new Array();
|
|
427
|
+
for (let z in params.Entries) {
|
|
428
|
+
let obj = new GlossaryEntryItem();
|
|
429
|
+
obj.deserialize(params.Entries[z]);
|
|
430
|
+
this.Entries.push(obj);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
434
|
+
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Delete terminology entry
|
|
440
|
+
* @class
|
|
441
|
+
*/
|
|
442
|
+
class DeleteGlossaryEntryInput extends AbstractModel {
|
|
443
|
+
constructor(){
|
|
444
|
+
super();
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Terminology entry ID. Obtain through the API DescribeGlossaryEntries.
|
|
448
|
+
* @type {string || null}
|
|
449
|
+
*/
|
|
450
|
+
this.EntryId = null;
|
|
451
|
+
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* @private
|
|
456
|
+
*/
|
|
457
|
+
deserialize(params) {
|
|
458
|
+
if (!params) {
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
this.EntryId = 'EntryId' in params ? params.EntryId : null;
|
|
462
|
+
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Terminology entry detail
|
|
468
|
+
* @class
|
|
469
|
+
*/
|
|
470
|
+
class GlossaryEntryItem extends AbstractModel {
|
|
471
|
+
constructor(){
|
|
472
|
+
super();
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Terminology entry ID.
|
|
476
|
+
* @type {string || null}
|
|
477
|
+
*/
|
|
478
|
+
this.EntryId = null;
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Source language terminology.
|
|
482
|
+
* @type {string || null}
|
|
483
|
+
*/
|
|
484
|
+
this.SourceTerm = null;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Target language terminology.
|
|
488
|
+
* @type {string || null}
|
|
489
|
+
*/
|
|
490
|
+
this.TargetTerm = null;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Last update time. Unix timestamp (ms).
|
|
494
|
+
* @type {number || null}
|
|
495
|
+
*/
|
|
496
|
+
this.UpdatedAt = null;
|
|
497
|
+
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* @private
|
|
502
|
+
*/
|
|
503
|
+
deserialize(params) {
|
|
504
|
+
if (!params) {
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
this.EntryId = 'EntryId' in params ? params.EntryId : null;
|
|
508
|
+
this.SourceTerm = 'SourceTerm' in params ? params.SourceTerm : null;
|
|
509
|
+
this.TargetTerm = 'TargetTerm' in params ? params.TargetTerm : null;
|
|
510
|
+
this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null;
|
|
511
|
+
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* DeleteGlossary response structure.
|
|
517
|
+
* @class
|
|
518
|
+
*/
|
|
519
|
+
class DeleteGlossaryResponse extends AbstractModel {
|
|
520
|
+
constructor(){
|
|
521
|
+
super();
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* 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.
|
|
525
|
+
* @type {string || null}
|
|
526
|
+
*/
|
|
527
|
+
this.RequestId = null;
|
|
528
|
+
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* @private
|
|
533
|
+
*/
|
|
534
|
+
deserialize(params) {
|
|
535
|
+
if (!params) {
|
|
536
|
+
return;
|
|
537
|
+
}
|
|
538
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
539
|
+
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* CreateGlossaryEntries request structure.
|
|
545
|
+
* @class
|
|
546
|
+
*/
|
|
547
|
+
class CreateGlossaryEntriesRequest extends AbstractModel {
|
|
548
|
+
constructor(){
|
|
549
|
+
super();
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Termbase ID. Obtain through the API DescribeGlossaries.
|
|
553
|
+
* @type {string || null}
|
|
554
|
+
*/
|
|
555
|
+
this.GlossaryId = null;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Terminology entry list. At a time 100.
|
|
559
|
+
* @type {Array.<GlossaryEntryInput> || null}
|
|
560
|
+
*/
|
|
561
|
+
this.Entries = null;
|
|
562
|
+
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* @private
|
|
567
|
+
*/
|
|
568
|
+
deserialize(params) {
|
|
569
|
+
if (!params) {
|
|
570
|
+
return;
|
|
571
|
+
}
|
|
572
|
+
this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
|
|
573
|
+
|
|
574
|
+
if (params.Entries) {
|
|
575
|
+
this.Entries = new Array();
|
|
576
|
+
for (let z in params.Entries) {
|
|
577
|
+
let obj = new GlossaryEntryInput();
|
|
578
|
+
obj.deserialize(params.Entries[z]);
|
|
579
|
+
this.Entries.push(obj);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Sort criteria
|
|
588
|
+
* @class
|
|
589
|
+
*/
|
|
590
|
+
class RequestSort extends AbstractModel {
|
|
591
|
+
constructor(){
|
|
592
|
+
super();
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Sorting field name.
|
|
596
|
+
* @type {string || null}
|
|
597
|
+
*/
|
|
598
|
+
this.Name = null;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Sorting order. Value: ASC (ascending), DESC (descending).
|
|
602
|
+
* @type {string || null}
|
|
603
|
+
*/
|
|
604
|
+
this.Order = null;
|
|
605
|
+
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* @private
|
|
610
|
+
*/
|
|
611
|
+
deserialize(params) {
|
|
612
|
+
if (!params) {
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
616
|
+
this.Order = 'Order' in params ? params.Order : null;
|
|
617
|
+
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* ModifyGlossaryEntries response structure.
|
|
623
|
+
* @class
|
|
624
|
+
*/
|
|
625
|
+
class ModifyGlossaryEntriesResponse extends AbstractModel {
|
|
626
|
+
constructor(){
|
|
627
|
+
super();
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Terminology entry list after modification.
|
|
631
|
+
* @type {Array.<GlossaryEntryItem> || null}
|
|
632
|
+
*/
|
|
633
|
+
this.Entries = null;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* 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.
|
|
637
|
+
* @type {string || null}
|
|
638
|
+
*/
|
|
639
|
+
this.RequestId = null;
|
|
640
|
+
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* @private
|
|
645
|
+
*/
|
|
646
|
+
deserialize(params) {
|
|
647
|
+
if (!params) {
|
|
648
|
+
return;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
if (params.Entries) {
|
|
652
|
+
this.Entries = new Array();
|
|
653
|
+
for (let z in params.Entries) {
|
|
654
|
+
let obj = new GlossaryEntryItem();
|
|
655
|
+
obj.deserialize(params.Entries[z]);
|
|
656
|
+
this.Entries.push(obj);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
660
|
+
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* Modify terminology entry
|
|
666
|
+
* @class
|
|
667
|
+
*/
|
|
668
|
+
class ModifyGlossaryEntryInput extends AbstractModel {
|
|
669
|
+
constructor(){
|
|
670
|
+
super();
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Terminology entry ID. Obtain through the API DescribeGlossaryEntries.
|
|
674
|
+
* @type {string || null}
|
|
675
|
+
*/
|
|
676
|
+
this.EntryId = null;
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Source language terminology. Maximum 1000 characters. If not passed, remain unchanged.
|
|
680
|
+
* @type {string || null}
|
|
681
|
+
*/
|
|
682
|
+
this.SourceTerm = null;
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* Target language terminology. Maximum 1000 characters. Remain unchanged if not passed.
|
|
686
|
+
* @type {string || null}
|
|
687
|
+
*/
|
|
688
|
+
this.TargetTerm = null;
|
|
689
|
+
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* @private
|
|
694
|
+
*/
|
|
695
|
+
deserialize(params) {
|
|
696
|
+
if (!params) {
|
|
697
|
+
return;
|
|
698
|
+
}
|
|
699
|
+
this.EntryId = 'EntryId' in params ? params.EntryId : null;
|
|
700
|
+
this.SourceTerm = 'SourceTerm' in params ? params.SourceTerm : null;
|
|
701
|
+
this.TargetTerm = 'TargetTerm' in params ? params.TargetTerm : null;
|
|
702
|
+
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* DeleteGlossaryEntries response structure.
|
|
708
|
+
* @class
|
|
709
|
+
*/
|
|
710
|
+
class DeleteGlossaryEntriesResponse extends AbstractModel {
|
|
711
|
+
constructor(){
|
|
712
|
+
super();
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* 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.
|
|
716
|
+
* @type {string || null}
|
|
717
|
+
*/
|
|
718
|
+
this.RequestId = null;
|
|
719
|
+
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* @private
|
|
724
|
+
*/
|
|
725
|
+
deserialize(params) {
|
|
726
|
+
if (!params) {
|
|
727
|
+
return;
|
|
728
|
+
}
|
|
729
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
730
|
+
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* DescribeGlossaries response structure.
|
|
736
|
+
* @class
|
|
737
|
+
*/
|
|
738
|
+
class DescribeGlossariesResponse extends AbstractModel {
|
|
739
|
+
constructor(){
|
|
740
|
+
super();
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Terminology repository list.
|
|
744
|
+
* @type {Array.<GlossaryItem> || null}
|
|
745
|
+
*/
|
|
746
|
+
this.Items = null;
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Total number of eligible terminology repositories.
|
|
750
|
+
* @type {number || null}
|
|
751
|
+
*/
|
|
752
|
+
this.TotalCount = null;
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Current page.
|
|
756
|
+
* @type {number || null}
|
|
757
|
+
*/
|
|
758
|
+
this.Current = null;
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Size per page
|
|
762
|
+
* @type {number || null}
|
|
763
|
+
*/
|
|
764
|
+
this.PageSize = null;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* 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.
|
|
768
|
+
* @type {string || null}
|
|
769
|
+
*/
|
|
770
|
+
this.RequestId = null;
|
|
771
|
+
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* @private
|
|
776
|
+
*/
|
|
777
|
+
deserialize(params) {
|
|
778
|
+
if (!params) {
|
|
779
|
+
return;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
if (params.Items) {
|
|
783
|
+
this.Items = new Array();
|
|
784
|
+
for (let z in params.Items) {
|
|
785
|
+
let obj = new GlossaryItem();
|
|
786
|
+
obj.deserialize(params.Items[z]);
|
|
787
|
+
this.Items.push(obj);
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
|
|
791
|
+
this.Current = 'Current' in params ? params.Current : null;
|
|
792
|
+
this.PageSize = 'PageSize' in params ? params.PageSize : null;
|
|
793
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
794
|
+
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Termbase detail
|
|
800
|
+
* @class
|
|
801
|
+
*/
|
|
802
|
+
class GlossaryItem extends AbstractModel {
|
|
803
|
+
constructor(){
|
|
804
|
+
super();
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* Termbase ID.
|
|
808
|
+
* @type {string || null}
|
|
809
|
+
*/
|
|
810
|
+
this.GlossaryId = null;
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Terminology repository name.
|
|
814
|
+
* @type {string || null}
|
|
815
|
+
*/
|
|
816
|
+
this.Name = null;
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* Repository description.
|
|
820
|
+
* @type {string || null}
|
|
821
|
+
*/
|
|
822
|
+
this.Description = null;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Source language code.
|
|
826
|
+
* @type {string || null}
|
|
827
|
+
*/
|
|
828
|
+
this.Source = null;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Target language code.
|
|
832
|
+
* @type {string || null}
|
|
833
|
+
*/
|
|
834
|
+
this.Target = null;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Creation time.
|
|
838
|
+
* @type {string || null}
|
|
839
|
+
*/
|
|
840
|
+
this.CreatedTime = null;
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Update time.
|
|
844
|
+
* @type {string || null}
|
|
845
|
+
*/
|
|
846
|
+
this.UpdatedTime = null;
|
|
847
|
+
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* @private
|
|
852
|
+
*/
|
|
853
|
+
deserialize(params) {
|
|
854
|
+
if (!params) {
|
|
855
|
+
return;
|
|
856
|
+
}
|
|
857
|
+
this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
|
|
858
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
859
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
860
|
+
this.Source = 'Source' in params ? params.Source : null;
|
|
861
|
+
this.Target = 'Target' in params ? params.Target : null;
|
|
862
|
+
this.CreatedTime = 'CreatedTime' in params ? params.CreatedTime : null;
|
|
863
|
+
this.UpdatedTime = 'UpdatedTime' in params ? params.UpdatedTime : null;
|
|
864
|
+
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* Create terminology entry
|
|
870
|
+
* @class
|
|
871
|
+
*/
|
|
872
|
+
class GlossaryEntryInput extends AbstractModel {
|
|
873
|
+
constructor(){
|
|
874
|
+
super();
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Source language terminology. Maximum 1000 characters.
|
|
878
|
+
* @type {string || null}
|
|
879
|
+
*/
|
|
880
|
+
this.SourceTerm = null;
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* Target language terminology. Maximum 1000 characters.
|
|
884
|
+
* @type {string || null}
|
|
885
|
+
*/
|
|
886
|
+
this.TargetTerm = null;
|
|
887
|
+
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* @private
|
|
892
|
+
*/
|
|
893
|
+
deserialize(params) {
|
|
894
|
+
if (!params) {
|
|
895
|
+
return;
|
|
896
|
+
}
|
|
897
|
+
this.SourceTerm = 'SourceTerm' in params ? params.SourceTerm : null;
|
|
898
|
+
this.TargetTerm = 'TargetTerm' in params ? params.TargetTerm : null;
|
|
899
|
+
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* CreateGlossary response structure.
|
|
905
|
+
* @class
|
|
906
|
+
*/
|
|
907
|
+
class CreateGlossaryResponse extends AbstractModel {
|
|
908
|
+
constructor(){
|
|
909
|
+
super();
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* Termbase ID.
|
|
913
|
+
* @type {string || null}
|
|
914
|
+
*/
|
|
915
|
+
this.GlossaryId = null;
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Terminology repository name.
|
|
919
|
+
* @type {string || null}
|
|
920
|
+
*/
|
|
921
|
+
this.Name = null;
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* Creation time. Unix timestamp (ms).
|
|
925
|
+
* @type {number || null}
|
|
926
|
+
*/
|
|
927
|
+
this.CreatedAt = null;
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* 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.
|
|
931
|
+
* @type {string || null}
|
|
932
|
+
*/
|
|
933
|
+
this.RequestId = null;
|
|
934
|
+
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* @private
|
|
939
|
+
*/
|
|
940
|
+
deserialize(params) {
|
|
941
|
+
if (!params) {
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
this.GlossaryId = 'GlossaryId' in params ? params.GlossaryId : null;
|
|
945
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
946
|
+
this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
|
|
947
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
948
|
+
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
module.exports = {
|
|
953
|
+
ModifyGlossaryEntriesRequest: ModifyGlossaryEntriesRequest,
|
|
954
|
+
CreateGlossaryRequest: CreateGlossaryRequest,
|
|
955
|
+
DescribeGlossaryEntriesResponse: DescribeGlossaryEntriesResponse,
|
|
956
|
+
DeleteGlossaryRequest: DeleteGlossaryRequest,
|
|
957
|
+
DescribeGlossaryEntriesRequest: DescribeGlossaryEntriesRequest,
|
|
958
|
+
DescribeGlossariesRequest: DescribeGlossariesRequest,
|
|
959
|
+
RequestFilter: RequestFilter,
|
|
960
|
+
DeleteGlossaryEntriesRequest: DeleteGlossaryEntriesRequest,
|
|
961
|
+
CreateGlossaryEntriesResponse: CreateGlossaryEntriesResponse,
|
|
962
|
+
DeleteGlossaryEntryInput: DeleteGlossaryEntryInput,
|
|
963
|
+
GlossaryEntryItem: GlossaryEntryItem,
|
|
964
|
+
DeleteGlossaryResponse: DeleteGlossaryResponse,
|
|
965
|
+
CreateGlossaryEntriesRequest: CreateGlossaryEntriesRequest,
|
|
966
|
+
RequestSort: RequestSort,
|
|
967
|
+
ModifyGlossaryEntriesResponse: ModifyGlossaryEntriesResponse,
|
|
968
|
+
ModifyGlossaryEntryInput: ModifyGlossaryEntryInput,
|
|
969
|
+
DeleteGlossaryEntriesResponse: DeleteGlossaryEntriesResponse,
|
|
970
|
+
DescribeGlossariesResponse: DescribeGlossariesResponse,
|
|
971
|
+
GlossaryItem: GlossaryItem,
|
|
972
|
+
GlossaryEntryInput: GlossaryEntryInput,
|
|
973
|
+
CreateGlossaryResponse: CreateGlossaryResponse,
|
|
974
|
+
|
|
975
|
+
}
|