Class: Google::Apis::SpannerV1::DatabaseMoveConfig

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

The configuration for each database in the target instance configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatabaseMoveConfig

Returns a new instance of DatabaseMoveConfig.



2159
2160
2161
# File 'lib/google/apis/spanner_v1/classes.rb', line 2159

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

Instance Attribute Details

#database_idString

Required. The unique identifier of the database resource in the Instance. For example, if the database uri is projects/foo/instances/bar/databases/baz, then the id to supply here is baz. Corresponds to the JSON property databaseId

Returns:

  • (String)


2152
2153
2154
# File 'lib/google/apis/spanner_v1/classes.rb', line 2152

def database_id
  @database_id
end

#encryption_configGoogle::Apis::SpannerV1::InstanceEncryptionConfig

Encryption configuration for a Cloud Spanner database. Corresponds to the JSON property encryptionConfig



2157
2158
2159
# File 'lib/google/apis/spanner_v1/classes.rb', line 2157

def encryption_config
  @encryption_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2164
2165
2166
2167
# File 'lib/google/apis/spanner_v1/classes.rb', line 2164

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