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.
17524 17525 17526 17527 17528 17529 |
# File 'lib/v20180525/models.rb', line 17524 def initialize(type=nil, cpu=nil, memory=nil, gpu=nil) @Type = type @Cpu = cpu @Memory = memory @Gpu = gpu end |
Instance Attribute Details
#Cpu ⇒ Object
17522 17523 17524 |
# File 'lib/v20180525/models.rb', line 17522 def Cpu @Cpu end |
#Gpu ⇒ Object
17522 17523 17524 |
# File 'lib/v20180525/models.rb', line 17522 def Gpu @Gpu end |
#Memory ⇒ Object
17522 17523 17524 |
# File 'lib/v20180525/models.rb', line 17522 def Memory @Memory end |
#Type ⇒ Object
17522 17523 17524 |
# File 'lib/v20180525/models.rb', line 17522 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
17531 17532 17533 17534 17535 17536 |
# File 'lib/v20180525/models.rb', line 17531 def deserialize(params) @Type = params['Type'] @Cpu = params['Cpu'] @Memory = params['Memory'] @Gpu = params['Gpu'] end |