class TencentCloud::Cynosdb::V20190107::ProxyGroupRwInfo
数据库代理组读写分离信息
def deserialize(params)
def deserialize(params) @ConsistencyType = params['ConsistencyType'] @ConsistencyTimeOut = params['ConsistencyTimeOut'] @WeightMode = params['WeightMode'] @FailOver = params['FailOver'] @AutoAddRo = params['AutoAddRo'] unless params['InstanceWeights'].nil? @InstanceWeights = [] params['InstanceWeights'].each do |i| proxyinstanceweight_tmp = ProxyInstanceWeight.new proxyinstanceweight_tmp.deserialize(i) @InstanceWeights << proxyinstanceweight_tmp end end @OpenRw = params['OpenRw'] @RwType = params['RwType'] @TransSplit = params['TransSplit'] @AccessMode = params['AccessMode'] end
def initialize(consistencytype=nil, consistencytimeout=nil, weightmode=nil, failover=nil, autoaddro=nil, instanceweights=nil, openrw=nil, rwtype=nil, transsplit=nil, accessmode=nil)
def initialize(consistencytype=nil, consistencytimeout=nil, weightmode=nil, failover=nil, autoaddro=nil, instanceweights=nil, openrw=nil, rwtype=nil, transsplit=nil, accessmode=nil) @ConsistencyType = consistencytype @ConsistencyTimeOut = consistencytimeout @WeightMode = weightmode @FailOver = failover @AutoAddRo = autoaddro @InstanceWeights = instanceweights @OpenRw = openrw @RwType = rwtype @TransSplit = transsplit @AccessMode = accessmode end