Class: TencentCloud::Batch::V20170312::DescribeJobSubmitInfoResponse

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

Overview

DescribeJobSubmitInfo返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(jobid = nil, jobname = nil, jobdescription = nil, priority = nil, tasks = nil, dependences = nil, tags = nil, requestid = nil) ⇒ DescribeJobSubmitInfoResponse



1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
# File 'lib/v20170312/models.rb', line 1644

def initialize(jobid=nil, jobname=nil, jobdescription=nil, priority=nil, tasks=nil, dependences=nil, tags=nil, requestid=nil)
  @JobId = jobid
  @JobName = jobname
  @JobDescription = jobdescription
  @Priority = priority
  @Tasks = tasks
  @Dependences = dependences
  @Tags = tags
  @RequestId = requestid
end

Instance Attribute Details

#DependencesObject

注意:此字段可能返回 null,表示取不到有效值。



1642
1643
1644
# File 'lib/v20170312/models.rb', line 1642

def Dependences
  @Dependences
end

#JobDescriptionObject

注意:此字段可能返回 null,表示取不到有效值。



1642
1643
1644
# File 'lib/v20170312/models.rb', line 1642

def JobDescription
  @JobDescription
end

#JobIdObject

注意:此字段可能返回 null,表示取不到有效值。



1642
1643
1644
# File 'lib/v20170312/models.rb', line 1642

def JobId
  @JobId
end

#JobNameObject

注意:此字段可能返回 null,表示取不到有效值。



1642
1643
1644
# File 'lib/v20170312/models.rb', line 1642

def JobName
  @JobName
end

#PriorityObject

注意:此字段可能返回 null,表示取不到有效值。



1642
1643
1644
# File 'lib/v20170312/models.rb', line 1642

def Priority
  @Priority
end

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。



1642
1643
1644
# File 'lib/v20170312/models.rb', line 1642

def RequestId
  @RequestId
end

#TagsObject

注意:此字段可能返回 null,表示取不到有效值。



1642
1643
1644
# File 'lib/v20170312/models.rb', line 1642

def Tags
  @Tags
end

#TasksObject

注意:此字段可能返回 null,表示取不到有效值。



1642
1643
1644
# File 'lib/v20170312/models.rb', line 1642

def Tasks
  @Tasks
end

Instance Method Details

#deserialize(params) ⇒ Object



1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
# File 'lib/v20170312/models.rb', line 1655

def deserialize(params)
  @JobId = params['JobId']
  @JobName = params['JobName']
  @JobDescription = params['JobDescription']
  @Priority = params['Priority']
  unless params['Tasks'].nil?
    @Tasks = []
    params['Tasks'].each do |i|
      task_tmp = Task.new
      task_tmp.deserialize(i)
      @Tasks << task_tmp
    end
  end
  unless params['Dependences'].nil?
    @Dependences = []
    params['Dependences'].each do |i|
      dependence_tmp = Dependence.new
      dependence_tmp.deserialize(i)
      @Dependences << dependence_tmp
    end
  end
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  @RequestId = params['RequestId']
end