Class: Google::Apis::DatamigrationV1::EntityDdl

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

A single DDL statement for a specific entity

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EntityDdl

Returns a new instance of EntityDdl.



1722
1723
1724
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1722

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

Instance Attribute Details

#ddlString

The actual ddl code. Corresponds to the JSON property ddl

Returns:

  • (String)


1700
1701
1702
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1700

def ddl
  @ddl
end

#ddl_typeString

Type of DDL (Create, Alter). Corresponds to the JSON property ddlType

Returns:

  • (String)


1705
1706
1707
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1705

def ddl_type
  @ddl_type
end

#entityString

The name of the database entity the ddl refers to. Corresponds to the JSON property entity

Returns:

  • (String)


1710
1711
1712
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1710

def entity
  @entity
end

#entity_typeString

The entity type (if the DDL is for a sub entity). Corresponds to the JSON property entityType

Returns:

  • (String)


1715
1716
1717
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1715

def entity_type
  @entity_type
end

#issue_idArray<String>

EntityIssues found for this ddl. Corresponds to the JSON property issueId

Returns:

  • (Array<String>)


1720
1721
1722
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1720

def issue_id
  @issue_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1727
1728
1729
1730
1731
1732
1733
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1727

def update!(**args)
  @ddl = args[:ddl] if args.key?(:ddl)
  @ddl_type = args[:ddl_type] if args.key?(:ddl_type)
  @entity = args[:entity] if args.key?(:entity)
  @entity_type = args[:entity_type] if args.key?(:entity_type)
  @issue_id = args[:issue_id] if args.key?(:issue_id)
end