From 7f92e295ddea4aa11e71a3116c26810e6cb2f917 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 20 Dec 2024 13:14:31 +0000 Subject: [PATCH] feat: Automated regeneration of Chat client --- clients/chat/lib/google_api/chat/v1/connection.ex | 8 ++++---- clients/chat/lib/google_api/chat/v1/metadata.ex | 2 +- .../chat/v1/model/google_apps_card_v1_button.ex | 2 +- .../google_api/chat/v1/model/google_apps_card_v1_chip.ex | 2 +- .../chat/v1/model/google_apps_card_v1_chip_list.ex | 2 +- .../chat/v1/model/google_apps_card_v1_collapse_control.ex | 2 +- .../chat/v1/model/google_apps_card_v1_on_click.ex | 2 +- .../chat/v1/model/google_apps_card_v1_overflow_menu.ex | 2 +- .../v1/model/google_apps_card_v1_overflow_menu_item.ex | 2 +- .../chat/v1/model/google_apps_card_v1_section.ex | 2 +- .../chat/v1/model/google_apps_card_v1_text_paragraph.ex | 2 +- .../chat/v1/model/google_apps_card_v1_widget.ex | 2 +- .../chat/v1/model/google_apps_card_v1_widgets.ex | 2 +- clients/chat/mix.exs | 2 +- 14 files changed, 17 insertions(+), 17 deletions(-) diff --git a/clients/chat/lib/google_api/chat/v1/connection.ex b/clients/chat/lib/google_api/chat/v1/connection.ex index 26ce882f80..0dc4a1de30 100644 --- a/clients/chat/lib/google_api/chat/v1/connection.ex +++ b/clients/chat/lib/google_api/chat/v1/connection.ex @@ -69,22 +69,22 @@ defmodule GoogleApi.Chat.V1.Connection do # View members in Google Chat conversations. "https://www.googleapis.com/auth/chat.memberships.readonly", - # See, compose, send, update, and delete messages as well as their message content; add, see, and delete reactions to messages. + # See, compose, send, update, and delete messages and their associated attachments, and add, see, and delete reactions to messages. "https://www.googleapis.com/auth/chat.messages", # Compose and send messages in Google Chat "https://www.googleapis.com/auth/chat.messages.create", - # See, add, and delete reactions as well as their reaction content to messages in Google Chat + # See, add, and delete reactions to messages in Google Chat "https://www.googleapis.com/auth/chat.messages.reactions", # Add reactions to messages in Google Chat "https://www.googleapis.com/auth/chat.messages.reactions.create", - # View reactions as well as their reaction content to messages in Google Chat + # View reactions to messages in Google Chat "https://www.googleapis.com/auth/chat.messages.reactions.readonly", - # See messages as well as their reactions and message content in Google Chat + # See messages and their associated reactions and attachments in Google Chat "https://www.googleapis.com/auth/chat.messages.readonly", # Create conversations and spaces and see or update metadata (including history settings and access settings) in Google Chat diff --git a/clients/chat/lib/google_api/chat/v1/metadata.ex b/clients/chat/lib/google_api/chat/v1/metadata.ex index 2464ae9699..9003953b62 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 "20241208" + @discovery_revision "20241217" def discovery_revision(), do: @discovery_revision end diff --git a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_button.ex b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_button.ex index 8360f753d8..21c0b0aa06 100644 --- a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_button.ex +++ b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_button.ex @@ -27,7 +27,7 @@ defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1Button do * `icon` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon.t`, *default:* `nil`) - An icon displayed inside the button. If both `icon` and `text` are set, then the icon appears before the text. * `onClick` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1OnClick.t`, *default:* `nil`) - Required. The action to perform when a user clicks the button, such as opening a hyperlink or running a custom function. * `text` (*type:* `String.t`, *default:* `nil`) - The text displayed inside the button. - * `type` (*type:* `String.t`, *default:* `nil`) - Optional. The type of a button. If unset, button type defaults to `OUTLINED`. If the `color` field is set, the button type is forced to `FILLED` and any value set for this field is ignored. [Google Chat apps](https://developers.google.com/workspace/chat): + * `type` (*type:* `String.t`, *default:* `nil`) - Optional. The type of a button. If unset, button type defaults to `OUTLINED`. If the `color` field is set, the button type is forced to `FILLED` and any value set for this field is ignored. """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_chip.ex b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_chip.ex index 610af57268..4435693c7d 100644 --- a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_chip.ex +++ b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_chip.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1Chip do @moduledoc """ - A text, icon, or text and icon chip that users can click. [Google Chat apps](https://developers.google.com/workspace/chat): + A text, icon, or text and icon chip that users can click. [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/google_apps_card_v1_chip_list.ex b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_chip_list.ex index 4358def359..8f5ad7ebdc 100644 --- a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_chip_list.ex +++ b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_chip_list.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1ChipList do @moduledoc """ - A list of chips layed out horizontally, which can either scroll horizontally or wrap to the next line. [Google Chat apps](https://developers.google.com/workspace/chat): + A list of chips layed out horizontally, which can either scroll horizontally or wrap to the next line. [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/google_apps_card_v1_collapse_control.ex b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_collapse_control.ex index d3386cba83..99e7df179d 100644 --- a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_collapse_control.ex +++ b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_collapse_control.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1CollapseControl do @moduledoc """ - Represent an expand and collapse control. [Google Chat apps](https://developers.google.com/workspace/chat): + Represent an expand and collapse control. [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/google_apps_card_v1_on_click.ex b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_on_click.ex index 43fb60e660..5713cd22d4 100644 --- a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_on_click.ex +++ b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_on_click.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1OnClick do * `card` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1Card.t`, *default:* `nil`) - A new card is pushed to the card stack after clicking if specified. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): * `openDynamicLinkAction` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action.t`, *default:* `nil`) - An add-on triggers this action when the action needs to open a link. This differs from the `open_link` above in that this needs to talk to server to get the link. Thus some preparation work is required for web client to do before the open link action response comes back. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons): * `openLink` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1OpenLink.t`, *default:* `nil`) - If specified, this `onClick` triggers an open link action. - * `overflowMenu` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1OverflowMenu.t`, *default:* `nil`) - If specified, this `onClick` opens an overflow menu. [Google Chat apps](https://developers.google.com/workspace/chat): + * `overflowMenu` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1OverflowMenu.t`, *default:* `nil`) - If specified, this `onClick` opens an overflow menu. """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_overflow_menu.ex b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_overflow_menu.ex index c07c8cb031..49acde45e1 100644 --- a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_overflow_menu.ex +++ b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_overflow_menu.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1OverflowMenu do @moduledoc """ - A widget that presents a pop-up menu with one or more actions that users can invoke. For example, showing non-primary actions in a card. You can use this widget when actions don't fit in the available space. To use, specify this widget in the `OnClick` action of widgets that support it. For example, in a `Button`. [Google Chat apps](https://developers.google.com/workspace/chat): + A widget that presents a pop-up menu with one or more actions that users can invoke. For example, showing non-primary actions in a card. You can use this widget when actions don't fit in the available space. To use, specify this widget in the `OnClick` action of widgets that support it. For example, in a `Button`. [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/google_apps_card_v1_overflow_menu_item.ex b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_overflow_menu_item.ex index 62f74e4758..29b1501c1e 100644 --- a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_overflow_menu_item.ex +++ b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_overflow_menu_item.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1OverflowMenuItem do @moduledoc """ - An option that users can invoke in an overflow menu. [Google Chat apps](https://developers.google.com/workspace/chat): + An option that users can invoke in an overflow menu. [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/google_apps_card_v1_section.ex b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_section.ex index c9cd055a35..702f4228c5 100644 --- a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_section.ex +++ b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_section.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1Section do ## Attributes - * `collapseControl` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1CollapseControl.t`, *default:* `nil`) - Optional. Define the expand and collapse button of the section. This button will be shown only if the section is collapsible. If this field isn't set, the default button is used. [Google Chat apps](https://developers.google.com/workspace/chat): + * `collapseControl` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1CollapseControl.t`, *default:* `nil`) - Optional. Define the expand and collapse button of the section. This button will be shown only if the section is collapsible. If this field isn't set, the default button is used. * `collapsible` (*type:* `boolean()`, *default:* `nil`) - Indicates whether this section is collapsible. Collapsible sections hide some or all widgets, but users can expand the section to reveal the hidden widgets by clicking **Show more**. Users can hide the widgets again by clicking **Show less**. To determine which widgets are hidden, specify `uncollapsibleWidgetsCount`. * `header` (*type:* `String.t`, *default:* `nil`) - Text that appears at the top of a section. Supports simple HTML formatted text. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). * `uncollapsibleWidgetsCount` (*type:* `integer()`, *default:* `nil`) - The number of uncollapsible widgets which remain visible even when a section is collapsed. For example, when a section contains five widgets and the `uncollapsibleWidgetsCount` is set to `2`, the first two widgets are always shown and the last three are collapsed by default. The `uncollapsibleWidgetsCount` is taken into account only when `collapsible` is `true`. diff --git a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_text_paragraph.ex b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_text_paragraph.ex index be1970867c..d5b811d943 100644 --- a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_text_paragraph.ex +++ b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_text_paragraph.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1TextParagraph do ## Attributes - * `maxLines` (*type:* `integer()`, *default:* `nil`) - The maximum number of lines of text that are displayed in the widget. If the text exceeds the specified maximum number of lines, the excess content is concealed behind a **show more** button. If the text is equal or shorter than the specified maximum number of lines, a **show more** button isn't displayed. The default value is 0, in which case all context is displayed. Negative values are ignored. [Google Chat apps](https://developers.google.com/workspace/chat): + * `maxLines` (*type:* `integer()`, *default:* `nil`) - The maximum number of lines of text that are displayed in the widget. If the text exceeds the specified maximum number of lines, the excess content is concealed behind a **show more** button. If the text is equal or shorter than the specified maximum number of lines, a **show more** button isn't displayed. The default value is 0, in which case all context is displayed. Negative values are ignored. * `text` (*type:* `String.t`, *default:* `nil`) - The text that's shown in the widget. """ diff --git a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_widget.ex b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_widget.ex index f78b20ae43..619eaabce7 100644 --- a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_widget.ex +++ b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_widget.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1Widget do * `buttonList` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1ButtonList.t`, *default:* `nil`) - A list of buttons. For example, the following JSON creates two buttons. The first is a blue text button and the second is an image button that opens a link: ``` "buttonList": { "buttons": [ { "text": "Edit", "color": { "red": 0, "green": 0, "blue": 1, }, "disabled": true, }, { "icon": { "knownIcon": "INVITE", "altText": "check calendar" }, "onClick": { "openLink": { "url": "https://example.com/calendar" } } } ] } ``` * `carousel` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1Carousel.t`, *default:* `nil`) - A carousel contains a collection of nested widgets. For example, this is a JSON representation of a carousel that contains two text paragraphs. ``` { "widgets": [ { "textParagraph": { "text": "First text paragraph in the carousel." } }, { "textParagraph": { "text": "Second text paragraph in the carousel." } } ] } ``` - * `chipList` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1ChipList.t`, *default:* `nil`) - A list of chips. For example, the following JSON creates two chips. The first is a text chip and the second is an icon chip that opens a link: ``` "chipList": { "chips": [ { "text": "Edit", "disabled": true, }, { "icon": { "knownIcon": "INVITE", "altText": "check calendar" }, "onClick": { "openLink": { "url": "https://example.com/calendar" } } } ] } ``` [Google Chat apps](https://developers.google.com/workspace/chat): + * `chipList` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1ChipList.t`, *default:* `nil`) - A list of chips. For example, the following JSON creates two chips. The first is a text chip and the second is an icon chip that opens a link: ``` "chipList": { "chips": [ { "text": "Edit", "disabled": true, }, { "icon": { "knownIcon": "INVITE", "altText": "check calendar" }, "onClick": { "openLink": { "url": "https://example.com/calendar" } } } ] } ``` * `columns` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1Columns.t`, *default:* `nil`) - Displays up to 2 columns. To include more than 2 columns, or to use rows, use the `Grid` widget. For example, the following JSON creates 2 columns that each contain text paragraphs: ``` "columns": { "columnItems": [ { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "First column text paragraph" } } ] }, { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment": "CENTER", "widgets": [ { "textParagraph": { "text": "Second column text paragraph" } } ] } ] } ``` * `dateTimePicker` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1DateTimePicker.t`, *default:* `nil`) - Displays a widget that lets users input a date, time, or date and time. For example, the following JSON creates a date time picker to schedule an appointment: ``` "dateTimePicker": { "name": "appointment_time", "label": "Book your appointment at:", "type": "DATE_AND_TIME", "valueMsEpoch": "796435200000" } ``` * `decoratedText` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1DecoratedText.t`, *default:* `nil`) - Displays a decorated text item. For example, the following JSON creates a decorated text widget showing email address: ``` "decoratedText": { "icon": { "knownIcon": "EMAIL" }, "topLabel": "Email Address", "text": "sasha@example.com", "bottomLabel": "This is a new Email address!", "switchControl": { "name": "has_send_welcome_email_to_sasha", "selected": false, "controlType": "CHECKBOX" } } ``` diff --git a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_widgets.ex b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_widgets.ex index 6e67e1a86a..1cfd4052c4 100644 --- a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_widgets.ex +++ b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_widgets.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1Widgets do ## Attributes * `buttonList` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1ButtonList.t`, *default:* `nil`) - ButtonList widget. - * `chipList` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1ChipList.t`, *default:* `nil`) - ChipList widget. [Google Chat apps](https://developers.google.com/workspace/chat): + * `chipList` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1ChipList.t`, *default:* `nil`) - ChipList widget. * `dateTimePicker` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1DateTimePicker.t`, *default:* `nil`) - DateTimePicker widget. * `decoratedText` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1DecoratedText.t`, *default:* `nil`) - DecoratedText widget. * `image` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1Image.t`, *default:* `nil`) - Image widget. diff --git a/clients/chat/mix.exs b/clients/chat/mix.exs index 8054be3089..aadd9bf5cd 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.42.0" + @version "0.42.1" def project() do [