class TencentCloud::Sqlserver::V20180328::ModifyReadOnlyGroupDetailsRequest
ModifyReadOnlyGroupDetails请求参数结构体
def deserialize(params)
def deserialize(params) @InstanceId = params['InstanceId'] @ReadOnlyGroupId = params['ReadOnlyGroupId'] @ReadOnlyGroupName = params['ReadOnlyGroupName'] @IsOfflineDelay = params['IsOfflineDelay'] @ReadOnlyMaxDelayTime = params['ReadOnlyMaxDelayTime'] @MinReadOnlyInGroup = params['MinReadOnlyInGroup'] unless params['WeightPairs'].nil? @WeightPairs = [] params['WeightPairs'].each do |i| readonlyinstanceweightpair_tmp = ReadOnlyInstanceWeightPair.new readonlyinstanceweightpair_tmp.deserialize(i) @WeightPairs << readonlyinstanceweightpair_tmp end end @AutoWeight = params['AutoWeight'] @BalanceWeight = params['BalanceWeight'] end
def initialize(instanceid=nil, readonlygroupid=nil, readonlygroupname=nil, isofflinedelay=nil, readonlymaxdelaytime=nil, minreadonlyingroup=nil, weightpairs=nil, autoweight=nil, balanceweight=nil)
def initialize(instanceid=nil, readonlygroupid=nil, readonlygroupname=nil, isofflinedelay=nil, readonlymaxdelaytime=nil, minreadonlyingroup=nil, weightpairs=nil, autoweight=nil, balanceweight=nil) @InstanceId = instanceid @ReadOnlyGroupId = readonlygroupid @ReadOnlyGroupName = readonlygroupname @IsOfflineDelay = isofflinedelay @ReadOnlyMaxDelayTime = readonlymaxdelaytime @MinReadOnlyInGroup = minreadonlyingroup @WeightPairs = weightpairs @AutoWeight = autoweight @BalanceWeight = balanceweight end