Class: TencentCloud::Tke::V20180525::DescribePodsBySpecResponse

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

Overview

DescribePodsBySpec返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, podset = nil, requestid = nil) ⇒ DescribePodsBySpecResponse

Returns a new instance of DescribePodsBySpecResponse.



9100
9101
9102
9103
9104
# File 'lib/v20180525/models.rb', line 9100

def initialize(totalcount=nil, podset=nil, requestid=nil)
  @TotalCount = totalcount
  @PodSet = podset
  @RequestId = requestid
end

Instance Attribute Details

#PodSetObject

Parameters:

  • TotalCount:

    Pod 总数

  • PodSet:

    Pod 节点信息

  • RequestId:

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



9098
9099
9100
# File 'lib/v20180525/models.rb', line 9098

def PodSet
  @PodSet
end

#RequestIdObject

Parameters:

  • TotalCount:

    Pod 总数

  • PodSet:

    Pod 节点信息

  • RequestId:

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



9098
9099
9100
# File 'lib/v20180525/models.rb', line 9098

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    Pod 总数

  • PodSet:

    Pod 节点信息

  • RequestId:

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



9098
9099
9100
# File 'lib/v20180525/models.rb', line 9098

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
# File 'lib/v20180525/models.rb', line 9106

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['PodSet'].nil?
    @PodSet = []
    params['PodSet'].each do |i|
      podnodeinfo_tmp = PodNodeInfo.new
      podnodeinfo_tmp.deserialize(i)
      @PodSet << podnodeinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end