tencentcloud-sdk-iotexplorer 3.0.454 → 3.0.455
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 +92 -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: b5a80533b7abb067d84663332e9775f3bfc35507
|
4
|
+
data.tar.gz: 147678d504266f7ff901d31debab445de9859d0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdabb82569681b64db15b124b1a9b0f2768d4eb21b3cee5cca243632257772ae66cab3e1c737948adcb015fd4ad7214b9ba416d25180ffc66405c15c5ffedb64
|
7
|
+
data.tar.gz: 7472f8f2af65796a9d30e943c01f9477759b0613ec93bae524bde7b9d3180ecfd7c7889563c862ba98aa3b9b7f75fbee2de2d70468d61cc24fe0b217ad12859e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.455
|
data/lib/v20190423/client.rb
CHANGED
@@ -821,6 +821,30 @@ module TencentCloud
|
|
821
821
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
822
822
|
end
|
823
823
|
|
824
|
+
# 获取实时位置解析
|
825
|
+
|
826
|
+
# @param request: Request instance for DescribeDeviceLocationSolve.
|
827
|
+
# @type request: :class:`Tencentcloud::iotexplorer::V20190423::DescribeDeviceLocationSolveRequest`
|
828
|
+
# @rtype: :class:`Tencentcloud::iotexplorer::V20190423::DescribeDeviceLocationSolveResponse`
|
829
|
+
def DescribeDeviceLocationSolve(request)
|
830
|
+
body = send_request('DescribeDeviceLocationSolve', request.serialize)
|
831
|
+
response = JSON.parse(body)
|
832
|
+
if response['Response'].key?('Error') == false
|
833
|
+
model = DescribeDeviceLocationSolveResponse.new
|
834
|
+
model.deserialize(response['Response'])
|
835
|
+
model
|
836
|
+
else
|
837
|
+
code = response['Response']['Error']['Code']
|
838
|
+
message = response['Response']['Error']['Message']
|
839
|
+
reqid = response['Response']['RequestId']
|
840
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
841
|
+
end
|
842
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
843
|
+
raise e
|
844
|
+
rescue StandardError => e
|
845
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
846
|
+
end
|
847
|
+
|
824
848
|
# 获取设备位置列表
|
825
849
|
|
826
850
|
# @param request: Request instance for DescribeDevicePositionList.
|
data/lib/v20190423/models.rb
CHANGED
@@ -1750,6 +1750,78 @@ module TencentCloud
|
|
1750
1750
|
end
|
1751
1751
|
end
|
1752
1752
|
|
1753
|
+
# DescribeDeviceLocationSolve请求参数结构体
|
1754
|
+
class DescribeDeviceLocationSolveRequest < TencentCloud::Common::AbstractModel
|
1755
|
+
# @param ProductId: 产品ID
|
1756
|
+
# @type ProductId: String
|
1757
|
+
# @param DeviceName: 设备名称
|
1758
|
+
# @type DeviceName: String
|
1759
|
+
# @param LocationType: 定位解析类型,wifi或GNSSNavigation
|
1760
|
+
# @type LocationType: String
|
1761
|
+
# @param GNSSNavigation: LoRaEdge卫星导航电文
|
1762
|
+
# @type GNSSNavigation: String
|
1763
|
+
# @param WiFiInfo: wifi信息
|
1764
|
+
# @type WiFiInfo: Array
|
1765
|
+
|
1766
|
+
attr_accessor :ProductId, :DeviceName, :LocationType, :GNSSNavigation, :WiFiInfo
|
1767
|
+
|
1768
|
+
def initialize(productid=nil, devicename=nil, locationtype=nil, gnssnavigation=nil, wifiinfo=nil)
|
1769
|
+
@ProductId = productid
|
1770
|
+
@DeviceName = devicename
|
1771
|
+
@LocationType = locationtype
|
1772
|
+
@GNSSNavigation = gnssnavigation
|
1773
|
+
@WiFiInfo = wifiinfo
|
1774
|
+
end
|
1775
|
+
|
1776
|
+
def deserialize(params)
|
1777
|
+
@ProductId = params['ProductId']
|
1778
|
+
@DeviceName = params['DeviceName']
|
1779
|
+
@LocationType = params['LocationType']
|
1780
|
+
@GNSSNavigation = params['GNSSNavigation']
|
1781
|
+
unless params['WiFiInfo'].nil?
|
1782
|
+
@WiFiInfo = []
|
1783
|
+
params['WiFiInfo'].each do |i|
|
1784
|
+
wifiinfo_tmp = WifiInfo.new
|
1785
|
+
wifiinfo_tmp.deserialize(i)
|
1786
|
+
@WiFiInfo << wifiinfo_tmp
|
1787
|
+
end
|
1788
|
+
end
|
1789
|
+
end
|
1790
|
+
end
|
1791
|
+
|
1792
|
+
# DescribeDeviceLocationSolve返回参数结构体
|
1793
|
+
class DescribeDeviceLocationSolveResponse < TencentCloud::Common::AbstractModel
|
1794
|
+
# @param Longitude: 经度
|
1795
|
+
# @type Longitude: Float
|
1796
|
+
# @param Latitude: 维度
|
1797
|
+
# @type Latitude: Float
|
1798
|
+
# @param LocationType: 类型
|
1799
|
+
# @type LocationType: String
|
1800
|
+
# @param Accuracy: 误差精度预估,单位为米
|
1801
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1802
|
+
# @type Accuracy: Float
|
1803
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1804
|
+
# @type RequestId: String
|
1805
|
+
|
1806
|
+
attr_accessor :Longitude, :Latitude, :LocationType, :Accuracy, :RequestId
|
1807
|
+
|
1808
|
+
def initialize(longitude=nil, latitude=nil, locationtype=nil, accuracy=nil, requestid=nil)
|
1809
|
+
@Longitude = longitude
|
1810
|
+
@Latitude = latitude
|
1811
|
+
@LocationType = locationtype
|
1812
|
+
@Accuracy = accuracy
|
1813
|
+
@RequestId = requestid
|
1814
|
+
end
|
1815
|
+
|
1816
|
+
def deserialize(params)
|
1817
|
+
@Longitude = params['Longitude']
|
1818
|
+
@Latitude = params['Latitude']
|
1819
|
+
@LocationType = params['LocationType']
|
1820
|
+
@Accuracy = params['Accuracy']
|
1821
|
+
@RequestId = params['RequestId']
|
1822
|
+
end
|
1823
|
+
end
|
1824
|
+
|
1753
1825
|
# DescribeDevicePositionList请求参数结构体
|
1754
1826
|
class DescribeDevicePositionListRequest < TencentCloud::Common::AbstractModel
|
1755
1827
|
# @param ProductIdList: 产品标识列表
|
@@ -5968,6 +6040,26 @@ module TencentCloud
|
|
5968
6040
|
end
|
5969
6041
|
end
|
5970
6042
|
|
6043
|
+
# wifi定位信息
|
6044
|
+
class WifiInfo < TencentCloud::Common::AbstractModel
|
6045
|
+
# @param MAC: mac地址
|
6046
|
+
# @type MAC: String
|
6047
|
+
# @param RSSI: 信号强度
|
6048
|
+
# @type RSSI: Integer
|
6049
|
+
|
6050
|
+
attr_accessor :MAC, :RSSI
|
6051
|
+
|
6052
|
+
def initialize(mac=nil, rssi=nil)
|
6053
|
+
@MAC = mac
|
6054
|
+
@RSSI = rssi
|
6055
|
+
end
|
6056
|
+
|
6057
|
+
def deserialize(params)
|
6058
|
+
@MAC = params['MAC']
|
6059
|
+
@RSSI = params['RSSI']
|
6060
|
+
end
|
6061
|
+
end
|
6062
|
+
|
5971
6063
|
end
|
5972
6064
|
end
|
5973
6065
|
end
|
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.455
|
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-11-
|
11
|
+
date: 2022-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|