google-apis-chat_v1 0.112.0 → 0.114.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 +8 -0
- data/lib/google/apis/chat_v1/classes.rb +200 -61
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +51 -0
- data/lib/google/apis/chat_v1/service.rb +16 -12
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6534846f3ccc59dc9b902f25248b4a3ee4d6344d80bbde106bda3d42a8c6e893
|
4
|
+
data.tar.gz: 3dbcd9623edbff8392de73481731cb40376453605488edf0de57e6edbd1f995c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9b1fce2d20c36ddf3095a276421d1695aae25f003d941281b4bb5046dd4e454f87a241cc2eefef820b90764738df92b129f635d14ff001592bd4cb19f30abbc
|
7
|
+
data.tar.gz: 49196ca0cee03b0bc1d4a5beaea8184da529110d376af14a67f7cdf7964bb9010b9b0a7b2b3f5eaba6f63e809a4dd24bbc2bfcdc828f6e2ef34c02eba8119c1a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-chat_v1
|
2
2
|
|
3
|
+
### v0.114.0 (2024-12-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241210
|
6
|
+
|
7
|
+
### v0.113.0 (2024-12-08)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20241203
|
10
|
+
|
3
11
|
### v0.112.0 (2024-12-02)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20241124
|
@@ -500,21 +500,24 @@ module Google
|
|
500
500
|
# components of a card or dialog](https://developers.google.com/workspace/chat/
|
501
501
|
# design-components-card-dialog). * For Google Workspace Add-ons, see [Card-
|
502
502
|
# based interfaces](https://developers.google.com/apps-script/add-ons/concepts/
|
503
|
-
# cards).
|
504
|
-
#
|
505
|
-
#
|
506
|
-
#
|
507
|
-
#
|
508
|
-
#
|
509
|
-
#
|
510
|
-
#
|
511
|
-
#
|
512
|
-
#
|
513
|
-
# "
|
514
|
-
#
|
515
|
-
#
|
516
|
-
#
|
517
|
-
#
|
503
|
+
# cards). Note: You can add up to 100 widgets per card. Any widgets beyond this
|
504
|
+
# limit are ignored. This limit applies to both card messages and dialogs in
|
505
|
+
# Google Chat apps, and to cards in Google Workspace Add-ons. **Example: Card
|
506
|
+
# message for a Google Chat app** ![Example contact card](https://developers.
|
507
|
+
# google.com/workspace/chat/images/card_api_reference.png) To create the sample
|
508
|
+
# card message in Google Chat, use the following JSON: ``` ` "cardsV2": [ ` "
|
509
|
+
# cardId": "unique-card-id", "card": ` "header": ` "title": "Sasha", "subtitle":
|
510
|
+
# "Software Engineer", "imageUrl": "https://developers.google.com/workspace/chat/
|
511
|
+
# images/quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText": "
|
512
|
+
# Avatar for Sasha" `, "sections": [ ` "header": "Contact Info", "collapsible":
|
513
|
+
# true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "
|
514
|
+
# startIcon": ` "knownIcon": "EMAIL" `, "text": "sasha@example.com" ` `, ` "
|
515
|
+
# decoratedText": ` "startIcon": ` "knownIcon": "PERSON" `, "text": "Online" ` `,
|
516
|
+
# ` "decoratedText": ` "startIcon": ` "knownIcon": "PHONE" `, "text": "+1 (555)
|
517
|
+
# 555-1234" ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "onClick": ` "
|
518
|
+
# openLink": ` "url": "https://example.com/share" ` ` `, ` "text": "Edit", "
|
519
|
+
# onClick": ` "action": ` "function": "goToView", "parameters": [ ` "key": "
|
520
|
+
# viewType", "value": "EDIT" ` ] ` ` ` ] ` ` ] ` ] ` ` ] ` ```
|
518
521
|
# Corresponds to the JSON property `card`
|
519
522
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
|
520
523
|
attr_accessor :card
|
@@ -1045,21 +1048,24 @@ module Google
|
|
1045
1048
|
# components of a card or dialog](https://developers.google.com/workspace/chat/
|
1046
1049
|
# design-components-card-dialog). * For Google Workspace Add-ons, see [Card-
|
1047
1050
|
# based interfaces](https://developers.google.com/apps-script/add-ons/concepts/
|
1048
|
-
# cards).
|
1049
|
-
#
|
1050
|
-
#
|
1051
|
-
#
|
1052
|
-
#
|
1053
|
-
#
|
1054
|
-
#
|
1055
|
-
#
|
1056
|
-
#
|
1057
|
-
#
|
1058
|
-
# "
|
1059
|
-
#
|
1060
|
-
#
|
1061
|
-
#
|
1062
|
-
#
|
1051
|
+
# cards). Note: You can add up to 100 widgets per card. Any widgets beyond this
|
1052
|
+
# limit are ignored. This limit applies to both card messages and dialogs in
|
1053
|
+
# Google Chat apps, and to cards in Google Workspace Add-ons. **Example: Card
|
1054
|
+
# message for a Google Chat app** ![Example contact card](https://developers.
|
1055
|
+
# google.com/workspace/chat/images/card_api_reference.png) To create the sample
|
1056
|
+
# card message in Google Chat, use the following JSON: ``` ` "cardsV2": [ ` "
|
1057
|
+
# cardId": "unique-card-id", "card": ` "header": ` "title": "Sasha", "subtitle":
|
1058
|
+
# "Software Engineer", "imageUrl": "https://developers.google.com/workspace/chat/
|
1059
|
+
# images/quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText": "
|
1060
|
+
# Avatar for Sasha" `, "sections": [ ` "header": "Contact Info", "collapsible":
|
1061
|
+
# true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "
|
1062
|
+
# startIcon": ` "knownIcon": "EMAIL" `, "text": "sasha@example.com" ` `, ` "
|
1063
|
+
# decoratedText": ` "startIcon": ` "knownIcon": "PERSON" `, "text": "Online" ` `,
|
1064
|
+
# ` "decoratedText": ` "startIcon": ` "knownIcon": "PHONE" `, "text": "+1 (555)
|
1065
|
+
# 555-1234" ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "onClick": ` "
|
1066
|
+
# openLink": ` "url": "https://example.com/share" ` ` `, ` "text": "Edit", "
|
1067
|
+
# onClick": ` "action": ` "function": "goToView", "parameters": [ ` "key": "
|
1068
|
+
# viewType", "value": "EDIT" ` ] ` ` ` ] ` ` ] ` ] ` ` ] ` ```
|
1063
1069
|
# Corresponds to the JSON property `body`
|
1064
1070
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
|
1065
1071
|
attr_accessor :body
|
@@ -1573,21 +1579,24 @@ module Google
|
|
1573
1579
|
# components of a card or dialog](https://developers.google.com/workspace/chat/
|
1574
1580
|
# design-components-card-dialog). * For Google Workspace Add-ons, see [Card-
|
1575
1581
|
# based interfaces](https://developers.google.com/apps-script/add-ons/concepts/
|
1576
|
-
# cards).
|
1577
|
-
#
|
1578
|
-
#
|
1579
|
-
#
|
1580
|
-
#
|
1581
|
-
#
|
1582
|
-
#
|
1583
|
-
#
|
1584
|
-
#
|
1585
|
-
#
|
1586
|
-
# "
|
1587
|
-
#
|
1588
|
-
#
|
1589
|
-
#
|
1590
|
-
#
|
1582
|
+
# cards). Note: You can add up to 100 widgets per card. Any widgets beyond this
|
1583
|
+
# limit are ignored. This limit applies to both card messages and dialogs in
|
1584
|
+
# Google Chat apps, and to cards in Google Workspace Add-ons. **Example: Card
|
1585
|
+
# message for a Google Chat app** ![Example contact card](https://developers.
|
1586
|
+
# google.com/workspace/chat/images/card_api_reference.png) To create the sample
|
1587
|
+
# card message in Google Chat, use the following JSON: ``` ` "cardsV2": [ ` "
|
1588
|
+
# cardId": "unique-card-id", "card": ` "header": ` "title": "Sasha", "subtitle":
|
1589
|
+
# "Software Engineer", "imageUrl": "https://developers.google.com/workspace/chat/
|
1590
|
+
# images/quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText": "
|
1591
|
+
# Avatar for Sasha" `, "sections": [ ` "header": "Contact Info", "collapsible":
|
1592
|
+
# true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "
|
1593
|
+
# startIcon": ` "knownIcon": "EMAIL" `, "text": "sasha@example.com" ` `, ` "
|
1594
|
+
# decoratedText": ` "startIcon": ` "knownIcon": "PERSON" `, "text": "Online" ` `,
|
1595
|
+
# ` "decoratedText": ` "startIcon": ` "knownIcon": "PHONE" `, "text": "+1 (555)
|
1596
|
+
# 555-1234" ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "onClick": ` "
|
1597
|
+
# openLink": ` "url": "https://example.com/share" ` ` `, ` "text": "Edit", "
|
1598
|
+
# onClick": ` "action": ` "function": "goToView", "parameters": [ ` "key": "
|
1599
|
+
# viewType", "value": "EDIT" ` ] ` ` ` ] ` ` ] ` ] ` ` ] ` ```
|
1591
1600
|
class GoogleAppsCardV1Card
|
1592
1601
|
include Google::Apis::Core::Hashable
|
1593
1602
|
|
@@ -1798,6 +1807,62 @@ module Google
|
|
1798
1807
|
end
|
1799
1808
|
end
|
1800
1809
|
|
1810
|
+
# [Developer Preview](https://developers.google.com/workspace/preview): A
|
1811
|
+
# carousel, also known as a slider, rotates and displays a list of widgets in a
|
1812
|
+
# slideshow format, with buttons navigating to the previous or next widget. For
|
1813
|
+
# example, this is a JSON representation of a carousel that contains three text
|
1814
|
+
# paragraph widgets. ``` ` "carouselCards": [ ` "widgets": [ ` "textParagraph": `
|
1815
|
+
# "text": "First text paragraph in carousel", ` ` ] `, ` "widgets": [ ` "
|
1816
|
+
# textParagraph": ` "text": "Second text paragraph in carousel", ` ` ] `, ` "
|
1817
|
+
# widgets": [ ` "textParagraph": ` "text": "Third text paragraph in carousel", `
|
1818
|
+
# ` ] ` ] ` ``` [Google Chat apps](https://developers.google.com/workspace/chat):
|
1819
|
+
class GoogleAppsCardV1Carousel
|
1820
|
+
include Google::Apis::Core::Hashable
|
1821
|
+
|
1822
|
+
# A list of cards included in the carousel.
|
1823
|
+
# Corresponds to the JSON property `carouselCards`
|
1824
|
+
# @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1CarouselCard>]
|
1825
|
+
attr_accessor :carousel_cards
|
1826
|
+
|
1827
|
+
def initialize(**args)
|
1828
|
+
update!(**args)
|
1829
|
+
end
|
1830
|
+
|
1831
|
+
# Update properties of this object
|
1832
|
+
def update!(**args)
|
1833
|
+
@carousel_cards = args[:carousel_cards] if args.key?(:carousel_cards)
|
1834
|
+
end
|
1835
|
+
end
|
1836
|
+
|
1837
|
+
# [Developer Preview](https://developers.google.com/workspace/preview): A card
|
1838
|
+
# that can be displayed as a carousel item. [Google Chat apps](https://
|
1839
|
+
# developers.google.com/workspace/chat):
|
1840
|
+
class GoogleAppsCardV1CarouselCard
|
1841
|
+
include Google::Apis::Core::Hashable
|
1842
|
+
|
1843
|
+
# A list of widgets displayed at the bottom of the carousel card. The widgets
|
1844
|
+
# are displayed in the order that they are specified.
|
1845
|
+
# Corresponds to the JSON property `footerWidgets`
|
1846
|
+
# @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1NestedWidget>]
|
1847
|
+
attr_accessor :footer_widgets
|
1848
|
+
|
1849
|
+
# A list of widgets displayed in the carousel card. The widgets are displayed in
|
1850
|
+
# the order that they are specified.
|
1851
|
+
# Corresponds to the JSON property `widgets`
|
1852
|
+
# @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1NestedWidget>]
|
1853
|
+
attr_accessor :widgets
|
1854
|
+
|
1855
|
+
def initialize(**args)
|
1856
|
+
update!(**args)
|
1857
|
+
end
|
1858
|
+
|
1859
|
+
# Update properties of this object
|
1860
|
+
def update!(**args)
|
1861
|
+
@footer_widgets = args[:footer_widgets] if args.key?(:footer_widgets)
|
1862
|
+
@widgets = args[:widgets] if args.key?(:widgets)
|
1863
|
+
end
|
1864
|
+
end
|
1865
|
+
|
1801
1866
|
# A text, icon, or text and icon chip that users can click. [Google Chat apps](
|
1802
1867
|
# https://developers.google.com/workspace/chat):
|
1803
1868
|
class GoogleAppsCardV1Chip
|
@@ -2554,6 +2619,54 @@ module Google
|
|
2554
2619
|
end
|
2555
2620
|
end
|
2556
2621
|
|
2622
|
+
# [Developer Preview](https://developers.google.com/workspace/preview): A list
|
2623
|
+
# of widgets that can be displayed in a containing layout, such as a `
|
2624
|
+
# CarouselCard`. [Google Chat apps](https://developers.google.com/workspace/chat)
|
2625
|
+
# :
|
2626
|
+
class GoogleAppsCardV1NestedWidget
|
2627
|
+
include Google::Apis::Core::Hashable
|
2628
|
+
|
2629
|
+
# A list of buttons layed out horizontally. For an example in Google Chat apps,
|
2630
|
+
# see [Add a button](https://developers.google.com/workspace/chat/design-
|
2631
|
+
# interactive-card-dialog#add_a_button). [Google Workspace Add-ons and Chat apps]
|
2632
|
+
# (https://developers.google.com/workspace/extend):
|
2633
|
+
# Corresponds to the JSON property `buttonList`
|
2634
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ButtonList]
|
2635
|
+
attr_accessor :button_list
|
2636
|
+
|
2637
|
+
# An image that is specified by a URL and can have an `onClick` action. For an
|
2638
|
+
# example, see [Add an image](https://developers.google.com/workspace/chat/add-
|
2639
|
+
# text-image-card-dialog#add_an_image). [Google Workspace Add-ons and Chat apps](
|
2640
|
+
# https://developers.google.com/workspace/extend):
|
2641
|
+
# Corresponds to the JSON property `image`
|
2642
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Image]
|
2643
|
+
attr_accessor :image
|
2644
|
+
|
2645
|
+
# A paragraph of text that supports formatting. For an example in Google Chat
|
2646
|
+
# apps, see [Add a paragraph of formatted text](https://developers.google.com/
|
2647
|
+
# workspace/chat/add-text-image-card-dialog#add_a_paragraph_of_formatted_text).
|
2648
|
+
# For more information about formatting text, see [Formatting text in Google
|
2649
|
+
# Chat apps](https://developers.google.com/workspace/chat/format-messages#card-
|
2650
|
+
# formatting) and [Formatting text in Google Workspace Add-ons](https://
|
2651
|
+
# developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). [
|
2652
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
2653
|
+
# workspace/extend):
|
2654
|
+
# Corresponds to the JSON property `textParagraph`
|
2655
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph]
|
2656
|
+
attr_accessor :text_paragraph
|
2657
|
+
|
2658
|
+
def initialize(**args)
|
2659
|
+
update!(**args)
|
2660
|
+
end
|
2661
|
+
|
2662
|
+
# Update properties of this object
|
2663
|
+
def update!(**args)
|
2664
|
+
@button_list = args[:button_list] if args.key?(:button_list)
|
2665
|
+
@image = args[:image] if args.key?(:image)
|
2666
|
+
@text_paragraph = args[:text_paragraph] if args.key?(:text_paragraph)
|
2667
|
+
end
|
2668
|
+
end
|
2669
|
+
|
2557
2670
|
# Represents how to respond when users click an interactive element on a card,
|
2558
2671
|
# such as a button. [Google Workspace Add-ons and Chat apps](https://developers.
|
2559
2672
|
# google.com/workspace/extend):
|
@@ -2577,21 +2690,24 @@ module Google
|
|
2577
2690
|
# components of a card or dialog](https://developers.google.com/workspace/chat/
|
2578
2691
|
# design-components-card-dialog). * For Google Workspace Add-ons, see [Card-
|
2579
2692
|
# based interfaces](https://developers.google.com/apps-script/add-ons/concepts/
|
2580
|
-
# cards).
|
2581
|
-
#
|
2582
|
-
#
|
2583
|
-
#
|
2584
|
-
#
|
2585
|
-
#
|
2586
|
-
#
|
2587
|
-
#
|
2588
|
-
#
|
2589
|
-
#
|
2590
|
-
# "
|
2591
|
-
#
|
2592
|
-
#
|
2593
|
-
#
|
2594
|
-
#
|
2693
|
+
# cards). Note: You can add up to 100 widgets per card. Any widgets beyond this
|
2694
|
+
# limit are ignored. This limit applies to both card messages and dialogs in
|
2695
|
+
# Google Chat apps, and to cards in Google Workspace Add-ons. **Example: Card
|
2696
|
+
# message for a Google Chat app** ![Example contact card](https://developers.
|
2697
|
+
# google.com/workspace/chat/images/card_api_reference.png) To create the sample
|
2698
|
+
# card message in Google Chat, use the following JSON: ``` ` "cardsV2": [ ` "
|
2699
|
+
# cardId": "unique-card-id", "card": ` "header": ` "title": "Sasha", "subtitle":
|
2700
|
+
# "Software Engineer", "imageUrl": "https://developers.google.com/workspace/chat/
|
2701
|
+
# images/quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText": "
|
2702
|
+
# Avatar for Sasha" `, "sections": [ ` "header": "Contact Info", "collapsible":
|
2703
|
+
# true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "
|
2704
|
+
# startIcon": ` "knownIcon": "EMAIL" `, "text": "sasha@example.com" ` `, ` "
|
2705
|
+
# decoratedText": ` "startIcon": ` "knownIcon": "PERSON" `, "text": "Online" ` `,
|
2706
|
+
# ` "decoratedText": ` "startIcon": ` "knownIcon": "PHONE" `, "text": "+1 (555)
|
2707
|
+
# 555-1234" ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "onClick": ` "
|
2708
|
+
# openLink": ` "url": "https://example.com/share" ` ` `, ` "text": "Edit", "
|
2709
|
+
# onClick": ` "action": ` "function": "goToView", "parameters": [ ` "key": "
|
2710
|
+
# viewType", "value": "EDIT" ` ] ` ` ` ] ` ` ] ` ] ` ` ] ` ```
|
2595
2711
|
# Corresponds to the JSON property `card`
|
2596
2712
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
|
2597
2713
|
attr_accessor :card
|
@@ -3245,6 +3361,19 @@ module Google
|
|
3245
3361
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ButtonList]
|
3246
3362
|
attr_accessor :button_list
|
3247
3363
|
|
3364
|
+
# [Developer Preview](https://developers.google.com/workspace/preview): A
|
3365
|
+
# carousel, also known as a slider, rotates and displays a list of widgets in a
|
3366
|
+
# slideshow format, with buttons navigating to the previous or next widget. For
|
3367
|
+
# example, this is a JSON representation of a carousel that contains three text
|
3368
|
+
# paragraph widgets. ``` ` "carouselCards": [ ` "widgets": [ ` "textParagraph": `
|
3369
|
+
# "text": "First text paragraph in carousel", ` ` ] `, ` "widgets": [ ` "
|
3370
|
+
# textParagraph": ` "text": "Second text paragraph in carousel", ` ` ] `, ` "
|
3371
|
+
# widgets": [ ` "textParagraph": ` "text": "Third text paragraph in carousel", `
|
3372
|
+
# ` ] ` ] ` ``` [Google Chat apps](https://developers.google.com/workspace/chat):
|
3373
|
+
# Corresponds to the JSON property `carousel`
|
3374
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Carousel]
|
3375
|
+
attr_accessor :carousel
|
3376
|
+
|
3248
3377
|
# A list of chips layed out horizontally, which can either scroll horizontally
|
3249
3378
|
# or wrap to the next line. [Google Chat apps](https://developers.google.com/
|
3250
3379
|
# workspace/chat):
|
@@ -3389,6 +3518,7 @@ module Google
|
|
3389
3518
|
# Update properties of this object
|
3390
3519
|
def update!(**args)
|
3391
3520
|
@button_list = args[:button_list] if args.key?(:button_list)
|
3521
|
+
@carousel = args[:carousel] if args.key?(:carousel)
|
3392
3522
|
@chip_list = args[:chip_list] if args.key?(:chip_list)
|
3393
3523
|
@columns = args[:columns] if args.key?(:columns)
|
3394
3524
|
@date_time_picker = args[:date_time_picker] if args.key?(:date_time_picker)
|
@@ -4901,7 +5031,7 @@ module Google
|
|
4901
5031
|
|
4902
5032
|
# Optional. The Google Chat users or groups to invite to join the space. Omit
|
4903
5033
|
# the calling user, as they are added automatically. The set currently allows up
|
4904
|
-
# to
|
5034
|
+
# to 49 memberships (in addition to the caller). For human membership, the `
|
4905
5035
|
# Membership.member` field must contain a `user` with `name` populated (format: `
|
4906
5036
|
# users/`user``) and `type` set to `User.Type.HUMAN`. You can only add human
|
4907
5037
|
# users when setting up a space (adding Chat apps is only supported for direct
|
@@ -5077,6 +5207,14 @@ module Google
|
|
5077
5207
|
attr_accessor :import_mode
|
5078
5208
|
alias_method :import_mode?, :import_mode
|
5079
5209
|
|
5210
|
+
# Output only. The time when the space will be automatically deleted by the
|
5211
|
+
# system if it remains in import mode. Each space created in import mode must
|
5212
|
+
# exit this mode before this expire time using `spaces.completeImport`. This
|
5213
|
+
# field is only populated for spaces that were created with import mode.
|
5214
|
+
# Corresponds to the JSON property `importModeExpireTime`
|
5215
|
+
# @return [String]
|
5216
|
+
attr_accessor :import_mode_expire_time
|
5217
|
+
|
5080
5218
|
# Output only. Timestamp of the last message in the space.
|
5081
5219
|
# Corresponds to the JSON property `lastActiveTime`
|
5082
5220
|
# @return [String]
|
@@ -5169,6 +5307,7 @@ module Google
|
|
5169
5307
|
@display_name = args[:display_name] if args.key?(:display_name)
|
5170
5308
|
@external_user_allowed = args[:external_user_allowed] if args.key?(:external_user_allowed)
|
5171
5309
|
@import_mode = args[:import_mode] if args.key?(:import_mode)
|
5310
|
+
@import_mode_expire_time = args[:import_mode_expire_time] if args.key?(:import_mode_expire_time)
|
5172
5311
|
@last_active_time = args[:last_active_time] if args.key?(:last_active_time)
|
5173
5312
|
@membership_count = args[:membership_count] if args.key?(:membership_count)
|
5174
5313
|
@name = args[:name] if args.key?(:name)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ChatV1
|
18
18
|
# Version of the google-apis-chat_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.114.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241210"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -280,6 +280,18 @@ module Google
|
|
280
280
|
include Google::Apis::Core::JsonObjectSupport
|
281
281
|
end
|
282
282
|
|
283
|
+
class GoogleAppsCardV1Carousel
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
289
|
+
class GoogleAppsCardV1CarouselCard
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
|
+
|
292
|
+
include Google::Apis::Core::JsonObjectSupport
|
293
|
+
end
|
294
|
+
|
283
295
|
class GoogleAppsCardV1Chip
|
284
296
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
297
|
|
@@ -370,6 +382,12 @@ module Google
|
|
370
382
|
include Google::Apis::Core::JsonObjectSupport
|
371
383
|
end
|
372
384
|
|
385
|
+
class GoogleAppsCardV1NestedWidget
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
|
+
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
389
|
+
end
|
390
|
+
|
373
391
|
class GoogleAppsCardV1OnClick
|
374
392
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
393
|
|
@@ -1286,6 +1304,24 @@ module Google
|
|
1286
1304
|
end
|
1287
1305
|
end
|
1288
1306
|
|
1307
|
+
class GoogleAppsCardV1Carousel
|
1308
|
+
# @private
|
1309
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1310
|
+
collection :carousel_cards, as: 'carouselCards', class: Google::Apis::ChatV1::GoogleAppsCardV1CarouselCard, decorator: Google::Apis::ChatV1::GoogleAppsCardV1CarouselCard::Representation
|
1311
|
+
|
1312
|
+
end
|
1313
|
+
end
|
1314
|
+
|
1315
|
+
class GoogleAppsCardV1CarouselCard
|
1316
|
+
# @private
|
1317
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1318
|
+
collection :footer_widgets, as: 'footerWidgets', class: Google::Apis::ChatV1::GoogleAppsCardV1NestedWidget, decorator: Google::Apis::ChatV1::GoogleAppsCardV1NestedWidget::Representation
|
1319
|
+
|
1320
|
+
collection :widgets, as: 'widgets', class: Google::Apis::ChatV1::GoogleAppsCardV1NestedWidget, decorator: Google::Apis::ChatV1::GoogleAppsCardV1NestedWidget::Representation
|
1321
|
+
|
1322
|
+
end
|
1323
|
+
end
|
1324
|
+
|
1289
1325
|
class GoogleAppsCardV1Chip
|
1290
1326
|
# @private
|
1291
1327
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1458,6 +1494,18 @@ module Google
|
|
1458
1494
|
end
|
1459
1495
|
end
|
1460
1496
|
|
1497
|
+
class GoogleAppsCardV1NestedWidget
|
1498
|
+
# @private
|
1499
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1500
|
+
property :button_list, as: 'buttonList', class: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList::Representation
|
1501
|
+
|
1502
|
+
property :image, as: 'image', class: Google::Apis::ChatV1::GoogleAppsCardV1Image, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Image::Representation
|
1503
|
+
|
1504
|
+
property :text_paragraph, as: 'textParagraph', class: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph, decorator: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph::Representation
|
1505
|
+
|
1506
|
+
end
|
1507
|
+
end
|
1508
|
+
|
1461
1509
|
class GoogleAppsCardV1OnClick
|
1462
1510
|
# @private
|
1463
1511
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1613,6 +1661,8 @@ module Google
|
|
1613
1661
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1614
1662
|
property :button_list, as: 'buttonList', class: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList::Representation
|
1615
1663
|
|
1664
|
+
property :carousel, as: 'carousel', class: Google::Apis::ChatV1::GoogleAppsCardV1Carousel, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Carousel::Representation
|
1665
|
+
|
1616
1666
|
property :chip_list, as: 'chipList', class: Google::Apis::ChatV1::GoogleAppsCardV1ChipList, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ChipList::Representation
|
1617
1667
|
|
1618
1668
|
property :columns, as: 'columns', class: Google::Apis::ChatV1::GoogleAppsCardV1Columns, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Columns::Representation
|
@@ -2128,6 +2178,7 @@ module Google
|
|
2128
2178
|
property :display_name, as: 'displayName'
|
2129
2179
|
property :external_user_allowed, as: 'externalUserAllowed'
|
2130
2180
|
property :import_mode, as: 'importMode'
|
2181
|
+
property :import_mode_expire_time, as: 'importModeExpireTime'
|
2131
2182
|
property :last_active_time, as: 'lastActiveTime'
|
2132
2183
|
property :membership_count, as: 'membershipCount', class: Google::Apis::ChatV1::MembershipCount, decorator: Google::Apis::ChatV1::MembershipCount::Representation
|
2133
2184
|
|
@@ -178,19 +178,23 @@ module Google
|
|
178
178
|
execute_or_queue_command(command, &block)
|
179
179
|
end
|
180
180
|
|
181
|
-
# Creates a space
|
182
|
-
#
|
183
|
-
#
|
184
|
-
# message `ALREADY_EXISTS` when creating a space, try a different `displayName`.
|
185
|
-
# An existing space within the Google Workspace organization might already use
|
186
|
-
# this display name. Supports the following types of [authentication](https://
|
187
|
-
# developers.google.com/workspace/chat/authenticate-authorize): - [App
|
181
|
+
# Creates a space. Can be used to create a named space, or a group chat in `
|
182
|
+
# Import mode`. For an example, see [Create a space](https://developers.google.
|
183
|
+
# com/workspace/chat/create-spaces). Supports the following types of [
|
188
184
|
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
189
|
-
# authorize
|
190
|
-
#
|
191
|
-
#
|
192
|
-
# workspace/
|
193
|
-
#
|
185
|
+
# authorize): - [App authentication](https://developers.google.com/workspace/
|
186
|
+
# chat/authenticate-authorize-chat-app) with [administrator approval](https://
|
187
|
+
# support.google.com/a?p=chat-app-auth) in [Developer Preview](https://
|
188
|
+
# developers.google.com/workspace/preview) - [User authentication](https://
|
189
|
+
# developers.google.com/workspace/chat/authenticate-authorize-chat-user) When
|
190
|
+
# authenticating as an app, the `space.customer` field must be set in the
|
191
|
+
# request. Space membership upon creation depends on whether the space is
|
192
|
+
# created in `Import mode`: * **Import mode:** No members are created. * **All
|
193
|
+
# other modes:** The calling user is added as a member. This is: * The app
|
194
|
+
# itself when using app authentication. * The human user when using user
|
195
|
+
# authentication. If you receive the error message `ALREADY_EXISTS` when
|
196
|
+
# creating a space, try a different `displayName`. An existing space within the
|
197
|
+
# Google Workspace organization might already use this display name.
|
194
198
|
# @param [Google::Apis::ChatV1::Space] space_object
|
195
199
|
# @param [String] request_id
|
196
200
|
# Optional. A unique identifier for this request. A random UUID is recommended.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-chat_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.114.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: 2024-12-
|
11
|
+
date: 2024-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.114.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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.23
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Google Chat API V1
|