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.



3775
3776
3777
3778
3779
3780
3781
# File 'lib/v20170320/models.rb', line 3775

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:

    核数



3773
3774
3775
# File 'lib/v20170320/models.rb', line 3773

def Cpu
  @Cpu
end

#DeviceObject

Parameters:

  • Device:

    设备

  • Type:

    类型

  • DeviceType:

    设备类型

  • Memory:

    内存,单位为MB

  • Cpu:

    核数



3773
3774
3775
# File 'lib/v20170320/models.rb', line 3773

def Device
  @Device
end

#DeviceTypeObject

Parameters:

  • Device:

    设备

  • Type:

    类型

  • DeviceType:

    设备类型

  • Memory:

    内存,单位为MB

  • Cpu:

    核数



3773
3774
3775
# File 'lib/v20170320/models.rb', line 3773

def DeviceType
  @DeviceType
end

#MemoryObject

Parameters:

  • Device:

    设备

  • Type:

    类型

  • DeviceType:

    设备类型

  • Memory:

    内存,单位为MB

  • Cpu:

    核数



3773
3774
3775
# File 'lib/v20170320/models.rb', line 3773

def Memory
  @Memory
end

#TypeObject

Parameters:

  • Device:

    设备

  • Type:

    类型

  • DeviceType:

    设备类型

  • Memory:

    内存,单位为MB

  • Cpu:

    核数



3773
3774
3775
# File 'lib/v20170320/models.rb', line 3773

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



3783
3784
3785
3786
3787
3788
3789
# File 'lib/v20170320/models.rb', line 3783

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