Skip to content

Commit cd43601

Browse files
feat: Automated regeneration of chat v1 client (#15472)
Auto-created at 2023-07-16 10:40:22 +0000 using the toys pull request generator.
1 parent 670e18b commit cd43601

File tree

5 files changed

+250
-2
lines changed

5 files changed

+250
-2
lines changed

api_names_out.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31015,6 +31015,8 @@
3101531015
"/chat:v1/ChatAppLogEntry/deployment": deployment
3101631016
"/chat:v1/ChatAppLogEntry/deploymentFunction": deployment_function
3101731017
"/chat:v1/ChatAppLogEntry/error": error
31018+
"/chat:v1/ChatClientDataSourceMarkup": chat_client_data_source_markup
31019+
"/chat:v1/ChatClientDataSourceMarkup/spaceDataSource": space_data_source
3101831020
"/chat:v1/Color": color
3101931021
"/chat:v1/Color/alpha": alpha
3102031022
"/chat:v1/Color/blue": blue
@@ -31111,6 +31113,7 @@
3111131113
"/chat:v1/GoogleAppsCardV1Card/header": header
3111231114
"/chat:v1/GoogleAppsCardV1Card/name": name
3111331115
"/chat:v1/GoogleAppsCardV1Card/peekCardHeader": peek_card_header
31116+
"/chat:v1/GoogleAppsCardV1Card/sectionDividerStyle": section_divider_style
3111431117
"/chat:v1/GoogleAppsCardV1Card/sections": sections
3111531118
"/chat:v1/GoogleAppsCardV1Card/sections/section": section
3111631119
"/chat:v1/GoogleAppsCardV1CardAction": google_apps_card_v1_card_action
@@ -31209,21 +31212,30 @@
3120931212
"/chat:v1/GoogleAppsCardV1OpenLink/onClose": on_close
3121031213
"/chat:v1/GoogleAppsCardV1OpenLink/openAs": open_as
3121131214
"/chat:v1/GoogleAppsCardV1OpenLink/url": url
31215+
"/chat:v1/GoogleAppsCardV1PlatformDataSource": google_apps_card_v1_platform_data_source
31216+
"/chat:v1/GoogleAppsCardV1PlatformDataSource/commonDataSource": common_data_source
31217+
"/chat:v1/GoogleAppsCardV1PlatformDataSource/hostAppDataSource": host_app_data_source
3121231218
"/chat:v1/GoogleAppsCardV1Section": google_apps_card_v1_section
3121331219
"/chat:v1/GoogleAppsCardV1Section/collapsible": collapsible
3121431220
"/chat:v1/GoogleAppsCardV1Section/header": header
3121531221
"/chat:v1/GoogleAppsCardV1Section/uncollapsibleWidgetsCount": uncollapsible_widgets_count
3121631222
"/chat:v1/GoogleAppsCardV1Section/widgets": widgets
3121731223
"/chat:v1/GoogleAppsCardV1Section/widgets/widget": widget
3121831224
"/chat:v1/GoogleAppsCardV1SelectionInput": google_apps_card_v1_selection_input
31225+
"/chat:v1/GoogleAppsCardV1SelectionInput/externalDataSource": external_data_source
3121931226
"/chat:v1/GoogleAppsCardV1SelectionInput/items": items
3122031227
"/chat:v1/GoogleAppsCardV1SelectionInput/items/item": item
3122131228
"/chat:v1/GoogleAppsCardV1SelectionInput/label": label
31229+
"/chat:v1/GoogleAppsCardV1SelectionInput/multiSelectMaxSelectedItems": multi_select_max_selected_items
31230+
"/chat:v1/GoogleAppsCardV1SelectionInput/multiSelectMinQueryLength": multi_select_min_query_length
3122231231
"/chat:v1/GoogleAppsCardV1SelectionInput/name": name
3122331232
"/chat:v1/GoogleAppsCardV1SelectionInput/onChangeAction": on_change_action
31233+
"/chat:v1/GoogleAppsCardV1SelectionInput/platformDataSource": platform_data_source
3122431234
"/chat:v1/GoogleAppsCardV1SelectionInput/type": type
3122531235
"/chat:v1/GoogleAppsCardV1SelectionItem": google_apps_card_v1_selection_item
31236+
"/chat:v1/GoogleAppsCardV1SelectionItem/bottomText": bottom_text
3122631237
"/chat:v1/GoogleAppsCardV1SelectionItem/selected": selected
31238+
"/chat:v1/GoogleAppsCardV1SelectionItem/startIconUri": start_icon_uri
3122731239
"/chat:v1/GoogleAppsCardV1SelectionItem/text": text
3122831240
"/chat:v1/GoogleAppsCardV1SelectionItem/value": value
3122931241
"/chat:v1/GoogleAppsCardV1SuggestionItem": google_apps_card_v1_suggestion_item
@@ -31268,6 +31280,8 @@
3126831280
"/chat:v1/GoogleAppsCardV1Widgets/selectionInput": selection_input
3126931281
"/chat:v1/GoogleAppsCardV1Widgets/textInput": text_input
3127031282
"/chat:v1/GoogleAppsCardV1Widgets/textParagraph": text_paragraph
31283+
"/chat:v1/HostAppDataSourceMarkup": host_app_data_source_markup
31284+
"/chat:v1/HostAppDataSourceMarkup/chatDataSource": chat_data_source
3127131285
"/chat:v1/Image": image
3127231286
"/chat:v1/Image/aspectRatio": aspect_ratio
3127331287
"/chat:v1/Image/imageUrl": image_url
@@ -31388,6 +31402,8 @@
3138831402
"/chat:v1/Space/spaceType": space_type
3138931403
"/chat:v1/Space/threaded": threaded
3139031404
"/chat:v1/Space/type": type
31405+
"/chat:v1/SpaceDataSource": space_data_source
31406+
"/chat:v1/SpaceDataSource/defaultToCurrentSpace": default_to_current_space
3139131407
"/chat:v1/SpaceDetails": space_details
3139231408
"/chat:v1/SpaceDetails/description": description
3139331409
"/chat:v1/SpaceDetails/guidelines": guidelines

generated/google-apis-chat_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-chat_v1
22

3+
### v0.65.0 (2023-07-16)
4+
5+
* Regenerated from discovery document revision 20230711
6+
37
### v0.64.0 (2023-07-09)
48

59
* Regenerated from discovery document revision 20230704

generated/google-apis-chat_v1/lib/google/apis/chat_v1/classes.rb

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,29 @@ def update!(**args)
490490
end
491491
end
492492

493+
# Chat apps only. For a `SelectionInput` widget that uses a multi-select menu, a
494+
# data source from Google Chat. For example, a list of Google Chat spaces of
495+
# which the user is a member. [Developer Preview](https://developers.google.com/
496+
# workspace/preview).
497+
class ChatClientDataSourceMarkup
498+
include Google::Apis::Core::Hashable
499+
500+
# A data source representing a Google Chat space. Format: spaces/`space` [
501+
# Developer Preview](https://developers.google.com/workspace/preview).
502+
# Corresponds to the JSON property `spaceDataSource`
503+
# @return [Google::Apis::ChatV1::SpaceDataSource]
504+
attr_accessor :space_data_source
505+
506+
def initialize(**args)
507+
update!(**args)
508+
end
509+
510+
# Update properties of this object
511+
def update!(**args)
512+
@space_data_source = args[:space_data_source] if args.key?(:space_data_source)
513+
end
514+
end
515+
493516
# Represents a color in the RGBA color space. This representation is designed
494517
# for simplicity of conversion to and from color representations in various
495518
# languages over compactness. For example, the fields of this representation can
@@ -1401,6 +1424,11 @@ class GoogleAppsCardV1Card
14011424
# @return [Google::Apis::ChatV1::GoogleAppsCardV1CardHeader]
14021425
attr_accessor :peek_card_header
14031426

1427+
# The divider style between sections.
1428+
# Corresponds to the JSON property `sectionDividerStyle`
1429+
# @return [String]
1430+
attr_accessor :section_divider_style
1431+
14041432
# Contains a collection of widgets. Each section has its own, optional header.
14051433
# Sections are visually separated by a line divider.
14061434
# Corresponds to the JSON property `sections`
@@ -1419,6 +1447,7 @@ def update!(**args)
14191447
@header = args[:header] if args.key?(:header)
14201448
@name = args[:name] if args.key?(:name)
14211449
@peek_card_header = args[:peek_card_header] if args.key?(:peek_card_header)
1450+
@section_divider_style = args[:section_divider_style] if args.key?(:section_divider_style)
14221451
@sections = args[:sections] if args.key?(:sections)
14231452
end
14241453
end
@@ -2131,6 +2160,40 @@ def update!(**args)
21312160
end
21322161
end
21332162

2163+
# Chat apps only. For a `SelectionInput` widget that uses a multi-select menu,
2164+
# the data from a [Google Workspace host application](https://developers.google.
2165+
# com/chat/api/reference/rest/v1/HostApp). Used to populate the items in the
2166+
# multi-select menu. [Developer Preview](https://developers.google.com/workspace/
2167+
# preview).
2168+
class GoogleAppsCardV1PlatformDataSource
2169+
include Google::Apis::Core::Hashable
2170+
2171+
# For a `SelectionInput` widget that uses a multi-select menu, a data source
2172+
# shared by all Google Workspace host applications, such as users in a Google
2173+
# Workspace organization. [Developer Preview](https://developers.google.com/
2174+
# workspace/preview).
2175+
# Corresponds to the JSON property `commonDataSource`
2176+
# @return [String]
2177+
attr_accessor :common_data_source
2178+
2179+
# Chat apps only. For a `SelectionInput` widget that uses a multi-select menu, a
2180+
# data source from a Google Workspace host application. [Developer Preview](
2181+
# https://developers.google.com/workspace/preview).
2182+
# Corresponds to the JSON property `hostAppDataSource`
2183+
# @return [Google::Apis::ChatV1::HostAppDataSourceMarkup]
2184+
attr_accessor :host_app_data_source
2185+
2186+
def initialize(**args)
2187+
update!(**args)
2188+
end
2189+
2190+
# Update properties of this object
2191+
def update!(**args)
2192+
@common_data_source = args[:common_data_source] if args.key?(:common_data_source)
2193+
@host_app_data_source = args[:host_app_data_source] if args.key?(:host_app_data_source)
2194+
end
2195+
end
2196+
21342197
# A section contains a collection of widgets that are rendered vertically in the
21352198
# order that they're specified.
21362199
class GoogleAppsCardV1Section
@@ -2193,6 +2256,13 @@ def update!(**args)
21932256
class GoogleAppsCardV1SelectionInput
21942257
include Google::Apis::Core::Hashable
21952258

2259+
# An action that describes the behavior when the form is submitted. For example,
2260+
# you can invoke an Apps Script script to handle the form. If the action is
2261+
# triggered, the form values are sent to the server.
2262+
# Corresponds to the JSON property `externalDataSource`
2263+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
2264+
attr_accessor :external_data_source
2265+
21962266
# An array of selectable items. For example, an array of radio buttons or
21972267
# checkboxes. Supports up to 100 items.
21982268
# Corresponds to the JSON property `items`
@@ -2207,6 +2277,22 @@ class GoogleAppsCardV1SelectionInput
22072277
# @return [String]
22082278
attr_accessor :label
22092279

2280+
# For multi-select menus, the maximum number of items that a user can select.
2281+
# Minimum value is 1 item. If unspecified, set to 3 items. [Developer Preview](
2282+
# https://developers.google.com/workspace/preview).
2283+
# Corresponds to the JSON property `multiSelectMaxSelectedItems`
2284+
# @return [Fixnum]
2285+
attr_accessor :multi_select_max_selected_items
2286+
2287+
# For multi-select menus, the number of text characters that a user inputs
2288+
# before the Chat app queries autocomplete and displays suggested items on the
2289+
# card. If unspecified, set to 0 characters for static data sources and 3
2290+
# characters for external data sources. [Developer Preview](https://developers.
2291+
# google.com/workspace/preview).
2292+
# Corresponds to the JSON property `multiSelectMinQueryLength`
2293+
# @return [Fixnum]
2294+
attr_accessor :multi_select_min_query_length
2295+
22102296
# The name that identifies the selection input in a form input event. For
22112297
# details about working with form inputs, see [Receive form data](https://
22122298
# developers.google.com/chat/how-tos/dialogs#receive_form_data_from_dialogs).
@@ -2221,6 +2307,15 @@ class GoogleAppsCardV1SelectionInput
22212307
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
22222308
attr_accessor :on_change_action
22232309

2310+
# Chat apps only. For a `SelectionInput` widget that uses a multi-select menu,
2311+
# the data from a [Google Workspace host application](https://developers.google.
2312+
# com/chat/api/reference/rest/v1/HostApp). Used to populate the items in the
2313+
# multi-select menu. [Developer Preview](https://developers.google.com/workspace/
2314+
# preview).
2315+
# Corresponds to the JSON property `platformDataSource`
2316+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1PlatformDataSource]
2317+
attr_accessor :platform_data_source
2318+
22242319
# The type of items that are displayed to users in a `SelectionInput` widget.
22252320
# Selection types support different types of interactions. For example, users
22262321
# can select one or more checkboxes, but they can only select one value from a
@@ -2235,10 +2330,14 @@ def initialize(**args)
22352330

22362331
# Update properties of this object
22372332
def update!(**args)
2333+
@external_data_source = args[:external_data_source] if args.key?(:external_data_source)
22382334
@items = args[:items] if args.key?(:items)
22392335
@label = args[:label] if args.key?(:label)
2336+
@multi_select_max_selected_items = args[:multi_select_max_selected_items] if args.key?(:multi_select_max_selected_items)
2337+
@multi_select_min_query_length = args[:multi_select_min_query_length] if args.key?(:multi_select_min_query_length)
22402338
@name = args[:name] if args.key?(:name)
22412339
@on_change_action = args[:on_change_action] if args.key?(:on_change_action)
2340+
@platform_data_source = args[:platform_data_source] if args.key?(:platform_data_source)
22422341
@type = args[:type] if args.key?(:type)
22432342
end
22442343
end
@@ -2248,6 +2347,13 @@ def update!(**args)
22482347
class GoogleAppsCardV1SelectionItem
22492348
include Google::Apis::Core::Hashable
22502349

2350+
# For multi-select menus, a text description or label that's displayed below the
2351+
# item's `text` field. [Developer Preview](https://developers.google.com/
2352+
# workspace/preview).
2353+
# Corresponds to the JSON property `bottomText`
2354+
# @return [String]
2355+
attr_accessor :bottom_text
2356+
22512357
# Whether the item is selected by default. If the selection input only accepts
22522358
# one value (such as for radio buttons or a dropdown menu), only set this field
22532359
# for one item.
@@ -2256,6 +2362,14 @@ class GoogleAppsCardV1SelectionItem
22562362
attr_accessor :selected
22572363
alias_method :selected?, :selected
22582364

2365+
# For multi-select menus, the URL for the icon displayed next to the item's `
2366+
# text` field. Supports PNG and JPEG files. Must be an `HTTPS` URL. For example,
2367+
# `https://developers.google.com/chat/images/quickstart-app-avatar.png`. [
2368+
# Developer Preview](https://developers.google.com/workspace/preview).
2369+
# Corresponds to the JSON property `startIconUri`
2370+
# @return [String]
2371+
attr_accessor :start_icon_uri
2372+
22592373
# The text that identifies or describes the item to users.
22602374
# Corresponds to the JSON property `text`
22612375
# @return [String]
@@ -2275,7 +2389,9 @@ def initialize(**args)
22752389

22762390
# Update properties of this object
22772391
def update!(**args)
2392+
@bottom_text = args[:bottom_text] if args.key?(:bottom_text)
22782393
@selected = args[:selected] if args.key?(:selected)
2394+
@start_icon_uri = args[:start_icon_uri] if args.key?(:start_icon_uri)
22792395
@text = args[:text] if args.key?(:text)
22802396
@value = args[:value] if args.key?(:value)
22812397
end
@@ -2697,6 +2813,30 @@ def update!(**args)
26972813
end
26982814
end
26992815

2816+
# Chat apps only. For a `SelectionInput` widget that uses a multi-select menu, a
2817+
# data source from a Google Workspace host application. [Developer Preview](
2818+
# https://developers.google.com/workspace/preview).
2819+
class HostAppDataSourceMarkup
2820+
include Google::Apis::Core::Hashable
2821+
2822+
# Chat apps only. For a `SelectionInput` widget that uses a multi-select menu, a
2823+
# data source from Google Chat. For example, a list of Google Chat spaces of
2824+
# which the user is a member. [Developer Preview](https://developers.google.com/
2825+
# workspace/preview).
2826+
# Corresponds to the JSON property `chatDataSource`
2827+
# @return [Google::Apis::ChatV1::ChatClientDataSourceMarkup]
2828+
attr_accessor :chat_data_source
2829+
2830+
def initialize(**args)
2831+
update!(**args)
2832+
end
2833+
2834+
# Update properties of this object
2835+
def update!(**args)
2836+
@chat_data_source = args[:chat_data_source] if args.key?(:chat_data_source)
2837+
end
2838+
end
2839+
27002840
# An image that's specified by a URL and can have an `onclick` action.
27012841
class Image
27022842
include Google::Apis::Core::Hashable
@@ -3598,6 +3738,29 @@ def update!(**args)
35983738
end
35993739
end
36003740

3741+
# A data source representing a Google Chat space. Format: spaces/`space` [
3742+
# Developer Preview](https://developers.google.com/workspace/preview).
3743+
class SpaceDataSource
3744+
include Google::Apis::Core::Hashable
3745+
3746+
# When `true`, uses the card's Google Chat space as the default selection. The
3747+
# default value is `false`. [Developer Preview](https://developers.google.com/
3748+
# workspace/preview).
3749+
# Corresponds to the JSON property `defaultToCurrentSpace`
3750+
# @return [Boolean]
3751+
attr_accessor :default_to_current_space
3752+
alias_method :default_to_current_space?, :default_to_current_space
3753+
3754+
def initialize(**args)
3755+
update!(**args)
3756+
end
3757+
3758+
# Update properties of this object
3759+
def update!(**args)
3760+
@default_to_current_space = args[:default_to_current_space] if args.key?(:default_to_current_space)
3761+
end
3762+
end
3763+
36013764
# Details about the space including description and rules.
36023765
class SpaceDetails
36033766
include Google::Apis::Core::Hashable

generated/google-apis-chat_v1/lib/google/apis/chat_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ChatV1
1818
# Version of the google-apis-chat_v1 gem
19-
GEM_VERSION = "0.64.0"
19+
GEM_VERSION = "0.65.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.12.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20230704"
25+
REVISION = "20230711"
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)