Class: TencentCloud::Batch::V20170312::LocalDiskType

Inherits:
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.



2972
2973
2974
2975
2976
2977
2978
# File 'lib/v20170312/models.rb', line 2972

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

#MaxSizeObject

Parameters:

  • Type:

    本地磁盘类型。

  • PartitionType:

    本地磁盘属性。

  • MinSize:

    本地磁盘最小值。

  • MaxSize:

    本地磁盘最大值。

  • Required:

    购买时本地盘是否为必选。取值范围:
    <li>REQUIRED:表示必选</li><li>OPTIONAL:表示可选。</li>



2970
2971
2972
# File 'lib/v20170312/models.rb', line 2970

def MaxSize
  @MaxSize
end

#MinSizeObject

Parameters:

  • Type:

    本地磁盘类型。

  • PartitionType:

    本地磁盘属性。

  • MinSize:

    本地磁盘最小值。

  • MaxSize:

    本地磁盘最大值。

  • Required:

    购买时本地盘是否为必选。取值范围:
    <li>REQUIRED:表示必选</li><li>OPTIONAL:表示可选。</li>



2970
2971
2972
# File 'lib/v20170312/models.rb', line 2970

def MinSize
  @MinSize
end

#PartitionTypeObject

Parameters:

  • Type:

    本地磁盘类型。

  • PartitionType:

    本地磁盘属性。

  • MinSize:

    本地磁盘最小值。

  • MaxSize:

    本地磁盘最大值。

  • Required:

    购买时本地盘是否为必选。取值范围:
    <li>REQUIRED:表示必选</li><li>OPTIONAL:表示可选。</li>



2970
2971
2972
# File 'lib/v20170312/models.rb', line 2970

def PartitionType
  @PartitionType
end

#RequiredObject

Parameters:

  • Type:

    本地磁盘类型。

  • PartitionType:

    本地磁盘属性。

  • MinSize:

    本地磁盘最小值。

  • MaxSize:

    本地磁盘最大值。

  • Required:

    购买时本地盘是否为必选。取值范围:
    <li>REQUIRED:表示必选</li><li>OPTIONAL:表示可选。</li>



2970
2971
2972
# File 'lib/v20170312/models.rb', line 2970

def Required
  @Required
end

#TypeObject

Parameters:

  • Type:

    本地磁盘类型。

  • PartitionType:

    本地磁盘属性。

  • MinSize:

    本地磁盘最小值。

  • MaxSize:

    本地磁盘最大值。

  • Required:

    购买时本地盘是否为必选。取值范围:
    <li>REQUIRED:表示必选</li><li>OPTIONAL:表示可选。</li>



2970
2971
2972
# File 'lib/v20170312/models.rb', line 2970

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



2980
2981
2982
2983
2984
2985
2986
# File 'lib/v20170312/models.rb', line 2980

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