Class: TencentCloud::Tke::V20180525::ReservedInstanceSpec
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::ReservedInstanceSpec
- Defined in:
- lib/v20180525/models.rb
Overview
预留券规格
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, cpu = nil, memory = nil, gpu = nil) ⇒ ReservedInstanceSpec
constructor
A new instance of ReservedInstanceSpec.
Constructor Details
#initialize(type = nil, cpu = nil, memory = nil, gpu = nil) ⇒ ReservedInstanceSpec
Returns a new instance of ReservedInstanceSpec.
19293 19294 19295 19296 19297 19298 |
# File 'lib/v20180525/models.rb', line 19293 def initialize(type=nil, cpu=nil, memory=nil, gpu=nil) @Type = type @Cpu = cpu @Memory = memory @Gpu = gpu end |
Instance Attribute Details
#Cpu ⇒ Object
19291 19292 19293 |
# File 'lib/v20180525/models.rb', line 19291 def Cpu @Cpu end |
#Gpu ⇒ Object
19291 19292 19293 |
# File 'lib/v20180525/models.rb', line 19291 def Gpu @Gpu end |
#Memory ⇒ Object
19291 19292 19293 |
# File 'lib/v20180525/models.rb', line 19291 def Memory @Memory end |
#Type ⇒ Object
19291 19292 19293 |
# File 'lib/v20180525/models.rb', line 19291 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
19300 19301 19302 19303 19304 19305 |
# File 'lib/v20180525/models.rb', line 19300 def deserialize(params) @Type = params['Type'] @Cpu = params['Cpu'] @Memory = params['Memory'] @Gpu = params['Gpu'] end |