Class: Google::Apis::BigtableadminV1::CreateClusterRequest

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

Request message for BigtableInstanceAdmin.CreateCluster.

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) ⇒ CreateClusterRequest

Returns a new instance of CreateClusterRequest.


298
299
300
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 298

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

Instance Attribute Details

#clusterGoogle::Apis::BigtableadminV1::Cluster

A resizable group of nodes in a particular cloud location, capable of serving all Tables in the parent Instance. Corresponds to the JSON property cluster


281
282
283
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 281

def cluster
  @cluster
end

#cluster_idString

Required. The ID to be used when referring to the new cluster within its instance, e.g., just mycluster rather than projects/myproject/instances/myinstance/clusters/mycluster. Corresponds to the JSON property clusterId

Returns:

  • (String)

289
290
291
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 289

def cluster_id
  @cluster_id
end

#parentString

Required. The unique name of the instance in which to create the new cluster. Values are of the form projects/project/instances/instance`. Corresponds to the JSON propertyparent`

Returns:

  • (String)

296
297
298
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 296

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


303
304
305
306
307
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 303

def update!(**args)
  @cluster = args[:cluster] if args.key?(:cluster)
  @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
  @parent = args[:parent] if args.key?(:parent)
end