Class: TencentCloud::Dbdc::V20201029::DescribeHostListResponse

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

Overview

DescribeHostList返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, hosts = nil, requestid = nil) ⇒ DescribeHostListResponse

Returns a new instance of DescribeHostListResponse.



222
223
224
225
226
# File 'lib/v20201029/models.rb', line 222

def initialize(totalcount=nil, hosts=nil, requestid=nil)
  @TotalCount = totalcount
  @Hosts = hosts
  @RequestId = requestid
end

Instance Attribute Details

#HostsObject

Parameters:

  • TotalCount:

    主机总数

  • Hosts:

    主机详情

  • RequestId:

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



220
221
222
# File 'lib/v20201029/models.rb', line 220

def Hosts
  @Hosts
end

#RequestIdObject

Parameters:

  • TotalCount:

    主机总数

  • Hosts:

    主机详情

  • RequestId:

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



220
221
222
# File 'lib/v20201029/models.rb', line 220

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    主机总数

  • Hosts:

    主机详情

  • RequestId:

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



220
221
222
# File 'lib/v20201029/models.rb', line 220

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



228
229
230
231
232
233
234
235
236
237
238
239
# File 'lib/v20201029/models.rb', line 228

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Hosts'].nil?
    @Hosts = []
    params['Hosts'].each do |i|
      hostdetail_tmp = HostDetail.new
      hostdetail_tmp.deserialize(i)
      @Hosts << hostdetail_tmp
    end
  end
  @RequestId = params['RequestId']
end