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

Maintenance Info for ReservationBlocks.

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

## Namespace

Google \\ Cloud \\ Compute \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ instance_maintenance_ongoing_count` | `int` Describes number of instances that have ongoing maintenance. |
| `↳ instance_maintenance_pending_count` | `int` Describes number of instances that have pending maintenance. |
| `↳ maintenance_ongoing_count` | `int` Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance. |
| `↳ maintenance_pending_count` | `int` Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance. |
| `↳ scheduling_type` | `string` The type of maintenance for the reservation. Check the SchedulingType enum for the list of possible values. |
| `↳ subblock_infra_maintenance_ongoing_count` | `int` Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field. |
| `↳ subblock_infra_maintenance_pending_count` | `int` Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field. |
| `↳ upcoming_group_maintenance` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.UpcomingMaintenance` Maintenance information on this group of VMs. |

### getInstanceMaintenanceOngoingCount

Describes number of instances that have ongoing maintenance.

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

### hasInstanceMaintenanceOngoingCount

### clearInstanceMaintenanceOngoingCount

### setInstanceMaintenanceOngoingCount

Describes number of instances that have ongoing maintenance.

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

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

### getInstanceMaintenancePendingCount

Describes number of instances that have pending maintenance.

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

### hasInstanceMaintenancePendingCount

### clearInstanceMaintenancePendingCount

### setInstanceMaintenancePendingCount

Describes number of instances that have pending maintenance.

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

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

### getMaintenanceOngoingCount

Progress for ongoing maintenance for this group of VMs/hosts.

Describes number of hosts in the block that have ongoing maintenance.

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

### hasMaintenanceOngoingCount

### clearMaintenanceOngoingCount

### setMaintenanceOngoingCount

Progress for ongoing maintenance for this group of VMs/hosts.

Describes number of hosts in the block that have ongoing maintenance.

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

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

### getMaintenancePendingCount

Progress for ongoing maintenance for this group of VMs/hosts.

Describes number of hosts in the block that have pending maintenance.

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

### hasMaintenancePendingCount

### clearMaintenancePendingCount

### setMaintenancePendingCount

Progress for ongoing maintenance for this group of VMs/hosts.

Describes number of hosts in the block that have pending maintenance.

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

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

### getSchedulingType

The type of maintenance for the reservation.

Check the SchedulingType enum for the list of possible values.

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

### hasSchedulingType

### clearSchedulingType

### setSchedulingType

The type of maintenance for the reservation.

Check the SchedulingType enum for the list of possible values.

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

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

### getSubblockInfraMaintenanceOngoingCount

Describes number of subblock Infrastructure that has ongoing maintenance.

Here, Subblock Infrastructure Maintenance pertains to upstream hardware
contained in the Subblock that is necessary for a VM Family(e.g. NVLink
Domains). Not all VM Families will support this field.

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

### hasSubblockInfraMaintenanceOngoingCount

### clearSubblockInfraMaintenanceOngoingCount

### setSubblockInfraMaintenanceOngoingCount

Describes number of subblock Infrastructure that has ongoing maintenance.

Here, Subblock Infrastructure Maintenance pertains to upstream hardware
contained in the Subblock that is necessary for a VM Family(e.g. NVLink
Domains). Not all VM Families will support this field.

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

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

### getSubblockInfraMaintenancePendingCount

Describes number of subblock Infrastructure that has pending maintenance.

Here, Subblock Infrastructure Maintenance pertains to upstream hardware
contained in the Subblock that is necessary for a VM Family (e.g. NVLink
Domains). Not all VM Families will support this field.

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

### hasSubblockInfraMaintenancePendingCount

### clearSubblockInfraMaintenancePendingCount

### setSubblockInfraMaintenancePendingCount

Describes number of subblock Infrastructure that has pending maintenance.

Here, Subblock Infrastructure Maintenance pertains to upstream hardware
contained in the Subblock that is necessary for a VM Family (e.g. NVLink
Domains). Not all VM Families will support this field.

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

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

### getUpcomingGroupMaintenance

Maintenance information on this group of VMs.

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

### hasUpcomingGroupMaintenance

### clearUpcomingGroupMaintenance

### setUpcomingGroupMaintenance

Maintenance information on this group of VMs.

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

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