tencentcloud-sdk-nodejs-intl-en 3.0.1112 → 3.0.1113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,286 @@
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 DeleteProjectRequest = models.DeleteProjectRequest;
20
+ const License = models.License;
21
+ const ModifyDeviceResponse = models.ModifyDeviceResponse;
22
+ const GetLicensesRequest = models.GetLicensesRequest;
23
+ const BatchDeleteDevicesRequest = models.BatchDeleteDevicesRequest;
24
+ const SessionInfo = models.SessionInfo;
25
+ const DescribeDeviceInfoRequest = models.DescribeDeviceInfoRequest;
26
+ const DescribeSessionStatisticsByIntervalResponse = models.DescribeSessionStatisticsByIntervalResponse;
27
+ const DescribeRecentSessionListRequest = models.DescribeRecentSessionListRequest;
28
+ const RecentSessionInfo = models.RecentSessionInfo;
29
+ const DescribeProjectInfoRequest = models.DescribeProjectInfoRequest;
30
+ const ModifyPolicyRequest = models.ModifyPolicyRequest;
31
+ const DescribeDeviceInfoResponse = models.DescribeDeviceInfoResponse;
32
+ const GetLicenseStatRequest = models.GetLicenseStatRequest;
33
+ const DescribeProjectListResponse = models.DescribeProjectListResponse;
34
+ const ModifyProjectResponse = models.ModifyProjectResponse;
35
+ const BatchDeletePolicyResponse = models.BatchDeletePolicyResponse;
36
+ const GetLicenseStatResponse = models.GetLicenseStatResponse;
37
+ const ModifyPolicyResponse = models.ModifyPolicyResponse;
38
+ const Device = models.Device;
39
+ const DescribeSessionStatisticsRequest = models.DescribeSessionStatisticsRequest;
40
+ const BatchDeleteDevicesResponse = models.BatchDeleteDevicesResponse;
41
+ const ModifyProjectRequest = models.ModifyProjectRequest;
42
+ const DescribeRecentSessionListResponse = models.DescribeRecentSessionListResponse;
43
+ const ModifyDeviceRequest = models.ModifyDeviceRequest;
44
+ const DescribeProjectListRequest = models.DescribeProjectListRequest;
45
+ const ProjectInfo = models.ProjectInfo;
46
+ const BatchDeletePolicyRequest = models.BatchDeletePolicyRequest;
47
+ const DescribeDeviceSessionListResponse = models.DescribeDeviceSessionListResponse;
48
+ const DescribeProjectInfoResponse = models.DescribeProjectInfoResponse;
49
+ const DeleteProjectResponse = models.DeleteProjectResponse;
50
+ const GetDeviceLicenseResponse = models.GetDeviceLicenseResponse;
51
+ const CreateDeviceResponse = models.CreateDeviceResponse;
52
+ const DescribeSessionStatisticsByIntervalRequest = models.DescribeSessionStatisticsByIntervalRequest;
53
+ const CreateDeviceRequest = models.CreateDeviceRequest;
54
+ const DescribeSessionStatisticsResponse = models.DescribeSessionStatisticsResponse;
55
+ const GetDevicesResponse = models.GetDevicesResponse;
56
+ const GetLicensesResponse = models.GetLicensesResponse;
57
+ const DescribeDeviceSessionListRequest = models.DescribeDeviceSessionListRequest;
58
+ const GetDevicesRequest = models.GetDevicesRequest;
59
+ const CreateProjectResponse = models.CreateProjectResponse;
60
+ const SessionIntervalStatistic = models.SessionIntervalStatistic;
61
+ const GetDeviceLicenseRequest = models.GetDeviceLicenseRequest;
62
+ const CreateProjectRequest = models.CreateProjectRequest;
63
+
64
+
65
+ /**
66
+ * trro client
67
+ * @class
68
+ */
69
+ class TrroClient extends AbstractClient {
70
+
71
+ constructor(credential, region, profile) {
72
+ super("trro.tencentcloudapi.com", "2022-03-25", credential, region, profile);
73
+ }
74
+
75
+ /**
76
+ * Statistics of license types and quantities
77
+ * @param {GetLicenseStatRequest} req
78
+ * @param {function(string, GetLicenseStatResponse):void} cb
79
+ * @public
80
+ */
81
+ GetLicenseStat(req, cb) {
82
+ let resp = new GetLicenseStatResponse();
83
+ this.request("GetLicenseStat", req, resp, cb);
84
+ }
85
+
86
+ /**
87
+ * Getting session statistics for each time period
88
+ * @param {DescribeSessionStatisticsByIntervalRequest} req
89
+ * @param {function(string, DescribeSessionStatisticsByIntervalResponse):void} cb
90
+ * @public
91
+ */
92
+ DescribeSessionStatisticsByInterval(req, cb) {
93
+ let resp = new DescribeSessionStatisticsByIntervalResponse();
94
+ this.request("DescribeSessionStatisticsByInterval", req, resp, cb);
95
+ }
96
+
97
+ /**
98
+ * This API is used to batch delete and modify permission configurations.
99
+ * @param {BatchDeletePolicyRequest} req
100
+ * @param {function(string, BatchDeletePolicyResponse):void} cb
101
+ * @public
102
+ */
103
+ BatchDeletePolicy(req, cb) {
104
+ let resp = new BatchDeletePolicyResponse();
105
+ this.request("BatchDeletePolicy", req, resp, cb);
106
+ }
107
+
108
+ /**
109
+ * This API is used to create a device.
110
+ * @param {CreateDeviceRequest} req
111
+ * @param {function(string, CreateDeviceResponse):void} cb
112
+ * @public
113
+ */
114
+ CreateDevice(req, cb) {
115
+ let resp = new CreateDeviceResponse();
116
+ this.request("CreateDevice", req, resp, cb);
117
+ }
118
+
119
+ /**
120
+ * This API is used to modify permission configuration.
121
+ * @param {ModifyPolicyRequest} req
122
+ * @param {function(string, ModifyPolicyResponse):void} cb
123
+ * @public
124
+ */
125
+ ModifyPolicy(req, cb) {
126
+ let resp = new ModifyPolicyResponse();
127
+ this.request("ModifyPolicy", req, resp, cb);
128
+ }
129
+
130
+ /**
131
+ * This API is used to delete devices in batches.
132
+ * @param {BatchDeleteDevicesRequest} req
133
+ * @param {function(string, BatchDeleteDevicesResponse):void} cb
134
+ * @public
135
+ */
136
+ BatchDeleteDevices(req, cb) {
137
+ let resp = new BatchDeleteDevicesResponse();
138
+ this.request("BatchDeleteDevices", req, resp, cb);
139
+ }
140
+
141
+ /**
142
+ * Getting the device session list
143
+ * @param {DescribeDeviceSessionListRequest} req
144
+ * @param {function(string, DescribeDeviceSessionListResponse):void} cb
145
+ * @public
146
+ */
147
+ DescribeDeviceSessionList(req, cb) {
148
+ let resp = new DescribeDeviceSessionListResponse();
149
+ this.request("DescribeDeviceSessionList", req, resp, cb);
150
+ }
151
+
152
+ /**
153
+ * View the license list by authorization
154
+ * @param {GetLicensesRequest} req
155
+ * @param {function(string, GetLicensesResponse):void} cb
156
+ * @public
157
+ */
158
+ GetLicenses(req, cb) {
159
+ let resp = new GetLicensesResponse();
160
+ this.request("GetLicenses", req, resp, cb);
161
+ }
162
+
163
+ /**
164
+ * This API is used to get project information.
165
+ * @param {DescribeProjectInfoRequest} req
166
+ * @param {function(string, DescribeProjectInfoResponse):void} cb
167
+ * @public
168
+ */
169
+ DescribeProjectInfo(req, cb) {
170
+ let resp = new DescribeProjectInfoResponse();
171
+ this.request("DescribeProjectInfo", req, resp, cb);
172
+ }
173
+
174
+ /**
175
+ * This API is used to create a project.
176
+ * @param {CreateProjectRequest} req
177
+ * @param {function(string, CreateProjectResponse):void} cb
178
+ * @public
179
+ */
180
+ CreateProject(req, cb) {
181
+ let resp = new CreateProjectResponse();
182
+ this.request("CreateProject", req, resp, cb);
183
+ }
184
+
185
+ /**
186
+ * Get the latest device session list
187
+ * @param {DescribeRecentSessionListRequest} req
188
+ * @param {function(string, DescribeRecentSessionListResponse):void} cb
189
+ * @public
190
+ */
191
+ DescribeRecentSessionList(req, cb) {
192
+ let resp = new DescribeRecentSessionListResponse();
193
+ this.request("DescribeRecentSessionList", req, resp, cb);
194
+ }
195
+
196
+ /**
197
+ * This API is used to get specified device information.
198
+ * @param {DescribeDeviceInfoRequest} req
199
+ * @param {function(string, DescribeDeviceInfoResponse):void} cb
200
+ * @public
201
+ */
202
+ DescribeDeviceInfo(req, cb) {
203
+ let resp = new DescribeDeviceInfoResponse();
204
+ this.request("DescribeDeviceInfo", req, resp, cb);
205
+ }
206
+
207
+ /**
208
+ * This API is used to delete a project.
209
+ * @param {DeleteProjectRequest} req
210
+ * @param {function(string, DeleteProjectResponse):void} cb
211
+ * @public
212
+ */
213
+ DeleteProject(req, cb) {
214
+ let resp = new DeleteProjectResponse();
215
+ this.request("DeleteProject", req, resp, cb);
216
+ }
217
+
218
+ /**
219
+ * Get session statistical values
220
+ * @param {DescribeSessionStatisticsRequest} req
221
+ * @param {function(string, DescribeSessionStatisticsResponse):void} cb
222
+ * @public
223
+ */
224
+ DescribeSessionStatistics(req, cb) {
225
+ let resp = new DescribeSessionStatisticsResponse();
226
+ this.request("DescribeSessionStatistics", req, resp, cb);
227
+ }
228
+
229
+ /**
230
+ * This API is used to modify project information.
231
+ * @param {ModifyProjectRequest} req
232
+ * @param {function(string, ModifyProjectResponse):void} cb
233
+ * @public
234
+ */
235
+ ModifyProject(req, cb) {
236
+ let resp = new ModifyProjectResponse();
237
+ this.request("ModifyProject", req, resp, cb);
238
+ }
239
+
240
+ /**
241
+ * This API is used to get project lists.
242
+ * @param {DescribeProjectListRequest} req
243
+ * @param {function(string, DescribeProjectListResponse):void} cb
244
+ * @public
245
+ */
246
+ DescribeProjectList(req, cb) {
247
+ let resp = new DescribeProjectListResponse();
248
+ this.request("DescribeProjectList", req, resp, cb);
249
+ }
250
+
251
+ /**
252
+ * Query the authorization binding status of user devices
253
+ * @param {GetDevicesRequest} req
254
+ * @param {function(string, GetDevicesResponse):void} cb
255
+ * @public
256
+ */
257
+ GetDevices(req, cb) {
258
+ let resp = new GetDevicesResponse();
259
+ this.request("GetDevices", req, resp, cb);
260
+ }
261
+
262
+ /**
263
+ * This API is used to modify device information.
264
+ * @param {ModifyDeviceRequest} req
265
+ * @param {function(string, ModifyDeviceResponse):void} cb
266
+ * @public
267
+ */
268
+ ModifyDevice(req, cb) {
269
+ let resp = new ModifyDeviceResponse();
270
+ this.request("ModifyDevice", req, resp, cb);
271
+ }
272
+
273
+ /**
274
+ * Obtain the quantity of available authorizations already bound to the device
275
+ * @param {GetDeviceLicenseRequest} req
276
+ * @param {function(string, GetDeviceLicenseResponse):void} cb
277
+ * @public
278
+ */
279
+ GetDeviceLicense(req, cb) {
280
+ let resp = new GetDeviceLicenseResponse();
281
+ this.request("GetDeviceLicense", req, resp, cb);
282
+ }
283
+
284
+
285
+ }
286
+ module.exports = TrroClient;