# Storage Control V2 API - Class Google::Cloud::Storage::Control::V2::CreateAnywhereCacheRequest (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::CreateAnywhereCacheRequest.

Request message for CreateAnywhereCache.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #anywhere_cache

    def anywhere_cache() -> ::Google::Cloud::Storage::Control::V2::AnywhereCache

**Returns**

- ([::Google::Cloud::Storage::Control::V2::AnywhereCache](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage-control-v2/latest/Google-Cloud-Storage-Control-V2-AnywhereCache)) --- Required. Properties of the Anywhere Cache instance being created. The parent bucket name is specified in the `parent` field. Server uses the default value of `ttl` or `admission_policy` if not specified in request.

### #anywhere_cache=

    def anywhere_cache=(value) -> ::Google::Cloud::Storage::Control::V2::AnywhereCache

**Parameter**

- **value** ([::Google::Cloud::Storage::Control::V2::AnywhereCache](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage-control-v2/latest/Google-Cloud-Storage-Control-V2-AnywhereCache)) --- Required. Properties of the Anywhere Cache instance being created. The parent bucket name is specified in the `parent` field. Server uses the default value of `ttl` or `admission_policy` if not specified in request.
**Returns**

- ([::Google::Cloud::Storage::Control::V2::AnywhereCache](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage-control-v2/latest/Google-Cloud-Storage-Control-V2-AnywhereCache)) --- Required. Properties of the Anywhere Cache instance being created. The parent bucket name is specified in the `parent` field. Server uses the default value of `ttl` or `admission_policy` if not specified in request.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The bucket to which this cache belongs. Format: `projects/{project}/buckets/{bucket}`

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The bucket to which this cache belongs. Format: `projects/{project}/buckets/{bucket}`
**Returns**

- (::String) --- Required. The bucket to which this cache belongs. Format: `projects/{project}/buckets/{bucket}`

### #request_id

    def request_id() -> ::String

**Returns**

- (::String) --- Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted. This request is only idempotent if a `request_id` is provided.

### #request_id=

    def request_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted. This request is only idempotent if a `request_id` is provided.
**Returns**

- (::String) --- Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted. This request is only idempotent if a `request_id` is provided.