Class: TencentCloud::Cfs::V20190719::AvailableType

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

Overview

版本控制-类型数组

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(protocols = nil, type = nil, prepayment = nil) ⇒ AvailableType

Returns a new instance of AvailableType.



265
266
267
268
269
# File 'lib/v20190719/models.rb', line 265

def initialize(protocols=nil, type=nil, prepayment=nil)
  @Protocols = protocols
  @Type = type
  @Prepayment = prepayment
end

Instance Attribute Details

#PrepaymentObject

Parameters:

  • Protocols:

    协议与售卖详情

  • Type:

    存储类型。返回值中 SD 为通用标准型存储, HP为通用性能型存储, TB为Turbo标准型, TP 为Turbo性能型。

  • Prepayment:

    是否支持预付费。返回值中 true 为支持、false 为不支持



263
264
265
# File 'lib/v20190719/models.rb', line 263

def Prepayment
  @Prepayment
end

#ProtocolsObject

Parameters:

  • Protocols:

    协议与售卖详情

  • Type:

    存储类型。返回值中 SD 为通用标准型存储, HP为通用性能型存储, TB为Turbo标准型, TP 为Turbo性能型。

  • Prepayment:

    是否支持预付费。返回值中 true 为支持、false 为不支持



263
264
265
# File 'lib/v20190719/models.rb', line 263

def Protocols
  @Protocols
end

#TypeObject

Parameters:

  • Protocols:

    协议与售卖详情

  • Type:

    存储类型。返回值中 SD 为通用标准型存储, HP为通用性能型存储, TB为Turbo标准型, TP 为Turbo性能型。

  • Prepayment:

    是否支持预付费。返回值中 true 为支持、false 为不支持



263
264
265
# File 'lib/v20190719/models.rb', line 263

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



271
272
273
274
275
276
277
278
279
280
281
282
# File 'lib/v20190719/models.rb', line 271

def deserialize(params)
  unless params['Protocols'].nil?
    @Protocols = []
    params['Protocols'].each do |i|
      availableprotostatus_tmp = AvailableProtoStatus.new
      availableprotostatus_tmp.deserialize(i)
      @Protocols << availableprotostatus_tmp
    end
  end
  @Type = params['Type']
  @Prepayment = params['Prepayment']
end