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.



12782
12783
12784
12785
12786
# File 'lib/v20170320/models.rb', line 12782

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。



12780
12781
12782
# File 'lib/v20170320/models.rb', line 12780

def IsRandomZone
  @IsRandomZone
end

#NodeIdObject

Parameters:

  • IsRandomZone:

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

  • Zone:

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

  • NodeId:

    升级云盘版实例时,如果要调整只读节点可用区,需要指定节点 ID。



12780
12781
12782
# File 'lib/v20170320/models.rb', line 12780

def NodeId
  @NodeId
end

#ZoneObject

Parameters:

  • IsRandomZone:

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

  • Zone:

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

  • NodeId:

    升级云盘版实例时,如果要调整只读节点可用区,需要指定节点 ID。



12780
12781
12782
# File 'lib/v20170320/models.rb', line 12780

def Zone
  @Zone
end

Instance Method Details

#deserialize(params) ⇒ Object



12788
12789
12790
12791
12792
# File 'lib/v20170320/models.rb', line 12788

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