class TencentCloud::Cynosdb::V20190107::RollbackToNewClusterRequest

RollbackToNewCluster请求参数结构体

def deserialize(params)

def deserialize(params)
  @Zone = params['Zone']
  @OriginalClusterId = params['OriginalClusterId']
  @UniqVpcId = params['UniqVpcId']
  @UniqSubnetId = params['UniqSubnetId']
  @ClusterName = params['ClusterName']
  @RollbackId = params['RollbackId']
  @ExpectTime = params['ExpectTime']
  @AutoVoucher = params['AutoVoucher']
  unless params['ResourceTags'].nil?
    @ResourceTags = []
    params['ResourceTags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @ResourceTags << tag_tmp
    end
  end
  @DbMode = params['DbMode']
  @MinCpu = params['MinCpu']
  @MaxCpu = params['MaxCpu']
  @AutoPause = params['AutoPause']
  @AutoPauseDelay = params['AutoPauseDelay']
  @SecurityGroupIds = params['SecurityGroupIds']
  @AlarmPolicyIds = params['AlarmPolicyIds']
  unless params['ClusterParams'].nil?
    @ClusterParams = []
    params['ClusterParams'].each do |i|
      paramitem_tmp = ParamItem.new
      paramitem_tmp.deserialize(i)
      @ClusterParams << paramitem_tmp
    end
  end
  @ParamTemplateId = params['ParamTemplateId']
  unless params['InstanceInitInfos'].nil?
    @InstanceInitInfos = []
    params['InstanceInitInfos'].each do |i|
      instanceinitinfo_tmp = InstanceInitInfo.new
      instanceinitinfo_tmp.deserialize(i)
      @InstanceInitInfos << instanceinitinfo_tmp
    end
  end
  @DealMode = params['DealMode']
  @PayMode = params['PayMode']
  @TimeSpan = params['TimeSpan']
  @TimeUnit = params['TimeUnit']
  unless params['RollbackDatabases'].nil?
    @RollbackDatabases = []
    params['RollbackDatabases'].each do |i|
      rollbackdatabase_tmp = RollbackDatabase.new
      rollbackdatabase_tmp.deserialize(i)
      @RollbackDatabases << rollbackdatabase_tmp
    end
  end
  unless params['RollbackTables'].nil?
    @RollbackTables = []
    params['RollbackTables'].each do |i|
      rollbacktable_tmp = RollbackTable.new
      rollbacktable_tmp.deserialize(i)
      @RollbackTables << rollbacktable_tmp
    end
  end
  @OriginalROInstanceList = params['OriginalROInstanceList']
end

def initialize(zone=nil, originalclusterid=nil, uniqvpcid=nil, uniqsubnetid=nil, clustername=nil, rollbackid=nil, expecttime=nil, autovoucher=nil, resourcetags=nil, dbmode=nil, mincpu=nil, maxcpu=nil, autopause=nil, autopausedelay=nil, securitygroupids=nil, alarmpolicyids=nil, clusterparams=nil, paramtemplateid=nil, instanceinitinfos=nil, dealmode=nil, paymode=nil, timespan=nil, timeunit=nil, rollbackdatabases=nil, rollbacktables=nil, originalroinstancelist=nil)

def initialize(zone=nil, originalclusterid=nil, uniqvpcid=nil, uniqsubnetid=nil, clustername=nil, rollbackid=nil, expecttime=nil, autovoucher=nil, resourcetags=nil, dbmode=nil, mincpu=nil, maxcpu=nil, autopause=nil, autopausedelay=nil, securitygroupids=nil, alarmpolicyids=nil, clusterparams=nil, paramtemplateid=nil, instanceinitinfos=nil, dealmode=nil, paymode=nil, timespan=nil, timeunit=nil, rollbackdatabases=nil, rollbacktables=nil, originalroinstancelist=nil)
  @Zone = zone
  @OriginalClusterId = originalclusterid
  @UniqVpcId = uniqvpcid
  @UniqSubnetId = uniqsubnetid
  @ClusterName = clustername
  @RollbackId = rollbackid
  @ExpectTime = expecttime
  @AutoVoucher = autovoucher
  @ResourceTags = resourcetags
  @DbMode = dbmode
  @MinCpu = mincpu
  @MaxCpu = maxcpu
  @AutoPause = autopause
  @AutoPauseDelay = autopausedelay
  @SecurityGroupIds = securitygroupids
  @AlarmPolicyIds = alarmpolicyids
  @ClusterParams = clusterparams
  @ParamTemplateId = paramtemplateid
  @InstanceInitInfos = instanceinitinfos
  @DealMode = dealmode
  @PayMode = paymode
  @TimeSpan = timespan
  @TimeUnit = timeunit
  @RollbackDatabases = rollbackdatabases
  @RollbackTables = rollbacktables
  @OriginalROInstanceList = originalroinstancelist
end