Class: Google::Apis::SpannerV1::CreateInstancePartitionRequest

Inherits:
Object
  • Object
show all
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 Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateInstancePartitionRequest

Returns a new instance of CreateInstancePartitionRequest.



1879
1880
1881
# File 'lib/google/apis/spanner_v1/classes.rb', line 1879

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

Instance Attribute Details

#instance_partitionGoogle::Apis::SpannerV1::InstancePartition

An isolated set of Cloud Spanner resources that databases can define placements on. Corresponds to the JSON property instancePartition



1871
1872
1873
# File 'lib/google/apis/spanner_v1/classes.rb', line 1871

def instance_partition
  @instance_partition
end

#instance_partition_idString

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

Returns:

  • (String)


1877
1878
1879
# File 'lib/google/apis/spanner_v1/classes.rb', line 1877

def instance_partition_id
  @instance_partition_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1884
1885
1886
1887
# File 'lib/google/apis/spanner_v1/classes.rb', line 1884

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