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.
4988 4989 4990 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4988 def initialize(**args) update!(**args) end |
Instance Attribute Details
#event_time ⇒ String
Time when the event occurred.
Corresponds to the JSON property eventTime
4840 4841 4842 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4840 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
4872 4873 4874 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4872 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
4878 4879 4880 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4878 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
4884 4885 4886 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4884 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
4890 4891 4892 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4890 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
4896 4897 4898 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4896 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
4902 4903 4904 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4902 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
4908 4909 4910 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4908 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
4914 4915 4916 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4914 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
4920 4921 4922 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4920 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
4926 4927 4928 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4926 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
4932 4933 4934 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4932 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
4938 4939 4940 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4938 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
4944 4945 4946 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4944 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`
4950 4951 4952 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4950 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
4956 4957 4958 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4956 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
4962 4963 4964 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4962 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
4968 4969 4970 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4968 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
4974 4975 4976 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4974 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
4980 4981 4982 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4980 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
4986 4987 4988 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4986 def space_updated_event_data @space_updated_event_data end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4993 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 |