Class: Google::Apis::ContentV2_1::TriggerActionPayload
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::TriggerActionPayload
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
The payload for the triggered action.
Instance Attribute Summary collapse
-
#action_context ⇒ String
Required.
-
#action_input ⇒ Google::Apis::ContentV2_1::ActionInput
Input provided by the merchant.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TriggerActionPayload
constructor
A new instance of TriggerActionPayload.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TriggerActionPayload
Returns a new instance of TriggerActionPayload.
14262 14263 14264 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14262 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action_context ⇒ String
Required. The context from the selected action. The value is obtained from
rendered issues and needs to be sent back to identify the action that is being
triggered.
Corresponds to the JSON property actionContext
14255 14256 14257 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14255 def action_context @action_context end |
#action_input ⇒ Google::Apis::ContentV2_1::ActionInput
Input provided by the merchant.
Corresponds to the JSON property actionInput
14260 14261 14262 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14260 def action_input @action_input end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14267 14268 14269 14270 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14267 def update!(**args) @action_context = args[:action_context] if args.key?(:action_context) @action_input = args[:action_input] if args.key?(:action_input) end |