Class: TencentCloud::Cdb::V20170320::SwitchDBInstanceMasterSlaveRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdb::V20170320::SwitchDBInstanceMasterSlaveRequest
- Defined in:
- lib/v20170320/models.rb
Overview
SwitchDBInstanceMasterSlave请求参数结构体
Instance Attribute Summary collapse
- #DstNodeId ⇒ Object
- #DstSlave ⇒ Object
- #ForceSwitch ⇒ Object
- #InstanceId ⇒ Object
- #WaitSwitch ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, dstslave = nil, forceswitch = nil, waitswitch = nil, dstnodeid = nil) ⇒ SwitchDBInstanceMasterSlaveRequest
constructor
A new instance of SwitchDBInstanceMasterSlaveRequest.
Constructor Details
#initialize(instanceid = nil, dstslave = nil, forceswitch = nil, waitswitch = nil, dstnodeid = nil) ⇒ SwitchDBInstanceMasterSlaveRequest
Returns a new instance of SwitchDBInstanceMasterSlaveRequest.
14303 14304 14305 14306 14307 14308 14309 |
# File 'lib/v20170320/models.rb', line 14303 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
#DstNodeId ⇒ Object
14301 14302 14303 |
# File 'lib/v20170320/models.rb', line 14301 def DstNodeId @DstNodeId end |
#DstSlave ⇒ Object
14301 14302 14303 |
# File 'lib/v20170320/models.rb', line 14301 def DstSlave @DstSlave end |
#ForceSwitch ⇒ Object
14301 14302 14303 |
# File 'lib/v20170320/models.rb', line 14301 def ForceSwitch @ForceSwitch end |
#InstanceId ⇒ Object
14301 14302 14303 |
# File 'lib/v20170320/models.rb', line 14301 def InstanceId @InstanceId end |
#WaitSwitch ⇒ Object
14301 14302 14303 |
# File 'lib/v20170320/models.rb', line 14301 def WaitSwitch @WaitSwitch end |
Instance Method Details
#deserialize(params) ⇒ Object
14311 14312 14313 14314 14315 14316 14317 |
# File 'lib/v20170320/models.rb', line 14311 def deserialize(params) @InstanceId = params['InstanceId'] @DstSlave = params['DstSlave'] @ForceSwitch = params['ForceSwitch'] @WaitSwitch = params['WaitSwitch'] @DstNodeId = params['DstNodeId'] end |