Class: TencentCloud::Weilingwith::V20230427::CreateDeviceFailed

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, parentwid = nil, reason = nil, sn = nil) ⇒ CreateDeviceFailed

Returns a new instance of CreateDeviceFailed.



1584
1585
1586
1587
1588
1589
# File 'lib/v20230427/models.rb', line 1584

def initialize(productid=nil, parentwid=nil, reason=nil, sn=nil)
  @ProductId = productid
  @ParentWID = parentwid
  @Reason = reason
  @SN = sn
end

Instance Attribute Details

#ParentWIDObject

Parameters:

  • ProductId:

    产品id

  • ParentWID:

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

  • Reason:

    失败原因

  • SN:

    设备sn序列号



1582
1583
1584
# File 'lib/v20230427/models.rb', line 1582

def ParentWID
  @ParentWID
end

#ProductIdObject

Parameters:

  • ProductId:

    产品id

  • ParentWID:

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

  • Reason:

    失败原因

  • SN:

    设备sn序列号



1582
1583
1584
# File 'lib/v20230427/models.rb', line 1582

def ProductId
  @ProductId
end

#ReasonObject

Parameters:

  • ProductId:

    产品id

  • ParentWID:

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

  • Reason:

    失败原因

  • SN:

    设备sn序列号



1582
1583
1584
# File 'lib/v20230427/models.rb', line 1582

def Reason
  @Reason
end

#SNObject

Parameters:

  • ProductId:

    产品id

  • ParentWID:

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

  • Reason:

    失败原因

  • SN:

    设备sn序列号



1582
1583
1584
# File 'lib/v20230427/models.rb', line 1582

def SN
  @SN
end

Instance Method Details

#deserialize(params) ⇒ Object



1591
1592
1593
1594
1595
1596
# File 'lib/v20230427/models.rb', line 1591

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