class Google::Apis::SpannerV1::InstanceConfig

A possible configuration for a Cloud Spanner instance. Configurations define the geographic placement of nodes and their replication.

Attributes

display_name[RW]

The name of this instance configuration as it appears in UIs. Corresponds to the JSON property `displayName` @return [String]

leader_options[RW]

Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration. Corresponds to the JSON property `leaderOptions` @return [Array<String>]

name[RW]

A unique identifier for the instance configuration. Values are of the form ` projects//instanceConfigs/a-z*`. Corresponds to the JSON property `name` @return [String]

replicas[RW]

The geographic placement of nodes in this instance configuration and their replication properties. Corresponds to the JSON property `replicas` @return [Array<Google::Apis::SpannerV1::ReplicaInfo>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/spanner_v1/classes.rb, line 1746
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/spanner_v1/classes.rb, line 1751
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