Class: TencentCloud::Cdb::V20170320::ReadonlyNode

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

Overview

集群版的 RO 节点配置。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(israndomzone = nil, zone = nil, nodeid = nil) ⇒ ReadonlyNode

Returns a new instance of ReadonlyNode.



12595
12596
12597
12598
12599
# File 'lib/v20170320/models.rb', line 12595

def initialize(israndomzone=nil, zone=nil, nodeid=nil)
  @IsRandomZone = israndomzone
  @Zone = zone
  @NodeId = nodeid
end

Instance Attribute Details

#IsRandomZoneObject

Parameters:

  • IsRandomZone:

    是否分布在随机可用区。传入YES表示随机可用区。否则使用Zone指定的可用区。

  • Zone:

    指定该节点分布在哪个可用区。

  • NodeId:

    升级集群版实例时,如果要调整只读节点可用区,需要指定节点id。



12593
12594
12595
# File 'lib/v20170320/models.rb', line 12593

def IsRandomZone
  @IsRandomZone
end

#NodeIdObject

Parameters:

  • IsRandomZone:

    是否分布在随机可用区。传入YES表示随机可用区。否则使用Zone指定的可用区。

  • Zone:

    指定该节点分布在哪个可用区。

  • NodeId:

    升级集群版实例时,如果要调整只读节点可用区,需要指定节点id。



12593
12594
12595
# File 'lib/v20170320/models.rb', line 12593

def NodeId
  @NodeId
end

#ZoneObject

Parameters:

  • IsRandomZone:

    是否分布在随机可用区。传入YES表示随机可用区。否则使用Zone指定的可用区。

  • Zone:

    指定该节点分布在哪个可用区。

  • NodeId:

    升级集群版实例时,如果要调整只读节点可用区,需要指定节点id。



12593
12594
12595
# File 'lib/v20170320/models.rb', line 12593

def Zone
  @Zone
end

Instance Method Details

#deserialize(params) ⇒ Object



12601
12602
12603
12604
12605
# File 'lib/v20170320/models.rb', line 12601

def deserialize(params)
  @IsRandomZone = params['IsRandomZone']
  @Zone = params['Zone']
  @NodeId = params['NodeId']
end