Class: Google::Apis::SpannerV1::InstanceConfig
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::InstanceConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/spanner_v1/classes.rb,
generated/google/apis/spanner_v1/representations.rb,
generated/google/apis/spanner_v1/representations.rb
Overview
A possible configuration for a Cloud Spanner instance. Configurations define the geographic placement of nodes and their replication.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The name of this instance configuration as it appears in UIs.
-
#name ⇒ String
A unique identifier for the instance configuration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceConfig
constructor
A new instance of InstanceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ InstanceConfig
Returns a new instance of InstanceConfig
1536 1537 1538 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1536 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The name of this instance configuration as it appears in UIs.
Corresponds to the JSON property displayName
1534 1535 1536 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1534 def display_name @display_name end |
#name ⇒ String
A unique identifier for the instance configuration. Values
are of the form
projects/<project>/instanceConfigs/a-z*
Corresponds to the JSON property name
1529 1530 1531 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1529 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1541 1542 1543 1544 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1541 def update!(**args) @name = args[:name] if args.key?(:name) @display_name = args[:display_name] if args.key?(:display_name) end |