From 32b2b3e8478490edcf45742cbd0cbc37f9648339 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 10 Nov 2024 13:08:18 +0000 Subject: [PATCH] feat: Automated regeneration of Chat client --- clients/chat/lib/google_api/chat/v1/api/spaces.ex | 2 +- clients/chat/lib/google_api/chat/v1/metadata.ex | 2 +- clients/chat/lib/google_api/chat/v1/model/attachment.ex | 4 ++-- .../chat/lib/google_api/chat/v1/model/attachment_data_ref.ex | 4 ++-- .../chat/v1/model/google_apps_card_v1_selection_input.ex | 4 ++-- .../chat/v1/model/google_apps_card_v1_selection_item.ex | 2 +- clients/chat/lib/google_api/chat/v1/model/updated_widget.ex | 2 +- clients/chat/mix.exs | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) 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 21e34d2f5b..944cbb40ae 100644 --- a/clients/chat/lib/google_api/chat/v1/api/spaces.ex +++ b/clients/chat/lib/google_api/chat/v1/api/spaces.ex @@ -932,7 +932,7 @@ defmodule GoogleApi.Chat.V1.Api.Spaces do * `: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"). * `:messageId` (*type:* `String.t`) - Optional. A custom ID for a message. Lets Chat apps get, update, or delete a message without needing to store the system-assigned ID in the message's resource name (represented in the message `name` field). The value for this field must meet the following requirements: * Begins with `client-`. For example, `client-custom-name` is a valid custom ID, but `custom-name` is not. * Contains up to 63 characters and only lowercase letters, numbers, and hyphens. * Is unique within a space. A Chat app can't use the same custom ID for different messages. For details, see [Name a message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * `:messageReplyOption` (*type:* `String.t`) - Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. + * `:messageReplyOption` (*type:* `String.t`) - Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. When [responding to user interactions](https://developers.google.com/workspace/chat/receive-respond-interactions), this field is ignored. For interactions within a thread, the reply is created in the same thread. Otherwise, the reply is created as a new thread. * `:requestId` (*type:* `String.t`) - Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. * `:threadKey` (*type:* `String.t`) - Optional. Deprecated: Use thread.thread_key instead. ID for the thread. Supports up to 4000 characters. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). * `:body` (*type:* `GoogleApi.Chat.V1.Model.Message.t`) - diff --git a/clients/chat/lib/google_api/chat/v1/metadata.ex b/clients/chat/lib/google_api/chat/v1/metadata.ex index 772f908ec3..e7945b505f 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 "20241103" + @discovery_revision "20241105" def discovery_revision(), do: @discovery_revision end diff --git a/clients/chat/lib/google_api/chat/v1/model/attachment.ex b/clients/chat/lib/google_api/chat/v1/model/attachment.ex index 74f4e2932f..c2c6ed5e01 100644 --- a/clients/chat/lib/google_api/chat/v1/model/attachment.ex +++ b/clients/chat/lib/google_api/chat/v1/model/attachment.ex @@ -21,12 +21,12 @@ defmodule GoogleApi.Chat.V1.Model.Attachment do ## Attributes - * `attachmentDataRef` (*type:* `GoogleApi.Chat.V1.Model.AttachmentDataRef.t`, *default:* `nil`) - A reference to the attachment data. This field is used with the media API to download the attachment data. + * `attachmentDataRef` (*type:* `GoogleApi.Chat.V1.Model.AttachmentDataRef.t`, *default:* `nil`) - Optional. A reference to the attachment data. This field is used to create or update messages with attachments, or with the media API to download the attachment data. * `contentName` (*type:* `String.t`, *default:* `nil`) - Output only. The original file name for the content, not the full path. * `contentType` (*type:* `String.t`, *default:* `nil`) - Output only. The content type (MIME type) of the file. * `downloadUri` (*type:* `String.t`, *default:* `nil`) - Output only. The download URL which should be used to allow a human user to download the attachment. Chat apps shouldn't use this URL to download attachment content. * `driveDataRef` (*type:* `GoogleApi.Chat.V1.Model.DriveDataRef.t`, *default:* `nil`) - Output only. A reference to the Google Drive attachment. This field is used with the Google Drive API. - * `name` (*type:* `String.t`, *default:* `nil`) - Resource name of the attachment, in the form `spaces/{space}/messages/{message}/attachments/{attachment}`. + * `name` (*type:* `String.t`, *default:* `nil`) - Optional. Resource name of the attachment, in the form `spaces/{space}/messages/{message}/attachments/{attachment}`. * `source` (*type:* `String.t`, *default:* `nil`) - Output only. The source of the attachment. * `thumbnailUri` (*type:* `String.t`, *default:* `nil`) - Output only. The thumbnail URL which should be used to preview the attachment to a human user. Chat apps shouldn't use this URL to download attachment content. """ diff --git a/clients/chat/lib/google_api/chat/v1/model/attachment_data_ref.ex b/clients/chat/lib/google_api/chat/v1/model/attachment_data_ref.ex index 6d66382e2d..8cd48f119c 100644 --- a/clients/chat/lib/google_api/chat/v1/model/attachment_data_ref.ex +++ b/clients/chat/lib/google_api/chat/v1/model/attachment_data_ref.ex @@ -21,8 +21,8 @@ defmodule GoogleApi.Chat.V1.Model.AttachmentDataRef do ## Attributes - * `attachmentUploadToken` (*type:* `String.t`, *default:* `nil`) - Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments. - * `resourceName` (*type:* `String.t`, *default:* `nil`) - The resource name of the attachment data. This field is used with the media API to download the attachment data. + * `attachmentUploadToken` (*type:* `String.t`, *default:* `nil`) - Optional. Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Optional. The resource name of the attachment data. This field is used with the media API to download the attachment data. """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_selection_input.ex b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_selection_input.ex index c363e1aac2..361cd24174 100644 --- a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_selection_input.ex +++ b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_selection_input.ex @@ -21,11 +21,11 @@ defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1SelectionInput do ## Attributes - * `externalDataSource` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action.t`, *default:* `nil`) - An external data source, such as a relational data base. + * `externalDataSource` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action.t`, *default:* `nil`) - An external data source, such as a relational database. * `items` (*type:* `list(GoogleApi.Chat.V1.Model.GoogleAppsCardV1SelectionItem.t)`, *default:* `nil`) - An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items. * `label` (*type:* `String.t`, *default:* `nil`) - The text that appears above the selection input field in the user interface. Specify text that helps the user enter the information your app needs. For example, if users are selecting the urgency of a work ticket from a drop-down menu, the label might be "Urgency" or "Select urgency". * `multiSelectMaxSelectedItems` (*type:* `integer()`, *default:* `nil`) - For multiselect menus, the maximum number of items that a user can select. Minimum value is 1 item. If unspecified, defaults to 3 items. - * `multiSelectMinQueryLength` (*type:* `integer()`, *default:* `nil`) - For multiselect menus, the number of text characters that a user inputs before the app queries autocomplete and displays suggested items in the menu. If unspecified, defaults to 0 characters for static data sources and 3 characters for external data sources. + * `multiSelectMinQueryLength` (*type:* `integer()`, *default:* `nil`) - For multiselect menus, the number of text characters that a user inputs before the menu returns suggested selection items. If unset, the multiselect menu uses the following default values: * If the menu uses a static array of `SelectionInput` items, defaults to 0 characters and immediately populates items from the array. * If the menu uses a dynamic data source (`multi_select_data_source`), defaults to 3 characters before querying the data source to return suggested items. * `name` (*type:* `String.t`, *default:* `nil`) - Required. The name that identifies the selection input in a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data). * `onChangeAction` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action.t`, *default:* `nil`) - If specified, the form is submitted when the selection changes. If not specified, you must specify a separate button that submits the form. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data). * `platformDataSource` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1PlatformDataSource.t`, *default:* `nil`) - A data source from Google Workspace. diff --git a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_selection_item.ex b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_selection_item.ex index 1542974f8a..bf616340bc 100644 --- a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_selection_item.ex +++ b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_selection_item.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1SelectionItem do @moduledoc """ - An item that users can select in a selection input, such as a checkbox or switch. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): + An item that users can select in a selection input, such as a checkbox or switch. Supports up to 100 items. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): ## Attributes diff --git a/clients/chat/lib/google_api/chat/v1/model/updated_widget.ex b/clients/chat/lib/google_api/chat/v1/model/updated_widget.ex index 6848a6eaed..2f8462c217 100644 --- a/clients/chat/lib/google_api/chat/v1/model/updated_widget.ex +++ b/clients/chat/lib/google_api/chat/v1/model/updated_widget.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Chat.V1.Model.UpdatedWidget do @moduledoc """ - The response of the updated widget. Used to provide autocomplete options for a widget. + For `selectionInput` widgets, returns autocomplete suggestions for a multiselect menu. ## Attributes diff --git a/clients/chat/mix.exs b/clients/chat/mix.exs index 9e756e56cf..e41a110a6f 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.41.2" + @version "0.41.3" def project() do [