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.



3818
3819
3820
3821
3822
3823
3824
# File 'lib/v20170320/models.rb', line 3818

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:

    核数



3816
3817
3818
# File 'lib/v20170320/models.rb', line 3816

def Cpu
  @Cpu
end

#DeviceObject

Parameters:

  • Device:

    设备

  • Type:

    类型

  • DeviceType:

    设备类型

  • Memory:

    内存,单位为MB

  • Cpu:

    核数



3816
3817
3818
# File 'lib/v20170320/models.rb', line 3816

def Device
  @Device
end

#DeviceTypeObject

Parameters:

  • Device:

    设备

  • Type:

    类型

  • DeviceType:

    设备类型

  • Memory:

    内存,单位为MB

  • Cpu:

    核数



3816
3817
3818
# File 'lib/v20170320/models.rb', line 3816

def DeviceType
  @DeviceType
end

#MemoryObject

Parameters:

  • Device:

    设备

  • Type:

    类型

  • DeviceType:

    设备类型

  • Memory:

    内存,单位为MB

  • Cpu:

    核数



3816
3817
3818
# File 'lib/v20170320/models.rb', line 3816

def Memory
  @Memory
end

#TypeObject

Parameters:

  • Device:

    设备

  • Type:

    类型

  • DeviceType:

    设备类型

  • Memory:

    内存,单位为MB

  • Cpu:

    核数



3816
3817
3818
# File 'lib/v20170320/models.rb', line 3816

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



3826
3827
3828
3829
3830
3831
3832
# File 'lib/v20170320/models.rb', line 3826

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