Class: TencentCloud::Cdc::V20201214::DescribeDedicatedClusterHostsResponse

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

Overview

DescribeDedicatedClusterHosts返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hostinfoset = nil, totalcount = nil, requestid = nil) ⇒ DescribeDedicatedClusterHostsResponse

Returns a new instance of DescribeDedicatedClusterHostsResponse.



1096
1097
1098
1099
1100
# File 'lib/v20201214/models.rb', line 1096

def initialize(hostinfoset=nil, totalcount=nil, requestid=nil)
  @HostInfoSet = hostinfoset
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#HostInfoSetObject

Parameters:

  • HostInfoSet:

    宿主机信息

  • TotalCount:

    宿主机总数

  • RequestId:

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



1094
1095
1096
# File 'lib/v20201214/models.rb', line 1094

def HostInfoSet
  @HostInfoSet
end

#RequestIdObject

Parameters:

  • HostInfoSet:

    宿主机信息

  • TotalCount:

    宿主机总数

  • RequestId:

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



1094
1095
1096
# File 'lib/v20201214/models.rb', line 1094

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • HostInfoSet:

    宿主机信息

  • TotalCount:

    宿主机总数

  • RequestId:

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



1094
1095
1096
# File 'lib/v20201214/models.rb', line 1094

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
# File 'lib/v20201214/models.rb', line 1102

def deserialize(params)
  unless params['HostInfoSet'].nil?
    @HostInfoSet = []
    params['HostInfoSet'].each do |i|
      hostinfo_tmp = HostInfo.new
      hostinfo_tmp.deserialize(i)
      @HostInfoSet << hostinfo_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end