5.29.0 (latest) 5.28.0 5.27.0 5.26.0 5.25.0 5.24.0 5.23.0 5.22.0 5.21.0 5.20.0 5.19.0 5.18.0 5.17.0 5.16.0 5.15.0 5.14.0 5.13.0 5.12.0 5.11.0 5.10.0 5.9.0 5.8.0 5.7.0 5.6.0 5.5.0 5.4.0 5.3.0 5.2.0 5.1.0 5.0.0 4.0.0 3.4.0 3.3.0 3.2.0 3.1.0

```javascript
public sealed class ResizeNodeGroupRequest : IMessage<ResizeNodeGroupRequest>, IEquatable<ResizeNodeGroupRequest>, IDeepCloneable<ResizeNodeGroupRequest>, IBufferMessage, IMessage
```
Reference documentation and code samples for the Google Cloud Dataproc v1 API class ResizeNodeGroupRequest.

A request to resize a node group.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ResizeNodeGroupRequest

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ResizeNodeGroupRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.ResizeNodeGroupRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ResizeNodeGroupRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.ResizeNodeGroupRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ResizeNodeGroupRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.ResizeNodeGroupRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dataproc.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.md.txt)

## Assembly

Google.Cloud.Dataproc.V1.dll

## Constructors

### ResizeNodeGroupRequest()

```javascript
public ResizeNodeGroupRequest()
```

### ResizeNodeGroupRequest(ResizeNodeGroupRequest)

```javascript
public ResizeNodeGroupRequest(ResizeNodeGroupRequest other)
```

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ResizeNodeGroupRequest` |

## Properties

### GracefulDecommissionTimeout

```javascript
public Duration GracefulDecommissionTimeout { get; set; }
```
Optional. Timeout for graceful YARN decommissioning. [Graceful
decommissioning](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
allows 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 of
[Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).

Only supported on Dataproc image versions 1.2 and higher.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Duration` |   |

### Name

```javascript
public string Name { get; set; }
```
Required. The name of the node group to resize.
Format:
`projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### RequestId

```javascript
public string RequestId { get; set; }
```
Optional. A unique ID used to identify the request. If the server receives
two
[ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
with the same ID, the second request is ignored and the
first \[google.longrunning.Operation\]\[google.longrunning.Operation\] created
and stored in the backend is returned.

Recommendation: Set this value to a
[UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).

The ID must contain only letters (a-z, A-Z), numbers (0-9),
underscores (_), and hyphens (-). The maximum length is 40 characters.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Size

```javascript
public int Size { get; set; }
```
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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |