Class: TencentCloud::Cdb::V20170320::CustomConfig

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

Overview

proxy配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(device = nil, type = nil, devicetype = nil, memory = nil, cpu = nil) ⇒ CustomConfig

Returns a new instance of CustomConfig.



3804
3805
3806
3807
3808
3809
3810
# File 'lib/v20170320/models.rb', line 3804

def initialize(device=nil, type=nil, devicetype=nil, memory=nil, cpu=nil)
  @Device = device
  @Type = type
  @DeviceType = devicetype
  @Memory = memory
  @Cpu = cpu
end

Instance Attribute Details

#CpuObject

Parameters:

  • Device:

    设备

  • Type:

    类型

  • DeviceType:

    设备类型

  • Memory:

    内存,单位为MB

  • Cpu:

    核数



3802
3803
3804
# File 'lib/v20170320/models.rb', line 3802

def Cpu
  @Cpu
end

#DeviceObject

Parameters:

  • Device:

    设备

  • Type:

    类型

  • DeviceType:

    设备类型

  • Memory:

    内存,单位为MB

  • Cpu:

    核数



3802
3803
3804
# File 'lib/v20170320/models.rb', line 3802

def Device
  @Device
end

#DeviceTypeObject

Parameters:

  • Device:

    设备

  • Type:

    类型

  • DeviceType:

    设备类型

  • Memory:

    内存,单位为MB

  • Cpu:

    核数



3802
3803
3804
# File 'lib/v20170320/models.rb', line 3802

def DeviceType
  @DeviceType
end

#MemoryObject

Parameters:

  • Device:

    设备

  • Type:

    类型

  • DeviceType:

    设备类型

  • Memory:

    内存,单位为MB

  • Cpu:

    核数



3802
3803
3804
# File 'lib/v20170320/models.rb', line 3802

def Memory
  @Memory
end

#TypeObject

Parameters:

  • Device:

    设备

  • Type:

    类型

  • DeviceType:

    设备类型

  • Memory:

    内存,单位为MB

  • Cpu:

    核数



3802
3803
3804
# File 'lib/v20170320/models.rb', line 3802

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



3812
3813
3814
3815
3816
3817
3818
# File 'lib/v20170320/models.rb', line 3812

def deserialize(params)
  @Device = params['Device']
  @Type = params['Type']
  @DeviceType = params['DeviceType']
  @Memory = params['Memory']
  @Cpu = params['Cpu']
end