Class: Google::Apis::DatamigrationV1::TableEntity

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

Table's parent is a schema.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TableEntity

Returns a new instance of TableEntity.



5595
5596
5597
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5595

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

Instance Attribute Details

#columnsArray<Google::Apis::DatamigrationV1::ColumnEntity>

Table columns. Corresponds to the JSON property columns



5568
5569
5570
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5568

def columns
  @columns
end

#commentString

Comment associated with the table. Corresponds to the JSON property comment

Returns:

  • (String)


5573
5574
5575
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5573

def comment
  @comment
end

#constraintsArray<Google::Apis::DatamigrationV1::ConstraintEntity>

Table constraints. Corresponds to the JSON property constraints



5578
5579
5580
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5578

def constraints
  @constraints
end

#custom_featuresHash<String,Object>

Custom engine specific features. Corresponds to the JSON property customFeatures

Returns:

  • (Hash<String,Object>)


5583
5584
5585
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5583

def custom_features
  @custom_features
end

#indicesArray<Google::Apis::DatamigrationV1::IndexEntity>

Table indices. Corresponds to the JSON property indices



5588
5589
5590
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5588

def indices
  @indices
end

#triggersArray<Google::Apis::DatamigrationV1::TriggerEntity>

Table triggers. Corresponds to the JSON property triggers



5593
5594
5595
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5593

def triggers
  @triggers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5600
5601
5602
5603
5604
5605
5606
5607
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5600

def update!(**args)
  @columns = args[:columns] if args.key?(:columns)
  @comment = args[:comment] if args.key?(:comment)
  @constraints = args[:constraints] if args.key?(:constraints)
  @custom_features = args[:custom_features] if args.key?(:custom_features)
  @indices = args[:indices] if args.key?(:indices)
  @triggers = args[:triggers] if args.key?(:triggers)
end