Class: Google::Apis::BigtableadminV1::CreateInstanceRequest

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.CreateInstance.

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

Returns a new instance of CreateInstanceRequest.



228
229
230
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 228

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

Instance Attribute Details

#clustersHash<String,Google::Apis::BigtableadminV1::Cluster>

Required. The clusters to be created within the instance, mapped by desired cluster ID, e.g., just mycluster rather than projects/myproject/instances/myinstance/clusters/mycluster. Fields marked OutputOnly must be left blank. Currently, at most four clusters can be specified. Corresponds to the JSON property clusters

Returns:



204
205
206
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 204

def clusters
  @clusters
end

#instanceGoogle::Apis::BigtableadminV1::Instance

A collection of Bigtable Tables and the resources that serve them. All tables in an instance are served from all Clusters in the instance. Corresponds to the JSON property instance



212
213
214
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 212

def instance
  @instance
end

#instance_idString

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

Returns:

  • (String)


220
221
222
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 220

def instance_id
  @instance_id
end

#parentString

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

Returns:

  • (String)


226
227
228
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 226

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



233
234
235
236
237
238
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 233

def update!(**args)
  @clusters = args[:clusters] if args.key?(:clusters)
  @instance = args[:instance] if args.key?(:instance)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @parent = args[:parent] if args.key?(:parent)
end