Class: Google::Apis::ChatV1::DeprecatedEvent
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::DeprecatedEvent
- 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
A Google Chat app interaction event that represents and contains data about a user's interaction with a Chat app. To configure your Chat app to receive interaction events, see Receive and respond to user interactions. In addition to receiving events from user interactions, Chat apps can receive events about changes to spaces, such as when a new member is added to a space. To learn about space events, see Work with events from Google Chat.
Instance Attribute Summary collapse
-
#action ⇒ Google::Apis::ChatV1::FormAction
A form action describes the behavior when the form is submitted.
-
#common ⇒ Google::Apis::ChatV1::CommonEventObject
Represents information about the user's client, such as locale, host app, and platform.
-
#config_complete_redirect_url ⇒ String
For
MESSAGEinteraction events, the URL that users must be redirected to after they complete an authorization or configuration flow outside of Google Chat. -
#dialog_event_type ⇒ String
The type of dialog interaction event received.
-
#event_time ⇒ String
The timestamp indicating when the interaction event occurred.
-
#is_dialog_event ⇒ Boolean
(also: #is_dialog_event?)
For
CARD_CLICKEDandMESSAGEinteraction events, whether the user is interacting with or about to interact with a dialog. -
#message ⇒ Google::Apis::ChatV1::Message
A message in a Google Chat space.
-
#space ⇒ Google::Apis::ChatV1::Space
A space in Google Chat.
-
#thread_key ⇒ String
The Chat app-defined key for the thread related to the interaction event.
-
#token ⇒ String
A secret value that legacy Chat apps can use to verify if a request is from Google.
-
#type ⇒ String
The type of user interaction with the Chat app, such as
MESSAGEorADDED_TO_SPACE. -
#user ⇒ Google::Apis::ChatV1::User
A user in Google Chat.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeprecatedEvent
constructor
A new instance of DeprecatedEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeprecatedEvent
Returns a new instance of DeprecatedEvent.
1017 1018 1019 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1017 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ Google::Apis::ChatV1::FormAction
A form action describes the behavior when the form is submitted. For example,
you can invoke Apps Script to handle the form.
Corresponds to the JSON property action
936 937 938 |
# File 'lib/google/apis/chat_v1/classes.rb', line 936 def action @action end |
#common ⇒ Google::Apis::ChatV1::CommonEventObject
Represents information about the user's client, such as locale, host app, and
platform. For Chat apps, CommonEventObject includes data submitted by users
interacting with cards, like data entered in dialogs.
Corresponds to the JSON property common
944 945 946 |
# File 'lib/google/apis/chat_v1/classes.rb', line 944 def common @common end |
#config_complete_redirect_url ⇒ String
For MESSAGE interaction events, the URL that users must be redirected to
after they complete an authorization or configuration flow outside of Google
Chat. For more information, see Connect a Chat app with other services and
tools
.
Corresponds to the JSON property configCompleteRedirectUrl
953 954 955 |
# File 'lib/google/apis/chat_v1/classes.rb', line 953 def config_complete_redirect_url @config_complete_redirect_url end |
#dialog_event_type ⇒ String
The type of dialog
interaction event received.
Corresponds to the JSON property dialogEventType
959 960 961 |
# File 'lib/google/apis/chat_v1/classes.rb', line 959 def dialog_event_type @dialog_event_type end |
#event_time ⇒ String
The timestamp indicating when the interaction event occurred.
Corresponds to the JSON property eventTime
964 965 966 |
# File 'lib/google/apis/chat_v1/classes.rb', line 964 def event_time @event_time end |
#is_dialog_event ⇒ Boolean Also known as: is_dialog_event?
For CARD_CLICKED and MESSAGE interaction events, whether the user is
interacting with or about to interact with a dialog.
Corresponds to the JSON property isDialogEvent
971 972 973 |
# File 'lib/google/apis/chat_v1/classes.rb', line 971 def is_dialog_event @is_dialog_event end |
#message ⇒ Google::Apis::ChatV1::Message
A message in a Google Chat space.
Corresponds to the JSON property message
977 978 979 |
# File 'lib/google/apis/chat_v1/classes.rb', line 977 def @message end |
#space ⇒ Google::Apis::ChatV1::Space
A space in Google Chat. Spaces are conversations between two or more users or
1:1 messages between a user and a Chat app.
Corresponds to the JSON property space
983 984 985 |
# File 'lib/google/apis/chat_v1/classes.rb', line 983 def space @space end |
#thread_key ⇒ String
The Chat app-defined key for the thread related to the interaction event. See
spaces.messages.thread.threadKey for more information.
Corresponds to the JSON property threadKey
990 991 992 |
# File 'lib/google/apis/chat_v1/classes.rb', line 990 def thread_key @thread_key end |
#token ⇒ String
A secret value that legacy Chat apps can use to verify if a request is from
Google. Google randomly generates the token, and its value remains static. You
can obtain, revoke, or regenerate the token from the Chat API configuration
page in the Google Cloud Console. Modern Chat apps don't use this field. It
is absent from API responses and the Chat API configuration page.
Corresponds to the JSON property token
1001 1002 1003 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1001 def token @token end |
#type ⇒ String
The type of user
interaction with the Chat app, such as MESSAGE or ADDED_TO_SPACE.
Corresponds to the JSON property type
1007 1008 1009 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1007 def type @type end |
#user ⇒ Google::Apis::ChatV1::User
A user in Google Chat. When returned as an output from a request, if your Chat
app authenticates as a user, the output for a User resource only
populates the user's name and type.
Corresponds to the JSON property user
1015 1016 1017 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1015 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1022 def update!(**args) @action = args[:action] if args.key?(:action) @common = args[:common] if args.key?(:common) @config_complete_redirect_url = args[:config_complete_redirect_url] if args.key?(:config_complete_redirect_url) @dialog_event_type = args[:dialog_event_type] if args.key?(:dialog_event_type) @event_time = args[:event_time] if args.key?(:event_time) @is_dialog_event = args[:is_dialog_event] if args.key?(:is_dialog_event) @message = args[:message] if args.key?(:message) @space = args[:space] if args.key?(:space) @thread_key = args[:thread_key] if args.key?(:thread_key) @token = args[:token] if args.key?(:token) @type = args[:type] if args.key?(:type) @user = args[:user] if args.key?(:user) end |