Google Cloud Dataproc V1 Client - Class WorkflowTemplatePlacement (3.13.4)

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 Google\Cloud\Dataproc\V1\ManagedCluster

A cluster that is managed by the workflow.

↳ cluster_selector Google\Cloud\Dataproc\V1\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
Google\Cloud\Dataproc\V1\ManagedCluster|null

hasManagedCluster

setManagedCluster

A cluster that is managed by the workflow.

Parameter
Name Description
var Google\Cloud\Dataproc\V1\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
Google\Cloud\Dataproc\V1\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 Google\Cloud\Dataproc\V1\ClusterSelector
Returns
Type Description
$this

getPlacement

Returns
Type Description
string