tencentcloud-sdk-iotexplorer 3.0.808 → 3.0.810
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/v20190423/client.rb +24 -0
- data/lib/v20190423/models.rb +72 -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: 1cbe41ec76a103ada09f25f3275c28cf995713a4
|
4
|
+
data.tar.gz: ef5ed73c25468fd239d78cce9dddfb401a00b3c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5aaeee056aef3eceb4fda5300c139e1339f9c0d22b62c4f1424339431c33c020bb26bbda51ca2c89d9de687daf8cd4d9c015002a336cfd16b2d842145720770
|
7
|
+
data.tar.gz: ddd295f731c351eee186c26db8225fbca169b05588a7c576b688425d23cec83bf6a49180f5705df7101a9723efab94deef9019a6357347f2fdf9dc44c6017e88
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.810
|
data/lib/v20190423/client.rb
CHANGED
@@ -1277,6 +1277,30 @@ module TencentCloud
|
|
1277
1277
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1278
1278
|
end
|
1279
1279
|
|
1280
|
+
# 获取设备当前固件信息
|
1281
|
+
|
1282
|
+
# @param request: Request instance for DescribeDeviceFirmwares.
|
1283
|
+
# @type request: :class:`Tencentcloud::iotexplorer::V20190423::DescribeDeviceFirmwaresRequest`
|
1284
|
+
# @rtype: :class:`Tencentcloud::iotexplorer::V20190423::DescribeDeviceFirmwaresResponse`
|
1285
|
+
def DescribeDeviceFirmwares(request)
|
1286
|
+
body = send_request('DescribeDeviceFirmwares', request.serialize)
|
1287
|
+
response = JSON.parse(body)
|
1288
|
+
if response['Response'].key?('Error') == false
|
1289
|
+
model = DescribeDeviceFirmwaresResponse.new
|
1290
|
+
model.deserialize(response['Response'])
|
1291
|
+
model
|
1292
|
+
else
|
1293
|
+
code = response['Response']['Error']['Code']
|
1294
|
+
message = response['Response']['Error']['Message']
|
1295
|
+
reqid = response['Response']['RequestId']
|
1296
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1297
|
+
end
|
1298
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1299
|
+
raise e
|
1300
|
+
rescue StandardError => e
|
1301
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1302
|
+
end
|
1303
|
+
|
1280
1304
|
# 获取实时位置解析
|
1281
1305
|
|
1282
1306
|
# @param request: Request instance for DescribeDeviceLocationSolve.
|
data/lib/v20190423/models.rb
CHANGED
@@ -2947,6 +2947,54 @@ module TencentCloud
|
|
2947
2947
|
end
|
2948
2948
|
end
|
2949
2949
|
|
2950
|
+
# DescribeDeviceFirmwares请求参数结构体
|
2951
|
+
class DescribeDeviceFirmwaresRequest < TencentCloud::Common::AbstractModel
|
2952
|
+
# @param ProductId: 产品ID
|
2953
|
+
# @type ProductId: String
|
2954
|
+
# @param DeviceName: 设备名
|
2955
|
+
# @type DeviceName: String
|
2956
|
+
|
2957
|
+
attr_accessor :ProductId, :DeviceName
|
2958
|
+
|
2959
|
+
def initialize(productid=nil, devicename=nil)
|
2960
|
+
@ProductId = productid
|
2961
|
+
@DeviceName = devicename
|
2962
|
+
end
|
2963
|
+
|
2964
|
+
def deserialize(params)
|
2965
|
+
@ProductId = params['ProductId']
|
2966
|
+
@DeviceName = params['DeviceName']
|
2967
|
+
end
|
2968
|
+
end
|
2969
|
+
|
2970
|
+
# DescribeDeviceFirmwares返回参数结构体
|
2971
|
+
class DescribeDeviceFirmwaresResponse < TencentCloud::Common::AbstractModel
|
2972
|
+
# @param Firmwares: 固件信息列表
|
2973
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2974
|
+
# @type Firmwares: Array
|
2975
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2976
|
+
# @type RequestId: String
|
2977
|
+
|
2978
|
+
attr_accessor :Firmwares, :RequestId
|
2979
|
+
|
2980
|
+
def initialize(firmwares=nil, requestid=nil)
|
2981
|
+
@Firmwares = firmwares
|
2982
|
+
@RequestId = requestid
|
2983
|
+
end
|
2984
|
+
|
2985
|
+
def deserialize(params)
|
2986
|
+
unless params['Firmwares'].nil?
|
2987
|
+
@Firmwares = []
|
2988
|
+
params['Firmwares'].each do |i|
|
2989
|
+
devicefirmwareinfo_tmp = DeviceFirmwareInfo.new
|
2990
|
+
devicefirmwareinfo_tmp.deserialize(i)
|
2991
|
+
@Firmwares << devicefirmwareinfo_tmp
|
2992
|
+
end
|
2993
|
+
end
|
2994
|
+
@RequestId = params['RequestId']
|
2995
|
+
end
|
2996
|
+
end
|
2997
|
+
|
2950
2998
|
# DescribeDeviceLocationSolve请求参数结构体
|
2951
2999
|
class DescribeDeviceLocationSolveRequest < TencentCloud::Common::AbstractModel
|
2952
3000
|
# @param ProductId: 产品ID
|
@@ -4197,6 +4245,30 @@ module TencentCloud
|
|
4197
4245
|
end
|
4198
4246
|
end
|
4199
4247
|
|
4248
|
+
# 设备固件信息
|
4249
|
+
class DeviceFirmwareInfo < TencentCloud::Common::AbstractModel
|
4250
|
+
# @param FwType: 固件类型
|
4251
|
+
# @type FwType: String
|
4252
|
+
# @param Version: 固件版本
|
4253
|
+
# @type Version: String
|
4254
|
+
# @param UpdateTime: 最后更新时间
|
4255
|
+
# @type UpdateTime: Integer
|
4256
|
+
|
4257
|
+
attr_accessor :FwType, :Version, :UpdateTime
|
4258
|
+
|
4259
|
+
def initialize(fwtype=nil, version=nil, updatetime=nil)
|
4260
|
+
@FwType = fwtype
|
4261
|
+
@Version = version
|
4262
|
+
@UpdateTime = updatetime
|
4263
|
+
end
|
4264
|
+
|
4265
|
+
def deserialize(params)
|
4266
|
+
@FwType = params['FwType']
|
4267
|
+
@Version = params['Version']
|
4268
|
+
@UpdateTime = params['UpdateTime']
|
4269
|
+
end
|
4270
|
+
end
|
4271
|
+
|
4200
4272
|
# 设备详细信息
|
4201
4273
|
class DeviceInfo < TencentCloud::Common::AbstractModel
|
4202
4274
|
# @param DeviceName: 设备名
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-iotexplorer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.810
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|