Reference documentation and code samples for the Google Cloud Dataproc V1 Client class ManagedCluster.
Cluster that is managed by the workflow.
Generated from protobuf messagegoogle.cloud.dataproc.v1.ManagedCluster
Namespace
Google \ Cloud \ Dataproc \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ cluster_name
string
Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix. The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters.
Optional. The labels to associate with this cluster. Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}-]{0,62} Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}-]{0,63} No more than 32 labels can be associated with a given cluster.
getClusterName
Required. The cluster name prefix. A unique cluster name will be formed by
appending a random suffix.
The name must contain only lower-case letters (a-z), numbers (0-9),
and hyphens (-). Must begin with a letter. Cannot begin or end with
hyphen. Must consist of between 2 and 35 characters.
Returns
Type
Description
string
setClusterName
Required. The cluster name prefix. A unique cluster name will be formed by
appending a random suffix.
The name must contain only lower-case letters (a-z), numbers (0-9),
and hyphens (-). Must begin with a letter. Cannot begin or end with
hyphen. Must consist of between 2 and 35 characters.
Optional. The labels to associate with this cluster.
Label keys must be between 1 and 63 characters long, and must conform to
the following PCRE regular expression:
[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}-]{0,62}
Label values must be between 1 and 63 characters long, and must conform to
the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}-]{0,63}
No more than 32 labels can be associated with a given cluster.
Optional. The labels to associate with this cluster.
Label keys must be between 1 and 63 characters long, and must conform to
the following PCRE regular expression:
[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}-]{0,62}
Label values must be between 1 and 63 characters long, and must conform to
the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}-]{0,63}
No more than 32 labels can be associated with a given cluster.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dataproc V1 Client - Class ManagedCluster (3.14.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.14.0 (latest)](/php/docs/reference/cloud-dataproc/latest/V1.ManagedCluster)\n- [3.13.4](/php/docs/reference/cloud-dataproc/3.13.4/V1.ManagedCluster)\n- [3.12.0](/php/docs/reference/cloud-dataproc/3.12.0/V1.ManagedCluster)\n- [3.11.0](/php/docs/reference/cloud-dataproc/3.11.0/V1.ManagedCluster)\n- [3.10.1](/php/docs/reference/cloud-dataproc/3.10.1/V1.ManagedCluster)\n- [3.9.0](/php/docs/reference/cloud-dataproc/3.9.0/V1.ManagedCluster)\n- [3.8.1](/php/docs/reference/cloud-dataproc/3.8.1/V1.ManagedCluster)\n- [3.7.1](/php/docs/reference/cloud-dataproc/3.7.1/V1.ManagedCluster)\n- [3.6.1](/php/docs/reference/cloud-dataproc/3.6.1/V1.ManagedCluster)\n- [3.5.1](/php/docs/reference/cloud-dataproc/3.5.1/V1.ManagedCluster)\n- [3.4.0](/php/docs/reference/cloud-dataproc/3.4.0/V1.ManagedCluster)\n- [3.3.0](/php/docs/reference/cloud-dataproc/3.3.0/V1.ManagedCluster)\n- [3.2.2](/php/docs/reference/cloud-dataproc/3.2.2/V1.ManagedCluster)\n- [2.6.1](/php/docs/reference/cloud-dataproc/2.6.1/V1.ManagedCluster)\n- [2.5.0](/php/docs/reference/cloud-dataproc/2.5.0/V1.ManagedCluster)\n- [2.3.0](/php/docs/reference/cloud-dataproc/2.3.0/V1.ManagedCluster)\n- [2.2.3](/php/docs/reference/cloud-dataproc/2.2.3/V1.ManagedCluster)\n- [2.1.0](/php/docs/reference/cloud-dataproc/2.1.0/V1.ManagedCluster)\n- [2.0.0](/php/docs/reference/cloud-dataproc/2.0.0/V1.ManagedCluster) \nReference documentation and code samples for the Google Cloud Dataproc V1 Client class ManagedCluster.\n\nCluster that is managed by the workflow.\n\nGenerated from protobuf message `google.cloud.dataproc.v1.ManagedCluster`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dataproc \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getClusterName\n\nRequired. The cluster name prefix. A unique cluster name will be formed by\nappending a random suffix.\n\nThe name must contain only lower-case letters (a-z), numbers (0-9),\nand hyphens (-). Must begin with a letter. Cannot begin or end with\nhyphen. Must consist of between 2 and 35 characters.\n\n### setClusterName\n\nRequired. The cluster name prefix. A unique cluster name will be formed by\nappending a random suffix.\n\nThe name must contain only lower-case letters (a-z), numbers (0-9),\nand hyphens (-). Must begin with a letter. Cannot begin or end with\nhyphen. Must consist of between 2 and 35 characters.\n\n### getConfig\n\nRequired. The cluster configuration.\n\n### hasConfig\n\n### clearConfig\n\n### setConfig\n\nRequired. The cluster configuration.\n\n### getLabels\n\nOptional. The labels to associate with this cluster.\n\nLabel keys must be between 1 and 63 characters long, and must conform to\nthe following PCRE regular expression:\n\\[\\\\p{Ll}\\\\p{Lo}\\]\\[\\\\p{Ll}\\\\p{Lo}\\\\p{N}*-\\]{0,62}\nLabel values must be between 1 and 63 characters long, and must conform to\nthe following PCRE regular expression: \\[\\\\p{Ll}\\\\p{Lo}\\\\p{N}*-\\]{0,63}\nNo more than 32 labels can be associated with a given cluster.\n\n### setLabels\n\nOptional. The labels to associate with this cluster.\n\nLabel keys must be between 1 and 63 characters long, and must conform to\nthe following PCRE regular expression:\n\\[\\\\p{Ll}\\\\p{Lo}\\]\\[\\\\p{Ll}\\\\p{Lo}\\\\p{N}*-\\]{0,62}\nLabel values must be between 1 and 63 characters long, and must conform to\nthe following PCRE regular expression: \\[\\\\p{Ll}\\\\p{Lo}\\\\p{N}*-\\]{0,63}\nNo more than 32 labels can be associated with a given cluster."]]