Class: Google::Apis::ChatV1::DeprecatedEvent

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

Google Chat events. To learn how to use events, see Receive and respond to Google Chat events.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeprecatedEvent

Returns a new instance of DeprecatedEvent.



854
855
856
# File 'lib/google/apis/chat_v1/classes.rb', line 854

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

Instance Attribute Details

#actionGoogle::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



779
780
781
# File 'lib/google/apis/chat_v1/classes.rb', line 779

def action
  @action
end

#commonGoogle::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



787
788
789
# File 'lib/google/apis/chat_v1/classes.rb', line 787

def common
  @common
end

#config_complete_redirect_urlString

The URL the Chat app should redirect the user to after they have completed an authorization or configuration flow outside of Google Chat. For more information, see Connect a Chat app with other services & tools. Corresponds to the JSON property configCompleteRedirectUrl

Returns:

  • (String)


795
796
797
# File 'lib/google/apis/chat_v1/classes.rb', line 795

def config_complete_redirect_url
  @config_complete_redirect_url
end

#dialog_event_typeString

The type of dialog event received. Corresponds to the JSON property dialogEventType

Returns:

  • (String)


801
802
803
# File 'lib/google/apis/chat_v1/classes.rb', line 801

def dialog_event_type
  @dialog_event_type
end

#event_timeString

The timestamp indicating when the event occurred. Corresponds to the JSON property eventTime

Returns:

  • (String)


806
807
808
# File 'lib/google/apis/chat_v1/classes.rb', line 806

def event_time
  @event_time
end

#is_dialog_eventBoolean Also known as: is_dialog_event?

True when the event is related to dialogs. Corresponds to the JSON property isDialogEvent

Returns:

  • (Boolean)


812
813
814
# File 'lib/google/apis/chat_v1/classes.rb', line 812

def is_dialog_event
  @is_dialog_event
end

#messageGoogle::Apis::ChatV1::Message

A message in Google Chat. Corresponds to the JSON property message



818
819
820
# File 'lib/google/apis/chat_v1/classes.rb', line 818

def message
  @message
end

#spaceGoogle::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



824
825
826
# File 'lib/google/apis/chat_v1/classes.rb', line 824

def space
  @space
end

#thread_keyString

The Chat app-defined key for the thread related to the event. See spaces. messages.thread.threadKey for more information. Corresponds to the JSON property threadKey

Returns:

  • (String)


831
832
833
# File 'lib/google/apis/chat_v1/classes.rb', line 831

def thread_key
  @thread_key
end

#tokenString

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

Returns:

  • (String)


842
843
844
# File 'lib/google/apis/chat_v1/classes.rb', line 842

def token
  @token
end

#typeString

The type of the event. Corresponds to the JSON property type

Returns:

  • (String)


847
848
849
# File 'lib/google/apis/chat_v1/classes.rb', line 847

def type
  @type
end

#userGoogle::Apis::ChatV1::User

A user in Google Chat. Corresponds to the JSON property user



852
853
854
# File 'lib/google/apis/chat_v1/classes.rb', line 852

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



859
860
861
862
863
864
865
866
867
868
869
870
871
872
# File 'lib/google/apis/chat_v1/classes.rb', line 859

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