Class: Google::Apis::DatamigrationV1::SynonymEntity

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

Synonym's parent is a schema.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SynonymEntity

Returns a new instance of SynonymEntity.



3385
3386
3387
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3385

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

Instance Attribute Details

#custom_featuresHash<String,Object>

Custom engine specific features. Corresponds to the JSON property customFeatures

Returns:

  • (Hash<String,Object>)


3372
3373
3374
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3372

def custom_features
  @custom_features
end

#source_entityString

The name of the entity for which the synonym is being created (the source). Corresponds to the JSON property sourceEntity

Returns:

  • (String)


3377
3378
3379
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3377

def source_entity
  @source_entity
end

#source_typeString

The type of the entity for which the synonym is being created (usually a table or a sequence). Corresponds to the JSON property sourceType

Returns:

  • (String)


3383
3384
3385
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3383

def source_type
  @source_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3390
3391
3392
3393
3394
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3390

def update!(**args)
  @custom_features = args[:custom_features] if args.key?(:custom_features)
  @source_entity = args[:source_entity] if args.key?(:source_entity)
  @source_type = args[:source_type] if args.key?(:source_type)
end