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.



1826
1827
1828
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1826

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

Instance Attribute Details

#ddlString

The actual ddl code. Corresponds to the JSON property ddl

Returns:

  • (String)


1792
1793
1794
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1792

def ddl
  @ddl
end

#ddl_kindString

The DDL Kind selected for apply, or UNSPECIFIED if the entity wasn't converted yet. Corresponds to the JSON property ddlKind

Returns:

  • (String)


1798
1799
1800
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1798

def ddl_kind
  @ddl_kind
end

#ddl_typeString

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

Returns:

  • (String)


1803
1804
1805
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1803

def ddl_type
  @ddl_type
end

#edited_ddl_kindString

If ddl_kind is USER_EDIT, this holds the DDL kind of the original content - DETERMINISTIC or AI. Otherwise, this is DDL_KIND_UNSPECIFIED. Corresponds to the JSON property editedDdlKind

Returns:

  • (String)


1809
1810
1811
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1809

def edited_ddl_kind
  @edited_ddl_kind
end

#entityString

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

Returns:

  • (String)


1814
1815
1816
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1814

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)


1819
1820
1821
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1819

def entity_type
  @entity_type
end

#issue_idArray<String>

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

Returns:

  • (Array<String>)


1824
1825
1826
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1824

def issue_id
  @issue_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1831
1832
1833
1834
1835
1836
1837
1838
1839
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1831

def update!(**args)
  @ddl = args[:ddl] if args.key?(:ddl)
  @ddl_kind = args[:ddl_kind] if args.key?(:ddl_kind)
  @ddl_type = args[:ddl_type] if args.key?(:ddl_type)
  @edited_ddl_kind = args[:edited_ddl_kind] if args.key?(:edited_ddl_kind)
  @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