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.



11744
11745
11746
11747
11748
# File 'lib/v20201207/models.rb', line 11744

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

Instance Attribute Details

#CapacityObject

Parameters:

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

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

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



11742
11743
11744
# File 'lib/v20201207/models.rb', line 11742

def Capacity
  @Capacity
end

#NameObject

Parameters:

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

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

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



11742
11743
11744
# File 'lib/v20201207/models.rb', line 11742

def Name
  @Name
end

#TypeObject

Parameters:

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

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

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



11742
11743
11744
# File 'lib/v20201207/models.rb', line 11742

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



11750
11751
11752
11753
11754
# File 'lib/v20201207/models.rb', line 11750

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