tencentcloud-sdk-mna 3.0.408 → 3.0.409
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210119/client.rb +144 -0
- data/lib/v20210119/models.rb +462 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 759023f4d0d2a814ff466a1e8e6d9f66d48d8e86
|
4
|
+
data.tar.gz: f3027ddd2079010492456ff628b7f87bd69857a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c62f2a1ea5bd4ecec01e763ec68f4dec51bdaa355caf8c4ba0d34f826edd2950bc1f14f088d779e389b3651af22096d4abad1fdbeb3f83888a6ab92904b8f31
|
7
|
+
data.tar.gz: 82f50526a4d0e667c7b4d477475202907f09e8d5bd02bb12058b8ead5372eb4e4e7df09df2d02803f6e4c407b66401b49658af8cba4be2f4816039477d08ffcc
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.409
|
data/lib/v20210119/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 新建设备记录
|
33
|
+
|
34
|
+
# @param request: Request instance for AddDevice.
|
35
|
+
# @type request: :class:`Tencentcloud::mna::V20210119::AddDeviceRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::mna::V20210119::AddDeviceResponse`
|
37
|
+
def AddDevice(request)
|
38
|
+
body = send_request('AddDevice', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = AddDeviceResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
32
56
|
# 移动网络发起Qos加速过程
|
33
57
|
|
34
58
|
# @param request: Request instance for CreateQos.
|
@@ -53,6 +77,30 @@ module TencentCloud
|
|
53
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
78
|
end
|
55
79
|
|
80
|
+
# 删除设备信息
|
81
|
+
|
82
|
+
# @param request: Request instance for DeleteDevice.
|
83
|
+
# @type request: :class:`Tencentcloud::mna::V20210119::DeleteDeviceRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::mna::V20210119::DeleteDeviceResponse`
|
85
|
+
def DeleteDevice(request)
|
86
|
+
body = send_request('DeleteDevice', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = DeleteDeviceResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
56
104
|
# 移动网络停止Qos加速过程
|
57
105
|
|
58
106
|
# @param request: Request instance for DeleteQos.
|
@@ -101,6 +149,102 @@ module TencentCloud
|
|
101
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
150
|
end
|
103
151
|
|
152
|
+
# 通过指定设备的ID查找设备详细信息
|
153
|
+
|
154
|
+
# @param request: Request instance for GetDevice.
|
155
|
+
# @type request: :class:`Tencentcloud::mna::V20210119::GetDeviceRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::mna::V20210119::GetDeviceResponse`
|
157
|
+
def GetDevice(request)
|
158
|
+
body = send_request('GetDevice', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = GetDeviceResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
176
|
+
# 获取设备信息列表
|
177
|
+
|
178
|
+
# @param request: Request instance for GetDevices.
|
179
|
+
# @type request: :class:`Tencentcloud::mna::V20210119::GetDevicesRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::mna::V20210119::GetDevicesResponse`
|
181
|
+
def GetDevices(request)
|
182
|
+
body = send_request('GetDevices', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = GetDevicesResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
200
|
+
# 在用量统计页面下载流量数据
|
201
|
+
|
202
|
+
# @param request: Request instance for GetStatisticData.
|
203
|
+
# @type request: :class:`Tencentcloud::mna::V20210119::GetStatisticDataRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::mna::V20210119::GetStatisticDataResponse`
|
205
|
+
def GetStatisticData(request)
|
206
|
+
body = send_request('GetStatisticData', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = GetStatisticDataResponse.new
|
210
|
+
model.deserialize(response['Response'])
|
211
|
+
model
|
212
|
+
else
|
213
|
+
code = response['Response']['Error']['Code']
|
214
|
+
message = response['Response']['Error']['Message']
|
215
|
+
reqid = response['Response']['RequestId']
|
216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
+
end
|
218
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
+
raise e
|
220
|
+
rescue StandardError => e
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
+
end
|
223
|
+
|
224
|
+
# 更新设备信息
|
225
|
+
|
226
|
+
# @param request: Request instance for UpdateDevice.
|
227
|
+
# @type request: :class:`Tencentcloud::mna::V20210119::UpdateDeviceRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::mna::V20210119::UpdateDeviceResponse`
|
229
|
+
def UpdateDevice(request)
|
230
|
+
body = send_request('UpdateDevice', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = UpdateDeviceResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
104
248
|
|
105
249
|
end
|
106
250
|
end
|
data/lib/v20210119/models.rb
CHANGED
@@ -17,6 +17,54 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Mna
|
19
19
|
module V20210119
|
20
|
+
# AddDevice请求参数结构体
|
21
|
+
class AddDeviceRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param DeviceName: 新建设备的名称
|
23
|
+
# @type DeviceName: String
|
24
|
+
# @param Remark: 新建设备的备注
|
25
|
+
# @type Remark: String
|
26
|
+
# @param DataKey: 新建设备的base64密钥字符串,非必选,如果不填写则由系统自动生成
|
27
|
+
# @type DataKey: String
|
28
|
+
|
29
|
+
attr_accessor :DeviceName, :Remark, :DataKey
|
30
|
+
|
31
|
+
def initialize(devicename=nil, remark=nil, datakey=nil)
|
32
|
+
@DeviceName = devicename
|
33
|
+
@Remark = remark
|
34
|
+
@DataKey = datakey
|
35
|
+
end
|
36
|
+
|
37
|
+
def deserialize(params)
|
38
|
+
@DeviceName = params['DeviceName']
|
39
|
+
@Remark = params['Remark']
|
40
|
+
@DataKey = params['DataKey']
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# AddDevice返回参数结构体
|
45
|
+
class AddDeviceResponse < TencentCloud::Common::AbstractModel
|
46
|
+
# @param DataKey: 后台生成的base64字符串密钥
|
47
|
+
# @type DataKey: String
|
48
|
+
# @param DeviceId: 设备ID
|
49
|
+
# @type DeviceId: String
|
50
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
51
|
+
# @type RequestId: String
|
52
|
+
|
53
|
+
attr_accessor :DataKey, :DeviceId, :RequestId
|
54
|
+
|
55
|
+
def initialize(datakey=nil, deviceid=nil, requestid=nil)
|
56
|
+
@DataKey = datakey
|
57
|
+
@DeviceId = deviceid
|
58
|
+
@RequestId = requestid
|
59
|
+
end
|
60
|
+
|
61
|
+
def deserialize(params)
|
62
|
+
@DataKey = params['DataKey']
|
63
|
+
@DeviceId = params['DeviceId']
|
64
|
+
@RequestId = params['RequestId']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
20
68
|
# 接口能力扩展,用于填充电信的加速Token,并为未来参数提供兼容空间
|
21
69
|
class Capacity < TencentCloud::Common::AbstractModel
|
22
70
|
# @param CTCCToken: 电信鉴权的Token。要加速的电信手机终端访问 http://qos.189.cn/qos-api/getToken?appid=TencentCloud 页面,获取返回结果中result的值
|
@@ -173,6 +221,38 @@ module TencentCloud
|
|
173
221
|
end
|
174
222
|
end
|
175
223
|
|
224
|
+
# DeleteDevice请求参数结构体
|
225
|
+
class DeleteDeviceRequest < TencentCloud::Common::AbstractModel
|
226
|
+
# @param DeviceId: 删除设备的唯一ID
|
227
|
+
# @type DeviceId: String
|
228
|
+
|
229
|
+
attr_accessor :DeviceId
|
230
|
+
|
231
|
+
def initialize(deviceid=nil)
|
232
|
+
@DeviceId = deviceid
|
233
|
+
end
|
234
|
+
|
235
|
+
def deserialize(params)
|
236
|
+
@DeviceId = params['DeviceId']
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
# DeleteDevice返回参数结构体
|
241
|
+
class DeleteDeviceResponse < TencentCloud::Common::AbstractModel
|
242
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
243
|
+
# @type RequestId: String
|
244
|
+
|
245
|
+
attr_accessor :RequestId
|
246
|
+
|
247
|
+
def initialize(requestid=nil)
|
248
|
+
@RequestId = requestid
|
249
|
+
end
|
250
|
+
|
251
|
+
def deserialize(params)
|
252
|
+
@RequestId = params['RequestId']
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
176
256
|
# DeleteQos请求参数结构体
|
177
257
|
class DeleteQosRequest < TencentCloud::Common::AbstractModel
|
178
258
|
# @param SessionId: 单次加速唯一 Id
|
@@ -286,6 +366,69 @@ module TencentCloud
|
|
286
366
|
end
|
287
367
|
end
|
288
368
|
|
369
|
+
# 设备的基本信息
|
370
|
+
class DeviceBaseInfo < TencentCloud::Common::AbstractModel
|
371
|
+
# @param DeviceId: 设备唯一ID
|
372
|
+
# @type DeviceId: String
|
373
|
+
# @param DeviceName: 设备名称
|
374
|
+
# @type DeviceName: String
|
375
|
+
# @param CreateTime: 设备创建的时间,单位:ms
|
376
|
+
# @type CreateTime: String
|
377
|
+
# @param LastTime: 设备最后在线时间,单位:ms
|
378
|
+
# @type LastTime: String
|
379
|
+
# @param Remark: 设备的备注
|
380
|
+
# @type Remark: String
|
381
|
+
|
382
|
+
attr_accessor :DeviceId, :DeviceName, :CreateTime, :LastTime, :Remark
|
383
|
+
|
384
|
+
def initialize(deviceid=nil, devicename=nil, createtime=nil, lasttime=nil, remark=nil)
|
385
|
+
@DeviceId = deviceid
|
386
|
+
@DeviceName = devicename
|
387
|
+
@CreateTime = createtime
|
388
|
+
@LastTime = lasttime
|
389
|
+
@Remark = remark
|
390
|
+
end
|
391
|
+
|
392
|
+
def deserialize(params)
|
393
|
+
@DeviceId = params['DeviceId']
|
394
|
+
@DeviceName = params['DeviceName']
|
395
|
+
@CreateTime = params['CreateTime']
|
396
|
+
@LastTime = params['LastTime']
|
397
|
+
@Remark = params['Remark']
|
398
|
+
end
|
399
|
+
end
|
400
|
+
|
401
|
+
# 设备详细信息
|
402
|
+
class DeviceDetails < TencentCloud::Common::AbstractModel
|
403
|
+
# @param DeviceBaseInfo: 设备基本信息
|
404
|
+
# @type DeviceBaseInfo: :class:`Tencentcloud::Mna.v20210119.models.DeviceBaseInfo`
|
405
|
+
# @param DeviceNetInfo: 设备网络信息
|
406
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
407
|
+
# @type DeviceNetInfo: Array
|
408
|
+
|
409
|
+
attr_accessor :DeviceBaseInfo, :DeviceNetInfo
|
410
|
+
|
411
|
+
def initialize(devicebaseinfo=nil, devicenetinfo=nil)
|
412
|
+
@DeviceBaseInfo = devicebaseinfo
|
413
|
+
@DeviceNetInfo = devicenetinfo
|
414
|
+
end
|
415
|
+
|
416
|
+
def deserialize(params)
|
417
|
+
unless params['DeviceBaseInfo'].nil?
|
418
|
+
@DeviceBaseInfo = DeviceBaseInfo.new
|
419
|
+
@DeviceBaseInfo.deserialize(params['DeviceBaseInfo'])
|
420
|
+
end
|
421
|
+
unless params['DeviceNetInfo'].nil?
|
422
|
+
@DeviceNetInfo = []
|
423
|
+
params['DeviceNetInfo'].each do |i|
|
424
|
+
devicenetinfo_tmp = DeviceNetInfo.new
|
425
|
+
devicenetinfo_tmp.deserialize(i)
|
426
|
+
@DeviceNetInfo << devicenetinfo_tmp
|
427
|
+
end
|
428
|
+
end
|
429
|
+
end
|
430
|
+
end
|
431
|
+
|
289
432
|
# 设备信息结构体
|
290
433
|
class DeviceInfo < TencentCloud::Common::AbstractModel
|
291
434
|
# @param Vendor: 运营商
|
@@ -332,6 +475,92 @@ module TencentCloud
|
|
332
475
|
end
|
333
476
|
end
|
334
477
|
|
478
|
+
# 设备网络状态信息
|
479
|
+
class DeviceNetInfo < TencentCloud::Common::AbstractModel
|
480
|
+
# @param Type: 网络类型:
|
481
|
+
# 0:数据
|
482
|
+
# 1:Wi-Fi
|
483
|
+
# 2:有线
|
484
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
485
|
+
# @type Type: Integer
|
486
|
+
# @param DataEnable: 启用/禁用
|
487
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
488
|
+
# @type DataEnable: Boolean
|
489
|
+
# @param UploadLimit: 上行限速
|
490
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
491
|
+
# @type UploadLimit: String
|
492
|
+
# @param DownloadLimit: 下行限速
|
493
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
494
|
+
# @type DownloadLimit: String
|
495
|
+
# @param DataRx: 接收实时速率
|
496
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
497
|
+
# @type DataRx: Integer
|
498
|
+
# @param DataTx: 发送实时速率
|
499
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
500
|
+
# @type DataTx: Integer
|
501
|
+
# @param Vendor: 运营商类型:
|
502
|
+
# 1: 中国移动;
|
503
|
+
# 2: 中国电信;
|
504
|
+
# 3: 中国联通
|
505
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
506
|
+
# @type Vendor: Integer
|
507
|
+
# @param State: 连接状态:
|
508
|
+
# 0:无连接
|
509
|
+
# 1:连接中
|
510
|
+
# 2:已连接
|
511
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
512
|
+
# @type State: Integer
|
513
|
+
# @param PublicIp: 公网IP
|
514
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
515
|
+
# @type PublicIp: String
|
516
|
+
# @param SignalStrength: 信号强度/单位:dbm
|
517
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
518
|
+
# @type SignalStrength: Integer
|
519
|
+
# @param Rat: 数据网络类型:
|
520
|
+
# -1 :无效值
|
521
|
+
# 2:2G
|
522
|
+
# 3:3G
|
523
|
+
# 4:4G
|
524
|
+
# 5:5G
|
525
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
526
|
+
# @type Rat: Integer
|
527
|
+
# @param NetInfoName: 网卡名
|
528
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
529
|
+
# @type NetInfoName: String
|
530
|
+
|
531
|
+
attr_accessor :Type, :DataEnable, :UploadLimit, :DownloadLimit, :DataRx, :DataTx, :Vendor, :State, :PublicIp, :SignalStrength, :Rat, :NetInfoName
|
532
|
+
|
533
|
+
def initialize(type=nil, dataenable=nil, uploadlimit=nil, downloadlimit=nil, datarx=nil, datatx=nil, vendor=nil, state=nil, publicip=nil, signalstrength=nil, rat=nil, netinfoname=nil)
|
534
|
+
@Type = type
|
535
|
+
@DataEnable = dataenable
|
536
|
+
@UploadLimit = uploadlimit
|
537
|
+
@DownloadLimit = downloadlimit
|
538
|
+
@DataRx = datarx
|
539
|
+
@DataTx = datatx
|
540
|
+
@Vendor = vendor
|
541
|
+
@State = state
|
542
|
+
@PublicIp = publicip
|
543
|
+
@SignalStrength = signalstrength
|
544
|
+
@Rat = rat
|
545
|
+
@NetInfoName = netinfoname
|
546
|
+
end
|
547
|
+
|
548
|
+
def deserialize(params)
|
549
|
+
@Type = params['Type']
|
550
|
+
@DataEnable = params['DataEnable']
|
551
|
+
@UploadLimit = params['UploadLimit']
|
552
|
+
@DownloadLimit = params['DownloadLimit']
|
553
|
+
@DataRx = params['DataRx']
|
554
|
+
@DataTx = params['DataTx']
|
555
|
+
@Vendor = params['Vendor']
|
556
|
+
@State = params['State']
|
557
|
+
@PublicIp = params['PublicIp']
|
558
|
+
@SignalStrength = params['SignalStrength']
|
559
|
+
@Rat = params['Rat']
|
560
|
+
@NetInfoName = params['NetInfoName']
|
561
|
+
end
|
562
|
+
end
|
563
|
+
|
335
564
|
# 用户期望门限
|
336
565
|
class ExpectedThreshold < TencentCloud::Common::AbstractModel
|
337
566
|
# @param RTT: 期望发起加速的时延阈值
|
@@ -356,6 +585,154 @@ module TencentCloud
|
|
356
585
|
end
|
357
586
|
end
|
358
587
|
|
588
|
+
# GetDevice请求参数结构体
|
589
|
+
class GetDeviceRequest < TencentCloud::Common::AbstractModel
|
590
|
+
# @param DeviceId: 搜索指定设备的id
|
591
|
+
# @type DeviceId: String
|
592
|
+
|
593
|
+
attr_accessor :DeviceId
|
594
|
+
|
595
|
+
def initialize(deviceid=nil)
|
596
|
+
@DeviceId = deviceid
|
597
|
+
end
|
598
|
+
|
599
|
+
def deserialize(params)
|
600
|
+
@DeviceId = params['DeviceId']
|
601
|
+
end
|
602
|
+
end
|
603
|
+
|
604
|
+
# GetDevice返回参数结构体
|
605
|
+
class GetDeviceResponse < TencentCloud::Common::AbstractModel
|
606
|
+
# @param DeviceDetails: 设备详细信息
|
607
|
+
# @type DeviceDetails: :class:`Tencentcloud::Mna.v20210119.models.DeviceDetails`
|
608
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
609
|
+
# @type RequestId: String
|
610
|
+
|
611
|
+
attr_accessor :DeviceDetails, :RequestId
|
612
|
+
|
613
|
+
def initialize(devicedetails=nil, requestid=nil)
|
614
|
+
@DeviceDetails = devicedetails
|
615
|
+
@RequestId = requestid
|
616
|
+
end
|
617
|
+
|
618
|
+
def deserialize(params)
|
619
|
+
unless params['DeviceDetails'].nil?
|
620
|
+
@DeviceDetails = DeviceDetails.new
|
621
|
+
@DeviceDetails.deserialize(params['DeviceDetails'])
|
622
|
+
end
|
623
|
+
@RequestId = params['RequestId']
|
624
|
+
end
|
625
|
+
end
|
626
|
+
|
627
|
+
# GetDevices请求参数结构体
|
628
|
+
class GetDevicesRequest < TencentCloud::Common::AbstractModel
|
629
|
+
# @param PageSize: 每页显示记录数,PageSize、PageNumber值均为-1 时,按照1页无限制条数匹配所有设备
|
630
|
+
# @type PageSize: Integer
|
631
|
+
# @param PageNumber: 当前查看页码,PageSize、PageNumber值均为-1 时,按照1页无限制条数匹配所有设备
|
632
|
+
# @type PageNumber: Integer
|
633
|
+
# @param Keyword: 搜索设备的关键字(ID或者设备名),为空时匹配所有设备
|
634
|
+
# @type Keyword: String
|
635
|
+
|
636
|
+
attr_accessor :PageSize, :PageNumber, :Keyword
|
637
|
+
|
638
|
+
def initialize(pagesize=nil, pagenumber=nil, keyword=nil)
|
639
|
+
@PageSize = pagesize
|
640
|
+
@PageNumber = pagenumber
|
641
|
+
@Keyword = keyword
|
642
|
+
end
|
643
|
+
|
644
|
+
def deserialize(params)
|
645
|
+
@PageSize = params['PageSize']
|
646
|
+
@PageNumber = params['PageNumber']
|
647
|
+
@Keyword = params['Keyword']
|
648
|
+
end
|
649
|
+
end
|
650
|
+
|
651
|
+
# GetDevices返回参数结构体
|
652
|
+
class GetDevicesResponse < TencentCloud::Common::AbstractModel
|
653
|
+
# @param DeviceInfos: 设备信息列表
|
654
|
+
# @type DeviceInfos: Array
|
655
|
+
# @param Length: 设备总记录条数
|
656
|
+
# @type Length: Integer
|
657
|
+
# @param TotalPage: 总页数
|
658
|
+
# @type TotalPage: Integer
|
659
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
660
|
+
# @type RequestId: String
|
661
|
+
|
662
|
+
attr_accessor :DeviceInfos, :Length, :TotalPage, :RequestId
|
663
|
+
|
664
|
+
def initialize(deviceinfos=nil, length=nil, totalpage=nil, requestid=nil)
|
665
|
+
@DeviceInfos = deviceinfos
|
666
|
+
@Length = length
|
667
|
+
@TotalPage = totalpage
|
668
|
+
@RequestId = requestid
|
669
|
+
end
|
670
|
+
|
671
|
+
def deserialize(params)
|
672
|
+
unless params['DeviceInfos'].nil?
|
673
|
+
@DeviceInfos = []
|
674
|
+
params['DeviceInfos'].each do |i|
|
675
|
+
devicebaseinfo_tmp = DeviceBaseInfo.new
|
676
|
+
devicebaseinfo_tmp.deserialize(i)
|
677
|
+
@DeviceInfos << devicebaseinfo_tmp
|
678
|
+
end
|
679
|
+
end
|
680
|
+
@Length = params['Length']
|
681
|
+
@TotalPage = params['TotalPage']
|
682
|
+
@RequestId = params['RequestId']
|
683
|
+
end
|
684
|
+
end
|
685
|
+
|
686
|
+
# GetStatisticData请求参数结构体
|
687
|
+
class GetStatisticDataRequest < TencentCloud::Common::AbstractModel
|
688
|
+
# @param DeviceId: 设备ID,设备ID="-1"获取所有设备流量统计
|
689
|
+
# @type DeviceId: String
|
690
|
+
# @param BeginTime: 统计开始时间,单位:s
|
691
|
+
# @type BeginTime: Integer
|
692
|
+
# @param EndTime: 统计结束时间,单位:s
|
693
|
+
# @type EndTime: Integer
|
694
|
+
# @param TimeGranularity: 聚合粒度:
|
695
|
+
# 1:按小时统计
|
696
|
+
# 2:按天统计
|
697
|
+
# @type TimeGranularity: Integer
|
698
|
+
|
699
|
+
attr_accessor :DeviceId, :BeginTime, :EndTime, :TimeGranularity
|
700
|
+
|
701
|
+
def initialize(deviceid=nil, begintime=nil, endtime=nil, timegranularity=nil)
|
702
|
+
@DeviceId = deviceid
|
703
|
+
@BeginTime = begintime
|
704
|
+
@EndTime = endtime
|
705
|
+
@TimeGranularity = timegranularity
|
706
|
+
end
|
707
|
+
|
708
|
+
def deserialize(params)
|
709
|
+
@DeviceId = params['DeviceId']
|
710
|
+
@BeginTime = params['BeginTime']
|
711
|
+
@EndTime = params['EndTime']
|
712
|
+
@TimeGranularity = params['TimeGranularity']
|
713
|
+
end
|
714
|
+
end
|
715
|
+
|
716
|
+
# GetStatisticData返回参数结构体
|
717
|
+
class GetStatisticDataResponse < TencentCloud::Common::AbstractModel
|
718
|
+
# @param FilePath: 文件地址url
|
719
|
+
# @type FilePath: String
|
720
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
721
|
+
# @type RequestId: String
|
722
|
+
|
723
|
+
attr_accessor :FilePath, :RequestId
|
724
|
+
|
725
|
+
def initialize(filepath=nil, requestid=nil)
|
726
|
+
@FilePath = filepath
|
727
|
+
@RequestId = requestid
|
728
|
+
end
|
729
|
+
|
730
|
+
def deserialize(params)
|
731
|
+
@FilePath = params['FilePath']
|
732
|
+
@RequestId = params['RequestId']
|
733
|
+
end
|
734
|
+
end
|
735
|
+
|
359
736
|
# 测速数据
|
360
737
|
class NetworkData < TencentCloud::Common::AbstractModel
|
361
738
|
# @param RTT: 时延数组,最大长度30
|
@@ -408,6 +785,91 @@ module TencentCloud
|
|
408
785
|
end
|
409
786
|
end
|
410
787
|
|
788
|
+
# UpdateDevice请求参数结构体
|
789
|
+
class UpdateDeviceRequest < TencentCloud::Common::AbstractModel
|
790
|
+
# @param DeviceId: 设备id
|
791
|
+
# @type DeviceId: String
|
792
|
+
# @param DeviceName: 设备名称
|
793
|
+
# @type DeviceName: String
|
794
|
+
# @param Remark: 设备备注
|
795
|
+
# @type Remark: String
|
796
|
+
# @param UpdateNetInfo: 更新设备网络信息
|
797
|
+
# @type UpdateNetInfo: Array
|
798
|
+
|
799
|
+
attr_accessor :DeviceId, :DeviceName, :Remark, :UpdateNetInfo
|
800
|
+
|
801
|
+
def initialize(deviceid=nil, devicename=nil, remark=nil, updatenetinfo=nil)
|
802
|
+
@DeviceId = deviceid
|
803
|
+
@DeviceName = devicename
|
804
|
+
@Remark = remark
|
805
|
+
@UpdateNetInfo = updatenetinfo
|
806
|
+
end
|
807
|
+
|
808
|
+
def deserialize(params)
|
809
|
+
@DeviceId = params['DeviceId']
|
810
|
+
@DeviceName = params['DeviceName']
|
811
|
+
@Remark = params['Remark']
|
812
|
+
unless params['UpdateNetInfo'].nil?
|
813
|
+
@UpdateNetInfo = []
|
814
|
+
params['UpdateNetInfo'].each do |i|
|
815
|
+
updatenetinfo_tmp = UpdateNetInfo.new
|
816
|
+
updatenetinfo_tmp.deserialize(i)
|
817
|
+
@UpdateNetInfo << updatenetinfo_tmp
|
818
|
+
end
|
819
|
+
end
|
820
|
+
end
|
821
|
+
end
|
822
|
+
|
823
|
+
# UpdateDevice返回参数结构体
|
824
|
+
class UpdateDeviceResponse < TencentCloud::Common::AbstractModel
|
825
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
826
|
+
# @type RequestId: String
|
827
|
+
|
828
|
+
attr_accessor :RequestId
|
829
|
+
|
830
|
+
def initialize(requestid=nil)
|
831
|
+
@RequestId = requestid
|
832
|
+
end
|
833
|
+
|
834
|
+
def deserialize(params)
|
835
|
+
@RequestId = params['RequestId']
|
836
|
+
end
|
837
|
+
end
|
838
|
+
|
839
|
+
# 更新设备网络状态信息
|
840
|
+
class UpdateNetInfo < TencentCloud::Common::AbstractModel
|
841
|
+
# @param Type: 网络类型:
|
842
|
+
# 0:数据
|
843
|
+
# 1:Wi-Fi
|
844
|
+
# @type Type: Integer
|
845
|
+
# @param DataEnable: 启用/禁用
|
846
|
+
# @type DataEnable: Boolean
|
847
|
+
# @param UploadLimit: 上行限速:bit
|
848
|
+
# @type UploadLimit: Integer
|
849
|
+
# @param DownloadLimit: 下行限速:bit
|
850
|
+
# @type DownloadLimit: Integer
|
851
|
+
# @param NetInfoName: 网卡名
|
852
|
+
# @type NetInfoName: String
|
853
|
+
|
854
|
+
attr_accessor :Type, :DataEnable, :UploadLimit, :DownloadLimit, :NetInfoName
|
855
|
+
|
856
|
+
def initialize(type=nil, dataenable=nil, uploadlimit=nil, downloadlimit=nil, netinfoname=nil)
|
857
|
+
@Type = type
|
858
|
+
@DataEnable = dataenable
|
859
|
+
@UploadLimit = uploadlimit
|
860
|
+
@DownloadLimit = downloadlimit
|
861
|
+
@NetInfoName = netinfoname
|
862
|
+
end
|
863
|
+
|
864
|
+
def deserialize(params)
|
865
|
+
@Type = params['Type']
|
866
|
+
@DataEnable = params['DataEnable']
|
867
|
+
@UploadLimit = params['UploadLimit']
|
868
|
+
@DownloadLimit = params['DownloadLimit']
|
869
|
+
@NetInfoName = params['NetInfoName']
|
870
|
+
end
|
871
|
+
end
|
872
|
+
|
411
873
|
end
|
412
874
|
end
|
413
875
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mna
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.409
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|