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.



7456
7457
7458
# File 'lib/google/apis/ces_v1/classes.rb', line 7456

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)


7448
7449
7450
# File 'lib/google/apis/ces_v1/classes.rb', line 7448

def disabled
  @disabled
end

#textString

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

Returns:

  • (String)


7454
7455
7456
# File 'lib/google/apis/ces_v1/classes.rb', line 7454

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7461
7462
7463
7464
# File 'lib/google/apis/ces_v1/classes.rb', line 7461

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