Class: Google::Apis::SpannerV1::InstanceConfig

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InstanceConfig

Returns a new instance of InstanceConfig.



1386
1387
1388
# File 'generated/google/apis/spanner_v1/classes.rb', line 1386

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

Instance Attribute Details

#display_nameString

The name of this instance configuration as it appears in UIs. Corresponds to the JSON property displayName

Returns:

  • (String)


1371
1372
1373
# File 'generated/google/apis/spanner_v1/classes.rb', line 1371

def display_name
  @display_name
end

#nameString

A unique identifier for the instance configuration. Values are of the form projects/<project>/instanceConfigs/a-z* Corresponds to the JSON property name

Returns:

  • (String)


1378
1379
1380
# File 'generated/google/apis/spanner_v1/classes.rb', line 1378

def name
  @name
end

#replicasArray<Google::Apis::SpannerV1::ReplicaInfo>

The geographic placement of nodes in this instance configuration and their replication properties. Corresponds to the JSON property replicas



1384
1385
1386
# File 'generated/google/apis/spanner_v1/classes.rb', line 1384

def replicas
  @replicas
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1391
1392
1393
1394
1395
# File 'generated/google/apis/spanner_v1/classes.rb', line 1391

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