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.
1236 1237 1238 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1236 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
1233 1234 1235 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1233 def only_if_no_primary_key @only_if_no_primary_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1241 1242 1243 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1241 def update!(**args) @only_if_no_primary_key = args[:only_if_no_primary_key] if args.key?(:only_if_no_primary_key) end |