class TencentCloud::Cynosdb::V20190107::ClusterSlaveData

集群从可用区信息

def deserialize(params)

def deserialize(params)
  @OldMasterZone = params['OldMasterZone']
  @OldSlaveZone = params['OldSlaveZone']
  @NewMasterZone = params['NewMasterZone']
  @NewSlaveZone = params['NewSlaveZone']
  unless params['NewSlaveZoneAttr'].nil?
    @NewSlaveZoneAttr = []
    params['NewSlaveZoneAttr'].each do |i|
      slavezoneattritem_tmp = SlaveZoneAttrItem.new
      slavezoneattritem_tmp.deserialize(i)
      @NewSlaveZoneAttr << slavezoneattritem_tmp
    end
  end
  unless params['OldSlaveZoneAttr'].nil?
    @OldSlaveZoneAttr = []
    params['OldSlaveZoneAttr'].each do |i|
      slavezoneattritem_tmp = SlaveZoneAttrItem.new
      slavezoneattritem_tmp.deserialize(i)
      @OldSlaveZoneAttr << slavezoneattritem_tmp
    end
  end
end

def initialize(oldmasterzone=nil, oldslavezone=nil, newmasterzone=nil, newslavezone=nil, newslavezoneattr=nil, oldslavezoneattr=nil)

def initialize(oldmasterzone=nil, oldslavezone=nil, newmasterzone=nil, newslavezone=nil, newslavezoneattr=nil, oldslavezoneattr=nil)
  @OldMasterZone = oldmasterzone
  @OldSlaveZone = oldslavezone
  @NewMasterZone = newmasterzone
  @NewSlaveZone = newslavezone
  @NewSlaveZoneAttr = newslavezoneattr
  @OldSlaveZoneAttr = oldslavezoneattr
end