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.
5033 5034 5035 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5033 def initialize(**args) update!(**args) end |
Instance Attribute Details
#event_time ⇒ String
Time when the event occurred.
Corresponds to the JSON property eventTime
4885 4886 4887 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4885 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
4917 4918 4919 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4917 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
4923 4924 4925 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4923 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
4929 4930 4931 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4929 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
4935 4936 4937 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4935 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
4941 4942 4943 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4941 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
4947 4948 4949 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4947 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
4953 4954 4955 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4953 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
4959 4960 4961 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4959 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
4965 4966 4967 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4965 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
4971 4972 4973 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4971 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
4977 4978 4979 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4977 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
4983 4984 4985 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4983 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
4989 4990 4991 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4989 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`
4995 4996 4997 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4995 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
5001 5002 5003 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5001 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
5007 5008 5009 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5007 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
5013 5014 5015 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5013 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
5019 5020 5021 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5019 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
5025 5026 5027 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5025 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
5031 5032 5033 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5031 def space_updated_event_data @space_updated_event_data end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5038 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 |