Class: Google::Apis::BigtableadminV1::Cluster

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Cluster

Returns a new instance of Cluster.



67
68
69
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 67

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

Instance Attribute Details

#default_storage_typeString

(CreationOnly) 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)


36
37
38
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 36

def default_storage_type
  @default_storage_type
end

#locationString

(CreationOnly) 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)


45
46
47
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 45

def location
  @location
end

#nameString

Required. (OutputOnly) 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)


52
53
54
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 52

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)


59
60
61
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 59

def serve_nodes
  @serve_nodes
end

#stateString

(OutputOnly) The current state of the cluster. Corresponds to the JSON property state

Returns:

  • (String)


65
66
67
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 65

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



72
73
74
75
76
77
78
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 72

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