Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.
Required. The roles associated with the GKE node pool.
Parameter
Name
Description
var
int[]
Returns
Type
Description
$this
getNodePoolConfig
Input only. The configuration for the GKE node pool.
If specified, Dataproc attempts to create a node pool with the
specified shape. If one with the same name already exists, it is
verified against all specified fields. If a field differs, the
virtual cluster creation will fail.
If omitted, any node pool with the specified name is used. If a
node pool with the specified name does not exist, Dataproc create a
node pool with default values.
This is an input only field. It will not be returned by the API.
Input only. The configuration for the GKE node pool.
If specified, Dataproc attempts to create a node pool with the
specified shape. If one with the same name already exists, it is
verified against all specified fields. If a field differs, the
virtual cluster creation will fail.
If omitted, any node pool with the specified name is used. If a
node pool with the specified name does not exist, Dataproc create a
node pool with default values.
This is an input only field. It will not be returned by the API.
[[["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 GkeNodePoolTarget (3.14.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.14.0 (latest)](/php/docs/reference/cloud-dataproc/latest/V1.GkeNodePoolTarget)\n- [3.13.4](/php/docs/reference/cloud-dataproc/3.13.4/V1.GkeNodePoolTarget)\n- [3.12.0](/php/docs/reference/cloud-dataproc/3.12.0/V1.GkeNodePoolTarget)\n- [3.11.0](/php/docs/reference/cloud-dataproc/3.11.0/V1.GkeNodePoolTarget)\n- [3.10.1](/php/docs/reference/cloud-dataproc/3.10.1/V1.GkeNodePoolTarget)\n- [3.9.0](/php/docs/reference/cloud-dataproc/3.9.0/V1.GkeNodePoolTarget)\n- [3.8.1](/php/docs/reference/cloud-dataproc/3.8.1/V1.GkeNodePoolTarget)\n- [3.7.1](/php/docs/reference/cloud-dataproc/3.7.1/V1.GkeNodePoolTarget)\n- [3.6.1](/php/docs/reference/cloud-dataproc/3.6.1/V1.GkeNodePoolTarget)\n- [3.5.1](/php/docs/reference/cloud-dataproc/3.5.1/V1.GkeNodePoolTarget)\n- [3.4.0](/php/docs/reference/cloud-dataproc/3.4.0/V1.GkeNodePoolTarget)\n- [3.3.0](/php/docs/reference/cloud-dataproc/3.3.0/V1.GkeNodePoolTarget)\n- [3.2.2](/php/docs/reference/cloud-dataproc/3.2.2/V1.GkeNodePoolTarget)\n- [2.6.1](/php/docs/reference/cloud-dataproc/2.6.1/V1.GkeNodePoolTarget)\n- [2.5.0](/php/docs/reference/cloud-dataproc/2.5.0/V1.GkeNodePoolTarget)\n- [2.3.0](/php/docs/reference/cloud-dataproc/2.3.0/V1.GkeNodePoolTarget)\n- [2.2.3](/php/docs/reference/cloud-dataproc/2.2.3/V1.GkeNodePoolTarget)\n- [2.1.0](/php/docs/reference/cloud-dataproc/2.1.0/V1.GkeNodePoolTarget)\n- [2.0.0](/php/docs/reference/cloud-dataproc/2.0.0/V1.GkeNodePoolTarget) \nReference documentation and code samples for the Google Cloud Dataproc V1 Client class GkeNodePoolTarget.\n\nGKE node pools that Dataproc workloads run on.\n\nGenerated from protobuf message `google.cloud.dataproc.v1.GkeNodePoolTarget`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dataproc \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getNodePool\n\nRequired. The target GKE node pool.\n\nFormat:\n'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'\n\n### setNodePool\n\nRequired. The target GKE node pool.\n\nFormat:\n'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'\n\n### getRoles\n\nRequired. The roles associated with the GKE node pool.\n\n### setRoles\n\nRequired. The roles associated with the GKE node pool.\n\n### getNodePoolConfig\n\nInput only. The configuration for the GKE node pool.\n\nIf specified, Dataproc attempts to create a node pool with the\nspecified shape. If one with the same name already exists, it is\nverified against all specified fields. If a field differs, the\nvirtual cluster creation will fail.\nIf omitted, any node pool with the specified name is used. If a\nnode pool with the specified name does not exist, Dataproc create a\nnode pool with default values.\nThis is an input only field. It will not be returned by the API.\n\n### hasNodePoolConfig\n\n### clearNodePoolConfig\n\n### setNodePoolConfig\n\nInput only. The configuration for the GKE node pool.\n\nIf specified, Dataproc attempts to create a node pool with the\nspecified shape. If one with the same name already exists, it is\nverified against all specified fields. If a field differs, the\nvirtual cluster creation will fail.\nIf omitted, any node pool with the specified name is used. If a\nnode pool with the specified name does not exist, Dataproc create a\nnode pool with default values.\nThis is an input only field. It will not be returned by the API."]]