Class: TencentCloud::Tke::V20180525::DescribePodsBySpecRequest

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(cpu = nil, memory = nil, gpunum = nil, zone = nil, clusterid = nil, nodename = nil, offset = nil, limit = nil, filters = nil) ⇒ DescribePodsBySpecRequest

Returns a new instance of DescribePodsBySpecRequest.



8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
# File 'lib/v20180525/models.rb', line 8393

def initialize(cpu=nil, memory=nil, gpunum=nil, zone=nil, clusterid=nil, nodename=nil, offset=nil, limit=nil, filters=nil)
  @Cpu = cpu
  @Memory = memory
  @GpuNum = gpunum
  @Zone = zone
  @ClusterId = clusterid
  @NodeName = nodename
  @Offset = offset
  @Limit = limit
  @Filters = filters
end

Instance Attribute Details

#ClusterIdObject

pod-not-deduct 按照**【上个周期未抵扣的Pod**】进行过滤。Values可不设置。 必选:否



8391
8392
8393
# File 'lib/v20180525/models.rb', line 8391

def ClusterId
  @ClusterId
end

#CpuObject

pod-not-deduct 按照**【上个周期未抵扣的Pod**】进行过滤。Values可不设置。 必选:否



8391
8392
8393
# File 'lib/v20180525/models.rb', line 8391

def Cpu
  @Cpu
end

#FiltersObject

pod-not-deduct 按照**【上个周期未抵扣的Pod**】进行过滤。Values可不设置。 必选:否



8391
8392
8393
# File 'lib/v20180525/models.rb', line 8391

def Filters
  @Filters
end

#GpuNumObject

pod-not-deduct 按照**【上个周期未抵扣的Pod**】进行过滤。Values可不设置。 必选:否



8391
8392
8393
# File 'lib/v20180525/models.rb', line 8391

def GpuNum
  @GpuNum
end

#LimitObject

pod-not-deduct 按照**【上个周期未抵扣的Pod**】进行过滤。Values可不设置。 必选:否



8391
8392
8393
# File 'lib/v20180525/models.rb', line 8391

def Limit
  @Limit
end

#MemoryObject

pod-not-deduct 按照**【上个周期未抵扣的Pod**】进行过滤。Values可不设置。 必选:否



8391
8392
8393
# File 'lib/v20180525/models.rb', line 8391

def Memory
  @Memory
end

#NodeNameObject

pod-not-deduct 按照**【上个周期未抵扣的Pod**】进行过滤。Values可不设置。 必选:否



8391
8392
8393
# File 'lib/v20180525/models.rb', line 8391

def NodeName
  @NodeName
end

#OffsetObject

pod-not-deduct 按照**【上个周期未抵扣的Pod**】进行过滤。Values可不设置。 必选:否



8391
8392
8393
# File 'lib/v20180525/models.rb', line 8391

def Offset
  @Offset
end

#ZoneObject

pod-not-deduct 按照**【上个周期未抵扣的Pod**】进行过滤。Values可不设置。 必选:否



8391
8392
8393
# File 'lib/v20180525/models.rb', line 8391

def Zone
  @Zone
end

Instance Method Details

#deserialize(params) ⇒ Object



8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
# File 'lib/v20180525/models.rb', line 8405

def deserialize(params)
  @Cpu = params['Cpu']
  @Memory = params['Memory']
  @GpuNum = params['GpuNum']
  @Zone = params['Zone']
  @ClusterId = params['ClusterId']
  @NodeName = params['NodeName']
  @Offset = params['Offset']
  @Limit = params['Limit']
  unless params['Filters'].nil?
    @Filters = []
    params['Filters'].each do |i|
      filter_tmp = Filter.new
      filter_tmp.deserialize(i)
      @Filters << filter_tmp
    end
  end
end