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.



3473
3474
3475
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3473

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

Instance Attribute Details

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

Table columns. Corresponds to the JSON property columns



3446
3447
3448
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3446

def columns
  @columns
end

#commentString

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

Returns:

  • (String)


3451
3452
3453
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3451

def comment
  @comment
end

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

Table constraints. Corresponds to the JSON property constraints



3456
3457
3458
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3456

def constraints
  @constraints
end

#custom_featuresHash<String,Object>

Custom engine specific features. Corresponds to the JSON property customFeatures

Returns:

  • (Hash<String,Object>)


3461
3462
3463
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3461

def custom_features
  @custom_features
end

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

Table indices. Corresponds to the JSON property indices



3466
3467
3468
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3466

def indices
  @indices
end

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

Table triggers. Corresponds to the JSON property triggers



3471
3472
3473
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3471

def triggers
  @triggers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3478
3479
3480
3481
3482
3483
3484
3485
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3478

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