Class: Google::Apis::DatamigrationV1::ConvertRowIdToColumn

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 ConvertROWIDToColumn. The rule is used to add column rowid to destination tables based on an Oracle rowid function/property. The rule filter field can refer to one or more entities. The rule scope can be one of: Table. This rule requires additional filter to be specified beyond the basic rule filter field, which is whether or not to work on tables which already have a primary key defined.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConvertRowIdToColumn

Returns a new instance of ConvertRowIdToColumn.



1293
1294
1295
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1293

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

Instance Attribute Details

#only_if_no_primary_keyBoolean Also known as: only_if_no_primary_key?

Required. Only work on tables without primary key defined Corresponds to the JSON property onlyIfNoPrimaryKey

Returns:

  • (Boolean)


1290
1291
1292
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1290

def only_if_no_primary_key
  @only_if_no_primary_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1298
1299
1300
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1298

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