Class: Google::Apis::BigtableadminV1::Cluster
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV1::Cluster
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigtableadmin_v1/classes.rb,
generated/google/apis/bigtableadmin_v1/representations.rb,
generated/google/apis/bigtableadmin_v1/representations.rb
Overview
A resizable group of nodes in a particular cloud location, capable of serving all Tables in the parent Instance.
Instance Attribute Summary collapse
-
#default_storage_type ⇒ String
Immutable.
-
#location ⇒ String
Immutable.
-
#name ⇒ String
The unique name of the cluster.
-
#serve_nodes ⇒ Fixnum
Required.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Cluster
constructor
A new instance of Cluster.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Cluster
Returns a new instance of Cluster.
168 169 170 |
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 168 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_storage_type ⇒ String
Immutable. The type of storage used by this cluster to serve its parent
instance's tables, unless explicitly overridden.
Corresponds to the JSON property defaultStorageType
141 142 143 |
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 141 def default_storage_type @default_storage_type end |
#location ⇒ String
Immutable. The location where this cluster's nodes and storage reside. For
best performance, clients should be located as close as possible to this
cluster. Currently only zones are supported, so values should be of the form
projects/
project/locations/
zone`.
Corresponds to the JSON property
location`
149 150 151 |
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 149 def location @location end |
#name ⇒ String
The unique name of the cluster. Values are of the form projects/
project/
instances/
instance/clusters/a-z*
.
Corresponds to the JSON property name
155 156 157 |
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 155 def name @name end |
#serve_nodes ⇒ Fixnum
Required. The number of nodes allocated to this cluster. More nodes enable
higher throughput and more consistent performance.
Corresponds to the JSON property serveNodes
161 162 163 |
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 161 def serve_nodes @serve_nodes end |
#state ⇒ String
Output only. The current state of the cluster.
Corresponds to the JSON property state
166 167 168 |
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 166 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
173 174 175 176 177 178 179 |
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 173 def update!(**args) @default_storage_type = args[:default_storage_type] if args.key?(:default_storage_type) @location = args[:location] if args.key?(:location) @name = args[:name] if args.key?(:name) @serve_nodes = args[:serve_nodes] if args.key?(:serve_nodes) @state = args[:state] if args.key?(:state) end |