Class: Google::Apis::SpannerV1::InstanceReplicaSelection

Inherits:
Object
  • Object
show all
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

ReplicaSelection identifies replicas with common properties.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceReplicaSelection

Returns a new instance of InstanceReplicaSelection.



3589
3590
3591
# File 'lib/google/apis/spanner_v1/classes.rb', line 3589

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#locationString

Required. Name of the location of the replicas (for example, "us-central1"). Corresponds to the JSON property location

Returns:

  • (String)


3587
3588
3589
# File 'lib/google/apis/spanner_v1/classes.rb', line 3587

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3594
3595
3596
# File 'lib/google/apis/spanner_v1/classes.rb', line 3594

def update!(**args)
  @location = args[:location] if args.key?(:location)
end