Class: TencentCloud::Cvm::V20170312::StorageBlock

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20170312/models.rb

Overview

HDD的本地存储信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, minsize = nil, maxsize = nil) ⇒ StorageBlock

Returns a new instance of StorageBlock.



8411
8412
8413
8414
8415
# File 'lib/v20170312/models.rb', line 8411

def initialize(type=nil, minsize=nil, maxsize=nil)
  @Type = type
  @MinSize = minsize
  @MaxSize = maxsize
end

Instance Attribute Details

#MaxSize ⇒ Object

Parameters:

  • Type: —

    HDD本地存储类型,值为:LOCAL_PRO.

  • MinSize: —

    HDD本地存储的最小容量。单位:GiB。

  • MaxSize: —

    HDD本地存储的最大容量。单位:GiB。



8409
8410
8411
# File 'lib/v20170312/models.rb', line 8409

def MaxSize
  @MaxSize
end

#MinSize ⇒ Object

Parameters:

  • Type: —

    HDD本地存储类型,值为:LOCAL_PRO.

  • MinSize: —

    HDD本地存储的最小容量。单位:GiB。

  • MaxSize: —

    HDD本地存储的最大容量。单位:GiB。



8409
8410
8411
# File 'lib/v20170312/models.rb', line 8409

def MinSize
  @MinSize
end

#Type ⇒ Object

Parameters:

  • Type: —

    HDD本地存储类型,值为:LOCAL_PRO.

  • MinSize: —

    HDD本地存储的最小容量。单位:GiB。

  • MaxSize: —

    HDD本地存储的最大容量。单位:GiB。



8409
8410
8411
# File 'lib/v20170312/models.rb', line 8409

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



8417
8418
8419
8420
8421
# File 'lib/v20170312/models.rb', line 8417

def deserialize(params)
  @Type = params['Type']
  @MinSize = params['MinSize']
  @MaxSize = params['MaxSize']
end