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.
Implements
IMessageAnywhereCache, IEquatableAnywhereCache, IDeepCloneableAnywhereCache, IBufferMessage, IMessageNamespace
Google.Cloud.Storage.Control.V2Assembly
Google.Cloud.Storage.Control.V2.dll
Constructors
AnywhereCache()
public AnywhereCache()
AnywhereCache(AnywhereCache)
public AnywhereCache(AnywhereCache other)
Parameter | |
---|---|
Name | Description |
other |
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 |
string |
AnywhereCacheName
public AnywhereCacheName AnywhereCacheName { get; set; }
AnywhereCacheName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
AnywhereCacheName |
CreateTime
public Timestamp CreateTime { get; set; }
Output only. Time when Anywhere cache instance is allocated.
Property Value | |
---|---|
Type | Description |
Timestamp |
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 |
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 |
bool |
State
public string State { get; set; }
Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED.
Property Value | |
---|---|
Type | Description |
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 |
Duration |
UpdateTime
public Timestamp UpdateTime { get; set; }
Output only. Time when Anywhere cache instance is last updated, including creation.
Property Value | |
---|---|
Type | Description |
Timestamp |
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 |
string |