Class: Google::Apis::BigtableadminV2::MemoryLayer
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV2::MemoryLayer
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigtableadmin_v2/classes.rb,
lib/google/apis/bigtableadmin_v2/representations.rb,
lib/google/apis/bigtableadmin_v2/representations.rb
Overview
The memory layer of a cluster. A memory layer serves reads from memory without hitting the backing persistent data store.
Instance Attribute Summary collapse
-
#etag ⇒ String
Optional.
-
#memory_config ⇒ Google::Apis::BigtableadminV2::GoogleBigtableAdminV2MemoryLayerMemoryConfig
Configuration of a memory layer.
-
#name ⇒ String
Identifier.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MemoryLayer
constructor
A new instance of MemoryLayer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MemoryLayer
Returns a new instance of MemoryLayer.
3543 3544 3545 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3543 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
Optional. The etag for this memory layer. This may be sent on update requests
to ensure that the client has an up-to-date value before proceeding. The
server returns an ABORTED error on a mismatched etag.
Corresponds to the JSON property etag
3525 3526 3527 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3525 def etag @etag end |
#memory_config ⇒ Google::Apis::BigtableadminV2::GoogleBigtableAdminV2MemoryLayerMemoryConfig
Configuration of a memory layer.
Corresponds to the JSON property memoryConfig
3530 3531 3532 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3530 def memory_config @memory_config end |
#name ⇒ String
Identifier. Name of the memory layer. This is always: "projects/project/
instances/instance/clusters/cluster/memoryLayer".
Corresponds to the JSON property name
3536 3537 3538 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3536 def name @name end |
#state ⇒ String
Output only. The current state of the memory layer.
Corresponds to the JSON property state
3541 3542 3543 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3541 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3548 3549 3550 3551 3552 3553 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3548 def update!(**args) @etag = args[:etag] if args.key?(:etag) @memory_config = args[:memory_config] if args.key?(:memory_config) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) end |