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.
-
#name ⇒ String
The name of the trigger.
-
#sql_code ⇒ String
The SQL code which creates the trigger.
-
#trigger_type ⇒ String
Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH ROW.
-
#triggering_events ⇒ Array<String>
The DML, DDL, or database events that fire the trigger, for example INSERT, UPDATE.
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.
5131 5132 5133 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5131 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_features ⇒ Hash<String,Object>
Custom engine specific features.
Corresponds to the JSON property customFeatures
5108 5109 5110 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5108 def custom_features @custom_features end |
#name ⇒ String
The name of the trigger.
Corresponds to the JSON property name
5113 5114 5115 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5113 def name @name end |
#sql_code ⇒ String
The SQL code which creates the trigger.
Corresponds to the JSON property sqlCode
5118 5119 5120 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5118 def sql_code @sql_code end |
#trigger_type ⇒ String
Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH ROW.
Corresponds to the JSON property triggerType
5123 5124 5125 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5123 def trigger_type @trigger_type end |
#triggering_events ⇒ Array<String>
The DML, DDL, or database events that fire the trigger, for example INSERT,
UPDATE.
Corresponds to the JSON property triggeringEvents
5129 5130 5131 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5129 def triggering_events @triggering_events end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5136 5137 5138 5139 5140 5141 5142 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5136 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 |