diff --git a/clients/chat/lib/google_api/chat/v1/api/spaces.ex b/clients/chat/lib/google_api/chat/v1/api/spaces.ex index 6a4813acd5..22faa54760 100644 --- a/clients/chat/lib/google_api/chat/v1/api/spaces.ex +++ b/clients/chat/lib/google_api/chat/v1/api/spaces.ex @@ -1418,12 +1418,12 @@ defmodule GoogleApi.Chat.V1.Api.Spaces do end @doc """ - Returns a SpaceEvent. You can request events from up to 28 days before the time of the request. The server will return the most recent version of the resource. For example, if a `google.workspace.chat.message.v1.created` event is requested and the message has since been deleted, the returned event will contain the deleted message resource in the payload. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users). + Returns an event from a Google Chat space. The [event payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) contains the most recent version of the resource that changed. For example, if you request an event about a new message but the message was later updated, the server returns the updated `Message` resource in the event payload. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users). To get an event, the authenticated user must be a member of the space. For an example, see [Get details about an event from a Google Chat space](https://developers.google.com/workspace/chat/get-space-event). ## Parameters * `connection` (*type:* `GoogleApi.Chat.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Required. The resource name of the event. Format: `spaces/{space}/spaceEvents/{spaceEvent}` + * `name` (*type:* `String.t`) - Required. The resource name of the space event. Format: `spaces/{space}/spaceEvents/{spaceEvent}` * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -1478,12 +1478,12 @@ defmodule GoogleApi.Chat.V1.Api.Spaces do end @doc """ - Lists SpaceEvents in a space that the caller is a member of. You can request events from up to 28 days before the time of the request. The server will return the most recent version of the resources. For example, if a `google.workspace.chat.message.v1.created` event is requested and the message has since been deleted, the returned event will contain the deleted message resource in the payload. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users). + Lists events from a Google Chat space. For each event, the [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) contains the most recent version of the Chat resource. For example, if you list events about new space members, the server returns `Membership` resources that contain the latest membership details. If new members were removed during the requested period, the event payload contains an empty `Membership` resource. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users). To list events, the authenticated user must be a member of the space. For an example, see [List events from a Google Chat space](https://developers.google.com/workspace/chat/list-space-events). ## Parameters * `connection` (*type:* `GoogleApi.Chat.V1.Connection.t`) - Connection to server - * `parent` (*type:* `String.t`) - Required. The resource name of the space from which to list events. Format: `spaces/{space}`. + * `parent` (*type:* `String.t`) - Required. Resource name of the [Google Chat space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) where the events occurred. Format: `spaces/{space}`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -1496,8 +1496,8 @@ defmodule GoogleApi.Chat.V1.Api.Spaces do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:filter` (*type:* `String.t`) - Required. A query filter. This method supports filtering by: `event_types`, `start_time`, and `end_time`. `event_types`: You must specify at least one event type in your query. `event_types` supports the has `:` operator. To filter by multiple event types, use the `OR` operator. To see the list of currently supported event types, see google.chat.v1.SpaceEvent.event_type `start_time`: Exclusive timestamp from which to start listing space events. You can list events that occurred up to 28 days ago. If unspecified, lists space events from the 28 days ago up to end time. `end_time`: Inclusive timestamp up to which space events are listed. Default value is the present. `start_time` and `end_time` accept a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and support the equals `=` comparison operator. To filter by both `start_time` and `end_time`, use the `AND` operator. For example, the following queries are valid: ``` start_time="2023-08-23T19:20:33+00:00" AND end_time="2023-08-23T19:21:54+00:00" ``` ``` start_time="2023-08-23T19:20:33+00:00" AND (event_types:"google.workspace.chat.space.v1.updated" OR event_types:"google.workspace.chat.message.v1.created") ``` The following queries are invalid: ``` start_time="2023-08-23T19:20:33+00:00" OR end_time="2023-08-23T19:21:54+00:00" ``` ``` event_types:"google.workspace.chat.space.v1.updated" AND event_types:"google.workspace.chat.message.v1.created" ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. - * `:pageSize` (*type:* `integer()`) - Optional. The maximum number of space events returned. The service may return fewer than this value. Negative values return an `INVALID_ARGUMENT` error. + * `:filter` (*type:* `String.t`) - Required. A query filter. You must specify at least one event type (`event_type`) using the has `:` operator. To filter by multiple event types, use the `OR` operator. Omit batch event types in your filter. The request automatically returns any related batch events. For example, if you filter by new reactions (`google.workspace.chat.reaction.v1.created`), the server also returns batch new reactions events (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported event types, see the [`SpaceEvents` reference documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). Optionally, you can also filter by start time (`start_time`) and end time (`end_time`): * `start_time`: Exclusive timestamp from which to start listing space events. You can list events that occurred up to 28 days ago. If unspecified, lists space events from the past 28 days. * `end_time`: Inclusive timestamp until which space events are listed. If unspecified, lists events up to the time of the request. To specify a start or end time, use the equals `=` operator and format in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both `start_time` and `end_time`, use the `AND` operator. For example, the following queries are valid: ``` start_time="2023-08-23T19:20:33+00:00" AND end_time="2023-08-23T19:21:54+00:00" ``` ``` start_time="2023-08-23T19:20:33+00:00" AND (event_types:"google.workspace.chat.space.v1.updated" OR event_types:"google.workspace.chat.message.v1.created") ``` The following queries are invalid: ``` start_time="2023-08-23T19:20:33+00:00" OR end_time="2023-08-23T19:21:54+00:00" ``` ``` event_types:"google.workspace.chat.space.v1.updated" AND event_types:"google.workspace.chat.message.v1.created" ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. + * `:pageSize` (*type:* `integer()`) - Optional. The maximum number of space events returned. The service might return fewer than this value. Negative values return an `INVALID_ARGUMENT` error. * `:pageToken` (*type:* `String.t`) - A page token, received from a previous list space events call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to list space events must match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results. * `opts` (*type:* `keyword()`) - Call options diff --git a/clients/chat/lib/google_api/chat/v1/metadata.ex b/clients/chat/lib/google_api/chat/v1/metadata.ex index 65c4c06415..487aa339e7 100644 --- a/clients/chat/lib/google_api/chat/v1/metadata.ex +++ b/clients/chat/lib/google_api/chat/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Chat.V1 do API client metadata for GoogleApi.Chat.V1. """ - @discovery_revision "20240326" + @discovery_revision "20240331" def discovery_revision(), do: @discovery_revision end diff --git a/clients/chat/lib/google_api/chat/v1/model/membership_batch_created_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/membership_batch_created_event_data.ex index 7e1d2e5941..6030dccd90 100644 --- a/clients/chat/lib/google_api/chat/v1/model/membership_batch_created_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/membership_batch_created_event_data.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Chat.V1.Model.MembershipBatchCreatedEventData do @moduledoc """ - Payload for batch new membership events where the `EventType` field is `google.workspace.chat.membership.v1.batchCreated`. + Event payload for multiple new memberships. Event type: `google.workspace.chat.membership.v1.batchCreated` ## Attributes - * `memberships` (*type:* `list(GoogleApi.Chat.V1.Model.MembershipCreatedEventData.t)`, *default:* `nil`) - A list of created memberships. + * `memberships` (*type:* `list(GoogleApi.Chat.V1.Model.MembershipCreatedEventData.t)`, *default:* `nil`) - A list of new memberships. """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/membership_batch_deleted_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/membership_batch_deleted_event_data.ex index 602dac5b88..d61294f77a 100644 --- a/clients/chat/lib/google_api/chat/v1/model/membership_batch_deleted_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/membership_batch_deleted_event_data.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Chat.V1.Model.MembershipBatchDeletedEventData do @moduledoc """ - Payload for batch deleted membership events where the `EventType` field is `google.workspace.chat.membership.v1.batchDeleted`. + Event payload for multiple deleted memberships. Event type: `google.workspace.chat.membership.v1.batchDeleted` ## Attributes diff --git a/clients/chat/lib/google_api/chat/v1/model/membership_batch_updated_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/membership_batch_updated_event_data.ex index 540a723364..4db44af863 100644 --- a/clients/chat/lib/google_api/chat/v1/model/membership_batch_updated_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/membership_batch_updated_event_data.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Chat.V1.Model.MembershipBatchUpdatedEventData do @moduledoc """ - Payload for batch updated membership events where the `EventType` field is `google.workspace.chat.membership.v1.batchUpdated`. + Event payload for multiple updated memberships. Event type: `google.workspace.chat.membership.v1.batchUpdated` ## Attributes diff --git a/clients/chat/lib/google_api/chat/v1/model/membership_created_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/membership_created_event_data.ex index a89bd2e882..39cb039c83 100644 --- a/clients/chat/lib/google_api/chat/v1/model/membership_created_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/membership_created_event_data.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Chat.V1.Model.MembershipCreatedEventData do @moduledoc """ - Payload for new membership events where the `EventType` field is `google.workspace.chat.membership.v1.created`. + Event payload for a new membership. Event type: `google.workspace.chat.membership.v1.created`. ## Attributes - * `membership` (*type:* `GoogleApi.Chat.V1.Model.Membership.t`, *default:* `nil`) - The most recent version of membership. + * `membership` (*type:* `GoogleApi.Chat.V1.Model.Membership.t`, *default:* `nil`) - The new membership. """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/membership_deleted_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/membership_deleted_event_data.ex index c38c3f1770..2d55a1ca17 100644 --- a/clients/chat/lib/google_api/chat/v1/model/membership_deleted_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/membership_deleted_event_data.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Chat.V1.Model.MembershipDeletedEventData do @moduledoc """ - Payload for deleted membership events where the `EventType` field is `google.workspace.chat.membership.v1.deleted`. + Event payload for a deleted membership. Event type: `google.workspace.chat.membership.v1.deleted` ## Attributes - * `membership` (*type:* `GoogleApi.Chat.V1.Model.Membership.t`, *default:* `nil`) - The deleted membership. Only `name` and `state` are populated. + * `membership` (*type:* `GoogleApi.Chat.V1.Model.Membership.t`, *default:* `nil`) - The deleted membership. Only the `name` and `state` fields are populated. """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/membership_updated_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/membership_updated_event_data.ex index 14ad6b2e30..3d0e0bf989 100644 --- a/clients/chat/lib/google_api/chat/v1/model/membership_updated_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/membership_updated_event_data.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Chat.V1.Model.MembershipUpdatedEventData do @moduledoc """ - Payload for updated membership events where the `EventType` field is `google.workspace.chat.membership.v1.updated`. + Event payload for an updated membership. Event type: `google.workspace.chat.membership.v1.updated` ## Attributes - * `membership` (*type:* `GoogleApi.Chat.V1.Model.Membership.t`, *default:* `nil`) - The most recent version of membership. + * `membership` (*type:* `GoogleApi.Chat.V1.Model.Membership.t`, *default:* `nil`) - The updated membership. """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/message_batch_created_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/message_batch_created_event_data.ex index ac71e9947d..af241b1346 100644 --- a/clients/chat/lib/google_api/chat/v1/model/message_batch_created_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/message_batch_created_event_data.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Chat.V1.Model.MessageBatchCreatedEventData do @moduledoc """ - Payload for batch new message events where the `EventType` field is `google.workspace.chat.message.v1.batchCreated`. + Event payload for multiple new messages. Event type: `google.workspace.chat.message.v1.batchCreated` ## Attributes - * `messages` (*type:* `list(GoogleApi.Chat.V1.Model.MessageCreatedEventData.t)`, *default:* `nil`) - A list of created messages. + * `messages` (*type:* `list(GoogleApi.Chat.V1.Model.MessageCreatedEventData.t)`, *default:* `nil`) - A list of new messages. """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/message_batch_deleted_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/message_batch_deleted_event_data.ex index eb21cd103a..ef6ed8a3bb 100644 --- a/clients/chat/lib/google_api/chat/v1/model/message_batch_deleted_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/message_batch_deleted_event_data.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Chat.V1.Model.MessageBatchDeletedEventData do @moduledoc """ - Payload for batch deleted message events where the `EventType` field is `google.workspace.chat.message.v1.batchDeleted`. + Event payload for multiple deleted messages. Event type: `google.workspace.chat.message.v1.batchDeleted` ## Attributes diff --git a/clients/chat/lib/google_api/chat/v1/model/message_batch_updated_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/message_batch_updated_event_data.ex index 74c1748b62..ee58f99e5b 100644 --- a/clients/chat/lib/google_api/chat/v1/model/message_batch_updated_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/message_batch_updated_event_data.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Chat.V1.Model.MessageBatchUpdatedEventData do @moduledoc """ - Payload for batch updated message events where the `EventType` field is `google.workspace.chat.message.v1.batchUpdated`. + Event payload for multiple updated messages. Event type: `google.workspace.chat.message.v1.batchUpdated` ## Attributes diff --git a/clients/chat/lib/google_api/chat/v1/model/message_created_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/message_created_event_data.ex index 3e53107bc6..9db6702fc3 100644 --- a/clients/chat/lib/google_api/chat/v1/model/message_created_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/message_created_event_data.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Chat.V1.Model.MessageCreatedEventData do @moduledoc """ - Payload for new message events where the `EventType` field is `google.workspace.chat.message.v1.created`. + Event payload for a new message. Event type: `google.workspace.chat.message.v1.created` ## Attributes - * `message` (*type:* `GoogleApi.Chat.V1.Model.Message.t`, *default:* `nil`) - The most recent version of the message. + * `message` (*type:* `GoogleApi.Chat.V1.Model.Message.t`, *default:* `nil`) - The new message. """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/message_deleted_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/message_deleted_event_data.ex index 5b1d3d021d..497c29d820 100644 --- a/clients/chat/lib/google_api/chat/v1/model/message_deleted_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/message_deleted_event_data.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Chat.V1.Model.MessageDeletedEventData do @moduledoc """ - Payload for deleted message events where the `EventType` field is `google.workspace.chat.message.v1.deleted`. + Event payload for a deleted message. Event type: `google.workspace.chat.message.v1.deleted` ## Attributes - * `message` (*type:* `GoogleApi.Chat.V1.Model.Message.t`, *default:* `nil`) - The deleted message. Only `name`, `createTime`, `deleteTime`, and `deletionMetadata` are populated. + * `message` (*type:* `GoogleApi.Chat.V1.Model.Message.t`, *default:* `nil`) - The deleted message. Only the `name`, `createTime`, `deleteTime`, and `deletionMetadata` fields are populated. """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/message_updated_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/message_updated_event_data.ex index 6db7dab634..c885848ae5 100644 --- a/clients/chat/lib/google_api/chat/v1/model/message_updated_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/message_updated_event_data.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Chat.V1.Model.MessageUpdatedEventData do @moduledoc """ - Payload for updated message events where the `EventType` field is `google.workspace.chat.message.v1.updated`. + Event payload for an updated message. Event type: `google.workspace.chat.message.v1.updated` ## Attributes - * `message` (*type:* `GoogleApi.Chat.V1.Model.Message.t`, *default:* `nil`) - The most recent version of the message. + * `message` (*type:* `GoogleApi.Chat.V1.Model.Message.t`, *default:* `nil`) - The updated message. """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/reaction_batch_created_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/reaction_batch_created_event_data.ex index db81c42147..8dafa68eb8 100644 --- a/clients/chat/lib/google_api/chat/v1/model/reaction_batch_created_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/reaction_batch_created_event_data.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Chat.V1.Model.ReactionBatchCreatedEventData do @moduledoc """ - Payload for batch new reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.batchCreated`. + Event payload for multiple new reactions. Event type: `google.workspace.chat.reaction.v1.batchCreated` ## Attributes - * `reactions` (*type:* `list(GoogleApi.Chat.V1.Model.ReactionCreatedEventData.t)`, *default:* `nil`) - A list of created reactions. + * `reactions` (*type:* `list(GoogleApi.Chat.V1.Model.ReactionCreatedEventData.t)`, *default:* `nil`) - A list of new reactions. """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/reaction_batch_deleted_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/reaction_batch_deleted_event_data.ex index a8e3ff5177..257e89818c 100644 --- a/clients/chat/lib/google_api/chat/v1/model/reaction_batch_deleted_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/reaction_batch_deleted_event_data.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Chat.V1.Model.ReactionBatchDeletedEventData do @moduledoc """ - Payload for batch deleted reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.batchDeleted`. + Event payload for multiple deleted reactions. Event type: `google.workspace.chat.reaction.v1.batchDeleted` ## Attributes diff --git a/clients/chat/lib/google_api/chat/v1/model/reaction_created_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/reaction_created_event_data.ex index 4ca1b44457..90e599e8cd 100644 --- a/clients/chat/lib/google_api/chat/v1/model/reaction_created_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/reaction_created_event_data.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Chat.V1.Model.ReactionCreatedEventData do @moduledoc """ - Payload for new reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.created`. + Event payload for a new reaction. Event type: `google.workspace.chat.reaction.v1.created` ## Attributes - * `reaction` (*type:* `GoogleApi.Chat.V1.Model.Reaction.t`, *default:* `nil`) - The created reaction. + * `reaction` (*type:* `GoogleApi.Chat.V1.Model.Reaction.t`, *default:* `nil`) - The new reaction. """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/reaction_deleted_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/reaction_deleted_event_data.ex index 1f452a8364..00346e992d 100644 --- a/clients/chat/lib/google_api/chat/v1/model/reaction_deleted_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/reaction_deleted_event_data.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Chat.V1.Model.ReactionDeletedEventData do @moduledoc """ - Payload for deleted reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.deleted`. + Event payload for a deleted reaction. Type: `google.workspace.chat.reaction.v1.deleted` ## Attributes diff --git a/clients/chat/lib/google_api/chat/v1/model/space_batch_updated_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/space_batch_updated_event_data.ex index bfa44aecb5..c70e734bf5 100644 --- a/clients/chat/lib/google_api/chat/v1/model/space_batch_updated_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/space_batch_updated_event_data.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Chat.V1.Model.SpaceBatchUpdatedEventData do @moduledoc """ - Payload for batch updated space events where the `EventType` field is `google.workspace.chat.space.v1.batchUpdated`. + Event payload for multiple updates to a space. Event type: `google.workspace.chat.space.v1.batchUpdated` ## Attributes diff --git a/clients/chat/lib/google_api/chat/v1/model/space_event.ex b/clients/chat/lib/google_api/chat/v1/model/space_event.ex index 7a44b96eff..3e716fb3ee 100644 --- a/clients/chat/lib/google_api/chat/v1/model/space_event.ex +++ b/clients/chat/lib/google_api/chat/v1/model/space_event.ex @@ -17,31 +17,31 @@ defmodule GoogleApi.Chat.V1.Model.SpaceEvent do @moduledoc """ - An event that happens in a specific space. + An event that represents a change or activity in a Google Chat space. To learn more, see [Work with events from Google Chat](https://developers.google.com/workspace/chat/events-overview). ## Attributes - * `eventTime` (*type:* `DateTime.t`, *default:* `nil`) - Time of the event. - * `eventType` (*type:* `String.t`, *default:* `nil`) - Type of the space event. The following event types are supported: * New membership: `google.workspace.chat.membership.v1.created` * Deleted membership: `google.workspace.chat.membership.v1.deleted` * Updated membership: `google.workspace.chat.membership.v1.updated` * New message: `google.workspace.chat.message.v1.created` * Deleted message: `google.workspace.chat.message.v1.deleted` * Updated message: `google.workspace.chat.message.v1.updated` * New reaction: `google.workspace.chat.reaction.v1.created` * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` * Updated space: `google.workspace.chat.space.v1.updated` Note that requesting or subscribing to the preceding event types automatically sets up the subscription or response to also return batched versions of the event type. For example, if you subscribe to `google.workspace.chat.membership.v1.created`, you also receive events for `google.workspace.chat.membership.v1.batchCreated`. For more details see https://developers.google.com/workspace/events/guides/events-chat#output_only_event_types. - * `membershipBatchCreatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MembershipBatchCreatedEventData.t`, *default:* `nil`) - Payload for batch new membership events where the `EventType` field is `google.workspace.chat.membership.v1.batchCreated`. - * `membershipBatchDeletedEventData` (*type:* `GoogleApi.Chat.V1.Model.MembershipBatchDeletedEventData.t`, *default:* `nil`) - Payload for batch deleted membership events where the `EventType` field is `google.workspace.chat.membership.v1.batchDeleted`. - * `membershipBatchUpdatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MembershipBatchUpdatedEventData.t`, *default:* `nil`) - Payload for batch updated membership events where the `EventType` field is `google.workspace.chat.membership.v1.batchUpdated`. - * `membershipCreatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MembershipCreatedEventData.t`, *default:* `nil`) - Payload for new membership events where the `EventType` field is `google.workspace.chat.membership.v1.created`. - * `membershipDeletedEventData` (*type:* `GoogleApi.Chat.V1.Model.MembershipDeletedEventData.t`, *default:* `nil`) - Payload for deleted membership events where the `EventType` field is `google.workspace.chat.membership.v1.deleted`. - * `membershipUpdatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MembershipUpdatedEventData.t`, *default:* `nil`) - Payload for updated membership events where the `EventType` field is `google.workspace.chat.membership.v1.updated`. - * `messageBatchCreatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MessageBatchCreatedEventData.t`, *default:* `nil`) - Payload for batch new message events where the `EventType` field is `google.workspace.chat.message.v1.batchCreated`. - * `messageBatchDeletedEventData` (*type:* `GoogleApi.Chat.V1.Model.MessageBatchDeletedEventData.t`, *default:* `nil`) - Payload for batch deleted message events where the `EventType` field is `google.workspace.chat.message.v1.batchDeleted`. - * `messageBatchUpdatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MessageBatchUpdatedEventData.t`, *default:* `nil`) - Payload for batch updated message events where the `EventType` field is `google.workspace.chat.message.v1.batchUpdated`. - * `messageCreatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MessageCreatedEventData.t`, *default:* `nil`) - Payload for new message events where the `EventType` field is `google.workspace.chat.message.v1.created`. - * `messageDeletedEventData` (*type:* `GoogleApi.Chat.V1.Model.MessageDeletedEventData.t`, *default:* `nil`) - Payload for deleted message events where the `EventType` field is `google.workspace.chat.message.v1.deleted`. - * `messageUpdatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MessageUpdatedEventData.t`, *default:* `nil`) - Payload for updated message events where the `EventType` field is `google.workspace.chat.message.v1.updated`. - * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the space event. Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * `reactionBatchCreatedEventData` (*type:* `GoogleApi.Chat.V1.Model.ReactionBatchCreatedEventData.t`, *default:* `nil`) - Payload for batch new reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.batchCreated`. - * `reactionBatchDeletedEventData` (*type:* `GoogleApi.Chat.V1.Model.ReactionBatchDeletedEventData.t`, *default:* `nil`) - Payload for batch deleted reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.batchDeleted`. - * `reactionCreatedEventData` (*type:* `GoogleApi.Chat.V1.Model.ReactionCreatedEventData.t`, *default:* `nil`) - Payload for new reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.created`. - * `reactionDeletedEventData` (*type:* `GoogleApi.Chat.V1.Model.ReactionDeletedEventData.t`, *default:* `nil`) - Payload for deleted reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.deleted`. - * `spaceBatchUpdatedEventData` (*type:* `GoogleApi.Chat.V1.Model.SpaceBatchUpdatedEventData.t`, *default:* `nil`) - Payload for batch updated space events where the `EventType` field is `google.workspace.chat.space.v1.batchUpdated`. - * `spaceUpdatedEventData` (*type:* `GoogleApi.Chat.V1.Model.SpaceUpdatedEventData.t`, *default:* `nil`) - Payload for updated space events where the `EventType` field is `google.workspace.chat.space.v1.updated`. + * `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](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.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](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members): * 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](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.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](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces): * 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` """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/space_updated_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/space_updated_event_data.ex index c1c0493d54..ff2700fcc1 100644 --- a/clients/chat/lib/google_api/chat/v1/model/space_updated_event_data.ex +++ b/clients/chat/lib/google_api/chat/v1/model/space_updated_event_data.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Chat.V1.Model.SpaceUpdatedEventData do @moduledoc """ - Payload for updated space events where the `EventType` field is `google.workspace.chat.space.v1.updated`. + Event payload for an updated space. Event type: `google.workspace.chat.space.v1.updated` ## Attributes - * `space` (*type:* `GoogleApi.Chat.V1.Model.Space.t`, *default:* `nil`) - The recent version of the space. + * `space` (*type:* `GoogleApi.Chat.V1.Model.Space.t`, *default:* `nil`) - The updated space. """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/mix.exs b/clients/chat/mix.exs index 2b17694303..ea663229ae 100644 --- a/clients/chat/mix.exs +++ b/clients/chat/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Chat.Mixfile do use Mix.Project - @version "0.34.1" + @version "0.34.2" def project() do [