Class: TencentCloud::Cwp::V20180228::DescribeMachinesResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::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
17923 17924 17925 17926 17927 |
# File 'lib/v20180228/models.rb', line 17923 def initialize(machines=nil, totalcount=nil, requestid=nil) @Machines = machines @TotalCount = totalcount @RequestId = requestid end |
Instance Attribute Details
#Machines ⇒ Object
17921 17922 17923 |
# File 'lib/v20180228/models.rb', line 17921 def Machines @Machines end |
#RequestId ⇒ Object
17921 17922 17923 |
# File 'lib/v20180228/models.rb', line 17921 def RequestId @RequestId end |
#TotalCount ⇒ Object
17921 17922 17923 |
# File 'lib/v20180228/models.rb', line 17921 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 |
# File 'lib/v20180228/models.rb', line 17929 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 |