Cloud Spanner API - Class Google::Cloud::Spanner::Instance::Config (v2.23.0)

Reference documentation and code samples for the Cloud Spanner API class Google::Cloud::Spanner::Instance::Config.

Instance Config

Represents a Cloud Spanner instance configuration. Instance configurations define the geographic placement of nodes and their replication.

See Project#instance_configs and Project#instance_config.

Admin::Instance::V1::InstanceConfig instead.

Inherits

  • Object

Example

require "google/cloud/spanner"

spanner = Google::Cloud::Spanner.new

instance_configs = spanner.instance_configs
instance_configs.each do |config|
  puts config.instance_config_id
end

Methods

#display_name

def display_name() -> String
Alias Of: #name

The name of this instance configuration as it appears in UIs.

Returns
  • (String)

#instance_config_id

def instance_config_id() -> String

A unique identifier for the instance configuration.

Returns
  • (String)

#name

def name() -> String
Aliases

The name of this instance configuration as it appears in UIs.

Returns
  • (String)

#path

def path() -> String

The full path for the instance config resource. Values are of the form projects/<project_id>/instanceConfigs/<instance_config_id>.

Returns
  • (String)

#project_id

def project_id() -> String

The unique identifier for the project.

Returns
  • (String)