Class: TencentCloud::Cwp::V20180228::DescribeMachinesResponse

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

Overview

DescribeMachines返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(machines = nil, totalcount = nil, requestid = nil) ⇒ DescribeMachinesResponse

Returns a new instance of DescribeMachinesResponse.



17642
17643
17644
17645
17646
# File 'lib/v20180228/models.rb', line 17642

def initialize(machines=nil, totalcount=nil, requestid=nil)
  @Machines = machines
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#MachinesObject

Parameters:

  • Machines:

    主机列表

  • TotalCount:

    主机数量

  • RequestId:

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



17640
17641
17642
# File 'lib/v20180228/models.rb', line 17640

def Machines
  @Machines
end

#RequestIdObject

Parameters:

  • Machines:

    主机列表

  • TotalCount:

    主机数量

  • RequestId:

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



17640
17641
17642
# File 'lib/v20180228/models.rb', line 17640

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • Machines:

    主机列表

  • TotalCount:

    主机数量

  • RequestId:

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



17640
17641
17642
# File 'lib/v20180228/models.rb', line 17640

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
# File 'lib/v20180228/models.rb', line 17648

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