Class: TencentCloud::Cvm::V20170312::InstanceTypeConfig
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::InstanceTypeConfig
- Defined in:
- lib/v20170312/models.rb
Overview
描述实例机型配置信息
Instance Attribute Summary collapse
- #CPU ⇒ Object
- #FPGA ⇒ Object
- #GPU ⇒ Object
- #GpuCount ⇒ Object
- #InstanceFamily ⇒ Object
- #InstanceType ⇒ Object
- #Memory ⇒ Object
- #Zone ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(zone = nil, instancetype = nil, instancefamily = nil, gpu = nil, cpu = nil, memory = nil, fpga = nil, gpucount = nil) ⇒ InstanceTypeConfig
constructor
A new instance of InstanceTypeConfig.
Constructor Details
#initialize(zone = nil, instancetype = nil, instancefamily = nil, gpu = nil, cpu = nil, memory = nil, fpga = nil, gpucount = nil) ⇒ InstanceTypeConfig
Returns a new instance of InstanceTypeConfig.
5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 |
# File 'lib/v20170312/models.rb', line 5380 def initialize(zone=nil, instancetype=nil, instancefamily=nil, gpu=nil, cpu=nil, memory=nil, fpga=nil, gpucount=nil) @Zone = zone @InstanceType = instancetype @InstanceFamily = instancefamily @GPU = gpu @CPU = cpu @Memory = memory @FPGA = fpga @GpuCount = gpucount end |
Instance Attribute Details
#CPU ⇒ Object
5378 5379 5380 |
# File 'lib/v20170312/models.rb', line 5378 def CPU @CPU end |
#FPGA ⇒ Object
5378 5379 5380 |
# File 'lib/v20170312/models.rb', line 5378 def FPGA @FPGA end |
#GPU ⇒ Object
5378 5379 5380 |
# File 'lib/v20170312/models.rb', line 5378 def GPU @GPU end |
#GpuCount ⇒ Object
5378 5379 5380 |
# File 'lib/v20170312/models.rb', line 5378 def GpuCount @GpuCount end |
#InstanceFamily ⇒ Object
5378 5379 5380 |
# File 'lib/v20170312/models.rb', line 5378 def InstanceFamily @InstanceFamily end |
#InstanceType ⇒ Object
5378 5379 5380 |
# File 'lib/v20170312/models.rb', line 5378 def InstanceType @InstanceType end |
#Memory ⇒ Object
5378 5379 5380 |
# File 'lib/v20170312/models.rb', line 5378 def Memory @Memory end |
#Zone ⇒ Object
5378 5379 5380 |
# File 'lib/v20170312/models.rb', line 5378 def Zone @Zone end |
Instance Method Details
#deserialize(params) ⇒ Object
5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 |
# File 'lib/v20170312/models.rb', line 5391 def deserialize(params) @Zone = params['Zone'] @InstanceType = params['InstanceType'] @InstanceFamily = params['InstanceFamily'] @GPU = params['GPU'] @CPU = params['CPU'] @Memory = params['Memory'] @FPGA = params['FPGA'] @GpuCount = params['GpuCount'] end |