Class: Google::Apis::ChatV1::ActionResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/chat_v1/classes.rb,
generated/google/apis/chat_v1/representations.rb,
generated/google/apis/chat_v1/representations.rb

Overview

Parameters that a bot can use to configure how it's response is posted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ActionResponse

Returns a new instance of ActionResponse



67
68
69
# File 'generated/google/apis/chat_v1/classes.rb', line 67

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#typeString

The type of bot response. Corresponds to the JSON property type

Returns:

  • (String)


60
61
62
# File 'generated/google/apis/chat_v1/classes.rb', line 60

def type
  @type
end

#urlString

URL for users to auth or config. (Only for REQUEST_CONFIG response types.) Corresponds to the JSON property url

Returns:

  • (String)


65
66
67
# File 'generated/google/apis/chat_v1/classes.rb', line 65

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



72
73
74
75
# File 'generated/google/apis/chat_v1/classes.rb', line 72

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