Class: TencentCloud::Mna::V20210119::GetHardwareListResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mna::V20210119::GetHardwareListResponse
- Defined in:
- lib/v20210119/models.rb
Overview
GetHardwareList返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(hardwareinfos = nil, length = nil, totalpage = nil, requestid = nil) ⇒ GetHardwareListResponse
constructor
A new instance of GetHardwareListResponse.
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
#HardwareInfos ⇒ Object
1625 1626 1627 |
# File 'lib/v20210119/models.rb', line 1625 def HardwareInfos @HardwareInfos end |
#Length ⇒ Object
1625 1626 1627 |
# File 'lib/v20210119/models.rb', line 1625 def Length @Length end |
#RequestId ⇒ Object
1625 1626 1627 |
# File 'lib/v20210119/models.rb', line 1625 def RequestId @RequestId end |
#TotalPage ⇒ Object
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 |