Class: Google::Cloud::Spanner::Instance::Config Deprecated
- Inherits:
-
Object
- Object
- Google::Cloud::Spanner::Instance::Config
- Defined in:
- lib/google/cloud/spanner/instance/config.rb,
lib/google/cloud/spanner/instance/config/list.rb
Overview
Use
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.
Defined Under Namespace
Classes: List
Instance Method Summary collapse
-
#instance_config_id ⇒ String
A unique identifier for the instance configuration.
-
#name ⇒ String
(also: #display_name)
The name of this instance configuration as it appears in UIs.
-
#path ⇒ String
The full path for the instance config resource.
-
#project_id ⇒ String
The unique identifier for the project.
Instance Method Details
#instance_config_id ⇒ String
A unique identifier for the instance configuration.
65 66 67 |
# File 'lib/google/cloud/spanner/instance/config.rb', line 65 def instance_config_id @grpc.name.split("/")[3] end |
#name ⇒ String Also known as: display_name
The name of this instance configuration as it appears in UIs.
80 81 82 |
# File 'lib/google/cloud/spanner/instance/config.rb', line 80 def name @grpc.display_name end |
#path ⇒ String
The full path for the instance config resource. Values are of the
form projects/<project_id>/instanceConfigs/<instance_config_id>
.
73 74 75 |
# File 'lib/google/cloud/spanner/instance/config.rb', line 73 def path @grpc.name end |
#project_id ⇒ String
The unique identifier for the project.
58 59 60 |
# File 'lib/google/cloud/spanner/instance/config.rb', line 58 def project_id @grpc.name.split("/")[1] end |