Class: Google::Apis::BigtableadminV2::CreateInstanceRequest
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV2::CreateInstanceRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigtableadmin_v2/classes.rb,
generated/google/apis/bigtableadmin_v2/representations.rb,
generated/google/apis/bigtableadmin_v2/representations.rb
Overview
Request message for BigtableInstanceAdmin.CreateInstance.
Instance Attribute Summary collapse
-
#clusters ⇒ Hash<String,Google::Apis::BigtableadminV2::Cluster>
The clusters to be created within the instance, mapped by desired cluster ID, e.g., just
mycluster
rather thanprojects/myproject/instances/myinstance/clusters/mycluster
. -
#instance ⇒ Google::Apis::BigtableadminV2::Instance
A collection of Bigtable Tables and the resources that serve them.
-
#instance_id ⇒ String
The ID to be used when referring to the new instance within its project, e.g., just
myinstance
rather thanprojects/myproject/instances/myinstance
. -
#parent ⇒ String
The unique name of the project in which to create the new instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateInstanceRequest
constructor
A new instance of CreateInstanceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CreateInstanceRequest
Returns a new instance of CreateInstanceRequest
516 517 518 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 516 def initialize(**args) update!(**args) end |
Instance Attribute Details
#clusters ⇒ Hash<String,Google::Apis::BigtableadminV2::Cluster>
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 two clusters can be specified.
Corresponds to the JSON property clusters
493 494 495 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 493 def clusters @clusters end |
#instance ⇒ Google::Apis::BigtableadminV2::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
501 502 503 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 501 def instance @instance end |
#instance_id ⇒ String
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
508 509 510 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 508 def instance_id @instance_id end |
#parent ⇒ String
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
514 515 516 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 514 def parent @parent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
521 522 523 524 525 526 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 521 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 |