Class: Google::Apis::DatamigrationV1::SourceObjectIdentifier
- Inherits:
-
Object
- Object
- Google::Apis::DatamigrationV1::SourceObjectIdentifier
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datamigration_v1/classes.rb,
lib/google/apis/datamigration_v1/representations.rb,
lib/google/apis/datamigration_v1/representations.rb
Overview
An identifier for the Migration Job Object.
Instance Attribute Summary collapse
-
#database ⇒ String
The database name.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SourceObjectIdentifier
constructor
A new instance of SourceObjectIdentifier.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SourceObjectIdentifier
Returns a new instance of SourceObjectIdentifier.
4930 4931 4932 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4930 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database ⇒ String
The database name. This will be required only if the object uses a database
name as part of its unique identifier.
Corresponds to the JSON property database
4923 4924 4925 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4923 def database @database end |
#type ⇒ String
Required. The type of the migration job object.
Corresponds to the JSON property type
4928 4929 4930 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4928 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4935 4936 4937 4938 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4935 def update!(**args) @database = args[:database] if args.key?(:database) @type = args[:type] if args.key?(:type) end |