1.8.0 (latest) 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1

    public sealed class AnywhereCache : IMessage<AnywhereCache>, IEquatable<AnywhereCache>, IDeepCloneable<AnywhereCache>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Storage v2 API class AnywhereCache.

An Anywhere Cache Instance.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AnywhereCache

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AnywhereCache](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.AnywhereCache), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AnywhereCache](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.AnywhereCache), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AnywhereCache](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.AnywhereCache), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Storage.Control.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2)

## Assembly

Google.Cloud.Storage.Control.V2.dll

## Constructors

### AnywhereCache()

    public AnywhereCache()

### AnywhereCache(AnywhereCache)

    public AnywhereCache(AnywhereCache other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.AnywhereCache` |

## Properties

### AdmissionPolicy

    public string AdmissionPolicy { get; set; }

Cache admission policy. Valid policies includes:
`admit-on-first-miss` and `admit-on-second-miss`. Defaults to
`admit-on-first-miss`. Default value is applied if not specified in the
create request.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### AnywhereCacheName

    public AnywhereCacheName AnywhereCacheName { get; set; }

[AnywhereCacheName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.AnywhereCacheName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.AnywhereCache#Google_Cloud_Storage_Control_V2_AnywhereCache_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.AnywhereCacheName` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. Time when Anywhere cache instance is allocated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### HasIngestOnWrite

    public bool HasIngestOnWrite { get; }

Gets whether the "ingest_on_write" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### IngestOnWrite

    public bool IngestOnWrite { get; set; }

Optional. Specifies whether objects are ingested into the cache upon write.
Defaults to false.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### Name

    public string Name { get; set; }

Immutable. The resource name of this AnywhereCache.
Format:
`projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PendingUpdate

    public bool PendingUpdate { get; set; }

Output only. True if there is an active update operation against this cache
instance. Subsequential update requests will be rejected if this field is
true. Output only.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### State

    public string State { get; set; }

Output only. Cache state including `running`, `creating`, `disabled` and
`paused`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Ttl

    public Duration Ttl { get; set; }

Cache entry TTL (ranges between 1h to 7d). This is a cache-level config
that defines how long a cache entry can live. Default ttl value (24hrs)
is applied if not specified in the create request. TTL must be in whole
seconds.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Duration.html` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. Time when Anywhere cache instance is last updated, including
creation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Zone

    public string Zone { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |