tencentcloud-sdk-iotexplorer 3.0.850 → 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: 8a75a175ee682223b7096831c5511e48c5c80068
4
- data.tar.gz: 910ba39ade2118a9d1ec145060f35eeb34924b48
3
+ metadata.gz: 4ca7f1b764c8bb80ffb69889db0572d00ab29754
4
+ data.tar.gz: 5fba7c1e9d14d94f19f53bc702c58e3e4c46cfb1
5
5
  SHA512:
6
- metadata.gz: f8d3a5229ed1d5d9c73c935ae7613e7aae50198e45c47549df84aab0bc1cd573bd7375e0fde43a9f1147e37912c50338889cfc22a82809acc7da03398c9d286e
7
- data.tar.gz: dfcf8499366e7c549a0e8f4da8cea7ab7fbc7a1605c0110dc57eb5ac5ae35391d15640e0379acd5a2f9b70eaefbc867e7e294d177784a5069c89b10de62692fb
6
+ metadata.gz: 39922191420f22af22687853abfb25340b79eddd046fae5b13661d572ece2e7c64ad679595ebb2e6cca8fe8023a46a81f090b20a0475147fa0646b17c58deee7
7
+ data.tar.gz: df81b79f4b0ebd7a878612ee21528bb018a76809d402f8881362b8ba06f89f8e7551b523d912bcb8acb5869cdbf87a5435ebf0bff853cb210955164f2173815f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.850
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.
@@ -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.
@@ -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
@@ -3813,6 +3859,72 @@ module TencentCloud
3813
3859
  end
3814
3860
  end
3815
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
+
3816
3928
  # DescribeGatewayBindDevices请求参数结构体
3817
3929
  class DescribeGatewayBindDevicesRequest < TencentCloud::Common::AbstractModel
3818
3930
  # @param GatewayProductId: 网关设备的产品ID
@@ -8069,6 +8181,47 @@ module TencentCloud
8069
8181
  end
8070
8182
  end
8071
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
+
8072
8225
  # PublishMessage请求参数结构体
8073
8226
  class PublishMessageRequest < TencentCloud::Common::AbstractModel
8074
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.850
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-24 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