Google Cloud Dataproc V1 Client - Class WorkflowTemplatePlacement (3.10.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
NameDescription
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
TypeDescription
Google\Cloud\Dataproc\V1\ManagedCluster|null

hasManagedCluster

setManagedCluster

A cluster that is managed by the workflow.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\ManagedCluster
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Cloud\Dataproc\V1\ClusterSelector
Returns
TypeDescription
$this

getPlacement

Returns
TypeDescription
string