Class: Google::Apis::DatamigrationV1::SourceObjectIdentifier

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

Instance Method Summary collapse

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

#databaseString

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

Returns:

  • (String)


4965
4966
4967
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4965

def database
  @database
end

#typeString

Required. The type of the migration job object. Corresponds to the JSON property type

Returns:

  • (String)


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