/
mna_client.js
169 lines (169 loc) · 4.57 KB
/
mna_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");
/**
* mna client
* @class
*/
class Client extends abstract_client_1.AbstractClient {
constructor(clientConfig) {
super("mna.tencentcloudapi.com", "2021-01-19", clientConfig);
}
/**
* 更新硬件信息
*/
async UpdateHardware(req, cb) {
return this.request("UpdateHardware", req, cb);
}
/**
* 可开启/关闭流量包自动续费,不影响当前周期正在生效的流量包。
*/
async ModifyPackageRenewFlag(req, cb) {
return this.request("ModifyPackageRenewFlag", req, cb);
}
/**
* 获取指定设备Id,指定时间点数据流量使用情况
*/
async GetFlowStatistic(req, cb) {
return this.request("GetFlowStatistic", req, cb);
}
/**
* 批量获取设备流量统计曲线
*/
async GetMultiFlowStatistic(req, cb) {
return this.request("GetMultiFlowStatistic", req, cb);
}
/**
* 获取设备信息列表
*/
async GetDevices(req, cb) {
return this.request("GetDevices", req, cb);
}
/**
* 获取公钥用于验签
*/
async GetPublicKey(req, cb) {
return this.request("GetPublicKey", req, cb);
}
/**
* 激活硬件设备
*/
async ActivateHardware(req, cb) {
return this.request("ActivateHardware", req, cb);
}
/**
* 获取流量包列表
*/
async GetFlowPackages(req, cb) {
return this.request("GetFlowPackages", req, cb);
}
/**
* 添加硬件设备,生成未激活的硬件设备,可支持批量添加
*/
async AddHardware(req, cb) {
return this.request("AddHardware", req, cb);
}
/**
* 移动网络发起Qos加速过程
*/
async CreateQos(req, cb) {
return this.request("CreateQos", req, cb);
}
/**
* 删除设备信息
*/
async DeleteDevice(req, cb) {
return this.request("DeleteDevice", req, cb);
}
/**
* 更新设备信息
*/
async UpdateDevice(req, cb) {
return this.request("UpdateDevice", req, cb);
}
/**
* 获取单设备的实时流量统计指标
*/
async GetNetMonitor(req, cb) {
return this.request("GetNetMonitor", req, cb);
}
/**
* 获取设备付费模式
*/
async GetDevicePayMode(req, cb) {
return this.request("GetDevicePayMode", req, cb);
}
/**
* 获取厂商硬件设备列表
*/
async GetVendorHardware(req, cb) {
return this.request("GetVendorHardware", req, cb);
}
/**
* 通过此接口设置和更新预置密钥
*/
async CreateEncryptedKey(req, cb) {
return this.request("CreateEncryptedKey", req, cb);
}
/**
* 移动网络停止Qos加速过程
*/
async DeleteQos(req, cb) {
return this.request("DeleteQos", req, cb);
}
/**
* 通过指定设备的ID查找设备详细信息
*/
async GetDevice(req, cb) {
return this.request("GetDevice", req, cb);
}
/**
* 购买预付费流量包
*/
async OrderFlowPackage(req, cb) {
return this.request("OrderFlowPackage", req, cb);
}
/**
* 在用量统计页面下载流量数据
*/
async GetStatisticData(req, cb) {
return this.request("GetStatisticData", req, cb);
}
/**
* 获取厂商硬件列表
*/
async GetHardwareList(req, cb) {
return this.request("GetHardwareList", req, cb);
}
/**
* 新建设备记录
*/
async AddDevice(req, cb) {
return this.request("AddDevice", req, cb);
}
/**
* 获取Qos加速状态
*/
async DescribeQos(req, cb) {
return this.request("DescribeQos", req, cb);
}
}
exports.Client = Client;