Class: TencentCloud::Tke::V20180525::ReservedInstanceUtilizationRate

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

Overview

预留券的使用率信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rate = nil, num = nil, cpu = nil, memory = nil, type = nil, gpunum = nil, zone = nil, clusterid = nil, nodename = nil, podnum = nil) ⇒ ReservedInstanceUtilizationRate

Returns a new instance of ReservedInstanceUtilizationRate.



19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
# File 'lib/v20180525/models.rb', line 19333

def initialize(rate=nil, num=nil, cpu=nil, memory=nil, type=nil, gpunum=nil, zone=nil, clusterid=nil, nodename=nil, podnum=nil)
  @Rate = rate
  @Num = num
  @CPU = cpu
  @Memory = memory
  @Type = type
  @GpuNum = gpunum
  @Zone = zone
  @ClusterId = clusterid
  @NodeName = nodename
  @PodNum = podnum
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • 使用率

  • 预留券数量

  • 核数

  • 内存,单位:GiB

  • 预留券类型, common:CPU通用,amd:AMD专用,windows-common: Windows容器 CPU通用,windows-amd:Windows容器 AMD专用,sa4,sa5,s7,s8,t4,v100,l20,l40,a10*gnv4,a10*gnv4v,a10*pnv4

  • GPU 卡数

  • 可用区

  • 集群 ID

  • 节点 ID

  • Pod 数量



19331
19332
19333
# File 'lib/v20180525/models.rb', line 19331

def ClusterId
  @ClusterId
end

#CPUObject

Parameters:

  • 使用率

  • 预留券数量

  • 核数

  • 内存,单位:GiB

  • 预留券类型, common:CPU通用,amd:AMD专用,windows-common: Windows容器 CPU通用,windows-amd:Windows容器 AMD专用,sa4,sa5,s7,s8,t4,v100,l20,l40,a10*gnv4,a10*gnv4v,a10*pnv4

  • GPU 卡数

  • 可用区

  • 集群 ID

  • 节点 ID

  • Pod 数量



19331
19332
19333
# File 'lib/v20180525/models.rb', line 19331

def CPU
  @CPU
end

#GpuNumObject

Parameters:

  • 使用率

  • 预留券数量

  • 核数

  • 内存,单位:GiB

  • 预留券类型, common:CPU通用,amd:AMD专用,windows-common: Windows容器 CPU通用,windows-amd:Windows容器 AMD专用,sa4,sa5,s7,s8,t4,v100,l20,l40,a10*gnv4,a10*gnv4v,a10*pnv4

  • GPU 卡数

  • 可用区

  • 集群 ID

  • 节点 ID

  • Pod 数量



19331
19332
19333
# File 'lib/v20180525/models.rb', line 19331

def GpuNum
  @GpuNum
end

#MemoryObject

Parameters:

  • 使用率

  • 预留券数量

  • 核数

  • 内存,单位:GiB

  • 预留券类型, common:CPU通用,amd:AMD专用,windows-common: Windows容器 CPU通用,windows-amd:Windows容器 AMD专用,sa4,sa5,s7,s8,t4,v100,l20,l40,a10*gnv4,a10*gnv4v,a10*pnv4

  • GPU 卡数

  • 可用区

  • 集群 ID

  • 节点 ID

  • Pod 数量



19331
19332
19333
# File 'lib/v20180525/models.rb', line 19331

def Memory
  @Memory
end

#NodeNameObject

Parameters:

  • 使用率

  • 预留券数量

  • 核数

  • 内存,单位:GiB

  • 预留券类型, common:CPU通用,amd:AMD专用,windows-common: Windows容器 CPU通用,windows-amd:Windows容器 AMD专用,sa4,sa5,s7,s8,t4,v100,l20,l40,a10*gnv4,a10*gnv4v,a10*pnv4

  • GPU 卡数

  • 可用区

  • 集群 ID

  • 节点 ID

  • Pod 数量



19331
19332
19333
# File 'lib/v20180525/models.rb', line 19331

def NodeName
  @NodeName
end

#NumObject

Parameters:

  • 使用率

  • 预留券数量

  • 核数

  • 内存,单位:GiB

  • 预留券类型, common:CPU通用,amd:AMD专用,windows-common: Windows容器 CPU通用,windows-amd:Windows容器 AMD专用,sa4,sa5,s7,s8,t4,v100,l20,l40,a10*gnv4,a10*gnv4v,a10*pnv4

  • GPU 卡数

  • 可用区

  • 集群 ID

  • 节点 ID

  • Pod 数量



19331
19332
19333
# File 'lib/v20180525/models.rb', line 19331

def Num
  @Num
end

#PodNumObject

Parameters:

  • 使用率

  • 预留券数量

  • 核数

  • 内存,单位:GiB

  • 预留券类型, common:CPU通用,amd:AMD专用,windows-common: Windows容器 CPU通用,windows-amd:Windows容器 AMD专用,sa4,sa5,s7,s8,t4,v100,l20,l40,a10*gnv4,a10*gnv4v,a10*pnv4

  • GPU 卡数

  • 可用区

  • 集群 ID

  • 节点 ID

  • Pod 数量



19331
19332
19333
# File 'lib/v20180525/models.rb', line 19331

def PodNum
  @PodNum
end

#RateObject

Parameters:

  • 使用率

  • 预留券数量

  • 核数

  • 内存,单位:GiB

  • 预留券类型, common:CPU通用,amd:AMD专用,windows-common: Windows容器 CPU通用,windows-amd:Windows容器 AMD专用,sa4,sa5,s7,s8,t4,v100,l20,l40,a10*gnv4,a10*gnv4v,a10*pnv4

  • GPU 卡数

  • 可用区

  • 集群 ID

  • 节点 ID

  • Pod 数量



19331
19332
19333
# File 'lib/v20180525/models.rb', line 19331

def Rate
  @Rate
end

#TypeObject

Parameters:

  • 使用率

  • 预留券数量

  • 核数

  • 内存,单位:GiB

  • 预留券类型, common:CPU通用,amd:AMD专用,windows-common: Windows容器 CPU通用,windows-amd:Windows容器 AMD专用,sa4,sa5,s7,s8,t4,v100,l20,l40,a10*gnv4,a10*gnv4v,a10*pnv4

  • GPU 卡数

  • 可用区

  • 集群 ID

  • 节点 ID

  • Pod 数量



19331
19332
19333
# File 'lib/v20180525/models.rb', line 19331

def Type
  @Type
end

#ZoneObject

Parameters:

  • 使用率

  • 预留券数量

  • 核数

  • 内存,单位:GiB

  • 预留券类型, common:CPU通用,amd:AMD专用,windows-common: Windows容器 CPU通用,windows-amd:Windows容器 AMD专用,sa4,sa5,s7,s8,t4,v100,l20,l40,a10*gnv4,a10*gnv4v,a10*pnv4

  • GPU 卡数

  • 可用区

  • 集群 ID

  • 节点 ID

  • Pod 数量



19331
19332
19333
# File 'lib/v20180525/models.rb', line 19331

def Zone
  @Zone
end

Instance Method Details

#deserialize(params) ⇒ Object



19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
# File 'lib/v20180525/models.rb', line 19346

def deserialize(params)
  @Rate = params['Rate']
  @Num = params['Num']
  @CPU = params['CPU']
  @Memory = params['Memory']
  @Type = params['Type']
  @GpuNum = params['GpuNum']
  @Zone = params['Zone']
  @ClusterId = params['ClusterId']
  @NodeName = params['NodeName']
  @PodNum = params['PodNum']
end