Class: Google::Apis::DataprocV1::WorkflowMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dataproc_v1/classes.rb,
generated/google/apis/dataproc_v1/representations.rb,
generated/google/apis/dataproc_v1/representations.rb

Overview

A Cloud Dataproc workflow template resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ WorkflowMetadata

Returns a new instance of WorkflowMetadata



1789
1790
1791
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1789

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cluster_nameString

Output only. The name of the managed cluster. Corresponds to the JSON property clusterName

Returns:

  • (String)


1752
1753
1754
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1752

def cluster_name
  @cluster_name
end

#create_clusterGoogle::Apis::DataprocV1::ClusterOperation

The cluster operation triggered by a workflow. Corresponds to the JSON property createCluster



1757
1758
1759
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1757

def create_cluster
  @create_cluster
end

#delete_clusterGoogle::Apis::DataprocV1::ClusterOperation

The cluster operation triggered by a workflow. Corresponds to the JSON property deleteCluster



1762
1763
1764
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1762

def delete_cluster
  @delete_cluster
end

#graphGoogle::Apis::DataprocV1::WorkflowGraph

The workflow graph. Corresponds to the JSON property graph



1767
1768
1769
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1767

def graph
  @graph
end

#parametersHash<String,String>

Map from parameter names to values that were used for those parameters. Corresponds to the JSON property parameters

Returns:

  • (Hash<String,String>)


1772
1773
1774
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1772

def parameters
  @parameters
end

#stateString

Output only. The workflow state. Corresponds to the JSON property state

Returns:

  • (String)


1777
1778
1779
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1777

def state
  @state
end

#templateString

Output only. The "resource name" of the template. Corresponds to the JSON property template

Returns:

  • (String)


1782
1783
1784
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1782

def template
  @template
end

#versionFixnum

Output only. The version of template at the time of workflow instantiation. Corresponds to the JSON property version

Returns:

  • (Fixnum)


1787
1788
1789
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1787

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1794

def update!(**args)
  @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
  @create_cluster = args[:create_cluster] if args.key?(:create_cluster)
  @delete_cluster = args[:delete_cluster] if args.key?(:delete_cluster)
  @graph = args[:graph] if args.key?(:graph)
  @parameters = args[:parameters] if args.key?(:parameters)
  @state = args[:state] if args.key?(:state)
  @template = args[:template] if args.key?(:template)
  @version = args[:version] if args.key?(:version)
end