Class: TencentCloud::Tse::V20201207::StorageOption

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

Overview

存储的额外选项

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, type = nil, capacity = nil) ⇒ StorageOption

Returns a new instance of StorageOption.



11726
11727
11728
11729
11730
# File 'lib/v20201207/models.rb', line 11726

def initialize(name=nil, type=nil, capacity=nil)
  @Name = name
  @Type = type
  @Capacity = capacity
end

Instance Attribute Details

#CapacityObject

Parameters:

  • Name:

    存储对象,分为snap和txn两种

  • Type:

    存储类型,分为三类CLOUD_PREMIUM/CLOUD_SSD/CLOUD_SSD_PLUS,分别对应高性能云硬盘、SSD云硬盘、增强型SSD云硬盘

  • Capacity:

    存储容量,[50, 3200]的范围



11724
11725
11726
# File 'lib/v20201207/models.rb', line 11724

def Capacity
  @Capacity
end

#NameObject

Parameters:

  • Name:

    存储对象,分为snap和txn两种

  • Type:

    存储类型,分为三类CLOUD_PREMIUM/CLOUD_SSD/CLOUD_SSD_PLUS,分别对应高性能云硬盘、SSD云硬盘、增强型SSD云硬盘

  • Capacity:

    存储容量,[50, 3200]的范围



11724
11725
11726
# File 'lib/v20201207/models.rb', line 11724

def Name
  @Name
end

#TypeObject

Parameters:

  • Name:

    存储对象,分为snap和txn两种

  • Type:

    存储类型,分为三类CLOUD_PREMIUM/CLOUD_SSD/CLOUD_SSD_PLUS,分别对应高性能云硬盘、SSD云硬盘、增强型SSD云硬盘

  • Capacity:

    存储容量,[50, 3200]的范围



11724
11725
11726
# File 'lib/v20201207/models.rb', line 11724

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



11732
11733
11734
11735
11736
# File 'lib/v20201207/models.rb', line 11732

def deserialize(params)
  @Name = params['Name']
  @Type = params['Type']
  @Capacity = params['Capacity']
end