tencentcloud-sdk-iotcloud 3.0.760 → 3.0.761
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/v20210408/client.rb +24 -0
- data/lib/v20210408/models.rb +66 -14
- 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: a317b84f0e7dfcf6bcc1f7a1532e9b88774f76d3
|
4
|
+
data.tar.gz: dcaa861ba8a9b3477e8ea1c82efaa7093c5c06d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f9e0d1da2981ab35a14755857751620944797fa19ddeeb70226027c04ef3babcb7f1cc45b6950d54231dadb510fb0c2829d4242dc7f0c28361e32af661fe391
|
7
|
+
data.tar.gz: 646ca88e814600936e6b1b56257d5a3c0c5cca283ba876fd0c461fdade2157905711e3db1c970d91bb6ea318a86d53aff66d11839e05704521daf9836aa91c0d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.761
|
data/lib/v20210408/client.rb
CHANGED
@@ -1637,6 +1637,30 @@ module TencentCloud
|
|
1637
1637
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1638
1638
|
end
|
1639
1639
|
|
1640
|
+
# 本接口(UpdateOtaTask)当固件升级大任务处于没有在全部成功的状态时,可修改为取消状态,取消部分或全部设备的升级;或其它允许的可修改的状态
|
1641
|
+
|
1642
|
+
# @param request: Request instance for UpdateOtaTaskStatus.
|
1643
|
+
# @type request: :class:`Tencentcloud::iotcloud::V20210408::UpdateOtaTaskStatusRequest`
|
1644
|
+
# @rtype: :class:`Tencentcloud::iotcloud::V20210408::UpdateOtaTaskStatusResponse`
|
1645
|
+
def UpdateOtaTaskStatus(request)
|
1646
|
+
body = send_request('UpdateOtaTaskStatus', request.serialize)
|
1647
|
+
response = JSON.parse(body)
|
1648
|
+
if response['Response'].key?('Error') == false
|
1649
|
+
model = UpdateOtaTaskStatusResponse.new
|
1650
|
+
model.deserialize(response['Response'])
|
1651
|
+
model
|
1652
|
+
else
|
1653
|
+
code = response['Response']['Error']['Code']
|
1654
|
+
message = response['Response']['Error']['Message']
|
1655
|
+
reqid = response['Response']['RequestId']
|
1656
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1657
|
+
end
|
1658
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1659
|
+
raise e
|
1660
|
+
rescue StandardError => e
|
1661
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1662
|
+
end
|
1663
|
+
|
1640
1664
|
# 更新私有CA证书
|
1641
1665
|
|
1642
1666
|
# @param request: Request instance for UpdatePrivateCA.
|
data/lib/v20210408/models.rb
CHANGED
@@ -60,10 +60,12 @@ module TencentCloud
|
|
60
60
|
# @type DeviceNames: Array
|
61
61
|
# @param TimeoutInterval: 固件升级任务,默认超时时间。 最小取值60秒,最大为3600秒
|
62
62
|
# @type TimeoutInterval: Integer
|
63
|
+
# @param Type: 固件升级任务类型,默认静态升级值为空或1,动态升级值为7。
|
64
|
+
# @type Type: Integer
|
63
65
|
|
64
|
-
attr_accessor :ProductId, :FirmwareVersion, :FirmwareOriVersion, :UpgradeMethod, :FileName, :FileMd5, :FileSize, :DeviceNames, :TimeoutInterval
|
66
|
+
attr_accessor :ProductId, :FirmwareVersion, :FirmwareOriVersion, :UpgradeMethod, :FileName, :FileMd5, :FileSize, :DeviceNames, :TimeoutInterval, :Type
|
65
67
|
|
66
|
-
def initialize(productid=nil, firmwareversion=nil, firmwareoriversion=nil, upgrademethod=nil, filename=nil, filemd5=nil, filesize=nil, devicenames=nil, timeoutinterval=nil)
|
68
|
+
def initialize(productid=nil, firmwareversion=nil, firmwareoriversion=nil, upgrademethod=nil, filename=nil, filemd5=nil, filesize=nil, devicenames=nil, timeoutinterval=nil, type=nil)
|
67
69
|
@ProductId = productid
|
68
70
|
@FirmwareVersion = firmwareversion
|
69
71
|
@FirmwareOriVersion = firmwareoriversion
|
@@ -73,6 +75,7 @@ module TencentCloud
|
|
73
75
|
@FileSize = filesize
|
74
76
|
@DeviceNames = devicenames
|
75
77
|
@TimeoutInterval = timeoutinterval
|
78
|
+
@Type = type
|
76
79
|
end
|
77
80
|
|
78
81
|
def deserialize(params)
|
@@ -85,6 +88,7 @@ module TencentCloud
|
|
85
88
|
@FileSize = params['FileSize']
|
86
89
|
@DeviceNames = params['DeviceNames']
|
87
90
|
@TimeoutInterval = params['TimeoutInterval']
|
91
|
+
@Type = params['Type']
|
88
92
|
end
|
89
93
|
end
|
90
94
|
|
@@ -255,8 +259,8 @@ module TencentCloud
|
|
255
259
|
|
256
260
|
attr_accessor :Content, :DeviceName, :ProductId, :RequestId, :Result, :Scene, :Time, :Userid, :UserId
|
257
261
|
extend Gem::Deprecate
|
258
|
-
deprecate :Userid, :none,
|
259
|
-
deprecate :Userid=, :none,
|
262
|
+
deprecate :Userid, :none, 2024, 1
|
263
|
+
deprecate :Userid=, :none, 2024, 1
|
260
264
|
|
261
265
|
def initialize(content=nil, devicename=nil, productid=nil, requestid=nil, result=nil, scene=nil, time=nil, userid=nil, userid=nil)
|
262
266
|
@Content = content
|
@@ -1250,8 +1254,8 @@ module TencentCloud
|
|
1250
1254
|
|
1251
1255
|
attr_accessor :DeviceName, :Online, :LoginTime, :Version, :LastUpdateTime, :DeviceCert, :DevicePsk, :Tags, :DeviceType, :Imei, :Isp, :ConnIP, :NbiotDeviceID, :LoraDevEui, :LoraMoteType, :LogLevel, :FirstOnlineTime, :LastOfflineTime, :CreateTime, :CertState, :EnableState, :Labels, :ClientIP, :FirmwareUpdateTime, :CreateUserId, :NBIoTDeviceID, :RequestId
|
1252
1256
|
extend Gem::Deprecate
|
1253
|
-
deprecate :NbiotDeviceID, :none,
|
1254
|
-
deprecate :NbiotDeviceID=, :none,
|
1257
|
+
deprecate :NbiotDeviceID, :none, 2024, 1
|
1258
|
+
deprecate :NbiotDeviceID=, :none, 2024, 1
|
1255
1259
|
|
1256
1260
|
def initialize(devicename=nil, online=nil, logintime=nil, version=nil, lastupdatetime=nil, devicecert=nil, devicepsk=nil, tags=nil, devicetype=nil, imei=nil, isp=nil, connip=nil, nbiotdeviceid=nil, loradeveui=nil, loramotetype=nil, loglevel=nil, firstonlinetime=nil, lastofflinetime=nil, createtime=nil, certstate=nil, enablestate=nil, labels=nil, clientip=nil, firmwareupdatetime=nil, createuserid=nil, nbiotdeviceid=nil, requestid=nil)
|
1257
1261
|
@DeviceName = devicename
|
@@ -2568,8 +2572,8 @@ module TencentCloud
|
|
2568
2572
|
|
2569
2573
|
attr_accessor :DeviceName, :Online, :LoginTime, :Version, :DeviceCert, :DevicePsk, :Tags, :DeviceType, :Imei, :Isp, :NbiotDeviceID, :ConnIP, :LastUpdateTime, :LoraDevEui, :LoraMoteType, :FirstOnlineTime, :LastOfflineTime, :CreateTime, :LogLevel, :CertState, :EnableState, :Labels, :ClientIP, :FirmwareUpdateTime, :CreateUserId, :NBIoTDeviceID
|
2570
2574
|
extend Gem::Deprecate
|
2571
|
-
deprecate :NbiotDeviceID, :none,
|
2572
|
-
deprecate :NbiotDeviceID=, :none,
|
2575
|
+
deprecate :NbiotDeviceID, :none, 2024, 1
|
2576
|
+
deprecate :NbiotDeviceID=, :none, 2024, 1
|
2573
2577
|
|
2574
2578
|
def initialize(devicename=nil, online=nil, logintime=nil, version=nil, devicecert=nil, devicepsk=nil, tags=nil, devicetype=nil, imei=nil, isp=nil, nbiotdeviceid=nil, connip=nil, lastupdatetime=nil, loradeveui=nil, loramotetype=nil, firstonlinetime=nil, lastofflinetime=nil, createtime=nil, loglevel=nil, certstate=nil, enablestate=nil, labels=nil, clientip=nil, firmwareupdatetime=nil, createuserid=nil, nbiotdeviceid=nil)
|
2575
2579
|
@DeviceName = devicename
|
@@ -2878,14 +2882,17 @@ module TencentCloud
|
|
2878
2882
|
# @type FirmwareName: String
|
2879
2883
|
# @param FirmwareDescription: 固件描述
|
2880
2884
|
# @type FirmwareDescription: String
|
2885
|
+
# @param FirmwareUserDefined: 固件用户自定义配置信息
|
2886
|
+
# @type FirmwareUserDefined: String
|
2881
2887
|
|
2882
|
-
attr_accessor :ProductId, :FirmwareVersion, :FirmwareName, :FirmwareDescription
|
2888
|
+
attr_accessor :ProductId, :FirmwareVersion, :FirmwareName, :FirmwareDescription, :FirmwareUserDefined
|
2883
2889
|
|
2884
|
-
def initialize(productid=nil, firmwareversion=nil, firmwarename=nil, firmwaredescription=nil)
|
2890
|
+
def initialize(productid=nil, firmwareversion=nil, firmwarename=nil, firmwaredescription=nil, firmwareuserdefined=nil)
|
2885
2891
|
@ProductId = productid
|
2886
2892
|
@FirmwareVersion = firmwareversion
|
2887
2893
|
@FirmwareName = firmwarename
|
2888
2894
|
@FirmwareDescription = firmwaredescription
|
2895
|
+
@FirmwareUserDefined = firmwareuserdefined
|
2889
2896
|
end
|
2890
2897
|
|
2891
2898
|
def deserialize(params)
|
@@ -2893,6 +2900,7 @@ module TencentCloud
|
|
2893
2900
|
@FirmwareVersion = params['FirmwareVersion']
|
2894
2901
|
@FirmwareName = params['FirmwareName']
|
2895
2902
|
@FirmwareDescription = params['FirmwareDescription']
|
2903
|
+
@FirmwareUserDefined = params['FirmwareUserDefined']
|
2896
2904
|
end
|
2897
2905
|
end
|
2898
2906
|
|
@@ -3627,8 +3635,8 @@ module TencentCloud
|
|
3627
3635
|
|
3628
3636
|
attr_accessor :ProductDescription, :EncryptionType, :Region, :ProductType, :Format, :Platform, :Appeui, :ModelId, :ModelName, :ProductKey, :RegisterType, :ProductSecret, :RegisterLimit, :OriginProductId, :PrivateCAName, :OriginUserId, :DeviceLimit, :ForbiddenStatus, :AppEUI
|
3629
3637
|
extend Gem::Deprecate
|
3630
|
-
deprecate :Appeui, :none,
|
3631
|
-
deprecate :Appeui=, :none,
|
3638
|
+
deprecate :Appeui, :none, 2024, 1
|
3639
|
+
deprecate :Appeui=, :none, 2024, 1
|
3632
3640
|
|
3633
3641
|
def initialize(productdescription=nil, encryptiontype=nil, region=nil, producttype=nil, format=nil, platform=nil, appeui=nil, modelid=nil, modelname=nil, productkey=nil, registertype=nil, productsecret=nil, registerlimit=nil, originproductid=nil, privatecaname=nil, originuserid=nil, devicelimit=nil, forbiddenstatus=nil, appeui=nil)
|
3634
3642
|
@ProductDescription = productdescription
|
@@ -4563,6 +4571,46 @@ module TencentCloud
|
|
4563
4571
|
end
|
4564
4572
|
end
|
4565
4573
|
|
4574
|
+
# UpdateOtaTaskStatus请求参数结构体
|
4575
|
+
class UpdateOtaTaskStatusRequest < TencentCloud::Common::AbstractModel
|
4576
|
+
# @param ProductId: 产品ID
|
4577
|
+
# @type ProductId: String
|
4578
|
+
# @param TaskId: 固件升级任务ID
|
4579
|
+
# @type TaskId: Integer
|
4580
|
+
# @param Status: 固件任务取消状态
|
4581
|
+
# @type Status: Integer
|
4582
|
+
|
4583
|
+
attr_accessor :ProductId, :TaskId, :Status
|
4584
|
+
|
4585
|
+
def initialize(productid=nil, taskid=nil, status=nil)
|
4586
|
+
@ProductId = productid
|
4587
|
+
@TaskId = taskid
|
4588
|
+
@Status = status
|
4589
|
+
end
|
4590
|
+
|
4591
|
+
def deserialize(params)
|
4592
|
+
@ProductId = params['ProductId']
|
4593
|
+
@TaskId = params['TaskId']
|
4594
|
+
@Status = params['Status']
|
4595
|
+
end
|
4596
|
+
end
|
4597
|
+
|
4598
|
+
# UpdateOtaTaskStatus返回参数结构体
|
4599
|
+
class UpdateOtaTaskStatusResponse < TencentCloud::Common::AbstractModel
|
4600
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4601
|
+
# @type RequestId: String
|
4602
|
+
|
4603
|
+
attr_accessor :RequestId
|
4604
|
+
|
4605
|
+
def initialize(requestid=nil)
|
4606
|
+
@RequestId = requestid
|
4607
|
+
end
|
4608
|
+
|
4609
|
+
def deserialize(params)
|
4610
|
+
@RequestId = params['RequestId']
|
4611
|
+
end
|
4612
|
+
end
|
4613
|
+
|
4566
4614
|
# UpdatePrivateCA请求参数结构体
|
4567
4615
|
class UpdatePrivateCARequest < TencentCloud::Common::AbstractModel
|
4568
4616
|
# @param CertName: CA证书名称
|
@@ -4756,16 +4804,19 @@ module TencentCloud
|
|
4756
4804
|
# @type FirmwareName: String
|
4757
4805
|
# @param FirmwareDescription: 固件描述
|
4758
4806
|
# @type FirmwareDescription: String
|
4807
|
+
# @param FirmwareUserDefined: 固件用户自定义配置信息
|
4808
|
+
# @type FirmwareUserDefined: String
|
4759
4809
|
|
4760
|
-
attr_accessor :ProductId, :FirmwareVersion, :Md5sum, :FileSize, :FirmwareName, :FirmwareDescription
|
4810
|
+
attr_accessor :ProductId, :FirmwareVersion, :Md5sum, :FileSize, :FirmwareName, :FirmwareDescription, :FirmwareUserDefined
|
4761
4811
|
|
4762
|
-
def initialize(productid=nil, firmwareversion=nil, md5sum=nil, filesize=nil, firmwarename=nil, firmwaredescription=nil)
|
4812
|
+
def initialize(productid=nil, firmwareversion=nil, md5sum=nil, filesize=nil, firmwarename=nil, firmwaredescription=nil, firmwareuserdefined=nil)
|
4763
4813
|
@ProductId = productid
|
4764
4814
|
@FirmwareVersion = firmwareversion
|
4765
4815
|
@Md5sum = md5sum
|
4766
4816
|
@FileSize = filesize
|
4767
4817
|
@FirmwareName = firmwarename
|
4768
4818
|
@FirmwareDescription = firmwaredescription
|
4819
|
+
@FirmwareUserDefined = firmwareuserdefined
|
4769
4820
|
end
|
4770
4821
|
|
4771
4822
|
def deserialize(params)
|
@@ -4775,6 +4826,7 @@ module TencentCloud
|
|
4775
4826
|
@FileSize = params['FileSize']
|
4776
4827
|
@FirmwareName = params['FirmwareName']
|
4777
4828
|
@FirmwareDescription = params['FirmwareDescription']
|
4829
|
+
@FirmwareUserDefined = params['FirmwareUserDefined']
|
4778
4830
|
end
|
4779
4831
|
end
|
4780
4832
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-iotcloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.761
|
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-01-
|
11
|
+
date: 2024-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|