lib/v20210408/models.rb in tencentcloud-sdk-iotcloud-3.0.760 vs lib/v20210408/models.rb in tencentcloud-sdk-iotcloud-3.0.761

- old
+ new

@@ -58,23 +58,26 @@ # @type FileSize: Integer # @param DeviceNames: 需要升级的设备名称列表 # @type DeviceNames: Array # @param TimeoutInterval: 固件升级任务,默认超时时间。 最小取值60秒,最大为3600秒 # @type TimeoutInterval: Integer + # @param Type: 固件升级任务类型,默认静态升级值为空或1,动态升级值为7。 + # @type Type: Integer - attr_accessor :ProductId, :FirmwareVersion, :FirmwareOriVersion, :UpgradeMethod, :FileName, :FileMd5, :FileSize, :DeviceNames, :TimeoutInterval + attr_accessor :ProductId, :FirmwareVersion, :FirmwareOriVersion, :UpgradeMethod, :FileName, :FileMd5, :FileSize, :DeviceNames, :TimeoutInterval, :Type - def initialize(productid=nil, firmwareversion=nil, firmwareoriversion=nil, upgrademethod=nil, filename=nil, filemd5=nil, filesize=nil, devicenames=nil, timeoutinterval=nil) + def initialize(productid=nil, firmwareversion=nil, firmwareoriversion=nil, upgrademethod=nil, filename=nil, filemd5=nil, filesize=nil, devicenames=nil, timeoutinterval=nil, type=nil) @ProductId = productid @FirmwareVersion = firmwareversion @FirmwareOriVersion = firmwareoriversion @UpgradeMethod = upgrademethod @FileName = filename @FileMd5 = filemd5 @FileSize = filesize @DeviceNames = devicenames @TimeoutInterval = timeoutinterval + @Type = type end def deserialize(params) @ProductId = params['ProductId'] @FirmwareVersion = params['FirmwareVersion'] @@ -83,10 +86,11 @@ @FileName = params['FileName'] @FileMd5 = params['FileMd5'] @FileSize = params['FileSize'] @DeviceNames = params['DeviceNames'] @TimeoutInterval = params['TimeoutInterval'] + @Type = params['Type'] end end # BatchUpdateFirmware返回参数结构体 class BatchUpdateFirmwareResponse < TencentCloud::Common::AbstractModel @@ -253,12 +257,12 @@ # @param UserId: 腾讯云账号 # @type UserId: String attr_accessor :Content, :DeviceName, :ProductId, :RequestId, :Result, :Scene, :Time, :Userid, :UserId extend Gem::Deprecate - deprecate :Userid, :none, 2023, 11 - deprecate :Userid=, :none, 2023, 11 + deprecate :Userid, :none, 2024, 1 + deprecate :Userid=, :none, 2024, 1 def initialize(content=nil, devicename=nil, productid=nil, requestid=nil, result=nil, scene=nil, time=nil, userid=nil, userid=nil) @Content = content @DeviceName = devicename @ProductId = productid @@ -1248,12 +1252,12 @@ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String 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 extend Gem::Deprecate - deprecate :NbiotDeviceID, :none, 2023, 11 - deprecate :NbiotDeviceID=, :none, 2023, 11 + deprecate :NbiotDeviceID, :none, 2024, 1 + deprecate :NbiotDeviceID=, :none, 2024, 1 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) @DeviceName = devicename @Online = online @LoginTime = logintime @@ -2566,12 +2570,12 @@ # @param NBIoTDeviceID: NB IOT运营商处的DeviceID # @type NBIoTDeviceID: String 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 extend Gem::Deprecate - deprecate :NbiotDeviceID, :none, 2023, 11 - deprecate :NbiotDeviceID=, :none, 2023, 11 + deprecate :NbiotDeviceID, :none, 2024, 1 + deprecate :NbiotDeviceID=, :none, 2024, 1 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) @DeviceName = devicename @Online = online @LoginTime = logintime @@ -2876,25 +2880,29 @@ # @type FirmwareVersion: String # @param FirmwareName: 固件名称。 # @type FirmwareName: String # @param FirmwareDescription: 固件描述 # @type FirmwareDescription: String + # @param FirmwareUserDefined: 固件用户自定义配置信息 + # @type FirmwareUserDefined: String - attr_accessor :ProductId, :FirmwareVersion, :FirmwareName, :FirmwareDescription + attr_accessor :ProductId, :FirmwareVersion, :FirmwareName, :FirmwareDescription, :FirmwareUserDefined - def initialize(productid=nil, firmwareversion=nil, firmwarename=nil, firmwaredescription=nil) + def initialize(productid=nil, firmwareversion=nil, firmwarename=nil, firmwaredescription=nil, firmwareuserdefined=nil) @ProductId = productid @FirmwareVersion = firmwareversion @FirmwareName = firmwarename @FirmwareDescription = firmwaredescription + @FirmwareUserDefined = firmwareuserdefined end def deserialize(params) @ProductId = params['ProductId'] @FirmwareVersion = params['FirmwareVersion'] @FirmwareName = params['FirmwareName'] @FirmwareDescription = params['FirmwareDescription'] + @FirmwareUserDefined = params['FirmwareUserDefined'] end end # EditFirmware返回参数结构体 class EditFirmwareResponse < TencentCloud::Common::AbstractModel @@ -3625,12 +3633,12 @@ # @param AppEUI: LoRa产品运营侧APPEUI,只有LoRa产品需要填写 # @type AppEUI: String attr_accessor :ProductDescription, :EncryptionType, :Region, :ProductType, :Format, :Platform, :Appeui, :ModelId, :ModelName, :ProductKey, :RegisterType, :ProductSecret, :RegisterLimit, :OriginProductId, :PrivateCAName, :OriginUserId, :DeviceLimit, :ForbiddenStatus, :AppEUI extend Gem::Deprecate - deprecate :Appeui, :none, 2023, 11 - deprecate :Appeui=, :none, 2023, 11 + deprecate :Appeui, :none, 2024, 1 + deprecate :Appeui=, :none, 2024, 1 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) @ProductDescription = productdescription @EncryptionType = encryptiontype @Region = region @@ -4561,10 +4569,50 @@ def deserialize(params) @RequestId = params['RequestId'] end end + # UpdateOtaTaskStatus请求参数结构体 + class UpdateOtaTaskStatusRequest < TencentCloud::Common::AbstractModel + # @param ProductId: 产品ID + # @type ProductId: String + # @param TaskId: 固件升级任务ID + # @type TaskId: Integer + # @param Status: 固件任务取消状态 + # @type Status: Integer + + attr_accessor :ProductId, :TaskId, :Status + + def initialize(productid=nil, taskid=nil, status=nil) + @ProductId = productid + @TaskId = taskid + @Status = status + end + + def deserialize(params) + @ProductId = params['ProductId'] + @TaskId = params['TaskId'] + @Status = params['Status'] + end + end + + # UpdateOtaTaskStatus返回参数结构体 + class UpdateOtaTaskStatusResponse < TencentCloud::Common::AbstractModel + # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + # @type RequestId: String + + attr_accessor :RequestId + + def initialize(requestid=nil) + @RequestId = requestid + end + + def deserialize(params) + @RequestId = params['RequestId'] + end + end + # UpdatePrivateCA请求参数结构体 class UpdatePrivateCARequest < TencentCloud::Common::AbstractModel # @param CertName: CA证书名称 # @type CertName: String # @param CertText: CA证书内容 @@ -4754,28 +4802,32 @@ # @type FileSize: Integer # @param FirmwareName: 固件名称 # @type FirmwareName: String # @param FirmwareDescription: 固件描述 # @type FirmwareDescription: String + # @param FirmwareUserDefined: 固件用户自定义配置信息 + # @type FirmwareUserDefined: String - attr_accessor :ProductId, :FirmwareVersion, :Md5sum, :FileSize, :FirmwareName, :FirmwareDescription + attr_accessor :ProductId, :FirmwareVersion, :Md5sum, :FileSize, :FirmwareName, :FirmwareDescription, :FirmwareUserDefined - def initialize(productid=nil, firmwareversion=nil, md5sum=nil, filesize=nil, firmwarename=nil, firmwaredescription=nil) + def initialize(productid=nil, firmwareversion=nil, md5sum=nil, filesize=nil, firmwarename=nil, firmwaredescription=nil, firmwareuserdefined=nil) @ProductId = productid @FirmwareVersion = firmwareversion @Md5sum = md5sum @FileSize = filesize @FirmwareName = firmwarename @FirmwareDescription = firmwaredescription + @FirmwareUserDefined = firmwareuserdefined end def deserialize(params) @ProductId = params['ProductId'] @FirmwareVersion = params['FirmwareVersion'] @Md5sum = params['Md5sum'] @FileSize = params['FileSize'] @FirmwareName = params['FirmwareName'] @FirmwareDescription = params['FirmwareDescription'] + @FirmwareUserDefined = params['FirmwareUserDefined'] end end # UploadFirmware返回参数结构体 class UploadFirmwareResponse < TencentCloud::Common::AbstractModel