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.
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
#DstNodeId ⇒ Object
14021 14022 14023 |
# File 'lib/v20170320/models.rb', line 14021 def DstNodeId @DstNodeId end |
#DstSlave ⇒ Object
14021 14022 14023 |
# File 'lib/v20170320/models.rb', line 14021 def DstSlave @DstSlave end |
#ForceSwitch ⇒ Object
14021 14022 14023 |
# File 'lib/v20170320/models.rb', line 14021 def ForceSwitch @ForceSwitch end |
#InstanceId ⇒ Object
14021 14022 14023 |
# File 'lib/v20170320/models.rb', line 14021 def InstanceId @InstanceId end |
#WaitSwitch ⇒ Object
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 |