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.



8451
8452
8453
# File 'lib/google/apis/ces_v1/classes.rb', line 8451

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)


8443
8444
8445
# File 'lib/google/apis/ces_v1/classes.rb', line 8443

def disabled
  @disabled
end

#textString

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

Returns:

  • (String)


8449
8450
8451
# File 'lib/google/apis/ces_v1/classes.rb', line 8449

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8456
8457
8458
8459
# File 'lib/google/apis/ces_v1/classes.rb', line 8456

def update!(**args)
  @disabled = args[:disabled] if args.key?(:disabled)
  @text = args[:text] if args.key?(:text)
end