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

Inherits:
Object
  • Object
show all
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

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.



482
483
484
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 482

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

Instance Attribute Details

#cluster_configGoogle::Apis::BigtableadminV2::ClusterConfig

Configuration for a cluster. Corresponds to the JSON property clusterConfig



444
445
446
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 444

def cluster_config
  @cluster_config
end

#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)


450
451
452
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 450

def default_storage_type
  @default_storage_type
end

#encryption_configGoogle::Apis::BigtableadminV2::EncryptionConfig

Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected cluster. Corresponds to the JSON property encryptionConfig



455
456
457
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 455

def encryption_config
  @encryption_config
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)


463
464
465
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 463

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)


469
470
471
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 469

def name
  @name
end

#serve_nodesFixnum

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)


475
476
477
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 475

def serve_nodes
  @serve_nodes
end

#stateString

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

Returns:

  • (String)


480
481
482
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 480

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



487
488
489
490
491
492
493
494
495
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 487

def update!(**args)
  @cluster_config = args[:cluster_config] if args.key?(:cluster_config)
  @default_storage_type = args[:default_storage_type] if args.key?(:default_storage_type)
  @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
  @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