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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActionResponse

Returns a new instance of ActionResponse.



135
136
137
# File 'lib/google/apis/chat_v1/classes.rb', line 135

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

Instance Attribute Details

#dialog_actionGoogle::Apis::ChatV1::DialogAction

Contains a dialog and request status code. Corresponds to the JSON property dialogAction



116
117
118
# File 'lib/google/apis/chat_v1/classes.rb', line 116

def dialog_action
  @dialog_action
end

#typeString

Input only. The type of Chat app response. Corresponds to the JSON property type

Returns:

  • (String)


121
122
123
# File 'lib/google/apis/chat_v1/classes.rb', line 121

def type
  @type
end

#updated_widgetGoogle::Apis::ChatV1::UpdatedWidget

The response of the updated widget. Used to provide autocomplete options for a widget. Corresponds to the JSON property updatedWidget



127
128
129
# File 'lib/google/apis/chat_v1/classes.rb', line 127

def updated_widget
  @updated_widget
end

#urlString

Input only. URL for users to authenticate or configure. (Only for REQUEST_CONFIG response types.) Corresponds to the JSON property url

Returns:

  • (String)


133
134
135
# File 'lib/google/apis/chat_v1/classes.rb', line 133

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



140
141
142
143
144
145
# File 'lib/google/apis/chat_v1/classes.rb', line 140

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