# Google Cloud Maintenance Api V1beta Client - Class MaintenanceSummary (0.4.0)

0.4.0 (latest) 0.3.2 0.2.1 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Maintenance Api V1beta Client class MaintenanceSummary.

MaintenanceSummary contains maintenance statistics calculated based on
ResourceMaintenances within the scope: project and location.

Generated from protobuf message `google.cloud.maintenance.api.v1beta.MaintenanceSummary`

## Namespace

Google \\ Cloud \\ Maintenance \\ Api \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ maintenance_name` | `string` Output only. The name of the maintenance. |
| `↳ title` | `string` Output only. The title of the maintenance. |
| `↳ description` | `string` Output only. The description of the maintenance. |
| `↳ category` | `int` Output only. The category of the maintenance event. |
| `↳ maintenance_scheduled_start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Scheduled start time of the maintenance. The maintenance will start at `maintenanceScheduledStartTime` or later, with best effort to finish before `maintenanceScheduledEndTime`. |
| `↳ maintenance_scheduled_end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. An estimated (best effort, not guaranteed) end time of the scheduled maintenance. |
| `↳ maintenance_start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Actual date when the maintenance started. Field present only after the state changed to `RUNNING`. |
| `↳ maintenance_end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Actual date when the maintenance successfully completed. Field present only after the state changed to `SUCCEEDED`. |
| `↳ user_controllable` | `bool` Output only. Indicates whether the user has some control over that maintenance, either proactively before maintenance was scheduled with maintenance policy or with reactive controls after it was scheduled (see controls field). |
| `↳ controls` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-maintenance/latest/V1beta.MaintenanceControl>` Output only. Control available for that Maintenance (might not be available for every resource that maintenance is applied to). |
| `↳ stats` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-maintenance/latest/V1beta.MaintenanceSummary.Stats>` Output only. Stats is a field of ResourceMaintenance used to aggregate the stats. |

### getMaintenanceName

Output only. The name of the maintenance.

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

### setMaintenanceName

Output only. The name of the maintenance.

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

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

### getTitle

Output only. The title of the maintenance.

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

### setTitle

Output only. The title of the maintenance.

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

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

### getDescription

Output only. The description of the maintenance.

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

### setDescription

Output only. The description of the maintenance.

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

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

### getCategory

Output only. The category of the maintenance event.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [MaintenanceCategory](https://docs.cloud.google.com/php/docs/reference/cloud-maintenance/latest/V1beta.MaintenanceCategory). |

### setCategory

Output only. The category of the maintenance event.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [MaintenanceCategory](https://docs.cloud.google.com/php/docs/reference/cloud-maintenance/latest/V1beta.MaintenanceCategory). |

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

### getMaintenanceScheduledStartTime

Output only. Scheduled start time of the maintenance. The maintenance will
start at `maintenanceScheduledStartTime` or later, with best effort to
finish before `maintenanceScheduledEndTime`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasMaintenanceScheduledStartTime

### clearMaintenanceScheduledStartTime

### setMaintenanceScheduledStartTime

Output only. Scheduled start time of the maintenance. The maintenance will
start at `maintenanceScheduledStartTime` or later, with best effort to
finish before `maintenanceScheduledEndTime`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getMaintenanceScheduledEndTime

Output only. An estimated (best effort, not guaranteed) end time of the
scheduled maintenance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasMaintenanceScheduledEndTime

### clearMaintenanceScheduledEndTime

### setMaintenanceScheduledEndTime

Output only. An estimated (best effort, not guaranteed) end time of the
scheduled maintenance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getMaintenanceStartTime

Output only. Actual date when the maintenance started. Field present only
after the state changed to `RUNNING`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasMaintenanceStartTime

### clearMaintenanceStartTime

### setMaintenanceStartTime

Output only. Actual date when the maintenance started. Field present only
after the state changed to `RUNNING`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getMaintenanceEndTime

Output only. Actual date when the maintenance successfully completed. Field
present only after the state changed to `SUCCEEDED`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasMaintenanceEndTime

### clearMaintenanceEndTime

### setMaintenanceEndTime

Output only. Actual date when the maintenance successfully completed. Field
present only after the state changed to `SUCCEEDED`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUserControllable

Output only. Indicates whether the user has some control over that
maintenance, either proactively before maintenance was scheduled with
maintenance policy or with reactive controls after it was scheduled (see
controls field).

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

### setUserControllable

Output only. Indicates whether the user has some control over that
maintenance, either proactively before maintenance was scheduled with
maintenance policy or with reactive controls after it was scheduled (see
controls field).

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

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

### getControls

Output only. Control available for that Maintenance (might not be available
for every resource that maintenance is applied to).

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

### setControls

Output only. Control available for that Maintenance (might not be available
for every resource that maintenance is applied to).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-maintenance/latest/V1beta.MaintenanceControl>` |

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

### getStats

Output only. Stats is a field of ResourceMaintenance used to aggregate the
stats.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-maintenance/latest/V1beta.MaintenanceSummary.Stats>` |   |

### setStats

Output only. Stats is a field of ResourceMaintenance used to aggregate the
stats.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-maintenance/latest/V1beta.MaintenanceSummary.Stats>` |

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