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
Optional.
-
#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.
4972 4973 4974 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4972 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database ⇒ String
Optional. 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
4965 4966 4967 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4965 def database @database end |
#type ⇒ String
Required. The type of the migration job object.
Corresponds to the JSON property type
4970 4971 4972 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4970 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4977 4978 4979 4980 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4977 def update!(**args) @database = args[:database] if args.key?(:database) @type = args[:type] if args.key?(:type) end |