Class: TencentCloud::Cdb::V20170320::RollbackInstancesInfo

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(instanceid = nil, strategy = nil, rollbacktime = nil, databases = nil, tables = nil) ⇒ RollbackInstancesInfo



13114
13115
13116
13117
13118
13119
13120
# File 'lib/v20170320/models.rb', line 13114

def initialize(instanceid=nil, strategy=nil, rollbacktime=nil, databases=nil, tables=nil)
  @InstanceId = instanceid
  @Strategy = strategy
  @RollbackTime = rollbacktime
  @Databases = databases
  @Tables = tables
end

Instance Attribute Details

#DatabasesObject



13112
13113
13114
# File 'lib/v20170320/models.rb', line 13112

def Databases
  @Databases
end

#InstanceIdObject



13112
13113
13114
# File 'lib/v20170320/models.rb', line 13112

def InstanceId
  @InstanceId
end

#RollbackTimeObject



13112
13113
13114
# File 'lib/v20170320/models.rb', line 13112

def RollbackTime
  @RollbackTime
end

#StrategyObject



13112
13113
13114
# File 'lib/v20170320/models.rb', line 13112

def Strategy
  @Strategy
end

#TablesObject



13112
13113
13114
# File 'lib/v20170320/models.rb', line 13112

def Tables
  @Tables
end

Instance Method Details

#deserialize(params) ⇒ Object



13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
# File 'lib/v20170320/models.rb', line 13122

def deserialize(params)
  @InstanceId = params['InstanceId']
  @Strategy = params['Strategy']
  @RollbackTime = params['RollbackTime']
  unless params['Databases'].nil?
    @Databases = []
    params['Databases'].each do |i|
      rollbackdbname_tmp = RollbackDBName.new
      rollbackdbname_tmp.deserialize(i)
      @Databases << rollbackdbname_tmp
    end
  end
  unless params['Tables'].nil?
    @Tables = []
    params['Tables'].each do |i|
      rollbacktables_tmp = RollbackTables.new
      rollbacktables_tmp.deserialize(i)
      @Tables << rollbacktables_tmp
    end
  end
end