Class: TencentCloud::Cls::V20201016::DescribeMachineGroupsResponse

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

Overview

DescribeMachineGroups返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(machinegroups = nil, totalcount = nil, requestid = nil) ⇒ DescribeMachineGroupsResponse

Returns a new instance of DescribeMachineGroupsResponse.



9214
9215
9216
9217
9218
# File 'lib/v20201016/models.rb', line 9214

def initialize(machinegroups=nil, totalcount=nil, requestid=nil)
  @MachineGroups = machinegroups
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#MachineGroups ⇒ Object

Parameters:

  • MachineGroups: —

    机器组信息列表

  • TotalCount: —

    分页的总数目

  • RequestId: —

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



9212
9213
9214
# File 'lib/v20201016/models.rb', line 9212

def MachineGroups
  @MachineGroups
end

#RequestId ⇒ Object

Parameters:

  • MachineGroups: —

    机器组信息列表

  • TotalCount: —

    分页的总数目

  • RequestId: —

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



9212
9213
9214
# File 'lib/v20201016/models.rb', line 9212

def RequestId
  @RequestId
end

#TotalCount ⇒ Object

Parameters:

  • MachineGroups: —

    机器组信息列表

  • TotalCount: —

    分页的总数目

  • RequestId: —

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



9212
9213
9214
# File 'lib/v20201016/models.rb', line 9212

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
# File 'lib/v20201016/models.rb', line 9220

def deserialize(params)
  unless params['MachineGroups'].nil?
    @MachineGroups = []
    params['MachineGroups'].each do |i|
      machinegroupinfo_tmp = MachineGroupInfo.new
      machinegroupinfo_tmp.deserialize(i)
      @MachineGroups << machinegroupinfo_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end