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.
6916 6917 6918 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6916 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
6908 6909 6910 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6908 def disabled @disabled end |
#text ⇒ String
Required. Text for the agent to respond with.
Corresponds to the JSON property text
6914 6915 6916 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6914 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6921 6922 6923 6924 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6921 def update!(**args) @disabled = args[:disabled] if args.key?(:disabled) @text = args[:text] if args.key?(:text) end |