tencentcloud-sdk-nodejs 4.0.747 → 4.0.749
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/CHANGELOG.md +420 -0
- package/SERVICE_CHANGELOG.md +373 -233
- package/package.json +1 -1
- package/products.md +28 -28
- package/src/common/sdk_version.ts +1 -1
- package/src/services/batch/v20170312/batch_models.ts +50 -9
- package/src/services/billing/v20180709/billing_models.ts +66 -36
- package/src/services/captcha/v20190722/captcha_client.ts +13 -0
- package/src/services/captcha/v20190722/captcha_models.ts +148 -0
- package/src/services/cat/v20180409/cat_models.ts +2 -2
- package/src/services/cfw/v20190904/cfw_client.ts +47 -11
- package/src/services/cfw/v20190904/cfw_models.ts +257 -109
- package/src/services/clb/v20180317/clb_models.ts +1 -1
- package/src/services/cls/v20201016/cls_models.ts +2 -2
- package/src/services/cvm/v20170312/cvm_models.ts +70 -22
- package/src/services/ess/v20201111/ess_models.ts +38 -3
- package/src/services/essbasic/v20210526/essbasic_client.ts +1 -2
- package/src/services/essbasic/v20210526/essbasic_models.ts +31 -3
- package/src/services/mna/v20210119/mna_client.ts +153 -103
- package/src/services/mna/v20210119/mna_models.ts +299 -79
- package/src/services/monitor/v20180724/monitor_client.ts +1 -1
- package/src/services/oceanus/v20190422/oceanus_models.ts +35 -35
- package/src/services/omics/v20221128/omics_models.ts +2 -2
- package/src/services/sqlserver/v20180328/sqlserver_client.ts +13 -0
- package/src/services/sqlserver/v20180328/sqlserver_models.ts +63 -0
- package/src/services/tiw/v20190919/tiw_client.ts +26 -81
- package/src/services/tiw/v20190919/tiw_models.ts +137 -217
- package/src/services/trtc/v20190722/trtc_models.ts +12 -0
- package/src/services/tsf/v20180326/tsf_client.ts +1 -1
- package/src/services/tsf/v20180326/tsf_models.ts +4 -4
- package/src/services/vod/v20180717/vod_models.ts +31 -25
- package/src/services/vpc/v20170312/vpc_models.ts +6 -0
- package/src/services/wedata/v20210820/wedata_client.ts +1 -0
- package/src/services/wedata/v20210820/wedata_models.ts +133 -32
- package/src/services/weilingwith/v20230427/weilingwith_client.ts +3 -1
- package/src/services/weilingwith/v20230427/weilingwith_models.ts +46 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/batch/v20170312/batch_models.d.ts +50 -9
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +66 -36
- package/tencentcloud/services/captcha/v20190722/captcha_client.d.ts +5 -1
- package/tencentcloud/services/captcha/v20190722/captcha_client.js +6 -0
- package/tencentcloud/services/captcha/v20190722/captcha_models.d.ts +145 -0
- package/tencentcloud/services/cat/v20180409/cat_models.d.ts +2 -2
- package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +15 -3
- package/tencentcloud/services/cfw/v20190904/cfw_client.js +21 -3
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +250 -108
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +1 -1
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +2 -2
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +70 -22
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +38 -3
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +1 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +1 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +31 -3
- package/tencentcloud/services/mna/v20210119/mna_client.d.ts +51 -35
- package/tencentcloud/services/mna/v20210119/mna_client.js +75 -51
- package/tencentcloud/services/mna/v20210119/mna_models.d.ts +289 -79
- package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +1 -1
- package/tencentcloud/services/monitor/v20180724/monitor_client.js +1 -1
- package/tencentcloud/services/oceanus/v20190422/oceanus_models.d.ts +35 -35
- package/tencentcloud/services/omics/v20221128/omics_models.d.ts +2 -2
- package/tencentcloud/services/sqlserver/v20180328/sqlserver_client.d.ts +5 -1
- package/tencentcloud/services/sqlserver/v20180328/sqlserver_client.js +6 -0
- package/tencentcloud/services/sqlserver/v20180328/sqlserver_models.d.ts +60 -0
- package/tencentcloud/services/tiw/v20190919/tiw_client.d.ts +7 -31
- package/tencentcloud/services/tiw/v20190919/tiw_client.js +9 -41
- package/tencentcloud/services/tiw/v20190919/tiw_models.d.ts +136 -209
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +12 -0
- package/tencentcloud/services/tsf/v20180326/tsf_client.d.ts +1 -1
- package/tencentcloud/services/tsf/v20180326/tsf_client.js +1 -1
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +4 -4
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +31 -25
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +6 -0
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +132 -32
- package/tencentcloud/services/weilingwith/v20230427/weilingwith_client.d.ts +1 -1
- package/tencentcloud/services/weilingwith/v20230427/weilingwith_models.d.ts +44 -1
- package/test/captcha.v20190722.test.js +10 -0
- package/test/cfw.v20190904.test.js +32 -2
- package/test/mna.v20210119.test.js +74 -34
- package/test/sqlserver.v20180328.test.js +10 -0
- package/test/tiw.v20190919.test.js +6 -46
|
@@ -27,12 +27,6 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
27
27
|
constructor(clientConfig) {
|
|
28
28
|
super("mna.tencentcloudapi.com", "2021-01-19", clientConfig);
|
|
29
29
|
}
|
|
30
|
-
/**
|
|
31
|
-
* 获取单设备的实时流量统计指标
|
|
32
|
-
*/
|
|
33
|
-
async GetNetMonitor(req, cb) {
|
|
34
|
-
return this.request("GetNetMonitor", req, cb);
|
|
35
|
-
}
|
|
36
30
|
/**
|
|
37
31
|
* 更新硬件信息
|
|
38
32
|
*/
|
|
@@ -40,76 +34,94 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
40
34
|
return this.request("UpdateHardware", req, cb);
|
|
41
35
|
}
|
|
42
36
|
/**
|
|
43
|
-
*
|
|
37
|
+
* 可开启/关闭流量包自动续费,不影响当前周期正在生效的流量包。
|
|
44
38
|
*/
|
|
45
|
-
async
|
|
46
|
-
return this.request("
|
|
39
|
+
async ModifyPackageRenewFlag(req, cb) {
|
|
40
|
+
return this.request("ModifyPackageRenewFlag", req, cb);
|
|
47
41
|
}
|
|
48
42
|
/**
|
|
49
|
-
*
|
|
43
|
+
* 获取指定设备Id,指定时间点数据流量使用情况
|
|
50
44
|
*/
|
|
51
|
-
async
|
|
52
|
-
return this.request("
|
|
45
|
+
async GetFlowStatistic(req, cb) {
|
|
46
|
+
return this.request("GetFlowStatistic", req, cb);
|
|
53
47
|
}
|
|
54
48
|
/**
|
|
55
|
-
*
|
|
49
|
+
* 批量获取设备流量统计曲线
|
|
56
50
|
*/
|
|
57
|
-
async
|
|
58
|
-
return this.request("
|
|
51
|
+
async GetMultiFlowStatistic(req, cb) {
|
|
52
|
+
return this.request("GetMultiFlowStatistic", req, cb);
|
|
59
53
|
}
|
|
60
54
|
/**
|
|
61
|
-
*
|
|
55
|
+
* 获取设备信息列表
|
|
62
56
|
*/
|
|
63
|
-
async
|
|
64
|
-
return this.request("
|
|
57
|
+
async GetDevices(req, cb) {
|
|
58
|
+
return this.request("GetDevices", req, cb);
|
|
65
59
|
}
|
|
66
60
|
/**
|
|
67
|
-
*
|
|
61
|
+
* 获取公钥用于验签
|
|
68
62
|
*/
|
|
69
|
-
async
|
|
70
|
-
return this.request("
|
|
63
|
+
async GetPublicKey(req, cb) {
|
|
64
|
+
return this.request("GetPublicKey", req, cb);
|
|
71
65
|
}
|
|
72
66
|
/**
|
|
73
|
-
*
|
|
67
|
+
* 激活硬件设备
|
|
74
68
|
*/
|
|
75
|
-
async
|
|
76
|
-
return this.request("
|
|
69
|
+
async ActivateHardware(req, cb) {
|
|
70
|
+
return this.request("ActivateHardware", req, cb);
|
|
77
71
|
}
|
|
78
72
|
/**
|
|
79
|
-
*
|
|
73
|
+
* 获取流量包列表
|
|
80
74
|
*/
|
|
81
|
-
async
|
|
82
|
-
return this.request("
|
|
75
|
+
async GetFlowPackages(req, cb) {
|
|
76
|
+
return this.request("GetFlowPackages", req, cb);
|
|
83
77
|
}
|
|
84
78
|
/**
|
|
85
|
-
*
|
|
79
|
+
* 添加硬件设备,生成未激活的硬件设备,可支持批量添加
|
|
86
80
|
*/
|
|
87
|
-
async
|
|
88
|
-
return this.request("
|
|
81
|
+
async AddHardware(req, cb) {
|
|
82
|
+
return this.request("AddHardware", req, cb);
|
|
89
83
|
}
|
|
90
84
|
/**
|
|
91
|
-
*
|
|
85
|
+
* 移动网络发起Qos加速过程
|
|
92
86
|
*/
|
|
93
|
-
async
|
|
94
|
-
return this.request("
|
|
87
|
+
async CreateQos(req, cb) {
|
|
88
|
+
return this.request("CreateQos", req, cb);
|
|
95
89
|
}
|
|
96
90
|
/**
|
|
97
|
-
*
|
|
91
|
+
* 删除设备信息
|
|
98
92
|
*/
|
|
99
|
-
async
|
|
100
|
-
return this.request("
|
|
93
|
+
async DeleteDevice(req, cb) {
|
|
94
|
+
return this.request("DeleteDevice", req, cb);
|
|
101
95
|
}
|
|
102
96
|
/**
|
|
103
|
-
*
|
|
97
|
+
* 更新设备信息
|
|
104
98
|
*/
|
|
105
|
-
async
|
|
106
|
-
return this.request("
|
|
99
|
+
async UpdateDevice(req, cb) {
|
|
100
|
+
return this.request("UpdateDevice", req, cb);
|
|
107
101
|
}
|
|
108
102
|
/**
|
|
109
|
-
*
|
|
103
|
+
* 获取单设备的实时流量统计指标
|
|
110
104
|
*/
|
|
111
|
-
async
|
|
112
|
-
return this.request("
|
|
105
|
+
async GetNetMonitor(req, cb) {
|
|
106
|
+
return this.request("GetNetMonitor", req, cb);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* 获取设备付费模式
|
|
110
|
+
*/
|
|
111
|
+
async GetDevicePayMode(req, cb) {
|
|
112
|
+
return this.request("GetDevicePayMode", req, cb);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* 获取厂商硬件设备列表
|
|
116
|
+
*/
|
|
117
|
+
async GetVendorHardware(req, cb) {
|
|
118
|
+
return this.request("GetVendorHardware", req, cb);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* 通过此接口设置和更新预置密钥
|
|
122
|
+
*/
|
|
123
|
+
async CreateEncryptedKey(req, cb) {
|
|
124
|
+
return this.request("CreateEncryptedKey", req, cb);
|
|
113
125
|
}
|
|
114
126
|
/**
|
|
115
127
|
* 移动网络停止Qos加速过程
|
|
@@ -117,6 +129,18 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
117
129
|
async DeleteQos(req, cb) {
|
|
118
130
|
return this.request("DeleteQos", req, cb);
|
|
119
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* 通过指定设备的ID查找设备详细信息
|
|
134
|
+
*/
|
|
135
|
+
async GetDevice(req, cb) {
|
|
136
|
+
return this.request("GetDevice", req, cb);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* 购买预付费流量包
|
|
140
|
+
*/
|
|
141
|
+
async OrderFlowPackage(req, cb) {
|
|
142
|
+
return this.request("OrderFlowPackage", req, cb);
|
|
143
|
+
}
|
|
120
144
|
/**
|
|
121
145
|
* 在用量统计页面下载流量数据
|
|
122
146
|
*/
|
|
@@ -124,22 +148,22 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
124
148
|
return this.request("GetStatisticData", req, cb);
|
|
125
149
|
}
|
|
126
150
|
/**
|
|
127
|
-
*
|
|
151
|
+
* 获取厂商硬件列表
|
|
128
152
|
*/
|
|
129
|
-
async
|
|
130
|
-
return this.request("
|
|
153
|
+
async GetHardwareList(req, cb) {
|
|
154
|
+
return this.request("GetHardwareList", req, cb);
|
|
131
155
|
}
|
|
132
156
|
/**
|
|
133
|
-
*
|
|
157
|
+
* 新建设备记录
|
|
134
158
|
*/
|
|
135
|
-
async
|
|
136
|
-
return this.request("
|
|
159
|
+
async AddDevice(req, cb) {
|
|
160
|
+
return this.request("AddDevice", req, cb);
|
|
137
161
|
}
|
|
138
162
|
/**
|
|
139
|
-
*
|
|
163
|
+
* 获取Qos加速状态
|
|
140
164
|
*/
|
|
141
|
-
async
|
|
142
|
-
return this.request("
|
|
165
|
+
async DescribeQos(req, cb) {
|
|
166
|
+
return this.request("DescribeQos", req, cb);
|
|
143
167
|
}
|
|
144
168
|
}
|
|
145
169
|
exports.Client = Client;
|
|
@@ -42,29 +42,13 @@ export interface GetDeviceResponse {
|
|
|
42
42
|
RequestId?: string;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* GetDevicePayMode请求参数结构体
|
|
46
46
|
*/
|
|
47
|
-
export interface
|
|
48
|
-
/**
|
|
49
|
-
* 流量详细信息
|
|
50
|
-
*/
|
|
51
|
-
NetDetails?: Array<NetDetails>;
|
|
52
|
-
/**
|
|
53
|
-
* 查找时间段流量使用最大值(单位:byte)
|
|
54
|
-
*/
|
|
55
|
-
MaxValue?: number;
|
|
56
|
-
/**
|
|
57
|
-
* 查找时间段流量使用平均值(单位:byte)
|
|
58
|
-
*/
|
|
59
|
-
AvgValue?: number;
|
|
60
|
-
/**
|
|
61
|
-
* 查找时间段流量使用总量(单位:byte)
|
|
62
|
-
*/
|
|
63
|
-
TotalValue?: number;
|
|
47
|
+
export interface GetDevicePayModeRequest {
|
|
64
48
|
/**
|
|
65
|
-
*
|
|
49
|
+
* 设备ID列表
|
|
66
50
|
*/
|
|
67
|
-
|
|
51
|
+
DeviceIdList: Array<string>;
|
|
68
52
|
}
|
|
69
53
|
/**
|
|
70
54
|
* 接口能力扩展,用于填充电信的加速Token,并为未来参数提供兼容空间
|
|
@@ -178,17 +162,17 @@ export interface GetNetMonitorRequest {
|
|
|
178
162
|
Metrics: string;
|
|
179
163
|
}
|
|
180
164
|
/**
|
|
181
|
-
*
|
|
165
|
+
* GetMultiFlowStatistic返回参数结构体
|
|
182
166
|
*/
|
|
183
|
-
export interface
|
|
167
|
+
export interface GetMultiFlowStatisticResponse {
|
|
184
168
|
/**
|
|
185
|
-
*
|
|
169
|
+
* 批量设备流量信息
|
|
186
170
|
*/
|
|
187
|
-
|
|
171
|
+
FlowDetails?: Array<FlowDetails>;
|
|
188
172
|
/**
|
|
189
|
-
*
|
|
173
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
190
174
|
*/
|
|
191
|
-
|
|
175
|
+
RequestId?: string;
|
|
192
176
|
}
|
|
193
177
|
/**
|
|
194
178
|
* 厂商硬件详细信息
|
|
@@ -330,13 +314,25 @@ export interface DeviceNetInfo {
|
|
|
330
314
|
UpRate?: number;
|
|
331
315
|
}
|
|
332
316
|
/**
|
|
333
|
-
*
|
|
317
|
+
* GetFlowStatistic返回参数结构体
|
|
334
318
|
*/
|
|
335
|
-
export interface
|
|
319
|
+
export interface GetFlowStatisticResponse {
|
|
336
320
|
/**
|
|
337
|
-
*
|
|
321
|
+
* 流量详细信息
|
|
338
322
|
*/
|
|
339
|
-
|
|
323
|
+
NetDetails?: Array<NetDetails>;
|
|
324
|
+
/**
|
|
325
|
+
* 查找时间段流量使用最大值(单位:byte)
|
|
326
|
+
*/
|
|
327
|
+
MaxValue?: number;
|
|
328
|
+
/**
|
|
329
|
+
* 查找时间段流量使用平均值(单位:byte)
|
|
330
|
+
*/
|
|
331
|
+
AvgValue?: number;
|
|
332
|
+
/**
|
|
333
|
+
* 查找时间段流量使用总量(单位:byte)
|
|
334
|
+
*/
|
|
335
|
+
TotalValue?: number;
|
|
340
336
|
/**
|
|
341
337
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
342
338
|
*/
|
|
@@ -360,31 +356,17 @@ export interface SrcAddressInfo {
|
|
|
360
356
|
SrcIpv6?: string;
|
|
361
357
|
}
|
|
362
358
|
/**
|
|
363
|
-
*
|
|
359
|
+
* 网络详细信息
|
|
364
360
|
*/
|
|
365
|
-
export interface
|
|
366
|
-
/**
|
|
367
|
-
* 网络类型:
|
|
368
|
-
0:数据
|
|
369
|
-
1:Wi-Fi
|
|
370
|
-
*/
|
|
371
|
-
Type?: number;
|
|
372
|
-
/**
|
|
373
|
-
* 启用/禁用
|
|
374
|
-
*/
|
|
375
|
-
DataEnable?: boolean;
|
|
376
|
-
/**
|
|
377
|
-
* 上行限速:bit
|
|
378
|
-
*/
|
|
379
|
-
UploadLimit?: number;
|
|
361
|
+
export interface NetDetails {
|
|
380
362
|
/**
|
|
381
|
-
*
|
|
363
|
+
* 流量值(bit)
|
|
382
364
|
*/
|
|
383
|
-
|
|
365
|
+
Current: number;
|
|
384
366
|
/**
|
|
385
|
-
*
|
|
367
|
+
* 时间点,单位:s
|
|
386
368
|
*/
|
|
387
|
-
|
|
369
|
+
Time: string;
|
|
388
370
|
}
|
|
389
371
|
/**
|
|
390
372
|
* CreateQos返回参数结构体
|
|
@@ -437,6 +419,30 @@ export interface DescribeQosResponse {
|
|
|
437
419
|
*/
|
|
438
420
|
RequestId?: string;
|
|
439
421
|
}
|
|
422
|
+
/**
|
|
423
|
+
* GetVendorHardware请求参数结构体
|
|
424
|
+
*/
|
|
425
|
+
export interface GetVendorHardwareRequest {
|
|
426
|
+
/**
|
|
427
|
+
* 页码
|
|
428
|
+
*/
|
|
429
|
+
PageNumber: number;
|
|
430
|
+
/**
|
|
431
|
+
* 页面数量
|
|
432
|
+
*/
|
|
433
|
+
PageSize: number;
|
|
434
|
+
/**
|
|
435
|
+
* 关键字
|
|
436
|
+
*/
|
|
437
|
+
Keyword?: string;
|
|
438
|
+
/**
|
|
439
|
+
* 激活状态,
|
|
440
|
+
空:全部;
|
|
441
|
+
1:待激活;
|
|
442
|
+
2:已激活;
|
|
443
|
+
*/
|
|
444
|
+
Status?: number;
|
|
445
|
+
}
|
|
440
446
|
/**
|
|
441
447
|
* CreateEncryptedKey请求参数结构体
|
|
442
448
|
*/
|
|
@@ -478,6 +484,32 @@ export interface DeleteDeviceRequest {
|
|
|
478
484
|
*/
|
|
479
485
|
DeviceId: string;
|
|
480
486
|
}
|
|
487
|
+
/**
|
|
488
|
+
* GetFlowPackages请求参数结构体
|
|
489
|
+
*/
|
|
490
|
+
export interface GetFlowPackagesRequest {
|
|
491
|
+
/**
|
|
492
|
+
* 页码,从1开始
|
|
493
|
+
*/
|
|
494
|
+
PageNumber: number;
|
|
495
|
+
/**
|
|
496
|
+
* 每页个数
|
|
497
|
+
*/
|
|
498
|
+
PageSize: number;
|
|
499
|
+
/**
|
|
500
|
+
* 流量包的唯一资源ID
|
|
501
|
+
*/
|
|
502
|
+
ResourceId?: string;
|
|
503
|
+
/**
|
|
504
|
+
* 流量包绑定的设备ID
|
|
505
|
+
*/
|
|
506
|
+
DeviceId?: string;
|
|
507
|
+
/**
|
|
508
|
+
* 流量包状态,0:未生效,1:有效期内,2:已过期
|
|
509
|
+
|
|
510
|
+
*/
|
|
511
|
+
Status?: number;
|
|
512
|
+
}
|
|
481
513
|
/**
|
|
482
514
|
* GetHardwareList请求参数结构体
|
|
483
515
|
*/
|
|
@@ -508,6 +540,19 @@ export interface CreateEncryptedKeyResponse {
|
|
|
508
540
|
*/
|
|
509
541
|
RequestId?: string;
|
|
510
542
|
}
|
|
543
|
+
/**
|
|
544
|
+
* OrderFlowPackage返回参数结构体
|
|
545
|
+
*/
|
|
546
|
+
export interface OrderFlowPackageResponse {
|
|
547
|
+
/**
|
|
548
|
+
* 流量包的唯一资源ID
|
|
549
|
+
*/
|
|
550
|
+
ResourceId?: string;
|
|
551
|
+
/**
|
|
552
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
553
|
+
*/
|
|
554
|
+
RequestId?: string;
|
|
555
|
+
}
|
|
511
556
|
/**
|
|
512
557
|
* UpdateDevice返回参数结构体
|
|
513
558
|
*/
|
|
@@ -517,6 +562,19 @@ export interface UpdateDeviceResponse {
|
|
|
517
562
|
*/
|
|
518
563
|
RequestId?: string;
|
|
519
564
|
}
|
|
565
|
+
/**
|
|
566
|
+
* ModifyPackageRenewFlag请求参数结构体
|
|
567
|
+
*/
|
|
568
|
+
export interface ModifyPackageRenewFlagRequest {
|
|
569
|
+
/**
|
|
570
|
+
* 流量包的唯一资源ID
|
|
571
|
+
*/
|
|
572
|
+
ResourceId: string;
|
|
573
|
+
/**
|
|
574
|
+
* 自动续费标识。true代表自动续费,false代表不自动续费
|
|
575
|
+
*/
|
|
576
|
+
RenewFlag: boolean;
|
|
577
|
+
}
|
|
520
578
|
/**
|
|
521
579
|
* 设备详细信息
|
|
522
580
|
*/
|
|
@@ -626,6 +684,23 @@ export interface GetStatisticDataRequest {
|
|
|
626
684
|
*/
|
|
627
685
|
TimeGranularity: number;
|
|
628
686
|
}
|
|
687
|
+
/**
|
|
688
|
+
* GetFlowPackages返回参数结构体
|
|
689
|
+
*/
|
|
690
|
+
export interface GetFlowPackagesResponse {
|
|
691
|
+
/**
|
|
692
|
+
* 流量包列表
|
|
693
|
+
*/
|
|
694
|
+
PackageList?: Array<FlowPackageInfo>;
|
|
695
|
+
/**
|
|
696
|
+
* 总数
|
|
697
|
+
*/
|
|
698
|
+
Total?: number;
|
|
699
|
+
/**
|
|
700
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
701
|
+
*/
|
|
702
|
+
RequestId?: string;
|
|
703
|
+
}
|
|
629
704
|
/**
|
|
630
705
|
* GetVendorHardware返回参数结构体
|
|
631
706
|
*/
|
|
@@ -703,6 +778,15 @@ export interface AddHardwareResponse {
|
|
|
703
778
|
*/
|
|
704
779
|
RequestId?: string;
|
|
705
780
|
}
|
|
781
|
+
/**
|
|
782
|
+
* ModifyPackageRenewFlag返回参数结构体
|
|
783
|
+
*/
|
|
784
|
+
export interface ModifyPackageRenewFlagResponse {
|
|
785
|
+
/**
|
|
786
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
787
|
+
*/
|
|
788
|
+
RequestId?: string;
|
|
789
|
+
}
|
|
706
790
|
/**
|
|
707
791
|
* GetMultiFlowStatistic请求参数结构体
|
|
708
792
|
*/
|
|
@@ -827,28 +911,17 @@ export interface AddDeviceResponse {
|
|
|
827
911
|
RequestId?: string;
|
|
828
912
|
}
|
|
829
913
|
/**
|
|
830
|
-
*
|
|
914
|
+
* GetDevicePayMode返回参数结构体
|
|
831
915
|
*/
|
|
832
|
-
export interface
|
|
916
|
+
export interface GetDevicePayModeResponse {
|
|
833
917
|
/**
|
|
834
|
-
*
|
|
918
|
+
* 结果信息
|
|
835
919
|
*/
|
|
836
|
-
|
|
920
|
+
Result?: Array<DevicePayModeInfo>;
|
|
837
921
|
/**
|
|
838
|
-
*
|
|
839
|
-
*/
|
|
840
|
-
PageSize: number;
|
|
841
|
-
/**
|
|
842
|
-
* 关键字
|
|
843
|
-
*/
|
|
844
|
-
Keyword?: string;
|
|
845
|
-
/**
|
|
846
|
-
* 激活状态,
|
|
847
|
-
空:全部;
|
|
848
|
-
1:待激活;
|
|
849
|
-
2:已激活;
|
|
922
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
850
923
|
*/
|
|
851
|
-
|
|
924
|
+
RequestId?: string;
|
|
852
925
|
}
|
|
853
926
|
/**
|
|
854
927
|
* GetDevice请求参数结构体
|
|
@@ -874,21 +947,46 @@ export interface ActivateHardwareResponse {
|
|
|
874
947
|
RequestId?: string;
|
|
875
948
|
}
|
|
876
949
|
/**
|
|
877
|
-
*
|
|
950
|
+
* OrderFlowPackage请求参数结构体
|
|
878
951
|
*/
|
|
879
|
-
export interface
|
|
952
|
+
export interface OrderFlowPackageRequest {
|
|
880
953
|
/**
|
|
881
|
-
*
|
|
954
|
+
* 流量包规格类型。可取值如下:
|
|
955
|
+
DEVICE_1_FLOW_20G、DEVICE_2_FLOW_50G、
|
|
956
|
+
DEVICE_3_FLOW_100G、
|
|
957
|
+
DEVICE_5_FLOW_500G,分别代表20G、50G、100G、500G档位的流量包。
|
|
958
|
+
档位也影响流量包可绑定的设备数量上限:
|
|
959
|
+
20G:最多绑定1个设备
|
|
960
|
+
50G:最多绑定2个设备
|
|
961
|
+
100G:最多绑定3个设备
|
|
962
|
+
500G:最多绑定5个设备
|
|
882
963
|
*/
|
|
883
|
-
|
|
964
|
+
PackageType: string;
|
|
884
965
|
/**
|
|
885
|
-
*
|
|
966
|
+
* 流量包绑定的设备ID列表。捆绑设备个数上限取决于包的规格档位:
|
|
967
|
+
20G:最多绑定1个设备
|
|
968
|
+
50G:最多绑定2个设备
|
|
969
|
+
100G:最多绑定3个设备
|
|
970
|
+
500G:最多绑定5个设备
|
|
886
971
|
*/
|
|
887
|
-
|
|
972
|
+
DeviceList: Array<string>;
|
|
888
973
|
/**
|
|
889
|
-
*
|
|
974
|
+
* 是否自动续费
|
|
890
975
|
*/
|
|
891
|
-
|
|
976
|
+
AutoRenewFlag: boolean;
|
|
977
|
+
/**
|
|
978
|
+
* 区域标识,0:国内,1:国外
|
|
979
|
+
*/
|
|
980
|
+
PackageRegion: number;
|
|
981
|
+
}
|
|
982
|
+
/**
|
|
983
|
+
* UpdateHardware返回参数结构体
|
|
984
|
+
*/
|
|
985
|
+
export interface UpdateHardwareResponse {
|
|
986
|
+
/**
|
|
987
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
988
|
+
*/
|
|
989
|
+
RequestId?: string;
|
|
892
990
|
}
|
|
893
991
|
/**
|
|
894
992
|
* 硬件信息
|
|
@@ -970,6 +1068,30 @@ export interface DescribeQosRequest {
|
|
|
970
1068
|
*/
|
|
971
1069
|
SessionId: string;
|
|
972
1070
|
}
|
|
1071
|
+
/**
|
|
1072
|
+
* 设备付费模式信息
|
|
1073
|
+
*/
|
|
1074
|
+
export interface DevicePayModeInfo {
|
|
1075
|
+
/**
|
|
1076
|
+
* 设备ID
|
|
1077
|
+
*/
|
|
1078
|
+
DeviceId?: string;
|
|
1079
|
+
/**
|
|
1080
|
+
* 付费模式。
|
|
1081
|
+
1:预付费流量包
|
|
1082
|
+
0:按流量后付费
|
|
1083
|
+
*/
|
|
1084
|
+
PayMode?: number;
|
|
1085
|
+
/**
|
|
1086
|
+
* 付费模式描述
|
|
1087
|
+
*/
|
|
1088
|
+
PayModeDesc?: string;
|
|
1089
|
+
/**
|
|
1090
|
+
* 流量包ID,仅当付费模式为流量包类型时才有。
|
|
1091
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1092
|
+
*/
|
|
1093
|
+
ResourceId?: string;
|
|
1094
|
+
}
|
|
973
1095
|
/**
|
|
974
1096
|
* 流量监控指标
|
|
975
1097
|
*/
|
|
@@ -1111,6 +1233,59 @@ export interface GetDevicesRequest {
|
|
|
1111
1233
|
*/
|
|
1112
1234
|
DeviceType?: number;
|
|
1113
1235
|
}
|
|
1236
|
+
/**
|
|
1237
|
+
* 流量包信息
|
|
1238
|
+
*/
|
|
1239
|
+
export interface FlowPackageInfo {
|
|
1240
|
+
/**
|
|
1241
|
+
* 流量包的唯一资源ID
|
|
1242
|
+
*/
|
|
1243
|
+
ResourceId?: string;
|
|
1244
|
+
/**
|
|
1245
|
+
* 流量包所属的用户AppId
|
|
1246
|
+
*/
|
|
1247
|
+
AppId?: number;
|
|
1248
|
+
/**
|
|
1249
|
+
* 流量包规格类型。可取值如下:
|
|
1250
|
+
DEVICE_1_FLOW_20G、DEVICE_2_FLOW_50G、
|
|
1251
|
+
DEVICE_3_FLOW_100G、
|
|
1252
|
+
DEVICE_5_FLOW_500G,分别代表20G、50G、100G、500G档位的流量包。
|
|
1253
|
+
档位也影响流量包可绑定的设备数量上限:
|
|
1254
|
+
20G:最多绑定1个设备
|
|
1255
|
+
50G:最多绑定2个设备
|
|
1256
|
+
100G:最多绑定3个设备
|
|
1257
|
+
500G:最多绑定5个设备
|
|
1258
|
+
*/
|
|
1259
|
+
PackageType?: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* 流量包状态,0:未生效,1:有效期内,2:已过期
|
|
1262
|
+
*/
|
|
1263
|
+
Status?: number;
|
|
1264
|
+
/**
|
|
1265
|
+
* 生效时间,Unix时间戳格式,单位:秒
|
|
1266
|
+
*/
|
|
1267
|
+
ActiveTime?: number;
|
|
1268
|
+
/**
|
|
1269
|
+
* 过期时间,Unix时间戳格式,单位:秒
|
|
1270
|
+
*/
|
|
1271
|
+
ExpireTime?: number;
|
|
1272
|
+
/**
|
|
1273
|
+
* 流量包绑定的设备ID列表
|
|
1274
|
+
*/
|
|
1275
|
+
DeviceList?: Array<string>;
|
|
1276
|
+
/**
|
|
1277
|
+
* 流量包总容量,单位:MB
|
|
1278
|
+
*/
|
|
1279
|
+
CapacitySize?: number;
|
|
1280
|
+
/**
|
|
1281
|
+
* 流量包余量,单位:MB
|
|
1282
|
+
*/
|
|
1283
|
+
CapacityRemain?: number;
|
|
1284
|
+
/**
|
|
1285
|
+
* 自动续费标识。true代表自动续费,false代表不自动续费
|
|
1286
|
+
*/
|
|
1287
|
+
RenewFlag?: boolean;
|
|
1288
|
+
}
|
|
1114
1289
|
/**
|
|
1115
1290
|
* GetHardwareList返回参数结构体
|
|
1116
1291
|
*/
|
|
@@ -1154,13 +1329,21 @@ export interface NetworkData {
|
|
|
1154
1329
|
Timestamp: number;
|
|
1155
1330
|
}
|
|
1156
1331
|
/**
|
|
1157
|
-
* UpdateHardware
|
|
1332
|
+
* UpdateHardware请求参数结构体
|
|
1158
1333
|
*/
|
|
1159
|
-
export interface
|
|
1334
|
+
export interface UpdateHardwareRequest {
|
|
1160
1335
|
/**
|
|
1161
|
-
*
|
|
1336
|
+
* 硬件ID
|
|
1162
1337
|
*/
|
|
1163
|
-
|
|
1338
|
+
HardwareId: string;
|
|
1339
|
+
/**
|
|
1340
|
+
* 硬件序列号
|
|
1341
|
+
*/
|
|
1342
|
+
SN?: string;
|
|
1343
|
+
/**
|
|
1344
|
+
* 设备备注
|
|
1345
|
+
*/
|
|
1346
|
+
Description?: string;
|
|
1164
1347
|
}
|
|
1165
1348
|
/**
|
|
1166
1349
|
* AddDevice请求参数结构体
|
|
@@ -1187,3 +1370,30 @@ export interface AddDeviceRequest {
|
|
|
1187
1370
|
* GetPublicKey请求参数结构体
|
|
1188
1371
|
*/
|
|
1189
1372
|
export declare type GetPublicKeyRequest = null;
|
|
1373
|
+
/**
|
|
1374
|
+
* 更新设备网络状态信息
|
|
1375
|
+
*/
|
|
1376
|
+
export interface UpdateNetInfo {
|
|
1377
|
+
/**
|
|
1378
|
+
* 网络类型:
|
|
1379
|
+
0:数据
|
|
1380
|
+
1:Wi-Fi
|
|
1381
|
+
*/
|
|
1382
|
+
Type?: number;
|
|
1383
|
+
/**
|
|
1384
|
+
* 启用/禁用
|
|
1385
|
+
*/
|
|
1386
|
+
DataEnable?: boolean;
|
|
1387
|
+
/**
|
|
1388
|
+
* 上行限速:bit
|
|
1389
|
+
*/
|
|
1390
|
+
UploadLimit?: number;
|
|
1391
|
+
/**
|
|
1392
|
+
* 下行限速:bit
|
|
1393
|
+
*/
|
|
1394
|
+
DownloadLimit?: number;
|
|
1395
|
+
/**
|
|
1396
|
+
* 网卡名
|
|
1397
|
+
*/
|
|
1398
|
+
NetInfoName?: string;
|
|
1399
|
+
}
|
|
@@ -529,7 +529,7 @@ export declare class Client extends AbstractClient {
|
|
|
529
529
|
若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。
|
|
530
530
|
|
|
531
531
|
>?
|
|
532
|
-
>- 2022年9月1
|
|
532
|
+
>- 2022年9月1日起,腾讯云可观测平台开始对GetMonitorData接口计费。每个主账号每月可获得100万次免费请求额度,超过免费额度后如需继续调用接口需要开通 [API请求按量付费](https://buy.cloud.tencent.com/APIRequestBuy)。计费规则可查看[API计费文档](https://cloud.tencent.com/document/product/248/77914)。
|
|
533
533
|
*/
|
|
534
534
|
GetMonitorData(req: GetMonitorDataRequest, cb?: (error: string, rep: GetMonitorDataResponse) => void): Promise<GetMonitorDataResponse>;
|
|
535
535
|
/**
|