Class: Google::Apis::ChatV1::ActionResponse
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::ActionResponse
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
Parameters that a Chat app can use to configure how its response is posted.
Instance Attribute Summary collapse
-
#dialog_action ⇒ Google::Apis::ChatV1::DialogAction
Contains a dialog and request status code.
-
#type ⇒ String
Input only.
-
#url ⇒ String
Input only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActionResponse
constructor
A new instance of ActionResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ActionResponse
Returns a new instance of ActionResponse.
74 75 76 |
# File 'lib/google/apis/chat_v1/classes.rb', line 74 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dialog_action ⇒ Google::Apis::ChatV1::DialogAction
Contains a dialog and
request status code.
Corresponds to the JSON property dialogAction
61 62 63 |
# File 'lib/google/apis/chat_v1/classes.rb', line 61 def dialog_action @dialog_action end |
#type ⇒ String
Input only. The type of Chat app response.
Corresponds to the JSON property type
66 67 68 |
# File 'lib/google/apis/chat_v1/classes.rb', line 66 def type @type end |
#url ⇒ String
Input only. URL for users to authenticate or configure. (Only for
REQUEST_CONFIG response types.)
Corresponds to the JSON property url
72 73 74 |
# File 'lib/google/apis/chat_v1/classes.rb', line 72 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
79 80 81 82 83 |
# File 'lib/google/apis/chat_v1/classes.rb', line 79 def update!(**args) @dialog_action = args[:dialog_action] if args.key?(:dialog_action) @type = args[:type] if args.key?(:type) @url = args[:url] if args.key?(:url) end |