Class: Google::Apis::SpannerV1::InstanceConfig
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::InstanceConfig
- 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
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.
-
#leader_options ⇒ Array<String>
Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.
-
#name ⇒ String
A unique identifier for the instance configuration.
-
#replicas ⇒ Array<Google::Apis::SpannerV1::ReplicaInfo>
The geographic placement of nodes in this instance configuration and their replication properties.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceConfig
constructor
A new instance of InstanceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceConfig
Returns a new instance of InstanceConfig.
1708 1709 1710 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1708 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
1688 1689 1690 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1688 def display_name @display_name end |
#leader_options ⇒ Array<String>
Allowed values of the "default_leader" schema option for databases in
instances that use this instance configuration.
Corresponds to the JSON property leaderOptions
1694 1695 1696 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1694 def @leader_options end |
#name ⇒ String
A unique identifier for the instance configuration. Values are of the form
projects//instanceConfigs/a-z*.
Corresponds to the JSON property name
1700 1701 1702 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1700 def name @name end |
#replicas ⇒ Array<Google::Apis::SpannerV1::ReplicaInfo>
The geographic placement of nodes in this instance configuration and their
replication properties.
Corresponds to the JSON property replicas
1706 1707 1708 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1706 def replicas @replicas end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1713 1714 1715 1716 1717 1718 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1713 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @leader_options = args[:leader_options] if args.key?(:leader_options) @name = args[:name] if args.key?(:name) @replicas = args[:replicas] if args.key?(:replicas) end |