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.



8436
8437
8438
8439
8440
# File 'lib/v20180525/models.rb', line 8436

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。



8434
8435
8436
# File 'lib/v20180525/models.rb', line 8434

def PodSet
  @PodSet
end

#RequestIdObject

Parameters:

  • TotalCount:

    Pod 总数

  • PodSet:

    Pod 节点信息

  • RequestId:

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



8434
8435
8436
# File 'lib/v20180525/models.rb', line 8434

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    Pod 总数

  • PodSet:

    Pod 节点信息

  • RequestId:

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



8434
8435
8436
# File 'lib/v20180525/models.rb', line 8434

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
# File 'lib/v20180525/models.rb', line 8442

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