google-apis-chat_v1 0.81.0 → 0.82.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/chat_v1/classes.rb +322 -166
- data/lib/google/apis/chat_v1/gem_version.rb +3 -3
- data/lib/google/apis/chat_v1/representations.rb +29 -0
- data/lib/google/apis/chat_v1/service.rb +92 -33
- metadata +6 -6
@@ -503,15 +503,16 @@ module Google
|
|
503
503
|
end
|
504
504
|
end
|
505
505
|
|
506
|
-
#
|
507
|
-
#
|
508
|
-
#
|
509
|
-
#
|
506
|
+
# For a `SelectionInput` widget that uses a multiselect menu, a data source from
|
507
|
+
# Google Chat. The data source populates selection items for the multiselect
|
508
|
+
# menu. For example, a user can select Google Chat spaces that they're a member
|
509
|
+
# of. [Google Chat apps](https://developers.google.com/chat):
|
510
510
|
class ChatClientDataSourceMarkup
|
511
511
|
include Google::Apis::Core::Hashable
|
512
512
|
|
513
513
|
# A data source that populates Google Chat spaces as selection items for a
|
514
|
-
# multiselect menu. Only populates spaces that the user is a member of.
|
514
|
+
# multiselect menu. Only populates spaces that the user is a member of. [Google
|
515
|
+
# Chat apps](https://developers.google.com/chat):
|
515
516
|
# Corresponds to the JSON property `spaceDataSource`
|
516
517
|
# @return [Google::Apis::ChatV1::SpaceDataSource]
|
517
518
|
attr_accessor :space_data_source
|
@@ -688,6 +689,39 @@ module Google
|
|
688
689
|
end
|
689
690
|
end
|
690
691
|
|
692
|
+
# Request message for completing the import process for a space.
|
693
|
+
class CompleteImportSpaceRequest
|
694
|
+
include Google::Apis::Core::Hashable
|
695
|
+
|
696
|
+
def initialize(**args)
|
697
|
+
update!(**args)
|
698
|
+
end
|
699
|
+
|
700
|
+
# Update properties of this object
|
701
|
+
def update!(**args)
|
702
|
+
end
|
703
|
+
end
|
704
|
+
|
705
|
+
#
|
706
|
+
class CompleteImportSpaceResponse
|
707
|
+
include Google::Apis::Core::Hashable
|
708
|
+
|
709
|
+
# A space in Google Chat. Spaces are conversations between two or more users or
|
710
|
+
# 1:1 messages between a user and a Chat app.
|
711
|
+
# Corresponds to the JSON property `space`
|
712
|
+
# @return [Google::Apis::ChatV1::Space]
|
713
|
+
attr_accessor :space
|
714
|
+
|
715
|
+
def initialize(**args)
|
716
|
+
update!(**args)
|
717
|
+
end
|
718
|
+
|
719
|
+
# Update properties of this object
|
720
|
+
def update!(**args)
|
721
|
+
@space = args[:space] if args.key?(:space)
|
722
|
+
end
|
723
|
+
end
|
724
|
+
|
691
725
|
# Represents a custom emoji.
|
692
726
|
class CustomEmoji
|
693
727
|
include Google::Apis::Core::Hashable
|
@@ -1078,7 +1112,8 @@ module Google
|
|
1078
1112
|
|
1079
1113
|
# An action that describes the behavior when the form is submitted. For example,
|
1080
1114
|
# you can invoke an Apps Script script to handle the form. If the action is
|
1081
|
-
# triggered, the form values are sent to the server.
|
1115
|
+
# triggered, the form values are sent to the server. [Google Workspace Add-ons
|
1116
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
1082
1117
|
class GoogleAppsCardV1Action
|
1083
1118
|
include Google::Apis::Core::Hashable
|
1084
1119
|
|
@@ -1096,9 +1131,9 @@ module Google
|
|
1096
1131
|
# normal. By specifying an `interaction`, the app can respond in special
|
1097
1132
|
# interactive ways. For example, by setting `interaction` to `OPEN_DIALOG`, the
|
1098
1133
|
# app can open a [dialog](https://developers.google.com/chat/how-tos/dialogs).
|
1099
|
-
# When specified, a loading indicator isn't shown.
|
1100
|
-
#
|
1101
|
-
#
|
1134
|
+
# When specified, a loading indicator isn't shown. If specified for an add-on,
|
1135
|
+
# the entire card is stripped and nothing is shown in the client. [Google Chat
|
1136
|
+
# apps](https://developers.google.com/chat):
|
1102
1137
|
# Corresponds to the JSON property `interaction`
|
1103
1138
|
# @return [String]
|
1104
1139
|
attr_accessor :interaction
|
@@ -1152,7 +1187,8 @@ module Google
|
|
1152
1187
|
# next week. You might use `action method = snooze()`, passing the snooze type
|
1153
1188
|
# and snooze time in the list of string parameters. To learn more, see [`
|
1154
1189
|
# CommonEventObject`](https://developers.google.com/chat/api/reference/rest/v1/
|
1155
|
-
# Event#commoneventobject).
|
1190
|
+
# Event#commoneventobject). [Google Workspace Add-ons and Chat apps](https://
|
1191
|
+
# developers.google.com/workspace/extend):
|
1156
1192
|
class GoogleAppsCardV1ActionParameter
|
1157
1193
|
include Google::Apis::Core::Hashable
|
1158
1194
|
|
@@ -1178,7 +1214,8 @@ module Google
|
|
1178
1214
|
end
|
1179
1215
|
|
1180
1216
|
# The style options for the border of a card or widget, including the border
|
1181
|
-
# type and color.
|
1217
|
+
# type and color. [Google Workspace Add-ons and Chat apps](https://developers.
|
1218
|
+
# google.com/workspace/extend):
|
1182
1219
|
class GoogleAppsCardV1BorderStyle
|
1183
1220
|
include Google::Apis::Core::Hashable
|
1184
1221
|
|
@@ -1256,7 +1293,8 @@ module Google
|
|
1256
1293
|
# A text, icon, or text and icon button that users can click. For an example in
|
1257
1294
|
# Google Chat apps, see [Button list](https://developers.google.com/chat/ui/
|
1258
1295
|
# widgets/button-list). To make an image a clickable button, specify an `Image` (
|
1259
|
-
# not an `ImageComponent`) and set an `onClick` action.
|
1296
|
+
# not an `ImageComponent`) and set an `onClick` action. [Google Workspace Add-
|
1297
|
+
# ons and Chat apps](https://developers.google.com/workspace/extend):
|
1260
1298
|
class GoogleAppsCardV1Button
|
1261
1299
|
include Google::Apis::Core::Hashable
|
1262
1300
|
|
@@ -1328,12 +1366,15 @@ module Google
|
|
1328
1366
|
# see [Icon](https://developers.google.com/chat/ui/widgets/icon). Supports [
|
1329
1367
|
# built-in](https://developers.google.com/chat/format-messages#builtinicons) and
|
1330
1368
|
# [custom](https://developers.google.com/chat/format-messages#customicons) icons.
|
1369
|
+
# [Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
1370
|
+
# workspace/extend):
|
1331
1371
|
# Corresponds to the JSON property `icon`
|
1332
1372
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]
|
1333
1373
|
attr_accessor :icon
|
1334
1374
|
|
1335
1375
|
# Represents how to respond when users click an interactive element on a card,
|
1336
|
-
# such as a button.
|
1376
|
+
# such as a button. [Google Workspace Add-ons and Chat apps](https://developers.
|
1377
|
+
# google.com/workspace/extend):
|
1337
1378
|
# Corresponds to the JSON property `onClick`
|
1338
1379
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1OnClick]
|
1339
1380
|
attr_accessor :on_click
|
@@ -1359,7 +1400,9 @@ module Google
|
|
1359
1400
|
end
|
1360
1401
|
|
1361
1402
|
# A list of buttons layed out horizontally. For an example in Google Chat apps,
|
1362
|
-
# see [Button list](https://developers.google.com/chat/ui/widgets/button-list).
|
1403
|
+
# see [Button list](https://developers.google.com/chat/ui/widgets/button-list). [
|
1404
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
1405
|
+
# workspace/extend):
|
1363
1406
|
class GoogleAppsCardV1ButtonList
|
1364
1407
|
include Google::Apis::Core::Hashable
|
1365
1408
|
|
@@ -1405,8 +1448,8 @@ module Google
|
|
1405
1448
|
class GoogleAppsCardV1Card
|
1406
1449
|
include Google::Apis::Core::Hashable
|
1407
1450
|
|
1408
|
-
# The card's actions. Actions are added to the card's toolbar menu.
|
1409
|
-
#
|
1451
|
+
# The card's actions. Actions are added to the card's toolbar menu. [Google
|
1452
|
+
# Workspace Add-ons](https://developers.google.com/workspace/add-ons): For
|
1410
1453
|
# example, the following JSON constructs a card action menu with `Settings` and `
|
1411
1454
|
# Send Feedback` options: ``` "card_actions": [ ` "actionLabel": "Settings", "
|
1412
1455
|
# onClick": ` "action": ` "functionName": "goToView", "parameters": [ ` "key": "
|
@@ -1417,38 +1460,41 @@ module Google
|
|
1417
1460
|
# @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1CardAction>]
|
1418
1461
|
attr_accessor :card_actions
|
1419
1462
|
|
1420
|
-
# In Google Workspace
|
1421
|
-
# peekCardHeader`.
|
1463
|
+
# In Google Workspace Add-ons, sets the display properties of the `
|
1464
|
+
# peekCardHeader`. [Google Workspace Add-ons](https://developers.google.com/
|
1465
|
+
# workspace/add-ons):
|
1422
1466
|
# Corresponds to the JSON property `displayStyle`
|
1423
1467
|
# @return [String]
|
1424
1468
|
attr_accessor :display_style
|
1425
1469
|
|
1426
|
-
# A persistent (sticky) footer that that appears at the bottom of the card.
|
1427
|
-
#
|
1428
|
-
#
|
1429
|
-
#
|
1430
|
-
#
|
1431
|
-
#
|
1432
|
-
#
|
1433
|
-
#
|
1470
|
+
# A persistent (sticky) footer that that appears at the bottom of the card.
|
1471
|
+
# Setting `fixedFooter` without specifying a `primaryButton` or a `
|
1472
|
+
# secondaryButton` causes an error. For Chat apps, you can use fixed footers in [
|
1473
|
+
# dialogs](https://developers.google.com/chat/how-tos/dialogs), but not [card
|
1474
|
+
# messages](https://developers.google.com/chat/api/guides/v1/messages/create#
|
1475
|
+
# create). For an example in Google Chat apps, see [Card footer](https://
|
1476
|
+
# developers.google.com/chat/ui/widgets/card-fixed-footer). [Google Workspace
|
1477
|
+
# Add-ons and Chat apps](https://developers.google.com/workspace/extend):
|
1434
1478
|
# Corresponds to the JSON property `fixedFooter`
|
1435
1479
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1CardFixedFooter]
|
1436
1480
|
attr_accessor :fixed_footer
|
1437
1481
|
|
1438
1482
|
# Represents a card header. For an example in Google Chat apps, see [Card header]
|
1439
|
-
# (https://developers.google.com/chat/ui/widgets/card-header).
|
1483
|
+
# (https://developers.google.com/chat/ui/widgets/card-header). [Google Workspace
|
1484
|
+
# Add-ons and Chat apps](https://developers.google.com/workspace/extend):
|
1440
1485
|
# Corresponds to the JSON property `header`
|
1441
1486
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1CardHeader]
|
1442
1487
|
attr_accessor :header
|
1443
1488
|
|
1444
|
-
# Name of the card. Used as a card identifier in card navigation.
|
1445
|
-
#
|
1489
|
+
# Name of the card. Used as a card identifier in card navigation. [Google
|
1490
|
+
# Workspace Add-ons](https://developers.google.com/workspace/add-ons):
|
1446
1491
|
# Corresponds to the JSON property `name`
|
1447
1492
|
# @return [String]
|
1448
1493
|
attr_accessor :name
|
1449
1494
|
|
1450
1495
|
# Represents a card header. For an example in Google Chat apps, see [Card header]
|
1451
|
-
# (https://developers.google.com/chat/ui/widgets/card-header).
|
1496
|
+
# (https://developers.google.com/chat/ui/widgets/card-header). [Google Workspace
|
1497
|
+
# Add-ons and Chat apps](https://developers.google.com/workspace/extend):
|
1452
1498
|
# Corresponds to the JSON property `peekCardHeader`
|
1453
1499
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1CardHeader]
|
1454
1500
|
attr_accessor :peek_card_header
|
@@ -1485,7 +1531,8 @@ module Google
|
|
1485
1531
|
|
1486
1532
|
# A card action is the action associated with the card. For example, an invoice
|
1487
1533
|
# card might include actions such as delete invoice, email invoice, or open the
|
1488
|
-
# invoice in a browser.
|
1534
|
+
# invoice in a browser. [Google Workspace Add-ons](https://developers.google.com/
|
1535
|
+
# workspace/add-ons):
|
1489
1536
|
class GoogleAppsCardV1CardAction
|
1490
1537
|
include Google::Apis::Core::Hashable
|
1491
1538
|
|
@@ -1495,7 +1542,8 @@ module Google
|
|
1495
1542
|
attr_accessor :action_label
|
1496
1543
|
|
1497
1544
|
# Represents how to respond when users click an interactive element on a card,
|
1498
|
-
# such as a button.
|
1545
|
+
# such as a button. [Google Workspace Add-ons and Chat apps](https://developers.
|
1546
|
+
# google.com/workspace/extend):
|
1499
1547
|
# Corresponds to the JSON property `onClick`
|
1500
1548
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1OnClick]
|
1501
1549
|
attr_accessor :on_click
|
@@ -1511,21 +1559,22 @@ module Google
|
|
1511
1559
|
end
|
1512
1560
|
end
|
1513
1561
|
|
1514
|
-
# A persistent (sticky) footer that that appears at the bottom of the card.
|
1515
|
-
#
|
1516
|
-
#
|
1517
|
-
#
|
1518
|
-
#
|
1519
|
-
#
|
1520
|
-
#
|
1521
|
-
#
|
1562
|
+
# A persistent (sticky) footer that that appears at the bottom of the card.
|
1563
|
+
# Setting `fixedFooter` without specifying a `primaryButton` or a `
|
1564
|
+
# secondaryButton` causes an error. For Chat apps, you can use fixed footers in [
|
1565
|
+
# dialogs](https://developers.google.com/chat/how-tos/dialogs), but not [card
|
1566
|
+
# messages](https://developers.google.com/chat/api/guides/v1/messages/create#
|
1567
|
+
# create). For an example in Google Chat apps, see [Card footer](https://
|
1568
|
+
# developers.google.com/chat/ui/widgets/card-fixed-footer). [Google Workspace
|
1569
|
+
# Add-ons and Chat apps](https://developers.google.com/workspace/extend):
|
1522
1570
|
class GoogleAppsCardV1CardFixedFooter
|
1523
1571
|
include Google::Apis::Core::Hashable
|
1524
1572
|
|
1525
1573
|
# A text, icon, or text and icon button that users can click. For an example in
|
1526
1574
|
# Google Chat apps, see [Button list](https://developers.google.com/chat/ui/
|
1527
1575
|
# widgets/button-list). To make an image a clickable button, specify an `Image` (
|
1528
|
-
# not an `ImageComponent`) and set an `onClick` action.
|
1576
|
+
# not an `ImageComponent`) and set an `onClick` action. [Google Workspace Add-
|
1577
|
+
# ons and Chat apps](https://developers.google.com/workspace/extend):
|
1529
1578
|
# Corresponds to the JSON property `primaryButton`
|
1530
1579
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Button]
|
1531
1580
|
attr_accessor :primary_button
|
@@ -1533,7 +1582,8 @@ module Google
|
|
1533
1582
|
# A text, icon, or text and icon button that users can click. For an example in
|
1534
1583
|
# Google Chat apps, see [Button list](https://developers.google.com/chat/ui/
|
1535
1584
|
# widgets/button-list). To make an image a clickable button, specify an `Image` (
|
1536
|
-
# not an `ImageComponent`) and set an `onClick` action.
|
1585
|
+
# not an `ImageComponent`) and set an `onClick` action. [Google Workspace Add-
|
1586
|
+
# ons and Chat apps](https://developers.google.com/workspace/extend):
|
1537
1587
|
# Corresponds to the JSON property `secondaryButton`
|
1538
1588
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Button]
|
1539
1589
|
attr_accessor :secondary_button
|
@@ -1550,7 +1600,8 @@ module Google
|
|
1550
1600
|
end
|
1551
1601
|
|
1552
1602
|
# Represents a card header. For an example in Google Chat apps, see [Card header]
|
1553
|
-
# (https://developers.google.com/chat/ui/widgets/card-header).
|
1603
|
+
# (https://developers.google.com/chat/ui/widgets/card-header). [Google Workspace
|
1604
|
+
# Add-ons and Chat apps](https://developers.google.com/workspace/extend):
|
1554
1605
|
class GoogleAppsCardV1CardHeader
|
1555
1606
|
include Google::Apis::Core::Hashable
|
1556
1607
|
|
@@ -1559,7 +1610,8 @@ module Google
|
|
1559
1610
|
# @return [String]
|
1560
1611
|
attr_accessor :image_alt_text
|
1561
1612
|
|
1562
|
-
# The shape used to crop the image.
|
1613
|
+
# The shape used to crop the image. [Google Workspace Add-ons and Chat apps](
|
1614
|
+
# https://developers.google.com/workspace/extend):
|
1563
1615
|
# Corresponds to the JSON property `imageType`
|
1564
1616
|
# @return [String]
|
1565
1617
|
attr_accessor :image_type
|
@@ -1596,7 +1648,7 @@ module Google
|
|
1596
1648
|
end
|
1597
1649
|
end
|
1598
1650
|
|
1599
|
-
# A column.
|
1651
|
+
# A column. [Google Chat apps](https://developers.google.com/chat):
|
1600
1652
|
class GoogleAppsCardV1Column
|
1601
1653
|
include Google::Apis::Core::Hashable
|
1602
1654
|
|
@@ -1605,12 +1657,14 @@ module Google
|
|
1605
1657
|
# @return [String]
|
1606
1658
|
attr_accessor :horizontal_alignment
|
1607
1659
|
|
1608
|
-
# Specifies how a column fills the width of the card.
|
1660
|
+
# Specifies how a column fills the width of the card. [Google Chat apps](https://
|
1661
|
+
# developers.google.com/chat):
|
1609
1662
|
# Corresponds to the JSON property `horizontalSizeStyle`
|
1610
1663
|
# @return [String]
|
1611
1664
|
attr_accessor :horizontal_size_style
|
1612
1665
|
|
1613
|
-
# Specifies whether widgets align to the top, bottom, or center of a column.
|
1666
|
+
# Specifies whether widgets align to the top, bottom, or center of a column. [
|
1667
|
+
# Google Chat apps](https://developers.google.com/chat):
|
1614
1668
|
# Corresponds to the JSON property `verticalAlignment`
|
1615
1669
|
# @return [String]
|
1616
1670
|
attr_accessor :vertical_alignment
|
@@ -1649,7 +1703,7 @@ module Google
|
|
1649
1703
|
# column wraps if the screen width is less than or equal to 300 pt. * On Android
|
1650
1704
|
# devices, the second column wraps if the screen width is less than or equal to
|
1651
1705
|
# 320 dp. To include more than 2 columns, or to use rows, use the `Grid` widget.
|
1652
|
-
#
|
1706
|
+
# [Google Chat apps](https://developers.google.com/chat):
|
1653
1707
|
class GoogleAppsCardV1Columns
|
1654
1708
|
include Google::Apis::Core::Hashable
|
1655
1709
|
|
@@ -1672,7 +1726,8 @@ module Google
|
|
1672
1726
|
# Google Chat apps, see [Date time picker](https://developers.google.com/chat/ui/
|
1673
1727
|
# widgets/date-time-picker). Users can input text or use the picker to select
|
1674
1728
|
# dates and times. If users input an invalid date or time, the picker shows an
|
1675
|
-
# error that prompts users to input the information correctly.
|
1729
|
+
# error that prompts users to input the information correctly. [Google Workspace
|
1730
|
+
# Add-ons and Chat apps](https://developers.google.com/workspace/extend):
|
1676
1731
|
class GoogleAppsCardV1DateTimePicker
|
1677
1732
|
include Google::Apis::Core::Hashable
|
1678
1733
|
|
@@ -1692,7 +1747,8 @@ module Google
|
|
1692
1747
|
|
1693
1748
|
# An action that describes the behavior when the form is submitted. For example,
|
1694
1749
|
# you can invoke an Apps Script script to handle the form. If the action is
|
1695
|
-
# triggered, the form values are sent to the server.
|
1750
|
+
# triggered, the form values are sent to the server. [Google Workspace Add-ons
|
1751
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
1696
1752
|
# Corresponds to the JSON property `onChangeAction`
|
1697
1753
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
|
1698
1754
|
attr_accessor :on_change_action
|
@@ -1739,7 +1795,8 @@ module Google
|
|
1739
1795
|
# A widget that displays text with optional decorations such as a label above or
|
1740
1796
|
# below the text, an icon in front of the text, a selection widget, or a button
|
1741
1797
|
# after the text. For an example in Google Chat apps, see [Decorated text](https:
|
1742
|
-
# //developers.google.com/chat/ui/widgets/decorated-text).
|
1798
|
+
# //developers.google.com/chat/ui/widgets/decorated-text). [Google Workspace Add-
|
1799
|
+
# ons and Chat apps](https://developers.google.com/workspace/extend):
|
1743
1800
|
class GoogleAppsCardV1DecoratedText
|
1744
1801
|
include Google::Apis::Core::Hashable
|
1745
1802
|
|
@@ -1751,7 +1808,8 @@ module Google
|
|
1751
1808
|
# A text, icon, or text and icon button that users can click. For an example in
|
1752
1809
|
# Google Chat apps, see [Button list](https://developers.google.com/chat/ui/
|
1753
1810
|
# widgets/button-list). To make an image a clickable button, specify an `Image` (
|
1754
|
-
# not an `ImageComponent`) and set an `onClick` action.
|
1811
|
+
# not an `ImageComponent`) and set an `onClick` action. [Google Workspace Add-
|
1812
|
+
# ons and Chat apps](https://developers.google.com/workspace/extend):
|
1755
1813
|
# Corresponds to the JSON property `button`
|
1756
1814
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Button]
|
1757
1815
|
attr_accessor :button
|
@@ -1760,6 +1818,8 @@ module Google
|
|
1760
1818
|
# see [Icon](https://developers.google.com/chat/ui/widgets/icon). Supports [
|
1761
1819
|
# built-in](https://developers.google.com/chat/format-messages#builtinicons) and
|
1762
1820
|
# [custom](https://developers.google.com/chat/format-messages#customicons) icons.
|
1821
|
+
# [Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
1822
|
+
# workspace/extend):
|
1763
1823
|
# Corresponds to the JSON property `endIcon`
|
1764
1824
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]
|
1765
1825
|
attr_accessor :end_icon
|
@@ -1768,12 +1828,15 @@ module Google
|
|
1768
1828
|
# see [Icon](https://developers.google.com/chat/ui/widgets/icon). Supports [
|
1769
1829
|
# built-in](https://developers.google.com/chat/format-messages#builtinicons) and
|
1770
1830
|
# [custom](https://developers.google.com/chat/format-messages#customicons) icons.
|
1831
|
+
# [Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
1832
|
+
# workspace/extend):
|
1771
1833
|
# Corresponds to the JSON property `icon`
|
1772
1834
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]
|
1773
1835
|
attr_accessor :icon
|
1774
1836
|
|
1775
1837
|
# Represents how to respond when users click an interactive element on a card,
|
1776
|
-
# such as a button.
|
1838
|
+
# such as a button. [Google Workspace Add-ons and Chat apps](https://developers.
|
1839
|
+
# google.com/workspace/extend):
|
1777
1840
|
# Corresponds to the JSON property `onClick`
|
1778
1841
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1OnClick]
|
1779
1842
|
attr_accessor :on_click
|
@@ -1782,12 +1845,15 @@ module Google
|
|
1782
1845
|
# see [Icon](https://developers.google.com/chat/ui/widgets/icon). Supports [
|
1783
1846
|
# built-in](https://developers.google.com/chat/format-messages#builtinicons) and
|
1784
1847
|
# [custom](https://developers.google.com/chat/format-messages#customicons) icons.
|
1848
|
+
# [Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
1849
|
+
# workspace/extend):
|
1785
1850
|
# Corresponds to the JSON property `startIcon`
|
1786
1851
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]
|
1787
1852
|
attr_accessor :start_icon
|
1788
1853
|
|
1789
|
-
# Either a toggle-style switch or a checkbox inside a `decoratedText` widget.
|
1790
|
-
#
|
1854
|
+
# Either a toggle-style switch or a checkbox inside a `decoratedText` widget. [
|
1855
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
1856
|
+
# workspace/extend): Only supported in the `decoratedText` widget.
|
1791
1857
|
# Corresponds to the JSON property `switchControl`
|
1792
1858
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1SwitchControl]
|
1793
1859
|
attr_accessor :switch_control
|
@@ -1835,8 +1901,9 @@ module Google
|
|
1835
1901
|
|
1836
1902
|
# Displays a divider between widgets as a horizontal line. For an example in
|
1837
1903
|
# Google Chat apps, see [Divider](https://developers.google.com/chat/ui/widgets/
|
1838
|
-
# divider).
|
1839
|
-
# ```
|
1904
|
+
# divider). [Google Workspace Add-ons and Chat apps](https://developers.google.
|
1905
|
+
# com/workspace/extend): For example, the following JSON creates a divider: ``` "
|
1906
|
+
# divider": `` ```
|
1840
1907
|
class GoogleAppsCardV1Divider
|
1841
1908
|
include Google::Apis::Core::Hashable
|
1842
1909
|
|
@@ -1855,18 +1922,20 @@ module Google
|
|
1855
1922
|
# google.com/chat/ui/widgets/grid). A grid supports any number of columns and
|
1856
1923
|
# items. The number of rows is determined by items divided by columns. A grid
|
1857
1924
|
# with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has
|
1858
|
-
# 6 rows.
|
1859
|
-
#
|
1860
|
-
#
|
1861
|
-
# "
|
1862
|
-
#
|
1863
|
-
#
|
1864
|
-
#
|
1925
|
+
# 6 rows. [Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
1926
|
+
# workspace/extend): For example, the following JSON creates a 2 column grid
|
1927
|
+
# with a single item: ``` "grid": ` "title": "A fine collection of items", "
|
1928
|
+
# columnCount": 2, "borderStyle": ` "type": "STROKE", "cornerRadius": 4 `, "
|
1929
|
+
# items": [ ` "image": ` "imageUri": "https://www.example.com/image.png", "
|
1930
|
+
# cropStyle": ` "type": "SQUARE" `, "borderStyle": ` "type": "STROKE" ` `, "
|
1931
|
+
# title": "An item", "textAlignment": "CENTER" ` ], "onClick": ` "openLink": ` "
|
1932
|
+
# url": "https://www.example.com" ` ` ` ```
|
1865
1933
|
class GoogleAppsCardV1Grid
|
1866
1934
|
include Google::Apis::Core::Hashable
|
1867
1935
|
|
1868
1936
|
# The style options for the border of a card or widget, including the border
|
1869
|
-
# type and color.
|
1937
|
+
# type and color. [Google Workspace Add-ons and Chat apps](https://developers.
|
1938
|
+
# google.com/workspace/extend):
|
1870
1939
|
# Corresponds to the JSON property `borderStyle`
|
1871
1940
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1BorderStyle]
|
1872
1941
|
attr_accessor :border_style
|
@@ -1884,7 +1953,8 @@ module Google
|
|
1884
1953
|
attr_accessor :items
|
1885
1954
|
|
1886
1955
|
# Represents how to respond when users click an interactive element on a card,
|
1887
|
-
# such as a button.
|
1956
|
+
# such as a button. [Google Workspace Add-ons and Chat apps](https://developers.
|
1957
|
+
# google.com/workspace/extend):
|
1888
1958
|
# Corresponds to the JSON property `onClick`
|
1889
1959
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1OnClick]
|
1890
1960
|
attr_accessor :on_click
|
@@ -1909,7 +1979,8 @@ module Google
|
|
1909
1979
|
end
|
1910
1980
|
|
1911
1981
|
# Represents an item in a grid layout. Items can contain text, an image, or both
|
1912
|
-
# text and an image.
|
1982
|
+
# text and an image. [Google Workspace Add-ons and Chat apps](https://developers.
|
1983
|
+
# google.com/workspace/extend):
|
1913
1984
|
class GoogleAppsCardV1GridItem
|
1914
1985
|
include Google::Apis::Core::Hashable
|
1915
1986
|
|
@@ -1919,7 +1990,8 @@ module Google
|
|
1919
1990
|
# @return [String]
|
1920
1991
|
attr_accessor :id
|
1921
1992
|
|
1922
|
-
# Represents an image.
|
1993
|
+
# Represents an image. [Google Workspace Add-ons and Chat apps](https://
|
1994
|
+
# developers.google.com/workspace/extend):
|
1923
1995
|
# Corresponds to the JSON property `image`
|
1924
1996
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ImageComponent]
|
1925
1997
|
attr_accessor :image
|
@@ -1957,6 +2029,8 @@ module Google
|
|
1957
2029
|
# see [Icon](https://developers.google.com/chat/ui/widgets/icon). Supports [
|
1958
2030
|
# built-in](https://developers.google.com/chat/format-messages#builtinicons) and
|
1959
2031
|
# [custom](https://developers.google.com/chat/format-messages#customicons) icons.
|
2032
|
+
# [Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
2033
|
+
# workspace/extend):
|
1960
2034
|
class GoogleAppsCardV1Icon
|
1961
2035
|
include Google::Apis::Core::Hashable
|
1962
2036
|
|
@@ -2007,7 +2081,9 @@ module Google
|
|
2007
2081
|
end
|
2008
2082
|
|
2009
2083
|
# An image that is specified by a URL and can have an `onClick` action. For an
|
2010
|
-
# example, see [Image](https://developers.google.com/chat/ui/widgets/image).
|
2084
|
+
# example, see [Image](https://developers.google.com/chat/ui/widgets/image). [
|
2085
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
2086
|
+
# workspace/extend):
|
2011
2087
|
class GoogleAppsCardV1Image
|
2012
2088
|
include Google::Apis::Core::Hashable
|
2013
2089
|
|
@@ -2023,7 +2099,8 @@ module Google
|
|
2023
2099
|
attr_accessor :image_url
|
2024
2100
|
|
2025
2101
|
# Represents how to respond when users click an interactive element on a card,
|
2026
|
-
# such as a button.
|
2102
|
+
# such as a button. [Google Workspace Add-ons and Chat apps](https://developers.
|
2103
|
+
# google.com/workspace/extend):
|
2027
2104
|
# Corresponds to the JSON property `onClick`
|
2028
2105
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1OnClick]
|
2029
2106
|
attr_accessor :on_click
|
@@ -2040,7 +2117,8 @@ module Google
|
|
2040
2117
|
end
|
2041
2118
|
end
|
2042
2119
|
|
2043
|
-
# Represents an image.
|
2120
|
+
# Represents an image. [Google Workspace Add-ons and Chat apps](https://
|
2121
|
+
# developers.google.com/workspace/extend):
|
2044
2122
|
class GoogleAppsCardV1ImageComponent
|
2045
2123
|
include Google::Apis::Core::Hashable
|
2046
2124
|
|
@@ -2050,14 +2128,16 @@ module Google
|
|
2050
2128
|
attr_accessor :alt_text
|
2051
2129
|
|
2052
2130
|
# The style options for the border of a card or widget, including the border
|
2053
|
-
# type and color.
|
2131
|
+
# type and color. [Google Workspace Add-ons and Chat apps](https://developers.
|
2132
|
+
# google.com/workspace/extend):
|
2054
2133
|
# Corresponds to the JSON property `borderStyle`
|
2055
2134
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1BorderStyle]
|
2056
2135
|
attr_accessor :border_style
|
2057
2136
|
|
2058
|
-
# Represents the crop style applied to an image.
|
2059
|
-
#
|
2060
|
-
#
|
2137
|
+
# Represents the crop style applied to an image. [Google Workspace Add-ons and
|
2138
|
+
# Chat apps](https://developers.google.com/workspace/extend): For example, here'
|
2139
|
+
# s how to apply a 16:9 aspect ratio: ``` cropStyle ` "type": "RECTANGLE_CUSTOM",
|
2140
|
+
# "aspectRatio": 16/9 ` ```
|
2061
2141
|
# Corresponds to the JSON property `cropStyle`
|
2062
2142
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ImageCropStyle]
|
2063
2143
|
attr_accessor :crop_style
|
@@ -2080,9 +2160,10 @@ module Google
|
|
2080
2160
|
end
|
2081
2161
|
end
|
2082
2162
|
|
2083
|
-
# Represents the crop style applied to an image.
|
2084
|
-
#
|
2085
|
-
#
|
2163
|
+
# Represents the crop style applied to an image. [Google Workspace Add-ons and
|
2164
|
+
# Chat apps](https://developers.google.com/workspace/extend): For example, here'
|
2165
|
+
# s how to apply a 16:9 aspect ratio: ``` cropStyle ` "type": "RECTANGLE_CUSTOM",
|
2166
|
+
# "aspectRatio": 16/9 ` ```
|
2086
2167
|
class GoogleAppsCardV1ImageCropStyle
|
2087
2168
|
include Google::Apis::Core::Hashable
|
2088
2169
|
|
@@ -2110,13 +2191,15 @@ module Google
|
|
2110
2191
|
end
|
2111
2192
|
|
2112
2193
|
# Represents how to respond when users click an interactive element on a card,
|
2113
|
-
# such as a button.
|
2194
|
+
# such as a button. [Google Workspace Add-ons and Chat apps](https://developers.
|
2195
|
+
# google.com/workspace/extend):
|
2114
2196
|
class GoogleAppsCardV1OnClick
|
2115
2197
|
include Google::Apis::Core::Hashable
|
2116
2198
|
|
2117
2199
|
# An action that describes the behavior when the form is submitted. For example,
|
2118
2200
|
# you can invoke an Apps Script script to handle the form. If the action is
|
2119
|
-
# triggered, the form values are sent to the server.
|
2201
|
+
# triggered, the form values are sent to the server. [Google Workspace Add-ons
|
2202
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
2120
2203
|
# Corresponds to the JSON property `action`
|
2121
2204
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
|
2122
2205
|
attr_accessor :action
|
@@ -2151,12 +2234,14 @@ module Google
|
|
2151
2234
|
|
2152
2235
|
# An action that describes the behavior when the form is submitted. For example,
|
2153
2236
|
# you can invoke an Apps Script script to handle the form. If the action is
|
2154
|
-
# triggered, the form values are sent to the server.
|
2237
|
+
# triggered, the form values are sent to the server. [Google Workspace Add-ons
|
2238
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
2155
2239
|
# Corresponds to the JSON property `openDynamicLinkAction`
|
2156
2240
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
|
2157
2241
|
attr_accessor :open_dynamic_link_action
|
2158
2242
|
|
2159
|
-
# Represents an `onClick` event that opens a hyperlink.
|
2243
|
+
# Represents an `onClick` event that opens a hyperlink. [Google Workspace Add-
|
2244
|
+
# ons and Chat apps](https://developers.google.com/workspace/extend):
|
2160
2245
|
# Corresponds to the JSON property `openLink`
|
2161
2246
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1OpenLink]
|
2162
2247
|
attr_accessor :open_link
|
@@ -2174,17 +2259,20 @@ module Google
|
|
2174
2259
|
end
|
2175
2260
|
end
|
2176
2261
|
|
2177
|
-
# Represents an `onClick` event that opens a hyperlink.
|
2262
|
+
# Represents an `onClick` event that opens a hyperlink. [Google Workspace Add-
|
2263
|
+
# ons and Chat apps](https://developers.google.com/workspace/extend):
|
2178
2264
|
class GoogleAppsCardV1OpenLink
|
2179
2265
|
include Google::Apis::Core::Hashable
|
2180
2266
|
|
2181
2267
|
# Whether the client forgets about a link after opening it, or observes it until
|
2182
|
-
# the window closes.
|
2268
|
+
# the window closes. [Google Workspace Add-ons](https://developers.google.com/
|
2269
|
+
# workspace/add-ons):
|
2183
2270
|
# Corresponds to the JSON property `onClose`
|
2184
2271
|
# @return [String]
|
2185
2272
|
attr_accessor :on_close
|
2186
2273
|
|
2187
|
-
# How to open a link.
|
2274
|
+
# How to open a link. [Google Workspace Add-ons](https://developers.google.com/
|
2275
|
+
# workspace/add-ons):
|
2188
2276
|
# Corresponds to the JSON property `openAs`
|
2189
2277
|
# @return [String]
|
2190
2278
|
attr_accessor :open_as
|
@@ -2206,9 +2294,9 @@ module Google
|
|
2206
2294
|
end
|
2207
2295
|
end
|
2208
2296
|
|
2209
|
-
#
|
2210
|
-
#
|
2211
|
-
#
|
2297
|
+
# For a `SelectionInput` widget that uses a multiselect menu, a data source from
|
2298
|
+
# Google Workspace. Used to populate items in a multiselect menu. [Google Chat
|
2299
|
+
# apps](https://developers.google.com/chat):
|
2212
2300
|
class GoogleAppsCardV1PlatformDataSource
|
2213
2301
|
include Google::Apis::Core::Hashable
|
2214
2302
|
|
@@ -2218,9 +2306,9 @@ module Google
|
|
2218
2306
|
# @return [String]
|
2219
2307
|
attr_accessor :common_data_source
|
2220
2308
|
|
2221
|
-
#
|
2222
|
-
#
|
2223
|
-
#
|
2309
|
+
# For a `SelectionInput` widget that uses a multiselect menu, a data source from
|
2310
|
+
# a Google Workspace application. The data source populates selection items for
|
2311
|
+
# the multiselect menu. [Google Chat apps](https://developers.google.com/chat):
|
2224
2312
|
# Corresponds to the JSON property `hostAppDataSource`
|
2225
2313
|
# @return [Google::Apis::ChatV1::HostAppDataSourceMarkup]
|
2226
2314
|
attr_accessor :host_app_data_source
|
@@ -2237,7 +2325,8 @@ module Google
|
|
2237
2325
|
end
|
2238
2326
|
|
2239
2327
|
# A section contains a collection of widgets that are rendered vertically in the
|
2240
|
-
# order that they're specified.
|
2328
|
+
# order that they're specified. [Google Workspace Add-ons and Chat apps](https://
|
2329
|
+
# developers.google.com/workspace/extend):
|
2241
2330
|
class GoogleAppsCardV1Section
|
2242
2331
|
include Google::Apis::Core::Hashable
|
2243
2332
|
|
@@ -2295,13 +2384,15 @@ module Google
|
|
2295
2384
|
# . Chat apps can process the value of items that users select or input. For
|
2296
2385
|
# details about working with form inputs, see [Receive form data](https://
|
2297
2386
|
# developers.google.com/chat/ui/read-form-data). To collect undefined or
|
2298
|
-
# abstract data from users, use the TextInput widget.
|
2387
|
+
# abstract data from users, use the TextInput widget. [Google Workspace Add-ons
|
2388
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
2299
2389
|
class GoogleAppsCardV1SelectionInput
|
2300
2390
|
include Google::Apis::Core::Hashable
|
2301
2391
|
|
2302
2392
|
# An action that describes the behavior when the form is submitted. For example,
|
2303
2393
|
# you can invoke an Apps Script script to handle the form. If the action is
|
2304
|
-
# triggered, the form values are sent to the server.
|
2394
|
+
# triggered, the form values are sent to the server. [Google Workspace Add-ons
|
2395
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
2305
2396
|
# Corresponds to the JSON property `externalDataSource`
|
2306
2397
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
|
2307
2398
|
attr_accessor :external_data_source
|
@@ -2343,14 +2434,15 @@ module Google
|
|
2343
2434
|
|
2344
2435
|
# An action that describes the behavior when the form is submitted. For example,
|
2345
2436
|
# you can invoke an Apps Script script to handle the form. If the action is
|
2346
|
-
# triggered, the form values are sent to the server.
|
2437
|
+
# triggered, the form values are sent to the server. [Google Workspace Add-ons
|
2438
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
2347
2439
|
# Corresponds to the JSON property `onChangeAction`
|
2348
2440
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
|
2349
2441
|
attr_accessor :on_change_action
|
2350
2442
|
|
2351
|
-
#
|
2352
|
-
#
|
2353
|
-
#
|
2443
|
+
# For a `SelectionInput` widget that uses a multiselect menu, a data source from
|
2444
|
+
# Google Workspace. Used to populate items in a multiselect menu. [Google Chat
|
2445
|
+
# apps](https://developers.google.com/chat):
|
2354
2446
|
# Corresponds to the JSON property `platformDataSource`
|
2355
2447
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1PlatformDataSource]
|
2356
2448
|
attr_accessor :platform_data_source
|
@@ -2382,7 +2474,8 @@ module Google
|
|
2382
2474
|
end
|
2383
2475
|
|
2384
2476
|
# An item that users can select in a selection input, such as a checkbox or
|
2385
|
-
# switch.
|
2477
|
+
# switch. [Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
2478
|
+
# workspace/extend):
|
2386
2479
|
class GoogleAppsCardV1SelectionItem
|
2387
2480
|
include Google::Apis::Core::Hashable
|
2388
2481
|
|
@@ -2433,7 +2526,9 @@ module Google
|
|
2433
2526
|
end
|
2434
2527
|
end
|
2435
2528
|
|
2436
|
-
# One suggested value that users can enter in a text input field.
|
2529
|
+
# One suggested value that users can enter in a text input field. [Google
|
2530
|
+
# Workspace Add-ons and Chat apps](https://developers.google.com/workspace/
|
2531
|
+
# extend):
|
2437
2532
|
class GoogleAppsCardV1SuggestionItem
|
2438
2533
|
include Google::Apis::Core::Hashable
|
2439
2534
|
|
@@ -2462,7 +2557,8 @@ module Google
|
|
2462
2557
|
# can make sense of. When referring to JavaScript, some users might enter `
|
2463
2558
|
# javascript` and others `java script`. Suggesting `JavaScript` can standardize
|
2464
2559
|
# how users interact with your app. When specified, `TextInput.type` is always `
|
2465
|
-
# SINGLE_LINE`, even if it's set to `MULTIPLE_LINE`.
|
2560
|
+
# SINGLE_LINE`, even if it's set to `MULTIPLE_LINE`. [Google Workspace Add-ons
|
2561
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
2466
2562
|
class GoogleAppsCardV1Suggestions
|
2467
2563
|
include Google::Apis::Core::Hashable
|
2468
2564
|
|
@@ -2482,12 +2578,14 @@ module Google
|
|
2482
2578
|
end
|
2483
2579
|
end
|
2484
2580
|
|
2485
|
-
# Either a toggle-style switch or a checkbox inside a `decoratedText` widget.
|
2486
|
-
#
|
2581
|
+
# Either a toggle-style switch or a checkbox inside a `decoratedText` widget. [
|
2582
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
2583
|
+
# workspace/extend): Only supported in the `decoratedText` widget.
|
2487
2584
|
class GoogleAppsCardV1SwitchControl
|
2488
2585
|
include Google::Apis::Core::Hashable
|
2489
2586
|
|
2490
|
-
# How the switch appears in the user interface.
|
2587
|
+
# How the switch appears in the user interface. [Google Workspace Add-ons and
|
2588
|
+
# Chat apps](https://developers.google.com/workspace/extend):
|
2491
2589
|
# Corresponds to the JSON property `controlType`
|
2492
2590
|
# @return [String]
|
2493
2591
|
attr_accessor :control_type
|
@@ -2501,7 +2599,8 @@ module Google
|
|
2501
2599
|
|
2502
2600
|
# An action that describes the behavior when the form is submitted. For example,
|
2503
2601
|
# you can invoke an Apps Script script to handle the form. If the action is
|
2504
|
-
# triggered, the form values are sent to the server.
|
2602
|
+
# triggered, the form values are sent to the server. [Google Workspace Add-ons
|
2603
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
2505
2604
|
# Corresponds to the JSON property `onChangeAction`
|
2506
2605
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
|
2507
2606
|
attr_accessor :on_change_action
|
@@ -2540,13 +2639,15 @@ module Google
|
|
2540
2639
|
# working with form inputs, see [Receive form data](https://developers.google.
|
2541
2640
|
# com/chat/ui/read-form-data). When you need to collect undefined or abstract
|
2542
2641
|
# data from users, use a text input. To collect defined or enumerated data from
|
2543
|
-
# users, use the SelectionInput widget.
|
2642
|
+
# users, use the SelectionInput widget. [Google Workspace Add-ons and Chat apps](
|
2643
|
+
# https://developers.google.com/workspace/extend):
|
2544
2644
|
class GoogleAppsCardV1TextInput
|
2545
2645
|
include Google::Apis::Core::Hashable
|
2546
2646
|
|
2547
2647
|
# An action that describes the behavior when the form is submitted. For example,
|
2548
2648
|
# you can invoke an Apps Script script to handle the form. If the action is
|
2549
|
-
# triggered, the form values are sent to the server.
|
2649
|
+
# triggered, the form values are sent to the server. [Google Workspace Add-ons
|
2650
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
2550
2651
|
# Corresponds to the JSON property `autoCompleteAction`
|
2551
2652
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
|
2552
2653
|
attr_accessor :auto_complete_action
|
@@ -2567,7 +2668,8 @@ module Google
|
|
2567
2668
|
# can make sense of. When referring to JavaScript, some users might enter `
|
2568
2669
|
# javascript` and others `java script`. Suggesting `JavaScript` can standardize
|
2569
2670
|
# how users interact with your app. When specified, `TextInput.type` is always `
|
2570
|
-
# SINGLE_LINE`, even if it's set to `MULTIPLE_LINE`.
|
2671
|
+
# SINGLE_LINE`, even if it's set to `MULTIPLE_LINE`. [Google Workspace Add-ons
|
2672
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
2571
2673
|
# Corresponds to the JSON property `initialSuggestions`
|
2572
2674
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Suggestions]
|
2573
2675
|
attr_accessor :initial_suggestions
|
@@ -2590,14 +2692,15 @@ module Google
|
|
2590
2692
|
|
2591
2693
|
# An action that describes the behavior when the form is submitted. For example,
|
2592
2694
|
# you can invoke an Apps Script script to handle the form. If the action is
|
2593
|
-
# triggered, the form values are sent to the server.
|
2695
|
+
# triggered, the form values are sent to the server. [Google Workspace Add-ons
|
2696
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
2594
2697
|
# Corresponds to the JSON property `onChangeAction`
|
2595
2698
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
|
2596
2699
|
attr_accessor :on_change_action
|
2597
2700
|
|
2598
2701
|
# Text that appears in the text input field when the field is empty. Use this
|
2599
2702
|
# text to prompt users to enter a value. For example, `Enter a number from 0 to
|
2600
|
-
# 100`.
|
2703
|
+
# 100`. [Google Chat apps](https://developers.google.com/chat):
|
2601
2704
|
# Corresponds to the JSON property `placeholderText`
|
2602
2705
|
# @return [String]
|
2603
2706
|
attr_accessor :placeholder_text
|
@@ -2638,7 +2741,9 @@ module Google
|
|
2638
2741
|
# paragraph). For more information about formatting text, see [Formatting text
|
2639
2742
|
# in Google Chat apps](https://developers.google.com/chat/format-messages#card-
|
2640
2743
|
# formatting) and [Formatting text in Google Workspace Add-ons](https://
|
2641
|
-
# developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
|
2744
|
+
# developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). [
|
2745
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
2746
|
+
# workspace/extend):
|
2642
2747
|
class GoogleAppsCardV1TextParagraph
|
2643
2748
|
include Google::Apis::Core::Hashable
|
2644
2749
|
|
@@ -2663,7 +2768,9 @@ module Google
|
|
2663
2768
|
include Google::Apis::Core::Hashable
|
2664
2769
|
|
2665
2770
|
# A list of buttons layed out horizontally. For an example in Google Chat apps,
|
2666
|
-
# see [Button list](https://developers.google.com/chat/ui/widgets/button-list).
|
2771
|
+
# see [Button list](https://developers.google.com/chat/ui/widgets/button-list). [
|
2772
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
2773
|
+
# workspace/extend):
|
2667
2774
|
# Corresponds to the JSON property `buttonList`
|
2668
2775
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ButtonList]
|
2669
2776
|
attr_accessor :button_list
|
@@ -2683,7 +2790,7 @@ module Google
|
|
2683
2790
|
# column wraps if the screen width is less than or equal to 300 pt. * On Android
|
2684
2791
|
# devices, the second column wraps if the screen width is less than or equal to
|
2685
2792
|
# 320 dp. To include more than 2 columns, or to use rows, use the `Grid` widget.
|
2686
|
-
#
|
2793
|
+
# [Google Chat apps](https://developers.google.com/chat):
|
2687
2794
|
# Corresponds to the JSON property `columns`
|
2688
2795
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Columns]
|
2689
2796
|
attr_accessor :columns
|
@@ -2692,7 +2799,8 @@ module Google
|
|
2692
2799
|
# Google Chat apps, see [Date time picker](https://developers.google.com/chat/ui/
|
2693
2800
|
# widgets/date-time-picker). Users can input text or use the picker to select
|
2694
2801
|
# dates and times. If users input an invalid date or time, the picker shows an
|
2695
|
-
# error that prompts users to input the information correctly.
|
2802
|
+
# error that prompts users to input the information correctly. [Google Workspace
|
2803
|
+
# Add-ons and Chat apps](https://developers.google.com/workspace/extend):
|
2696
2804
|
# Corresponds to the JSON property `dateTimePicker`
|
2697
2805
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker]
|
2698
2806
|
attr_accessor :date_time_picker
|
@@ -2700,15 +2808,17 @@ module Google
|
|
2700
2808
|
# A widget that displays text with optional decorations such as a label above or
|
2701
2809
|
# below the text, an icon in front of the text, a selection widget, or a button
|
2702
2810
|
# after the text. For an example in Google Chat apps, see [Decorated text](https:
|
2703
|
-
# //developers.google.com/chat/ui/widgets/decorated-text).
|
2811
|
+
# //developers.google.com/chat/ui/widgets/decorated-text). [Google Workspace Add-
|
2812
|
+
# ons and Chat apps](https://developers.google.com/workspace/extend):
|
2704
2813
|
# Corresponds to the JSON property `decoratedText`
|
2705
2814
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText]
|
2706
2815
|
attr_accessor :decorated_text
|
2707
2816
|
|
2708
2817
|
# Displays a divider between widgets as a horizontal line. For an example in
|
2709
2818
|
# Google Chat apps, see [Divider](https://developers.google.com/chat/ui/widgets/
|
2710
|
-
# divider).
|
2711
|
-
# ```
|
2819
|
+
# divider). [Google Workspace Add-ons and Chat apps](https://developers.google.
|
2820
|
+
# com/workspace/extend): For example, the following JSON creates a divider: ``` "
|
2821
|
+
# divider": `` ```
|
2712
2822
|
# Corresponds to the JSON property `divider`
|
2713
2823
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Divider]
|
2714
2824
|
attr_accessor :divider
|
@@ -2719,13 +2829,14 @@ module Google
|
|
2719
2829
|
# google.com/chat/ui/widgets/grid). A grid supports any number of columns and
|
2720
2830
|
# items. The number of rows is determined by items divided by columns. A grid
|
2721
2831
|
# with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has
|
2722
|
-
# 6 rows.
|
2723
|
-
#
|
2724
|
-
#
|
2725
|
-
# "
|
2726
|
-
#
|
2727
|
-
#
|
2728
|
-
#
|
2832
|
+
# 6 rows. [Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
2833
|
+
# workspace/extend): For example, the following JSON creates a 2 column grid
|
2834
|
+
# with a single item: ``` "grid": ` "title": "A fine collection of items", "
|
2835
|
+
# columnCount": 2, "borderStyle": ` "type": "STROKE", "cornerRadius": 4 `, "
|
2836
|
+
# items": [ ` "image": ` "imageUri": "https://www.example.com/image.png", "
|
2837
|
+
# cropStyle": ` "type": "SQUARE" `, "borderStyle": ` "type": "STROKE" ` `, "
|
2838
|
+
# title": "An item", "textAlignment": "CENTER" ` ], "onClick": ` "openLink": ` "
|
2839
|
+
# url": "https://www.example.com" ` ` ` ```
|
2729
2840
|
# Corresponds to the JSON property `grid`
|
2730
2841
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Grid]
|
2731
2842
|
attr_accessor :grid
|
@@ -2736,7 +2847,9 @@ module Google
|
|
2736
2847
|
attr_accessor :horizontal_alignment
|
2737
2848
|
|
2738
2849
|
# An image that is specified by a URL and can have an `onClick` action. For an
|
2739
|
-
# example, see [Image](https://developers.google.com/chat/ui/widgets/image).
|
2850
|
+
# example, see [Image](https://developers.google.com/chat/ui/widgets/image). [
|
2851
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
2852
|
+
# workspace/extend):
|
2740
2853
|
# Corresponds to the JSON property `image`
|
2741
2854
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Image]
|
2742
2855
|
attr_accessor :image
|
@@ -2748,7 +2861,8 @@ module Google
|
|
2748
2861
|
# . Chat apps can process the value of items that users select or input. For
|
2749
2862
|
# details about working with form inputs, see [Receive form data](https://
|
2750
2863
|
# developers.google.com/chat/ui/read-form-data). To collect undefined or
|
2751
|
-
# abstract data from users, use the TextInput widget.
|
2864
|
+
# abstract data from users, use the TextInput widget. [Google Workspace Add-ons
|
2865
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
2752
2866
|
# Corresponds to the JSON property `selectionInput`
|
2753
2867
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1SelectionInput]
|
2754
2868
|
attr_accessor :selection_input
|
@@ -2760,7 +2874,8 @@ module Google
|
|
2760
2874
|
# working with form inputs, see [Receive form data](https://developers.google.
|
2761
2875
|
# com/chat/ui/read-form-data). When you need to collect undefined or abstract
|
2762
2876
|
# data from users, use a text input. To collect defined or enumerated data from
|
2763
|
-
# users, use the SelectionInput widget.
|
2877
|
+
# users, use the SelectionInput widget. [Google Workspace Add-ons and Chat apps](
|
2878
|
+
# https://developers.google.com/workspace/extend):
|
2764
2879
|
# Corresponds to the JSON property `textInput`
|
2765
2880
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1TextInput]
|
2766
2881
|
attr_accessor :text_input
|
@@ -2770,7 +2885,9 @@ module Google
|
|
2770
2885
|
# paragraph). For more information about formatting text, see [Formatting text
|
2771
2886
|
# in Google Chat apps](https://developers.google.com/chat/format-messages#card-
|
2772
2887
|
# formatting) and [Formatting text in Google Workspace Add-ons](https://
|
2773
|
-
# developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
|
2888
|
+
# developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). [
|
2889
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
2890
|
+
# workspace/extend):
|
2774
2891
|
# Corresponds to the JSON property `textParagraph`
|
2775
2892
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph]
|
2776
2893
|
attr_accessor :text_paragraph
|
@@ -2795,12 +2912,15 @@ module Google
|
|
2795
2912
|
end
|
2796
2913
|
end
|
2797
2914
|
|
2798
|
-
# The supported widgets that you can include in a column.
|
2915
|
+
# The supported widgets that you can include in a column. [Google Chat apps](
|
2916
|
+
# https://developers.google.com/chat):
|
2799
2917
|
class GoogleAppsCardV1Widgets
|
2800
2918
|
include Google::Apis::Core::Hashable
|
2801
2919
|
|
2802
2920
|
# A list of buttons layed out horizontally. For an example in Google Chat apps,
|
2803
|
-
# see [Button list](https://developers.google.com/chat/ui/widgets/button-list).
|
2921
|
+
# see [Button list](https://developers.google.com/chat/ui/widgets/button-list). [
|
2922
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
2923
|
+
# workspace/extend):
|
2804
2924
|
# Corresponds to the JSON property `buttonList`
|
2805
2925
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ButtonList]
|
2806
2926
|
attr_accessor :button_list
|
@@ -2809,7 +2929,8 @@ module Google
|
|
2809
2929
|
# Google Chat apps, see [Date time picker](https://developers.google.com/chat/ui/
|
2810
2930
|
# widgets/date-time-picker). Users can input text or use the picker to select
|
2811
2931
|
# dates and times. If users input an invalid date or time, the picker shows an
|
2812
|
-
# error that prompts users to input the information correctly.
|
2932
|
+
# error that prompts users to input the information correctly. [Google Workspace
|
2933
|
+
# Add-ons and Chat apps](https://developers.google.com/workspace/extend):
|
2813
2934
|
# Corresponds to the JSON property `dateTimePicker`
|
2814
2935
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker]
|
2815
2936
|
attr_accessor :date_time_picker
|
@@ -2817,13 +2938,16 @@ module Google
|
|
2817
2938
|
# A widget that displays text with optional decorations such as a label above or
|
2818
2939
|
# below the text, an icon in front of the text, a selection widget, or a button
|
2819
2940
|
# after the text. For an example in Google Chat apps, see [Decorated text](https:
|
2820
|
-
# //developers.google.com/chat/ui/widgets/decorated-text).
|
2941
|
+
# //developers.google.com/chat/ui/widgets/decorated-text). [Google Workspace Add-
|
2942
|
+
# ons and Chat apps](https://developers.google.com/workspace/extend):
|
2821
2943
|
# Corresponds to the JSON property `decoratedText`
|
2822
2944
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText]
|
2823
2945
|
attr_accessor :decorated_text
|
2824
2946
|
|
2825
2947
|
# An image that is specified by a URL and can have an `onClick` action. For an
|
2826
|
-
# example, see [Image](https://developers.google.com/chat/ui/widgets/image).
|
2948
|
+
# example, see [Image](https://developers.google.com/chat/ui/widgets/image). [
|
2949
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
2950
|
+
# workspace/extend):
|
2827
2951
|
# Corresponds to the JSON property `image`
|
2828
2952
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Image]
|
2829
2953
|
attr_accessor :image
|
@@ -2835,7 +2959,8 @@ module Google
|
|
2835
2959
|
# . Chat apps can process the value of items that users select or input. For
|
2836
2960
|
# details about working with form inputs, see [Receive form data](https://
|
2837
2961
|
# developers.google.com/chat/ui/read-form-data). To collect undefined or
|
2838
|
-
# abstract data from users, use the TextInput widget.
|
2962
|
+
# abstract data from users, use the TextInput widget. [Google Workspace Add-ons
|
2963
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
2839
2964
|
# Corresponds to the JSON property `selectionInput`
|
2840
2965
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1SelectionInput]
|
2841
2966
|
attr_accessor :selection_input
|
@@ -2847,7 +2972,8 @@ module Google
|
|
2847
2972
|
# working with form inputs, see [Receive form data](https://developers.google.
|
2848
2973
|
# com/chat/ui/read-form-data). When you need to collect undefined or abstract
|
2849
2974
|
# data from users, use a text input. To collect defined or enumerated data from
|
2850
|
-
# users, use the SelectionInput widget.
|
2975
|
+
# users, use the SelectionInput widget. [Google Workspace Add-ons and Chat apps](
|
2976
|
+
# https://developers.google.com/workspace/extend):
|
2851
2977
|
# Corresponds to the JSON property `textInput`
|
2852
2978
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1TextInput]
|
2853
2979
|
attr_accessor :text_input
|
@@ -2857,7 +2983,9 @@ module Google
|
|
2857
2983
|
# paragraph). For more information about formatting text, see [Formatting text
|
2858
2984
|
# in Google Chat apps](https://developers.google.com/chat/format-messages#card-
|
2859
2985
|
# formatting) and [Formatting text in Google Workspace Add-ons](https://
|
2860
|
-
# developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
|
2986
|
+
# developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). [
|
2987
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
2988
|
+
# workspace/extend):
|
2861
2989
|
# Corresponds to the JSON property `textParagraph`
|
2862
2990
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph]
|
2863
2991
|
attr_accessor :text_paragraph
|
@@ -2899,16 +3027,16 @@ module Google
|
|
2899
3027
|
end
|
2900
3028
|
end
|
2901
3029
|
|
2902
|
-
#
|
2903
|
-
#
|
2904
|
-
#
|
3030
|
+
# For a `SelectionInput` widget that uses a multiselect menu, a data source from
|
3031
|
+
# a Google Workspace application. The data source populates selection items for
|
3032
|
+
# the multiselect menu. [Google Chat apps](https://developers.google.com/chat):
|
2905
3033
|
class HostAppDataSourceMarkup
|
2906
3034
|
include Google::Apis::Core::Hashable
|
2907
3035
|
|
2908
|
-
#
|
2909
|
-
#
|
2910
|
-
#
|
2911
|
-
#
|
3036
|
+
# For a `SelectionInput` widget that uses a multiselect menu, a data source from
|
3037
|
+
# Google Chat. The data source populates selection items for the multiselect
|
3038
|
+
# menu. For example, a user can select Google Chat spaces that they're a member
|
3039
|
+
# of. [Google Chat apps](https://developers.google.com/chat):
|
2912
3040
|
# Corresponds to the JSON property `chatDataSource`
|
2913
3041
|
# @return [Google::Apis::ChatV1::ChatClientDataSourceMarkup]
|
2914
3042
|
attr_accessor :chat_data_source
|
@@ -3262,13 +3390,19 @@ module Google
|
|
3262
3390
|
include Google::Apis::Core::Hashable
|
3263
3391
|
|
3264
3392
|
# Optional. Immutable. The creation time of the membership, such as when a
|
3265
|
-
# member joined or was invited to join a space.
|
3266
|
-
#
|
3267
|
-
# when used to import historical memberships in import mode spaces.
|
3393
|
+
# member joined or was invited to join a space. This field is output only,
|
3394
|
+
# except when used to import historical memberships in import mode spaces.
|
3268
3395
|
# Corresponds to the JSON property `createTime`
|
3269
3396
|
# @return [String]
|
3270
3397
|
attr_accessor :create_time
|
3271
3398
|
|
3399
|
+
# Optional. Immutable. The deletion time of the membership, such as when a
|
3400
|
+
# member left or was removed from a space. This field is output only, except
|
3401
|
+
# when used to import historical memberships in import mode spaces.
|
3402
|
+
# Corresponds to the JSON property `deleteTime`
|
3403
|
+
# @return [String]
|
3404
|
+
attr_accessor :delete_time
|
3405
|
+
|
3272
3406
|
# A Google Group in Google Chat.
|
3273
3407
|
# Corresponds to the JSON property `groupMember`
|
3274
3408
|
# @return [Google::Apis::ChatV1::Group]
|
@@ -3307,6 +3441,7 @@ module Google
|
|
3307
3441
|
# Update properties of this object
|
3308
3442
|
def update!(**args)
|
3309
3443
|
@create_time = args[:create_time] if args.key?(:create_time)
|
3444
|
+
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
3310
3445
|
@group_member = args[:group_member] if args.key?(:group_member)
|
3311
3446
|
@member = args[:member] if args.key?(:member)
|
3312
3447
|
@name = args[:name] if args.key?(:name)
|
@@ -3363,27 +3498,21 @@ module Google
|
|
3363
3498
|
# @return [Array<Google::Apis::ChatV1::CardWithId>]
|
3364
3499
|
attr_accessor :cards_v2
|
3365
3500
|
|
3366
|
-
# A custom
|
3367
|
-
#
|
3368
|
-
#
|
3369
|
-
#
|
3370
|
-
#
|
3371
|
-
#
|
3372
|
-
# Assigning a custom name doesn't replace the generated `name` field, the
|
3373
|
-
# message's resource name. Instead, it sets the custom name as the `
|
3374
|
-
# clientAssignedMessageId` field, which you can reference while processing later
|
3375
|
-
# operations, like updating or deleting the message. For example usage, see [
|
3376
|
-
# Name a created message](https://developers.google.com/chat/api/guides/v1/
|
3377
|
-
# messages/create#name_a_created_message).
|
3501
|
+
# Optional. A custom ID for the message. You can use field to identify a message,
|
3502
|
+
# or to get, delete, or update a message. To set a custom ID, specify the [`
|
3503
|
+
# messageId`](https://developers.google.com/chat/api/reference/rest/v1/spaces.
|
3504
|
+
# messages/create#body.QUERY_PARAMETERS.message_id) field when you create the
|
3505
|
+
# message. For details, see [Name a message](https://developers.google.com/chat/
|
3506
|
+
# api/guides/v1/messages/create#name_a_created_message).
|
3378
3507
|
# Corresponds to the JSON property `clientAssignedMessageId`
|
3379
3508
|
# @return [String]
|
3380
3509
|
attr_accessor :client_assigned_message_id
|
3381
3510
|
|
3382
|
-
# For spaces created in Chat, the time at which the message
|
3383
|
-
# field is output only, except when used in
|
3384
|
-
#
|
3385
|
-
#
|
3386
|
-
#
|
3511
|
+
# Optional. Immutable. For spaces created in Chat, the time at which the message
|
3512
|
+
# was created. This field is output only, except when used in import mode spaces.
|
3513
|
+
# For import mode spaces, set this field to the historical timestamp at which
|
3514
|
+
# the message was created in the source in order to preserve the original
|
3515
|
+
# creation time.
|
3387
3516
|
# Corresponds to the JSON property `createTime`
|
3388
3517
|
# @return [String]
|
3389
3518
|
attr_accessor :create_time
|
@@ -3440,8 +3569,15 @@ module Google
|
|
3440
3569
|
# @return [Google::Apis::ChatV1::MatchedUrl]
|
3441
3570
|
attr_accessor :matched_url
|
3442
3571
|
|
3443
|
-
# Resource name
|
3444
|
-
#
|
3572
|
+
# Resource name of the message. Format: `spaces/`space`/messages/`message``
|
3573
|
+
# Where ``space`` is the ID of the space where the message is posted and ``
|
3574
|
+
# message`` is a system-assigned ID for the message. For example, `spaces/
|
3575
|
+
# AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. If you set a custom ID when you
|
3576
|
+
# create a message, you can use this ID to specify the message in a request by
|
3577
|
+
# replacing ``message`` with the value from the `clientAssignedMessageId` field.
|
3578
|
+
# For example, `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details,
|
3579
|
+
# see [Name a message](https://developers.google.com/chat/api/guides/v1/messages/
|
3580
|
+
# create#name_a_created_message).
|
3445
3581
|
# Corresponds to the JSON property `name`
|
3446
3582
|
# @return [String]
|
3447
3583
|
attr_accessor :name
|
@@ -3832,6 +3968,15 @@ module Google
|
|
3832
3968
|
attr_accessor :admin_installed
|
3833
3969
|
alias_method :admin_installed?, :admin_installed
|
3834
3970
|
|
3971
|
+
# Optional. Immutable. For spaces created in Chat, the time the space was
|
3972
|
+
# created. This field is output only, except when used in import mode spaces.
|
3973
|
+
# For import mode spaces, set this field to the historical timestamp at which
|
3974
|
+
# the space was created in the source in order to preserve the original creation
|
3975
|
+
# time. Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`.
|
3976
|
+
# Corresponds to the JSON property `createTime`
|
3977
|
+
# @return [String]
|
3978
|
+
attr_accessor :create_time
|
3979
|
+
|
3835
3980
|
# The space's display name. Required when [creating a space](https://developers.
|
3836
3981
|
# google.com/chat/api/reference/rest/v1/spaces/create). If you receive the error
|
3837
3982
|
# message `ALREADY_EXISTS` when creating a space or updating the `displayName`,
|
@@ -3855,6 +4000,14 @@ module Google
|
|
3855
4000
|
attr_accessor :external_user_allowed
|
3856
4001
|
alias_method :external_user_allowed?, :external_user_allowed
|
3857
4002
|
|
4003
|
+
# Optional. Whether this space is created in `Import Mode` as part of a data
|
4004
|
+
# migration into Google Workspace. While spaces are being imported, they aren't
|
4005
|
+
# visible to users until the import is complete.
|
4006
|
+
# Corresponds to the JSON property `importMode`
|
4007
|
+
# @return [Boolean]
|
4008
|
+
attr_accessor :import_mode
|
4009
|
+
alias_method :import_mode?, :import_mode
|
4010
|
+
|
3858
4011
|
# Resource name of the space. Format: `spaces/`space``
|
3859
4012
|
# Corresponds to the JSON property `name`
|
3860
4013
|
# @return [String]
|
@@ -3906,8 +4059,10 @@ module Google
|
|
3906
4059
|
# Update properties of this object
|
3907
4060
|
def update!(**args)
|
3908
4061
|
@admin_installed = args[:admin_installed] if args.key?(:admin_installed)
|
4062
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
3909
4063
|
@display_name = args[:display_name] if args.key?(:display_name)
|
3910
4064
|
@external_user_allowed = args[:external_user_allowed] if args.key?(:external_user_allowed)
|
4065
|
+
@import_mode = args[:import_mode] if args.key?(:import_mode)
|
3911
4066
|
@name = args[:name] if args.key?(:name)
|
3912
4067
|
@single_user_bot_dm = args[:single_user_bot_dm] if args.key?(:single_user_bot_dm)
|
3913
4068
|
@space_details = args[:space_details] if args.key?(:space_details)
|
@@ -3920,7 +4075,8 @@ module Google
|
|
3920
4075
|
end
|
3921
4076
|
|
3922
4077
|
# A data source that populates Google Chat spaces as selection items for a
|
3923
|
-
# multiselect menu. Only populates spaces that the user is a member of.
|
4078
|
+
# multiselect menu. Only populates spaces that the user is a member of. [Google
|
4079
|
+
# Chat apps](https://developers.google.com/chat):
|
3924
4080
|
class SpaceDataSource
|
3925
4081
|
include Google::Apis::Core::Hashable
|
3926
4082
|
|