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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/chat_v1/classes.rb,
generated/google/apis/chat_v1/representations.rb,
generated/google/apis/chat_v1/representations.rb

Overview

Hangouts Chat events.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DeprecatedEvent

Returns a new instance of DeprecatedEvent.


392
393
394
# File 'generated/google/apis/chat_v1/classes.rb', line 392

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, an Apps Script can be invoked to handle the form. Corresponds to the JSON property action


343
344
345
# File 'generated/google/apis/chat_v1/classes.rb', line 343

def action
  @action
end

#config_complete_redirect_urlString

The URL the bot should redirect the user to after they have completed an authorization or configuration flow outside of Hangouts Chat. See the Authorizing access to 3p services guide for more information. Corresponds to the JSON property configCompleteRedirectUrl

Returns:

  • (String)

351
352
353
# File 'generated/google/apis/chat_v1/classes.rb', line 351

def config_complete_redirect_url
  @config_complete_redirect_url
end

#event_timeString

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

Returns:

  • (String)

356
357
358
# File 'generated/google/apis/chat_v1/classes.rb', line 356

def event_time
  @event_time
end

#messageGoogle::Apis::ChatV1::Message

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


361
362
363
# File 'generated/google/apis/chat_v1/classes.rb', line 361

def message
  @message
end

#spaceGoogle::Apis::ChatV1::Space

A room or DM in Hangouts Chat. Corresponds to the JSON property space


366
367
368
# File 'generated/google/apis/chat_v1/classes.rb', line 366

def space
  @space
end

#thread_keyString

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

Returns:

  • (String)

372
373
374
# File 'generated/google/apis/chat_v1/classes.rb', line 372

def thread_key
  @thread_key
end

#tokenString

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 Hangouts 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

Returns:

  • (String)

380
381
382
# File 'generated/google/apis/chat_v1/classes.rb', line 380

def token
  @token
end

#typeString

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

Returns:

  • (String)

385
386
387
# File 'generated/google/apis/chat_v1/classes.rb', line 385

def type
  @type
end

#userGoogle::Apis::ChatV1::User

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


390
391
392
# File 'generated/google/apis/chat_v1/classes.rb', line 390

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


397
398
399
400
401
402
403
404
405
406
407
# File 'generated/google/apis/chat_v1/classes.rb', line 397

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