class Google::Apis::DataprocV1beta2::WorkflowMetadata

A Dataproc workflow template resource.

Attributes

cluster_name[RW]

Output only. The name of the target cluster. Corresponds to the JSON property `clusterName` @return [String]

cluster_uuid[RW]

Output only. The UUID of target cluster. Corresponds to the JSON property `clusterUuid` @return [String]

create_cluster[RW]

The cluster operation triggered by a workflow. Corresponds to the JSON property `createCluster` @return [Google::Apis::DataprocV1beta2::ClusterOperation]

dag_end_time[RW]

Output only. DAG end time, which is only set for workflows with dag_timeout when the DAG ends. Corresponds to the JSON property `dagEndTime` @return [String]

dag_start_time[RW]

Output only. DAG start time, which is only set for workflows with dag_timeout when the DAG begins. Corresponds to the JSON property `dagStartTime` @return [String]

dag_timeout[RW]

Output only. The timeout duration for the DAG of jobs, expressed in seconds ( see JSON representation of duration (developers.google.com/protocol- buffers/docs/proto3#json)). Corresponds to the JSON property `dagTimeout` @return [String]

delete_cluster[RW]

The cluster operation triggered by a workflow. Corresponds to the JSON property `deleteCluster` @return [Google::Apis::DataprocV1beta2::ClusterOperation]

end_time[RW]

Output only. Workflow end time. Corresponds to the JSON property `endTime` @return [String]

graph[RW]

The workflow graph. Corresponds to the JSON property `graph` @return [Google::Apis::DataprocV1beta2::WorkflowGraph]

parameters[RW]

Map from parameter names to values that were used for those parameters. Corresponds to the JSON property `parameters` @return [Hash<String,String>]

start_time[RW]

Output only. Workflow start time. Corresponds to the JSON property `startTime` @return [String]

state[RW]

Output only. The workflow state. Corresponds to the JSON property `state` @return [String]

template[RW]

Output only. The resource name of the workflow template as described in https:/ /cloud.google.com/apis/design/resource_names. For projects.regions. workflowTemplates, the resource name of the template has the following format: projects/`project_id`/regions/`region`/workflowTemplates/`template_id` For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/`project_id`/locations/`location`/ workflowTemplates/`template_id` Corresponds to the JSON property `template` @return [String]

version[RW]

Output only. The version of template at the time of workflow instantiation. Corresponds to the JSON property `version` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dataproc_v1beta2/classes.rb, line 3569
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dataproc_v1beta2/classes.rb, line 3574
def update!(**args)
  @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
  @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
  @create_cluster = args[:create_cluster] if args.key?(:create_cluster)
  @dag_end_time = args[:dag_end_time] if args.key?(:dag_end_time)
  @dag_start_time = args[:dag_start_time] if args.key?(:dag_start_time)
  @dag_timeout = args[:dag_timeout] if args.key?(:dag_timeout)
  @delete_cluster = args[:delete_cluster] if args.key?(:delete_cluster)
  @end_time = args[:end_time] if args.key?(:end_time)
  @graph = args[:graph] if args.key?(:graph)
  @parameters = args[:parameters] if args.key?(:parameters)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
  @template = args[:template] if args.key?(:template)
  @version = args[:version] if args.key?(:version)
end