Class: Google::Apis::DatamigrationV1::ConvertRowIdToColumn
- Inherits:
-
Object
- Object
- Google::Apis::DatamigrationV1::ConvertRowIdToColumn
- 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
-
#only_if_no_primary_key ⇒ Boolean
(also: #only_if_no_primary_key?)
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConvertRowIdToColumn
constructor
A new instance of ConvertRowIdToColumn.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_key ⇒ Boolean Also known as: only_if_no_primary_key?
Required. Only work on tables without primary key defined
Corresponds to the JSON property onlyIfNoPrimaryKey
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 |