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.



199
200
201
202
203
# File 'lib/v20190719/models.rb', line 199

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 为不支持



197
198
199
# File 'lib/v20190719/models.rb', line 197

def Prepayment
  @Prepayment
end

#ProtocolsObject

Parameters:

  • Protocols:

    协议与售卖详情

  • Type:

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

  • Prepayment:

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



197
198
199
# File 'lib/v20190719/models.rb', line 197

def Protocols
  @Protocols
end

#TypeObject

Parameters:

  • Protocols:

    协议与售卖详情

  • Type:

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

  • Prepayment:

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



197
198
199
# File 'lib/v20190719/models.rb', line 197

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



205
206
207
208
209
210
211
212
213
214
215
216
# File 'lib/v20190719/models.rb', line 205

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