Class: Google::Apis::StorageV1::AnywhereCache

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/storage_v1/classes.rb,
lib/google/apis/storage_v1/representations.rb,
lib/google/apis/storage_v1/representations.rb

Overview

An Anywhere Cache instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AnywhereCache

Returns a new instance of AnywhereCache.



92
93
94
# File 'lib/google/apis/storage_v1/classes.rb', line 92

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#admission_policyString

The cache-level entry admission policy. Corresponds to the JSON property admissionPolicy

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/storage_v1/classes.rb', line 32

def admission_policy
  @admission_policy
end

#anywhere_cache_idString

The ID of the Anywhere cache instance. Corresponds to the JSON property anywhereCacheId

Returns:

  • (String)


37
38
39
# File 'lib/google/apis/storage_v1/classes.rb', line 37

def anywhere_cache_id
  @anywhere_cache_id
end

#bucketString

The name of the bucket containing this cache instance. Corresponds to the JSON property bucket

Returns:

  • (String)


42
43
44
# File 'lib/google/apis/storage_v1/classes.rb', line 42

def bucket
  @bucket
end

#create_timeDateTime

The creation time of the cache instance in RFC 3339 format. Corresponds to the JSON property createTime

Returns:

  • (DateTime)


47
48
49
# File 'lib/google/apis/storage_v1/classes.rb', line 47

def create_time
  @create_time
end

#idString

The ID of the resource, including the project number, bucket name and anywhere cache ID. Corresponds to the JSON property id

Returns:

  • (String)


53
54
55
# File 'lib/google/apis/storage_v1/classes.rb', line 53

def id
  @id
end

#kindString

The kind of item this is. For Anywhere Cache, this is always storage# anywhereCache. Corresponds to the JSON property kind

Returns:

  • (String)


59
60
61
# File 'lib/google/apis/storage_v1/classes.rb', line 59

def kind
  @kind
end

#pending_updateBoolean Also known as: pending_update?

True if the cache instance has an active Update long-running operation. Corresponds to the JSON property pendingUpdate

Returns:

  • (Boolean)


64
65
66
# File 'lib/google/apis/storage_v1/classes.rb', line 64

def pending_update
  @pending_update
end

The link to this cache instance. Corresponds to the JSON property selfLink

Returns:

  • (String)


70
71
72
# File 'lib/google/apis/storage_v1/classes.rb', line 70

def self_link
  @self_link
end

#stateString

The current state of the cache instance. Corresponds to the JSON property state

Returns:

  • (String)


75
76
77
# File 'lib/google/apis/storage_v1/classes.rb', line 75

def state
  @state
end

#ttlString

The TTL of all cache entries in whole seconds. e.g., "7200s". Corresponds to the JSON property ttl

Returns:

  • (String)


80
81
82
# File 'lib/google/apis/storage_v1/classes.rb', line 80

def ttl
  @ttl
end

#update_timeDateTime

The modification time of the cache instance metadata in RFC 3339 format. Corresponds to the JSON property updateTime

Returns:

  • (DateTime)


85
86
87
# File 'lib/google/apis/storage_v1/classes.rb', line 85

def update_time
  @update_time
end

#zoneString

The zone in which the cache instance is running. For example, us-central1-a. Corresponds to the JSON property zone

Returns:

  • (String)


90
91
92
# File 'lib/google/apis/storage_v1/classes.rb', line 90

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



97
98
99
100
101
102
103
104
105
106
107
108
109
110
# File 'lib/google/apis/storage_v1/classes.rb', line 97

def update!(**args)
  @admission_policy = args[:admission_policy] if args.key?(:admission_policy)
  @anywhere_cache_id = args[:anywhere_cache_id] if args.key?(:anywhere_cache_id)
  @bucket = args[:bucket] if args.key?(:bucket)
  @create_time = args[:create_time] if args.key?(:create_time)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @pending_update = args[:pending_update] if args.key?(:pending_update)
  @self_link = args[:self_link] if args.key?(:self_link)
  @state = args[:state] if args.key?(:state)
  @ttl = args[:ttl] if args.key?(:ttl)
  @update_time = args[:update_time] if args.key?(:update_time)
  @zone = args[:zone] if args.key?(:zone)
end