Class: TencentCloud::Gse::V20191112::InstanceTypeInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Gse::V20191112::InstanceTypeInfo
- Defined in:
- lib/v20191112/models.rb
Overview
服务器实例类型信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(typename = nil, instancetype = nil, cpu = nil, memory = nil, networkcard = nil) ⇒ InstanceTypeInfo
constructor
A new instance of InstanceTypeInfo.
Constructor Details
#initialize(typename = nil, instancetype = nil, cpu = nil, memory = nil, networkcard = nil) ⇒ InstanceTypeInfo
Returns a new instance of InstanceTypeInfo.
4157 4158 4159 4160 4161 4162 4163 |
# File 'lib/v20191112/models.rb', line 4157 def initialize(typename=nil, instancetype=nil, cpu=nil, memory=nil, networkcard=nil) @TypeName = typename @InstanceType = instancetype @Cpu = cpu @Memory = memory @NetworkCard = networkcard end |
Instance Attribute Details
#Cpu ⇒ Object
4155 4156 4157 |
# File 'lib/v20191112/models.rb', line 4155 def Cpu @Cpu end |
#InstanceType ⇒ Object
4155 4156 4157 |
# File 'lib/v20191112/models.rb', line 4155 def InstanceType @InstanceType end |
#Memory ⇒ Object
4155 4156 4157 |
# File 'lib/v20191112/models.rb', line 4155 def Memory @Memory end |
#NetworkCard ⇒ Object
4155 4156 4157 |
# File 'lib/v20191112/models.rb', line 4155 def NetworkCard @NetworkCard end |
#TypeName ⇒ Object
4155 4156 4157 |
# File 'lib/v20191112/models.rb', line 4155 def TypeName @TypeName end |
Instance Method Details
#deserialize(params) ⇒ Object
4165 4166 4167 4168 4169 4170 4171 |
# File 'lib/v20191112/models.rb', line 4165 def deserialize(params) @TypeName = params['TypeName'] @InstanceType = params['InstanceType'] @Cpu = params['Cpu'] @Memory = params['Memory'] @NetworkCard = params['NetworkCard'] end |