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.



1904
1905
1906
# File 'lib/google/apis/spanner_v1/classes.rb', line 1904

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



1896
1897
1898
# File 'lib/google/apis/spanner_v1/classes.rb', line 1896

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)


1902
1903
1904
# File 'lib/google/apis/spanner_v1/classes.rb', line 1902

def instance_partition_id
  @instance_partition_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1909
1910
1911
1912
# File 'lib/google/apis/spanner_v1/classes.rb', line 1909

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