tencentcloud-sdk-nodejs-intl-en 3.0.1214 → 3.0.1216
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/common/sdk_version.js +1 -1
- package/tencentcloud/index.js +1 -0
- package/tencentcloud/kms/v20190118/kms_client.js +248 -50
- package/tencentcloud/kms/v20190118/models.js +1679 -173
- package/tencentcloud/mdl/v20200326/models.js +2 -2
- package/tencentcloud/region/index.js +3 -0
- package/tencentcloud/region/v20220627/index.js +4 -0
- package/tencentcloud/region/v20220627/models.js +527 -0
- package/tencentcloud/region/v20220627/region_client.js +75 -0
|
@@ -4019,7 +4019,7 @@ class EventSettingsResp extends AbstractModel {
|
|
|
4019
4019
|
super();
|
|
4020
4020
|
|
|
4021
4021
|
/**
|
|
4022
|
-
* Valid values: INPUT_SWITCH
|
|
4022
|
+
* Valid values: `INPUT_SWITCH`, `TIMED_RECORD`, `SCTE35_TIME_SIGNAL`, `SCTE35_SPLICE_INSERT`, `SCTE35_RETURN_TO_NETWORK`, `STATIC_IMAGE_ACTIVATE`, `STATIC_IMAGE_DEACTIVATE`.
|
|
4023
4023
|
* @type {string || null}
|
|
4024
4024
|
*/
|
|
4025
4025
|
this.EventType = null;
|
|
@@ -5723,7 +5723,7 @@ class EventSettingsReq extends AbstractModel {
|
|
|
5723
5723
|
super();
|
|
5724
5724
|
|
|
5725
5725
|
/**
|
|
5726
|
-
* Valid values: `INPUT_SWITCH`, `TIMED_RECORD`, SCTE35_TIME_SIGNAL
|
|
5726
|
+
* Valid values: `INPUT_SWITCH`, `TIMED_RECORD`, `SCTE35_TIME_SIGNAL`, `SCTE35_SPLICE_INSERT`, `SCTE35_RETURN_TO_NETWORK`,`TIMED_METADATA `,`STATIC_IMAGE_ACTIVATE `,`STATIC_IMAGE_DEACTIVATE `. If it is not specified, `INPUT_SWITCH` will be used.
|
|
5727
5727
|
* @type {string || null}
|
|
5728
5728
|
*/
|
|
5729
5729
|
this.EventType = null;
|
|
@@ -0,0 +1,527 @@
|
|
|
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
|
+
* Region management system product information.
|
|
21
|
+
* @class
|
|
22
|
+
*/
|
|
23
|
+
class RegionProduct extends AbstractModel {
|
|
24
|
+
constructor(){
|
|
25
|
+
super();
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Product name, for example cvm.
|
|
29
|
+
* @type {string || null}
|
|
30
|
+
*/
|
|
31
|
+
this.Name = null;
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @private
|
|
37
|
+
*/
|
|
38
|
+
deserialize(params) {
|
|
39
|
+
if (!params) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* DescribeProducts request structure.
|
|
49
|
+
* @class
|
|
50
|
+
*/
|
|
51
|
+
class DescribeProductsRequest extends AbstractModel {
|
|
52
|
+
constructor(){
|
|
53
|
+
super();
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Number of returned results, defaults to 20, maximum value is 100.
|
|
57
|
+
* @type {number || null}
|
|
58
|
+
*/
|
|
59
|
+
this.Limit = null;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Offset. default value: 0.
|
|
63
|
+
* @type {number || null}
|
|
64
|
+
*/
|
|
65
|
+
this.Offset = null;
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @private
|
|
71
|
+
*/
|
|
72
|
+
deserialize(params) {
|
|
73
|
+
if (!params) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
this.Limit = 'Limit' in params ? params.Limit : null;
|
|
77
|
+
this.Offset = 'Offset' in params ? params.Offset : null;
|
|
78
|
+
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* DescribeProducts response structure.
|
|
84
|
+
* @class
|
|
85
|
+
*/
|
|
86
|
+
class DescribeProductsResponse extends AbstractModel {
|
|
87
|
+
constructor(){
|
|
88
|
+
super();
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Product detailed information list.
|
|
92
|
+
* @type {Array.<RegionProduct> || null}
|
|
93
|
+
*/
|
|
94
|
+
this.Products = null;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Total number of products.
|
|
98
|
+
* @type {number || null}
|
|
99
|
+
*/
|
|
100
|
+
this.TotalCount = null;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* 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.
|
|
104
|
+
* @type {string || null}
|
|
105
|
+
*/
|
|
106
|
+
this.RequestId = null;
|
|
107
|
+
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @private
|
|
112
|
+
*/
|
|
113
|
+
deserialize(params) {
|
|
114
|
+
if (!params) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (params.Products) {
|
|
119
|
+
this.Products = new Array();
|
|
120
|
+
for (let z in params.Products) {
|
|
121
|
+
let obj = new RegionProduct();
|
|
122
|
+
obj.deserialize(params.Products[z]);
|
|
123
|
+
this.Products.push(obj);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
|
|
127
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
128
|
+
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Availability zone information
|
|
134
|
+
* @class
|
|
135
|
+
*/
|
|
136
|
+
class ZoneInfo extends AbstractModel {
|
|
137
|
+
constructor(){
|
|
138
|
+
super();
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Availability zone name, for example, ap-guangzhou-3.
|
|
142
|
+
|
|
143
|
+
The names of availability zones across the network are as follows:.
|
|
144
|
+
<li> ap-chongqing-1 </li>
|
|
145
|
+
<li> ap-seoul-1 </li>
|
|
146
|
+
<li> ap-seoul-2 </li>
|
|
147
|
+
<li> ap-chengdu-1 </li>
|
|
148
|
+
<li> ap-chengdu-2 </li>
|
|
149
|
+
<li> ap-hongkong-1 </li>
|
|
150
|
+
<li> ap-hongkong-2 </li>
|
|
151
|
+
<li> ap-shenzhen-fsi-1 </li>
|
|
152
|
+
<li> ap-shenzhen-fsi-2 </li>
|
|
153
|
+
<li> ap-shenzhen-fsi-3 </li>
|
|
154
|
+
<Li> ap-guangzhou-1 (sold-out)</li>.
|
|
155
|
+
<Li> ap-guangzhou-2 (resource out of stock)</li>.
|
|
156
|
+
<li> ap-guangzhou-3 </li>
|
|
157
|
+
<li> ap-guangzhou-4 </li>
|
|
158
|
+
<li> ap-guangzhou-6 </li>
|
|
159
|
+
<li> ap-tokyo-1 </li>
|
|
160
|
+
<li> ap-singapore-1 </li>
|
|
161
|
+
<li> ap-singapore-2 </li>
|
|
162
|
+
<li> ap-shanghai-fsi-1 </li>
|
|
163
|
+
<li> ap-shanghai-fsi-2 </li>
|
|
164
|
+
<li> ap-shanghai-fsi-3 </li>
|
|
165
|
+
<li> ap-bangkok-1 </li>
|
|
166
|
+
<Li> ap-shanghai-1 (resource out of stock) </li>.
|
|
167
|
+
<li> ap-shanghai-2 </li>
|
|
168
|
+
<li> ap-shanghai-3 </li>
|
|
169
|
+
<li> ap-shanghai-4 </li>
|
|
170
|
+
<li> ap-shanghai-5 </li>
|
|
171
|
+
<li> ap-mumbai-1 </li>
|
|
172
|
+
<li> ap-mumbai-2 </li>
|
|
173
|
+
<li> ap-beijing-1 </li>
|
|
174
|
+
<li> ap-beijing-2 </li>
|
|
175
|
+
<li> ap-beijing-3 </li>
|
|
176
|
+
<li> ap-beijing-4 </li>
|
|
177
|
+
<li> ap-beijing-5 </li>
|
|
178
|
+
<li> na-siliconvalley-1 </li>
|
|
179
|
+
<li> na-siliconvalley-2 </li>
|
|
180
|
+
<li> eu-frankfurt-1 </li>
|
|
181
|
+
<li> na-ashburn-1 </li>
|
|
182
|
+
<li> na-ashburn-2 </li>
|
|
183
|
+
<li> ap-nanjing-1 </li>
|
|
184
|
+
<li> ap-nanjing-2 </li>
|
|
185
|
+
* @type {string || null}
|
|
186
|
+
*/
|
|
187
|
+
this.Zone = null;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Availability zone description, such as Guangzhou Zone 3.
|
|
191
|
+
* @type {string || null}
|
|
192
|
+
*/
|
|
193
|
+
this.ZoneName = null;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* AZ ID
|
|
197
|
+
* @type {string || null}
|
|
198
|
+
*/
|
|
199
|
+
this.ZoneId = null;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Availability zone status, including AVAILABLE and UNAVAILABLE. AVAILABLE indicates available, and UNAVAILABLE indicates unavailable.
|
|
203
|
+
* @type {string || null}
|
|
204
|
+
*/
|
|
205
|
+
this.ZoneState = null;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Parent zone.
|
|
209
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
210
|
+
* @type {string || null}
|
|
211
|
+
*/
|
|
212
|
+
this.ParentZone = null;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Parent availability zone ID.
|
|
216
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
217
|
+
* @type {string || null}
|
|
218
|
+
*/
|
|
219
|
+
this.ParentZoneId = null;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Describes the parent availability zone.
|
|
223
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
224
|
+
* @type {string || null}
|
|
225
|
+
*/
|
|
226
|
+
this.ParentZoneName = null;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* zone type.
|
|
230
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
231
|
+
* @type {string || null}
|
|
232
|
+
*/
|
|
233
|
+
this.ZoneType = null;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Console type.
|
|
237
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
238
|
+
* @type {string || null}
|
|
239
|
+
*/
|
|
240
|
+
this.MachineRoomTypeMC = null;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Same as ZoneId. suitable for console invocation.
|
|
244
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
245
|
+
* @type {string || null}
|
|
246
|
+
*/
|
|
247
|
+
this.ZoneIdMC = null;
|
|
248
|
+
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @private
|
|
253
|
+
*/
|
|
254
|
+
deserialize(params) {
|
|
255
|
+
if (!params) {
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
this.Zone = 'Zone' in params ? params.Zone : null;
|
|
259
|
+
this.ZoneName = 'ZoneName' in params ? params.ZoneName : null;
|
|
260
|
+
this.ZoneId = 'ZoneId' in params ? params.ZoneId : null;
|
|
261
|
+
this.ZoneState = 'ZoneState' in params ? params.ZoneState : null;
|
|
262
|
+
this.ParentZone = 'ParentZone' in params ? params.ParentZone : null;
|
|
263
|
+
this.ParentZoneId = 'ParentZoneId' in params ? params.ParentZoneId : null;
|
|
264
|
+
this.ParentZoneName = 'ParentZoneName' in params ? params.ParentZoneName : null;
|
|
265
|
+
this.ZoneType = 'ZoneType' in params ? params.ZoneType : null;
|
|
266
|
+
this.MachineRoomTypeMC = 'MachineRoomTypeMC' in params ? params.MachineRoomTypeMC : null;
|
|
267
|
+
this.ZoneIdMC = 'ZoneIdMC' in params ? params.ZoneIdMC : null;
|
|
268
|
+
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* DescribeZones request structure.
|
|
274
|
+
* @class
|
|
275
|
+
*/
|
|
276
|
+
class DescribeZonesRequest extends AbstractModel {
|
|
277
|
+
constructor(){
|
|
278
|
+
super();
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Name of the product to be queried, such as cvm. for specific value, query the DescribeProducts api.
|
|
282
|
+
* @type {string || null}
|
|
283
|
+
*/
|
|
284
|
+
this.Product = null;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* No input or 0 means no query [optional business allowlist], 1 means query [optional business allowlist]. if this parameter is set to 1, the allowlist will only be queried when no result is found in the business allowlist.
|
|
288
|
+
* @type {number || null}
|
|
289
|
+
*/
|
|
290
|
+
this.Scene = null;
|
|
291
|
+
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @private
|
|
296
|
+
*/
|
|
297
|
+
deserialize(params) {
|
|
298
|
+
if (!params) {
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
this.Product = 'Product' in params ? params.Product : null;
|
|
302
|
+
this.Scene = 'Scene' in params ? params.Scene : null;
|
|
303
|
+
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* DescribeZones response structure.
|
|
309
|
+
* @class
|
|
310
|
+
*/
|
|
311
|
+
class DescribeZonesResponse extends AbstractModel {
|
|
312
|
+
constructor(){
|
|
313
|
+
super();
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Number of availability zones.
|
|
317
|
+
* @type {number || null}
|
|
318
|
+
*/
|
|
319
|
+
this.TotalCount = null;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Availability zone list information.
|
|
323
|
+
* @type {Array.<ZoneInfo> || null}
|
|
324
|
+
*/
|
|
325
|
+
this.ZoneSet = null;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* 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.
|
|
329
|
+
* @type {string || null}
|
|
330
|
+
*/
|
|
331
|
+
this.RequestId = null;
|
|
332
|
+
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* @private
|
|
337
|
+
*/
|
|
338
|
+
deserialize(params) {
|
|
339
|
+
if (!params) {
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
|
|
343
|
+
|
|
344
|
+
if (params.ZoneSet) {
|
|
345
|
+
this.ZoneSet = new Array();
|
|
346
|
+
for (let z in params.ZoneSet) {
|
|
347
|
+
let obj = new ZoneInfo();
|
|
348
|
+
obj.deserialize(params.ZoneSet[z]);
|
|
349
|
+
this.ZoneSet.push(obj);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
353
|
+
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Region information
|
|
359
|
+
* @class
|
|
360
|
+
*/
|
|
361
|
+
class RegionInfo extends AbstractModel {
|
|
362
|
+
constructor(){
|
|
363
|
+
super();
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Region name, such as ap-guangzhou.
|
|
367
|
+
* @type {string || null}
|
|
368
|
+
*/
|
|
369
|
+
this.Region = null;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Region description, for example, South China (Guangzhou).
|
|
373
|
+
* @type {string || null}
|
|
374
|
+
*/
|
|
375
|
+
this.RegionName = null;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Whether the region is in an available state.
|
|
379
|
+
* @type {string || null}
|
|
380
|
+
*/
|
|
381
|
+
this.RegionState = null;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Console type. defaults to null when called via api.
|
|
385
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
386
|
+
* @type {number || null}
|
|
387
|
+
*/
|
|
388
|
+
this.RegionTypeMC = null;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Region for different languages.
|
|
392
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
393
|
+
* @type {string || null}
|
|
394
|
+
*/
|
|
395
|
+
this.LocationMC = null;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Region description on console display.
|
|
399
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
400
|
+
* @type {string || null}
|
|
401
|
+
*/
|
|
402
|
+
this.RegionNameMC = null;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* 1
|
|
406
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
407
|
+
* @type {string || null}
|
|
408
|
+
*/
|
|
409
|
+
this.RegionIdMC = null;
|
|
410
|
+
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* @private
|
|
415
|
+
*/
|
|
416
|
+
deserialize(params) {
|
|
417
|
+
if (!params) {
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
this.Region = 'Region' in params ? params.Region : null;
|
|
421
|
+
this.RegionName = 'RegionName' in params ? params.RegionName : null;
|
|
422
|
+
this.RegionState = 'RegionState' in params ? params.RegionState : null;
|
|
423
|
+
this.RegionTypeMC = 'RegionTypeMC' in params ? params.RegionTypeMC : null;
|
|
424
|
+
this.LocationMC = 'LocationMC' in params ? params.LocationMC : null;
|
|
425
|
+
this.RegionNameMC = 'RegionNameMC' in params ? params.RegionNameMC : null;
|
|
426
|
+
this.RegionIdMC = 'RegionIdMC' in params ? params.RegionIdMC : null;
|
|
427
|
+
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* DescribeRegions response structure.
|
|
433
|
+
* @class
|
|
434
|
+
*/
|
|
435
|
+
class DescribeRegionsResponse extends AbstractModel {
|
|
436
|
+
constructor(){
|
|
437
|
+
super();
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Number of Regions
|
|
441
|
+
* @type {number || null}
|
|
442
|
+
*/
|
|
443
|
+
this.TotalCount = null;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* List Information of Region
|
|
447
|
+
* @type {Array.<RegionInfo> || null}
|
|
448
|
+
*/
|
|
449
|
+
this.RegionSet = null;
|
|
450
|
+
|
|
451
|
+
/**
|
|
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.
|
|
453
|
+
* @type {string || null}
|
|
454
|
+
*/
|
|
455
|
+
this.RequestId = null;
|
|
456
|
+
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* @private
|
|
461
|
+
*/
|
|
462
|
+
deserialize(params) {
|
|
463
|
+
if (!params) {
|
|
464
|
+
return;
|
|
465
|
+
}
|
|
466
|
+
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
|
|
467
|
+
|
|
468
|
+
if (params.RegionSet) {
|
|
469
|
+
this.RegionSet = new Array();
|
|
470
|
+
for (let z in params.RegionSet) {
|
|
471
|
+
let obj = new RegionInfo();
|
|
472
|
+
obj.deserialize(params.RegionSet[z]);
|
|
473
|
+
this.RegionSet.push(obj);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
477
|
+
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* DescribeRegions request structure.
|
|
483
|
+
* @class
|
|
484
|
+
*/
|
|
485
|
+
class DescribeRegionsRequest extends AbstractModel {
|
|
486
|
+
constructor(){
|
|
487
|
+
super();
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Name of the product to be queried, such as cvm. for specific value, query the DescribeProducts api.
|
|
491
|
+
* @type {string || null}
|
|
492
|
+
*/
|
|
493
|
+
this.Product = null;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Not passed or 0 means no query [optional business allowlist], 1 means query [optional business allowlist]. if this parameter is set to 1, the allowlist will only be queried when no business allowlist is found.
|
|
497
|
+
* @type {number || null}
|
|
498
|
+
*/
|
|
499
|
+
this.Scene = null;
|
|
500
|
+
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* @private
|
|
505
|
+
*/
|
|
506
|
+
deserialize(params) {
|
|
507
|
+
if (!params) {
|
|
508
|
+
return;
|
|
509
|
+
}
|
|
510
|
+
this.Product = 'Product' in params ? params.Product : null;
|
|
511
|
+
this.Scene = 'Scene' in params ? params.Scene : null;
|
|
512
|
+
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
module.exports = {
|
|
517
|
+
RegionProduct: RegionProduct,
|
|
518
|
+
DescribeProductsRequest: DescribeProductsRequest,
|
|
519
|
+
DescribeProductsResponse: DescribeProductsResponse,
|
|
520
|
+
ZoneInfo: ZoneInfo,
|
|
521
|
+
DescribeZonesRequest: DescribeZonesRequest,
|
|
522
|
+
DescribeZonesResponse: DescribeZonesResponse,
|
|
523
|
+
RegionInfo: RegionInfo,
|
|
524
|
+
DescribeRegionsResponse: DescribeRegionsResponse,
|
|
525
|
+
DescribeRegionsRequest: DescribeRegionsRequest,
|
|
526
|
+
|
|
527
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 RegionProduct = models.RegionProduct;
|
|
20
|
+
const DescribeProductsRequest = models.DescribeProductsRequest;
|
|
21
|
+
const DescribeProductsResponse = models.DescribeProductsResponse;
|
|
22
|
+
const ZoneInfo = models.ZoneInfo;
|
|
23
|
+
const DescribeZonesRequest = models.DescribeZonesRequest;
|
|
24
|
+
const DescribeZonesResponse = models.DescribeZonesResponse;
|
|
25
|
+
const RegionInfo = models.RegionInfo;
|
|
26
|
+
const DescribeRegionsResponse = models.DescribeRegionsResponse;
|
|
27
|
+
const DescribeRegionsRequest = models.DescribeRegionsRequest;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* region client
|
|
32
|
+
* @class
|
|
33
|
+
*/
|
|
34
|
+
class RegionClient extends AbstractClient {
|
|
35
|
+
|
|
36
|
+
constructor(credential, region, profile) {
|
|
37
|
+
super("region.intl.tencentcloudapi.com", "2022-06-27", credential, region, profile);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* This interface (DescribeProducts) is used for querying product information in each supported region list.
|
|
42
|
+
* @param {DescribeProductsRequest} req
|
|
43
|
+
* @param {function(string, DescribeProductsResponse):void} cb
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
DescribeProducts(req, cb) {
|
|
47
|
+
let resp = new DescribeProductsResponse();
|
|
48
|
+
this.request("DescribeProducts", req, resp, cb);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* This interface (DescribeRegions) is used for querying the supported regions of each product.
|
|
53
|
+
* @param {DescribeRegionsRequest} req
|
|
54
|
+
* @param {function(string, DescribeRegionsResponse):void} cb
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
DescribeRegions(req, cb) {
|
|
58
|
+
let resp = new DescribeRegionsResponse();
|
|
59
|
+
this.request("DescribeRegions", req, resp, cb);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* This interface (DescribeZones) is used for querying product availability zone information.
|
|
64
|
+
* @param {DescribeZonesRequest} req
|
|
65
|
+
* @param {function(string, DescribeZonesResponse):void} cb
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
DescribeZones(req, cb) {
|
|
69
|
+
let resp = new DescribeZonesResponse();
|
|
70
|
+
this.request("DescribeZones", req, resp, cb);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
module.exports = RegionClient;
|