# Google Cloud Maintenance Api V1beta Client - Class Resource (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 Resource.

Resource contains information about the resource affected by maintenance.

Generated from protobuf message `google.cloud.maintenance.api.v1beta.ResourceMaintenance.Resource`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resource_name` | `string` Output only. Name is the reference to the consumer resource affected by the maintenance. Available values can be found here: <https://cloud.google.com/asset-inventory/docs/asset-names> |
| `↳ location` | `string` Output only. The location of the resource. Format: `us-central1` |
| `↳ type` | `string` Output only. The type of the resource. Available values can be found here: <https://cloud.google.com/asset-inventory/docs/asset-types#supported_resource_types> Please note that not all the resource types will have their maintenances reported. |

### getResourceName

Output only. Name is the reference to the consumer resource affected by
the maintenance. Available values can be found here:
<https://cloud.google.com/asset-inventory/docs/asset-names>

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

### setResourceName

Output only. Name is the reference to the consumer resource affected by
the maintenance. Available values can be found here:
<https://cloud.google.com/asset-inventory/docs/asset-names>

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

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

### getLocation

Output only. The location of the resource.

Format:
`us-central1`

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

### setLocation

Output only. The location of the resource.

Format:
`us-central1`

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

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

### getType

Output only. The type of the resource.

Available values can be found here:
<https://cloud.google.com/asset-inventory/docs/asset-types#supported_resource_types>
Please note that not all the resource types will have their maintenances
reported.

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

### setType

Output only. The type of the resource.

Available values can be found here:
<https://cloud.google.com/asset-inventory/docs/asset-types#supported_resource_types>
Please note that not all the resource types will have their maintenances
reported.

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

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