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
Google Chat events.
Instance Attribute Summary collapse
-
#action ⇒ Google::Apis::ChatV1::FormAction
A form action describes the behavior when the form is submitted.
-
#config_complete_redirect_url ⇒ String
The URL the bot should redirect the user to after they have completed an authorization or configuration flow outside of Google Chat.
-
#event_time ⇒ String
The timestamp indicating when the event was dispatched.
-
#message ⇒ Google::Apis::ChatV1::Message
A message in Hangouts Chat.
-
#space ⇒ Google::Apis::ChatV1::Space
A room or DM in Hangouts Chat.
-
#thread_key ⇒ String
The bot-defined key for the thread related to the event.
-
#token ⇒ String
A secret value that bots can use to verify if a request is from Google.
-
#type ⇒ String
The type of the event.
-
#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.
524 525 526 |
# File 'lib/google/apis/chat_v1/classes.rb', line 524 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,
an Apps Script can be invoked to handle the form.
Corresponds to the JSON property action
475 476 477 |
# File 'lib/google/apis/chat_v1/classes.rb', line 475 def action @action end |
#config_complete_redirect_url ⇒ String
The URL the bot should redirect the user to after they have completed an
authorization or configuration flow outside of Google Chat. See the
Authorizing access to 3p services guide for more
information.
Corresponds to the JSON property configCompleteRedirectUrl
483 484 485 |
# File 'lib/google/apis/chat_v1/classes.rb', line 483 def config_complete_redirect_url @config_complete_redirect_url end |
#event_time ⇒ String
The timestamp indicating when the event was dispatched.
Corresponds to the JSON property eventTime
488 489 490 |
# File 'lib/google/apis/chat_v1/classes.rb', line 488 def event_time @event_time end |
#message ⇒ Google::Apis::ChatV1::Message
A message in Hangouts Chat.
Corresponds to the JSON property message
493 494 495 |
# File 'lib/google/apis/chat_v1/classes.rb', line 493 def @message end |
#space ⇒ Google::Apis::ChatV1::Space
A room or DM in Hangouts Chat.
Corresponds to the JSON property space
498 499 500 |
# File 'lib/google/apis/chat_v1/classes.rb', line 498 def space @space end |
#thread_key ⇒ String
The bot-defined key for the thread related to the event. See the thread_key
field of the spaces.message.create request for more information.
Corresponds to the JSON property threadKey
504 505 506 |
# File 'lib/google/apis/chat_v1/classes.rb', line 504 def thread_key @thread_key end |
#token ⇒ String
A secret value that bots can use to verify if a request is from Google. The
token is randomly generated by Google, remains static, and can be obtained
from the Google Chat API configuration page in the Cloud Console. Developers
can revoke/regenerate it if needed from the same page.
Corresponds to the JSON property token
512 513 514 |
# File 'lib/google/apis/chat_v1/classes.rb', line 512 def token @token end |
#type ⇒ String
The type of the event.
Corresponds to the JSON property type
517 518 519 |
# File 'lib/google/apis/chat_v1/classes.rb', line 517 def type @type end |
#user ⇒ Google::Apis::ChatV1::User
A user in Google Chat.
Corresponds to the JSON property user
522 523 524 |
# File 'lib/google/apis/chat_v1/classes.rb', line 522 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
529 530 531 532 533 534 535 536 537 538 539 |
# File 'lib/google/apis/chat_v1/classes.rb', line 529 def update!(**args) @action = args[:action] if args.key?(:action) @config_complete_redirect_url = args[:config_complete_redirect_url] if args.key?(:config_complete_redirect_url) @event_time = args[:event_time] if args.key?(:event_time) @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 |