Class: TencentCloud::Tke::V20180525::ReservedInstanceSpec

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

Overview

预留券规格

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, cpu = nil, memory = nil, gpu = nil) ⇒ ReservedInstanceSpec

Returns a new instance of ReservedInstanceSpec.



17540
17541
17542
17543
17544
17545
# File 'lib/v20180525/models.rb', line 17540

def initialize(type=nil, cpu=nil, memory=nil, gpu=nil)
  @Type = type
  @Cpu = cpu
  @Memory = memory
  @Gpu = gpu
end

Instance Attribute Details

#CpuObject

Parameters:

  • Type:

    资源类型:common、amd、v100、t4、a10*gnv4、a10*gnv4v、a10*pnv4、windows-common、windows-amd,common表示通用类型。

  • Cpu:

    核数

  • Memory:

    内存,单位:GiB

  • Gpu:

    GPU卡数,当Type为GPU类型时设置。



17538
17539
17540
# File 'lib/v20180525/models.rb', line 17538

def Cpu
  @Cpu
end

#GpuObject

Parameters:

  • Type:

    资源类型:common、amd、v100、t4、a10*gnv4、a10*gnv4v、a10*pnv4、windows-common、windows-amd,common表示通用类型。

  • Cpu:

    核数

  • Memory:

    内存,单位:GiB

  • Gpu:

    GPU卡数,当Type为GPU类型时设置。



17538
17539
17540
# File 'lib/v20180525/models.rb', line 17538

def Gpu
  @Gpu
end

#MemoryObject

Parameters:

  • Type:

    资源类型:common、amd、v100、t4、a10*gnv4、a10*gnv4v、a10*pnv4、windows-common、windows-amd,common表示通用类型。

  • Cpu:

    核数

  • Memory:

    内存,单位:GiB

  • Gpu:

    GPU卡数,当Type为GPU类型时设置。



17538
17539
17540
# File 'lib/v20180525/models.rb', line 17538

def Memory
  @Memory
end

#TypeObject

Parameters:

  • Type:

    资源类型:common、amd、v100、t4、a10*gnv4、a10*gnv4v、a10*pnv4、windows-common、windows-amd,common表示通用类型。

  • Cpu:

    核数

  • Memory:

    内存,单位:GiB

  • Gpu:

    GPU卡数,当Type为GPU类型时设置。



17538
17539
17540
# File 'lib/v20180525/models.rb', line 17538

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



17547
17548
17549
17550
17551
17552
# File 'lib/v20180525/models.rb', line 17547

def deserialize(params)
  @Type = params['Type']
  @Cpu = params['Cpu']
  @Memory = params['Memory']
  @Gpu = params['Gpu']
end