# Storage Control V2 API - Class Google::Cloud::Storage::Control::V2::UpdateAnywhereCacheMetadata (v1.12.0)

1.12.0 (latest) 1.11.0 1.10.1 1.9.0 1.8.1 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.1.1 Reference documentation and code samples for the Storage Control V2 API class Google::Cloud::Storage::Control::V2::UpdateAnywhereCacheMetadata.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #admission_policy

    def admission_policy() -> ::String

**Returns**

- (::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.

### #admission_policy=

    def admission_policy=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #anywhere_cache_id

    def anywhere_cache_id() -> ::String

**Returns**

- (::String) --- Anywhere Cache ID.

### #anywhere_cache_id=

    def anywhere_cache_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Anywhere Cache ID.
**Returns**

- (::String) --- Anywhere Cache ID.

### #common_metadata

    def common_metadata() -> ::Google::Cloud::Storage::Control::V2::CommonLongRunningOperationMetadata

**Returns**

- ([::Google::Cloud::Storage::Control::V2::CommonLongRunningOperationMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage-control-v2/latest/Google-Cloud-Storage-Control-V2-CommonLongRunningOperationMetadata)) --- Generic metadata for the long running operation.

### #common_metadata=

    def common_metadata=(value) -> ::Google::Cloud::Storage::Control::V2::CommonLongRunningOperationMetadata

**Parameter**

- **value** ([::Google::Cloud::Storage::Control::V2::CommonLongRunningOperationMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage-control-v2/latest/Google-Cloud-Storage-Control-V2-CommonLongRunningOperationMetadata)) --- Generic metadata for the long running operation.
**Returns**

- ([::Google::Cloud::Storage::Control::V2::CommonLongRunningOperationMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage-control-v2/latest/Google-Cloud-Storage-Control-V2-CommonLongRunningOperationMetadata)) --- Generic metadata for the long running operation.

### #ttl

    def ttl() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage-control-v2/latest/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.

### #ttl=

    def ttl=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage-control-v2/latest/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.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage-control-v2/latest/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.

### #zone

    def zone() -> ::String

**Returns**

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

### #zone=

    def zone=(value) -> ::String

**Parameter**

- **value** (::String) --- The zone in which the cache instance is running. For example, us-central1-a.
**Returns**

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