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.



5095
5096
5097
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5095

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

Instance Attribute Details

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

Table columns. Corresponds to the JSON property columns



5068
5069
5070
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5068

def columns
  @columns
end

#commentString

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

Returns:

  • (String)


5073
5074
5075
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5073

def comment
  @comment
end

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

Table constraints. Corresponds to the JSON property constraints



5078
5079
5080
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5078

def constraints
  @constraints
end

#custom_featuresHash<String,Object>

Custom engine specific features. Corresponds to the JSON property customFeatures

Returns:

  • (Hash<String,Object>)


5083
5084
5085
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5083

def custom_features
  @custom_features
end

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

Table indices. Corresponds to the JSON property indices



5088
5089
5090
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5088

def indices
  @indices
end

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

Table triggers. Corresponds to the JSON property triggers



5093
5094
5095
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5093

def triggers
  @triggers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5100
5101
5102
5103
5104
5105
5106
5107
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5100

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