tencentcloud-sdk-nodejs-intl-en 3.0.994 → 3.0.995
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/advisor/index.js +3 -0
- package/tencentcloud/advisor/v20200721/advisor_client.js +63 -0
- package/tencentcloud/advisor/v20200721/index.js +4 -0
- package/tencentcloud/advisor/v20200721/models.js +477 -0
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/dlc/v20210125/dlc_client.js +14 -1
- package/tencentcloud/dlc/v20210125/models.js +129 -31
- package/tencentcloud/index.js +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 DescribeStrategiesResponse = models.DescribeStrategiesResponse;
|
|
20
|
+
const DescribeTaskStrategyRisksRequest = models.DescribeTaskStrategyRisksRequest;
|
|
21
|
+
const DescribeTaskStrategyRisksResponse = models.DescribeTaskStrategyRisksResponse;
|
|
22
|
+
const KeyValue = models.KeyValue;
|
|
23
|
+
const RiskFieldsDesc = models.RiskFieldsDesc;
|
|
24
|
+
const Strategies = models.Strategies;
|
|
25
|
+
const Conditions = models.Conditions;
|
|
26
|
+
const DescribeStrategiesRequest = models.DescribeStrategiesRequest;
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* advisor client
|
|
31
|
+
* @class
|
|
32
|
+
*/
|
|
33
|
+
class AdvisorClient extends AbstractClient {
|
|
34
|
+
|
|
35
|
+
constructor(credential, region, profile) {
|
|
36
|
+
super("advisor.tencentcloudapi.com", "2020-07-21", credential, region, profile);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* This API is used to query the risky instance list of the assessment item.
|
|
41
|
+
* @param {DescribeTaskStrategyRisksRequest} req
|
|
42
|
+
* @param {function(string, DescribeTaskStrategyRisksResponse):void} cb
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
DescribeTaskStrategyRisks(req, cb) {
|
|
46
|
+
let resp = new DescribeTaskStrategyRisksResponse();
|
|
47
|
+
this.request("DescribeTaskStrategyRisks", req, resp, cb);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* This API is used to query information about assessment items.
|
|
52
|
+
* @param {DescribeStrategiesRequest} req
|
|
53
|
+
* @param {function(string, DescribeStrategiesResponse):void} cb
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
DescribeStrategies(req, cb) {
|
|
57
|
+
let resp = new DescribeStrategiesResponse();
|
|
58
|
+
this.request("DescribeStrategies", req, resp, cb);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
module.exports = AdvisorClient;
|
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. 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
|
+
* DescribeStrategies response structure.
|
|
21
|
+
* @class
|
|
22
|
+
*/
|
|
23
|
+
class DescribeStrategiesResponse extends AbstractModel {
|
|
24
|
+
constructor(){
|
|
25
|
+
super();
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Assessment item list
|
|
29
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
30
|
+
* @type {Array.<Strategies> || null}
|
|
31
|
+
*/
|
|
32
|
+
this.Strategies = null;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 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.
|
|
36
|
+
* @type {string || null}
|
|
37
|
+
*/
|
|
38
|
+
this.RequestId = null;
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @private
|
|
44
|
+
*/
|
|
45
|
+
deserialize(params) {
|
|
46
|
+
if (!params) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (params.Strategies) {
|
|
51
|
+
this.Strategies = new Array();
|
|
52
|
+
for (let z in params.Strategies) {
|
|
53
|
+
let obj = new Strategies();
|
|
54
|
+
obj.deserialize(params.Strategies[z]);
|
|
55
|
+
this.Strategies.push(obj);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
59
|
+
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* DescribeTaskStrategyRisks request structure.
|
|
65
|
+
* @class
|
|
66
|
+
*/
|
|
67
|
+
class DescribeTaskStrategyRisksRequest extends AbstractModel {
|
|
68
|
+
constructor(){
|
|
69
|
+
super();
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Assessment item ID
|
|
73
|
+
* @type {number || null}
|
|
74
|
+
*/
|
|
75
|
+
this.StrategyId = null;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Quantity of returns. It is 100 by default, and the maximum value is 200.
|
|
79
|
+
* @type {number || null}
|
|
80
|
+
*/
|
|
81
|
+
this.Limit = null;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Offset, which is 0 by default.
|
|
85
|
+
* @type {number || null}
|
|
86
|
+
*/
|
|
87
|
+
this.Offset = null;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Environment
|
|
91
|
+
* @type {string || null}
|
|
92
|
+
*/
|
|
93
|
+
this.Env = null;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Task type
|
|
97
|
+
* @type {string || null}
|
|
98
|
+
*/
|
|
99
|
+
this.TaskType = null;
|
|
100
|
+
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @private
|
|
105
|
+
*/
|
|
106
|
+
deserialize(params) {
|
|
107
|
+
if (!params) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
this.StrategyId = 'StrategyId' in params ? params.StrategyId : null;
|
|
111
|
+
this.Limit = 'Limit' in params ? params.Limit : null;
|
|
112
|
+
this.Offset = 'Offset' in params ? params.Offset : null;
|
|
113
|
+
this.Env = 'Env' in params ? params.Env : null;
|
|
114
|
+
this.TaskType = 'TaskType' in params ? params.TaskType : null;
|
|
115
|
+
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* DescribeTaskStrategyRisks response structure.
|
|
121
|
+
* @class
|
|
122
|
+
*/
|
|
123
|
+
class DescribeTaskStrategyRisksResponse extends AbstractModel {
|
|
124
|
+
constructor(){
|
|
125
|
+
super();
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* According to this configuration, match the corresponding fields of the risky instance list (Risks), for example:
|
|
129
|
+
{"Response":{"RequestId":"111","RiskFieldsDesc":[{"Field":"InstanceId","FieldName":"ID","FieldType":"string","FieldDict":{} },{"Field":"InstanceName","FieldName":"Name","FieldType":"string","FieldDict":{}},{"Field":"InstanceState","FieldName":"Status ","FieldType":"string","FieldDict":{"LAUNCH_FAILED":"Creation failed","PENDING":"Creating","REBOOTING":"Re- starting","RUNNING":"Running","SHUTDOWN":"Stop waiting to be terminated","STARTING":"Starting","STOPPED":"Shut down","STOPPING":"Shutting down"," TERMINATING":"Terminating"}},{"Field":"Zone","FieldName":"Available zone","FieldType":"string","FieldDict":{}},{"Field":" PrivateIPAddresses","FieldName":"Private IP addresses","FieldType":"stringSlice","FieldDict":{}},{"Field":"PublicIPAddresses","FieldName":"Public IP addresses","Field Type":"stringSlice","FieldDict":{}},{"Field":"Region","FieldName":"Region","FieldType":"string","FieldDict":{}},{" Field":"Tags","FieldName":"Tags","FieldType":"tags","FieldDict":{}}],"RiskTotalCount":3,"Risks":"[{\"InstanceId\" :\"ins-xxx1\",\"InstanceName\":\"xxx1\",\"InstanceState\":\"RUNNING\",\"PrivateIPAddresses\":[\"1.17.64.2\"],\ " PublicIPAddresses\":null,\"Region\":\"ap-shanghai\",\"Tags\":null,\"Zone\":\"ap-shanghai-2\"},{\"InstanceId\ ":\"ins-xxx2\",\"InstanceName\":\"xxx2\",\"InstanceState\":\"RUNNING\",\"PrivateIPAddresses\":[\"1.17.64.11\"], \"PublicIPAddresses\":null,\"Region\":\"ap-shanghai\",\"Tags\":null,\"Zone\":\"ap-shanghai-2\"}]"," StrategyId":9}}
|
|
130
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
131
|
+
* @type {Array.<RiskFieldsDesc> || null}
|
|
132
|
+
*/
|
|
133
|
+
this.RiskFieldsDesc = null;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Assessment item ID
|
|
137
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
138
|
+
* @type {number || null}
|
|
139
|
+
*/
|
|
140
|
+
this.StrategyId = null;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Number of risky instances
|
|
144
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
145
|
+
* @type {number || null}
|
|
146
|
+
*/
|
|
147
|
+
this.RiskTotalCount = null;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Risky instance details list. Require json decode.
|
|
151
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
152
|
+
* @type {string || null}
|
|
153
|
+
*/
|
|
154
|
+
this.Risks = null;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Number of inspection resources
|
|
158
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
159
|
+
* @type {number || null}
|
|
160
|
+
*/
|
|
161
|
+
this.ResourceCount = null;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* 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.
|
|
165
|
+
* @type {string || null}
|
|
166
|
+
*/
|
|
167
|
+
this.RequestId = null;
|
|
168
|
+
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @private
|
|
173
|
+
*/
|
|
174
|
+
deserialize(params) {
|
|
175
|
+
if (!params) {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if (params.RiskFieldsDesc) {
|
|
180
|
+
this.RiskFieldsDesc = new Array();
|
|
181
|
+
for (let z in params.RiskFieldsDesc) {
|
|
182
|
+
let obj = new RiskFieldsDesc();
|
|
183
|
+
obj.deserialize(params.RiskFieldsDesc[z]);
|
|
184
|
+
this.RiskFieldsDesc.push(obj);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
this.StrategyId = 'StrategyId' in params ? params.StrategyId : null;
|
|
188
|
+
this.RiskTotalCount = 'RiskTotalCount' in params ? params.RiskTotalCount : null;
|
|
189
|
+
this.Risks = 'Risks' in params ? params.Risks : null;
|
|
190
|
+
this.ResourceCount = 'ResourceCount' in params ? params.ResourceCount : null;
|
|
191
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
192
|
+
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Key-value pair
|
|
198
|
+
* @class
|
|
199
|
+
*/
|
|
200
|
+
class KeyValue extends AbstractModel {
|
|
201
|
+
constructor(){
|
|
202
|
+
super();
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Key name
|
|
206
|
+
* @type {string || null}
|
|
207
|
+
*/
|
|
208
|
+
this.Key = null;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Value corresponding to the key name
|
|
212
|
+
* @type {string || null}
|
|
213
|
+
*/
|
|
214
|
+
this.Value = null;
|
|
215
|
+
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @private
|
|
220
|
+
*/
|
|
221
|
+
deserialize(params) {
|
|
222
|
+
if (!params) {
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
this.Key = 'Key' in params ? params.Key : null;
|
|
226
|
+
this.Value = 'Value' in params ? params.Value : null;
|
|
227
|
+
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Risky instance field description
|
|
233
|
+
* @class
|
|
234
|
+
*/
|
|
235
|
+
class RiskFieldsDesc extends AbstractModel {
|
|
236
|
+
constructor(){
|
|
237
|
+
super();
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Field ID
|
|
241
|
+
* @type {string || null}
|
|
242
|
+
*/
|
|
243
|
+
this.Field = null;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Field name
|
|
247
|
+
* @type {string || null}
|
|
248
|
+
*/
|
|
249
|
+
this.FieldName = null;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Field type,
|
|
253
|
+
string: String type, such as "aa"
|
|
254
|
+
int: Integer, for example, 111
|
|
255
|
+
stringSlice : String array type, such as ["a", "b"]
|
|
256
|
+
tags: Tag type, for example: [{"Key":"kkk","Value":"vvv"},{"Key":"kkk2","Value":"vvv2"}]
|
|
257
|
+
* @type {string || null}
|
|
258
|
+
*/
|
|
259
|
+
this.FieldType = null;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Dictionary corresponding to the field value
|
|
263
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
264
|
+
* @type {Array.<KeyValue> || null}
|
|
265
|
+
*/
|
|
266
|
+
this.FieldDict = null;
|
|
267
|
+
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @private
|
|
272
|
+
*/
|
|
273
|
+
deserialize(params) {
|
|
274
|
+
if (!params) {
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
this.Field = 'Field' in params ? params.Field : null;
|
|
278
|
+
this.FieldName = 'FieldName' in params ? params.FieldName : null;
|
|
279
|
+
this.FieldType = 'FieldType' in params ? params.FieldType : null;
|
|
280
|
+
|
|
281
|
+
if (params.FieldDict) {
|
|
282
|
+
this.FieldDict = new Array();
|
|
283
|
+
for (let z in params.FieldDict) {
|
|
284
|
+
let obj = new KeyValue();
|
|
285
|
+
obj.deserialize(params.FieldDict[z]);
|
|
286
|
+
this.FieldDict.push(obj);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Information about assessment items
|
|
295
|
+
* @class
|
|
296
|
+
*/
|
|
297
|
+
class Strategies extends AbstractModel {
|
|
298
|
+
constructor(){
|
|
299
|
+
super();
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Assessment item ID
|
|
303
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
304
|
+
* @type {number || null}
|
|
305
|
+
*/
|
|
306
|
+
this.StrategyId = null;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Assessment item name
|
|
310
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
311
|
+
* @type {string || null}
|
|
312
|
+
*/
|
|
313
|
+
this.Name = null;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Assessment item description
|
|
317
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
318
|
+
* @type {string || null}
|
|
319
|
+
*/
|
|
320
|
+
this.Desc = null;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Product ID corresponding to the assessment item
|
|
324
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
325
|
+
* @type {string || null}
|
|
326
|
+
*/
|
|
327
|
+
this.Product = null;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Product name corresponding to the assessment item
|
|
331
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
332
|
+
* @type {string || null}
|
|
333
|
+
*/
|
|
334
|
+
this.ProductDesc = null;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Optimization suggestions for the assessment item
|
|
338
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
339
|
+
* @type {string || null}
|
|
340
|
+
*/
|
|
341
|
+
this.Repair = null;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Category ID of the assessment item
|
|
345
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
346
|
+
* @type {number || null}
|
|
347
|
+
*/
|
|
348
|
+
this.GroupId = null;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Category name of the assessment item
|
|
352
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
353
|
+
* @type {string || null}
|
|
354
|
+
*/
|
|
355
|
+
this.GroupName = null;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Risk list of the assessment item
|
|
359
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
360
|
+
* @type {Array.<Conditions> || null}
|
|
361
|
+
*/
|
|
362
|
+
this.Conditions = null;
|
|
363
|
+
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* @private
|
|
368
|
+
*/
|
|
369
|
+
deserialize(params) {
|
|
370
|
+
if (!params) {
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
this.StrategyId = 'StrategyId' in params ? params.StrategyId : null;
|
|
374
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
375
|
+
this.Desc = 'Desc' in params ? params.Desc : null;
|
|
376
|
+
this.Product = 'Product' in params ? params.Product : null;
|
|
377
|
+
this.ProductDesc = 'ProductDesc' in params ? params.ProductDesc : null;
|
|
378
|
+
this.Repair = 'Repair' in params ? params.Repair : null;
|
|
379
|
+
this.GroupId = 'GroupId' in params ? params.GroupId : null;
|
|
380
|
+
this.GroupName = 'GroupName' in params ? params.GroupName : null;
|
|
381
|
+
|
|
382
|
+
if (params.Conditions) {
|
|
383
|
+
this.Conditions = new Array();
|
|
384
|
+
for (let z in params.Conditions) {
|
|
385
|
+
let obj = new Conditions();
|
|
386
|
+
obj.deserialize(params.Conditions[z]);
|
|
387
|
+
this.Conditions.push(obj);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Warning conditions of the assessment item
|
|
396
|
+
* @class
|
|
397
|
+
*/
|
|
398
|
+
class Conditions extends AbstractModel {
|
|
399
|
+
constructor(){
|
|
400
|
+
super();
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Warning condition ID
|
|
404
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
405
|
+
* @type {number || null}
|
|
406
|
+
*/
|
|
407
|
+
this.ConditionId = null;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Warning level. 2: medium risk; 3: high risk.
|
|
411
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
412
|
+
* @type {number || null}
|
|
413
|
+
*/
|
|
414
|
+
this.Level = null;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Warning level description
|
|
418
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
419
|
+
* @type {string || null}
|
|
420
|
+
*/
|
|
421
|
+
this.LevelDesc = null;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Warning condition description
|
|
425
|
+
* @type {string || null}
|
|
426
|
+
*/
|
|
427
|
+
this.Desc = null;
|
|
428
|
+
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* @private
|
|
433
|
+
*/
|
|
434
|
+
deserialize(params) {
|
|
435
|
+
if (!params) {
|
|
436
|
+
return;
|
|
437
|
+
}
|
|
438
|
+
this.ConditionId = 'ConditionId' in params ? params.ConditionId : null;
|
|
439
|
+
this.Level = 'Level' in params ? params.Level : null;
|
|
440
|
+
this.LevelDesc = 'LevelDesc' in params ? params.LevelDesc : null;
|
|
441
|
+
this.Desc = 'Desc' in params ? params.Desc : null;
|
|
442
|
+
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* DescribeStrategies request structure.
|
|
448
|
+
* @class
|
|
449
|
+
*/
|
|
450
|
+
class DescribeStrategiesRequest extends AbstractModel {
|
|
451
|
+
constructor(){
|
|
452
|
+
super();
|
|
453
|
+
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* @private
|
|
458
|
+
*/
|
|
459
|
+
deserialize(params) {
|
|
460
|
+
if (!params) {
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
module.exports = {
|
|
468
|
+
DescribeStrategiesResponse: DescribeStrategiesResponse,
|
|
469
|
+
DescribeTaskStrategyRisksRequest: DescribeTaskStrategyRisksRequest,
|
|
470
|
+
DescribeTaskStrategyRisksResponse: DescribeTaskStrategyRisksResponse,
|
|
471
|
+
KeyValue: KeyValue,
|
|
472
|
+
RiskFieldsDesc: RiskFieldsDesc,
|
|
473
|
+
Strategies: Strategies,
|
|
474
|
+
Conditions: Conditions,
|
|
475
|
+
DescribeStrategiesRequest: DescribeStrategiesRequest,
|
|
476
|
+
|
|
477
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.995";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -60,7 +60,7 @@ const DetachUserPolicyRequest = models.DetachUserPolicyRequest;
|
|
|
60
60
|
const CrontabResumeSuspendStrategy = models.CrontabResumeSuspendStrategy;
|
|
61
61
|
const CreateCHDFSBindingProductRequest = models.CreateCHDFSBindingProductRequest;
|
|
62
62
|
const DescribeTasksResponse = models.DescribeTasksResponse;
|
|
63
|
-
const
|
|
63
|
+
const DropDMSTableResponse = models.DropDMSTableResponse;
|
|
64
64
|
const CommonMetrics = models.CommonMetrics;
|
|
65
65
|
const UserRole = models.UserRole;
|
|
66
66
|
const DataEngineBasicInfo = models.DataEngineBasicInfo;
|
|
@@ -110,6 +110,7 @@ const SmartOptimizerWrittenPolicy = models.SmartOptimizerWrittenPolicy;
|
|
|
110
110
|
const TPartition = models.TPartition;
|
|
111
111
|
const DescribeForbiddenTableProRequest = models.DescribeForbiddenTableProRequest;
|
|
112
112
|
const CreateDataEngineResponse = models.CreateDataEngineResponse;
|
|
113
|
+
const VpcInfo = models.VpcInfo;
|
|
113
114
|
const DescribeSparkAppJobsRequest = models.DescribeSparkAppJobsRequest;
|
|
114
115
|
const DescribeDataEngineRequest = models.DescribeDataEngineRequest;
|
|
115
116
|
const RollbackDataEngineImageResponse = models.RollbackDataEngineImageResponse;
|
|
@@ -147,6 +148,7 @@ const Users = models.Users;
|
|
|
147
148
|
const GrantDLCCatalogAccessRequest = models.GrantDLCCatalogAccessRequest;
|
|
148
149
|
const DataEngineConfigPair = models.DataEngineConfigPair;
|
|
149
150
|
const SessionResourceTemplate = models.SessionResourceTemplate;
|
|
151
|
+
const DropDMSTableRequest = models.DropDMSTableRequest;
|
|
150
152
|
const AttachWorkGroupPolicyResponse = models.AttachWorkGroupPolicyResponse;
|
|
151
153
|
const ModifyAdvancedStoreLocationResponse = models.ModifyAdvancedStoreLocationResponse;
|
|
152
154
|
const DescribeSubUserAccessPolicyResponse = models.DescribeSubUserAccessPolicyResponse;
|
|
@@ -1223,6 +1225,17 @@ class DlcClient extends AbstractClient {
|
|
|
1223
1225
|
this.request("ModifyDataEngineDescription", req, resp, cb);
|
|
1224
1226
|
}
|
|
1225
1227
|
|
|
1228
|
+
/**
|
|
1229
|
+
* This API is used to delete tables in the DMS metadata module.
|
|
1230
|
+
* @param {DropDMSTableRequest} req
|
|
1231
|
+
* @param {function(string, DropDMSTableResponse):void} cb
|
|
1232
|
+
* @public
|
|
1233
|
+
*/
|
|
1234
|
+
DropDMSTable(req, cb) {
|
|
1235
|
+
let resp = new DropDMSTableResponse();
|
|
1236
|
+
this.request("DropDMSTable", req, resp, cb);
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1226
1239
|
/**
|
|
1227
1240
|
* This API is used to query the storage location of calculation results.
|
|
1228
1241
|
* @param {DescribeStoreLocationRequest} req
|
|
@@ -2357,40 +2357,18 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
2357
2357
|
}
|
|
2358
2358
|
|
|
2359
2359
|
/**
|
|
2360
|
-
*
|
|
2360
|
+
* DropDMSTable response structure.
|
|
2361
2361
|
* @class
|
|
2362
2362
|
*/
|
|
2363
|
-
class
|
|
2363
|
+
class DropDMSTableResponse extends AbstractModel {
|
|
2364
2364
|
constructor(){
|
|
2365
2365
|
super();
|
|
2366
2366
|
|
|
2367
2367
|
/**
|
|
2368
|
-
*
|
|
2369
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
2370
|
-
* @type {string || null}
|
|
2371
|
-
*/
|
|
2372
|
-
this.VpcId = null;
|
|
2373
|
-
|
|
2374
|
-
/**
|
|
2375
|
-
* VPC subnet
|
|
2376
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
2377
|
-
* @type {string || null}
|
|
2378
|
-
*/
|
|
2379
|
-
this.VpcCidrBlock = null;
|
|
2380
|
-
|
|
2381
|
-
/**
|
|
2382
|
-
* Rule ID
|
|
2383
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
2384
|
-
* @type {number || null}
|
|
2385
|
-
*/
|
|
2386
|
-
this.RuleId = null;
|
|
2387
|
-
|
|
2388
|
-
/**
|
|
2389
|
-
* Permission group ID
|
|
2390
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
2368
|
+
* 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.
|
|
2391
2369
|
* @type {string || null}
|
|
2392
2370
|
*/
|
|
2393
|
-
this.
|
|
2371
|
+
this.RequestId = null;
|
|
2394
2372
|
|
|
2395
2373
|
}
|
|
2396
2374
|
|
|
@@ -2401,10 +2379,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
2401
2379
|
if (!params) {
|
|
2402
2380
|
return;
|
|
2403
2381
|
}
|
|
2404
|
-
this.
|
|
2405
|
-
this.VpcCidrBlock = 'VpcCidrBlock' in params ? params.VpcCidrBlock : null;
|
|
2406
|
-
this.RuleId = 'RuleId' in params ? params.RuleId : null;
|
|
2407
|
-
this.AccessGroupId = 'AccessGroupId' in params ? params.AccessGroupId : null;
|
|
2382
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
2408
2383
|
|
|
2409
2384
|
}
|
|
2410
2385
|
}
|
|
@@ -5047,6 +5022,59 @@ class CreateDataEngineResponse extends AbstractModel {
|
|
|
5047
5022
|
}
|
|
5048
5023
|
}
|
|
5049
5024
|
|
|
5025
|
+
/**
|
|
5026
|
+
* VPC information
|
|
5027
|
+
* @class
|
|
5028
|
+
*/
|
|
5029
|
+
class VpcInfo extends AbstractModel {
|
|
5030
|
+
constructor(){
|
|
5031
|
+
super();
|
|
5032
|
+
|
|
5033
|
+
/**
|
|
5034
|
+
* vpc Id
|
|
5035
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
5036
|
+
* @type {string || null}
|
|
5037
|
+
*/
|
|
5038
|
+
this.VpcId = null;
|
|
5039
|
+
|
|
5040
|
+
/**
|
|
5041
|
+
* VPC subnet
|
|
5042
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
5043
|
+
* @type {string || null}
|
|
5044
|
+
*/
|
|
5045
|
+
this.VpcCidrBlock = null;
|
|
5046
|
+
|
|
5047
|
+
/**
|
|
5048
|
+
* Rule ID
|
|
5049
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
5050
|
+
* @type {number || null}
|
|
5051
|
+
*/
|
|
5052
|
+
this.RuleId = null;
|
|
5053
|
+
|
|
5054
|
+
/**
|
|
5055
|
+
* Permission group ID
|
|
5056
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
5057
|
+
* @type {string || null}
|
|
5058
|
+
*/
|
|
5059
|
+
this.AccessGroupId = null;
|
|
5060
|
+
|
|
5061
|
+
}
|
|
5062
|
+
|
|
5063
|
+
/**
|
|
5064
|
+
* @private
|
|
5065
|
+
*/
|
|
5066
|
+
deserialize(params) {
|
|
5067
|
+
if (!params) {
|
|
5068
|
+
return;
|
|
5069
|
+
}
|
|
5070
|
+
this.VpcId = 'VpcId' in params ? params.VpcId : null;
|
|
5071
|
+
this.VpcCidrBlock = 'VpcCidrBlock' in params ? params.VpcCidrBlock : null;
|
|
5072
|
+
this.RuleId = 'RuleId' in params ? params.RuleId : null;
|
|
5073
|
+
this.AccessGroupId = 'AccessGroupId' in params ? params.AccessGroupId : null;
|
|
5074
|
+
|
|
5075
|
+
}
|
|
5076
|
+
}
|
|
5077
|
+
|
|
5050
5078
|
/**
|
|
5051
5079
|
* DescribeSparkAppJobs request structure.
|
|
5052
5080
|
* @class
|
|
@@ -6868,6 +6896,60 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
6868
6896
|
}
|
|
6869
6897
|
}
|
|
6870
6898
|
|
|
6899
|
+
/**
|
|
6900
|
+
* DropDMSTable request structure.
|
|
6901
|
+
* @class
|
|
6902
|
+
*/
|
|
6903
|
+
class DropDMSTableRequest extends AbstractModel {
|
|
6904
|
+
constructor(){
|
|
6905
|
+
super();
|
|
6906
|
+
|
|
6907
|
+
/**
|
|
6908
|
+
* Database name
|
|
6909
|
+
* @type {string || null}
|
|
6910
|
+
*/
|
|
6911
|
+
this.DbName = null;
|
|
6912
|
+
|
|
6913
|
+
/**
|
|
6914
|
+
* Table name
|
|
6915
|
+
* @type {string || null}
|
|
6916
|
+
*/
|
|
6917
|
+
this.Name = null;
|
|
6918
|
+
|
|
6919
|
+
/**
|
|
6920
|
+
* Whether to delete the data
|
|
6921
|
+
* @type {boolean || null}
|
|
6922
|
+
*/
|
|
6923
|
+
this.DeleteData = null;
|
|
6924
|
+
|
|
6925
|
+
/**
|
|
6926
|
+
* Environment properties
|
|
6927
|
+
* @type {KVPair || null}
|
|
6928
|
+
*/
|
|
6929
|
+
this.EnvProps = null;
|
|
6930
|
+
|
|
6931
|
+
}
|
|
6932
|
+
|
|
6933
|
+
/**
|
|
6934
|
+
* @private
|
|
6935
|
+
*/
|
|
6936
|
+
deserialize(params) {
|
|
6937
|
+
if (!params) {
|
|
6938
|
+
return;
|
|
6939
|
+
}
|
|
6940
|
+
this.DbName = 'DbName' in params ? params.DbName : null;
|
|
6941
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
6942
|
+
this.DeleteData = 'DeleteData' in params ? params.DeleteData : null;
|
|
6943
|
+
|
|
6944
|
+
if (params.EnvProps) {
|
|
6945
|
+
let obj = new KVPair();
|
|
6946
|
+
obj.deserialize(params.EnvProps)
|
|
6947
|
+
this.EnvProps = obj;
|
|
6948
|
+
}
|
|
6949
|
+
|
|
6950
|
+
}
|
|
6951
|
+
}
|
|
6952
|
+
|
|
6871
6953
|
/**
|
|
6872
6954
|
* AttachWorkGroupPolicy response structure.
|
|
6873
6955
|
* @class
|
|
@@ -12085,6 +12167,18 @@ class UpdateDataEngineConfigRequest extends AbstractModel {
|
|
|
12085
12167
|
*/
|
|
12086
12168
|
this.DataEngineConfigCommand = null;
|
|
12087
12169
|
|
|
12170
|
+
/**
|
|
12171
|
+
* Whether to use lakeFS as result storage
|
|
12172
|
+
* @type {boolean || null}
|
|
12173
|
+
*/
|
|
12174
|
+
this.UseLakeFs = null;
|
|
12175
|
+
|
|
12176
|
+
/**
|
|
12177
|
+
* User-defined result path
|
|
12178
|
+
* @type {string || null}
|
|
12179
|
+
*/
|
|
12180
|
+
this.CustomResultPath = null;
|
|
12181
|
+
|
|
12088
12182
|
}
|
|
12089
12183
|
|
|
12090
12184
|
/**
|
|
@@ -12096,6 +12190,8 @@ class UpdateDataEngineConfigRequest extends AbstractModel {
|
|
|
12096
12190
|
}
|
|
12097
12191
|
this.DataEngineIds = 'DataEngineIds' in params ? params.DataEngineIds : null;
|
|
12098
12192
|
this.DataEngineConfigCommand = 'DataEngineConfigCommand' in params ? params.DataEngineConfigCommand : null;
|
|
12193
|
+
this.UseLakeFs = 'UseLakeFs' in params ? params.UseLakeFs : null;
|
|
12194
|
+
this.CustomResultPath = 'CustomResultPath' in params ? params.CustomResultPath : null;
|
|
12099
12195
|
|
|
12100
12196
|
}
|
|
12101
12197
|
}
|
|
@@ -13489,7 +13585,7 @@ module.exports = {
|
|
|
13489
13585
|
CrontabResumeSuspendStrategy: CrontabResumeSuspendStrategy,
|
|
13490
13586
|
CreateCHDFSBindingProductRequest: CreateCHDFSBindingProductRequest,
|
|
13491
13587
|
DescribeTasksResponse: DescribeTasksResponse,
|
|
13492
|
-
|
|
13588
|
+
DropDMSTableResponse: DropDMSTableResponse,
|
|
13493
13589
|
CommonMetrics: CommonMetrics,
|
|
13494
13590
|
UserRole: UserRole,
|
|
13495
13591
|
DataEngineBasicInfo: DataEngineBasicInfo,
|
|
@@ -13539,6 +13635,7 @@ module.exports = {
|
|
|
13539
13635
|
TPartition: TPartition,
|
|
13540
13636
|
DescribeForbiddenTableProRequest: DescribeForbiddenTableProRequest,
|
|
13541
13637
|
CreateDataEngineResponse: CreateDataEngineResponse,
|
|
13638
|
+
VpcInfo: VpcInfo,
|
|
13542
13639
|
DescribeSparkAppJobsRequest: DescribeSparkAppJobsRequest,
|
|
13543
13640
|
DescribeDataEngineRequest: DescribeDataEngineRequest,
|
|
13544
13641
|
RollbackDataEngineImageResponse: RollbackDataEngineImageResponse,
|
|
@@ -13576,6 +13673,7 @@ module.exports = {
|
|
|
13576
13673
|
GrantDLCCatalogAccessRequest: GrantDLCCatalogAccessRequest,
|
|
13577
13674
|
DataEngineConfigPair: DataEngineConfigPair,
|
|
13578
13675
|
SessionResourceTemplate: SessionResourceTemplate,
|
|
13676
|
+
DropDMSTableRequest: DropDMSTableRequest,
|
|
13579
13677
|
AttachWorkGroupPolicyResponse: AttachWorkGroupPolicyResponse,
|
|
13580
13678
|
ModifyAdvancedStoreLocationResponse: ModifyAdvancedStoreLocationResponse,
|
|
13581
13679
|
DescribeSubUserAccessPolicyResponse: DescribeSubUserAccessPolicyResponse,
|