Class: TencentCloud::Postgres::V20170312::SpecInfo

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

Overview

描述某个地域下某个可用区的可售卖规格详细信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(region = nil, zone = nil, speciteminfolist = nil, supportkmsregions = nil) ⇒ SpecInfo

Returns a new instance of SpecInfo.



7336
7337
7338
7339
7340
7341
# File 'lib/v20170312/models.rb', line 7336

def initialize(region=nil, zone=nil, speciteminfolist=nil, supportkmsregions=nil)
  @Region = region
  @Zone = zone
  @SpecItemInfoList = speciteminfolist
  @SupportKMSRegions = supportkmsregions
end

Instance Attribute Details

#RegionObject

Parameters:

  • Region:

    地域英文编码,对应RegionSet的Region字段

  • Zone:

    区域英文编码,对应ZoneSet的Zone字段

  • SpecItemInfoList:

    规格详细信息列表

  • SupportKMSRegions:

    支持KMS的地域



7334
7335
7336
# File 'lib/v20170312/models.rb', line 7334

def Region
  @Region
end

#SpecItemInfoListObject

Parameters:

  • Region:

    地域英文编码,对应RegionSet的Region字段

  • Zone:

    区域英文编码,对应ZoneSet的Zone字段

  • SpecItemInfoList:

    规格详细信息列表

  • SupportKMSRegions:

    支持KMS的地域



7334
7335
7336
# File 'lib/v20170312/models.rb', line 7334

def SpecItemInfoList
  @SpecItemInfoList
end

#SupportKMSRegionsObject

Parameters:

  • Region:

    地域英文编码,对应RegionSet的Region字段

  • Zone:

    区域英文编码,对应ZoneSet的Zone字段

  • SpecItemInfoList:

    规格详细信息列表

  • SupportKMSRegions:

    支持KMS的地域



7334
7335
7336
# File 'lib/v20170312/models.rb', line 7334

def SupportKMSRegions
  @SupportKMSRegions
end

#ZoneObject

Parameters:

  • Region:

    地域英文编码,对应RegionSet的Region字段

  • Zone:

    区域英文编码,对应ZoneSet的Zone字段

  • SpecItemInfoList:

    规格详细信息列表

  • SupportKMSRegions:

    支持KMS的地域



7334
7335
7336
# File 'lib/v20170312/models.rb', line 7334

def Zone
  @Zone
end

Instance Method Details

#deserialize(params) ⇒ Object



7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
# File 'lib/v20170312/models.rb', line 7343

def deserialize(params)
  @Region = params['Region']
  @Zone = params['Zone']
  unless params['SpecItemInfoList'].nil?
    @SpecItemInfoList = []
    params['SpecItemInfoList'].each do |i|
      speciteminfo_tmp = SpecItemInfo.new
      speciteminfo_tmp.deserialize(i)
      @SpecItemInfoList << speciteminfo_tmp
    end
  end
  @SupportKMSRegions = params['SupportKMSRegions']
end