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.



6017
6018
6019
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6017

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

Instance Attribute Details

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

Table columns. Corresponds to the JSON property columns



5990
5991
5992
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5990

def columns
  @columns
end

#commentString

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

Returns:

  • (String)


5995
5996
5997
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5995

def comment
  @comment
end

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

Table constraints. Corresponds to the JSON property constraints



6000
6001
6002
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6000

def constraints
  @constraints
end

#custom_featuresHash<String,Object>

Custom engine specific features. Corresponds to the JSON property customFeatures

Returns:

  • (Hash<String,Object>)


6005
6006
6007
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6005

def custom_features
  @custom_features
end

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

Table indices. Corresponds to the JSON property indices



6010
6011
6012
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6010

def indices
  @indices
end

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

Table triggers. Corresponds to the JSON property triggers



6015
6016
6017
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6015

def triggers
  @triggers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6022
6023
6024
6025
6026
6027
6028
6029
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6022

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