Class: TencentCloud::Cdb::V20170320::ProxyNode

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

Overview

代理节点

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(proxyid = nil, cpu = nil, mem = nil, status = nil, zone = nil, region = nil, connection = nil) ⇒ ProxyNode

Returns a new instance of ProxyNode.



12527
12528
12529
12530
12531
12532
12533
12534
12535
# File 'lib/v20170320/models.rb', line 12527

def initialize(proxyid=nil, cpu=nil, mem=nil, status=nil, zone=nil, region=nil, connection=nil)
  @ProxyId = proxyid
  @Cpu = cpu
  @Mem = mem
  @Status = status
  @Zone = zone
  @Region = region
  @Connection = connection
end

Instance Attribute Details

#ConnectionObject

Parameters:

  • ProxyId:

    代理节点ID

  • Cpu:

    CPU核数

  • Mem:

    内存大小,单位为 MB。

  • Status:

    节点状态,0 - 初始化中,1 - 在线中,2 - 下线中,3 - 销毁中,4 - 故障恢复中,5 - 节点故障,6 - 切换中。

  • Zone:

    代理节点可用区

  • Region:

    代理节点地域

  • Connection:

    连接数



12525
12526
12527
# File 'lib/v20170320/models.rb', line 12525

def Connection
  @Connection
end

#CpuObject

Parameters:

  • ProxyId:

    代理节点ID

  • Cpu:

    CPU核数

  • Mem:

    内存大小,单位为 MB。

  • Status:

    节点状态,0 - 初始化中,1 - 在线中,2 - 下线中,3 - 销毁中,4 - 故障恢复中,5 - 节点故障,6 - 切换中。

  • Zone:

    代理节点可用区

  • Region:

    代理节点地域

  • Connection:

    连接数



12525
12526
12527
# File 'lib/v20170320/models.rb', line 12525

def Cpu
  @Cpu
end

#MemObject

Parameters:

  • ProxyId:

    代理节点ID

  • Cpu:

    CPU核数

  • Mem:

    内存大小,单位为 MB。

  • Status:

    节点状态,0 - 初始化中,1 - 在线中,2 - 下线中,3 - 销毁中,4 - 故障恢复中,5 - 节点故障,6 - 切换中。

  • Zone:

    代理节点可用区

  • Region:

    代理节点地域

  • Connection:

    连接数



12525
12526
12527
# File 'lib/v20170320/models.rb', line 12525

def Mem
  @Mem
end

#ProxyIdObject

Parameters:

  • ProxyId:

    代理节点ID

  • Cpu:

    CPU核数

  • Mem:

    内存大小,单位为 MB。

  • Status:

    节点状态,0 - 初始化中,1 - 在线中,2 - 下线中,3 - 销毁中,4 - 故障恢复中,5 - 节点故障,6 - 切换中。

  • Zone:

    代理节点可用区

  • Region:

    代理节点地域

  • Connection:

    连接数



12525
12526
12527
# File 'lib/v20170320/models.rb', line 12525

def ProxyId
  @ProxyId
end

#RegionObject

Parameters:

  • ProxyId:

    代理节点ID

  • Cpu:

    CPU核数

  • Mem:

    内存大小,单位为 MB。

  • Status:

    节点状态,0 - 初始化中,1 - 在线中,2 - 下线中,3 - 销毁中,4 - 故障恢复中,5 - 节点故障,6 - 切换中。

  • Zone:

    代理节点可用区

  • Region:

    代理节点地域

  • Connection:

    连接数



12525
12526
12527
# File 'lib/v20170320/models.rb', line 12525

def Region
  @Region
end

#StatusObject

Parameters:

  • ProxyId:

    代理节点ID

  • Cpu:

    CPU核数

  • Mem:

    内存大小,单位为 MB。

  • Status:

    节点状态,0 - 初始化中,1 - 在线中,2 - 下线中,3 - 销毁中,4 - 故障恢复中,5 - 节点故障,6 - 切换中。

  • Zone:

    代理节点可用区

  • Region:

    代理节点地域

  • Connection:

    连接数



12525
12526
12527
# File 'lib/v20170320/models.rb', line 12525

def Status
  @Status
end

#ZoneObject

Parameters:

  • ProxyId:

    代理节点ID

  • Cpu:

    CPU核数

  • Mem:

    内存大小,单位为 MB。

  • Status:

    节点状态,0 - 初始化中,1 - 在线中,2 - 下线中,3 - 销毁中,4 - 故障恢复中,5 - 节点故障,6 - 切换中。

  • Zone:

    代理节点可用区

  • Region:

    代理节点地域

  • Connection:

    连接数



12525
12526
12527
# File 'lib/v20170320/models.rb', line 12525

def Zone
  @Zone
end

Instance Method Details

#deserialize(params) ⇒ Object



12537
12538
12539
12540
12541
12542
12543
12544
12545
# File 'lib/v20170320/models.rb', line 12537

def deserialize(params)
  @ProxyId = params['ProxyId']
  @Cpu = params['Cpu']
  @Mem = params['Mem']
  @Status = params['Status']
  @Zone = params['Zone']
  @Region = params['Region']
  @Connection = params['Connection']
end