# Google Cloud Storage Control V2 Client - Class UpdateAnywhereCacheMetadata (1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.3 1.5.0 1.4.1 1.3.0 1.1.0 1.0.3 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Storage Control V2 Client class UpdateAnywhereCacheMetadata.

Message returned in the metadata field of the Operation resource for
UpdateAnywhereCache operation.

Generated from protobuf message `google.storage.control.v2.UpdateAnywhereCacheMetadata`

## Namespace

Google \\ Cloud \\ Storage \\ Control \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ common_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.CommonLongRunningOperationMetadata` Generic metadata for the long running operation. |
| `↳ anywhere_cache_id` | `string` Anywhere Cache ID. |
| `↳ zone` | `string` The zone in which the cache instance is running. For example, us-central1-a. |
| `↳ ttl` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Anywhere Cache entry's TTL between 1h and 7days. A cache-level config that is applied to all new cache entries on admission. If `ttl` is pending update, this field equals to the new value specified in the Update request. |
| `↳ admission_policy` | `string` L4 Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss"). If `admission_policy` is pending update, this field equals to the new value specified in the Update request. |

### getCommonMetadata

Generic metadata for the long running operation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.CommonLongRunningOperationMetadata|null` |   |

### hasCommonMetadata

### clearCommonMetadata

### setCommonMetadata

Generic metadata for the long running operation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.CommonLongRunningOperationMetadata` |

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

### getAnywhereCacheId

Anywhere Cache ID.

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

### hasAnywhereCacheId

### clearAnywhereCacheId

### setAnywhereCacheId

Anywhere Cache ID.

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

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

### getZone

The zone in which the cache instance is running. For example,
us-central1-a.

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

### hasZone

### clearZone

### setZone

The zone in which the cache instance is running. For example,
us-central1-a.

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

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

### getTtl

Anywhere Cache entry's TTL between 1h and 7days. A cache-level config that
is applied to all new cache entries on admission. If `ttl` is pending
update, this field equals to the new value specified in the Update request.

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

### hasTtl

### clearTtl

### setTtl

Anywhere Cache entry's TTL between 1h and 7days. A cache-level config that
is applied to all new cache entries on admission. If `ttl` is pending
update, this field equals to the new value specified in the Update request.

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

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

### getAdmissionPolicy

L4 Cache entry Admission Policy in kebab-case (e.g.,
"admit-on-first-miss"). If `admission_policy` is pending
update, this field equals to the new value specified in the Update request.

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

### hasAdmissionPolicy

### clearAdmissionPolicy

### setAdmissionPolicy

L4 Cache entry Admission Policy in kebab-case (e.g.,
"admit-on-first-miss"). If `admission_policy` is pending
update, this field equals to the new value specified in the Update request.

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

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