Class: Google::Apis::BigtableadminV1::CreateInstanceRequest
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV1::CreateInstanceRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigtableadmin_v1/classes.rb,
lib/google/apis/bigtableadmin_v1/representations.rb,
lib/google/apis/bigtableadmin_v1/representations.rb
Overview
Request message for BigtableInstanceAdmin.CreateInstance.
Instance Attribute Summary collapse
-
#clusters ⇒ Hash<String,Google::Apis::BigtableadminV1::Cluster>
Required.
-
#instance ⇒ Google::Apis::BigtableadminV1::Instance
A collection of Bigtable Tables and the resources that serve them.
-
#instance_id ⇒ String
Required.
-
#parent ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateInstanceRequest
constructor
A new instance of CreateInstanceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateInstanceRequest
Returns a new instance of CreateInstanceRequest.
466 467 468 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 466 def initialize(**args) update!(**args) end |
Instance Attribute Details
#clusters ⇒ Hash<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
445 446 447 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 445 def clusters @clusters end |
#instance ⇒ Google::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
451 452 453 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 451 def instance @instance end |
#instance_id ⇒ String
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
458 459 460 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 458 def instance_id @instance_id end |
#parent ⇒ String
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 property
parent`
464 465 466 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 464 def parent @parent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
471 472 473 474 475 476 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 471 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 |