# Compute V1 Client - Class InstanceGroupManagerResizeRequest (2.10.0)

2.10.0 (latest) 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.1 1.21.0 1.20.0 1.19.0 1.18.1 1.17.0 1.16.2 1.14.0 1.13.0 1.12.1 1.11.1 1.10.1 1.9.1 1.8.3 1.7.1 1.6.1 1.5.0 Reference documentation and code samples for the Compute V1 Client class InstanceGroupManagerResizeRequest.

InstanceGroupManagerResizeRequest represents a request to create
a number of VMs: either immediately or by queuing the request for the
specified time. This resize request is nested under InstanceGroupManager
and the VMs created by this request are added to the owning
InstanceGroupManager.

Generated from protobuf message `google.cloud.compute.v1.InstanceGroupManagerResizeRequest`

## Namespace

Google \\ Cloud \\ Compute \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ creation_timestamp` | `string` Output only. The creation timestamp for this resize request inRFC3339 text format. |
| `↳ description` | `string` An optional description of this resource. |
| `↳ id` | `int|string` Output only. A unique identifier for this resource type. The server generates this identifier. |
| `↳ kind` | `string` Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests. |
| `↳ name` | `string` The name of this resize request. The name must be 1-63 characters long, and comply withRFC1035. |
| `↳ region` | `string` Output only. The URL of a region where the resize request is located. Populated only for regional resize requests. |
| `↳ requested_run_duration` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.Duration` Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted. |
| `↳ resize_by` | `int` The number of instances to be created by this resize request. The group's target size will be increased by this number. This field cannot be used together with 'instances'. |
| `↳ self_link` | `string` Output only. The URL for this resize request. The server defines this URL. |
| `↳ self_link_with_id` | `string` Output only. Server-defined URL for this resource with the resource id. |
| `↳ state` | `string` Output only. Current state of the request. Check the State enum for the list of possible values. |
| `↳ status` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerResizeRequestStatus` Output only. Status of the request. |
| `↳ zone` | `string` Output only. The URL of a zone where the resize request is located. Populated only for zonal resize requests. |

### getCreationTimestamp

Output only. The creation timestamp for this resize request inRFC3339
text format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasCreationTimestamp

### clearCreationTimestamp

### setCreationTimestamp

Output only. The creation timestamp for this resize request inRFC3339
text format.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDescription

An optional description of this resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasDescription

### clearDescription

### setDescription

An optional description of this resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getId

Output only. A unique identifier for this resource type. The server generates this
identifier.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### hasId

### clearId

### setId

Output only. A unique identifier for this resource type. The server generates this
identifier.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKind

Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasKind

### clearKind

### setKind

Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getName

The name of this resize request. The name must be 1-63 characters
long, and comply withRFC1035.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasName

### clearName

### setName

The name of this resize request. The name must be 1-63 characters
long, and comply withRFC1035.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRegion

Output only. The URL of a region
where the resize request is located. Populated only for regional resize
requests.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasRegion

### clearRegion

### setRegion

Output only. The URL of a region
where the resize request is located. Populated only for regional resize
requests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequestedRunDuration

Requested run duration for instances that will be created by this request.

At the end of the run duration instance will be deleted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.Duration|null` |   |

### hasRequestedRunDuration

### clearRequestedRunDuration

### setRequestedRunDuration

Requested run duration for instances that will be created by this request.

At the end of the run duration instance will be deleted.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResizeBy

The number of instances to be created by this resize request. The group's
target size will be increased by this number. This field cannot be used
together with 'instances'.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasResizeBy

### clearResizeBy

### setResizeBy

The number of instances to be created by this resize request. The group's
target size will be increased by this number. This field cannot be used
together with 'instances'.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSelfLink

Output only. The URL for this resize request. The server defines this URL.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasSelfLink

### clearSelfLink

### setSelfLink

Output only. The URL for this resize request. The server defines this URL.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSelfLinkWithId

Output only. Server-defined URL for this resource with the resource id.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasSelfLinkWithId

### clearSelfLinkWithId

### setSelfLinkWithId

Output only. Server-defined URL for this resource with the resource id.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getState

Output only. Current state of the request.

Check the State enum for the list of possible values.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasState

### clearState

### setState

Output only. Current state of the request.

Check the State enum for the list of possible values.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStatus

Output only. Status of the request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerResizeRequestStatus|null` |   |

### hasStatus

### clearStatus

### setStatus

Output only. Status of the request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerResizeRequestStatus` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getZone

Output only. The URL of a zone
where the resize request is located. Populated only for zonal resize
requests.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasZone

### clearZone

### setZone

Output only. The URL of a zone
where the resize request is located. Populated only for zonal resize
requests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |