# Compute V1 Client - Class InstanceGroupManager (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 InstanceGroupManager.

Represents a Managed Instance Group resource.

An instance group is a collection of VM instances that you can manage as a
single entity. For more information, readInstance groups.
For zonal Managed Instance Group, use the instanceGroupManagers
resource.
For regional Managed Instance Group, use theregionInstanceGroupManagers resource.

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

## Namespace

Google \\ Cloud \\ Compute \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ all_instances_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerAllInstancesConfig` Specifies configuration that overrides the instance template configuration for the group. |
| `↳ auto_healing_policies` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerAutoHealingPolicy>` The autohealing policy for this managed instance group. You can specify only one value. |
| `↳ base_instance_name` | `string` The base instance name is a prefix that you want to attach to the names of all VMs in a MIG. The maximum character length is 58 and the name must comply with RFC1035 format. When a VM is created in the group, the MIG appends a hyphen and a random four-character string to the base instance name. If you want the MIG to assign sequential numbers instead of a random string, then end the base instance name with a hyphen followed by one or more hash symbols. The hash symbols indicate the number of digits. For example, a base instance name of "vm-###" results in "vm-001" as a VM name. @pattern [a-z](https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\[[0-9]{1,10}\])?)) |
| `↳ creation_timestamp` | `string` Output only. The creation timestamp for this managed instance group inRFC3339 text format. |
| `↳ current_actions` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerActionsSummary` Output only. The list of instance actions and the number of instances in this managed instance group that are scheduled for each of those actions. |
| `↳ description` | `string` An optional description of this resource. |
| `↳ distribution_policy` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.DistributionPolicy` Policy specifying the intended distribution of managed instances across zones in a regional managed instance group. |
| `↳ fingerprint` | `string` Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to update the InstanceGroupManager, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager. |
| `↳ id` | `int|string` Output only. A unique identifier for this resource type. The server generates this identifier. |
| `↳ instance_flexibility_policy` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerInstanceFlexibilityPolicy` Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance flexibility configuration on MIG overrides instance template configuration. |
| `↳ instance_group` | `string` Output only. The URL of the Instance Group resource. |
| `↳ instance_lifecycle_policy` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerInstanceLifecyclePolicy` The repair policy for this managed instance group. |
| `↳ instance_template` | `string` The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. |
| `↳ kind` | `string` Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups. |
| `↳ list_managed_instances_results` | `string` Pagination behavior of the listManagedInstances API method for this managed instance group. Check the ListManagedInstancesResults enum for the list of possible values. |
| `↳ name` | `string` The name of the managed instance group. The name must be 1-63 characters long, and comply withRFC1035. |
| `↳ named_ports` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.NamedPort>` \[Output Only\] Named ports configured on the Instance Groups complementary to this Instance Group Manager. |
| `↳ region` | `string` Output only. \[Output Only\] The URL of theregion where the managed instance group resides (for regional resources). |
| `↳ resource_policies` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerResourcePolicies` Resource policies for this managed instance group. |
| `↳ satisfies_pzi` | `bool` Output only. Reserved for future use. |
| `↳ satisfies_pzs` | `bool` Output only. Reserved for future use. |
| `↳ self_link` | `string` Output only. The URL for this managed instance group. The server defines this URL. |
| `↳ standby_policy` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerStandbyPolicy` Standby policy for stopped and suspended instances. |
| `↳ stateful_policy` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.StatefulPolicy` Stateful configuration for this Instanced Group Manager |
| `↳ status` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerStatus` Output only. The status of this managed instance group. |
| `↳ target_pools` | `string[]` The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group. |
| `↳ target_size` | `int` The target number of running instances for this managed instance group. You can reduce this number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing the group also changes this number. |
| `↳ target_size_policy` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerTargetSizePolicy` The policy that specifies how the MIG creates its VMs to achieve the target size. |
| `↳ target_stopped_size` | `int` The target number of stopped instances for this managed instance group. This number changes when you: - Stop instance using the stopInstances method or start instances using the startInstances method. - Manually change the targetStoppedSize using the update method. |
| `↳ target_suspended_size` | `int` The target number of suspended instances for this managed instance group. This number changes when you: - Suspend instance using the suspendInstances method or resume instances using the resumeInstances method. - Manually change the targetSuspendedSize using the update method. |
| `↳ update_policy` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerUpdatePolicy` The update policy for this managed instance group. |
| `↳ versions` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerVersion>` Specifies the instance templates used by this managed instance group to create instances. Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about therelationships between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all remaining instances. For more information, read aboutcanary updates. |
| `↳ zone` | `string` Output only. The URL of azone where the managed instance group is located (for zonal resources). |

### getAllInstancesConfig

Specifies configuration that overrides the instance template configuration
for the group.

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

### hasAllInstancesConfig

### clearAllInstancesConfig

### setAllInstancesConfig

Specifies configuration that overrides the instance template configuration
for the group.

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

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

### getAutoHealingPolicies

The autohealing policy for this managed instance group. You can specify
only one value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerAutoHealingPolicy>` |   |

### setAutoHealingPolicies

The autohealing policy for this managed instance group. You can specify
only one value.

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

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

### getBaseInstanceName

The base instance name is a prefix that you want to attach to the names of
all VMs in a MIG. The maximum character length is 58 and the name must
comply with RFC1035 format.

When a VM is created in the group, the MIG appends a hyphen and a random
four-character string to the base instance name. If you want the MIG to
assign sequential numbers instead of a random string, then end the base
instance name with a hyphen followed by one or more hash symbols. The hash
symbols indicate the number of digits. For example, a base instance name of
"vm-###" results in "vm-001" as a VM name.
@pattern
[a-z](https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\[[0-9]{1,10}\])?))

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

### hasBaseInstanceName

### clearBaseInstanceName

### setBaseInstanceName

The base instance name is a prefix that you want to attach to the names of
all VMs in a MIG. The maximum character length is 58 and the name must
comply with RFC1035 format.

When a VM is created in the group, the MIG appends a hyphen and a random
four-character string to the base instance name. If you want the MIG to
assign sequential numbers instead of a random string, then end the base
instance name with a hyphen followed by one or more hash symbols. The hash
symbols indicate the number of digits. For example, a base instance name of
"vm-###" results in "vm-001" as a VM name.
@pattern
[a-z](https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\[[0-9]{1,10}\])?))

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

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

### getCreationTimestamp

Output only. The creation timestamp for this managed instance group inRFC3339
text format.

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

### hasCreationTimestamp

### clearCreationTimestamp

### setCreationTimestamp

Output only. The creation timestamp for this managed instance group inRFC3339
text format.

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

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

### getCurrentActions

Output only. The list of instance actions and the number of instances
in this managed instance group that are scheduled for each of those
actions.

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

### hasCurrentActions

### clearCurrentActions

### setCurrentActions

Output only. The list of instance actions and the number of instances
in this managed instance group that are scheduled for each of those
actions.

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

| **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` |   |

### getDistributionPolicy

Policy specifying the intended distribution of managed instances across
zones in a regional managed instance group.

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

### hasDistributionPolicy

### clearDistributionPolicy

### setDistributionPolicy

Policy specifying the intended distribution of managed instances across
zones in a regional managed instance group.

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

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

### getFingerprint

Fingerprint of this resource. This field may be used in optimistic locking.

It will be ignored when inserting an InstanceGroupManager. An up-to-date
fingerprint must be provided in order to update the InstanceGroupManager,
otherwise the request will fail with error412 conditionNotMet.
To see the latest fingerprint, make a get() request to
retrieve an InstanceGroupManager.

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

### hasFingerprint

### clearFingerprint

### setFingerprint

Fingerprint of this resource. This field may be used in optimistic locking.

It will be ignored when inserting an InstanceGroupManager. An up-to-date
fingerprint must be provided in order to update the InstanceGroupManager,
otherwise the request will fail with error412 conditionNotMet.
To see the latest fingerprint, make a get() request to
retrieve an InstanceGroupManager.

| **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` |   |

### getInstanceFlexibilityPolicy

Instance flexibility allowing MIG to create VMs from multiple
types of machines.

Instance flexibility configuration on MIG overrides instance
template configuration.

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

### hasInstanceFlexibilityPolicy

### clearInstanceFlexibilityPolicy

### setInstanceFlexibilityPolicy

Instance flexibility allowing MIG to create VMs from multiple
types of machines.

Instance flexibility configuration on MIG overrides instance
template configuration.

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

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

### getInstanceGroup

Output only. The URL of the Instance Group resource.

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

### hasInstanceGroup

### clearInstanceGroup

### setInstanceGroup

Output only. The URL of the Instance Group resource.

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

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

### getInstanceLifecyclePolicy

The repair policy for this managed instance group.

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

### hasInstanceLifecyclePolicy

### clearInstanceLifecyclePolicy

### setInstanceLifecyclePolicy

The repair policy for this managed instance group.

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

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

### getInstanceTemplate

The URL of the instance template that is specified for this managed
instance group. The group uses this template to create all new instances
in the managed instance group. The templates for existing instances in the
group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE.

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

### hasInstanceTemplate

### clearInstanceTemplate

### setInstanceTemplate

The URL of the instance template that is specified for this managed
instance group. The group uses this template to create all new instances
in the managed instance group. The templates for existing instances in the
group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE.

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

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

### getKind

Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.

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

### hasKind

### clearKind

### setKind

Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.

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

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

### getListManagedInstancesResults

Pagination behavior of the listManagedInstances API method for
this managed instance group.

Check the ListManagedInstancesResults enum for the list of possible values.

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

### hasListManagedInstancesResults

### clearListManagedInstancesResults

### setListManagedInstancesResults

Pagination behavior of the listManagedInstances API method for
this managed instance group.

Check the ListManagedInstancesResults enum for the list of possible values.

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

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

### getName

The name of the managed instance group. The name must be 1-63 characters
long, and comply withRFC1035.

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

### hasName

### clearName

### setName

The name of the managed instance group. The name must be 1-63 characters
long, and comply withRFC1035.

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

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

### getNamedPorts

\[Output Only\] Named ports configured on the Instance Groups complementary
to this Instance Group Manager.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.NamedPort>` |   |

### setNamedPorts

\[Output Only\] Named ports configured on the Instance Groups complementary
to this Instance Group Manager.

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

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

### getRegion

Output only. \[Output Only\] The URL of theregion
where the managed instance group resides (for regional resources).

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

### hasRegion

### clearRegion

### setRegion

Output only. \[Output Only\] The URL of theregion
where the managed instance group resides (for regional resources).

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

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

### getResourcePolicies

Resource policies for this managed instance group.

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

### hasResourcePolicies

### clearResourcePolicies

### setResourcePolicies

Resource policies for this managed instance group.

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

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

### getSatisfiesPzi

Output only. Reserved for future use.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasSatisfiesPzi

### clearSatisfiesPzi

### setSatisfiesPzi

Output only. Reserved for future use.

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

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

### getSatisfiesPzs

Output only. Reserved for future use.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasSatisfiesPzs

### clearSatisfiesPzs

### setSatisfiesPzs

Output only. Reserved for future use.

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

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

### getSelfLink

Output only. The URL for this managed instance group. The server defines
this URL.

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

### hasSelfLink

### clearSelfLink

### setSelfLink

Output only. The URL for this managed instance group. The server defines
this URL.

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

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

### getStandbyPolicy

Standby policy for stopped and suspended instances.

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

### hasStandbyPolicy

### clearStandbyPolicy

### setStandbyPolicy

Standby policy for stopped and suspended instances.

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

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

### getStatefulPolicy

Stateful configuration for this Instanced Group Manager

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

### hasStatefulPolicy

### clearStatefulPolicy

### setStatefulPolicy

Stateful configuration for this Instanced Group Manager

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

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

### getStatus

Output only. The status of this managed instance group.

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

### hasStatus

### clearStatus

### setStatus

Output only. The status of this managed instance group.

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

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

### getTargetPools

The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically
apply to all of the instances in the managed instance group.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setTargetPools

The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically
apply to all of the instances in the managed instance group.

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

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

### getTargetSize

The target number of running instances for this managed instance group.

You can reduce this number by using the instanceGroupManager
deleteInstances or abandonInstances methods. Resizing the group also
changes this number.

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

### hasTargetSize

### clearTargetSize

### setTargetSize

The target number of running instances for this managed instance group.

You can reduce this number by using the instanceGroupManager
deleteInstances or abandonInstances methods. Resizing the group also
changes this number.

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

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

### getTargetSizePolicy

The policy that specifies how the MIG creates its VMs to achieve the target
size.

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

### hasTargetSizePolicy

### clearTargetSizePolicy

### setTargetSizePolicy

The policy that specifies how the MIG creates its VMs to achieve the target
size.

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

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

### getTargetStoppedSize

The target number of stopped instances for this managed instance group.

This number changes when you:

- Stop instance using the stopInstances method or start instances using the startInstances method.
- Manually change the targetStoppedSize using the update method.

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

### hasTargetStoppedSize

### clearTargetStoppedSize

### setTargetStoppedSize

The target number of stopped instances for this managed instance group.

This number changes when you:

- Stop instance using the stopInstances method or start instances using the startInstances method.
- Manually change the targetStoppedSize using the update method.

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

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

### getTargetSuspendedSize

The target number of suspended instances for this managed instance group.

This number changes when you:

- Suspend instance using the suspendInstances method or resume instances using the resumeInstances method.
- Manually change the targetSuspendedSize using the update method.

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

### hasTargetSuspendedSize

### clearTargetSuspendedSize

### setTargetSuspendedSize

The target number of suspended instances for this managed instance group.

This number changes when you:

- Suspend instance using the suspendInstances method or resume instances using the resumeInstances method.
- Manually change the targetSuspendedSize using the update method.

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

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

### getUpdatePolicy

The update policy for this managed instance group.

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

### hasUpdatePolicy

### clearUpdatePolicy

### setUpdatePolicy

The update policy for this managed instance group.

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

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

### getVersions

Specifies the instance templates used by this managed instance group to
create instances.

Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
group. This field overrides the top-level instanceTemplate
field. Read more about therelationships
between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
remaining instances. For more information, read aboutcanary
updates.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InstanceGroupManagerVersion>` |   |

### setVersions

Specifies the instance templates used by this managed instance group to
create instances.

Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
group. This field overrides the top-level instanceTemplate
field. Read more about therelationships
between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
remaining instances. For more information, read aboutcanary
updates.

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

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

### getZone

Output only. The URL of azone
where the managed instance group is located (for zonal resources).

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

### hasZone

### clearZone

### setZone

Output only. The URL of azone
where the managed instance group is located (for zonal resources).

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

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