Class: Google::Apis::ChatV1::SpaceEvent
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::SpaceEvent
- 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
An event that represents a change or activity in a Google Chat space. To learn more, see Work with events from Google Chat.
Instance Attribute Summary collapse
-
#event_time ⇒ String
Time when the event occurred.
-
#event_type ⇒ String
Type of space event.
-
#membership_batch_created_event_data ⇒ Google::Apis::ChatV1::MembershipBatchCreatedEventData
Event payload for multiple new memberships.
-
#membership_batch_deleted_event_data ⇒ Google::Apis::ChatV1::MembershipBatchDeletedEventData
Event payload for multiple deleted memberships.
-
#membership_batch_updated_event_data ⇒ Google::Apis::ChatV1::MembershipBatchUpdatedEventData
Event payload for multiple updated memberships.
-
#membership_created_event_data ⇒ Google::Apis::ChatV1::MembershipCreatedEventData
Event payload for a new membership.
-
#membership_deleted_event_data ⇒ Google::Apis::ChatV1::MembershipDeletedEventData
Event payload for a deleted membership.
-
#membership_updated_event_data ⇒ Google::Apis::ChatV1::MembershipUpdatedEventData
Event payload for an updated membership.
-
#message_batch_created_event_data ⇒ Google::Apis::ChatV1::MessageBatchCreatedEventData
Event payload for multiple new messages.
-
#message_batch_deleted_event_data ⇒ Google::Apis::ChatV1::MessageBatchDeletedEventData
Event payload for multiple deleted messages.
-
#message_batch_updated_event_data ⇒ Google::Apis::ChatV1::MessageBatchUpdatedEventData
Event payload for multiple updated messages.
-
#message_created_event_data ⇒ Google::Apis::ChatV1::MessageCreatedEventData
Event payload for a new message.
-
#message_deleted_event_data ⇒ Google::Apis::ChatV1::MessageDeletedEventData
Event payload for a deleted message.
-
#message_updated_event_data ⇒ Google::Apis::ChatV1::MessageUpdatedEventData
Event payload for an updated message.
-
#name ⇒ String
Resource name of the space event.
-
#reaction_batch_created_event_data ⇒ Google::Apis::ChatV1::ReactionBatchCreatedEventData
Event payload for multiple new reactions.
-
#reaction_batch_deleted_event_data ⇒ Google::Apis::ChatV1::ReactionBatchDeletedEventData
Event payload for multiple deleted reactions.
-
#reaction_created_event_data ⇒ Google::Apis::ChatV1::ReactionCreatedEventData
Event payload for a new reaction.
-
#reaction_deleted_event_data ⇒ Google::Apis::ChatV1::ReactionDeletedEventData
Event payload for a deleted reaction.
-
#space_batch_updated_event_data ⇒ Google::Apis::ChatV1::SpaceBatchUpdatedEventData
Event payload for multiple updates to a space.
-
#space_updated_event_data ⇒ Google::Apis::ChatV1::SpaceUpdatedEventData
Event payload for an updated space.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpaceEvent
constructor
A new instance of SpaceEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SpaceEvent
Returns a new instance of SpaceEvent.
5413 5414 5415 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5413 def initialize(**args) update!(**args) end |
Instance Attribute Details
#event_time ⇒ String
Time when the event occurred.
Corresponds to the JSON property eventTime
5265 5266 5267 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5265 def event_time @event_time end |
#event_type ⇒ String
Type of space event. Each event type has a batch version, which represents
multiple instances of the event type that occur in a short period of time. For
spaceEvents.list()
requests, omit batch event types in your query filter. By
default, the server returns both event type and its batch version. Supported
event types for messages: * New message: google.workspace.chat.
message.v1.created
* Updated message: google.workspace.chat.message.v1.
updated
* Deleted message: google.workspace.chat.message.v1.deleted
*
Multiple new messages: google.workspace.chat.message.v1.batchCreated
*
Multiple updated messages: google.workspace.chat.message.v1.batchUpdated
*
Multiple deleted messages: google.workspace.chat.message.v1.batchDeleted
Supported event types for memberships: * New membership:
google.workspace.chat.membership.v1.created
* Updated membership: google.
workspace.chat.membership.v1.updated
* Deleted membership: google.workspace.
chat.membership.v1.deleted
* Multiple new memberships: google.workspace.chat.
membership.v1.batchCreated
* Multiple updated memberships: google.workspace.
chat.membership.v1.batchUpdated
* Multiple deleted memberships: google.
workspace.chat.membership.v1.batchDeleted
Supported event types for
reactions: * New reaction: google.workspace.chat.reaction.v1.
created
* Deleted reaction: google.workspace.chat.reaction.v1.deleted
*
Multiple new reactions: google.workspace.chat.reaction.v1.batchCreated
*
Multiple deleted reactions: google.workspace.chat.reaction.v1.batchDeleted
Supported event types about the space: * Updated space: google.
workspace.chat.space.v1.updated
* Multiple space updates: google.workspace.
chat.space.v1.batchUpdated
Corresponds to the JSON property eventType
5297 5298 5299 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5297 def event_type @event_type end |
#membership_batch_created_event_data ⇒ Google::Apis::ChatV1::MembershipBatchCreatedEventData
Event payload for multiple new memberships. Event type: google.workspace.chat.
membership.v1.batchCreated
Corresponds to the JSON property membershipBatchCreatedEventData
5303 5304 5305 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5303 def membership_batch_created_event_data @membership_batch_created_event_data end |
#membership_batch_deleted_event_data ⇒ Google::Apis::ChatV1::MembershipBatchDeletedEventData
Event payload for multiple deleted memberships. Event type: google.workspace.
chat.membership.v1.batchDeleted
Corresponds to the JSON property membershipBatchDeletedEventData
5309 5310 5311 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5309 def membership_batch_deleted_event_data @membership_batch_deleted_event_data end |
#membership_batch_updated_event_data ⇒ Google::Apis::ChatV1::MembershipBatchUpdatedEventData
Event payload for multiple updated memberships. Event type: google.workspace.
chat.membership.v1.batchUpdated
Corresponds to the JSON property membershipBatchUpdatedEventData
5315 5316 5317 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5315 def membership_batch_updated_event_data @membership_batch_updated_event_data end |
#membership_created_event_data ⇒ Google::Apis::ChatV1::MembershipCreatedEventData
Event payload for a new membership. Event type: google.workspace.chat.
membership.v1.created
.
Corresponds to the JSON property membershipCreatedEventData
5321 5322 5323 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5321 def membership_created_event_data @membership_created_event_data end |
#membership_deleted_event_data ⇒ Google::Apis::ChatV1::MembershipDeletedEventData
Event payload for a deleted membership. Event type: google.workspace.chat.
membership.v1.deleted
Corresponds to the JSON property membershipDeletedEventData
5327 5328 5329 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5327 def membership_deleted_event_data @membership_deleted_event_data end |
#membership_updated_event_data ⇒ Google::Apis::ChatV1::MembershipUpdatedEventData
Event payload for an updated membership. Event type: google.workspace.chat.
membership.v1.updated
Corresponds to the JSON property membershipUpdatedEventData
5333 5334 5335 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5333 def membership_updated_event_data @membership_updated_event_data end |
#message_batch_created_event_data ⇒ Google::Apis::ChatV1::MessageBatchCreatedEventData
Event payload for multiple new messages. Event type: google.workspace.chat.
message.v1.batchCreated
Corresponds to the JSON property messageBatchCreatedEventData
5339 5340 5341 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5339 def @message_batch_created_event_data end |
#message_batch_deleted_event_data ⇒ Google::Apis::ChatV1::MessageBatchDeletedEventData
Event payload for multiple deleted messages. Event type: google.workspace.
chat.message.v1.batchDeleted
Corresponds to the JSON property messageBatchDeletedEventData
5345 5346 5347 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5345 def @message_batch_deleted_event_data end |
#message_batch_updated_event_data ⇒ Google::Apis::ChatV1::MessageBatchUpdatedEventData
Event payload for multiple updated messages. Event type: google.workspace.
chat.message.v1.batchUpdated
Corresponds to the JSON property messageBatchUpdatedEventData
5351 5352 5353 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5351 def @message_batch_updated_event_data end |
#message_created_event_data ⇒ Google::Apis::ChatV1::MessageCreatedEventData
Event payload for a new message. Event type: google.workspace.chat.message.v1.
created
Corresponds to the JSON property messageCreatedEventData
5357 5358 5359 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5357 def @message_created_event_data end |
#message_deleted_event_data ⇒ Google::Apis::ChatV1::MessageDeletedEventData
Event payload for a deleted message. Event type: google.workspace.chat.
message.v1.deleted
Corresponds to the JSON property messageDeletedEventData
5363 5364 5365 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5363 def @message_deleted_event_data end |
#message_updated_event_data ⇒ Google::Apis::ChatV1::MessageUpdatedEventData
Event payload for an updated message. Event type: google.workspace.chat.
message.v1.updated
Corresponds to the JSON property messageUpdatedEventData
5369 5370 5371 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5369 def @message_updated_event_data end |
#name ⇒ String
Resource name of the space event. Format: spaces/
space/spaceEvents/
spaceEvent`
Corresponds to the JSON property
name`
5375 5376 5377 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5375 def name @name end |
#reaction_batch_created_event_data ⇒ Google::Apis::ChatV1::ReactionBatchCreatedEventData
Event payload for multiple new reactions. Event type: google.workspace.chat.
reaction.v1.batchCreated
Corresponds to the JSON property reactionBatchCreatedEventData
5381 5382 5383 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5381 def reaction_batch_created_event_data @reaction_batch_created_event_data end |
#reaction_batch_deleted_event_data ⇒ Google::Apis::ChatV1::ReactionBatchDeletedEventData
Event payload for multiple deleted reactions. Event type: google.workspace.
chat.reaction.v1.batchDeleted
Corresponds to the JSON property reactionBatchDeletedEventData
5387 5388 5389 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5387 def reaction_batch_deleted_event_data @reaction_batch_deleted_event_data end |
#reaction_created_event_data ⇒ Google::Apis::ChatV1::ReactionCreatedEventData
Event payload for a new reaction. Event type: google.workspace.chat.reaction.
v1.created
Corresponds to the JSON property reactionCreatedEventData
5393 5394 5395 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5393 def reaction_created_event_data @reaction_created_event_data end |
#reaction_deleted_event_data ⇒ Google::Apis::ChatV1::ReactionDeletedEventData
Event payload for a deleted reaction. Type: google.workspace.chat.reaction.v1.
deleted
Corresponds to the JSON property reactionDeletedEventData
5399 5400 5401 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5399 def reaction_deleted_event_data @reaction_deleted_event_data end |
#space_batch_updated_event_data ⇒ Google::Apis::ChatV1::SpaceBatchUpdatedEventData
Event payload for multiple updates to a space. Event type: google.workspace.
chat.space.v1.batchUpdated
Corresponds to the JSON property spaceBatchUpdatedEventData
5405 5406 5407 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5405 def space_batch_updated_event_data @space_batch_updated_event_data end |
#space_updated_event_data ⇒ Google::Apis::ChatV1::SpaceUpdatedEventData
Event payload for an updated space. Event type: google.workspace.chat.space.
v1.updated
Corresponds to the JSON property spaceUpdatedEventData
5411 5412 5413 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5411 def space_updated_event_data @space_updated_event_data end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5418 def update!(**args) @event_time = args[:event_time] if args.key?(:event_time) @event_type = args[:event_type] if args.key?(:event_type) @membership_batch_created_event_data = args[:membership_batch_created_event_data] if args.key?(:membership_batch_created_event_data) @membership_batch_deleted_event_data = args[:membership_batch_deleted_event_data] if args.key?(:membership_batch_deleted_event_data) @membership_batch_updated_event_data = args[:membership_batch_updated_event_data] if args.key?(:membership_batch_updated_event_data) @membership_created_event_data = args[:membership_created_event_data] if args.key?(:membership_created_event_data) @membership_deleted_event_data = args[:membership_deleted_event_data] if args.key?(:membership_deleted_event_data) @membership_updated_event_data = args[:membership_updated_event_data] if args.key?(:membership_updated_event_data) @message_batch_created_event_data = args[:message_batch_created_event_data] if args.key?(:message_batch_created_event_data) @message_batch_deleted_event_data = args[:message_batch_deleted_event_data] if args.key?(:message_batch_deleted_event_data) @message_batch_updated_event_data = args[:message_batch_updated_event_data] if args.key?(:message_batch_updated_event_data) @message_created_event_data = args[:message_created_event_data] if args.key?(:message_created_event_data) @message_deleted_event_data = args[:message_deleted_event_data] if args.key?(:message_deleted_event_data) @message_updated_event_data = args[:message_updated_event_data] if args.key?(:message_updated_event_data) @name = args[:name] if args.key?(:name) @reaction_batch_created_event_data = args[:reaction_batch_created_event_data] if args.key?(:reaction_batch_created_event_data) @reaction_batch_deleted_event_data = args[:reaction_batch_deleted_event_data] if args.key?(:reaction_batch_deleted_event_data) @reaction_created_event_data = args[:reaction_created_event_data] if args.key?(:reaction_created_event_data) @reaction_deleted_event_data = args[:reaction_deleted_event_data] if args.key?(:reaction_deleted_event_data) @space_batch_updated_event_data = args[:space_batch_updated_event_data] if args.key?(:space_batch_updated_event_data) @space_updated_event_data = args[:space_updated_event_data] if args.key?(:space_updated_event_data) end |