Reference documentation and code samples for the Google Cloud Storage Control V2 Client class AnywhereCache.
An Anywhere Cache Instance.
Generated from protobuf message google.storage.control.v2.AnywhereCache
Namespace
Google \ Cloud \ Storage \ Control \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Immutable. The resource name of this AnywhereCache. Format: projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}
↳ zone
string
Immutable. The zone in which the cache instance is running. For example, us-central1-a.
↳ ttl
Google\Protobuf\Duration
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.
↳ admission_policy
string
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.
↳ state
string
Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED.
↳ create_time
↳ update_time
Google\Protobuf\Timestamp
Output only. Time when Anywhere cache instance is last updated, including creation.
↳ pending_update
bool
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.
getName
Immutable. The resource name of this AnywhereCache.
Format: projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}
string
setName
Immutable. The resource name of this AnywhereCache.
Format: projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}
var
string
$this
getZone
Immutable. The zone in which the cache instance is running. For example, us-central1-a.
string
setZone
Immutable. The zone in which the cache instance is running. For example, us-central1-a.
var
string
$this
getTtl
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.
hasTtl
clearTtl
setTtl
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.
$this
getAdmissionPolicy
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.
string
setAdmissionPolicy
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.
var
string
$this
getState
Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED.
string
setState
Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED.
var
string
$this
getCreateTime
Output only. Time when Anywhere cache instance is allocated.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Time when Anywhere cache instance is allocated.
$this
getUpdateTime
Output only. Time when Anywhere cache instance is last updated, including creation.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Time when Anywhere cache instance is last updated, including creation.
$this
getPendingUpdate
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.
bool
setPendingUpdate
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.
var
bool
$this