Class: TencentCloud::Dcdb::V20180411::AddShardConfig

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

Overview

升级实例 – 新增分片类型

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(shardcount = nil, shardmemory = nil, shardstorage = nil) ⇒ AddShardConfig

Returns a new instance of AddShardConfig.



91
92
93
94
95
# File 'lib/v20180411/models.rb', line 91

def initialize(shardcount=nil, shardmemory=nil, shardstorage=nil)
  @ShardCount = shardcount
  @ShardMemory = shardmemory
  @ShardStorage = shardstorage
end

Instance Attribute Details

#ShardCountObject

Parameters:

  • ShardCount:

    新增分片的数量

  • ShardMemory:

    分片内存大小,单位 GB

  • ShardStorage:

    分片存储大小,单位 GB



89
90
91
# File 'lib/v20180411/models.rb', line 89

def ShardCount
  @ShardCount
end

#ShardMemoryObject

Parameters:

  • ShardCount:

    新增分片的数量

  • ShardMemory:

    分片内存大小,单位 GB

  • ShardStorage:

    分片存储大小,单位 GB



89
90
91
# File 'lib/v20180411/models.rb', line 89

def ShardMemory
  @ShardMemory
end

#ShardStorageObject

Parameters:

  • ShardCount:

    新增分片的数量

  • ShardMemory:

    分片内存大小,单位 GB

  • ShardStorage:

    分片存储大小,单位 GB



89
90
91
# File 'lib/v20180411/models.rb', line 89

def ShardStorage
  @ShardStorage
end

Instance Method Details

#deserialize(params) ⇒ Object



97
98
99
100
101
# File 'lib/v20180411/models.rb', line 97

def deserialize(params)
  @ShardCount = params['ShardCount']
  @ShardMemory = params['ShardMemory']
  @ShardStorage = params['ShardStorage']
end