Class: TencentCloud::Cvm::V20170312::LocalDiskType

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

Overview

本地磁盘规格

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, partitiontype = nil, minsize = nil, maxsize = nil, required = nil) ⇒ LocalDiskType

Returns a new instance of LocalDiskType.



6278
6279
6280
6281
6282
6283
6284
# File 'lib/v20170312/models.rb', line 6278

def initialize(type=nil, partitiontype=nil, minsize=nil, maxsize=nil, required=nil)
  @Type = type
  @PartitionType = partitiontype
  @MinSize = minsize
  @MaxSize = maxsize
  @Required = required
end

Instance Attribute Details

#MaxSize ⇒ Object

Parameters:

  • Type: —

    本地磁盘类型。

  • PartitionType: —

    本地磁盘属性。

  • MinSize: —

    本地磁盘最小值。

  • MaxSize: —

    本地磁盘最大值。

  • Required: —

    购买时本地盘是否为必选。取值范围:

  • REQUIRED:表示必选
  • OPTIONAL:表示可选。


6276
6277
6278
# File 'lib/v20170312/models.rb', line 6276

def MaxSize
  @MaxSize
end

#MinSize ⇒ Object

Parameters:

  • Type: —

    本地磁盘类型。

  • PartitionType: —

    本地磁盘属性。

  • MinSize: —

    本地磁盘最小值。

  • MaxSize: —

    本地磁盘最大值。

  • Required: —

    购买时本地盘是否为必选。取值范围:

  • REQUIRED:表示必选
  • OPTIONAL:表示可选。


6276
6277
6278
# File 'lib/v20170312/models.rb', line 6276

def MinSize
  @MinSize
end

#PartitionType ⇒ Object

Parameters:

  • Type: —

    本地磁盘类型。

  • PartitionType: —

    本地磁盘属性。

  • MinSize: —

    本地磁盘最小值。

  • MaxSize: —

    本地磁盘最大值。

  • Required: —

    购买时本地盘是否为必选。取值范围:

  • REQUIRED:表示必选
  • OPTIONAL:表示可选。


6276
6277
6278
# File 'lib/v20170312/models.rb', line 6276

def PartitionType
  @PartitionType
end

#Required ⇒ Object

Parameters:



6276
6277
6278
# File 'lib/v20170312/models.rb', line 6276

def Required
  @Required
end

#Type ⇒ Object

Parameters:



6276
6277
6278
# File 'lib/v20170312/models.rb', line 6276

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



6286
6287
6288
6289
6290
6291
6292
# File 'lib/v20170312/models.rb', line 6286

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