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.



3830
3831
3832
3833
# File 'lib/v20170320/models.rb', line 3830

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 - 主从恢复



3828
3829
3830
# File 'lib/v20170320/models.rb', line 3828

def SwitchTime
  @SwitchTime
end

#SwitchTypeObject

Parameters:

  • SwitchTime:

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

  • SwitchType:

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



3828
3829
3830
# File 'lib/v20170320/models.rb', line 3828

def SwitchType
  @SwitchType
end

Instance Method Details

#deserialize(params) ⇒ Object



3835
3836
3837
3838
# File 'lib/v20170320/models.rb', line 3835

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