Class: TencentCloud::Msp::V20180319::Task

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

Overview

迁移任务类别

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(taskid = nil, taskname = nil, migrationtype = nil, status = nil, projectid = nil, projectname = nil, srcinfo = nil, migrationtimeline = nil, updated = nil, dstinfo = nil) ⇒ Task



460
461
462
463
464
465
466
467
468
469
470
471
# File 'lib/v20180319/models.rb', line 460

def initialize(taskid=nil, taskname=nil, migrationtype=nil, status=nil, projectid=nil, projectname=nil, srcinfo=nil, migrationtimeline=nil, updated=nil, dstinfo=nil)
  @TaskId = taskid
  @TaskName = taskname
  @MigrationType = migrationtype
  @Status = status
  @ProjectId = projectid
  @ProjectName = projectname
  @SrcInfo = srcinfo
  @MigrationTimeLine = migrationtimeline
  @Updated = updated
  @DstInfo = dstinfo
end

Instance Attribute Details

#DstInfoObject



458
459
460
# File 'lib/v20180319/models.rb', line 458

def DstInfo
  @DstInfo
end

#MigrationTimeLineObject



458
459
460
# File 'lib/v20180319/models.rb', line 458

def MigrationTimeLine
  @MigrationTimeLine
end

#MigrationTypeObject



458
459
460
# File 'lib/v20180319/models.rb', line 458

def MigrationType
  @MigrationType
end

#ProjectIdObject



458
459
460
# File 'lib/v20180319/models.rb', line 458

def ProjectId
  @ProjectId
end

#ProjectNameObject



458
459
460
# File 'lib/v20180319/models.rb', line 458

def ProjectName
  @ProjectName
end

#SrcInfoObject



458
459
460
# File 'lib/v20180319/models.rb', line 458

def SrcInfo
  @SrcInfo
end

#StatusObject



458
459
460
# File 'lib/v20180319/models.rb', line 458

def Status
  @Status
end

#TaskIdObject



458
459
460
# File 'lib/v20180319/models.rb', line 458

def TaskId
  @TaskId
end

#TaskNameObject



458
459
460
# File 'lib/v20180319/models.rb', line 458

def TaskName
  @TaskName
end

#UpdatedObject



458
459
460
# File 'lib/v20180319/models.rb', line 458

def Updated
  @Updated
end

Instance Method Details

#deserialize(params) ⇒ Object



473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
# File 'lib/v20180319/models.rb', line 473

def deserialize(params)
  @TaskId = params['TaskId']
  @TaskName = params['TaskName']
  @MigrationType = params['MigrationType']
  @Status = params['Status']
  @ProjectId = params['ProjectId']
  @ProjectName = params['ProjectName']
  unless params['SrcInfo'].nil?
    @SrcInfo = SrcInfo.new
    @SrcInfo.deserialize(params['SrcInfo'])
  end
  unless params['MigrationTimeLine'].nil?
    @MigrationTimeLine = TimeObj.new
    @MigrationTimeLine.deserialize(params['MigrationTimeLine'])
  end
  @Updated = params['Updated']
  unless params['DstInfo'].nil?
    @DstInfo = DstInfo.new
    @DstInfo.deserialize(params['DstInfo'])
  end
end