google-apis-chat_v1 0.113.0 → 0.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/chat_v1/classes.rb +364 -139
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +69 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b9524209e3871733251b50fd873d78cb28da4b9d4bbb9032da574c0759dc5a5
|
4
|
+
data.tar.gz: b2adf31b52e453ccdf5a6bd34593eee93008ae1121744c10108868f6de762d85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac02a2472f19d6eac8b12f7400a99021a9591f6c87296d18b6c056f178b14d4b514320734611290a204da1858be227a14bc7d661edc18ebd019ba7ae065917d3
|
7
|
+
data.tar.gz: d2c25d1f1e64ecc20fd9f27990d5235fb174c407d7d7556959f3945ab0b376ae07780ea3ac18f71239f845aaccc834a6962dbd4462e877d61034a5c84247e063
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-chat_v1
|
2
2
|
|
3
|
+
### v0.115.0 (2025-01-05)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241229
|
6
|
+
|
7
|
+
### v0.114.0 (2024-12-15)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20241210
|
10
|
+
|
3
11
|
### v0.113.0 (2024-12-08)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20241203
|
@@ -500,21 +500,24 @@ module Google
|
|
500
500
|
# components of a card or dialog](https://developers.google.com/workspace/chat/
|
501
501
|
# design-components-card-dialog). * For Google Workspace Add-ons, see [Card-
|
502
502
|
# based interfaces](https://developers.google.com/apps-script/add-ons/concepts/
|
503
|
-
# cards).
|
504
|
-
#
|
505
|
-
#
|
506
|
-
#
|
507
|
-
#
|
508
|
-
#
|
509
|
-
#
|
510
|
-
#
|
511
|
-
#
|
512
|
-
#
|
513
|
-
# "
|
514
|
-
#
|
515
|
-
#
|
516
|
-
#
|
517
|
-
#
|
503
|
+
# cards). Note: You can add up to 100 widgets per card. Any widgets beyond this
|
504
|
+
# limit are ignored. This limit applies to both card messages and dialogs in
|
505
|
+
# Google Chat apps, and to cards in Google Workspace Add-ons. **Example: Card
|
506
|
+
# message for a Google Chat app**  To create the sample
|
508
|
+
# card message in Google Chat, use the following JSON: ``` ` "cardsV2": [ ` "
|
509
|
+
# cardId": "unique-card-id", "card": ` "header": ` "title": "Sasha", "subtitle":
|
510
|
+
# "Software Engineer", "imageUrl": "https://developers.google.com/workspace/chat/
|
511
|
+
# images/quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText": "
|
512
|
+
# Avatar for Sasha" `, "sections": [ ` "header": "Contact Info", "collapsible":
|
513
|
+
# true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "
|
514
|
+
# startIcon": ` "knownIcon": "EMAIL" `, "text": "sasha@example.com" ` `, ` "
|
515
|
+
# decoratedText": ` "startIcon": ` "knownIcon": "PERSON" `, "text": "Online" ` `,
|
516
|
+
# ` "decoratedText": ` "startIcon": ` "knownIcon": "PHONE" `, "text": "+1 (555)
|
517
|
+
# 555-1234" ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "onClick": ` "
|
518
|
+
# openLink": ` "url": "https://example.com/share" ` ` `, ` "text": "Edit", "
|
519
|
+
# onClick": ` "action": ` "function": "goToView", "parameters": [ ` "key": "
|
520
|
+
# viewType", "value": "EDIT" ` ] ` ` ` ] ` ` ] ` ] ` ` ] ` ```
|
518
521
|
# Corresponds to the JSON property `card`
|
519
522
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
|
520
523
|
attr_accessor :card
|
@@ -1045,21 +1048,24 @@ module Google
|
|
1045
1048
|
# components of a card or dialog](https://developers.google.com/workspace/chat/
|
1046
1049
|
# design-components-card-dialog). * For Google Workspace Add-ons, see [Card-
|
1047
1050
|
# based interfaces](https://developers.google.com/apps-script/add-ons/concepts/
|
1048
|
-
# cards).
|
1049
|
-
#
|
1050
|
-
#
|
1051
|
-
#
|
1052
|
-
#
|
1053
|
-
#
|
1054
|
-
#
|
1055
|
-
#
|
1056
|
-
#
|
1057
|
-
#
|
1058
|
-
# "
|
1059
|
-
#
|
1060
|
-
#
|
1061
|
-
#
|
1062
|
-
#
|
1051
|
+
# cards). Note: You can add up to 100 widgets per card. Any widgets beyond this
|
1052
|
+
# limit are ignored. This limit applies to both card messages and dialogs in
|
1053
|
+
# Google Chat apps, and to cards in Google Workspace Add-ons. **Example: Card
|
1054
|
+
# message for a Google Chat app**  To create the sample
|
1056
|
+
# card message in Google Chat, use the following JSON: ``` ` "cardsV2": [ ` "
|
1057
|
+
# cardId": "unique-card-id", "card": ` "header": ` "title": "Sasha", "subtitle":
|
1058
|
+
# "Software Engineer", "imageUrl": "https://developers.google.com/workspace/chat/
|
1059
|
+
# images/quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText": "
|
1060
|
+
# Avatar for Sasha" `, "sections": [ ` "header": "Contact Info", "collapsible":
|
1061
|
+
# true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "
|
1062
|
+
# startIcon": ` "knownIcon": "EMAIL" `, "text": "sasha@example.com" ` `, ` "
|
1063
|
+
# decoratedText": ` "startIcon": ` "knownIcon": "PERSON" `, "text": "Online" ` `,
|
1064
|
+
# ` "decoratedText": ` "startIcon": ` "knownIcon": "PHONE" `, "text": "+1 (555)
|
1065
|
+
# 555-1234" ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "onClick": ` "
|
1066
|
+
# openLink": ` "url": "https://example.com/share" ` ` `, ` "text": "Edit", "
|
1067
|
+
# onClick": ` "action": ` "function": "goToView", "parameters": [ ` "key": "
|
1068
|
+
# viewType", "value": "EDIT" ` ] ` ` ` ] ` ` ] ` ] ` ` ] ` ```
|
1063
1069
|
# Corresponds to the JSON property `body`
|
1064
1070
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
|
1065
1071
|
attr_accessor :body
|
@@ -1247,6 +1253,14 @@ module Google
|
|
1247
1253
|
class GoogleAppsCardV1Action
|
1248
1254
|
include Google::Apis::Core::Hashable
|
1249
1255
|
|
1256
|
+
# Optional. If this is true, then all widgets are considered required by this
|
1257
|
+
# action. [Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
1258
|
+
# workspace/extend):
|
1259
|
+
# Corresponds to the JSON property `allWidgetsAreRequired`
|
1260
|
+
# @return [Boolean]
|
1261
|
+
attr_accessor :all_widgets_are_required
|
1262
|
+
alias_method :all_widgets_are_required?, :all_widgets_are_required
|
1263
|
+
|
1250
1264
|
# A custom function to invoke when the containing element is clicked or
|
1251
1265
|
# otherwise activated. For example usage, see [Read form data](https://
|
1252
1266
|
# developers.google.com/workspace/chat/read-form-data).
|
@@ -1299,17 +1313,27 @@ module Google
|
|
1299
1313
|
attr_accessor :persist_values
|
1300
1314
|
alias_method :persist_values?, :persist_values
|
1301
1315
|
|
1316
|
+
# Optional. Fill this list with the names of widgets that this Action needs for
|
1317
|
+
# a valid submission. If the widgets listed here don't have a value when this
|
1318
|
+
# Action is invoked, the form submission is aborted. [Google Workspace Add-ons
|
1319
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
1320
|
+
# Corresponds to the JSON property `requiredWidgets`
|
1321
|
+
# @return [Array<String>]
|
1322
|
+
attr_accessor :required_widgets
|
1323
|
+
|
1302
1324
|
def initialize(**args)
|
1303
1325
|
update!(**args)
|
1304
1326
|
end
|
1305
1327
|
|
1306
1328
|
# Update properties of this object
|
1307
1329
|
def update!(**args)
|
1330
|
+
@all_widgets_are_required = args[:all_widgets_are_required] if args.key?(:all_widgets_are_required)
|
1308
1331
|
@function = args[:function] if args.key?(:function)
|
1309
1332
|
@interaction = args[:interaction] if args.key?(:interaction)
|
1310
1333
|
@load_indicator = args[:load_indicator] if args.key?(:load_indicator)
|
1311
1334
|
@parameters = args[:parameters] if args.key?(:parameters)
|
1312
1335
|
@persist_values = args[:persist_values] if args.key?(:persist_values)
|
1336
|
+
@required_widgets = args[:required_widgets] if args.key?(:required_widgets)
|
1313
1337
|
end
|
1314
1338
|
end
|
1315
1339
|
|
@@ -1520,8 +1544,7 @@ module Google
|
|
1520
1544
|
|
1521
1545
|
# Optional. The type of a button. If unset, button type defaults to `OUTLINED`.
|
1522
1546
|
# If the `color` field is set, the button type is forced to `FILLED` and any
|
1523
|
-
# value set for this field is ignored.
|
1524
|
-
# google.com/workspace/chat):
|
1547
|
+
# value set for this field is ignored.
|
1525
1548
|
# Corresponds to the JSON property `type`
|
1526
1549
|
# @return [String]
|
1527
1550
|
attr_accessor :type
|
@@ -1573,21 +1596,24 @@ module Google
|
|
1573
1596
|
# components of a card or dialog](https://developers.google.com/workspace/chat/
|
1574
1597
|
# design-components-card-dialog). * For Google Workspace Add-ons, see [Card-
|
1575
1598
|
# based interfaces](https://developers.google.com/apps-script/add-ons/concepts/
|
1576
|
-
# cards).
|
1577
|
-
#
|
1578
|
-
#
|
1579
|
-
#
|
1580
|
-
#
|
1581
|
-
#
|
1582
|
-
#
|
1583
|
-
#
|
1584
|
-
#
|
1585
|
-
#
|
1586
|
-
# "
|
1587
|
-
#
|
1588
|
-
#
|
1589
|
-
#
|
1590
|
-
#
|
1599
|
+
# cards). Note: You can add up to 100 widgets per card. Any widgets beyond this
|
1600
|
+
# limit are ignored. This limit applies to both card messages and dialogs in
|
1601
|
+
# Google Chat apps, and to cards in Google Workspace Add-ons. **Example: Card
|
1602
|
+
# message for a Google Chat app**  To create the sample
|
1604
|
+
# card message in Google Chat, use the following JSON: ``` ` "cardsV2": [ ` "
|
1605
|
+
# cardId": "unique-card-id", "card": ` "header": ` "title": "Sasha", "subtitle":
|
1606
|
+
# "Software Engineer", "imageUrl": "https://developers.google.com/workspace/chat/
|
1607
|
+
# images/quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText": "
|
1608
|
+
# Avatar for Sasha" `, "sections": [ ` "header": "Contact Info", "collapsible":
|
1609
|
+
# true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "
|
1610
|
+
# startIcon": ` "knownIcon": "EMAIL" `, "text": "sasha@example.com" ` `, ` "
|
1611
|
+
# decoratedText": ` "startIcon": ` "knownIcon": "PERSON" `, "text": "Online" ` `,
|
1612
|
+
# ` "decoratedText": ` "startIcon": ` "knownIcon": "PHONE" `, "text": "+1 (555)
|
1613
|
+
# 555-1234" ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "onClick": ` "
|
1614
|
+
# openLink": ` "url": "https://example.com/share" ` ` `, ` "text": "Edit", "
|
1615
|
+
# onClick": ` "action": ` "function": "goToView", "parameters": [ ` "key": "
|
1616
|
+
# viewType", "value": "EDIT" ` ] ` ` ` ] ` ` ] ` ] ` ` ] ` ```
|
1591
1617
|
class GoogleAppsCardV1Card
|
1592
1618
|
include Google::Apis::Core::Hashable
|
1593
1619
|
|
@@ -1798,8 +1824,64 @@ module Google
|
|
1798
1824
|
end
|
1799
1825
|
end
|
1800
1826
|
|
1801
|
-
#
|
1802
|
-
#
|
1827
|
+
# [Developer Preview](https://developers.google.com/workspace/preview): A
|
1828
|
+
# carousel, also known as a slider, rotates and displays a list of widgets in a
|
1829
|
+
# slideshow format, with buttons navigating to the previous or next widget. For
|
1830
|
+
# example, this is a JSON representation of a carousel that contains three text
|
1831
|
+
# paragraph widgets. ``` ` "carouselCards": [ ` "widgets": [ ` "textParagraph": `
|
1832
|
+
# "text": "First text paragraph in carousel", ` ` ] `, ` "widgets": [ ` "
|
1833
|
+
# textParagraph": ` "text": "Second text paragraph in carousel", ` ` ] `, ` "
|
1834
|
+
# widgets": [ ` "textParagraph": ` "text": "Third text paragraph in carousel", `
|
1835
|
+
# ` ] ` ] ` ``` [Google Chat apps](https://developers.google.com/workspace/chat):
|
1836
|
+
class GoogleAppsCardV1Carousel
|
1837
|
+
include Google::Apis::Core::Hashable
|
1838
|
+
|
1839
|
+
# A list of cards included in the carousel.
|
1840
|
+
# Corresponds to the JSON property `carouselCards`
|
1841
|
+
# @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1CarouselCard>]
|
1842
|
+
attr_accessor :carousel_cards
|
1843
|
+
|
1844
|
+
def initialize(**args)
|
1845
|
+
update!(**args)
|
1846
|
+
end
|
1847
|
+
|
1848
|
+
# Update properties of this object
|
1849
|
+
def update!(**args)
|
1850
|
+
@carousel_cards = args[:carousel_cards] if args.key?(:carousel_cards)
|
1851
|
+
end
|
1852
|
+
end
|
1853
|
+
|
1854
|
+
# [Developer Preview](https://developers.google.com/workspace/preview): A card
|
1855
|
+
# that can be displayed as a carousel item. [Google Chat apps](https://
|
1856
|
+
# developers.google.com/workspace/chat):
|
1857
|
+
class GoogleAppsCardV1CarouselCard
|
1858
|
+
include Google::Apis::Core::Hashable
|
1859
|
+
|
1860
|
+
# A list of widgets displayed at the bottom of the carousel card. The widgets
|
1861
|
+
# are displayed in the order that they are specified.
|
1862
|
+
# Corresponds to the JSON property `footerWidgets`
|
1863
|
+
# @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1NestedWidget>]
|
1864
|
+
attr_accessor :footer_widgets
|
1865
|
+
|
1866
|
+
# A list of widgets displayed in the carousel card. The widgets are displayed in
|
1867
|
+
# the order that they are specified.
|
1868
|
+
# Corresponds to the JSON property `widgets`
|
1869
|
+
# @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1NestedWidget>]
|
1870
|
+
attr_accessor :widgets
|
1871
|
+
|
1872
|
+
def initialize(**args)
|
1873
|
+
update!(**args)
|
1874
|
+
end
|
1875
|
+
|
1876
|
+
# Update properties of this object
|
1877
|
+
def update!(**args)
|
1878
|
+
@footer_widgets = args[:footer_widgets] if args.key?(:footer_widgets)
|
1879
|
+
@widgets = args[:widgets] if args.key?(:widgets)
|
1880
|
+
end
|
1881
|
+
end
|
1882
|
+
|
1883
|
+
# A text, icon, or text and icon chip that users can click. [Google Workspace
|
1884
|
+
# Add-ons and Chat apps](https://developers.google.com/workspace/extend):
|
1803
1885
|
class GoogleAppsCardV1Chip
|
1804
1886
|
include Google::Apis::Core::Hashable
|
1805
1887
|
|
@@ -1864,8 +1946,8 @@ module Google
|
|
1864
1946
|
end
|
1865
1947
|
|
1866
1948
|
# A list of chips layed out horizontally, which can either scroll horizontally
|
1867
|
-
# or wrap to the next line. [Google Chat apps](https://
|
1868
|
-
# workspace/
|
1949
|
+
# or wrap to the next line. [Google Workspace Add-ons and Chat apps](https://
|
1950
|
+
# developers.google.com/workspace/extend):
|
1869
1951
|
class GoogleAppsCardV1ChipList
|
1870
1952
|
include Google::Apis::Core::Hashable
|
1871
1953
|
|
@@ -1890,8 +1972,8 @@ module Google
|
|
1890
1972
|
end
|
1891
1973
|
end
|
1892
1974
|
|
1893
|
-
# Represent an expand and collapse control. [Google Chat
|
1894
|
-
# developers.google.com/workspace/
|
1975
|
+
# Represent an expand and collapse control. [Google Workspace Add-ons and Chat
|
1976
|
+
# apps](https://developers.google.com/workspace/extend):
|
1895
1977
|
class GoogleAppsCardV1CollapseControl
|
1896
1978
|
include Google::Apis::Core::Hashable
|
1897
1979
|
|
@@ -2010,14 +2092,16 @@ module Google
|
|
2010
2092
|
end
|
2011
2093
|
end
|
2012
2094
|
|
2013
|
-
# Lets users input a date, a time, or both a date and a time.
|
2014
|
-
#
|
2015
|
-
#
|
2016
|
-
#
|
2017
|
-
#
|
2018
|
-
#
|
2019
|
-
#
|
2020
|
-
#
|
2095
|
+
# Lets users input a date, a time, or both a date and a time. Supports form
|
2096
|
+
# submission validation. When `Action.all_widgets_are_required` is set to `true`
|
2097
|
+
# or this widget is specified in `Action.required_widgets`, the submission
|
2098
|
+
# action is blocked unless a value is selected. For an example in Google Chat
|
2099
|
+
# apps, see [Let a user pick a date and time](https://developers.google.com/
|
2100
|
+
# workspace/chat/design-interactive-card-dialog#let_a_user_pick_a_date_and_time).
|
2101
|
+
# Users can input text or use the picker to select dates and times. If users
|
2102
|
+
# input an invalid date or time, the picker shows an error that prompts users to
|
2103
|
+
# input the information correctly. [Google Workspace Add-ons and Chat apps](
|
2104
|
+
# https://developers.google.com/workspace/extend):
|
2021
2105
|
class GoogleAppsCardV1DateTimePicker
|
2022
2106
|
include Google::Apis::Core::Hashable
|
2023
2107
|
|
@@ -2554,6 +2638,54 @@ module Google
|
|
2554
2638
|
end
|
2555
2639
|
end
|
2556
2640
|
|
2641
|
+
# [Developer Preview](https://developers.google.com/workspace/preview): A list
|
2642
|
+
# of widgets that can be displayed in a containing layout, such as a `
|
2643
|
+
# CarouselCard`. [Google Chat apps](https://developers.google.com/workspace/chat)
|
2644
|
+
# :
|
2645
|
+
class GoogleAppsCardV1NestedWidget
|
2646
|
+
include Google::Apis::Core::Hashable
|
2647
|
+
|
2648
|
+
# A list of buttons layed out horizontally. For an example in Google Chat apps,
|
2649
|
+
# see [Add a button](https://developers.google.com/workspace/chat/design-
|
2650
|
+
# interactive-card-dialog#add_a_button). [Google Workspace Add-ons and Chat apps]
|
2651
|
+
# (https://developers.google.com/workspace/extend):
|
2652
|
+
# Corresponds to the JSON property `buttonList`
|
2653
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ButtonList]
|
2654
|
+
attr_accessor :button_list
|
2655
|
+
|
2656
|
+
# An image that is specified by a URL and can have an `onClick` action. For an
|
2657
|
+
# example, see [Add an image](https://developers.google.com/workspace/chat/add-
|
2658
|
+
# text-image-card-dialog#add_an_image). [Google Workspace Add-ons and Chat apps](
|
2659
|
+
# https://developers.google.com/workspace/extend):
|
2660
|
+
# Corresponds to the JSON property `image`
|
2661
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Image]
|
2662
|
+
attr_accessor :image
|
2663
|
+
|
2664
|
+
# A paragraph of text that supports formatting. For an example in Google Chat
|
2665
|
+
# apps, see [Add a paragraph of formatted text](https://developers.google.com/
|
2666
|
+
# workspace/chat/add-text-image-card-dialog#add_a_paragraph_of_formatted_text).
|
2667
|
+
# For more information about formatting text, see [Formatting text in Google
|
2668
|
+
# Chat apps](https://developers.google.com/workspace/chat/format-messages#card-
|
2669
|
+
# formatting) and [Formatting text in Google Workspace Add-ons](https://
|
2670
|
+
# developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). [
|
2671
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
2672
|
+
# workspace/extend):
|
2673
|
+
# Corresponds to the JSON property `textParagraph`
|
2674
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph]
|
2675
|
+
attr_accessor :text_paragraph
|
2676
|
+
|
2677
|
+
def initialize(**args)
|
2678
|
+
update!(**args)
|
2679
|
+
end
|
2680
|
+
|
2681
|
+
# Update properties of this object
|
2682
|
+
def update!(**args)
|
2683
|
+
@button_list = args[:button_list] if args.key?(:button_list)
|
2684
|
+
@image = args[:image] if args.key?(:image)
|
2685
|
+
@text_paragraph = args[:text_paragraph] if args.key?(:text_paragraph)
|
2686
|
+
end
|
2687
|
+
end
|
2688
|
+
|
2557
2689
|
# Represents how to respond when users click an interactive element on a card,
|
2558
2690
|
# such as a button. [Google Workspace Add-ons and Chat apps](https://developers.
|
2559
2691
|
# google.com/workspace/extend):
|
@@ -2577,21 +2709,24 @@ module Google
|
|
2577
2709
|
# components of a card or dialog](https://developers.google.com/workspace/chat/
|
2578
2710
|
# design-components-card-dialog). * For Google Workspace Add-ons, see [Card-
|
2579
2711
|
# based interfaces](https://developers.google.com/apps-script/add-ons/concepts/
|
2580
|
-
# cards).
|
2581
|
-
#
|
2582
|
-
#
|
2583
|
-
#
|
2584
|
-
#
|
2585
|
-
#
|
2586
|
-
#
|
2587
|
-
#
|
2588
|
-
#
|
2589
|
-
#
|
2590
|
-
# "
|
2591
|
-
#
|
2592
|
-
#
|
2593
|
-
#
|
2594
|
-
#
|
2712
|
+
# cards). Note: You can add up to 100 widgets per card. Any widgets beyond this
|
2713
|
+
# limit are ignored. This limit applies to both card messages and dialogs in
|
2714
|
+
# Google Chat apps, and to cards in Google Workspace Add-ons. **Example: Card
|
2715
|
+
# message for a Google Chat app**  To create the sample
|
2717
|
+
# card message in Google Chat, use the following JSON: ``` ` "cardsV2": [ ` "
|
2718
|
+
# cardId": "unique-card-id", "card": ` "header": ` "title": "Sasha", "subtitle":
|
2719
|
+
# "Software Engineer", "imageUrl": "https://developers.google.com/workspace/chat/
|
2720
|
+
# images/quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText": "
|
2721
|
+
# Avatar for Sasha" `, "sections": [ ` "header": "Contact Info", "collapsible":
|
2722
|
+
# true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "
|
2723
|
+
# startIcon": ` "knownIcon": "EMAIL" `, "text": "sasha@example.com" ` `, ` "
|
2724
|
+
# decoratedText": ` "startIcon": ` "knownIcon": "PERSON" `, "text": "Online" ` `,
|
2725
|
+
# ` "decoratedText": ` "startIcon": ` "knownIcon": "PHONE" `, "text": "+1 (555)
|
2726
|
+
# 555-1234" ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "onClick": ` "
|
2727
|
+
# openLink": ` "url": "https://example.com/share" ` ` `, ` "text": "Edit", "
|
2728
|
+
# onClick": ` "action": ` "function": "goToView", "parameters": [ ` "key": "
|
2729
|
+
# viewType", "value": "EDIT" ` ] ` ` ` ] ` ` ] ` ] ` ` ] ` ```
|
2595
2730
|
# Corresponds to the JSON property `card`
|
2596
2731
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
|
2597
2732
|
attr_accessor :card
|
@@ -2614,7 +2749,8 @@ module Google
|
|
2614
2749
|
# invoke. For example, showing non-primary actions in a card. You can use this
|
2615
2750
|
# widget when actions don't fit in the available space. To use, specify this
|
2616
2751
|
# widget in the `OnClick` action of widgets that support it. For example, in a `
|
2617
|
-
# Button`. [Google Chat apps](https://developers.google.
|
2752
|
+
# Button`. [Google Workspace Add-ons and Chat apps](https://developers.google.
|
2753
|
+
# com/workspace/extend):
|
2618
2754
|
# Corresponds to the JSON property `overflowMenu`
|
2619
2755
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1OverflowMenu]
|
2620
2756
|
attr_accessor :overflow_menu
|
@@ -2672,7 +2808,8 @@ module Google
|
|
2672
2808
|
# invoke. For example, showing non-primary actions in a card. You can use this
|
2673
2809
|
# widget when actions don't fit in the available space. To use, specify this
|
2674
2810
|
# widget in the `OnClick` action of widgets that support it. For example, in a `
|
2675
|
-
# Button`. [Google Chat apps](https://developers.google.
|
2811
|
+
# Button`. [Google Workspace Add-ons and Chat apps](https://developers.google.
|
2812
|
+
# com/workspace/extend):
|
2676
2813
|
class GoogleAppsCardV1OverflowMenu
|
2677
2814
|
include Google::Apis::Core::Hashable
|
2678
2815
|
|
@@ -2691,8 +2828,8 @@ module Google
|
|
2691
2828
|
end
|
2692
2829
|
end
|
2693
2830
|
|
2694
|
-
# An option that users can invoke in an overflow menu. [Google
|
2695
|
-
#
|
2831
|
+
# An option that users can invoke in an overflow menu. [Google Workspace Add-ons
|
2832
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
2696
2833
|
class GoogleAppsCardV1OverflowMenuItem
|
2697
2834
|
include Google::Apis::Core::Hashable
|
2698
2835
|
|
@@ -2775,8 +2912,8 @@ module Google
|
|
2775
2912
|
class GoogleAppsCardV1Section
|
2776
2913
|
include Google::Apis::Core::Hashable
|
2777
2914
|
|
2778
|
-
# Represent an expand and collapse control. [Google Chat
|
2779
|
-
# developers.google.com/workspace/
|
2915
|
+
# Represent an expand and collapse control. [Google Workspace Add-ons and Chat
|
2916
|
+
# apps](https://developers.google.com/workspace/extend):
|
2780
2917
|
# Corresponds to the JSON property `collapseControl`
|
2781
2918
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1CollapseControl]
|
2782
2919
|
attr_accessor :collapse_control
|
@@ -2829,16 +2966,19 @@ module Google
|
|
2829
2966
|
end
|
2830
2967
|
end
|
2831
2968
|
|
2832
|
-
# A widget that creates one or more UI items that users can select.
|
2833
|
-
#
|
2834
|
-
#
|
2835
|
-
#
|
2836
|
-
#
|
2837
|
-
#
|
2838
|
-
#
|
2839
|
-
# .
|
2840
|
-
#
|
2841
|
-
# workspace/
|
2969
|
+
# A widget that creates one or more UI items that users can select. Supports
|
2970
|
+
# form submission validation for `dropdown` and `multiselect` menus only. When `
|
2971
|
+
# Action.all_widgets_are_required` is set to `true` or this widget is specified
|
2972
|
+
# in `Action.required_widgets`, the submission action is blocked unless a value
|
2973
|
+
# is selected. For example, a dropdown menu or checkboxes. You can use this
|
2974
|
+
# widget to collect data that can be predicted or enumerated. For an example in
|
2975
|
+
# Google Chat apps, see [Add selectable UI elements](/workspace/chat/design-
|
2976
|
+
# interactive-card-dialog#add_selectable_ui_elements). Chat apps can process the
|
2977
|
+
# value of items that users select or input. For details about working with form
|
2978
|
+
# inputs, see [Receive form data](https://developers.google.com/workspace/chat/
|
2979
|
+
# read-form-data). To collect undefined or abstract data from users, use the
|
2980
|
+
# TextInput widget. [Google Workspace Add-ons and Chat apps](https://developers.
|
2981
|
+
# google.com/workspace/extend):
|
2842
2982
|
class GoogleAppsCardV1SelectionInput
|
2843
2983
|
include Google::Apis::Core::Hashable
|
2844
2984
|
|
@@ -3089,7 +3229,10 @@ module Google
|
|
3089
3229
|
end
|
3090
3230
|
|
3091
3231
|
# A field in which users can enter text. Supports suggestions and on-change
|
3092
|
-
# actions.
|
3232
|
+
# actions. Supports form submission validation. When `Action.
|
3233
|
+
# all_widgets_are_required` is set to `true` or this widget is specified in `
|
3234
|
+
# Action.required_widgets`, the submission action is blocked unless a value is
|
3235
|
+
# entered. For an example in Google Chat apps, see [Add a field in which a user
|
3093
3236
|
# can enter text](https://developers.google.com/workspace/chat/design-
|
3094
3237
|
# interactive-card-dialog#add_a_field_in_which_a_user_can_enter_text). Chat apps
|
3095
3238
|
# receive and can process the value of entered text during form input events.
|
@@ -3168,6 +3311,13 @@ module Google
|
|
3168
3311
|
# @return [String]
|
3169
3312
|
attr_accessor :type
|
3170
3313
|
|
3314
|
+
# Represents the necessary data for validating the widget it's attached to. [
|
3315
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
3316
|
+
# workspace/extend):
|
3317
|
+
# Corresponds to the JSON property `validation`
|
3318
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Validation]
|
3319
|
+
attr_accessor :validation
|
3320
|
+
|
3171
3321
|
# The value entered by a user, returned as part of a form input event. For
|
3172
3322
|
# details about working with form inputs, see [Receive form data](https://
|
3173
3323
|
# developers.google.com/workspace/chat/read-form-data).
|
@@ -3189,6 +3339,7 @@ module Google
|
|
3189
3339
|
@on_change_action = args[:on_change_action] if args.key?(:on_change_action)
|
3190
3340
|
@placeholder_text = args[:placeholder_text] if args.key?(:placeholder_text)
|
3191
3341
|
@type = args[:type] if args.key?(:type)
|
3342
|
+
@validation = args[:validation] if args.key?(:validation)
|
3192
3343
|
@value = args[:value] if args.key?(:value)
|
3193
3344
|
end
|
3194
3345
|
end
|
@@ -3210,8 +3361,7 @@ module Google
|
|
3210
3361
|
# concealed behind a **show more** button. If the text is equal or shorter than
|
3211
3362
|
# the specified maximum number of lines, a **show more** button isn't displayed.
|
3212
3363
|
# The default value is 0, in which case all context is displayed. Negative
|
3213
|
-
# values are ignored.
|
3214
|
-
# chat):
|
3364
|
+
# values are ignored.
|
3215
3365
|
# Corresponds to the JSON property `maxLines`
|
3216
3366
|
# @return [Fixnum]
|
3217
3367
|
attr_accessor :max_lines
|
@@ -3232,6 +3382,36 @@ module Google
|
|
3232
3382
|
end
|
3233
3383
|
end
|
3234
3384
|
|
3385
|
+
# Represents the necessary data for validating the widget it's attached to. [
|
3386
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
3387
|
+
# workspace/extend):
|
3388
|
+
class GoogleAppsCardV1Validation
|
3389
|
+
include Google::Apis::Core::Hashable
|
3390
|
+
|
3391
|
+
# Specify the character limit for text input widgets. Note that this is only
|
3392
|
+
# used for text input and is ignored for other widgets. [Google Workspace Add-
|
3393
|
+
# ons and Chat apps](https://developers.google.com/workspace/extend):
|
3394
|
+
# Corresponds to the JSON property `characterLimit`
|
3395
|
+
# @return [Fixnum]
|
3396
|
+
attr_accessor :character_limit
|
3397
|
+
|
3398
|
+
# Specify the type of the input widgets. [Google Workspace Add-ons and Chat apps]
|
3399
|
+
# (https://developers.google.com/workspace/extend):
|
3400
|
+
# Corresponds to the JSON property `inputType`
|
3401
|
+
# @return [String]
|
3402
|
+
attr_accessor :input_type
|
3403
|
+
|
3404
|
+
def initialize(**args)
|
3405
|
+
update!(**args)
|
3406
|
+
end
|
3407
|
+
|
3408
|
+
# Update properties of this object
|
3409
|
+
def update!(**args)
|
3410
|
+
@character_limit = args[:character_limit] if args.key?(:character_limit)
|
3411
|
+
@input_type = args[:input_type] if args.key?(:input_type)
|
3412
|
+
end
|
3413
|
+
end
|
3414
|
+
|
3235
3415
|
# Each card is made up of widgets. A widget is a composite object that can
|
3236
3416
|
# represent one of text, images, buttons, and other object types.
|
3237
3417
|
class GoogleAppsCardV1Widget
|
@@ -3245,9 +3425,22 @@ module Google
|
|
3245
3425
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ButtonList]
|
3246
3426
|
attr_accessor :button_list
|
3247
3427
|
|
3428
|
+
# [Developer Preview](https://developers.google.com/workspace/preview): A
|
3429
|
+
# carousel, also known as a slider, rotates and displays a list of widgets in a
|
3430
|
+
# slideshow format, with buttons navigating to the previous or next widget. For
|
3431
|
+
# example, this is a JSON representation of a carousel that contains three text
|
3432
|
+
# paragraph widgets. ``` ` "carouselCards": [ ` "widgets": [ ` "textParagraph": `
|
3433
|
+
# "text": "First text paragraph in carousel", ` ` ] `, ` "widgets": [ ` "
|
3434
|
+
# textParagraph": ` "text": "Second text paragraph in carousel", ` ` ] `, ` "
|
3435
|
+
# widgets": [ ` "textParagraph": ` "text": "Third text paragraph in carousel", `
|
3436
|
+
# ` ] ` ] ` ``` [Google Chat apps](https://developers.google.com/workspace/chat):
|
3437
|
+
# Corresponds to the JSON property `carousel`
|
3438
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Carousel]
|
3439
|
+
attr_accessor :carousel
|
3440
|
+
|
3248
3441
|
# A list of chips layed out horizontally, which can either scroll horizontally
|
3249
|
-
# or wrap to the next line. [Google Chat apps](https://
|
3250
|
-
# workspace/
|
3442
|
+
# or wrap to the next line. [Google Workspace Add-ons and Chat apps](https://
|
3443
|
+
# developers.google.com/workspace/extend):
|
3251
3444
|
# Corresponds to the JSON property `chipList`
|
3252
3445
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ChipList]
|
3253
3446
|
attr_accessor :chip_list
|
@@ -3277,14 +3470,16 @@ module Google
|
|
3277
3470
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Columns]
|
3278
3471
|
attr_accessor :columns
|
3279
3472
|
|
3280
|
-
# Lets users input a date, a time, or both a date and a time.
|
3281
|
-
#
|
3282
|
-
#
|
3283
|
-
#
|
3284
|
-
#
|
3285
|
-
#
|
3286
|
-
#
|
3287
|
-
#
|
3473
|
+
# Lets users input a date, a time, or both a date and a time. Supports form
|
3474
|
+
# submission validation. When `Action.all_widgets_are_required` is set to `true`
|
3475
|
+
# or this widget is specified in `Action.required_widgets`, the submission
|
3476
|
+
# action is blocked unless a value is selected. For an example in Google Chat
|
3477
|
+
# apps, see [Let a user pick a date and time](https://developers.google.com/
|
3478
|
+
# workspace/chat/design-interactive-card-dialog#let_a_user_pick_a_date_and_time).
|
3479
|
+
# Users can input text or use the picker to select dates and times. If users
|
3480
|
+
# input an invalid date or time, the picker shows an error that prompts users to
|
3481
|
+
# input the information correctly. [Google Workspace Add-ons and Chat apps](
|
3482
|
+
# https://developers.google.com/workspace/extend):
|
3288
3483
|
# Corresponds to the JSON property `dateTimePicker`
|
3289
3484
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker]
|
3290
3485
|
attr_accessor :date_time_picker
|
@@ -3341,22 +3536,28 @@ module Google
|
|
3341
3536
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Image]
|
3342
3537
|
attr_accessor :image
|
3343
3538
|
|
3344
|
-
# A widget that creates one or more UI items that users can select.
|
3345
|
-
#
|
3346
|
-
#
|
3347
|
-
#
|
3348
|
-
#
|
3349
|
-
#
|
3350
|
-
#
|
3351
|
-
# .
|
3352
|
-
#
|
3353
|
-
# workspace/
|
3539
|
+
# A widget that creates one or more UI items that users can select. Supports
|
3540
|
+
# form submission validation for `dropdown` and `multiselect` menus only. When `
|
3541
|
+
# Action.all_widgets_are_required` is set to `true` or this widget is specified
|
3542
|
+
# in `Action.required_widgets`, the submission action is blocked unless a value
|
3543
|
+
# is selected. For example, a dropdown menu or checkboxes. You can use this
|
3544
|
+
# widget to collect data that can be predicted or enumerated. For an example in
|
3545
|
+
# Google Chat apps, see [Add selectable UI elements](/workspace/chat/design-
|
3546
|
+
# interactive-card-dialog#add_selectable_ui_elements). Chat apps can process the
|
3547
|
+
# value of items that users select or input. For details about working with form
|
3548
|
+
# inputs, see [Receive form data](https://developers.google.com/workspace/chat/
|
3549
|
+
# read-form-data). To collect undefined or abstract data from users, use the
|
3550
|
+
# TextInput widget. [Google Workspace Add-ons and Chat apps](https://developers.
|
3551
|
+
# google.com/workspace/extend):
|
3354
3552
|
# Corresponds to the JSON property `selectionInput`
|
3355
3553
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1SelectionInput]
|
3356
3554
|
attr_accessor :selection_input
|
3357
3555
|
|
3358
3556
|
# A field in which users can enter text. Supports suggestions and on-change
|
3359
|
-
# actions.
|
3557
|
+
# actions. Supports form submission validation. When `Action.
|
3558
|
+
# all_widgets_are_required` is set to `true` or this widget is specified in `
|
3559
|
+
# Action.required_widgets`, the submission action is blocked unless a value is
|
3560
|
+
# entered. For an example in Google Chat apps, see [Add a field in which a user
|
3360
3561
|
# can enter text](https://developers.google.com/workspace/chat/design-
|
3361
3562
|
# interactive-card-dialog#add_a_field_in_which_a_user_can_enter_text). Chat apps
|
3362
3563
|
# receive and can process the value of entered text during form input events.
|
@@ -3389,6 +3590,7 @@ module Google
|
|
3389
3590
|
# Update properties of this object
|
3390
3591
|
def update!(**args)
|
3391
3592
|
@button_list = args[:button_list] if args.key?(:button_list)
|
3593
|
+
@carousel = args[:carousel] if args.key?(:carousel)
|
3392
3594
|
@chip_list = args[:chip_list] if args.key?(:chip_list)
|
3393
3595
|
@columns = args[:columns] if args.key?(:columns)
|
3394
3596
|
@date_time_picker = args[:date_time_picker] if args.key?(:date_time_picker)
|
@@ -3417,20 +3619,22 @@ module Google
|
|
3417
3619
|
attr_accessor :button_list
|
3418
3620
|
|
3419
3621
|
# A list of chips layed out horizontally, which can either scroll horizontally
|
3420
|
-
# or wrap to the next line. [Google Chat apps](https://
|
3421
|
-
# workspace/
|
3622
|
+
# or wrap to the next line. [Google Workspace Add-ons and Chat apps](https://
|
3623
|
+
# developers.google.com/workspace/extend):
|
3422
3624
|
# Corresponds to the JSON property `chipList`
|
3423
3625
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ChipList]
|
3424
3626
|
attr_accessor :chip_list
|
3425
3627
|
|
3426
|
-
# Lets users input a date, a time, or both a date and a time.
|
3427
|
-
#
|
3428
|
-
#
|
3429
|
-
#
|
3430
|
-
#
|
3431
|
-
#
|
3432
|
-
#
|
3433
|
-
#
|
3628
|
+
# Lets users input a date, a time, or both a date and a time. Supports form
|
3629
|
+
# submission validation. When `Action.all_widgets_are_required` is set to `true`
|
3630
|
+
# or this widget is specified in `Action.required_widgets`, the submission
|
3631
|
+
# action is blocked unless a value is selected. For an example in Google Chat
|
3632
|
+
# apps, see [Let a user pick a date and time](https://developers.google.com/
|
3633
|
+
# workspace/chat/design-interactive-card-dialog#let_a_user_pick_a_date_and_time).
|
3634
|
+
# Users can input text or use the picker to select dates and times. If users
|
3635
|
+
# input an invalid date or time, the picker shows an error that prompts users to
|
3636
|
+
# input the information correctly. [Google Workspace Add-ons and Chat apps](
|
3637
|
+
# https://developers.google.com/workspace/extend):
|
3434
3638
|
# Corresponds to the JSON property `dateTimePicker`
|
3435
3639
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker]
|
3436
3640
|
attr_accessor :date_time_picker
|
@@ -3453,22 +3657,28 @@ module Google
|
|
3453
3657
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Image]
|
3454
3658
|
attr_accessor :image
|
3455
3659
|
|
3456
|
-
# A widget that creates one or more UI items that users can select.
|
3457
|
-
#
|
3458
|
-
#
|
3459
|
-
#
|
3460
|
-
#
|
3461
|
-
#
|
3462
|
-
#
|
3463
|
-
# .
|
3464
|
-
#
|
3465
|
-
# workspace/
|
3660
|
+
# A widget that creates one or more UI items that users can select. Supports
|
3661
|
+
# form submission validation for `dropdown` and `multiselect` menus only. When `
|
3662
|
+
# Action.all_widgets_are_required` is set to `true` or this widget is specified
|
3663
|
+
# in `Action.required_widgets`, the submission action is blocked unless a value
|
3664
|
+
# is selected. For example, a dropdown menu or checkboxes. You can use this
|
3665
|
+
# widget to collect data that can be predicted or enumerated. For an example in
|
3666
|
+
# Google Chat apps, see [Add selectable UI elements](/workspace/chat/design-
|
3667
|
+
# interactive-card-dialog#add_selectable_ui_elements). Chat apps can process the
|
3668
|
+
# value of items that users select or input. For details about working with form
|
3669
|
+
# inputs, see [Receive form data](https://developers.google.com/workspace/chat/
|
3670
|
+
# read-form-data). To collect undefined or abstract data from users, use the
|
3671
|
+
# TextInput widget. [Google Workspace Add-ons and Chat apps](https://developers.
|
3672
|
+
# google.com/workspace/extend):
|
3466
3673
|
# Corresponds to the JSON property `selectionInput`
|
3467
3674
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1SelectionInput]
|
3468
3675
|
attr_accessor :selection_input
|
3469
3676
|
|
3470
3677
|
# A field in which users can enter text. Supports suggestions and on-change
|
3471
|
-
# actions.
|
3678
|
+
# actions. Supports form submission validation. When `Action.
|
3679
|
+
# all_widgets_are_required` is set to `true` or this widget is specified in `
|
3680
|
+
# Action.required_widgets`, the submission action is blocked unless a value is
|
3681
|
+
# entered. For an example in Google Chat apps, see [Add a field in which a user
|
3472
3682
|
# can enter text](https://developers.google.com/workspace/chat/design-
|
3473
3683
|
# interactive-card-dialog#add_a_field_in_which_a_user_can_enter_text). Chat apps
|
3474
3684
|
# receive and can process the value of entered text during form input events.
|
@@ -4901,7 +5111,7 @@ module Google
|
|
4901
5111
|
|
4902
5112
|
# Optional. The Google Chat users or groups to invite to join the space. Omit
|
4903
5113
|
# the calling user, as they are added automatically. The set currently allows up
|
4904
|
-
# to
|
5114
|
+
# to 49 memberships (in addition to the caller). For human membership, the `
|
4905
5115
|
# Membership.member` field must contain a `user` with `name` populated (format: `
|
4906
5116
|
# users/`user``) and `type` set to `User.Type.HUMAN`. You can only add human
|
4907
5117
|
# users when setting up a space (adding Chat apps is only supported for direct
|
@@ -5077,6 +5287,14 @@ module Google
|
|
5077
5287
|
attr_accessor :import_mode
|
5078
5288
|
alias_method :import_mode?, :import_mode
|
5079
5289
|
|
5290
|
+
# Output only. The time when the space will be automatically deleted by the
|
5291
|
+
# system if it remains in import mode. Each space created in import mode must
|
5292
|
+
# exit this mode before this expire time using `spaces.completeImport`. This
|
5293
|
+
# field is only populated for spaces that were created with import mode.
|
5294
|
+
# Corresponds to the JSON property `importModeExpireTime`
|
5295
|
+
# @return [String]
|
5296
|
+
attr_accessor :import_mode_expire_time
|
5297
|
+
|
5080
5298
|
# Output only. Timestamp of the last message in the space.
|
5081
5299
|
# Corresponds to the JSON property `lastActiveTime`
|
5082
5300
|
# @return [String]
|
@@ -5108,7 +5326,13 @@ module Google
|
|
5108
5326
|
# Optional. Input only. Predefined space permission settings, input only when
|
5109
5327
|
# creating a space. If the field is not set, a collaboration space is created.
|
5110
5328
|
# After you create the space, settings are populated in the `PermissionSettings`
|
5111
|
-
# field.
|
5329
|
+
# field. Setting predefined permission settings supports: - In [Developer
|
5330
|
+
# Preview](https://developers.google.com/workspace/preview), [App authentication]
|
5331
|
+
# (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
5332
|
+
# with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
5333
|
+
# with the `chat.app.spaces` or `chat.app.spaces.create` scopes. - [User
|
5334
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
5335
|
+
# authorize-chat-user)
|
5112
5336
|
# Corresponds to the JSON property `predefinedPermissionSettings`
|
5113
5337
|
# @return [String]
|
5114
5338
|
attr_accessor :predefined_permission_settings
|
@@ -5169,6 +5393,7 @@ module Google
|
|
5169
5393
|
@display_name = args[:display_name] if args.key?(:display_name)
|
5170
5394
|
@external_user_allowed = args[:external_user_allowed] if args.key?(:external_user_allowed)
|
5171
5395
|
@import_mode = args[:import_mode] if args.key?(:import_mode)
|
5396
|
+
@import_mode_expire_time = args[:import_mode_expire_time] if args.key?(:import_mode_expire_time)
|
5172
5397
|
@last_active_time = args[:last_active_time] if args.key?(:last_active_time)
|
5173
5398
|
@membership_count = args[:membership_count] if args.key?(:membership_count)
|
5174
5399
|
@name = args[:name] if args.key?(:name)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ChatV1
|
18
18
|
# Version of the google-apis-chat_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.115.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241229"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -280,6 +280,18 @@ module Google
|
|
280
280
|
include Google::Apis::Core::JsonObjectSupport
|
281
281
|
end
|
282
282
|
|
283
|
+
class GoogleAppsCardV1Carousel
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
289
|
+
class GoogleAppsCardV1CarouselCard
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
|
+
|
292
|
+
include Google::Apis::Core::JsonObjectSupport
|
293
|
+
end
|
294
|
+
|
283
295
|
class GoogleAppsCardV1Chip
|
284
296
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
297
|
|
@@ -370,6 +382,12 @@ module Google
|
|
370
382
|
include Google::Apis::Core::JsonObjectSupport
|
371
383
|
end
|
372
384
|
|
385
|
+
class GoogleAppsCardV1NestedWidget
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
|
+
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
389
|
+
end
|
390
|
+
|
373
391
|
class GoogleAppsCardV1OnClick
|
374
392
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
393
|
|
@@ -448,6 +466,12 @@ module Google
|
|
448
466
|
include Google::Apis::Core::JsonObjectSupport
|
449
467
|
end
|
450
468
|
|
469
|
+
class GoogleAppsCardV1Validation
|
470
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
|
+
|
472
|
+
include Google::Apis::Core::JsonObjectSupport
|
473
|
+
end
|
474
|
+
|
451
475
|
class GoogleAppsCardV1Widget
|
452
476
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
453
477
|
|
@@ -1186,12 +1210,14 @@ module Google
|
|
1186
1210
|
class GoogleAppsCardV1Action
|
1187
1211
|
# @private
|
1188
1212
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1213
|
+
property :all_widgets_are_required, as: 'allWidgetsAreRequired'
|
1189
1214
|
property :function, as: 'function'
|
1190
1215
|
property :interaction, as: 'interaction'
|
1191
1216
|
property :load_indicator, as: 'loadIndicator'
|
1192
1217
|
collection :parameters, as: 'parameters', class: Google::Apis::ChatV1::GoogleAppsCardV1ActionParameter, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ActionParameter::Representation
|
1193
1218
|
|
1194
1219
|
property :persist_values, as: 'persistValues'
|
1220
|
+
collection :required_widgets, as: 'requiredWidgets'
|
1195
1221
|
end
|
1196
1222
|
end
|
1197
1223
|
|
@@ -1286,6 +1312,24 @@ module Google
|
|
1286
1312
|
end
|
1287
1313
|
end
|
1288
1314
|
|
1315
|
+
class GoogleAppsCardV1Carousel
|
1316
|
+
# @private
|
1317
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1318
|
+
collection :carousel_cards, as: 'carouselCards', class: Google::Apis::ChatV1::GoogleAppsCardV1CarouselCard, decorator: Google::Apis::ChatV1::GoogleAppsCardV1CarouselCard::Representation
|
1319
|
+
|
1320
|
+
end
|
1321
|
+
end
|
1322
|
+
|
1323
|
+
class GoogleAppsCardV1CarouselCard
|
1324
|
+
# @private
|
1325
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1326
|
+
collection :footer_widgets, as: 'footerWidgets', class: Google::Apis::ChatV1::GoogleAppsCardV1NestedWidget, decorator: Google::Apis::ChatV1::GoogleAppsCardV1NestedWidget::Representation
|
1327
|
+
|
1328
|
+
collection :widgets, as: 'widgets', class: Google::Apis::ChatV1::GoogleAppsCardV1NestedWidget, decorator: Google::Apis::ChatV1::GoogleAppsCardV1NestedWidget::Representation
|
1329
|
+
|
1330
|
+
end
|
1331
|
+
end
|
1332
|
+
|
1289
1333
|
class GoogleAppsCardV1Chip
|
1290
1334
|
# @private
|
1291
1335
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1458,6 +1502,18 @@ module Google
|
|
1458
1502
|
end
|
1459
1503
|
end
|
1460
1504
|
|
1505
|
+
class GoogleAppsCardV1NestedWidget
|
1506
|
+
# @private
|
1507
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1508
|
+
property :button_list, as: 'buttonList', class: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList::Representation
|
1509
|
+
|
1510
|
+
property :image, as: 'image', class: Google::Apis::ChatV1::GoogleAppsCardV1Image, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Image::Representation
|
1511
|
+
|
1512
|
+
property :text_paragraph, as: 'textParagraph', class: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph, decorator: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph::Representation
|
1513
|
+
|
1514
|
+
end
|
1515
|
+
end
|
1516
|
+
|
1461
1517
|
class GoogleAppsCardV1OnClick
|
1462
1518
|
# @private
|
1463
1519
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1596,6 +1652,8 @@ module Google
|
|
1596
1652
|
|
1597
1653
|
property :placeholder_text, as: 'placeholderText'
|
1598
1654
|
property :type, as: 'type'
|
1655
|
+
property :validation, as: 'validation', class: Google::Apis::ChatV1::GoogleAppsCardV1Validation, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Validation::Representation
|
1656
|
+
|
1599
1657
|
property :value, as: 'value'
|
1600
1658
|
end
|
1601
1659
|
end
|
@@ -1608,11 +1666,21 @@ module Google
|
|
1608
1666
|
end
|
1609
1667
|
end
|
1610
1668
|
|
1669
|
+
class GoogleAppsCardV1Validation
|
1670
|
+
# @private
|
1671
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1672
|
+
property :character_limit, as: 'characterLimit'
|
1673
|
+
property :input_type, as: 'inputType'
|
1674
|
+
end
|
1675
|
+
end
|
1676
|
+
|
1611
1677
|
class GoogleAppsCardV1Widget
|
1612
1678
|
# @private
|
1613
1679
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1614
1680
|
property :button_list, as: 'buttonList', class: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList::Representation
|
1615
1681
|
|
1682
|
+
property :carousel, as: 'carousel', class: Google::Apis::ChatV1::GoogleAppsCardV1Carousel, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Carousel::Representation
|
1683
|
+
|
1616
1684
|
property :chip_list, as: 'chipList', class: Google::Apis::ChatV1::GoogleAppsCardV1ChipList, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ChipList::Representation
|
1617
1685
|
|
1618
1686
|
property :columns, as: 'columns', class: Google::Apis::ChatV1::GoogleAppsCardV1Columns, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Columns::Representation
|
@@ -2128,6 +2196,7 @@ module Google
|
|
2128
2196
|
property :display_name, as: 'displayName'
|
2129
2197
|
property :external_user_allowed, as: 'externalUserAllowed'
|
2130
2198
|
property :import_mode, as: 'importMode'
|
2199
|
+
property :import_mode_expire_time, as: 'importModeExpireTime'
|
2131
2200
|
property :last_active_time, as: 'lastActiveTime'
|
2132
2201
|
property :membership_count, as: 'membershipCount', class: Google::Apis::ChatV1::MembershipCount, decorator: Google::Apis::ChatV1::MembershipCount::Representation
|
2133
2202
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-chat_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.115.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.115.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|