Class: Google::Apis::DatamigrationV1::TriggerEntity
- Inherits:
-
Object
- Object
- Google::Apis::DatamigrationV1::TriggerEntity
- 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
Trigger is not used as an independent entity, it is retrieved as part of a Table entity.
Instance Attribute Summary collapse
-
#custom_features ⇒ Hash<String,Object>
Custom engine specific features Corresponds to the JSON property
customFeatures
. -
#name ⇒ String
The name of the trigger Corresponds to the JSON property
name
. -
#sql_code ⇒ String
The SQL code which creates the trigger Corresponds to the JSON property
sqlCode
. -
#trigger_type ⇒ String
Indicates when the trigger fires, e.g.
-
#triggering_events ⇒ Array<String>
The DML, DDL, or database events that fires the trigger, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TriggerEntity
constructor
A new instance of TriggerEntity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TriggerEntity
Returns a new instance of TriggerEntity.
3405 3406 3407 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3405 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_features ⇒ Hash<String,Object>
Custom engine specific features
Corresponds to the JSON property customFeatures
3383 3384 3385 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3383 def custom_features @custom_features end |
#name ⇒ String
The name of the trigger
Corresponds to the JSON property name
3388 3389 3390 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3388 def name @name end |
#sql_code ⇒ String
The SQL code which creates the trigger
Corresponds to the JSON property sqlCode
3393 3394 3395 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3393 def sql_code @sql_code end |
#trigger_type ⇒ String
Indicates when the trigger fires, e.g. BEFORE STATEMENT, AFTER EACH ROW
Corresponds to the JSON property triggerType
3398 3399 3400 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3398 def trigger_type @trigger_type end |
#triggering_events ⇒ Array<String>
The DML, DDL, or database events that fires the trigger, e.g. INSERT, UPDATE
Corresponds to the JSON property triggeringEvents
3403 3404 3405 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3403 def triggering_events @triggering_events end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3410 3411 3412 3413 3414 3415 3416 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3410 def update!(**args) @custom_features = args[:custom_features] if args.key?(:custom_features) @name = args[:name] if args.key?(:name) @sql_code = args[:sql_code] if args.key?(:sql_code) @trigger_type = args[:trigger_type] if args.key?(:trigger_type) @triggering_events = args[:triggering_events] if args.key?(:triggering_events) end |