Google Cloud Dataproc V1 Client - Class WorkflowTemplatePlacement (2.2.1)

Reference documentation and code samples for the Google Cloud Dataproc V1 Client class WorkflowTemplatePlacement.

Specifies workflow execution target.

Either managed_cluster or cluster_selector is required.

Generated from protobuf message google.cloud.dataproc.v1.WorkflowTemplatePlacement

Namespace

Google \ Cloud \ Dataproc \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ managed_cluster ManagedCluster

A cluster that is managed by the workflow.

↳ cluster_selector ClusterSelector

Optional. A selector that chooses target cluster for jobs based on metadata. The selector is evaluated at the time each job is submitted.

getManagedCluster

A cluster that is managed by the workflow.

Returns
Type Description
ManagedCluster|null

hasManagedCluster

setManagedCluster

A cluster that is managed by the workflow.

Parameter
Name Description
var ManagedCluster
Returns
Type Description
$this

getClusterSelector

Optional. A selector that chooses target cluster for jobs based on metadata.

The selector is evaluated at the time each job is submitted.

Returns
Type Description
ClusterSelector|null

hasClusterSelector

setClusterSelector

Optional. A selector that chooses target cluster for jobs based on metadata.

The selector is evaluated at the time each job is submitted.

Parameter
Name Description
var ClusterSelector
Returns
Type Description
$this

getPlacement

Returns
Type Description
string