tencentcloud-sdk-nodejs-intl-en 3.0.490 → 3.0.491
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/dlc/index.js +3 -0
- package/tencentcloud/dlc/v20210125/dlc_client.js +199 -0
- package/tencentcloud/dlc/v20210125/index.js +4 -0
- package/tencentcloud/dlc/v20210125/models.js +2534 -0
- package/tencentcloud/emr/v20190103/emr_client.js +73 -13
- package/tencentcloud/emr/v20190103/models.js +1660 -280
- package/tencentcloud/index.js +1 -0
- package/tencentcloud/ocr/v20181119/models.js +45 -205
- package/tencentcloud/ocr/v20181119/ocr_client.js +1 -16
- package/tencentcloud/sms/index.js +1 -1
- package/tencentcloud/tem/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.491";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -0,0 +1,199 @@
|
|
|
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 DescribeTaskResultResponse = models.DescribeTaskResultResponse;
|
|
20
|
+
const DescribeTasksRequest = models.DescribeTasksRequest;
|
|
21
|
+
const CreateSparkAppTaskRequest = models.CreateSparkAppTaskRequest;
|
|
22
|
+
const KVPair = models.KVPair;
|
|
23
|
+
const StreamingStatistics = models.StreamingStatistics;
|
|
24
|
+
const Task = models.Task;
|
|
25
|
+
const DescribeSparkAppJobRequest = models.DescribeSparkAppJobRequest;
|
|
26
|
+
const TasksInfo = models.TasksInfo;
|
|
27
|
+
const CreateSparkAppTaskResponse = models.CreateSparkAppTaskResponse;
|
|
28
|
+
const CancelTaskRequest = models.CancelTaskRequest;
|
|
29
|
+
const TaskResponseInfo = models.TaskResponseInfo;
|
|
30
|
+
const CreateTasksRequest = models.CreateTasksRequest;
|
|
31
|
+
const CreateTaskResponse = models.CreateTaskResponse;
|
|
32
|
+
const DeleteSparkAppResponse = models.DeleteSparkAppResponse;
|
|
33
|
+
const CreateSparkAppResponse = models.CreateSparkAppResponse;
|
|
34
|
+
const TaskResultInfo = models.TaskResultInfo;
|
|
35
|
+
const DescribeSparkAppJobsResponse = models.DescribeSparkAppJobsResponse;
|
|
36
|
+
const DeleteSparkAppRequest = models.DeleteSparkAppRequest;
|
|
37
|
+
const DescribeSparkAppJobsRequest = models.DescribeSparkAppJobsRequest;
|
|
38
|
+
const CreateTasksResponse = models.CreateTasksResponse;
|
|
39
|
+
const DescribeTasksResponse = models.DescribeTasksResponse;
|
|
40
|
+
const CreateSparkAppRequest = models.CreateSparkAppRequest;
|
|
41
|
+
const DescribeSparkAppTasksResponse = models.DescribeSparkAppTasksResponse;
|
|
42
|
+
const Column = models.Column;
|
|
43
|
+
const DescribeTaskResultRequest = models.DescribeTaskResultRequest;
|
|
44
|
+
const Filter = models.Filter;
|
|
45
|
+
const CreateTaskRequest = models.CreateTaskRequest;
|
|
46
|
+
const ModifySparkAppResponse = models.ModifySparkAppResponse;
|
|
47
|
+
const SparkJobInfo = models.SparkJobInfo;
|
|
48
|
+
const DescribeSparkAppTasksRequest = models.DescribeSparkAppTasksRequest;
|
|
49
|
+
const CancelTaskResponse = models.CancelTaskResponse;
|
|
50
|
+
const SQLTask = models.SQLTask;
|
|
51
|
+
const DescribeSparkAppJobResponse = models.DescribeSparkAppJobResponse;
|
|
52
|
+
const ModifySparkAppRequest = models.ModifySparkAppRequest;
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* dlc client
|
|
57
|
+
* @class
|
|
58
|
+
*/
|
|
59
|
+
class DlcClient extends AbstractClient {
|
|
60
|
+
|
|
61
|
+
constructor(credential, region, profile) {
|
|
62
|
+
super("dlc.tencentcloudapi.com", "2021-01-25", credential, region, profile);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* This API is used to create a SQL query task. (We recommend you use the `CreateTasks` API instead.)
|
|
67
|
+
* @param {CreateTaskRequest} req
|
|
68
|
+
* @param {function(string, CreateTaskResponse):void} cb
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
CreateTask(req, cb) {
|
|
72
|
+
let resp = new CreateTaskResponse();
|
|
73
|
+
this.request("CreateTask", req, resp, cb);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* This API is used to query the list of tasks.
|
|
78
|
+
* @param {DescribeTasksRequest} req
|
|
79
|
+
* @param {function(string, DescribeTasksResponse):void} cb
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
DescribeTasks(req, cb) {
|
|
83
|
+
let resp = new DescribeTasksResponse();
|
|
84
|
+
this.request("DescribeTasks", req, resp, cb);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* This API is used to query the result of a task.
|
|
89
|
+
* @param {DescribeTaskResultRequest} req
|
|
90
|
+
* @param {function(string, DescribeTaskResultResponse):void} cb
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
DescribeTaskResult(req, cb) {
|
|
94
|
+
let resp = new DescribeTaskResultResponse();
|
|
95
|
+
this.request("DescribeTaskResult", req, resp, cb);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* This API is used to cancel a task.
|
|
100
|
+
* @param {CancelTaskRequest} req
|
|
101
|
+
* @param {function(string, CancelTaskResponse):void} cb
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
CancelTask(req, cb) {
|
|
105
|
+
let resp = new CancelTaskResponse();
|
|
106
|
+
this.request("CancelTask", req, resp, cb);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* This API is used to update a Spark application.
|
|
111
|
+
* @param {ModifySparkAppRequest} req
|
|
112
|
+
* @param {function(string, ModifySparkAppResponse):void} cb
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
ModifySparkApp(req, cb) {
|
|
116
|
+
let resp = new ModifySparkAppResponse();
|
|
117
|
+
this.request("ModifySparkApp", req, resp, cb);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* This API is used to query a specific Spark application.
|
|
122
|
+
* @param {DescribeSparkAppJobRequest} req
|
|
123
|
+
* @param {function(string, DescribeSparkAppJobResponse):void} cb
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
DescribeSparkAppJob(req, cb) {
|
|
127
|
+
let resp = new DescribeSparkAppJobResponse();
|
|
128
|
+
this.request("DescribeSparkAppJob", req, resp, cb);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* This API is used to query the list of running task instances of a Spark application.
|
|
133
|
+
* @param {DescribeSparkAppTasksRequest} req
|
|
134
|
+
* @param {function(string, DescribeSparkAppTasksResponse):void} cb
|
|
135
|
+
* @public
|
|
136
|
+
*/
|
|
137
|
+
DescribeSparkAppTasks(req, cb) {
|
|
138
|
+
let resp = new DescribeSparkAppTasksResponse();
|
|
139
|
+
this.request("DescribeSparkAppTasks", req, resp, cb);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* This API is used to get the list of Spark applications.
|
|
144
|
+
* @param {DescribeSparkAppJobsRequest} req
|
|
145
|
+
* @param {function(string, DescribeSparkAppJobsResponse):void} cb
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
DescribeSparkAppJobs(req, cb) {
|
|
149
|
+
let resp = new DescribeSparkAppJobsResponse();
|
|
150
|
+
this.request("DescribeSparkAppJobs", req, resp, cb);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* This API is used to create a Spark application.
|
|
155
|
+
* @param {CreateSparkAppRequest} req
|
|
156
|
+
* @param {function(string, CreateSparkAppResponse):void} cb
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
159
|
+
CreateSparkApp(req, cb) {
|
|
160
|
+
let resp = new CreateSparkAppResponse();
|
|
161
|
+
this.request("CreateSparkApp", req, resp, cb);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* This API is used to delete a Spark application.
|
|
166
|
+
* @param {DeleteSparkAppRequest} req
|
|
167
|
+
* @param {function(string, DeleteSparkAppResponse):void} cb
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
170
|
+
DeleteSparkApp(req, cb) {
|
|
171
|
+
let resp = new DeleteSparkAppResponse();
|
|
172
|
+
this.request("DeleteSparkApp", req, resp, cb);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* This API is used to create tasks in batches.
|
|
177
|
+
* @param {CreateTasksRequest} req
|
|
178
|
+
* @param {function(string, CreateTasksResponse):void} cb
|
|
179
|
+
* @public
|
|
180
|
+
*/
|
|
181
|
+
CreateTasks(req, cb) {
|
|
182
|
+
let resp = new CreateTasksResponse();
|
|
183
|
+
this.request("CreateTasks", req, resp, cb);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* This API is used to create a Spark task.
|
|
188
|
+
* @param {CreateSparkAppTaskRequest} req
|
|
189
|
+
* @param {function(string, CreateSparkAppTaskResponse):void} cb
|
|
190
|
+
* @public
|
|
191
|
+
*/
|
|
192
|
+
CreateSparkAppTask(req, cb) {
|
|
193
|
+
let resp = new CreateSparkAppTaskResponse();
|
|
194
|
+
this.request("CreateSparkAppTask", req, resp, cb);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
}
|
|
199
|
+
module.exports = DlcClient;
|