Class: Google::Apis::BigtableadminV2::Cluster

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/bigtableadmin_v2/classes.rb,
generated/google/apis/bigtableadmin_v2/representations.rb,
generated/google/apis/bigtableadmin_v2/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Cluster

Returns a new instance of Cluster.



408
409
410
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 408

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

Instance Attribute Details

#default_storage_typeString

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

Returns:

  • (String)


381
382
383
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 381

def default_storage_type
  @default_storage_type
end

#locationString

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 propertylocation`

Returns:

  • (String)


389
390
391
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 389

def location
  @location
end

#nameString

The unique name of the cluster. Values are of the form projects/project/ instances/instance/clusters/a-z*. Corresponds to the JSON property name

Returns:

  • (String)


395
396
397
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 395

def name
  @name
end

#serve_nodesFixnum

Required. The number of nodes allocated to this cluster. More nodes enable higher throughput and more consistent performance. Corresponds to the JSON property serveNodes

Returns:

  • (Fixnum)


401
402
403
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 401

def serve_nodes
  @serve_nodes
end

#stateString

Output only. The current state of the cluster. Corresponds to the JSON property state

Returns:

  • (String)


406
407
408
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 406

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



413
414
415
416
417
418
419
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 413

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