Class: Google::Apis::CesV1::TriggerActionResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#disabledBoolean Also known as: disabled?

Optional. Whether the response is disabled. Disabled responses are not used by the agent. Corresponds to the JSON property disabled

Returns:

  • (Boolean)


6908
6909
6910
# File 'lib/google/apis/ces_v1/classes.rb', line 6908

def disabled
  @disabled
end

#textString

Required. Text for the agent to respond with. Corresponds to the JSON property text

Returns:

  • (String)


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