Class: Google::Apis::SpannerV1::DatabaseMoveConfig
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::DatabaseMoveConfig
- 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
-
#database_id ⇒ String
Required.
-
#encryption_config ⇒ Google::Apis::SpannerV1::InstanceEncryptionConfig
Encryption configuration for a Cloud Spanner database.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatabaseMoveConfig
constructor
A new instance of DatabaseMoveConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ String
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
2152 2153 2154 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2152 def database_id @database_id end |
#encryption_config ⇒ Google::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 |