Class: TencentCloud::Cwp::V20180228::DescribeMachineListResponse

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

Overview

DescribeMachineList返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribeMachineListResponse.



17532
17533
17534
17535
17536
# File 'lib/v20180228/models.rb', line 17532

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。



17530
17531
17532
# File 'lib/v20180228/models.rb', line 17530

def Machines
  @Machines
end

#RequestIdObject

Parameters:

  • Machines:

    主机列表

  • TotalCount:

    主机数量

  • RequestId:

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



17530
17531
17532
# File 'lib/v20180228/models.rb', line 17530

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • Machines:

    主机列表

  • TotalCount:

    主机数量

  • RequestId:

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



17530
17531
17532
# File 'lib/v20180228/models.rb', line 17530

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
# File 'lib/v20180228/models.rb', line 17538

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