Class: TencentCloud::Oceanus::V20190422::JobGraph
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Oceanus::V20190422::JobGraph
- Defined in:
- lib/v20190422/models.rb
Overview
作业运行图
Instance Attribute Summary collapse
-
#Edges ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Nodes ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(nodes = nil, edges = nil) ⇒ JobGraph
constructor
A new instance of JobGraph.
Constructor Details
#initialize(nodes = nil, edges = nil) ⇒ JobGraph
Returns a new instance of JobGraph.
3727 3728 3729 3730 |
# File 'lib/v20190422/models.rb', line 3727 def initialize(nodes=nil, edges=nil) @Nodes = nodes @Edges = edges end |
Instance Attribute Details
#Edges ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
3725 3726 3727 |
# File 'lib/v20190422/models.rb', line 3725 def Edges @Edges end |
#Nodes ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
3725 3726 3727 |
# File 'lib/v20190422/models.rb', line 3725 def Nodes @Nodes end |
Instance Method Details
#deserialize(params) ⇒ Object
3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 |
# File 'lib/v20190422/models.rb', line 3732 def deserialize(params) unless params['Nodes'].nil? @Nodes = [] params['Nodes'].each do |i| jobgraphnode_tmp = JobGraphNode.new jobgraphnode_tmp.deserialize(i) @Nodes << jobgraphnode_tmp end end unless params['Edges'].nil? @Edges = [] params['Edges'].each do |i| jobgraphedge_tmp = JobGraphEdge.new jobgraphedge_tmp.deserialize(i) @Edges << jobgraphedge_tmp end end end |