class TencentCloud::Cdb::V20170320::RoGroup
只读组参数
def deserialize(params)
def deserialize(params) @RoGroupMode = params['RoGroupMode'] @RoGroupId = params['RoGroupId'] @RoGroupName = params['RoGroupName'] @RoOfflineDelay = params['RoOfflineDelay'] @RoMaxDelayTime = params['RoMaxDelayTime'] @MinRoInGroup = params['MinRoInGroup'] @WeightMode = params['WeightMode'] @Weight = params['Weight'] unless params['RoInstances'].nil? @RoInstances = [] params['RoInstances'].each do |i| roinstanceinfo_tmp = RoInstanceInfo.new roinstanceinfo_tmp.deserialize(i) @RoInstances << roinstanceinfo_tmp end end @Vip = params['Vip'] @Vport = params['Vport'] @UniqVpcId = params['UniqVpcId'] @UniqSubnetId = params['UniqSubnetId'] @RoGroupRegion = params['RoGroupRegion'] @RoGroupZone = params['RoGroupZone'] @DelayReplicationTime = params['DelayReplicationTime'] end
def initialize(rogroupmode=nil, rogroupid=nil, rogroupname=nil, roofflinedelay=nil, romaxdelaytime=nil, minroingroup=nil, weightmode=nil, weight=nil, roinstances=nil, vip=nil, vport=nil, uniqvpcid=nil, uniqsubnetid=nil, rogroupregion=nil, rogroupzone=nil, delayreplicationtime=nil)
def initialize(rogroupmode=nil, rogroupid=nil, rogroupname=nil, roofflinedelay=nil, romaxdelaytime=nil, minroingroup=nil, weightmode=nil, weight=nil, roinstances=nil, vip=nil, vport=nil, uniqvpcid=nil, uniqsubnetid=nil, rogroupregion=nil, rogroupzone=nil, delayreplicationtime=nil) @RoGroupMode = rogroupmode @RoGroupId = rogroupid @RoGroupName = rogroupname @RoOfflineDelay = roofflinedelay @RoMaxDelayTime = romaxdelaytime @MinRoInGroup = minroingroup @WeightMode = weightmode @Weight = weight @RoInstances = roinstances @Vip = vip @Vport = vport @UniqVpcId = uniqvpcid @UniqSubnetId = uniqsubnetid @RoGroupRegion = rogroupregion @RoGroupZone = rogroupzone @DelayReplicationTime = delayreplicationtime end