@@ -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
0 commit comments