tencentcloud-sdk-iotexplorer 3.0.849 → 3.0.851

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 231b9b907b44d81bfb4f9c055a37e973f3f3763a
4
- data.tar.gz: 314a178a4f3c44e8d944de950ae6b6e03d5283a2
3
+ metadata.gz: 4ca7f1b764c8bb80ffb69889db0572d00ab29754
4
+ data.tar.gz: 5fba7c1e9d14d94f19f53bc702c58e3e4c46cfb1
5
5
  SHA512:
6
- metadata.gz: 91e100de0e580a39ee69eb9d838d0bb6dd5fff6a480ed2a021538ae151dad882fde64930ec4f9854a20213c719632af96793dbc5d6f4bbbafac3f823a58359e7
7
- data.tar.gz: b4397a26de61a7aa15f5cf507cd195d01f06fb6e1e005ef9b92344cd701fe2fb67fb06b519aeab21db76c44b86a6665ec418e9cddd49f03a680e791649b89fb8
6
+ metadata.gz: 39922191420f22af22687853abfb25340b79eddd046fae5b13661d572ece2e7c64ad679595ebb2e6cca8fe8023a46a81f090b20a0475147fa0646b17c58deee7
7
+ data.tar.gz: df81b79f4b0ebd7a878612ee21528bb018a76809d402f8881362b8ba06f89f8e7551b523d912bcb8acb5869cdbf87a5435ebf0bff853cb210955164f2173815f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.849
1
+ 3.0.851
@@ -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.
@@ -1541,6 +1565,30 @@ module TencentCloud
1541
1565
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1542
1566
  end
1543
1567
 
1568
+ # 查询固件信息
1569
+
1570
+ # @param request: Request instance for DescribeFirmware.
1571
+ # @type request: :class:`Tencentcloud::iotexplorer::V20190423::DescribeFirmwareRequest`
1572
+ # @rtype: :class:`Tencentcloud::iotexplorer::V20190423::DescribeFirmwareResponse`
1573
+ def DescribeFirmware(request)
1574
+ body = send_request('DescribeFirmware', request.serialize)
1575
+ response = JSON.parse(body)
1576
+ if response['Response'].key?('Error') == false
1577
+ model = DescribeFirmwareResponse.new
1578
+ model.deserialize(response['Response'])
1579
+ model
1580
+ else
1581
+ code = response['Response']['Error']['Code']
1582
+ message = response['Response']['Error']['Message']
1583
+ reqid = response['Response']['RequestId']
1584
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1585
+ end
1586
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1587
+ raise e
1588
+ rescue StandardError => e
1589
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1590
+ end
1591
+
1544
1592
  # 查询固件升级任务列表
1545
1593
 
1546
1594
  # @param request: Request instance for DescribeFirmwareTask.
@@ -1565,6 +1613,30 @@ module TencentCloud
1565
1613
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1566
1614
  end
1567
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
+
1568
1640
  # 获取网关绑定的子设备列表
1569
1641
 
1570
1642
  # @param request: Request instance for DescribeGatewayBindDevices.
@@ -2933,6 +3005,30 @@ module TencentCloud
2933
3005
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2934
3006
  end
2935
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
+
2936
3032
  # 本接口(PublishMessage)用于使用自定义透传协议进行设备远控
2937
3033
 
2938
3034
  # @param request: Request instance for PublishMessage.
@@ -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
@@ -3645,6 +3691,84 @@ module TencentCloud
3645
3691
  end
3646
3692
  end
3647
3693
 
3694
+ # DescribeFirmware请求参数结构体
3695
+ class DescribeFirmwareRequest < TencentCloud::Common::AbstractModel
3696
+ # @param ProductID: 产品ID
3697
+ # @type ProductID: String
3698
+ # @param FirmwareVersion: 固件版本号
3699
+ # @type FirmwareVersion: String
3700
+
3701
+ attr_accessor :ProductID, :FirmwareVersion
3702
+
3703
+ def initialize(productid=nil, firmwareversion=nil)
3704
+ @ProductID = productid
3705
+ @FirmwareVersion = firmwareversion
3706
+ end
3707
+
3708
+ def deserialize(params)
3709
+ @ProductID = params['ProductID']
3710
+ @FirmwareVersion = params['FirmwareVersion']
3711
+ end
3712
+ end
3713
+
3714
+ # DescribeFirmware返回参数结构体
3715
+ class DescribeFirmwareResponse < TencentCloud::Common::AbstractModel
3716
+ # @param Version: 固件版本号
3717
+ # @type Version: String
3718
+ # @param ProductId: 产品ID
3719
+ # @type ProductId: String
3720
+ # @param Name: 固件名称
3721
+ # 注意:此字段可能返回 null,表示取不到有效值。
3722
+ # @type Name: String
3723
+ # @param Description: 固件描述
3724
+ # 注意:此字段可能返回 null,表示取不到有效值。
3725
+ # @type Description: String
3726
+ # @param Md5sum: 固件Md5值
3727
+ # 注意:此字段可能返回 null,表示取不到有效值。
3728
+ # @type Md5sum: String
3729
+ # @param Createtime: 固件上传的秒级时间戳
3730
+ # 注意:此字段可能返回 null,表示取不到有效值。
3731
+ # @type Createtime: Integer
3732
+ # @param ProductName: 产品名称
3733
+ # @type ProductName: String
3734
+ # @param FwType: 固件升级模块
3735
+ # 注意:此字段可能返回 null,表示取不到有效值。
3736
+ # @type FwType: String
3737
+ # @param UserDefined: 固件用户自定义配置信息
3738
+ # 注意:此字段可能返回 null,表示取不到有效值。
3739
+ # @type UserDefined: String
3740
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3741
+ # @type RequestId: String
3742
+
3743
+ attr_accessor :Version, :ProductId, :Name, :Description, :Md5sum, :Createtime, :ProductName, :FwType, :UserDefined, :RequestId
3744
+
3745
+ def initialize(version=nil, productid=nil, name=nil, description=nil, md5sum=nil, createtime=nil, productname=nil, fwtype=nil, userdefined=nil, requestid=nil)
3746
+ @Version = version
3747
+ @ProductId = productid
3748
+ @Name = name
3749
+ @Description = description
3750
+ @Md5sum = md5sum
3751
+ @Createtime = createtime
3752
+ @ProductName = productname
3753
+ @FwType = fwtype
3754
+ @UserDefined = userdefined
3755
+ @RequestId = requestid
3756
+ end
3757
+
3758
+ def deserialize(params)
3759
+ @Version = params['Version']
3760
+ @ProductId = params['ProductId']
3761
+ @Name = params['Name']
3762
+ @Description = params['Description']
3763
+ @Md5sum = params['Md5sum']
3764
+ @Createtime = params['Createtime']
3765
+ @ProductName = params['ProductName']
3766
+ @FwType = params['FwType']
3767
+ @UserDefined = params['UserDefined']
3768
+ @RequestId = params['RequestId']
3769
+ end
3770
+ end
3771
+
3648
3772
  # DescribeFirmwareTask请求参数结构体
3649
3773
  class DescribeFirmwareTaskRequest < TencentCloud::Common::AbstractModel
3650
3774
  # @param ProductID: 产品ID
@@ -3735,6 +3859,72 @@ module TencentCloud
3735
3859
  end
3736
3860
  end
3737
3861
 
3862
+ # DescribeFirmwareUpdateStatus请求参数结构体
3863
+ class DescribeFirmwareUpdateStatusRequest < TencentCloud::Common::AbstractModel
3864
+ # @param ProductId: 产品 ID。
3865
+ # @type ProductId: String
3866
+ # @param DeviceName: 设备名。
3867
+ # @type DeviceName: String
3868
+
3869
+ attr_accessor :ProductId, :DeviceName
3870
+
3871
+ def initialize(productid=nil, devicename=nil)
3872
+ @ProductId = productid
3873
+ @DeviceName = devicename
3874
+ end
3875
+
3876
+ def deserialize(params)
3877
+ @ProductId = params['ProductId']
3878
+ @DeviceName = params['DeviceName']
3879
+ end
3880
+ end
3881
+
3882
+ # DescribeFirmwareUpdateStatus返回参数结构体
3883
+ class DescribeFirmwareUpdateStatusResponse < TencentCloud::Common::AbstractModel
3884
+ # @param OriVersion: 升级任务源版本。
3885
+ # 注意:此字段可能返回 null,表示取不到有效值。
3886
+ # @type OriVersion: String
3887
+ # @param DstVersion: 升级任务目标版本。
3888
+ # 注意:此字段可能返回 null,表示取不到有效值。
3889
+ # @type DstVersion: String
3890
+ # @param Status: 升级状态:
3891
+
3892
+ # - 0:设备离线。
3893
+ # - 1:待处理。
3894
+ # - 2:消息下发成功。
3895
+ # - 3:下载中。
3896
+ # - 4:烧录中。
3897
+ # - 5:失败。
3898
+ # - 6:升级完成。
3899
+ # - 7:正在处理中。
3900
+ # - 8:等待用户确认。
3901
+ # - 20:下载完成。
3902
+ # @type Status: Integer
3903
+ # @param Percent: 进度
3904
+ # 注意:此字段可能返回 null,表示取不到有效值。
3905
+ # @type Percent: Integer
3906
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3907
+ # @type RequestId: String
3908
+
3909
+ attr_accessor :OriVersion, :DstVersion, :Status, :Percent, :RequestId
3910
+
3911
+ def initialize(oriversion=nil, dstversion=nil, status=nil, percent=nil, requestid=nil)
3912
+ @OriVersion = oriversion
3913
+ @DstVersion = dstversion
3914
+ @Status = status
3915
+ @Percent = percent
3916
+ @RequestId = requestid
3917
+ end
3918
+
3919
+ def deserialize(params)
3920
+ @OriVersion = params['OriVersion']
3921
+ @DstVersion = params['DstVersion']
3922
+ @Status = params['Status']
3923
+ @Percent = params['Percent']
3924
+ @RequestId = params['RequestId']
3925
+ end
3926
+ end
3927
+
3738
3928
  # DescribeGatewayBindDevices请求参数结构体
3739
3929
  class DescribeGatewayBindDevicesRequest < TencentCloud::Common::AbstractModel
3740
3930
  # @param GatewayProductId: 网关设备的产品ID
@@ -7991,6 +8181,47 @@ module TencentCloud
7991
8181
  end
7992
8182
  end
7993
8183
 
8184
+ # PublishFirmwareUpdateMessage请求参数结构体
8185
+ class PublishFirmwareUpdateMessageRequest < TencentCloud::Common::AbstractModel
8186
+ # @param ProductID: 产品 ID。
8187
+ # @type ProductID: String
8188
+ # @param DeviceName: 设备名称。
8189
+ # @type DeviceName: String
8190
+
8191
+ attr_accessor :ProductID, :DeviceName
8192
+
8193
+ def initialize(productid=nil, devicename=nil)
8194
+ @ProductID = productid
8195
+ @DeviceName = devicename
8196
+ end
8197
+
8198
+ def deserialize(params)
8199
+ @ProductID = params['ProductID']
8200
+ @DeviceName = params['DeviceName']
8201
+ end
8202
+ end
8203
+
8204
+ # PublishFirmwareUpdateMessage返回参数结构体
8205
+ class PublishFirmwareUpdateMessageResponse < TencentCloud::Common::AbstractModel
8206
+ # @param Status: 请求状态
8207
+ # 注意:此字段可能返回 null,表示取不到有效值。
8208
+ # @type Status: String
8209
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8210
+ # @type RequestId: String
8211
+
8212
+ attr_accessor :Status, :RequestId
8213
+
8214
+ def initialize(status=nil, requestid=nil)
8215
+ @Status = status
8216
+ @RequestId = requestid
8217
+ end
8218
+
8219
+ def deserialize(params)
8220
+ @Status = params['Status']
8221
+ @RequestId = params['RequestId']
8222
+ end
8223
+ end
8224
+
7994
8225
  # PublishMessage请求参数结构体
7995
8226
  class PublishMessageRequest < TencentCloud::Common::AbstractModel
7996
8227
  # @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.849
4
+ version: 3.0.851
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-23 00:00:00.000000000 Z
11
+ date: 2024-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common