-
Notifications
You must be signed in to change notification settings - Fork 96
/
trro_client.js
169 lines (169 loc) · 4.65 KB
/
trro_client.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Client = void 0;
/* eslint-disable @typescript-eslint/no-unused-vars */
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const abstract_client_1 = require("../../../common/abstract_client");
/**
* trro client
* @class
*/
class Client extends abstract_client_1.AbstractClient {
constructor(clientConfig) {
super("trro.tencentcloudapi.com", "2022-03-25", clientConfig);
}
/**
* 用于获取项目信息
*/
async DescribeProjectInfo(req, cb) {
return this.request("DescribeProjectInfo", req, cb);
}
/**
* 查询用户设备的授权绑定情况
*/
async GetDevices(req, cb) {
return this.request("GetDevices", req, cb);
}
/**
* 用于修改设备信息
*/
async ModifyDevice(req, cb) {
return this.request("ModifyDevice", req, cb);
}
/**
* 用于查看权限配置
*/
async DescribePolicy(req, cb) {
return this.request("DescribePolicy", req, cb);
}
/**
* 统计license类型数量
*/
async GetLicenseStat(req, cb) {
return this.request("GetLicenseStat", req, cb);
}
/**
* 获取各时间段的会话统计值
*/
async DescribeSessionStatisticsByInterval(req, cb) {
return this.request("DescribeSessionStatisticsByInterval", req, cb);
}
/**
* 为推流设备绑定license,优先绑定到期时间最近的,到期时间相同优先绑定月包
*/
async BoundLicenses(req, cb) {
return this.request("BoundLicenses", req, cb);
}
/**
* 用于批量删除修改权限配置
*/
async BatchDeletePolicy(req, cb) {
return this.request("BatchDeletePolicy", req, cb);
}
/**
* 按授权查看license列表
*/
async GetLicenses(req, cb) {
return this.request("GetLicenses", req, cb);
}
/**
* 用于获取设备信息列表
*/
async DescribeDeviceList(req, cb) {
return this.request("DescribeDeviceList", req, cb);
}
/**
* 用于修改项目信息
*/
async ModifyProject(req, cb) {
return this.request("ModifyProject", req, cb);
}
/**
* 获取设备会话数据详单
*/
async DescribeDeviceSessionDetails(req, cb) {
return this.request("DescribeDeviceSessionDetails", req, cb);
}
/**
* 用于修改权限配置
*/
async ModifyPolicy(req, cb) {
return this.request("ModifyPolicy", req, cb);
}
/**
* 用于创建设备
*/
async CreateDevice(req, cb) {
return this.request("CreateDevice", req, cb);
}
/**
* 用于批量删除设备
*/
async BatchDeleteDevices(req, cb) {
return this.request("BatchDeleteDevices", req, cb);
}
/**
* 获取会话统计值
*/
async DescribeSessionStatistics(req, cb) {
return this.request("DescribeSessionStatistics", req, cb);
}
/**
* 用于获取指定设备信息
*/
async DescribeDeviceInfo(req, cb) {
return this.request("DescribeDeviceInfo", req, cb);
}
/**
* 获取设备会话列表
*/
async DescribeDeviceSessionList(req, cb) {
return this.request("DescribeDeviceSessionList", req, cb);
}
/**
* 用于创建项目
*/
async CreateProject(req, cb) {
return this.request("CreateProject", req, cb);
}
/**
* 获取最新设备会话列表
*/
async DescribeRecentSessionList(req, cb) {
return this.request("DescribeRecentSessionList", req, cb);
}
/**
* 获取设备已经绑定的可用授权数量
*/
async GetDeviceLicense(req, cb) {
return this.request("GetDeviceLicense", req, cb);
}
/**
* 用于删除项目
*/
async DeleteProject(req, cb) {
return this.request("DeleteProject", req, cb);
}
/**
* 用于获取项目列表
*/
async DescribeProjectList(req, cb) {
return this.request("DescribeProjectList", req, cb);
}
}
exports.Client = Client;