Class: TencentCloud::Cdb::V20170320::SwitchDBInstanceMasterSlaveRequest

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20170320/models.rb

Overview

SwitchDBInstanceMasterSlave请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, dstslave = nil, forceswitch = nil, waitswitch = nil, dstnodeid = nil) ⇒ SwitchDBInstanceMasterSlaveRequest



14023
14024
14025
14026
14027
14028
14029
# File 'lib/v20170320/models.rb', line 14023

def initialize(instanceid=nil, dstslave=nil, forceswitch=nil, waitswitch=nil, dstnodeid=nil)
  @InstanceId = instanceid
  @DstSlave = dstslave
  @ForceSwitch = forceswitch
  @WaitSwitch = waitswitch
  @DstNodeId = dstnodeid
end

Instance Attribute Details

#DstNodeIdObject



14021
14022
14023
# File 'lib/v20170320/models.rb', line 14021

def DstNodeId
  @DstNodeId
end

#DstSlaveObject



14021
14022
14023
# File 'lib/v20170320/models.rb', line 14021

def DstSlave
  @DstSlave
end

#ForceSwitchObject



14021
14022
14023
# File 'lib/v20170320/models.rb', line 14021

def ForceSwitch
  @ForceSwitch
end

#InstanceIdObject



14021
14022
14023
# File 'lib/v20170320/models.rb', line 14021

def InstanceId
  @InstanceId
end

#WaitSwitchObject



14021
14022
14023
# File 'lib/v20170320/models.rb', line 14021

def WaitSwitch
  @WaitSwitch
end

Instance Method Details

#deserialize(params) ⇒ Object



14031
14032
14033
14034
14035
14036
14037
# File 'lib/v20170320/models.rb', line 14031

def deserialize(params)
  @InstanceId = params['InstanceId']
  @DstSlave = params['DstSlave']
  @ForceSwitch = params['ForceSwitch']
  @WaitSwitch = params['WaitSwitch']
  @DstNodeId = params['DstNodeId']
end