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.



17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
# File 'lib/v20180525/models.rb', line 17580

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:

  • Rate:

    使用率

  • Num:

    预留券数量

  • CPU:

    核数

  • Memory:

    内存,单位:GiB

  • Type:

    预留券类型, 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

  • GpuNum:

    GPU 卡数

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点 ID

  • PodNum:

    Pod 数量



17578
17579
17580
# File 'lib/v20180525/models.rb', line 17578

def ClusterId
  @ClusterId
end

#CPUObject

Parameters:

  • Rate:

    使用率

  • Num:

    预留券数量

  • CPU:

    核数

  • Memory:

    内存,单位:GiB

  • Type:

    预留券类型, 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

  • GpuNum:

    GPU 卡数

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点 ID

  • PodNum:

    Pod 数量



17578
17579
17580
# File 'lib/v20180525/models.rb', line 17578

def CPU
  @CPU
end

#GpuNumObject

Parameters:

  • Rate:

    使用率

  • Num:

    预留券数量

  • CPU:

    核数

  • Memory:

    内存,单位:GiB

  • Type:

    预留券类型, 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

  • GpuNum:

    GPU 卡数

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点 ID

  • PodNum:

    Pod 数量



17578
17579
17580
# File 'lib/v20180525/models.rb', line 17578

def GpuNum
  @GpuNum
end

#MemoryObject

Parameters:

  • Rate:

    使用率

  • Num:

    预留券数量

  • CPU:

    核数

  • Memory:

    内存,单位:GiB

  • Type:

    预留券类型, 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

  • GpuNum:

    GPU 卡数

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点 ID

  • PodNum:

    Pod 数量



17578
17579
17580
# File 'lib/v20180525/models.rb', line 17578

def Memory
  @Memory
end

#NodeNameObject

Parameters:

  • Rate:

    使用率

  • Num:

    预留券数量

  • CPU:

    核数

  • Memory:

    内存,单位:GiB

  • Type:

    预留券类型, 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

  • GpuNum:

    GPU 卡数

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点 ID

  • PodNum:

    Pod 数量



17578
17579
17580
# File 'lib/v20180525/models.rb', line 17578

def NodeName
  @NodeName
end

#NumObject

Parameters:

  • Rate:

    使用率

  • Num:

    预留券数量

  • CPU:

    核数

  • Memory:

    内存,单位:GiB

  • Type:

    预留券类型, 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

  • GpuNum:

    GPU 卡数

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点 ID

  • PodNum:

    Pod 数量



17578
17579
17580
# File 'lib/v20180525/models.rb', line 17578

def Num
  @Num
end

#PodNumObject

Parameters:

  • Rate:

    使用率

  • Num:

    预留券数量

  • CPU:

    核数

  • Memory:

    内存,单位:GiB

  • Type:

    预留券类型, 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

  • GpuNum:

    GPU 卡数

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点 ID

  • PodNum:

    Pod 数量



17578
17579
17580
# File 'lib/v20180525/models.rb', line 17578

def PodNum
  @PodNum
end

#RateObject

Parameters:

  • Rate:

    使用率

  • Num:

    预留券数量

  • CPU:

    核数

  • Memory:

    内存,单位:GiB

  • Type:

    预留券类型, 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

  • GpuNum:

    GPU 卡数

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点 ID

  • PodNum:

    Pod 数量



17578
17579
17580
# File 'lib/v20180525/models.rb', line 17578

def Rate
  @Rate
end

#TypeObject

Parameters:

  • Rate:

    使用率

  • Num:

    预留券数量

  • CPU:

    核数

  • Memory:

    内存,单位:GiB

  • Type:

    预留券类型, 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

  • GpuNum:

    GPU 卡数

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点 ID

  • PodNum:

    Pod 数量



17578
17579
17580
# File 'lib/v20180525/models.rb', line 17578

def Type
  @Type
end

#ZoneObject

Parameters:

  • Rate:

    使用率

  • Num:

    预留券数量

  • CPU:

    核数

  • Memory:

    内存,单位:GiB

  • Type:

    预留券类型, 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

  • GpuNum:

    GPU 卡数

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点 ID

  • PodNum:

    Pod 数量



17578
17579
17580
# File 'lib/v20180525/models.rb', line 17578

def Zone
  @Zone
end

Instance Method Details

#deserialize(params) ⇒ Object



17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
# File 'lib/v20180525/models.rb', line 17593

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