tencentcloud-sdk-iotexplorer 3.0.850 → 3.0.852
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 +72 -0
- data/lib/v20190423/models.rb +160 -2
- 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: 2ed4c49f370ce4376776dbea7b512e1a235d0f49
|
4
|
+
data.tar.gz: cb35706b571eb4fda06ce3f858cc2568c2dbcd85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a659c46a48ebc8349c907398050a73e2d28e9ff647e0011ea1f33758de5490705cc4b12d7ac98e6137496f3be588ad820f4a2724dc994b418400af9175c32f9
|
7
|
+
data.tar.gz: de6d25bb541995e023891caa5dcb3108119b63da079ba300dbfc3fa9393b241b7266c557fd051284ab3c7d65bd8a03893c79fec6b7ba3d31614ede7279bdc3fa
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.852
|
data/lib/v20190423/client.rb
CHANGED
@@ -221,6 +221,30 @@ module TencentCloud
|
|
221
221
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
222
|
end
|
223
223
|
|
224
|
+
# 本接口(CheckFirmwareUpdate)用于查询设备可升级固件版本
|
225
|
+
|
226
|
+
# @param request: Request instance for CheckFirmwareUpdate.
|
227
|
+
# @type request: :class:`Tencentcloud::iotexplorer::V20190423::CheckFirmwareUpdateRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::iotexplorer::V20190423::CheckFirmwareUpdateResponse`
|
229
|
+
def CheckFirmwareUpdate(request)
|
230
|
+
body = send_request('CheckFirmwareUpdate', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = CheckFirmwareUpdateResponse.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
|
+
|
224
248
|
# 根据设备产品ID、设备名称,设置控制设备的属性数据。
|
225
249
|
|
226
250
|
# @param request: Request instance for ControlDeviceData.
|
@@ -1589,6 +1613,30 @@ module TencentCloud
|
|
1589
1613
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1590
1614
|
end
|
1591
1615
|
|
1616
|
+
# 本接口(DescribeFirmwareUpdateStatus)用于查询设备固件升级状态及进度。
|
1617
|
+
|
1618
|
+
# @param request: Request instance for DescribeFirmwareUpdateStatus.
|
1619
|
+
# @type request: :class:`Tencentcloud::iotexplorer::V20190423::DescribeFirmwareUpdateStatusRequest`
|
1620
|
+
# @rtype: :class:`Tencentcloud::iotexplorer::V20190423::DescribeFirmwareUpdateStatusResponse`
|
1621
|
+
def DescribeFirmwareUpdateStatus(request)
|
1622
|
+
body = send_request('DescribeFirmwareUpdateStatus', request.serialize)
|
1623
|
+
response = JSON.parse(body)
|
1624
|
+
if response['Response'].key?('Error') == false
|
1625
|
+
model = DescribeFirmwareUpdateStatusResponse.new
|
1626
|
+
model.deserialize(response['Response'])
|
1627
|
+
model
|
1628
|
+
else
|
1629
|
+
code = response['Response']['Error']['Code']
|
1630
|
+
message = response['Response']['Error']['Message']
|
1631
|
+
reqid = response['Response']['RequestId']
|
1632
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1633
|
+
end
|
1634
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1635
|
+
raise e
|
1636
|
+
rescue StandardError => e
|
1637
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1638
|
+
end
|
1639
|
+
|
1592
1640
|
# 获取网关绑定的子设备列表
|
1593
1641
|
|
1594
1642
|
# @param request: Request instance for DescribeGatewayBindDevices.
|
@@ -2957,6 +3005,30 @@ module TencentCloud
|
|
2957
3005
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2958
3006
|
end
|
2959
3007
|
|
3008
|
+
# 本接口(PublishFirmwareUpdateMessage)用于用户确认升级后,云端向设备发起固件升级请求。
|
3009
|
+
|
3010
|
+
# @param request: Request instance for PublishFirmwareUpdateMessage.
|
3011
|
+
# @type request: :class:`Tencentcloud::iotexplorer::V20190423::PublishFirmwareUpdateMessageRequest`
|
3012
|
+
# @rtype: :class:`Tencentcloud::iotexplorer::V20190423::PublishFirmwareUpdateMessageResponse`
|
3013
|
+
def PublishFirmwareUpdateMessage(request)
|
3014
|
+
body = send_request('PublishFirmwareUpdateMessage', request.serialize)
|
3015
|
+
response = JSON.parse(body)
|
3016
|
+
if response['Response'].key?('Error') == false
|
3017
|
+
model = PublishFirmwareUpdateMessageResponse.new
|
3018
|
+
model.deserialize(response['Response'])
|
3019
|
+
model
|
3020
|
+
else
|
3021
|
+
code = response['Response']['Error']['Code']
|
3022
|
+
message = response['Response']['Error']['Message']
|
3023
|
+
reqid = response['Response']['RequestId']
|
3024
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3025
|
+
end
|
3026
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3027
|
+
raise e
|
3028
|
+
rescue StandardError => e
|
3029
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3030
|
+
end
|
3031
|
+
|
2960
3032
|
# 本接口(PublishMessage)用于使用自定义透传协议进行设备远控
|
2961
3033
|
|
2962
3034
|
# @param request: Request instance for PublishMessage.
|
data/lib/v20190423/models.rb
CHANGED
@@ -566,6 +566,52 @@ module TencentCloud
|
|
566
566
|
end
|
567
567
|
end
|
568
568
|
|
569
|
+
# CheckFirmwareUpdate请求参数结构体
|
570
|
+
class CheckFirmwareUpdateRequest < TencentCloud::Common::AbstractModel
|
571
|
+
# @param ProductId: 产品ID。
|
572
|
+
# @type ProductId: String
|
573
|
+
# @param DeviceName: 设备名称。
|
574
|
+
# @type DeviceName: String
|
575
|
+
|
576
|
+
attr_accessor :ProductId, :DeviceName
|
577
|
+
|
578
|
+
def initialize(productid=nil, devicename=nil)
|
579
|
+
@ProductId = productid
|
580
|
+
@DeviceName = devicename
|
581
|
+
end
|
582
|
+
|
583
|
+
def deserialize(params)
|
584
|
+
@ProductId = params['ProductId']
|
585
|
+
@DeviceName = params['DeviceName']
|
586
|
+
end
|
587
|
+
end
|
588
|
+
|
589
|
+
# CheckFirmwareUpdate返回参数结构体
|
590
|
+
class CheckFirmwareUpdateResponse < TencentCloud::Common::AbstractModel
|
591
|
+
# @param CurrentVersion: 设备当前固件版本。
|
592
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
593
|
+
# @type CurrentVersion: String
|
594
|
+
# @param DstVersion: 固件可升级版本。
|
595
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
596
|
+
# @type DstVersion: String
|
597
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
598
|
+
# @type RequestId: String
|
599
|
+
|
600
|
+
attr_accessor :CurrentVersion, :DstVersion, :RequestId
|
601
|
+
|
602
|
+
def initialize(currentversion=nil, dstversion=nil, requestid=nil)
|
603
|
+
@CurrentVersion = currentversion
|
604
|
+
@DstVersion = dstversion
|
605
|
+
@RequestId = requestid
|
606
|
+
end
|
607
|
+
|
608
|
+
def deserialize(params)
|
609
|
+
@CurrentVersion = params['CurrentVersion']
|
610
|
+
@DstVersion = params['DstVersion']
|
611
|
+
@RequestId = params['RequestId']
|
612
|
+
end
|
613
|
+
end
|
614
|
+
|
569
615
|
# 云存 AI 服务任务信息
|
570
616
|
class CloudStorageAIServiceTask < TencentCloud::Common::AbstractModel
|
571
617
|
# @param TaskId: 云存 AI 服务任务 ID
|
@@ -639,14 +685,18 @@ module TencentCloud
|
|
639
685
|
# @type Thumbnail: String
|
640
686
|
# @param EventId: 事件ID
|
641
687
|
# @type EventId: String
|
688
|
+
# @param UploadStatus: 事件录像上传状态,Finished: 全部上传成功 Partial: 部分上传成功 Failed: 上传失败
|
689
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
690
|
+
# @type UploadStatus: String
|
642
691
|
|
643
|
-
attr_accessor :StartTime, :EndTime, :Thumbnail, :EventId
|
692
|
+
attr_accessor :StartTime, :EndTime, :Thumbnail, :EventId, :UploadStatus
|
644
693
|
|
645
|
-
def initialize(starttime=nil, endtime=nil, thumbnail=nil, eventid=nil)
|
694
|
+
def initialize(starttime=nil, endtime=nil, thumbnail=nil, eventid=nil, uploadstatus=nil)
|
646
695
|
@StartTime = starttime
|
647
696
|
@EndTime = endtime
|
648
697
|
@Thumbnail = thumbnail
|
649
698
|
@EventId = eventid
|
699
|
+
@UploadStatus = uploadstatus
|
650
700
|
end
|
651
701
|
|
652
702
|
def deserialize(params)
|
@@ -654,6 +704,7 @@ module TencentCloud
|
|
654
704
|
@EndTime = params['EndTime']
|
655
705
|
@Thumbnail = params['Thumbnail']
|
656
706
|
@EventId = params['EventId']
|
707
|
+
@UploadStatus = params['UploadStatus']
|
657
708
|
end
|
658
709
|
end
|
659
710
|
|
@@ -3813,6 +3864,72 @@ module TencentCloud
|
|
3813
3864
|
end
|
3814
3865
|
end
|
3815
3866
|
|
3867
|
+
# DescribeFirmwareUpdateStatus请求参数结构体
|
3868
|
+
class DescribeFirmwareUpdateStatusRequest < TencentCloud::Common::AbstractModel
|
3869
|
+
# @param ProductId: 产品 ID。
|
3870
|
+
# @type ProductId: String
|
3871
|
+
# @param DeviceName: 设备名。
|
3872
|
+
# @type DeviceName: String
|
3873
|
+
|
3874
|
+
attr_accessor :ProductId, :DeviceName
|
3875
|
+
|
3876
|
+
def initialize(productid=nil, devicename=nil)
|
3877
|
+
@ProductId = productid
|
3878
|
+
@DeviceName = devicename
|
3879
|
+
end
|
3880
|
+
|
3881
|
+
def deserialize(params)
|
3882
|
+
@ProductId = params['ProductId']
|
3883
|
+
@DeviceName = params['DeviceName']
|
3884
|
+
end
|
3885
|
+
end
|
3886
|
+
|
3887
|
+
# DescribeFirmwareUpdateStatus返回参数结构体
|
3888
|
+
class DescribeFirmwareUpdateStatusResponse < TencentCloud::Common::AbstractModel
|
3889
|
+
# @param OriVersion: 升级任务源版本。
|
3890
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3891
|
+
# @type OriVersion: String
|
3892
|
+
# @param DstVersion: 升级任务目标版本。
|
3893
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3894
|
+
# @type DstVersion: String
|
3895
|
+
# @param Status: 升级状态:
|
3896
|
+
|
3897
|
+
# - 0:设备离线。
|
3898
|
+
# - 1:待处理。
|
3899
|
+
# - 2:消息下发成功。
|
3900
|
+
# - 3:下载中。
|
3901
|
+
# - 4:烧录中。
|
3902
|
+
# - 5:失败。
|
3903
|
+
# - 6:升级完成。
|
3904
|
+
# - 7:正在处理中。
|
3905
|
+
# - 8:等待用户确认。
|
3906
|
+
# - 20:下载完成。
|
3907
|
+
# @type Status: Integer
|
3908
|
+
# @param Percent: 进度
|
3909
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3910
|
+
# @type Percent: Integer
|
3911
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3912
|
+
# @type RequestId: String
|
3913
|
+
|
3914
|
+
attr_accessor :OriVersion, :DstVersion, :Status, :Percent, :RequestId
|
3915
|
+
|
3916
|
+
def initialize(oriversion=nil, dstversion=nil, status=nil, percent=nil, requestid=nil)
|
3917
|
+
@OriVersion = oriversion
|
3918
|
+
@DstVersion = dstversion
|
3919
|
+
@Status = status
|
3920
|
+
@Percent = percent
|
3921
|
+
@RequestId = requestid
|
3922
|
+
end
|
3923
|
+
|
3924
|
+
def deserialize(params)
|
3925
|
+
@OriVersion = params['OriVersion']
|
3926
|
+
@DstVersion = params['DstVersion']
|
3927
|
+
@Status = params['Status']
|
3928
|
+
@Percent = params['Percent']
|
3929
|
+
@RequestId = params['RequestId']
|
3930
|
+
end
|
3931
|
+
end
|
3932
|
+
|
3816
3933
|
# DescribeGatewayBindDevices请求参数结构体
|
3817
3934
|
class DescribeGatewayBindDevicesRequest < TencentCloud::Common::AbstractModel
|
3818
3935
|
# @param GatewayProductId: 网关设备的产品ID
|
@@ -8069,6 +8186,47 @@ module TencentCloud
|
|
8069
8186
|
end
|
8070
8187
|
end
|
8071
8188
|
|
8189
|
+
# PublishFirmwareUpdateMessage请求参数结构体
|
8190
|
+
class PublishFirmwareUpdateMessageRequest < TencentCloud::Common::AbstractModel
|
8191
|
+
# @param ProductID: 产品 ID。
|
8192
|
+
# @type ProductID: String
|
8193
|
+
# @param DeviceName: 设备名称。
|
8194
|
+
# @type DeviceName: String
|
8195
|
+
|
8196
|
+
attr_accessor :ProductID, :DeviceName
|
8197
|
+
|
8198
|
+
def initialize(productid=nil, devicename=nil)
|
8199
|
+
@ProductID = productid
|
8200
|
+
@DeviceName = devicename
|
8201
|
+
end
|
8202
|
+
|
8203
|
+
def deserialize(params)
|
8204
|
+
@ProductID = params['ProductID']
|
8205
|
+
@DeviceName = params['DeviceName']
|
8206
|
+
end
|
8207
|
+
end
|
8208
|
+
|
8209
|
+
# PublishFirmwareUpdateMessage返回参数结构体
|
8210
|
+
class PublishFirmwareUpdateMessageResponse < TencentCloud::Common::AbstractModel
|
8211
|
+
# @param Status: 请求状态
|
8212
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8213
|
+
# @type Status: String
|
8214
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8215
|
+
# @type RequestId: String
|
8216
|
+
|
8217
|
+
attr_accessor :Status, :RequestId
|
8218
|
+
|
8219
|
+
def initialize(status=nil, requestid=nil)
|
8220
|
+
@Status = status
|
8221
|
+
@RequestId = requestid
|
8222
|
+
end
|
8223
|
+
|
8224
|
+
def deserialize(params)
|
8225
|
+
@Status = params['Status']
|
8226
|
+
@RequestId = params['RequestId']
|
8227
|
+
end
|
8228
|
+
end
|
8229
|
+
|
8072
8230
|
# PublishMessage请求参数结构体
|
8073
8231
|
class PublishMessageRequest < TencentCloud::Common::AbstractModel
|
8074
8232
|
# @param ProductId: 产品ID
|
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.852
|
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-06-
|
11
|
+
date: 2024-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|