Class: Google::Apis::CesV1::TriggerActionResponse
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::TriggerActionResponse
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb
Overview
Represents a response from the agent.
Instance Attribute Summary collapse
-
#disabled ⇒ Boolean
(also: #disabled?)
Optional.
-
#text ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TriggerActionResponse
constructor
A new instance of TriggerActionResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TriggerActionResponse
Returns a new instance of TriggerActionResponse.
8528 8529 8530 |
# File 'lib/google/apis/ces_v1/classes.rb', line 8528 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disabled ⇒ Boolean Also known as: disabled?
Optional. Whether the response is disabled. Disabled responses are not used by
the agent.
Corresponds to the JSON property disabled
8520 8521 8522 |
# File 'lib/google/apis/ces_v1/classes.rb', line 8520 def disabled @disabled end |
#text ⇒ String
Required. Text for the agent to respond with.
Corresponds to the JSON property text
8526 8527 8528 |
# File 'lib/google/apis/ces_v1/classes.rb', line 8526 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8533 8534 8535 8536 |
# File 'lib/google/apis/ces_v1/classes.rb', line 8533 def update!(**args) @disabled = args[:disabled] if args.key?(:disabled) @text = args[:text] if args.key?(:text) end |