Class: Google::Apis::DatamigrationV1::FilterTableColumns

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

Options to configure rule type FilterTableColumns. The rule is used to filter the list of columns to include or exclude from a table. The rule filter field can refer to one entity. The rule scope can be: Table Only one of the two lists can be specified for the rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FilterTableColumns

Returns a new instance of FilterTableColumns.



1996
1997
1998
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1996

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

Instance Attribute Details

#exclude_columnsArray<String>

Optional. List of columns to be excluded for a particular table. Corresponds to the JSON property excludeColumns

Returns:

  • (Array<String>)


1989
1990
1991
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1989

def exclude_columns
  @exclude_columns
end

#include_columnsArray<String>

Optional. List of columns to be included for a particular table. Corresponds to the JSON property includeColumns

Returns:

  • (Array<String>)


1994
1995
1996
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1994

def include_columns
  @include_columns
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2001
2002
2003
2004
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2001

def update!(**args)
  @exclude_columns = args[:exclude_columns] if args.key?(:exclude_columns)
  @include_columns = args[:include_columns] if args.key?(:include_columns)
end