Class: TencentCloud::Postgres::V20170312::ClassInfo

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

Overview

数据库实例规格

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(speccode = nil, cpu = nil, memory = nil, maxstorage = nil, minstorage = nil, qps = nil) ⇒ ClassInfo

Returns a new instance of ClassInfo.



384
385
386
387
388
389
390
391
# File 'lib/v20170312/models.rb', line 384

def initialize(speccode=nil, cpu=nil, memory=nil, maxstorage=nil, minstorage=nil, qps=nil)
  @SpecCode = speccode
  @CPU = cpu
  @Memory = memory
  @MaxStorage = maxstorage
  @MinStorage = minstorage
  @QPS = qps
end

Instance Attribute Details

#CPUObject

Parameters:

  • SpecCode:

    规格ID

  • CPU:

    CPU核数

  • Memory:

    内存大小,单位:MB

  • MaxStorage:

    该规格所支持最大存储容量,单位:GB

  • MinStorage:

    该规格所支持最小存储容量,单位:GB

  • QPS:

    该规格的预估QPS



382
383
384
# File 'lib/v20170312/models.rb', line 382

def CPU
  @CPU
end

#MaxStorageObject

Parameters:

  • SpecCode:

    规格ID

  • CPU:

    CPU核数

  • Memory:

    内存大小,单位:MB

  • MaxStorage:

    该规格所支持最大存储容量,单位:GB

  • MinStorage:

    该规格所支持最小存储容量,单位:GB

  • QPS:

    该规格的预估QPS



382
383
384
# File 'lib/v20170312/models.rb', line 382

def MaxStorage
  @MaxStorage
end

#MemoryObject

Parameters:

  • SpecCode:

    规格ID

  • CPU:

    CPU核数

  • Memory:

    内存大小,单位:MB

  • MaxStorage:

    该规格所支持最大存储容量,单位:GB

  • MinStorage:

    该规格所支持最小存储容量,单位:GB

  • QPS:

    该规格的预估QPS



382
383
384
# File 'lib/v20170312/models.rb', line 382

def Memory
  @Memory
end

#MinStorageObject

Parameters:

  • SpecCode:

    规格ID

  • CPU:

    CPU核数

  • Memory:

    内存大小,单位:MB

  • MaxStorage:

    该规格所支持最大存储容量,单位:GB

  • MinStorage:

    该规格所支持最小存储容量,单位:GB

  • QPS:

    该规格的预估QPS



382
383
384
# File 'lib/v20170312/models.rb', line 382

def MinStorage
  @MinStorage
end

#QPSObject

Parameters:

  • SpecCode:

    规格ID

  • CPU:

    CPU核数

  • Memory:

    内存大小,单位:MB

  • MaxStorage:

    该规格所支持最大存储容量,单位:GB

  • MinStorage:

    该规格所支持最小存储容量,单位:GB

  • QPS:

    该规格的预估QPS



382
383
384
# File 'lib/v20170312/models.rb', line 382

def QPS
  @QPS
end

#SpecCodeObject

Parameters:

  • SpecCode:

    规格ID

  • CPU:

    CPU核数

  • Memory:

    内存大小,单位:MB

  • MaxStorage:

    该规格所支持最大存储容量,单位:GB

  • MinStorage:

    该规格所支持最小存储容量,单位:GB

  • QPS:

    该规格的预估QPS



382
383
384
# File 'lib/v20170312/models.rb', line 382

def SpecCode
  @SpecCode
end

Instance Method Details

#deserialize(params) ⇒ Object



393
394
395
396
397
398
399
400
# File 'lib/v20170312/models.rb', line 393

def deserialize(params)
  @SpecCode = params['SpecCode']
  @CPU = params['CPU']
  @Memory = params['Memory']
  @MaxStorage = params['MaxStorage']
  @MinStorage = params['MinStorage']
  @QPS = params['QPS']
end