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.
18873 18874 18875 18876 18877 18878 |
# File 'lib/v20180525/models.rb', line 18873 def initialize(type=nil, cpu=nil, memory=nil, gpu=nil) @Type = type @Cpu = cpu @Memory = memory @Gpu = gpu end |
Instance Attribute Details
#Cpu ⇒ Object
18871 18872 18873 |
# File 'lib/v20180525/models.rb', line 18871 def Cpu @Cpu end |
#Gpu ⇒ Object
18871 18872 18873 |
# File 'lib/v20180525/models.rb', line 18871 def Gpu @Gpu end |
#Memory ⇒ Object
18871 18872 18873 |
# File 'lib/v20180525/models.rb', line 18871 def Memory @Memory end |
#Type ⇒ Object
18871 18872 18873 |
# File 'lib/v20180525/models.rb', line 18871 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
18880 18881 18882 18883 18884 18885 |
# File 'lib/v20180525/models.rb', line 18880 def deserialize(params) @Type = params['Type'] @Cpu = params['Cpu'] @Memory = params['Memory'] @Gpu = params['Gpu'] end |