google-apis-chat_v1 0.68.0 → 0.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/chat_v1/classes.rb +126 -127
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/service.rb +42 -66
- 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: df4c97a8aa2870c8769d840ac03e39a3269f8def78f6539363951f5bb6c1512c
|
4
|
+
data.tar.gz: d4f7361c06aadb5065c931203c3bbffa87fb2fb4ae1ba0a5a548b1317047cf7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 386187890b91c6a6dec65fd3062682616a353d3caab5138ab5d2585ef3ecb22f2e0218a7d3c40b55b98bce39d5aa46fadf8e2a55909609691156b6417a9f35b2
|
7
|
+
data.tar.gz: 2e200fad6dd01013bf107a1343e17f51c57d296172baa606304d84349cd6ed18fecf7e55c4034ce94563cbfd80b056cc781514c62273f66aa8b622f14a4e455b
|
data/CHANGELOG.md
CHANGED
@@ -402,41 +402,42 @@ module Google
|
|
402
402
|
end
|
403
403
|
end
|
404
404
|
|
405
|
-
#
|
405
|
+
# A [card](https://developers.google.com/chat/api/reference/rest/v1/cards) in a
|
406
|
+
# Google Chat message. Only Chat apps can create cards. If your Chat app [
|
407
|
+
# authenticates as a user](https://developers.google.com/chat/api/guides/auth/
|
408
|
+
# users), the message can't contain cards.
|
406
409
|
class CardWithId
|
407
410
|
include Google::Apis::Core::Hashable
|
408
411
|
|
409
|
-
#
|
410
|
-
#
|
411
|
-
#
|
412
|
-
#
|
413
|
-
#
|
414
|
-
#
|
415
|
-
#
|
416
|
-
#
|
417
|
-
#
|
418
|
-
#
|
419
|
-
#
|
420
|
-
#
|
421
|
-
#
|
422
|
-
#
|
423
|
-
# "
|
424
|
-
#
|
425
|
-
#
|
426
|
-
#
|
427
|
-
#
|
428
|
-
#
|
429
|
-
#
|
430
|
-
#
|
431
|
-
#
|
432
|
-
# function": "goToView", "parameters": [ ` "key": "viewType", "value": "EDIT", `
|
433
|
-
# ], ` ` `, ], ` `, ], `, ], `, ` ], ` ```
|
412
|
+
# A card interface displayed in a Google Chat message or Google Workspace Add-on.
|
413
|
+
# Cards support a defined layout, interactive UI elements like buttons, and
|
414
|
+
# rich media like images. Use cards to present detailed information, gather
|
415
|
+
# information from users, and guide users to take a next step. To learn how to
|
416
|
+
# build cards, see the following documentation: * For Google Chat apps, see [
|
417
|
+
# Design dynamic, interactive, and consistent UIs with cards](https://developers.
|
418
|
+
# google.com/chat/ui). * For Google Workspace Add-ons, see [Card-based
|
419
|
+
# interfaces](https://developers.google.com/apps-script/add-ons/concepts/cards).
|
420
|
+
# **Example: Card message for a Google Chat app**  To create the
|
422
|
+
# sample card message in Google Chat, use the following JSON: ``` ` "cardsV2": [
|
423
|
+
# ` "cardId": "unique-card-id", "card": ` "header": ` "title": "Sasha", "
|
424
|
+
# subtitle": "Software Engineer", "imageUrl": "https://developers.google.com/
|
425
|
+
# chat/images/quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText":
|
426
|
+
# "Avatar for Sasha", `, "sections": [ ` "header": "Contact Info", "collapsible":
|
427
|
+
# true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "
|
428
|
+
# startIcon": ` "knownIcon": "EMAIL", `, "text": "sasha@example.com", ` `, ` "
|
429
|
+
# decoratedText": ` "startIcon": ` "knownIcon": "PERSON", `, "text": "Online", `,
|
430
|
+
# `, ` "decoratedText": ` "startIcon": ` "knownIcon": "PHONE", `, "text": "+1 (
|
431
|
+
# 555) 555-1234", ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "
|
432
|
+
# onClick": ` "openLink": ` "url": "https://example.com/share", ` ` `, ` "text":
|
433
|
+
# "Edit", "onClick": ` "action": ` "function": "goToView", "parameters": [ ` "
|
434
|
+
# key": "viewType", "value": "EDIT", ` ], ` ` `, ], ` `, ], `, ], `, ` ], ` ```
|
434
435
|
# Corresponds to the JSON property `card`
|
435
436
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
|
436
437
|
attr_accessor :card
|
437
438
|
|
438
|
-
# Required
|
439
|
-
#
|
439
|
+
# Required if the message contains multiple cards. A unique identifier for a
|
440
|
+
# card in a message.
|
440
441
|
# Corresponds to the JSON property `cardId`
|
441
442
|
# @return [String]
|
442
443
|
attr_accessor :card_id
|
@@ -768,9 +769,12 @@ module Google
|
|
768
769
|
end
|
769
770
|
end
|
770
771
|
|
771
|
-
# Google Chat
|
772
|
-
# Google Chat
|
773
|
-
# formats).
|
772
|
+
# A Google Chat app interaction event. To learn about interaction events, see [
|
773
|
+
# Receive and respond to interactions with your Google Chat app](https://
|
774
|
+
# developers.google.com/chat/api/guides/message-formats). To learn about event
|
775
|
+
# types and for example event payloads, see [Types of Google Chat app
|
776
|
+
# interaction events](https://developers.google.com/chat/api/guides/message-
|
777
|
+
# formats/events).
|
774
778
|
class DeprecatedEvent
|
775
779
|
include Google::Apis::Core::Hashable
|
776
780
|
|
@@ -796,25 +800,25 @@ module Google
|
|
796
800
|
# @return [String]
|
797
801
|
attr_accessor :config_complete_redirect_url
|
798
802
|
|
799
|
-
# The type of [dialog](https://developers.google.com/chat/how-tos/dialogs)
|
800
|
-
# received.
|
803
|
+
# The type of [dialog](https://developers.google.com/chat/how-tos/dialogs)
|
804
|
+
# interaction event received.
|
801
805
|
# Corresponds to the JSON property `dialogEventType`
|
802
806
|
# @return [String]
|
803
807
|
attr_accessor :dialog_event_type
|
804
808
|
|
805
|
-
# The timestamp indicating when the event occurred.
|
809
|
+
# The timestamp indicating when the interaction event occurred.
|
806
810
|
# Corresponds to the JSON property `eventTime`
|
807
811
|
# @return [String]
|
808
812
|
attr_accessor :event_time
|
809
813
|
|
810
|
-
#
|
811
|
-
# how-tos/dialogs).
|
814
|
+
# For `CARD_CLICKED` interaction events, whether the user interacted with a [
|
815
|
+
# dialog](https://developers.google.com/chat/how-tos/dialogs).
|
812
816
|
# Corresponds to the JSON property `isDialogEvent`
|
813
817
|
# @return [Boolean]
|
814
818
|
attr_accessor :is_dialog_event
|
815
819
|
alias_method :is_dialog_event?, :is_dialog_event
|
816
820
|
|
817
|
-
# A message in Google Chat.
|
821
|
+
# A message in a Google Chat space.
|
818
822
|
# Corresponds to the JSON property `message`
|
819
823
|
# @return [Google::Apis::ChatV1::Message]
|
820
824
|
attr_accessor :message
|
@@ -825,9 +829,9 @@ module Google
|
|
825
829
|
# @return [Google::Apis::ChatV1::Space]
|
826
830
|
attr_accessor :space
|
827
831
|
|
828
|
-
# The Chat app-defined key for the thread related to the event. See [
|
829
|
-
# messages.thread.threadKey`](/chat/api/reference/rest/v1/spaces.
|
830
|
-
# FIELDS.thread_key) for more information.
|
832
|
+
# The Chat app-defined key for the thread related to the interaction event. See [
|
833
|
+
# `spaces.messages.thread.threadKey`](/chat/api/reference/rest/v1/spaces.
|
834
|
+
# messages#Thread.FIELDS.thread_key) for more information.
|
831
835
|
# Corresponds to the JSON property `threadKey`
|
832
836
|
# @return [String]
|
833
837
|
attr_accessor :thread_key
|
@@ -843,7 +847,9 @@ module Google
|
|
843
847
|
# @return [String]
|
844
848
|
attr_accessor :token
|
845
849
|
|
846
|
-
# The type of
|
850
|
+
# The type of interaction event. For details, see [Types of Google Chat app
|
851
|
+
# interaction events](https://developers.google.com/chat/api/guides/message-
|
852
|
+
# formats/events).
|
847
853
|
# Corresponds to the JSON property `type`
|
848
854
|
# @return [String]
|
849
855
|
attr_accessor :type
|
@@ -881,31 +887,29 @@ module Google
|
|
881
887
|
class Dialog
|
882
888
|
include Google::Apis::Core::Hashable
|
883
889
|
|
884
|
-
#
|
885
|
-
#
|
886
|
-
#
|
887
|
-
#
|
888
|
-
#
|
889
|
-
#
|
890
|
-
#
|
891
|
-
#
|
892
|
-
#
|
893
|
-
#
|
894
|
-
#
|
895
|
-
#
|
896
|
-
#
|
897
|
-
#
|
898
|
-
# "
|
899
|
-
#
|
900
|
-
#
|
901
|
-
#
|
902
|
-
#
|
903
|
-
#
|
904
|
-
#
|
905
|
-
#
|
906
|
-
#
|
907
|
-
# function": "goToView", "parameters": [ ` "key": "viewType", "value": "EDIT", `
|
908
|
-
# ], ` ` `, ], ` `, ], `, ], `, ` ], ` ```
|
890
|
+
# A card interface displayed in a Google Chat message or Google Workspace Add-on.
|
891
|
+
# Cards support a defined layout, interactive UI elements like buttons, and
|
892
|
+
# rich media like images. Use cards to present detailed information, gather
|
893
|
+
# information from users, and guide users to take a next step. To learn how to
|
894
|
+
# build cards, see the following documentation: * For Google Chat apps, see [
|
895
|
+
# Design dynamic, interactive, and consistent UIs with cards](https://developers.
|
896
|
+
# google.com/chat/ui). * For Google Workspace Add-ons, see [Card-based
|
897
|
+
# interfaces](https://developers.google.com/apps-script/add-ons/concepts/cards).
|
898
|
+
# **Example: Card message for a Google Chat app**  To create the
|
900
|
+
# sample card message in Google Chat, use the following JSON: ``` ` "cardsV2": [
|
901
|
+
# ` "cardId": "unique-card-id", "card": ` "header": ` "title": "Sasha", "
|
902
|
+
# subtitle": "Software Engineer", "imageUrl": "https://developers.google.com/
|
903
|
+
# chat/images/quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText":
|
904
|
+
# "Avatar for Sasha", `, "sections": [ ` "header": "Contact Info", "collapsible":
|
905
|
+
# true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "
|
906
|
+
# startIcon": ` "knownIcon": "EMAIL", `, "text": "sasha@example.com", ` `, ` "
|
907
|
+
# decoratedText": ` "startIcon": ` "knownIcon": "PERSON", `, "text": "Online", `,
|
908
|
+
# `, ` "decoratedText": ` "startIcon": ` "knownIcon": "PHONE", `, "text": "+1 (
|
909
|
+
# 555) 555-1234", ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "
|
910
|
+
# onClick": ` "openLink": ` "url": "https://example.com/share", ` ` `, ` "text":
|
911
|
+
# "Edit", "onClick": ` "action": ` "function": "goToView", "parameters": [ ` "
|
912
|
+
# key": "viewType", "value": "EDIT", ` ], ` ` `, ], ` `, ], `, ], `, ` ], ` ```
|
909
913
|
# Corresponds to the JSON property `body`
|
910
914
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
|
911
915
|
attr_accessor :body
|
@@ -1364,31 +1368,29 @@ module Google
|
|
1364
1368
|
end
|
1365
1369
|
end
|
1366
1370
|
|
1367
|
-
#
|
1368
|
-
#
|
1369
|
-
#
|
1370
|
-
#
|
1371
|
-
#
|
1372
|
-
#
|
1373
|
-
#
|
1374
|
-
#
|
1375
|
-
#
|
1376
|
-
#
|
1377
|
-
#
|
1378
|
-
#
|
1379
|
-
#
|
1380
|
-
#
|
1381
|
-
# "
|
1382
|
-
#
|
1383
|
-
#
|
1384
|
-
#
|
1385
|
-
#
|
1386
|
-
#
|
1387
|
-
#
|
1388
|
-
#
|
1389
|
-
#
|
1390
|
-
# function": "goToView", "parameters": [ ` "key": "viewType", "value": "EDIT", `
|
1391
|
-
# ], ` ` `, ], ` `, ], `, ], `, ` ], ` ```
|
1371
|
+
# A card interface displayed in a Google Chat message or Google Workspace Add-on.
|
1372
|
+
# Cards support a defined layout, interactive UI elements like buttons, and
|
1373
|
+
# rich media like images. Use cards to present detailed information, gather
|
1374
|
+
# information from users, and guide users to take a next step. To learn how to
|
1375
|
+
# build cards, see the following documentation: * For Google Chat apps, see [
|
1376
|
+
# Design dynamic, interactive, and consistent UIs with cards](https://developers.
|
1377
|
+
# google.com/chat/ui). * For Google Workspace Add-ons, see [Card-based
|
1378
|
+
# interfaces](https://developers.google.com/apps-script/add-ons/concepts/cards).
|
1379
|
+
# **Example: Card message for a Google Chat app**  To create the
|
1381
|
+
# sample card message in Google Chat, use the following JSON: ``` ` "cardsV2": [
|
1382
|
+
# ` "cardId": "unique-card-id", "card": ` "header": ` "title": "Sasha", "
|
1383
|
+
# subtitle": "Software Engineer", "imageUrl": "https://developers.google.com/
|
1384
|
+
# chat/images/quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText":
|
1385
|
+
# "Avatar for Sasha", `, "sections": [ ` "header": "Contact Info", "collapsible":
|
1386
|
+
# true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "
|
1387
|
+
# startIcon": ` "knownIcon": "EMAIL", `, "text": "sasha@example.com", ` `, ` "
|
1388
|
+
# decoratedText": ` "startIcon": ` "knownIcon": "PERSON", `, "text": "Online", `,
|
1389
|
+
# `, ` "decoratedText": ` "startIcon": ` "knownIcon": "PHONE", `, "text": "+1 (
|
1390
|
+
# 555) 555-1234", ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "
|
1391
|
+
# onClick": ` "openLink": ` "url": "https://example.com/share", ` ` `, ` "text":
|
1392
|
+
# "Edit", "onClick": ` "action": ` "function": "goToView", "parameters": [ ` "
|
1393
|
+
# key": "viewType", "value": "EDIT", ` ], ` ` `, ], ` `, ], `, ], `, ` ], ` ```
|
1392
1394
|
class GoogleAppsCardV1Card
|
1393
1395
|
include Google::Apis::Core::Hashable
|
1394
1396
|
|
@@ -2112,31 +2114,29 @@ module Google
|
|
2112
2114
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
|
2113
2115
|
attr_accessor :action
|
2114
2116
|
|
2115
|
-
#
|
2116
|
-
#
|
2117
|
-
#
|
2118
|
-
#
|
2119
|
-
#
|
2120
|
-
#
|
2121
|
-
#
|
2122
|
-
#
|
2123
|
-
#
|
2124
|
-
#
|
2125
|
-
#
|
2126
|
-
#
|
2127
|
-
#
|
2128
|
-
#
|
2129
|
-
# "
|
2130
|
-
#
|
2131
|
-
#
|
2132
|
-
#
|
2133
|
-
#
|
2134
|
-
#
|
2135
|
-
#
|
2136
|
-
#
|
2137
|
-
#
|
2138
|
-
# function": "goToView", "parameters": [ ` "key": "viewType", "value": "EDIT", `
|
2139
|
-
# ], ` ` `, ], ` `, ], `, ], `, ` ], ` ```
|
2117
|
+
# A card interface displayed in a Google Chat message or Google Workspace Add-on.
|
2118
|
+
# Cards support a defined layout, interactive UI elements like buttons, and
|
2119
|
+
# rich media like images. Use cards to present detailed information, gather
|
2120
|
+
# information from users, and guide users to take a next step. To learn how to
|
2121
|
+
# build cards, see the following documentation: * For Google Chat apps, see [
|
2122
|
+
# Design dynamic, interactive, and consistent UIs with cards](https://developers.
|
2123
|
+
# google.com/chat/ui). * For Google Workspace Add-ons, see [Card-based
|
2124
|
+
# interfaces](https://developers.google.com/apps-script/add-ons/concepts/cards).
|
2125
|
+
# **Example: Card message for a Google Chat app**  To create the
|
2127
|
+
# sample card message in Google Chat, use the following JSON: ``` ` "cardsV2": [
|
2128
|
+
# ` "cardId": "unique-card-id", "card": ` "header": ` "title": "Sasha", "
|
2129
|
+
# subtitle": "Software Engineer", "imageUrl": "https://developers.google.com/
|
2130
|
+
# chat/images/quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText":
|
2131
|
+
# "Avatar for Sasha", `, "sections": [ ` "header": "Contact Info", "collapsible":
|
2132
|
+
# true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "
|
2133
|
+
# startIcon": ` "knownIcon": "EMAIL", `, "text": "sasha@example.com", ` `, ` "
|
2134
|
+
# decoratedText": ` "startIcon": ` "knownIcon": "PERSON", `, "text": "Online", `,
|
2135
|
+
# `, ` "decoratedText": ` "startIcon": ` "knownIcon": "PHONE", `, "text": "+1 (
|
2136
|
+
# 555) 555-1234", ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "
|
2137
|
+
# onClick": ` "openLink": ` "url": "https://example.com/share", ` ` `, ` "text":
|
2138
|
+
# "Edit", "onClick": ` "action": ` "function": "goToView", "parameters": [ ` "
|
2139
|
+
# key": "viewType", "value": "EDIT", ` ], ` ` `, ], ` `, ], `, ], `, ` ], ` ```
|
2140
2140
|
# Corresponds to the JSON property `card`
|
2141
2141
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
|
2142
2142
|
attr_accessor :card
|
@@ -2971,7 +2971,9 @@ module Google
|
|
2971
2971
|
end
|
2972
2972
|
end
|
2973
2973
|
|
2974
|
-
# Types of data
|
2974
|
+
# Types of data that users can enter on cards or dialogs. To learn how to
|
2975
|
+
# process information from users, see [Read form data input by users on cards](
|
2976
|
+
# https://developers.google.com/chat/ui/read-form-data).
|
2975
2977
|
class Inputs
|
2976
2978
|
include Google::Apis::Core::Hashable
|
2977
2979
|
|
@@ -3280,7 +3282,7 @@ module Google
|
|
3280
3282
|
end
|
3281
3283
|
end
|
3282
3284
|
|
3283
|
-
# A message in Google Chat.
|
3285
|
+
# A message in a Google Chat space.
|
3284
3286
|
class Message
|
3285
3287
|
include Google::Apis::Core::Hashable
|
3286
3288
|
|
@@ -3318,15 +3320,12 @@ module Google
|
|
3318
3320
|
# @return [Array<Google::Apis::ChatV1::Card>]
|
3319
3321
|
attr_accessor :cards
|
3320
3322
|
|
3321
|
-
#
|
3322
|
-
#
|
3323
|
-
#
|
3324
|
-
#
|
3325
|
-
# (https://developers.google.
|
3326
|
-
#
|
3327
|
-
# same message and for identifying user input values. Currently supported
|
3328
|
-
# widgets include: - `TextParagraph` - `DecoratedText` - `Image` - `ButtonList` -
|
3329
|
-
# `Divider` - `TextInput` - `SelectionInput` - `Grid`
|
3323
|
+
# An array of [cards](https://developers.google.com/chat/api/reference/rest/v1/
|
3324
|
+
# cards). Only Chat apps can create cards. If your Chat app [authenticates as a
|
3325
|
+
# user](https://developers.google.com/chat/api/guides/auth/users), the messages
|
3326
|
+
# can't contain cards. To learn about cards and how to create them, see [Design
|
3327
|
+
# dynamic, interactive, and consistent UIs with cards](https://developers.google.
|
3328
|
+
# com/chat/ui).
|
3330
3329
|
# Corresponds to the JSON property `cardsV2`
|
3331
3330
|
# @return [Array<Google::Apis::ChatV1::CardWithId>]
|
3332
3331
|
attr_accessor :cards_v2
|
@@ -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.69.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230822"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -91,9 +91,8 @@ module Google
|
|
91
91
|
# Uploads an attachment. For an example, see [Upload media as a file attachment](
|
92
92
|
# https://developers.google.com/chat/api/guides/v1/media-and-attachments/upload).
|
93
93
|
# Requires user [authentication](https://developers.google.com/chat/api/guides/
|
94
|
-
# auth/users)
|
95
|
-
#
|
96
|
-
# supported. For details, see [File types blocked by Google Chat](https://
|
94
|
+
# auth/users). You can upload attachments up to 200 MB. Certain file types aren'
|
95
|
+
# t supported. For details, see [File types blocked by Google Chat](https://
|
97
96
|
# support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%
|
98
97
|
# 20types%20blocked%20in%20Google%20Chat).
|
99
98
|
# @param [String] parent
|
@@ -144,8 +143,7 @@ module Google
|
|
144
143
|
# spaces/create). If you receive the error message `ALREADY_EXISTS` when
|
145
144
|
# creating a space, try a different `displayName`. An existing space within the
|
146
145
|
# Google Workspace organization might already use this display name. Requires [
|
147
|
-
# user authentication](https://developers.google.com/chat/api/guides/auth/users)
|
148
|
-
# and the `chat.spaces.create` or `chat.spaces` scope.
|
146
|
+
# user authentication](https://developers.google.com/chat/api/guides/auth/users).
|
149
147
|
# @param [Google::Apis::ChatV1::Space] space_object
|
150
148
|
# @param [String] request_id
|
151
149
|
# Optional. A unique identifier for this request. A random UUID is recommended.
|
@@ -186,7 +184,7 @@ module Google
|
|
186
184
|
# in the space—are also deleted. For an example, see [Delete a space](https://
|
187
185
|
# developers.google.com/chat/api/guides/v1/spaces/delete). Requires [user
|
188
186
|
# authentication](https://developers.google.com/chat/api/guides/auth/users) from
|
189
|
-
# a user who has permission to delete the space
|
187
|
+
# a user who has permission to delete the space.
|
190
188
|
# @param [String] name
|
191
189
|
# Required. Resource name of the space to delete. Format: `spaces/`space``
|
192
190
|
# @param [String] fields
|
@@ -271,8 +269,7 @@ module Google
|
|
271
269
|
# account authentication](https://developers.google.com/chat/api/guides/auth/
|
272
270
|
# service-accounts) and [user authentication](https://developers.google.com/chat/
|
273
271
|
# api/guides/auth/users). [User authentication](https://developers.google.com/
|
274
|
-
# chat/api/guides/auth/users)
|
275
|
-
# readonly` authorization scope.
|
272
|
+
# chat/api/guides/auth/users).
|
276
273
|
# @param [String] name
|
277
274
|
# Required. Resource name of the space, in the form "spaces/*". Format: `spaces/`
|
278
275
|
# space``
|
@@ -309,8 +306,7 @@ module Google
|
|
309
306
|
# authentication](https://developers.google.com/chat/api/guides/auth). Fully
|
310
307
|
# supports [service account authentication](https://developers.google.com/chat/
|
311
308
|
# api/guides/auth/service-accounts) and [user authentication](https://developers.
|
312
|
-
# google.com/chat/api/guides/auth/users)
|
313
|
-
# spaces.readonly` authorization scope. Lists spaces visible to the caller or
|
309
|
+
# google.com/chat/api/guides/auth/users). Lists spaces visible to the caller or
|
314
310
|
# authenticated user. Group chats and DMs aren't listed until the first message
|
315
311
|
# is sent.
|
316
312
|
# @param [String] filter
|
@@ -371,8 +367,7 @@ module Google
|
|
371
367
|
# displayName` field and receive the error message `ALREADY_EXISTS`, try a
|
372
368
|
# different display name.. An existing space within the Google Workspace
|
373
369
|
# organization might already use this display name. Requires [user
|
374
|
-
# authentication](https://developers.google.com/chat/api/guides/auth/users)
|
375
|
-
# the `chat.spaces` scope.
|
370
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/users).
|
376
371
|
# @param [String] name
|
377
372
|
# Resource name of the space. Format: `spaces/`space``
|
378
373
|
# @param [Google::Apis::ChatV1::Space] space_object
|
@@ -453,8 +448,7 @@ module Google
|
|
453
448
|
# ALREADY_EXISTS` when setting up a space, try a different `displayName`. An
|
454
449
|
# existing space within the Google Workspace organization might already use this
|
455
450
|
# display name. Requires [user authentication](https://developers.google.com/
|
456
|
-
# chat/api/guides/auth/users)
|
457
|
-
# scope.
|
451
|
+
# chat/api/guides/auth/users).
|
458
452
|
# @param [Google::Apis::ChatV1::SetUpSpaceRequest] set_up_space_request_object
|
459
453
|
# @param [String] fields
|
460
454
|
# Selector specifying which fields to include in a partial response.
|
@@ -491,18 +485,16 @@ module Google
|
|
491
485
|
# policy turned off, then they're invited, and must accept the space invitation
|
492
486
|
# before joining. Otherwise, creating a membership adds the member directly to
|
493
487
|
# the specified space. Requires [user authentication](https://developers.google.
|
494
|
-
# com/chat/api/guides/auth/users)
|
495
|
-
# membership
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
#
|
500
|
-
# the
|
501
|
-
#
|
502
|
-
#
|
503
|
-
#
|
504
|
-
# add the user to the space by setting the `membership.member.name` to `users/
|
505
|
-
# user@example.com` or `users/123456789`.
|
488
|
+
# com/chat/api/guides/auth/users). To specify the member to add, set the `
|
489
|
+
# membership.member.name` in the `CreateMembershipRequest`: - To add the calling
|
490
|
+
# app to a space or a direct message between two human users, use `users/app`.
|
491
|
+
# Unable to add other apps to the space. - To add a human user, use `users/`user`
|
492
|
+
# `, where ``user`` can be the email address for the user. For users in the same
|
493
|
+
# Workspace organization ``user`` can also be the ``person_id`` for the person
|
494
|
+
# from the People API, or the `id` for the user in the Directory API. For
|
495
|
+
# example, if the People API Person `resourceName` for `user@example.com` is `
|
496
|
+
# people/123456789`, you can add the user to the space by setting the `
|
497
|
+
# membership.member.name` to `users/user@example.com` or `users/123456789`.
|
506
498
|
# @param [String] parent
|
507
499
|
# Required. The resource name of the space for which to create the membership.
|
508
500
|
# Format: spaces/`space`
|
@@ -538,8 +530,7 @@ module Google
|
|
538
530
|
|
539
531
|
# Deletes a membership. For an example, see [Delete a membership](https://
|
540
532
|
# developers.google.com/chat/api/guides/v1/members/delete). Requires [user
|
541
|
-
# authentication](https://developers.google.com/chat/api/guides/auth/users)
|
542
|
-
# the `chat.memberships` or `chat.memberships.app` authorization scope.
|
533
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/users).
|
543
534
|
# @param [String] name
|
544
535
|
# Required. Resource name of the membership to delete. Chat apps can delete
|
545
536
|
# human users' or their own memberships. Chat apps can't delete other apps'
|
@@ -583,8 +574,7 @@ module Google
|
|
583
574
|
# supports [service account authentication](https://developers.google.com/chat/
|
584
575
|
# api/guides/auth/service-accounts) and [user authentication](https://developers.
|
585
576
|
# google.com/chat/api/guides/auth/users). [User authentication](https://
|
586
|
-
# developers.google.com/chat/api/guides/auth/users)
|
587
|
-
# memberships` or `chat.memberships.readonly` authorization scope.
|
577
|
+
# developers.google.com/chat/api/guides/auth/users).
|
588
578
|
# @param [String] name
|
589
579
|
# Required. Resource name of the membership to retrieve. To get the app's own
|
590
580
|
# membership, you can optionally use `spaces/`space`/members/app`. Format: `
|
@@ -631,8 +621,7 @@ module Google
|
|
631
621
|
# Fully supports [service account authentication](https://developers.google.com/
|
632
622
|
# chat/api/guides/auth/service-accounts) and [user authentication](https://
|
633
623
|
# developers.google.com/chat/api/guides/auth/users). [User authentication](https:
|
634
|
-
# //developers.google.com/chat/api/guides/auth/users)
|
635
|
-
# memberships` or `chat.memberships.readonly` authorization scope.
|
624
|
+
# //developers.google.com/chat/api/guides/auth/users).
|
636
625
|
# @param [String] parent
|
637
626
|
# Required. The resource name of the space for which to fetch a membership list.
|
638
627
|
# Format: spaces/`space`
|
@@ -698,19 +687,13 @@ module Google
|
|
698
687
|
execute_or_queue_command(command, &block)
|
699
688
|
end
|
700
689
|
|
701
|
-
# Creates a message. For an example, see [Create a
|
702
|
-
# google.com/chat/api/guides/
|
703
|
-
# authentication](https://developers.google.com/
|
704
|
-
#
|
705
|
-
#
|
706
|
-
#
|
707
|
-
#
|
708
|
-
# messages` or `chat.messages.create` authorization scope. Creating a card
|
709
|
-
# message only supports and requires [app authentication] (https://developers.
|
710
|
-
# google.com/chat/api/guides/auth/service-accounts). Because Chat provides
|
711
|
-
# authentication for [webhooks](https://developers.google.com/chat/how-tos/
|
712
|
-
# webhooks) as part of the URL that's generated when a webhook is registered,
|
713
|
-
# webhooks can create messages without a service account or user authentication.
|
690
|
+
# Creates a message in a Google Chat space. For an example, see [Create a
|
691
|
+
# message](https://developers.google.com/chat/api/guides/v1/messages/create).
|
692
|
+
# Calling this method requires [authentication](https://developers.google.com/
|
693
|
+
# chat/api/guides/auth) and supports the following authentication types: - For
|
694
|
+
# text messages, user authentication or app authentication are supported. - For
|
695
|
+
# card messages, only app authentication is supported. (Only Chat apps can
|
696
|
+
# create card messages.)
|
714
697
|
# @param [String] parent
|
715
698
|
# Required. The resource name of the space in which to create a message. Format:
|
716
699
|
# `spaces/`space``
|
@@ -779,9 +762,8 @@ module Google
|
|
779
762
|
# account authentication](https://developers.google.com/chat/api/guides/auth/
|
780
763
|
# service-accounts) and [user authentication](https://developers.google.com/chat/
|
781
764
|
# api/guides/auth/users). [User authentication](https://developers.google.com/
|
782
|
-
# chat/api/guides/auth/users)
|
783
|
-
#
|
784
|
-
# by the calling Chat app.
|
765
|
+
# chat/api/guides/auth/users). Requests authenticated with service accounts can
|
766
|
+
# only delete messages created by the calling Chat app.
|
785
767
|
# @param [String] name
|
786
768
|
# Required. Resource name of the message that you want to delete, in the form `
|
787
769
|
# spaces/*/messages/*` Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.
|
@@ -826,9 +808,8 @@ module Google
|
|
826
808
|
# supports [service account authentication](https://developers.google.com/chat/
|
827
809
|
# api/guides/auth/service-accounts) and [user authentication](https://developers.
|
828
810
|
# google.com/chat/api/guides/auth/users). [User authentication](https://
|
829
|
-
# developers.google.com/chat/api/guides/auth/users)
|
830
|
-
#
|
831
|
-
# from a blocked member or space.
|
811
|
+
# developers.google.com/chat/api/guides/auth/users). Note: Might return a
|
812
|
+
# message from a blocked member or space.
|
832
813
|
# @param [String] name
|
833
814
|
# Required. Resource name of the message to retrieve. Format: `spaces/`space`/
|
834
815
|
# messages/`message`` If the message begins with `client-`, then it has a custom
|
@@ -866,8 +847,7 @@ module Google
|
|
866
847
|
# Lists messages in a space that the caller is a member of, including messages
|
867
848
|
# from blocked members and spaces. For an example, see [List messages](/chat/api/
|
868
849
|
# guides/v1/messages/list). Requires [user authentication](https://developers.
|
869
|
-
# google.com/chat/api/guides/auth/users)
|
870
|
-
# messages.readonly` authorization scope.
|
850
|
+
# google.com/chat/api/guides/auth/users).
|
871
851
|
# @param [String] parent
|
872
852
|
# Required. The resource name of the space to list messages from. Format: `
|
873
853
|
# spaces/`space``
|
@@ -948,9 +928,9 @@ module Google
|
|
948
928
|
# api/guides/auth). Fully supports [service account authentication](https://
|
949
929
|
# developers.google.com/chat/api/guides/auth/service-accounts) and [user
|
950
930
|
# authentication](https://developers.google.com/chat/api/guides/auth/users). [
|
951
|
-
# User authentication](https://developers.google.com/chat/api/guides/auth/users)
|
952
|
-
#
|
953
|
-
#
|
931
|
+
# User authentication](https://developers.google.com/chat/api/guides/auth/users).
|
932
|
+
# Requests authenticated with service accounts can only update messages created
|
933
|
+
# by the calling Chat app.
|
954
934
|
# @param [String] name
|
955
935
|
# Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
|
956
936
|
# messages/BBBBBBBBBBB.BBBBBBBBBBB`
|
@@ -1005,9 +985,9 @@ module Google
|
|
1005
985
|
# api/guides/auth). Fully supports [service account authentication](https://
|
1006
986
|
# developers.google.com/chat/api/guides/auth/service-accounts) and [user
|
1007
987
|
# authentication](https://developers.google.com/chat/api/guides/auth/users). [
|
1008
|
-
# User authentication](https://developers.google.com/chat/api/guides/auth/users)
|
1009
|
-
#
|
1010
|
-
#
|
988
|
+
# User authentication](https://developers.google.com/chat/api/guides/auth/users).
|
989
|
+
# Requests authenticated with service accounts can only update messages created
|
990
|
+
# by the calling Chat app.
|
1011
991
|
# @param [String] name
|
1012
992
|
# Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
|
1013
993
|
# messages/BBBBBBBBBBB.BBBBBBBBBBB`
|
@@ -1093,8 +1073,7 @@ module Google
|
|
1093
1073
|
# Creates a reaction and adds it to a message. For an example, see [Create a
|
1094
1074
|
# reaction](https://developers.google.com/chat/api/guides/v1/reactions/create).
|
1095
1075
|
# Requires [user authentication](https://developers.google.com/chat/api/guides/
|
1096
|
-
# auth/users)
|
1097
|
-
# messages.reactions.create` scope. Only unicode emoji are supported.
|
1076
|
+
# auth/users). Only unicode emoji are supported.
|
1098
1077
|
# @param [String] parent
|
1099
1078
|
# Required. The message where the reaction is created. Format: `spaces/`space`/
|
1100
1079
|
# messages/`message``
|
@@ -1130,8 +1109,7 @@ module Google
|
|
1130
1109
|
|
1131
1110
|
# Deletes a reaction to a message. For an example, see [Delete a reaction](https:
|
1132
1111
|
# //developers.google.com/chat/api/guides/v1/reactions/delete). Requires [user
|
1133
|
-
# authentication](https://developers.google.com/chat/api/guides/auth/users)
|
1134
|
-
# the `chat.messages` or `chat.messages.reactions` scope.
|
1112
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/users).
|
1135
1113
|
# @param [String] name
|
1136
1114
|
# Required. Name of the reaction to delete. Format: `spaces/`space`/messages/`
|
1137
1115
|
# message`/reactions/`reaction``
|
@@ -1164,9 +1142,7 @@ module Google
|
|
1164
1142
|
|
1165
1143
|
# Lists reactions to a message. For an example, see [List reactions](https://
|
1166
1144
|
# developers.google.com/chat/api/guides/v1/reactions/list). Requires [user
|
1167
|
-
# authentication](https://developers.google.com/chat/api/guides/auth/users)
|
1168
|
-
# chat.messages`, `chat.messages.readonly`, `chat.messages.reactions`, or `chat.
|
1169
|
-
# messages.reactions.readonly` scope.
|
1145
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/users).
|
1170
1146
|
# @param [String] parent
|
1171
1147
|
# Required. The message users reacted to. Format: `spaces/`space`/messages/`
|
1172
1148
|
# message``
|
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.69.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-27 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.69.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.4.
|
78
|
+
rubygems_version: 3.4.19
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Google Chat API V1
|