From de8d4688bfcd4fb0ae57bb3698cb012e2c3b0b0d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 21 Sep 2025 10:24:27 +0000 Subject: [PATCH] feat: Automated regeneration of chat v1 client --- api_names_out.yaml | 5 + generated/google-apis-chat_v1/CHANGELOG.md | 4 + .../lib/google/apis/chat_v1/classes.rb | 99 ++++++++++++++----- .../lib/google/apis/chat_v1/gem_version.rb | 4 +- .../google/apis/chat_v1/representations.rb | 8 ++ 5 files changed, 96 insertions(+), 24 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 88c83e32632..219ba0ec1bd 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -60005,14 +60005,18 @@ "/chat:v1/GoogleAppsCardV1DateTimePicker/valueMsEpoch": value_ms_epoch "/chat:v1/GoogleAppsCardV1DecoratedText": google_apps_card_v1_decorated_text "/chat:v1/GoogleAppsCardV1DecoratedText/bottomLabel": bottom_label +"/chat:v1/GoogleAppsCardV1DecoratedText/bottomLabelText": bottom_label_text "/chat:v1/GoogleAppsCardV1DecoratedText/button": button +"/chat:v1/GoogleAppsCardV1DecoratedText/contentText": content_text "/chat:v1/GoogleAppsCardV1DecoratedText/endIcon": end_icon "/chat:v1/GoogleAppsCardV1DecoratedText/icon": icon "/chat:v1/GoogleAppsCardV1DecoratedText/onClick": on_click "/chat:v1/GoogleAppsCardV1DecoratedText/startIcon": start_icon +"/chat:v1/GoogleAppsCardV1DecoratedText/startIconVerticalAlignment": start_icon_vertical_alignment "/chat:v1/GoogleAppsCardV1DecoratedText/switchControl": switch_control "/chat:v1/GoogleAppsCardV1DecoratedText/text": text "/chat:v1/GoogleAppsCardV1DecoratedText/topLabel": top_label +"/chat:v1/GoogleAppsCardV1DecoratedText/topLabelText": top_label_text "/chat:v1/GoogleAppsCardV1DecoratedText/wrapText": wrap_text "/chat:v1/GoogleAppsCardV1Divider": google_apps_card_v1_divider "/chat:v1/GoogleAppsCardV1EventAction": google_apps_card_v1_event_action @@ -60160,6 +60164,7 @@ "/chat:v1/GoogleAppsCardV1TextParagraph": google_apps_card_v1_text_paragraph "/chat:v1/GoogleAppsCardV1TextParagraph/maxLines": max_lines "/chat:v1/GoogleAppsCardV1TextParagraph/text": text +"/chat:v1/GoogleAppsCardV1TextParagraph/textSyntax": text_syntax "/chat:v1/GoogleAppsCardV1Trigger": google_apps_card_v1_trigger "/chat:v1/GoogleAppsCardV1Trigger/actionRuleId": action_rule_id "/chat:v1/GoogleAppsCardV1UpdateVisibilityAction": google_apps_card_v1_update_visibility_action diff --git a/generated/google-apis-chat_v1/CHANGELOG.md b/generated/google-apis-chat_v1/CHANGELOG.md index 932f2ff1e80..22ac72be469 100644 --- a/generated/google-apis-chat_v1/CHANGELOG.md +++ b/generated/google-apis-chat_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-chat_v1 +### v0.132.0 (2025-09-21) + +* Regenerated from discovery document revision 20250916 + ### v0.131.0 (2025-09-14) * Regenerated from discovery document revision 20250909 diff --git a/generated/google-apis-chat_v1/lib/google/apis/chat_v1/classes.rb b/generated/google-apis-chat_v1/lib/google/apis/chat_v1/classes.rb index 84b41a3c1f8..b3845b47d62 100644 --- a/generated/google-apis-chat_v1/lib/google/apis/chat_v1/classes.rb +++ b/generated/google-apis-chat_v1/lib/google/apis/chat_v1/classes.rb @@ -2061,15 +2061,15 @@ def update!(**args) end end - # [Developer Preview](https://developers.google.com/workspace/preview): A - # carousel, also known as a slider, rotates and displays a list of widgets in a - # slideshow format, with buttons navigating to the previous or next widget. For - # example, this is a JSON representation of a carousel that contains three text - # paragraph widgets. ``` ` "carouselCards": [ ` "widgets": [ ` "textParagraph": ` - # "text": "First text paragraph in carousel", ` ` ] `, ` "widgets": [ ` " - # textParagraph": ` "text": "Second text paragraph in carousel", ` ` ] `, ` " - # widgets": [ ` "textParagraph": ` "text": "Third text paragraph in carousel", ` - # ` ] ` ] ` ``` [Google Chat apps](https://developers.google.com/workspace/chat): + # A carousel, also known as a slider, rotates and displays a list of widgets in + # a slideshow format, with buttons navigating to the previous or next widget. + # For example, this is a JSON representation of a carousel that contains three + # text paragraph widgets. ``` ` "carouselCards": [ ` "widgets": [ ` " + # textParagraph": ` "text": "First text paragraph in carousel", ` ` ] `, ` " + # widgets": [ ` "textParagraph": ` "text": "Second text paragraph in carousel", ` + # ` ] `, ` "widgets": [ ` "textParagraph": ` "text": "Third text paragraph in + # carousel", ` ` ] ` ] ` ``` [Google Chat apps](https://developers.google.com/ + # workspace/chat): class GoogleAppsCardV1Carousel include Google::Apis::Core::Hashable @@ -2088,8 +2088,7 @@ def update!(**args) end end - # [Developer Preview](https://developers.google.com/workspace/preview): A card - # that can be displayed as a carousel item. [Google Chat apps](https:// + # A card that can be displayed as a carousel item. [Google Chat apps](https:// # developers.google.com/workspace/chat): class GoogleAppsCardV1CarouselCard include Google::Apis::Core::Hashable @@ -2507,6 +2506,19 @@ class GoogleAppsCardV1DecoratedText # @return [String] attr_accessor :bottom_label + # A paragraph of text that supports formatting. For an example in Google Chat + # apps, see [Add a paragraph of formatted text](https://developers.google.com/ + # workspace/chat/add-text-image-card-dialog#add_a_paragraph_of_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). [ + # Google Workspace add-ons and Chat apps](https://developers.google.com/ + # workspace/extend): + # Corresponds to the JSON property `bottomLabelText` + # @return [Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph] + attr_accessor :bottom_label_text + # A text, icon, or text and icon button that users can click. For an example in # Google Chat apps, see [Add a button](https://developers.google.com/workspace/ # chat/design-interactive-card-dialog#add_a_button). To make an image a @@ -2517,6 +2529,19 @@ class GoogleAppsCardV1DecoratedText # @return [Google::Apis::ChatV1::GoogleAppsCardV1Button] attr_accessor :button + # A paragraph of text that supports formatting. For an example in Google Chat + # apps, see [Add a paragraph of formatted text](https://developers.google.com/ + # workspace/chat/add-text-image-card-dialog#add_a_paragraph_of_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). [ + # Google Workspace add-ons and Chat apps](https://developers.google.com/ + # workspace/extend): + # Corresponds to the JSON property `contentText` + # @return [Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph] + attr_accessor :content_text + # An icon displayed in a widget on a card. For an example in Google Chat apps, # see [Add an icon](https://developers.google.com/workspace/chat/add-text-image- # card-dialog#add_an_icon). Supports [built-in](https://developers.google.com/ @@ -2557,6 +2582,13 @@ class GoogleAppsCardV1DecoratedText # @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon] attr_accessor :start_icon + # Optional. Vertical alignment of the start icon. If not set, the icon will be + # vertically centered. [Google Chat apps](https://developers.google.com/ + # workspace/chat): + # Corresponds to the JSON property `startIconVerticalAlignment` + # @return [String] + attr_accessor :start_icon_vertical_alignment + # Either a toggle-style switch or a checkbox inside a `decoratedText` widget. [ # Google Workspace add-ons and Chat apps](https://developers.google.com/ # workspace/extend): Only supported in the `decoratedText` widget. @@ -2578,6 +2610,19 @@ class GoogleAppsCardV1DecoratedText # @return [String] attr_accessor :top_label + # A paragraph of text that supports formatting. For an example in Google Chat + # apps, see [Add a paragraph of formatted text](https://developers.google.com/ + # workspace/chat/add-text-image-card-dialog#add_a_paragraph_of_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). [ + # Google Workspace add-ons and Chat apps](https://developers.google.com/ + # workspace/extend): + # Corresponds to the JSON property `topLabelText` + # @return [Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph] + attr_accessor :top_label_text + # The wrap text setting. If `true`, the text wraps and displays on multiple # lines. Otherwise, the text is truncated. Only applies to `text`, not `topLabel` # and `bottomLabel`. @@ -2593,14 +2638,18 @@ def initialize(**args) # Update properties of this object def update!(**args) @bottom_label = args[:bottom_label] if args.key?(:bottom_label) + @bottom_label_text = args[:bottom_label_text] if args.key?(:bottom_label_text) @button = args[:button] if args.key?(:button) + @content_text = args[:content_text] if args.key?(:content_text) @end_icon = args[:end_icon] if args.key?(:end_icon) @icon = args[:icon] if args.key?(:icon) @on_click = args[:on_click] if args.key?(:on_click) @start_icon = args[:start_icon] if args.key?(:start_icon) + @start_icon_vertical_alignment = args[:start_icon_vertical_alignment] if args.key?(:start_icon_vertical_alignment) @switch_control = args[:switch_control] if args.key?(:switch_control) @text = args[:text] if args.key?(:text) @top_label = args[:top_label] if args.key?(:top_label) + @top_label_text = args[:top_label_text] if args.key?(:top_label_text) @wrap_text = args[:wrap_text] if args.key?(:wrap_text) end end @@ -3059,8 +3108,7 @@ def update!(**args) end end - # [Developer Preview](https://developers.google.com/workspace/preview): A list - # of widgets that can be displayed in a containing layout, such as a ` + # A list of widgets that can be displayed in a containing layout, such as a ` # CarouselCard`. [Google Chat apps](https://developers.google.com/workspace/chat) # : class GoogleAppsCardV1NestedWidget @@ -3824,6 +3872,12 @@ class GoogleAppsCardV1TextParagraph # @return [String] attr_accessor :text + # The syntax of the text. If not set, the text is rendered as HTML. [Google Chat + # apps](https://developers.google.com/workspace/chat): + # Corresponds to the JSON property `textSyntax` + # @return [String] + attr_accessor :text_syntax + def initialize(**args) update!(**args) end @@ -3832,6 +3886,7 @@ def initialize(**args) def update!(**args) @max_lines = args[:max_lines] if args.key?(:max_lines) @text = args[:text] if args.key?(:text) + @text_syntax = args[:text_syntax] if args.key?(:text_syntax) end end @@ -3919,15 +3974,15 @@ class GoogleAppsCardV1Widget # @return [Google::Apis::ChatV1::GoogleAppsCardV1ButtonList] attr_accessor :button_list - # [Developer Preview](https://developers.google.com/workspace/preview): A - # carousel, also known as a slider, rotates and displays a list of widgets in a - # slideshow format, with buttons navigating to the previous or next widget. For - # example, this is a JSON representation of a carousel that contains three text - # paragraph widgets. ``` ` "carouselCards": [ ` "widgets": [ ` "textParagraph": ` - # "text": "First text paragraph in carousel", ` ` ] `, ` "widgets": [ ` " - # textParagraph": ` "text": "Second text paragraph in carousel", ` ` ] `, ` " - # widgets": [ ` "textParagraph": ` "text": "Third text paragraph in carousel", ` - # ` ] ` ] ` ``` [Google Chat apps](https://developers.google.com/workspace/chat): + # A carousel, also known as a slider, rotates and displays a list of widgets in + # a slideshow format, with buttons navigating to the previous or next widget. + # For example, this is a JSON representation of a carousel that contains three + # text paragraph widgets. ``` ` "carouselCards": [ ` "widgets": [ ` " + # textParagraph": ` "text": "First text paragraph in carousel", ` ` ] `, ` " + # widgets": [ ` "textParagraph": ` "text": "Second text paragraph in carousel", ` + # ` ] `, ` "widgets": [ ` "textParagraph": ` "text": "Third text paragraph in + # carousel", ` ` ] ` ] ` ``` [Google Chat apps](https://developers.google.com/ + # workspace/chat): # Corresponds to the JSON property `carousel` # @return [Google::Apis::ChatV1::GoogleAppsCardV1Carousel] attr_accessor :carousel diff --git a/generated/google-apis-chat_v1/lib/google/apis/chat_v1/gem_version.rb b/generated/google-apis-chat_v1/lib/google/apis/chat_v1/gem_version.rb index e63cb945159..bb3d32de1c7 100644 --- a/generated/google-apis-chat_v1/lib/google/apis/chat_v1/gem_version.rb +++ b/generated/google-apis-chat_v1/lib/google/apis/chat_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ChatV1 # Version of the google-apis-chat_v1 gem - GEM_VERSION = "0.131.0" + GEM_VERSION = "0.132.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20250909" + REVISION = "20250916" end end end diff --git a/generated/google-apis-chat_v1/lib/google/apis/chat_v1/representations.rb b/generated/google-apis-chat_v1/lib/google/apis/chat_v1/representations.rb index 2fa100ac391..dd23937c9c1 100644 --- a/generated/google-apis-chat_v1/lib/google/apis/chat_v1/representations.rb +++ b/generated/google-apis-chat_v1/lib/google/apis/chat_v1/representations.rb @@ -1570,8 +1570,12 @@ class GoogleAppsCardV1DecoratedText # @private class Representation < Google::Apis::Core::JsonRepresentation property :bottom_label, as: 'bottomLabel' + property :bottom_label_text, as: 'bottomLabelText', class: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph, decorator: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph::Representation + property :button, as: 'button', class: Google::Apis::ChatV1::GoogleAppsCardV1Button, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Button::Representation + property :content_text, as: 'contentText', class: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph, decorator: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph::Representation + property :end_icon, as: 'endIcon', class: Google::Apis::ChatV1::GoogleAppsCardV1Icon, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Icon::Representation property :icon, as: 'icon', class: Google::Apis::ChatV1::GoogleAppsCardV1Icon, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Icon::Representation @@ -1580,10 +1584,13 @@ class Representation < Google::Apis::Core::JsonRepresentation property :start_icon, as: 'startIcon', class: Google::Apis::ChatV1::GoogleAppsCardV1Icon, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Icon::Representation + property :start_icon_vertical_alignment, as: 'startIconVerticalAlignment' property :switch_control, as: 'switchControl', class: Google::Apis::ChatV1::GoogleAppsCardV1SwitchControl, decorator: Google::Apis::ChatV1::GoogleAppsCardV1SwitchControl::Representation property :text, as: 'text' property :top_label, as: 'topLabel' + property :top_label_text, as: 'topLabelText', class: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph, decorator: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph::Representation + property :wrap_text, as: 'wrapText' end end @@ -1869,6 +1876,7 @@ class GoogleAppsCardV1TextParagraph class Representation < Google::Apis::Core::JsonRepresentation property :max_lines, as: 'maxLines' property :text, as: 'text' + property :text_syntax, as: 'textSyntax' end end