# Cloud Dataproc V1beta2 API - Class Google::Cloud::Dataproc::V1beta2::WorkflowMetadata (v0.6.3)

Reference documentation and code samples for the Cloud Dataproc V1beta2 API class Google::Cloud::Dataproc::V1beta2::WorkflowMetadata.

A Dataproc workflow template resource.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cluster_name

    def cluster_name() -> ::String

**Returns**

- (::String) --- Output only. The name of the target cluster.

### #cluster_uuid

    def cluster_uuid() -> ::String

**Returns**

- (::String) --- Output only. The UUID of target cluster.

### #create_cluster

    def create_cluster() -> ::Google::Cloud::Dataproc::V1beta2::ClusterOperation

**Returns**

- ([::Google::Cloud::Dataproc::V1beta2::ClusterOperation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataproc-v1beta2/latest/Google-Cloud-Dataproc-V1beta2-ClusterOperation)) --- Output only. The create cluster operation metadata.

### #dag_end_time

    def dag_end_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataproc-v1beta2/latest/Google-Protobuf-Timestamp)) --- Output only. DAG end time, which is only set for workflows with [dag_timeout](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataproc-v1beta2/latest/Google-Cloud-Dataproc-V1beta2-WorkflowMetadata#Google__Cloud__Dataproc__V1beta2__WorkflowMetadata_dag_timeout_instance_ "Google::Cloud::Dataproc::V1beta2::WorkflowMetadata#dag_timeout (method)") when the DAG ends.

### #dag_start_time

    def dag_start_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataproc-v1beta2/latest/Google-Protobuf-Timestamp)) --- Output only. DAG start time, which is only set for workflows with [dag_timeout](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataproc-v1beta2/latest/Google-Cloud-Dataproc-V1beta2-WorkflowMetadata#Google__Cloud__Dataproc__V1beta2__WorkflowMetadata_dag_timeout_instance_ "Google::Cloud::Dataproc::V1beta2::WorkflowMetadata#dag_timeout (method)") when the DAG begins.

### #dag_timeout

    def dag_timeout() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataproc-v1beta2/latest/Google-Protobuf-Duration)) --- Output only. The timeout duration for the DAG of jobs. Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed as a \[google.protobuf.Duration\]\[https://developers.google.com/protocol-buffers/docs/proto3#json_mapping\]. For example, "1800" = 1800 seconds/30 minutes duration.

### #delete_cluster

    def delete_cluster() -> ::Google::Cloud::Dataproc::V1beta2::ClusterOperation

**Returns**

- ([::Google::Cloud::Dataproc::V1beta2::ClusterOperation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataproc-v1beta2/latest/Google-Cloud-Dataproc-V1beta2-ClusterOperation)) --- Output only. The delete cluster operation metadata.

### #end_time

    def end_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataproc-v1beta2/latest/Google-Protobuf-Timestamp)) --- Output only. Workflow end time.

### #graph

    def graph() -> ::Google::Cloud::Dataproc::V1beta2::WorkflowGraph

**Returns**

- ([::Google::Cloud::Dataproc::V1beta2::WorkflowGraph](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataproc-v1beta2/latest/Google-Cloud-Dataproc-V1beta2-WorkflowGraph)) --- Output only. The workflow graph.

### #parameters

    def parameters() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Map from parameter names to values that were used for those parameters.

### #parameters=

    def parameters=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Map from parameter names to values that were used for those parameters.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Map from parameter names to values that were used for those parameters.

### #start_time

    def start_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataproc-v1beta2/latest/Google-Protobuf-Timestamp)) --- Output only. Workflow start time.

### #state

    def state() -> ::Google::Cloud::Dataproc::V1beta2::WorkflowMetadata::State

**Returns**

- ([::Google::Cloud::Dataproc::V1beta2::WorkflowMetadata::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataproc-v1beta2/latest/Google-Cloud-Dataproc-V1beta2-WorkflowMetadata-State)) --- Output only. The workflow state.

### #template

    def template() -> ::String

**Returns**

- (::String) --- 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}`

### #version

    def version() -> ::Integer

**Returns**

- (::Integer) --- Output only. The version of template at the time of workflow instantiation.