Class: Google::Apis::SpannerV1::CreateInstancePartitionRequest
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::CreateInstancePartitionRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/google/apis/spanner_v1/representations.rb
Overview
The request for CreateInstancePartition.
Instance Attribute Summary collapse
-
#instance_partition ⇒ Google::Apis::SpannerV1::InstancePartition
An isolated set of Cloud Spanner resources that databases can define placements on.
-
#instance_partition_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateInstancePartitionRequest
constructor
A new instance of CreateInstancePartitionRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateInstancePartitionRequest
Returns a new instance of CreateInstancePartitionRequest.
1804 1805 1806 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1804 def initialize(**args) update!(**args) end |
Instance Attribute Details
#instance_partition ⇒ Google::Apis::SpannerV1::InstancePartition
An isolated set of Cloud Spanner resources that databases can define
placements on.
Corresponds to the JSON property instancePartition
1796 1797 1798 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1796 def instance_partition @instance_partition end |
#instance_partition_id ⇒ String
Required. The ID of the instance partition to create. Valid identifiers are of
the form a-z*[a-z0-9] and must be between 2 and 64 characters in length.
Corresponds to the JSON property instancePartitionId
1802 1803 1804 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1802 def instance_partition_id @instance_partition_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1809 1810 1811 1812 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1809 def update!(**args) @instance_partition = args[:instance_partition] if args.key?(:instance_partition) @instance_partition_id = args[:instance_partition_id] if args.key?(:instance_partition_id) end |