class Google::Apis::SpannerV1::ReplicaInfo

Attributes

default_leader_location[RW]

If true, this location is designated as the default leader location where leader replicas are placed. See the [region types documentation](cloud. google.com/spanner/docs/instances#region_types) for more details. Corresponds to the JSON property `defaultLeaderLocation` @return [Boolean]

default_leader_location?[RW]

If true, this location is designated as the default leader location where leader replicas are placed. See the [region types documentation](cloud. google.com/spanner/docs/instances#region_types) for more details. Corresponds to the JSON property `defaultLeaderLocation` @return [Boolean]

location[RW]

The location of the serving resources, e.g. “us-central1”. Corresponds to the JSON property `location` @return [String]

type[RW]

The type of replica. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/spanner_v1/classes.rb, line 3314
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 3319
def update!(**args)
  @default_leader_location = args[:default_leader_location] if args.key?(:default_leader_location)
  @location = args[:location] if args.key?(:location)
  @type = args[:type] if args.key?(:type)
end