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.



12484
12485
12486
12487
12488
# File 'lib/v20170320/models.rb', line 12484

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。



12482
12483
12484
# File 'lib/v20170320/models.rb', line 12482

def IsRandomZone
  @IsRandomZone
end

#NodeIdObject

Parameters:

  • IsRandomZone:

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

  • Zone:

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

  • NodeId:

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



12482
12483
12484
# File 'lib/v20170320/models.rb', line 12482

def NodeId
  @NodeId
end

#ZoneObject

Parameters:

  • IsRandomZone:

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

  • Zone:

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

  • NodeId:

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



12482
12483
12484
# File 'lib/v20170320/models.rb', line 12482

def Zone
  @Zone
end

Instance Method Details

#deserialize(params) ⇒ Object



12490
12491
12492
12493
12494
# File 'lib/v20170320/models.rb', line 12490

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