Class: TencentCloud::Weilingwith::V20230427::AddDeviceInfo

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20230427/models.rb

Overview

添加设备信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(productid = nil, sn = nil, parentwid = nil, keysource = nil) ⇒ AddDeviceInfo

Returns a new instance of AddDeviceInfo.



222
223
224
225
226
227
# File 'lib/v20230427/models.rb', line 222

def initialize(productid=nil, sn=nil, parentwid=nil, keysource=nil)
  @ProductId = productid
  @SN = sn
  @ParentWID = parentwid
  @KeySource = keysource
end

Instance Attribute Details

#KeySourceObject

Parameters:

  • ProductId:

    产品id

  • SN:

    设备sn序列号

  • ParentWID:

    父设备wid,不为空表示导入子设备

  • KeySource:

    密钥来源:0-使用产品密钥 1-使用设备特有的密钥



220
221
222
# File 'lib/v20230427/models.rb', line 220

def KeySource
  @KeySource
end

#ParentWIDObject

Parameters:

  • ProductId:

    产品id

  • SN:

    设备sn序列号

  • ParentWID:

    父设备wid,不为空表示导入子设备

  • KeySource:

    密钥来源:0-使用产品密钥 1-使用设备特有的密钥



220
221
222
# File 'lib/v20230427/models.rb', line 220

def ParentWID
  @ParentWID
end

#ProductIdObject

Parameters:

  • ProductId:

    产品id

  • SN:

    设备sn序列号

  • ParentWID:

    父设备wid,不为空表示导入子设备

  • KeySource:

    密钥来源:0-使用产品密钥 1-使用设备特有的密钥



220
221
222
# File 'lib/v20230427/models.rb', line 220

def ProductId
  @ProductId
end

#SNObject

Parameters:

  • ProductId:

    产品id

  • SN:

    设备sn序列号

  • ParentWID:

    父设备wid,不为空表示导入子设备

  • KeySource:

    密钥来源:0-使用产品密钥 1-使用设备特有的密钥



220
221
222
# File 'lib/v20230427/models.rb', line 220

def SN
  @SN
end

Instance Method Details

#deserialize(params) ⇒ Object



229
230
231
232
233
234
# File 'lib/v20230427/models.rb', line 229

def deserialize(params)
  @ProductId = params['ProductId']
  @SN = params['SN']
  @ParentWID = params['ParentWID']
  @KeySource = params['KeySource']
end