Class: Google::Apis::DatamigrationV1::EntityDdl
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DatamigrationV1::EntityDdl
 
- 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
- 
  
    
      #ddl  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The actual ddl code. 
- 
  
    
      #ddl_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Type of DDL (Create, Alter). 
- 
  
    
      #entity  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the database entity the ddl refers to. 
- 
  
    
      #entity_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The entity type (if the DDL is for a sub entity). 
- 
  
    
      #issue_id  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    EntityIssues found for this ddl. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ EntityDdl 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of EntityDdl. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ EntityDdl
Returns a new instance of EntityDdl.
| 1613 1614 1615 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 1613 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#ddl ⇒ String
The actual ddl code.
Corresponds to the JSON property ddl
| 1591 1592 1593 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 1591 def ddl @ddl end | 
#ddl_type ⇒ String
Type of DDL (Create, Alter).
Corresponds to the JSON property ddlType
| 1596 1597 1598 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 1596 def ddl_type @ddl_type end | 
#entity ⇒ String
The name of the database entity the ddl refers to.
Corresponds to the JSON property entity
| 1601 1602 1603 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 1601 def entity @entity end | 
#entity_type ⇒ String
The entity type (if the DDL is for a sub entity).
Corresponds to the JSON property entityType
| 1606 1607 1608 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 1606 def entity_type @entity_type end | 
#issue_id ⇒ Array<String>
EntityIssues found for this ddl.
Corresponds to the JSON property issueId
| 1611 1612 1613 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 1611 def issue_id @issue_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1618 1619 1620 1621 1622 1623 1624 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 1618 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 |