Class: TencentCloud::Yunjing::V20180228::DescribeMachinesResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Yunjing::V20180228::DescribeMachinesResponse
- Defined in:
- lib/v20180228/models.rb
Overview
DescribeMachines返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(machines = nil, totalcount = nil, requestid = nil) ⇒ DescribeMachinesResponse
constructor
A new instance of DescribeMachinesResponse.
Constructor Details
#initialize(machines = nil, totalcount = nil, requestid = nil) ⇒ DescribeMachinesResponse
Returns a new instance of DescribeMachinesResponse.
2482 2483 2484 2485 2486 |
# File 'lib/v20180228/models.rb', line 2482 def initialize(machines=nil, totalcount=nil, requestid=nil) @Machines = machines @TotalCount = totalcount @RequestId = requestid end |
Instance Attribute Details
#Machines ⇒ Object
2480 2481 2482 |
# File 'lib/v20180228/models.rb', line 2480 def Machines @Machines end |
#RequestId ⇒ Object
2480 2481 2482 |
# File 'lib/v20180228/models.rb', line 2480 def RequestId @RequestId end |
#TotalCount ⇒ Object
2480 2481 2482 |
# File 'lib/v20180228/models.rb', line 2480 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 |
# File 'lib/v20180228/models.rb', line 2488 def deserialize(params) unless params['Machines'].nil? @Machines = [] params['Machines'].each do |i| machine_tmp = Machine.new machine_tmp.deserialize(i) @Machines << machine_tmp end end @TotalCount = params['TotalCount'] @RequestId = params['RequestId'] end |