Reference documentation and code samples for the Google Cloud Dataproc V1 Client class ResizeNodeGroupRequest.
A request to resize a node group.
Generated from protobuf messagegoogle.cloud.dataproc.v1.ResizeNodeGroupRequest
Namespace
Google \ Cloud \ Dataproc \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The name of the node group to resize. Format:projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}
↳ size
int
Required. The number of running instances for the node group to maintain. The group adds or removes instances to maintain the number of instances specified by this parameter.
↳ request_id
string
Optional. A unique ID used to identify the request. If the server receives twoResizeNodeGroupRequestwith the same ID, the second request is ignored and the firstgoogle.longrunning.Operationcreated and stored in the backend is returned. Recommendation: Set this value to aUUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
Optional. Timeout for graceful YARN decommissioning.Graceful decommissioningallows the removal of nodes from the Compute Engine node group without interrupting jobs in progress. This timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day. (see JSON representation ofDuration). Only supported on Dataproc image versions 1.2 and higher.
Required. The number of running instances for the node group to maintain.
The group adds or removes instances to maintain the number of instances
specified by this parameter.
Returns
Type
Description
int
setSize
Required. The number of running instances for the node group to maintain.
The group adds or removes instances to maintain the number of instances
specified by this parameter.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getRequestId
Optional. A unique ID used to identify the request. If the server receives
twoResizeNodeGroupRequestwith the same ID, the second request is ignored and the
firstgoogle.longrunning.Operationcreated
and stored in the backend is returned.
Recommendation: Set this value to aUUID.
The ID must contain only letters (a-z, A-Z), numbers (0-9),
underscores (_), and hyphens (-). The maximum length is 40 characters.
Returns
Type
Description
string
setRequestId
Optional. A unique ID used to identify the request. If the server receives
twoResizeNodeGroupRequestwith the same ID, the second request is ignored and the
firstgoogle.longrunning.Operationcreated
and stored in the backend is returned.
Recommendation: Set this value to aUUID.
The ID must contain only letters (a-z, A-Z), numbers (0-9),
underscores (_), and hyphens (-). The maximum length is 40 characters.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getGracefulDecommissionTimeout
Optional. Timeout for graceful YARN decommissioning.Graceful
decommissioningallows the removal of nodes from the Compute Engine node group
without interrupting jobs in progress. This timeout specifies how long to
wait for jobs in progress to finish before forcefully removing nodes (and
potentially interrupting jobs). Default timeout is 0 (for forceful
decommission), and the maximum allowed timeout is 1 day. (see JSON
representation ofDuration).
Only supported on Dataproc image versions 1.2 and higher.
Optional. Timeout for graceful YARN decommissioning.Graceful
decommissioningallows the removal of nodes from the Compute Engine node group
without interrupting jobs in progress. This timeout specifies how long to
wait for jobs in progress to finish before forcefully removing nodes (and
potentially interrupting jobs). Default timeout is 0 (for forceful
decommission), and the maximum allowed timeout is 1 day. (see JSON
representation ofDuration).
Only supported on Dataproc image versions 1.2 and higher.
Required. The name of the node group to resize.
Format:projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}
size
int
Required. The number of running instances for the node group to maintain.
The group adds or removes instances to maintain the number of instances
specified by this parameter.
[[["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 ResizeNodeGroupRequest (3.14.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.14.0 (latest)](/php/docs/reference/cloud-dataproc/latest/V1.ResizeNodeGroupRequest)\n- [3.13.4](/php/docs/reference/cloud-dataproc/3.13.4/V1.ResizeNodeGroupRequest)\n- [3.12.0](/php/docs/reference/cloud-dataproc/3.12.0/V1.ResizeNodeGroupRequest)\n- [3.11.0](/php/docs/reference/cloud-dataproc/3.11.0/V1.ResizeNodeGroupRequest)\n- [3.10.1](/php/docs/reference/cloud-dataproc/3.10.1/V1.ResizeNodeGroupRequest)\n- [3.9.0](/php/docs/reference/cloud-dataproc/3.9.0/V1.ResizeNodeGroupRequest)\n- [3.8.1](/php/docs/reference/cloud-dataproc/3.8.1/V1.ResizeNodeGroupRequest)\n- [3.7.1](/php/docs/reference/cloud-dataproc/3.7.1/V1.ResizeNodeGroupRequest)\n- [3.6.1](/php/docs/reference/cloud-dataproc/3.6.1/V1.ResizeNodeGroupRequest)\n- [3.5.1](/php/docs/reference/cloud-dataproc/3.5.1/V1.ResizeNodeGroupRequest)\n- [3.4.0](/php/docs/reference/cloud-dataproc/3.4.0/V1.ResizeNodeGroupRequest)\n- [3.3.0](/php/docs/reference/cloud-dataproc/3.3.0/V1.ResizeNodeGroupRequest)\n- [3.2.2](/php/docs/reference/cloud-dataproc/3.2.2/V1.ResizeNodeGroupRequest)\n- [2.6.1](/php/docs/reference/cloud-dataproc/2.6.1/V1.ResizeNodeGroupRequest)\n- [2.5.0](/php/docs/reference/cloud-dataproc/2.5.0/V1.ResizeNodeGroupRequest)\n- [2.3.0](/php/docs/reference/cloud-dataproc/2.3.0/V1.ResizeNodeGroupRequest)\n- [2.2.3](/php/docs/reference/cloud-dataproc/2.2.3/V1.ResizeNodeGroupRequest)\n- [2.1.0](/php/docs/reference/cloud-dataproc/2.1.0/V1.ResizeNodeGroupRequest)\n- [2.0.0](/php/docs/reference/cloud-dataproc/2.0.0/V1.ResizeNodeGroupRequest) \nReference documentation and code samples for the Google Cloud Dataproc V1 Client class ResizeNodeGroupRequest.\n\nA request to resize a node group.\n\nGenerated from protobuf message `google.cloud.dataproc.v1.ResizeNodeGroupRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dataproc \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The name of the node group to resize.\n\nFormat:\n`projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`\n\n### setName\n\nRequired. The name of the node group to resize.\n\nFormat:\n`projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`\n\n### getSize\n\nRequired. The number of running instances for the node group to maintain.\n\nThe group adds or removes instances to maintain the number of instances\nspecified by this parameter.\n\n### setSize\n\nRequired. The number of running instances for the node group to maintain.\n\nThe group adds or removes instances to maintain the number of instances\nspecified by this parameter.\n\n### getRequestId\n\nOptional. A unique ID used to identify the request. If the server receives\ntwo\n[ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)\nwith the same ID, the second request is ignored and the\nfirst google.longrunning.Operation created\nand stored in the backend is returned.\n\nRecommendation: Set this value to a\n[UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).\nThe ID must contain only letters (a-z, A-Z), numbers (0-9),\nunderscores (_), and hyphens (-). The maximum length is 40 characters.\n\n### setRequestId\n\nOptional. A unique ID used to identify the request. If the server receives\ntwo\n[ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)\nwith the same ID, the second request is ignored and the\nfirst google.longrunning.Operation created\nand stored in the backend is returned.\n\nRecommendation: Set this value to a\n[UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).\nThe ID must contain only letters (a-z, A-Z), numbers (0-9),\nunderscores (_), and hyphens (-). The maximum length is 40 characters.\n\n### getGracefulDecommissionTimeout\n\nOptional. Timeout for graceful YARN decommissioning. [Graceful\ndecommissioning](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)\nallows the removal of nodes from the Compute Engine node group\nwithout interrupting jobs in progress. This timeout specifies how long to\nwait for jobs in progress to finish before forcefully removing nodes (and\npotentially interrupting jobs). Default timeout is 0 (for forceful\ndecommission), and the maximum allowed timeout is 1 day. (see JSON\nrepresentation of\n[Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n\nOnly supported on Dataproc image versions 1.2 and higher.\n\n### hasGracefulDecommissionTimeout\n\n### clearGracefulDecommissionTimeout\n\n### setGracefulDecommissionTimeout\n\nOptional. Timeout for graceful YARN decommissioning. [Graceful\ndecommissioning](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)\nallows the removal of nodes from the Compute Engine node group\nwithout interrupting jobs in progress. This timeout specifies how long to\nwait for jobs in progress to finish before forcefully removing nodes (and\npotentially interrupting jobs). Default timeout is 0 (for forceful\ndecommission), and the maximum allowed timeout is 1 day. (see JSON\nrepresentation of\n[Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n\nOnly supported on Dataproc image versions 1.2 and higher.\n\n### static::build"]]