View Source GoogleApi.Chat.V1.Model.SpaceEvent (google_api_chat v0.34.3)

An event that represents a change or activity in a Google Chat space. To learn more, see Work with events from Google Chat.

Attributes

  • eventTime (type: DateTime.t, default: nil) - Time when the event occurred.
  • eventType (type: String.t, default: nil) - 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
  • membershipBatchCreatedEventData (type: GoogleApi.Chat.V1.Model.MembershipBatchCreatedEventData.t, default: nil) - Event payload for multiple new memberships. Event type: google.workspace.chat.membership.v1.batchCreated
  • membershipBatchDeletedEventData (type: GoogleApi.Chat.V1.Model.MembershipBatchDeletedEventData.t, default: nil) - Event payload for multiple deleted memberships. Event type: google.workspace.chat.membership.v1.batchDeleted
  • membershipBatchUpdatedEventData (type: GoogleApi.Chat.V1.Model.MembershipBatchUpdatedEventData.t, default: nil) - Event payload for multiple updated memberships. Event type: google.workspace.chat.membership.v1.batchUpdated
  • membershipCreatedEventData (type: GoogleApi.Chat.V1.Model.MembershipCreatedEventData.t, default: nil) - Event payload for a new membership. Event type: google.workspace.chat.membership.v1.created
  • membershipDeletedEventData (type: GoogleApi.Chat.V1.Model.MembershipDeletedEventData.t, default: nil) - Event payload for a deleted membership. Event type: google.workspace.chat.membership.v1.deleted
  • membershipUpdatedEventData (type: GoogleApi.Chat.V1.Model.MembershipUpdatedEventData.t, default: nil) - Event payload for an updated membership. Event type: google.workspace.chat.membership.v1.updated
  • messageBatchCreatedEventData (type: GoogleApi.Chat.V1.Model.MessageBatchCreatedEventData.t, default: nil) - Event payload for multiple new messages. Event type: google.workspace.chat.message.v1.batchCreated
  • messageBatchDeletedEventData (type: GoogleApi.Chat.V1.Model.MessageBatchDeletedEventData.t, default: nil) - Event payload for multiple deleted messages. Event type: google.workspace.chat.message.v1.batchDeleted
  • messageBatchUpdatedEventData (type: GoogleApi.Chat.V1.Model.MessageBatchUpdatedEventData.t, default: nil) - Event payload for multiple updated messages. Event type: google.workspace.chat.message.v1.batchUpdated
  • messageCreatedEventData (type: GoogleApi.Chat.V1.Model.MessageCreatedEventData.t, default: nil) - Event payload for a new message. Event type: google.workspace.chat.message.v1.created
  • messageDeletedEventData (type: GoogleApi.Chat.V1.Model.MessageDeletedEventData.t, default: nil) - Event payload for a deleted message. Event type: google.workspace.chat.message.v1.deleted
  • messageUpdatedEventData (type: GoogleApi.Chat.V1.Model.MessageUpdatedEventData.t, default: nil) - Event payload for an updated message. Event type: google.workspace.chat.message.v1.updated
  • name (type: String.t, default: nil) - Resource name of the space event. Format: spaces/{space}/spaceEvents/{spaceEvent}
  • reactionBatchCreatedEventData (type: GoogleApi.Chat.V1.Model.ReactionBatchCreatedEventData.t, default: nil) - Event payload for multiple new reactions. Event type: google.workspace.chat.reaction.v1.batchCreated
  • reactionBatchDeletedEventData (type: GoogleApi.Chat.V1.Model.ReactionBatchDeletedEventData.t, default: nil) - Event payload for multiple deleted reactions. Event type: google.workspace.chat.reaction.v1.batchDeleted
  • reactionCreatedEventData (type: GoogleApi.Chat.V1.Model.ReactionCreatedEventData.t, default: nil) - Event payload for a new reaction. Event type: google.workspace.chat.reaction.v1.created
  • reactionDeletedEventData (type: GoogleApi.Chat.V1.Model.ReactionDeletedEventData.t, default: nil) - Event payload for a deleted reaction. Event type: google.workspace.chat.reaction.v1.deleted
  • spaceBatchUpdatedEventData (type: GoogleApi.Chat.V1.Model.SpaceBatchUpdatedEventData.t, default: nil) - Event payload for multiple updates to a space. Event type: google.workspace.chat.space.v1.batchUpdated
  • spaceUpdatedEventData (type: GoogleApi.Chat.V1.Model.SpaceUpdatedEventData.t, default: nil) - Event payload for a space update. Event type: google.workspace.chat.space.v1.updated

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Chat.V1.Model.SpaceEvent{
  eventTime: DateTime.t() | nil,
  eventType: String.t() | nil,
  membershipBatchCreatedEventData:
    GoogleApi.Chat.V1.Model.MembershipBatchCreatedEventData.t() | nil,
  membershipBatchDeletedEventData:
    GoogleApi.Chat.V1.Model.MembershipBatchDeletedEventData.t() | nil,
  membershipBatchUpdatedEventData:
    GoogleApi.Chat.V1.Model.MembershipBatchUpdatedEventData.t() | nil,
  membershipCreatedEventData:
    GoogleApi.Chat.V1.Model.MembershipCreatedEventData.t() | nil,
  membershipDeletedEventData:
    GoogleApi.Chat.V1.Model.MembershipDeletedEventData.t() | nil,
  membershipUpdatedEventData:
    GoogleApi.Chat.V1.Model.MembershipUpdatedEventData.t() | nil,
  messageBatchCreatedEventData:
    GoogleApi.Chat.V1.Model.MessageBatchCreatedEventData.t() | nil,
  messageBatchDeletedEventData:
    GoogleApi.Chat.V1.Model.MessageBatchDeletedEventData.t() | nil,
  messageBatchUpdatedEventData:
    GoogleApi.Chat.V1.Model.MessageBatchUpdatedEventData.t() | nil,
  messageCreatedEventData:
    GoogleApi.Chat.V1.Model.MessageCreatedEventData.t() | nil,
  messageDeletedEventData:
    GoogleApi.Chat.V1.Model.MessageDeletedEventData.t() | nil,
  messageUpdatedEventData:
    GoogleApi.Chat.V1.Model.MessageUpdatedEventData.t() | nil,
  name: String.t() | nil,
  reactionBatchCreatedEventData:
    GoogleApi.Chat.V1.Model.ReactionBatchCreatedEventData.t() | nil,
  reactionBatchDeletedEventData:
    GoogleApi.Chat.V1.Model.ReactionBatchDeletedEventData.t() | nil,
  reactionCreatedEventData:
    GoogleApi.Chat.V1.Model.ReactionCreatedEventData.t() | nil,
  reactionDeletedEventData:
    GoogleApi.Chat.V1.Model.ReactionDeletedEventData.t() | nil,
  spaceBatchUpdatedEventData:
    GoogleApi.Chat.V1.Model.SpaceBatchUpdatedEventData.t() | nil,
  spaceUpdatedEventData: GoogleApi.Chat.V1.Model.SpaceUpdatedEventData.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.