google-apis-chat_v1 0.53.0 → 0.55.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee6374104804e4583ea1cb59ff35323ac8be8326221022dd0c474037565cc3bf
4
- data.tar.gz: 24041d1a0d2592e226da9fd9b6d7617a061b69de9ec26c29d1d066a90588f85a
3
+ metadata.gz: ba009980e7d0bfe553363853bf6bb67228767791cb5c0efce7710c4d18c59235
4
+ data.tar.gz: f14148e76bf801a28dff39c20bbf47d2e069c1dd2764a593f50f96923beef0ca
5
5
  SHA512:
6
- metadata.gz: e8c88b6ac18a8eb769dde6ab6778be868d41bd1ca867ab322511f29718206b1ff6cd695d255517ef826c361679248ed27be051b0e38ee166d3db82b3d9843469
7
- data.tar.gz: 5ab1e0a41e220868c10ea90020cf970bac58b6cb1c1b2cd5dbbbefa903c097126a003b60b279314350a18595d9f556c227cfd520919ec8af193bac4ac8c1e284
6
+ metadata.gz: 4738c579fc752a6b3213683d88c2f66ba0daef4cf054f53524452dc7b8aa42969d15ea53d688c8373e40cfb7fc78e7fbbcc35888bf8db437f52312868244f1b8
7
+ data.tar.gz: df0732b094cd532b6a8f56a76a9c0af5243d7c4914741ca164f031ad1523b7a5de754c269967dd7d50657090f14d6dd92fdeea83597993ba63c3f93234c8e41b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-chat_v1
2
2
 
3
+ ### v0.55.0 (2023-02-26)
4
+
5
+ * Regenerated from discovery document revision 20230221
6
+
7
+ ### v0.54.0 (2023-02-19)
8
+
9
+ * Regenerated from discovery document revision 20230216
10
+ * Regenerated using generator version 0.12.0
11
+
3
12
  ### v0.53.0 (2023-02-12)
4
13
 
5
14
  * Regenerated from discovery document revision 20230205
@@ -911,7 +911,8 @@ module Google
911
911
  end
912
912
 
913
913
  # An action that describes the behavior when the form is submitted. For example,
914
- # an Apps Script can be invoked to handle the form.
914
+ # an Apps Script can be invoked to handle the form. If the action is triggered,
915
+ # the form values are sent to the server.
915
916
  class GoogleAppsCardV1Action
916
917
  include Google::Apis::Core::Hashable
917
918
 
@@ -948,17 +949,19 @@ module Google
948
949
  attr_accessor :parameters
949
950
 
950
951
  # Indicates whether form values persist after the action. The default value is `
951
- # false`. If `true`, form values remain after the action is triggered. When
952
- # using [LoadIndicator.NONE](https://developers.google.com/workspace/add-ons/
953
- # reference/rpc/google.apps.card.v1#loadindicator) for actions, `persist_values`
954
- # = `true`is recommended, as it ensures that any changes made by the user after
955
- # form or on change actions are sent to the server are not overwritten by the
956
- # response. If `false`, the form values are cleared when the action is triggered.
957
- # When `persist_values` is set to `false`, it is strongly recommended that the
958
- # card use [LoadIndicator.SPINNER](https://developers.google.com/workspace/add-
959
- # ons/reference/rpc/google.apps.card.v1#loadindicator) for all actions, as this
960
- # locks the UI to ensure no changes are made by the user while the action is
961
- # being processed. Not supported by Chat apps.
952
+ # false`. If `true`, form values remain after the action is triggered. To let
953
+ # the user make changes while the action is being processed, set [LoadIndicator](
954
+ # https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.
955
+ # v1#loadindicator) to `NONE`. For [card messages](https://developers.google.com/
956
+ # chat/api/guides/message-formats/cards) in Chat apps, you must also set the
957
+ # action's [ResponseType](https://developers.google.com/chat/api/reference/rest/
958
+ # v1/spaces.messages#responsetype) to `UPDATE_MESSAGE` and use the same [`
959
+ # card_id`](https://developers.google.com/chat/api/reference/rest/v1/spaces.
960
+ # messages#CardWithId) from the card that contained the action. If `false`, the
961
+ # form values are cleared when the action is triggered. To prevent the user from
962
+ # making changes while the action is being processed, set [LoadIndicator](https:/
963
+ # /developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#
964
+ # loadindicator) to `SPINNER`.
962
965
  # Corresponds to the JSON property `persistValues`
963
966
  # @return [Boolean]
964
967
  attr_accessor :persist_values
@@ -1156,9 +1159,9 @@ module Google
1156
1159
  attr_accessor :disabled
1157
1160
  alias_method :disabled?, :disabled
1158
1161
 
1159
- # An icon displayed in a widget on a card. Supports [standard](https://
1160
- # developers.google.com/chat/api/guides/message-formats/cards) and [custom](
1161
- # https://developers.google.com/chat/api/guides/message-formats/cards#
1162
+ # An icon displayed in a widget on a card. Supports [built-in](https://
1163
+ # developers.google.com/chat/api/guides/message-formats/cards#builtinicons) and [
1164
+ # custom](https://developers.google.com/chat/api/guides/message-formats/cards#
1162
1165
  # customicons) icons.
1163
1166
  # Corresponds to the JSON property `icon`
1164
1167
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]
@@ -1437,7 +1440,8 @@ module Google
1437
1440
  attr_accessor :name
1438
1441
 
1439
1442
  # An action that describes the behavior when the form is submitted. For example,
1440
- # an Apps Script can be invoked to handle the form.
1443
+ # an Apps Script can be invoked to handle the form. If the action is triggered,
1444
+ # the form values are sent to the server.
1441
1445
  # Corresponds to the JSON property `onChangeAction`
1442
1446
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
1443
1447
  attr_accessor :on_change_action
@@ -1485,8 +1489,7 @@ module Google
1485
1489
  class GoogleAppsCardV1DecoratedText
1486
1490
  include Google::Apis::Core::Hashable
1487
1491
 
1488
- # The text that appears below `text`. Always truncates. Supports simple
1489
- # formatting. See Text formatting for formatting details.
1492
+ # The text that appears below `text`. Always truncates.
1490
1493
  # Corresponds to the JSON property `bottomLabel`
1491
1494
  # @return [String]
1492
1495
  attr_accessor :bottom_label
@@ -1501,17 +1504,17 @@ module Google
1501
1504
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Button]
1502
1505
  attr_accessor :button
1503
1506
 
1504
- # An icon displayed in a widget on a card. Supports [standard](https://
1505
- # developers.google.com/chat/api/guides/message-formats/cards) and [custom](
1506
- # https://developers.google.com/chat/api/guides/message-formats/cards#
1507
+ # An icon displayed in a widget on a card. Supports [built-in](https://
1508
+ # developers.google.com/chat/api/guides/message-formats/cards#builtinicons) and [
1509
+ # custom](https://developers.google.com/chat/api/guides/message-formats/cards#
1507
1510
  # customicons) icons.
1508
1511
  # Corresponds to the JSON property `endIcon`
1509
1512
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]
1510
1513
  attr_accessor :end_icon
1511
1514
 
1512
- # An icon displayed in a widget on a card. Supports [standard](https://
1513
- # developers.google.com/chat/api/guides/message-formats/cards) and [custom](
1514
- # https://developers.google.com/chat/api/guides/message-formats/cards#
1515
+ # An icon displayed in a widget on a card. Supports [built-in](https://
1516
+ # developers.google.com/chat/api/guides/message-formats/cards#builtinicons) and [
1517
+ # custom](https://developers.google.com/chat/api/guides/message-formats/cards#
1515
1518
  # customicons) icons.
1516
1519
  # Corresponds to the JSON property `icon`
1517
1520
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]
@@ -1523,19 +1526,16 @@ module Google
1523
1526
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1OnClick]
1524
1527
  attr_accessor :on_click
1525
1528
 
1526
- # An icon displayed in a widget on a card. Supports [standard](https://
1527
- # developers.google.com/chat/api/guides/message-formats/cards) and [custom](
1528
- # https://developers.google.com/chat/api/guides/message-formats/cards#
1529
+ # An icon displayed in a widget on a card. Supports [built-in](https://
1530
+ # developers.google.com/chat/api/guides/message-formats/cards#builtinicons) and [
1531
+ # custom](https://developers.google.com/chat/api/guides/message-formats/cards#
1529
1532
  # customicons) icons.
1530
1533
  # Corresponds to the JSON property `startIcon`
1531
1534
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]
1532
1535
  attr_accessor :start_icon
1533
1536
 
1534
1537
  # Either a toggle-style switch or a checkbox inside a `decoratedText` widget.
1535
- # Only supported on the `decoratedText` widget. Currently supported in [dialogs](
1536
- # https://developers.google.com/chat/how-tos/dialogs). Support for [card
1537
- # messages](https://developers.google.com/chat/api/guides/message-formats/cards)
1538
- # is coming soon.
1538
+ # Only supported on the `decoratedText` widget.
1539
1539
  # Corresponds to the JSON property `switchControl`
1540
1540
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1SwitchControl]
1541
1541
  attr_accessor :switch_control
@@ -1546,8 +1546,7 @@ module Google
1546
1546
  # @return [String]
1547
1547
  attr_accessor :text
1548
1548
 
1549
- # The text that appears above `text`. Always truncates. Supports simple
1550
- # formatting. See Text formatting for formatting details.
1549
+ # The text that appears above `text`. Always truncates.
1551
1550
  # Corresponds to the JSON property `topLabel`
1552
1551
  # @return [String]
1553
1552
  attr_accessor :top_label
@@ -1580,7 +1579,7 @@ module Google
1580
1579
  end
1581
1580
 
1582
1581
  # Displays a divider between widgets, a horizontal line. For example, the
1583
- # following JSON creates a divider: ``` "divider": ` ` ```
1582
+ # following JSON creates a divider: ``` "divider": `` ```
1584
1583
  class GoogleAppsCardV1Divider
1585
1584
  include Google::Apis::Core::Hashable
1586
1585
 
@@ -1596,16 +1595,13 @@ module Google
1596
1595
  # Displays a grid with a collection of items. A grid supports any number of
1597
1596
  # columns and items. The number of rows is determined by items divided by
1598
1597
  # columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items
1599
- # and 2 columns has 6 rows. Currently supported in [dialogs](https://developers.
1600
- # google.com/chat/how-tos/dialogs). Support for [card messages](https://
1601
- # developers.google.com/chat/api/guides/message-formats/cards) is coming soon.
1602
- # For example, the following JSON creates a 2 column grid with a single item: ```
1603
- # "grid": ` "title": "A fine collection of items", "numColumns": 2, "
1604
- # borderStyle": ` "type": "STROKE", "cornerRadius": 4.0 `, "items": [ "image": `
1605
- # "imageUri": "https://www.example.com/image.png", "cropStyle": ` "type": "
1606
- # SQUARE" `, "borderStyle": ` "type": "STROKE" ` `, "title": "An item", "
1607
- # textAlignment": "CENTER" ], "onClick": ` "openLink": ` "url":"https://www.
1608
- # example.com" ` ` ` ```
1598
+ # and 2 columns has 6 rows. For example, the following JSON creates a 2 column
1599
+ # grid with a single item: ``` "grid": ` "title": "A fine collection of items", "
1600
+ # columnCount": 2, "borderStyle": ` "type": "STROKE", "cornerRadius": 4 `, "
1601
+ # items": [ ` "image": ` "imageUri": "https://www.example.com/image.png", "
1602
+ # cropStyle": ` "type": "SQUARE" `, "borderStyle": ` "type": "STROKE" ` `, "
1603
+ # title": "An item", "textAlignment": "CENTER" ` ], "onClick": ` "openLink": ` "
1604
+ # url": "https://www.example.com" ` ` ` ```
1609
1605
  class GoogleAppsCardV1Grid
1610
1606
  include Google::Apis::Core::Hashable
1611
1607
 
@@ -1695,9 +1691,9 @@ module Google
1695
1691
  end
1696
1692
  end
1697
1693
 
1698
- # An icon displayed in a widget on a card. Supports [standard](https://
1699
- # developers.google.com/chat/api/guides/message-formats/cards) and [custom](
1700
- # https://developers.google.com/chat/api/guides/message-formats/cards#
1694
+ # An icon displayed in a widget on a card. Supports [built-in](https://
1695
+ # developers.google.com/chat/api/guides/message-formats/cards#builtinicons) and [
1696
+ # custom](https://developers.google.com/chat/api/guides/message-formats/cards#
1701
1697
  # customicons) icons.
1702
1698
  class GoogleAppsCardV1Icon
1703
1699
  include Google::Apis::Core::Hashable
@@ -1722,15 +1718,15 @@ module Google
1722
1718
  attr_accessor :icon_url
1723
1719
 
1724
1720
  # The crop style applied to the image. In some cases, applying a `CIRCLE` crop
1725
- # causes the image to be drawn larger than a standard icon.
1721
+ # causes the image to be drawn larger than a built-in icon.
1726
1722
  # Corresponds to the JSON property `imageType`
1727
1723
  # @return [String]
1728
1724
  attr_accessor :image_type
1729
1725
 
1730
- # Display one of the standard icons provided by Google Workspace. For example,
1726
+ # Display one of the built-in icons provided by Google Workspace. For example,
1731
1727
  # to display an airplane icon, specify `AIRPLANE`. For a bus, specify `BUS`. For
1732
- # a full list of supported icons, see [standard icons](https://developers.google.
1733
- # com/chat/api/guides/message-formats/cards).
1728
+ # a full list of supported icons, see [built-in icons](https://developers.google.
1729
+ # com/chat/api/guides/message-formats/cards#builtinicons).
1734
1730
  # Corresponds to the JSON property `knownIcon`
1735
1731
  # @return [String]
1736
1732
  attr_accessor :known_icon
@@ -1855,7 +1851,8 @@ module Google
1855
1851
  include Google::Apis::Core::Hashable
1856
1852
 
1857
1853
  # An action that describes the behavior when the form is submitted. For example,
1858
- # an Apps Script can be invoked to handle the form.
1854
+ # an Apps Script can be invoked to handle the form. If the action is triggered,
1855
+ # the form values are sent to the server.
1859
1856
  # Corresponds to the JSON property `action`
1860
1857
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
1861
1858
  attr_accessor :action
@@ -1888,7 +1885,8 @@ module Google
1888
1885
  attr_accessor :card
1889
1886
 
1890
1887
  # An action that describes the behavior when the form is submitted. For example,
1891
- # an Apps Script can be invoked to handle the form.
1888
+ # an Apps Script can be invoked to handle the form. If the action is triggered,
1889
+ # the form values are sent to the server.
1892
1890
  # Corresponds to the JSON property `openDynamicLinkAction`
1893
1891
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
1894
1892
  attr_accessor :open_dynamic_link_action
@@ -1999,10 +1997,7 @@ module Google
1999
1997
  # inputs, see [Receive form data](https://developers.google.com/chat/how-tos/
2000
1998
  # dialogs#receive_form_data_from_dialogs). When you need to collect data from
2001
1999
  # users that matches options you set, use a selection input. To collect abstract
2002
- # data from users, use the text input widget instead. Only supported in [dialogs]
2003
- # (https://developers.google.com/chat/how-tos/dialogs). Support for [card
2004
- # messages](https://developers.google.com/chat/api/guides/message-formats/cards)
2005
- # coming soon.
2000
+ # data from users, use the text input widget instead.
2006
2001
  class GoogleAppsCardV1SelectionInput
2007
2002
  include Google::Apis::Core::Hashable
2008
2003
 
@@ -2027,7 +2022,8 @@ module Google
2027
2022
  attr_accessor :name
2028
2023
 
2029
2024
  # An action that describes the behavior when the form is submitted. For example,
2030
- # an Apps Script can be invoked to handle the form.
2025
+ # an Apps Script can be invoked to handle the form. If the action is triggered,
2026
+ # the form values are sent to the server.
2031
2027
  # Corresponds to the JSON property `onChangeAction`
2032
2028
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
2033
2029
  attr_accessor :on_change_action
@@ -2142,10 +2138,7 @@ module Google
2142
2138
  end
2143
2139
 
2144
2140
  # Either a toggle-style switch or a checkbox inside a `decoratedText` widget.
2145
- # Only supported on the `decoratedText` widget. Currently supported in [dialogs](
2146
- # https://developers.google.com/chat/how-tos/dialogs). Support for [card
2147
- # messages](https://developers.google.com/chat/api/guides/message-formats/cards)
2148
- # is coming soon.
2141
+ # Only supported on the `decoratedText` widget.
2149
2142
  class GoogleAppsCardV1SwitchControl
2150
2143
  include Google::Apis::Core::Hashable
2151
2144
 
@@ -2162,7 +2155,8 @@ module Google
2162
2155
  attr_accessor :name
2163
2156
 
2164
2157
  # An action that describes the behavior when the form is submitted. For example,
2165
- # an Apps Script can be invoked to handle the form.
2158
+ # an Apps Script can be invoked to handle the form. If the action is triggered,
2159
+ # the form values are sent to the server.
2166
2160
  # Corresponds to the JSON property `onChangeAction`
2167
2161
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
2168
2162
  attr_accessor :on_change_action
@@ -2200,14 +2194,13 @@ module Google
2200
2194
  # form data](https://developers.google.com/chat/how-tos/dialogs#
2201
2195
  # receive_form_data_from_dialogs). When you need to collect abstract data from
2202
2196
  # users, use a text input. To collect defined data from users, use the selection
2203
- # input widget instead. Only supported in [dialogs](https://developers.google.
2204
- # com/chat/how-tos/dialogs). Support for [card messages](https://developers.
2205
- # google.com/chat/api/guides/message-formats/cards) coming soon.
2197
+ # input widget instead.
2206
2198
  class GoogleAppsCardV1TextInput
2207
2199
  include Google::Apis::Core::Hashable
2208
2200
 
2209
2201
  # An action that describes the behavior when the form is submitted. For example,
2210
- # an Apps Script can be invoked to handle the form.
2202
+ # an Apps Script can be invoked to handle the form. If the action is triggered,
2203
+ # the form values are sent to the server.
2211
2204
  # Corresponds to the JSON property `autoCompleteAction`
2212
2205
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
2213
2206
  attr_accessor :auto_complete_action
@@ -2250,7 +2243,8 @@ module Google
2250
2243
  attr_accessor :name
2251
2244
 
2252
2245
  # An action that describes the behavior when the form is submitted. For example,
2253
- # an Apps Script can be invoked to handle the form.
2246
+ # an Apps Script can be invoked to handle the form. If the action is triggered,
2247
+ # the form values are sent to the server.
2254
2248
  # Corresponds to the JSON property `onChangeAction`
2255
2249
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
2256
2250
  attr_accessor :on_change_action
@@ -2333,7 +2327,7 @@ module Google
2333
2327
  attr_accessor :decorated_text
2334
2328
 
2335
2329
  # Displays a divider between widgets, a horizontal line. For example, the
2336
- # following JSON creates a divider: ``` "divider": ` ` ```
2330
+ # following JSON creates a divider: ``` "divider": `` ```
2337
2331
  # Corresponds to the JSON property `divider`
2338
2332
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Divider]
2339
2333
  attr_accessor :divider
@@ -2341,16 +2335,13 @@ module Google
2341
2335
  # Displays a grid with a collection of items. A grid supports any number of
2342
2336
  # columns and items. The number of rows is determined by items divided by
2343
2337
  # columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items
2344
- # and 2 columns has 6 rows. Currently supported in [dialogs](https://developers.
2345
- # google.com/chat/how-tos/dialogs). Support for [card messages](https://
2346
- # developers.google.com/chat/api/guides/message-formats/cards) is coming soon.
2347
- # For example, the following JSON creates a 2 column grid with a single item: ```
2348
- # "grid": ` "title": "A fine collection of items", "numColumns": 2, "
2349
- # borderStyle": ` "type": "STROKE", "cornerRadius": 4.0 `, "items": [ "image": `
2350
- # "imageUri": "https://www.example.com/image.png", "cropStyle": ` "type": "
2351
- # SQUARE" `, "borderStyle": ` "type": "STROKE" ` `, "title": "An item", "
2352
- # textAlignment": "CENTER" ], "onClick": ` "openLink": ` "url":"https://www.
2353
- # example.com" ` ` ` ```
2338
+ # and 2 columns has 6 rows. For example, the following JSON creates a 2 column
2339
+ # grid with a single item: ``` "grid": ` "title": "A fine collection of items", "
2340
+ # columnCount": 2, "borderStyle": ` "type": "STROKE", "cornerRadius": 4 `, "
2341
+ # items": [ ` "image": ` "imageUri": "https://www.example.com/image.png", "
2342
+ # cropStyle": ` "type": "SQUARE" `, "borderStyle": ` "type": "STROKE" ` `, "
2343
+ # title": "An item", "textAlignment": "CENTER" ` ], "onClick": ` "openLink": ` "
2344
+ # url": "https://www.example.com" ` ` ` ```
2354
2345
  # Corresponds to the JSON property `grid`
2355
2346
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Grid]
2356
2347
  attr_accessor :grid
@@ -2366,10 +2357,7 @@ module Google
2366
2357
  # inputs, see [Receive form data](https://developers.google.com/chat/how-tos/
2367
2358
  # dialogs#receive_form_data_from_dialogs). When you need to collect data from
2368
2359
  # users that matches options you set, use a selection input. To collect abstract
2369
- # data from users, use the text input widget instead. Only supported in [dialogs]
2370
- # (https://developers.google.com/chat/how-tos/dialogs). Support for [card
2371
- # messages](https://developers.google.com/chat/api/guides/message-formats/cards)
2372
- # coming soon.
2360
+ # data from users, use the text input widget instead.
2373
2361
  # Corresponds to the JSON property `selectionInput`
2374
2362
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1SelectionInput]
2375
2363
  attr_accessor :selection_input
@@ -2380,9 +2368,7 @@ module Google
2380
2368
  # form data](https://developers.google.com/chat/how-tos/dialogs#
2381
2369
  # receive_form_data_from_dialogs). When you need to collect abstract data from
2382
2370
  # users, use a text input. To collect defined data from users, use the selection
2383
- # input widget instead. Only supported in [dialogs](https://developers.google.
2384
- # com/chat/how-tos/dialogs). Support for [card messages](https://developers.
2385
- # google.com/chat/api/guides/message-formats/cards) coming soon.
2371
+ # input widget instead.
2386
2372
  # Corresponds to the JSON property `textInput`
2387
2373
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1TextInput]
2388
2374
  attr_accessor :text_input
@@ -2740,7 +2726,8 @@ module Google
2740
2726
  # @return [Array<Google::Apis::ChatV1::Annotation>]
2741
2727
  attr_accessor :annotations
2742
2728
 
2743
- # Plain-text body of the message with all Chat app mentions stripped out.
2729
+ # Output only. Plain-text body of the message with all Chat app mentions
2730
+ # stripped out.
2744
2731
  # Corresponds to the JSON property `argumentText`
2745
2732
  # @return [String]
2746
2733
  attr_accessor :argument_text
@@ -2753,7 +2740,7 @@ module Google
2753
2740
  # Deprecated: Use `cards_v2` instead. Rich, formatted and interactive cards that
2754
2741
  # can be used to display UI elements such as: formatted texts, buttons,
2755
2742
  # clickable images. Cards are normally displayed below the plain-text body of
2756
- # the message.
2743
+ # the message. `cards` and `cards_v2` can have a maximum size of 32 KB.
2757
2744
  # Corresponds to the JSON property `cards`
2758
2745
  # @return [Array<Google::Apis::ChatV1::Card>]
2759
2746
  attr_accessor :cards
@@ -2762,10 +2749,12 @@ module Google
2762
2749
  # widgets, such as: - Formatted text - Buttons - Clickable images - Checkboxes -
2763
2750
  # Radio buttons - Input widgets. Cards are usually displayed below the text body
2764
2751
  # of a Chat message, but can situationally appear other places, such as [dialogs]
2765
- # (https://developers.google.com/chat/how-tos/dialogs). The `cardId` is a unique
2766
- # identifier among cards in the same message and for identifying user input
2767
- # values. Currently supported widgets include: - `TextParagraph` - `
2768
- # DecoratedText` - `Image` - `ButtonList` - `Divider`
2752
+ # (https://developers.google.com/chat/how-tos/dialogs). `cards_v2` and `cards`
2753
+ # can have a maximum size of 32 KB. The `cardId` is a unique identifier among
2754
+ # cards in the same message and for identifying user input values. Currently
2755
+ # supported widgets include: - `TextParagraph` - `DecoratedText` - `Image` - `
2756
+ # ButtonList` - `Divider` - `TextInput` - `SelectionInput` (CHECKBOX,
2757
+ # RADIO_BUTTON, SWITCH, DROPDOWN) - `Grid`
2769
2758
  # Corresponds to the JSON property `cardsV2`
2770
2759
  # @return [Array<Google::Apis::ChatV1::CardWithId>]
2771
2760
  attr_accessor :cards_v2
@@ -3014,6 +3003,16 @@ module Google
3014
3003
  class Space
3015
3004
  include Google::Apis::Core::Hashable
3016
3005
 
3006
+ # Output only. Whether the Chat app was installed by a Google Workspace
3007
+ # administrator. Administrators can install a Chat app for their domain,
3008
+ # organizational unit, or a group of users. Administrators can only install Chat
3009
+ # apps for direct messaging between users and the app. To support admin install,
3010
+ # your app must feature direct messaging.
3011
+ # Corresponds to the JSON property `adminInstalled`
3012
+ # @return [Boolean]
3013
+ attr_accessor :admin_installed
3014
+ alias_method :admin_installed?, :admin_installed
3015
+
3017
3016
  # The space's display name. Required when [creating a space](https://developers.
3018
3017
  # google.com/chat/api/reference/rest/v1/spaces/create). For direct messages,
3019
3018
  # this field may be empty. Supports up to 128 characters.
@@ -3061,6 +3060,7 @@ module Google
3061
3060
 
3062
3061
  # Update properties of this object
3063
3062
  def update!(**args)
3063
+ @admin_installed = args[:admin_installed] if args.key?(:admin_installed)
3064
3064
  @display_name = args[:display_name] if args.key?(:display_name)
3065
3065
  @name = args[:name] if args.key?(:name)
3066
3066
  @single_user_bot_dm = args[:single_user_bot_dm] if args.key?(:single_user_bot_dm)
@@ -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.53.0"
19
+ GEM_VERSION = "0.55.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.1"
22
+ GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230205"
25
+ REVISION = "20230221"
26
26
  end
27
27
  end
28
28
  end
@@ -1233,6 +1233,7 @@ module Google
1233
1233
  class Space
1234
1234
  # @private
1235
1235
  class Representation < Google::Apis::Core::JsonRepresentation
1236
+ property :admin_installed, as: 'adminInstalled'
1236
1237
  property :display_name, as: 'displayName'
1237
1238
  property :name, as: 'name'
1238
1239
  property :single_user_bot_dm, as: 'singleUserBotDm'
@@ -30,6 +30,9 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1'
32
32
 
33
+ # Private Service: https://www.googleapis.com/auth/chat.bot
34
+ AUTH_CHAT_BOT = 'https://www.googleapis.com/auth/chat.bot'
35
+
33
36
  # View, add, and remove members from conversations in Google Chat
34
37
  AUTH_CHAT_MEMBERSHIPS = 'https://www.googleapis.com/auth/chat.memberships'
35
38
 
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.53.0
4
+ version: 0.55.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: 2023-02-12 00:00:00.000000000 Z
11
+ date: 2023-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.1
19
+ version: 0.11.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.1
29
+ version: 0.11.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.53.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.55.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: []