Class: TencentCloud::Mna::V20210119::GetHardwareListResponse

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

Overview

GetHardwareList返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hardwareinfos = nil, length = nil, totalpage = nil, requestid = nil) ⇒ GetHardwareListResponse

Returns a new instance of GetHardwareListResponse.



1627
1628
1629
1630
1631
1632
# File 'lib/v20210119/models.rb', line 1627

def initialize(hardwareinfos=nil, length=nil, totalpage=nil, requestid=nil)
  @HardwareInfos = hardwareinfos
  @Length = length
  @TotalPage = totalpage
  @RequestId = requestid
end

Instance Attribute Details

#HardwareInfosObject

Parameters:

  • HardwareInfos:

    硬件信息列表

  • Length:

    硬件总数

  • TotalPage:

    总页数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1625
1626
1627
# File 'lib/v20210119/models.rb', line 1625

def HardwareInfos
  @HardwareInfos
end

#LengthObject

Parameters:

  • HardwareInfos:

    硬件信息列表

  • Length:

    硬件总数

  • TotalPage:

    总页数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1625
1626
1627
# File 'lib/v20210119/models.rb', line 1625

def Length
  @Length
end

#RequestIdObject

Parameters:

  • HardwareInfos:

    硬件信息列表

  • Length:

    硬件总数

  • TotalPage:

    总页数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1625
1626
1627
# File 'lib/v20210119/models.rb', line 1625

def RequestId
  @RequestId
end

#TotalPageObject

Parameters:

  • HardwareInfos:

    硬件信息列表

  • Length:

    硬件总数

  • TotalPage:

    总页数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1625
1626
1627
# File 'lib/v20210119/models.rb', line 1625

def TotalPage
  @TotalPage
end

Instance Method Details

#deserialize(params) ⇒ Object



1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
# File 'lib/v20210119/models.rb', line 1634

def deserialize(params)
  unless params['HardwareInfos'].nil?
    @HardwareInfos = []
    params['HardwareInfos'].each do |i|
      hardwareinfo_tmp = HardwareInfo.new
      hardwareinfo_tmp.deserialize(i)
      @HardwareInfos << hardwareinfo_tmp
    end
  end
  @Length = params['Length']
  @TotalPage = params['TotalPage']
  @RequestId = params['RequestId']
end