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.



1939
1940
1941
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1939

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>)


1932
1933
1934
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1932

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>)


1937
1938
1939
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1937

def include_columns
  @include_columns
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1944
1945
1946
1947
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1944

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