Class: TencentCloud::Cdb::V20170320::DBSwitchInfo

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

Overview

云数据库切换记录

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switchtime = nil, switchtype = nil) ⇒ DBSwitchInfo

Returns a new instance of DBSwitchInfo.



3801
3802
3803
3804
# File 'lib/v20170320/models.rb', line 3801

def initialize(switchtime=nil, switchtype=nil)
  @SwitchTime = switchtime
  @SwitchType = switchtype
end

Instance Attribute Details

#SwitchTimeObject

Parameters:

  • SwitchTime:

    切换时间,格式为:2017-09-03 01:34:31

  • SwitchType:

    切换类型,可能的返回值为:TRANSFER - 数据迁移;MASTER2SLAVE - 主备切换;RECOVERY - 主从恢复



3799
3800
3801
# File 'lib/v20170320/models.rb', line 3799

def SwitchTime
  @SwitchTime
end

#SwitchTypeObject

Parameters:

  • SwitchTime:

    切换时间,格式为:2017-09-03 01:34:31

  • SwitchType:

    切换类型,可能的返回值为:TRANSFER - 数据迁移;MASTER2SLAVE - 主备切换;RECOVERY - 主从恢复



3799
3800
3801
# File 'lib/v20170320/models.rb', line 3799

def SwitchType
  @SwitchType
end

Instance Method Details

#deserialize(params) ⇒ Object



3806
3807
3808
3809
# File 'lib/v20170320/models.rb', line 3806

def deserialize(params)
  @SwitchTime = params['SwitchTime']
  @SwitchType = params['SwitchType']
end