Class: TencentCloud::Vdb::V20230616::CreateInstancesComponent

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

Overview

组件设置列表

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(component = nil, cpu = nil, memory = nil, replicanum = nil, name = nil, storagesize = nil, storagetype = nil, params = nil) ⇒ CreateInstancesComponent

Returns a new instance of CreateInstancesComponent.



288
289
290
291
292
293
294
295
296
297
# File 'lib/v20230616/models.rb', line 288

def initialize(component=nil, cpu=nil, memory=nil, replicanum=nil, name=nil, storagesize=nil, storagetype=nil, params=nil)
  @Component = component
  @Cpu = cpu
  @Memory = memory
  @ReplicaNum = replicanum
  @Name = name
  @StorageSize = storagesize
  @StorageType = storagetype
  @Params = params
end

Instance Attribute Details

#ComponentObject

Parameters:

  • Component:

    底层组件名,需要和产品模型中的保持一致

  • Cpu:

    组件cpu大小

  • Memory:

    组件内存大小

  • ReplicaNum:

    业务节点数

  • Name:

    自定义组件名

  • StorageSize:

    组件磁盘大小

  • StorageType:

    磁盘类型

  • Params:

    组件额外参数,通过JSON提交



286
287
288
# File 'lib/v20230616/models.rb', line 286

def Component
  @Component
end

#CpuObject

Parameters:

  • Component:

    底层组件名,需要和产品模型中的保持一致

  • Cpu:

    组件cpu大小

  • Memory:

    组件内存大小

  • ReplicaNum:

    业务节点数

  • Name:

    自定义组件名

  • StorageSize:

    组件磁盘大小

  • StorageType:

    磁盘类型

  • Params:

    组件额外参数,通过JSON提交



286
287
288
# File 'lib/v20230616/models.rb', line 286

def Cpu
  @Cpu
end

#MemoryObject

Parameters:

  • Component:

    底层组件名,需要和产品模型中的保持一致

  • Cpu:

    组件cpu大小

  • Memory:

    组件内存大小

  • ReplicaNum:

    业务节点数

  • Name:

    自定义组件名

  • StorageSize:

    组件磁盘大小

  • StorageType:

    磁盘类型

  • Params:

    组件额外参数,通过JSON提交



286
287
288
# File 'lib/v20230616/models.rb', line 286

def Memory
  @Memory
end

#NameObject

Parameters:

  • Component:

    底层组件名,需要和产品模型中的保持一致

  • Cpu:

    组件cpu大小

  • Memory:

    组件内存大小

  • ReplicaNum:

    业务节点数

  • Name:

    自定义组件名

  • StorageSize:

    组件磁盘大小

  • StorageType:

    磁盘类型

  • Params:

    组件额外参数,通过JSON提交



286
287
288
# File 'lib/v20230616/models.rb', line 286

def Name
  @Name
end

#ParamsObject

Parameters:

  • Component:

    底层组件名,需要和产品模型中的保持一致

  • Cpu:

    组件cpu大小

  • Memory:

    组件内存大小

  • ReplicaNum:

    业务节点数

  • Name:

    自定义组件名

  • StorageSize:

    组件磁盘大小

  • StorageType:

    磁盘类型

  • Params:

    组件额外参数,通过JSON提交



286
287
288
# File 'lib/v20230616/models.rb', line 286

def Params
  @Params
end

#ReplicaNumObject

Parameters:

  • Component:

    底层组件名,需要和产品模型中的保持一致

  • Cpu:

    组件cpu大小

  • Memory:

    组件内存大小

  • ReplicaNum:

    业务节点数

  • Name:

    自定义组件名

  • StorageSize:

    组件磁盘大小

  • StorageType:

    磁盘类型

  • Params:

    组件额外参数,通过JSON提交



286
287
288
# File 'lib/v20230616/models.rb', line 286

def ReplicaNum
  @ReplicaNum
end

#StorageSizeObject

Parameters:

  • Component:

    底层组件名,需要和产品模型中的保持一致

  • Cpu:

    组件cpu大小

  • Memory:

    组件内存大小

  • ReplicaNum:

    业务节点数

  • Name:

    自定义组件名

  • StorageSize:

    组件磁盘大小

  • StorageType:

    磁盘类型

  • Params:

    组件额外参数,通过JSON提交



286
287
288
# File 'lib/v20230616/models.rb', line 286

def StorageSize
  @StorageSize
end

#StorageTypeObject

Parameters:

  • Component:

    底层组件名,需要和产品模型中的保持一致

  • Cpu:

    组件cpu大小

  • Memory:

    组件内存大小

  • ReplicaNum:

    业务节点数

  • Name:

    自定义组件名

  • StorageSize:

    组件磁盘大小

  • StorageType:

    磁盘类型

  • Params:

    组件额外参数,通过JSON提交



286
287
288
# File 'lib/v20230616/models.rb', line 286

def StorageType
  @StorageType
end

Instance Method Details

#deserialize(params) ⇒ Object



299
300
301
302
303
304
305
306
307
308
# File 'lib/v20230616/models.rb', line 299

def deserialize(params)
  @Component = params['Component']
  @Cpu = params['Cpu']
  @Memory = params['Memory']
  @ReplicaNum = params['ReplicaNum']
  @Name = params['Name']
  @StorageSize = params['StorageSize']
  @StorageType = params['StorageType']
  @Params = params['Params']
end