google-apis-chat_v1 0.59.0 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/chat_v1/classes.rb +40 -107
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +0 -24
- data/lib/google/apis/chat_v1/service.rb +199 -184
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3212a2f13b4274a1499f06bb70bb3226875fb927a344b424f1069c320ba843e4
|
4
|
+
data.tar.gz: 228b2d888caafef69ddf10292cb9e0b33b19051b7de738be5685df8d1655c124
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb8268829655d7d61f29dbf40c09199646c5988a5332a5b64729886e7abf00bf8b909a47db4526836ccba1f13367831c7ed37c2e55af471ebfb09842fa7a675f
|
7
|
+
data.tar.gz: 2712fa2be9f25116694952505163434a7f9a636a87fc8ac23d0a1b291903f76ea07fb10cb5a9a764e9111dcb880aa5fe0625177e50d0c69ab33d213ef7656e69
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-chat_v1
|
2
2
|
|
3
|
+
### v0.61.0 (2023-06-11)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230606
|
6
|
+
|
7
|
+
### v0.60.0 (2023-06-04)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230530
|
10
|
+
|
3
11
|
### v0.59.0 (2023-05-21)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230516
|
@@ -233,8 +233,7 @@ module Google
|
|
233
233
|
|
234
234
|
# Opaque token containing a reference to an uploaded attachment. Treated by
|
235
235
|
# clients as an opaque string and used to create or update Chat messages with
|
236
|
-
# attachments.
|
237
|
-
# preview).
|
236
|
+
# attachments.
|
238
237
|
# Corresponds to the JSON property `attachmentUploadToken`
|
239
238
|
# @return [String]
|
240
239
|
attr_accessor :attachment_upload_token
|
@@ -478,7 +477,7 @@ module Google
|
|
478
477
|
# be trivially provided to the constructor of `java.awt.Color` in Java; it can
|
479
478
|
# also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
|
480
479
|
# method in iOS; and, with just a little work, it can be easily formatted into a
|
481
|
-
# CSS `rgba()` string in JavaScript. This reference page
|
480
|
+
# CSS `rgba()` string in JavaScript. This reference page doesn't have
|
482
481
|
# information about the absolute color space that should be used to interpret
|
483
482
|
# the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default,
|
484
483
|
# applications should assume the sRGB color space. When color equality needs to
|
@@ -634,8 +633,7 @@ module Google
|
|
634
633
|
end
|
635
634
|
end
|
636
635
|
|
637
|
-
# Represents a custom emoji.
|
638
|
-
# workspace/preview).
|
636
|
+
# Represents a custom emoji.
|
639
637
|
class CustomEmoji
|
640
638
|
include Google::Apis::Core::Hashable
|
641
639
|
|
@@ -707,7 +705,7 @@ module Google
|
|
707
705
|
end
|
708
706
|
|
709
707
|
# Information about a deleted message. A message is deleted when `delete_time`
|
710
|
-
# is set.
|
708
|
+
# is set.
|
711
709
|
class DeletionMetadata
|
712
710
|
include Google::Apis::Core::Hashable
|
713
711
|
|
@@ -917,13 +915,11 @@ module Google
|
|
917
915
|
end
|
918
916
|
end
|
919
917
|
|
920
|
-
# An emoji that is used as a reaction to a message.
|
921
|
-
# developers.google.com/workspace/preview).
|
918
|
+
# An emoji that is used as a reaction to a message.
|
922
919
|
class Emoji
|
923
920
|
include Google::Apis::Core::Hashable
|
924
921
|
|
925
|
-
# Represents a custom emoji.
|
926
|
-
# workspace/preview).
|
922
|
+
# Represents a custom emoji.
|
927
923
|
# Corresponds to the JSON property `customEmoji`
|
928
924
|
# @return [Google::Apis::ChatV1::CustomEmoji]
|
929
925
|
attr_accessor :custom_emoji
|
@@ -944,13 +940,11 @@ module Google
|
|
944
940
|
end
|
945
941
|
end
|
946
942
|
|
947
|
-
# The number of people who reacted to a message with a specific emoji.
|
948
|
-
# Developer Preview](https://developers.google.com/workspace/preview).
|
943
|
+
# The number of people who reacted to a message with a specific emoji.
|
949
944
|
class EmojiReactionSummary
|
950
945
|
include Google::Apis::Core::Hashable
|
951
946
|
|
952
|
-
# An emoji that is used as a reaction to a message.
|
953
|
-
# developers.google.com/workspace/preview).
|
947
|
+
# An emoji that is used as a reaction to a message.
|
954
948
|
# Corresponds to the JSON property `emoji`
|
955
949
|
# @return [Google::Apis::ChatV1::Emoji]
|
956
950
|
attr_accessor :emoji
|
@@ -1133,7 +1127,7 @@ module Google
|
|
1133
1127
|
# be trivially provided to the constructor of `java.awt.Color` in Java; it can
|
1134
1128
|
# also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
|
1135
1129
|
# method in iOS; and, with just a little work, it can be easily formatted into a
|
1136
|
-
# CSS `rgba()` string in JavaScript. This reference page
|
1130
|
+
# CSS `rgba()` string in JavaScript. This reference page doesn't have
|
1137
1131
|
# information about the absolute color space that should be used to interpret
|
1138
1132
|
# the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default,
|
1139
1133
|
# applications should assume the sRGB color space. When color equality needs to
|
@@ -1213,7 +1207,7 @@ module Google
|
|
1213
1207
|
# be trivially provided to the constructor of `java.awt.Color` in Java; it can
|
1214
1208
|
# also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
|
1215
1209
|
# method in iOS; and, with just a little work, it can be easily formatted into a
|
1216
|
-
# CSS `rgba()` string in JavaScript. This reference page
|
1210
|
+
# CSS `rgba()` string in JavaScript. This reference page doesn't have
|
1217
1211
|
# information about the absolute color space that should be used to interpret
|
1218
1212
|
# the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default,
|
1219
1213
|
# applications should assume the sRGB color space. When color equality needs to
|
@@ -1459,12 +1453,6 @@ module Google
|
|
1459
1453
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Button]
|
1460
1454
|
attr_accessor :secondary_button
|
1461
1455
|
|
1462
|
-
# A list of widgets included in the card footer. Primary button and secondary
|
1463
|
-
# button are rendered below these widgets.
|
1464
|
-
# Corresponds to the JSON property `widgets`
|
1465
|
-
# @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1FooterWidget>]
|
1466
|
-
attr_accessor :widgets
|
1467
|
-
|
1468
1456
|
def initialize(**args)
|
1469
1457
|
update!(**args)
|
1470
1458
|
end
|
@@ -1473,7 +1461,6 @@ module Google
|
|
1473
1461
|
def update!(**args)
|
1474
1462
|
@primary_button = args[:primary_button] if args.key?(:primary_button)
|
1475
1463
|
@secondary_button = args[:secondary_button] if args.key?(:secondary_button)
|
1476
|
-
@widgets = args[:widgets] if args.key?(:widgets)
|
1477
1464
|
end
|
1478
1465
|
end
|
1479
1466
|
|
@@ -1667,7 +1654,7 @@ module Google
|
|
1667
1654
|
class GoogleAppsCardV1DecoratedText
|
1668
1655
|
include Google::Apis::Core::Hashable
|
1669
1656
|
|
1670
|
-
# The text that appears below `text`. Always
|
1657
|
+
# The text that appears below `text`. Always wraps.
|
1671
1658
|
# Corresponds to the JSON property `bottomLabel`
|
1672
1659
|
# @return [String]
|
1673
1660
|
attr_accessor :bottom_label
|
@@ -1770,64 +1757,6 @@ module Google
|
|
1770
1757
|
end
|
1771
1758
|
end
|
1772
1759
|
|
1773
|
-
# The CardFixedFooter can contain a list of these widgets.
|
1774
|
-
class GoogleAppsCardV1FooterWidget
|
1775
|
-
include Google::Apis::Core::Hashable
|
1776
|
-
|
1777
|
-
# A list of buttons layed out horizontally.
|
1778
|
-
# Corresponds to the JSON property `buttonList`
|
1779
|
-
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ButtonList]
|
1780
|
-
attr_accessor :button_list
|
1781
|
-
|
1782
|
-
# Lets users input a date, a time, or both a date and a time. Users can input
|
1783
|
-
# text or use the picker to select dates and times. If users input an invalid
|
1784
|
-
# date or time, the picker shows an error that prompts users to input the
|
1785
|
-
# information correctly.
|
1786
|
-
# Corresponds to the JSON property `dateTimePicker`
|
1787
|
-
# @return [Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker]
|
1788
|
-
attr_accessor :date_time_picker
|
1789
|
-
|
1790
|
-
# A widget that displays text with optional decorations such as a label above or
|
1791
|
-
# below the text, an icon in front of the text, a selection widget, or a button
|
1792
|
-
# after the text.
|
1793
|
-
# Corresponds to the JSON property `decoratedText`
|
1794
|
-
# @return [Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText]
|
1795
|
-
attr_accessor :decorated_text
|
1796
|
-
|
1797
|
-
# A field in which users can enter text. Supports suggestions and on-change
|
1798
|
-
# actions. Chat apps receive and can process the value of entered text during
|
1799
|
-
# form input events. For details about working with form inputs, see [Receive
|
1800
|
-
# form data](https://developers.google.com/chat/how-tos/dialogs#
|
1801
|
-
# receive_form_data_from_dialogs). When you need to collect undefined or
|
1802
|
-
# abstract data from users, use a text input. To collect defined or enumerated
|
1803
|
-
# data from users, use the SelectionInput widget.
|
1804
|
-
# Corresponds to the JSON property `textInput`
|
1805
|
-
# @return [Google::Apis::ChatV1::GoogleAppsCardV1TextInput]
|
1806
|
-
attr_accessor :text_input
|
1807
|
-
|
1808
|
-
# A paragraph of text that supports formatting. For more information about
|
1809
|
-
# formatting text, see [Formatting text in Google Chat apps](https://developers.
|
1810
|
-
# google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [
|
1811
|
-
# Formatting text in Google Workspace Add-ons](https://developers.google.com/
|
1812
|
-
# apps-script/add-ons/concepts/widgets#text_formatting).
|
1813
|
-
# Corresponds to the JSON property `textParagraph`
|
1814
|
-
# @return [Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph]
|
1815
|
-
attr_accessor :text_paragraph
|
1816
|
-
|
1817
|
-
def initialize(**args)
|
1818
|
-
update!(**args)
|
1819
|
-
end
|
1820
|
-
|
1821
|
-
# Update properties of this object
|
1822
|
-
def update!(**args)
|
1823
|
-
@button_list = args[:button_list] if args.key?(:button_list)
|
1824
|
-
@date_time_picker = args[:date_time_picker] if args.key?(:date_time_picker)
|
1825
|
-
@decorated_text = args[:decorated_text] if args.key?(:decorated_text)
|
1826
|
-
@text_input = args[:text_input] if args.key?(:text_input)
|
1827
|
-
@text_paragraph = args[:text_paragraph] if args.key?(:text_paragraph)
|
1828
|
-
end
|
1829
|
-
end
|
1830
|
-
|
1831
1760
|
# Displays a grid with a collection of items. Items can only include text or
|
1832
1761
|
# images. A grid supports any number of columns and items. The number of rows is
|
1833
1762
|
# determined by items divided by columns. A grid with 10 items and 2 columns has
|
@@ -2298,9 +2227,9 @@ module Google
|
|
2298
2227
|
class GoogleAppsCardV1SelectionItem
|
2299
2228
|
include Google::Apis::Core::Hashable
|
2300
2229
|
|
2301
|
-
#
|
2302
|
-
# for radio buttons
|
2303
|
-
#
|
2230
|
+
# Whether the item is selected by default. If the selection input only accepts
|
2231
|
+
# one value (such as for radio buttons or a dropdown menu), only set this field
|
2232
|
+
# for one item.
|
2304
2233
|
# Corresponds to the JSON property `selected`
|
2305
2234
|
# @return [Boolean]
|
2306
2235
|
attr_accessor :selected
|
@@ -3174,32 +3103,41 @@ module Google
|
|
3174
3103
|
# A custom name for a Chat message assigned at creation. Must start with `client-
|
3175
3104
|
# ` and contain only lowercase letters, numbers, and hyphens up to 63 characters
|
3176
3105
|
# in length. Specify this field to get, update, or delete the message with the
|
3177
|
-
# specified value.
|
3178
|
-
#
|
3106
|
+
# specified value. Assigning a custom name lets a Chat app recall the message
|
3107
|
+
# without saving the message `name` from the [response body](/chat/api/reference/
|
3108
|
+
# rest/v1/spaces.messages/get#response-body) returned when creating the message.
|
3109
|
+
# Assigning a custom name doesn't replace the generated `name` field, the
|
3110
|
+
# message's resource name. Instead, it sets the custom name as the `
|
3111
|
+
# clientAssignedMessageId` field, which you can reference while processing later
|
3112
|
+
# operations, like updating or deleting the message. For example usage, see [
|
3113
|
+
# Name a created message](https://developers.google.com/chat/api/guides/crudl/
|
3114
|
+
# messages#name_a_created_message).
|
3179
3115
|
# Corresponds to the JSON property `clientAssignedMessageId`
|
3180
3116
|
# @return [String]
|
3181
3117
|
attr_accessor :client_assigned_message_id
|
3182
3118
|
|
3183
|
-
#
|
3119
|
+
# For spaces created in Chat, the time at which the message was created. This
|
3120
|
+
# field is output only, except when used in imported spaces. [Developer Preview](
|
3121
|
+
# https://developers.google.com/workspace/preview): For imported spaces, set
|
3122
|
+
# this field to the historical timestamp at which the message was created in the
|
3123
|
+
# source in order to preserve the original creation time.
|
3184
3124
|
# Corresponds to the JSON property `createTime`
|
3185
3125
|
# @return [String]
|
3186
3126
|
attr_accessor :create_time
|
3187
3127
|
|
3188
|
-
# Output only. The time at which the message was deleted in Google Chat
|
3189
|
-
#
|
3190
|
-
# https://developers.google.com/workspace/preview).
|
3128
|
+
# Output only. The time at which the message was deleted in Google Chat. If the
|
3129
|
+
# message is never deleted, this field is empty.
|
3191
3130
|
# Corresponds to the JSON property `deleteTime`
|
3192
3131
|
# @return [String]
|
3193
3132
|
attr_accessor :delete_time
|
3194
3133
|
|
3195
3134
|
# Information about a deleted message. A message is deleted when `delete_time`
|
3196
|
-
# is set.
|
3135
|
+
# is set.
|
3197
3136
|
# Corresponds to the JSON property `deletionMetadata`
|
3198
3137
|
# @return [Google::Apis::ChatV1::DeletionMetadata]
|
3199
3138
|
attr_accessor :deletion_metadata
|
3200
3139
|
|
3201
|
-
# Output only. The list of emoji reaction summaries on the message.
|
3202
|
-
# Preview](https://developers.google.com/workspace/preview).
|
3140
|
+
# Output only. The list of emoji reaction summaries on the message.
|
3203
3141
|
# Corresponds to the JSON property `emojiReactionSummaries`
|
3204
3142
|
# @return [Array<Google::Apis::ChatV1::EmojiReactionSummary>]
|
3205
3143
|
attr_accessor :emoji_reaction_summaries
|
@@ -3341,13 +3279,11 @@ module Google
|
|
3341
3279
|
end
|
3342
3280
|
end
|
3343
3281
|
|
3344
|
-
# A reaction to a message.
|
3345
|
-
# workspace/preview).
|
3282
|
+
# A reaction to a message.
|
3346
3283
|
class Reaction
|
3347
3284
|
include Google::Apis::Core::Hashable
|
3348
3285
|
|
3349
|
-
# An emoji that is used as a reaction to a message.
|
3350
|
-
# developers.google.com/workspace/preview).
|
3286
|
+
# An emoji that is used as a reaction to a message.
|
3351
3287
|
# Corresponds to the JSON property `emoji`
|
3352
3288
|
# @return [Google::Apis::ChatV1::Emoji]
|
3353
3289
|
attr_accessor :emoji
|
@@ -3407,7 +3343,7 @@ module Google
|
|
3407
3343
|
end
|
3408
3344
|
end
|
3409
3345
|
|
3410
|
-
#
|
3346
|
+
#
|
3411
3347
|
class SetUpSpaceRequest
|
3412
3348
|
include Google::Apis::Core::Hashable
|
3413
3349
|
|
@@ -3555,8 +3491,7 @@ module Google
|
|
3555
3491
|
# @return [Google::Apis::ChatV1::SpaceDetails]
|
3556
3492
|
attr_accessor :space_details
|
3557
3493
|
|
3558
|
-
# The message history state for messages and threads in this space.
|
3559
|
-
# Preview](https://developers.google.com/workspace/preview).
|
3494
|
+
# The message history state for messages and threads in this space.
|
3560
3495
|
# Corresponds to the JSON property `spaceHistoryState`
|
3561
3496
|
# @return [String]
|
3562
3497
|
attr_accessor :space_history_state
|
@@ -3566,9 +3501,8 @@ module Google
|
|
3566
3501
|
# @return [String]
|
3567
3502
|
attr_accessor :space_threading_state
|
3568
3503
|
|
3569
|
-
# The type of space. Required when creating or updating
|
3570
|
-
#
|
3571
|
-
# preview).
|
3504
|
+
# The type of space. Required when creating a space or updating the space type
|
3505
|
+
# of a space. Output only for other usage.
|
3572
3506
|
# Corresponds to the JSON property `spaceType`
|
3573
3507
|
# @return [String]
|
3574
3508
|
attr_accessor :space_type
|
@@ -3580,8 +3514,7 @@ module Google
|
|
3580
3514
|
attr_accessor :threaded
|
3581
3515
|
alias_method :threaded?, :threaded
|
3582
3516
|
|
3583
|
-
# Output only. Deprecated: Use `
|
3584
|
-
# preview) instead. The type of a space.
|
3517
|
+
# Output only. Deprecated: Use `space_type` instead. The type of a space.
|
3585
3518
|
# Corresponds to the JSON property `type`
|
3586
3519
|
# @return [String]
|
3587
3520
|
attr_accessor :type
|
@@ -3826,7 +3759,7 @@ module Google
|
|
3826
3759
|
end
|
3827
3760
|
end
|
3828
3761
|
|
3829
|
-
#
|
3762
|
+
#
|
3830
3763
|
class UploadAttachmentRequest
|
3831
3764
|
include Google::Apis::Core::Hashable
|
3832
3765
|
|
@@ -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.61.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 = "20230606"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -262,12 +262,6 @@ module Google
|
|
262
262
|
include Google::Apis::Core::JsonObjectSupport
|
263
263
|
end
|
264
264
|
|
265
|
-
class GoogleAppsCardV1FooterWidget
|
266
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
-
|
268
|
-
include Google::Apis::Core::JsonObjectSupport
|
269
|
-
end
|
270
|
-
|
271
265
|
class GoogleAppsCardV1Grid
|
272
266
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
267
|
|
@@ -921,8 +915,6 @@ module Google
|
|
921
915
|
|
922
916
|
property :secondary_button, as: 'secondaryButton', class: Google::Apis::ChatV1::GoogleAppsCardV1Button, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Button::Representation
|
923
917
|
|
924
|
-
collection :widgets, as: 'widgets', class: Google::Apis::ChatV1::GoogleAppsCardV1FooterWidget, decorator: Google::Apis::ChatV1::GoogleAppsCardV1FooterWidget::Representation
|
925
|
-
|
926
918
|
end
|
927
919
|
end
|
928
920
|
|
@@ -997,22 +989,6 @@ module Google
|
|
997
989
|
end
|
998
990
|
end
|
999
991
|
|
1000
|
-
class GoogleAppsCardV1FooterWidget
|
1001
|
-
# @private
|
1002
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1003
|
-
property :button_list, as: 'buttonList', class: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList::Representation
|
1004
|
-
|
1005
|
-
property :date_time_picker, as: 'dateTimePicker', class: Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker, decorator: Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker::Representation
|
1006
|
-
|
1007
|
-
property :decorated_text, as: 'decoratedText', class: Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText, decorator: Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText::Representation
|
1008
|
-
|
1009
|
-
property :text_input, as: 'textInput', class: Google::Apis::ChatV1::GoogleAppsCardV1TextInput, decorator: Google::Apis::ChatV1::GoogleAppsCardV1TextInput::Representation
|
1010
|
-
|
1011
|
-
property :text_paragraph, as: 'textParagraph', class: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph, decorator: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph::Representation
|
1012
|
-
|
1013
|
-
end
|
1014
|
-
end
|
1015
|
-
|
1016
992
|
class GoogleAppsCardV1Grid
|
1017
993
|
# @private
|
1018
994
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -88,12 +88,14 @@ module Google
|
|
88
88
|
execute_or_queue_command(command, &block)
|
89
89
|
end
|
90
90
|
|
91
|
-
# [
|
92
|
-
#
|
93
|
-
# chat/api/guides/
|
94
|
-
#
|
95
|
-
#
|
96
|
-
#
|
91
|
+
# Uploads an attachment. For an example, see [Upload media as a file attachment](
|
92
|
+
# https://developers.google.com/chat/api/guides/v1/media-and-attachments/upload).
|
93
|
+
# Requires user [authentication](https://developers.google.com/chat/api/guides/
|
94
|
+
# auth/users) and the `chat.messages` or `chat.messages.create` authorization
|
95
|
+
# scope. You can upload attachments up to 200 MB. Certain file types aren't
|
96
|
+
# supported. For details, see [File types blocked by Google Chat](https://
|
97
|
+
# support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%
|
98
|
+
# 20types%20blocked%20in%20Google%20Chat).
|
97
99
|
# @param [String] parent
|
98
100
|
# Required. Resource name of the Chat space in which the attachment is uploaded.
|
99
101
|
# Format "spaces/`space`".
|
@@ -137,10 +139,11 @@ module Google
|
|
137
139
|
execute_or_queue_command(command, &block)
|
138
140
|
end
|
139
141
|
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
# api/guides/auth/users) and the `chat.spaces.create`
|
142
|
+
# Creates a named space. Spaces grouped by topics or that have guest access aren'
|
143
|
+
# t supported. For an example, see [Create a space](https://developers.google.
|
144
|
+
# com/chat/api/guides/v1/spaces/create). Requires [user authentication](https://
|
145
|
+
# developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create`
|
146
|
+
# or `chat.spaces` scope.
|
144
147
|
# @param [Google::Apis::ChatV1::Space] space_object
|
145
148
|
# @param [String] request_id
|
146
149
|
# Optional. A unique identifier for this request. A random UUID is recommended.
|
@@ -176,12 +179,12 @@ module Google
|
|
176
179
|
execute_or_queue_command(command, &block)
|
177
180
|
end
|
178
181
|
|
179
|
-
#
|
180
|
-
#
|
181
|
-
#
|
182
|
-
#
|
183
|
-
# google.com/chat/api/guides/auth/users) from
|
184
|
-
# delete the space, and the `chat.delete` scope.
|
182
|
+
# Deletes a named space. Always performs a cascading delete, which means that
|
183
|
+
# the space's child resources—like messages posted in the space and memberships
|
184
|
+
# in the space—are also deleted. For an example, see [Delete a space](https://
|
185
|
+
# developers.google.com/chat/api/guides/v1/spaces/delete). Requires [user
|
186
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/users) from
|
187
|
+
# a user who has permission to delete the space, and the `chat.delete` scope.
|
185
188
|
# @param [String] name
|
186
189
|
# Required. Resource name of the space to delete. Format: `spaces/`space``
|
187
190
|
# @param [String] fields
|
@@ -211,16 +214,17 @@ module Google
|
|
211
214
|
execute_or_queue_command(command, &block)
|
212
215
|
end
|
213
216
|
|
214
|
-
#
|
215
|
-
#
|
216
|
-
# (
|
217
|
-
#
|
217
|
+
# Returns the existing direct message with the specified user. If no direct
|
218
|
+
# message space is found, returns a `404 NOT_FOUND` error. For an example, see [
|
219
|
+
# Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). With [
|
220
|
+
# user authentication](https://developers.google.com/chat/api/guides/auth/users),
|
221
|
+
# returns the direct message space between the specified user and the
|
222
|
+
# authenticated user. With [service account authentication](https://developers.
|
223
|
+
# google.com/chat/api/guides/auth/service-accounts), returns the direct message
|
224
|
+
# space between the specified user and the calling Chat app. Requires [user
|
225
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/users) or [
|
218
226
|
# service account authentication](https://developers.google.com/chat/api/guides/
|
219
|
-
# auth/service-accounts)
|
220
|
-
# user and the calling Chat app. If no direct message space is found, returns a `
|
221
|
-
# 404 NOT_FOUND` error. Requires [user authentication](https://developers.google.
|
222
|
-
# com/chat/api/guides/auth/users) or [service account authentication](https://
|
223
|
-
# developers.google.com/chat/api/guides/auth/service-accounts).
|
227
|
+
# auth/service-accounts).
|
224
228
|
# @param [String] name
|
225
229
|
# Required. Resource name of the user to find direct message with. Format: `
|
226
230
|
# users/`user``, where ``user`` is either the ``person_id`` for the [person](
|
@@ -256,14 +260,14 @@ module Google
|
|
256
260
|
execute_or_queue_command(command, &block)
|
257
261
|
end
|
258
262
|
|
259
|
-
# Returns a space.
|
260
|
-
# api/guides/
|
261
|
-
# developers.google.com/chat/api/guides/auth
|
262
|
-
# authentication](https://developers.google.com/chat/api/guides/auth/
|
263
|
-
#
|
264
|
-
#
|
265
|
-
#
|
266
|
-
#
|
263
|
+
# Returns details about a space. For an example, see [Get a space](https://
|
264
|
+
# developers.google.com/chat/api/guides/v1/spaces/get). Requires [authentication]
|
265
|
+
# (https://developers.google.com/chat/api/guides/auth). Fully supports [service
|
266
|
+
# account authentication](https://developers.google.com/chat/api/guides/auth/
|
267
|
+
# service-accounts) and [user authentication](https://developers.google.com/chat/
|
268
|
+
# api/guides/auth/users). [User authentication](https://developers.google.com/
|
269
|
+
# chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.
|
270
|
+
# readonly` authorization scope.
|
267
271
|
# @param [String] name
|
268
272
|
# Required. Resource name of the space, in the form "spaces/*". Format: `spaces/`
|
269
273
|
# space``
|
@@ -294,15 +298,14 @@ module Google
|
|
294
298
|
execute_or_queue_command(command, &block)
|
295
299
|
end
|
296
300
|
|
297
|
-
# Lists spaces the caller is a member of.
|
298
|
-
#
|
299
|
-
#
|
300
|
-
#
|
301
|
-
#
|
302
|
-
#
|
303
|
-
#
|
304
|
-
#
|
305
|
-
# readonly` authorization scope. Lists spaces visible to the caller or
|
301
|
+
# Lists spaces the caller is a member of. Group chats and DMs aren't listed
|
302
|
+
# until the first message is sent. For an example, see [List spaces](https://
|
303
|
+
# developers.google.com/chat/api/guides/v1/spaces/list). Requires [
|
304
|
+
# authentication](https://developers.google.com/chat/api/guides/auth). Fully
|
305
|
+
# supports [service account authentication](https://developers.google.com/chat/
|
306
|
+
# api/guides/auth/service-accounts) and [user authentication](https://developers.
|
307
|
+
# google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.
|
308
|
+
# spaces.readonly` authorization scope. Lists spaces visible to the caller or
|
306
309
|
# authenticated user. Group chats and DMs aren't listed until the first message
|
307
310
|
# is sent.
|
308
311
|
# @param [String] filter
|
@@ -318,8 +321,7 @@ module Google
|
|
318
321
|
# service account authentication](https://developers.google.com/chat/api/guides/
|
319
322
|
# auth/service-accounts), this field is ignored and the query always returns all
|
320
323
|
# spaces. But the Chat API still validates the query syntax with service
|
321
|
-
# accounts, so invalid queries are still rejected.
|
322
|
-
# developers.google.com/workspace/preview).
|
324
|
+
# accounts, so invalid queries are still rejected.
|
323
325
|
# @param [Fixnum] page_size
|
324
326
|
# Optional. The maximum number of spaces to return. The service might return
|
325
327
|
# fewer than this value. If unspecified, at most 100 spaces are returned. The
|
@@ -359,9 +361,10 @@ module Google
|
|
359
361
|
execute_or_queue_command(command, &block)
|
360
362
|
end
|
361
363
|
|
362
|
-
# [
|
363
|
-
#
|
364
|
-
# guides/auth/users) and the `chat.spaces`
|
364
|
+
# Updates a space. For an example, see [Update a space](https://developers.
|
365
|
+
# google.com/chat/api/guides/v1/spaces/update). Requires [user authentication](
|
366
|
+
# https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces`
|
367
|
+
# scope.
|
365
368
|
# @param [String] name
|
366
369
|
# Resource name of the space. Format: `spaces/`space``
|
367
370
|
# @param [Google::Apis::ChatV1::Space] space_object
|
@@ -413,31 +416,32 @@ module Google
|
|
413
416
|
execute_or_queue_command(command, &block)
|
414
417
|
end
|
415
418
|
|
416
|
-
#
|
417
|
-
#
|
418
|
-
#
|
419
|
-
# To specify the human members to add,
|
420
|
-
# member.name` in the `SetUpSpaceRequest`.
|
421
|
-
#
|
422
|
-
# developers.google.com/people/api/rest/v1/
|
423
|
-
# id` for the [user](https://developers.
|
424
|
-
# rest/v1/users) in the Admin SDK
|
425
|
-
# Person` `resourceName` is `
|
426
|
-
# space by including a membership
|
427
|
-
# For a space or group chat, if the
|
428
|
-
#
|
429
|
-
# message (DM) between the calling user
|
430
|
-
#
|
431
|
-
# request fails and the DM isn't created.
|
432
|
-
# user and the calling app, set `Space.
|
433
|
-
# specify any memberships. You can only use
|
434
|
-
# to
|
435
|
-
#
|
436
|
-
# members/create)
|
437
|
-
#
|
438
|
-
#
|
439
|
-
# Requires [user
|
440
|
-
# auth/users) and
|
419
|
+
# Creates a space and adds specified users to it. The calling user is
|
420
|
+
# automatically added to the space, and shouldn't be specified as a membership
|
421
|
+
# in the request. For an example, see [Set up a space](https://developers.google.
|
422
|
+
# com/chat/api/guides/v1/spaces/set-up). To specify the human members to add,
|
423
|
+
# add memberships with the appropriate `member.name` in the `SetUpSpaceRequest`.
|
424
|
+
# To add a human user, use `users/`user``, where ``user`` is either the ``
|
425
|
+
# person_id`` for the [person](https://developers.google.com/people/api/rest/v1/
|
426
|
+
# people) from the People API, or the `id` for the [user](https://developers.
|
427
|
+
# google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK
|
428
|
+
# Directory API. For example, if the People API `Person` `resourceName` is `
|
429
|
+
# people/123456789`, you can add the user to the space by including a membership
|
430
|
+
# with `users/123456789` as the `member.name`. For a space or group chat, if the
|
431
|
+
# caller blocks or is blocked by some members, then those members aren't added
|
432
|
+
# to the created space. To create a direct message (DM) between the calling user
|
433
|
+
# and another human user, specify exactly one membership to represent the human
|
434
|
+
# user. If one user blocks the other, the request fails and the DM isn't created.
|
435
|
+
# To create a DM between the calling user and the calling app, set `Space.
|
436
|
+
# singleUserBotDm` to `true` and don't specify any memberships. You can only use
|
437
|
+
# this method to set up a DM with the calling app. To add the calling app as a
|
438
|
+
# member of a space or an existing DM between two human users, see [create a
|
439
|
+
# membership](https://developers.google.com/chat/api/guides/v1/members/create).
|
440
|
+
# If a DM already exists between two users, even when one user blocks the other
|
441
|
+
# at the time a request is made, then the existing DM is returned. Spaces with
|
442
|
+
# threaded replies or guest access aren't supported. Requires [user
|
443
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/users) and
|
444
|
+
# the `chat.spaces.create` or `chat.spaces` scope.
|
441
445
|
# @param [Google::Apis::ChatV1::SetUpSpaceRequest] set_up_space_request_object
|
442
446
|
# @param [String] fields
|
443
447
|
# Selector specifying which fields to include in a partial response.
|
@@ -467,20 +471,25 @@ module Google
|
|
467
471
|
execute_or_queue_command(command, &block)
|
468
472
|
end
|
469
473
|
|
470
|
-
#
|
471
|
-
#
|
472
|
-
#
|
473
|
-
#
|
474
|
-
#
|
475
|
-
#
|
476
|
-
#
|
477
|
-
#
|
478
|
-
# `
|
479
|
-
#
|
480
|
-
#
|
481
|
-
#
|
482
|
-
#
|
483
|
-
#
|
474
|
+
# Creates a human membership or app membership for the calling app. Creating
|
475
|
+
# memberships for other apps isn't supported. For an example, see [ Create a
|
476
|
+
# membership](https://developers.google.com/chat/api/guides/v1/members/create).
|
477
|
+
# When creating a membership, if the specified member has their auto-accept
|
478
|
+
# policy turned off, then they're invited, and must accept the space invitation
|
479
|
+
# before joining. Otherwise, creating a membership adds the member directly to
|
480
|
+
# the specified space. Requires [user authentication](https://developers.google.
|
481
|
+
# com/chat/api/guides/auth/users) and the `chat.memberships` (for human
|
482
|
+
# membership) or `chat.memberships.app` (for app membership) scope. To specify
|
483
|
+
# the member to add, set the `membership.member.name` in the `
|
484
|
+
# CreateMembershipRequest`: - To add the calling app to a space or a direct
|
485
|
+
# message between two human users, use `users/app`. Unable to add other apps to
|
486
|
+
# the space. - To add a human user, use `users/`user``, where ``user`` is either
|
487
|
+
# the ``person_id`` for the [person](https://developers.google.com/people/api/
|
488
|
+
# rest/v1/people) from the People API, or the `id` for the [user](https://
|
489
|
+
# developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the
|
490
|
+
# Directory API. For example, if the People API `Person` `resourceName` is `
|
491
|
+
# people/123456789`, you can add the user to the space by setting the `
|
492
|
+
# membership.member.name` to `users/123456789`.
|
484
493
|
# @param [String] parent
|
485
494
|
# Required. The resource name of the space for which to create the membership.
|
486
495
|
# Format: spaces/`space`
|
@@ -514,10 +523,10 @@ module Google
|
|
514
523
|
execute_or_queue_command(command, &block)
|
515
524
|
end
|
516
525
|
|
517
|
-
# [
|
518
|
-
#
|
519
|
-
# chat/api/guides/auth/users) and
|
520
|
-
# app` authorization scope.
|
526
|
+
# Deletes a membership. For an example, see [Delete a membership](https://
|
527
|
+
# developers.google.com/chat/api/guides/v1/members/delete). Requires [user
|
528
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/users) and
|
529
|
+
# the `chat.memberships` or `chat.memberships.app` authorization scope.
|
521
530
|
# @param [String] name
|
522
531
|
# Required. Resource name of the membership to delete. Chat apps can delete
|
523
532
|
# human users' or their own memberships. Chat apps can't delete other apps'
|
@@ -553,15 +562,14 @@ module Google
|
|
553
562
|
execute_or_queue_command(command, &block)
|
554
563
|
end
|
555
564
|
|
556
|
-
# Returns a membership.
|
557
|
-
# chat/api/guides/
|
558
|
-
#
|
559
|
-
# authentication](https://developers.google.com/chat/
|
560
|
-
#
|
561
|
-
# google.com/
|
562
|
-
#
|
563
|
-
#
|
564
|
-
# scope.
|
565
|
+
# Returns details about a membership. For an example, see [Get a membership](
|
566
|
+
# https://developers.google.com/chat/api/guides/v1/members/get). Requires [
|
567
|
+
# authentication](https://developers.google.com/chat/api/guides/auth). Fully
|
568
|
+
# supports [service account authentication](https://developers.google.com/chat/
|
569
|
+
# api/guides/auth/service-accounts) and [user authentication](https://developers.
|
570
|
+
# google.com/chat/api/guides/auth/users). [User authentication](https://
|
571
|
+
# developers.google.com/chat/api/guides/auth/users) requires the `chat.
|
572
|
+
# memberships` or `chat.memberships.readonly` authorization scope.
|
565
573
|
# @param [String] name
|
566
574
|
# Required. Resource name of the membership to retrieve. Format: `spaces/`space`/
|
567
575
|
# members/`member``
|
@@ -592,15 +600,19 @@ module Google
|
|
592
600
|
execute_or_queue_command(command, &block)
|
593
601
|
end
|
594
602
|
|
595
|
-
# Lists memberships in a space.
|
596
|
-
# google.com/chat/api/guides/
|
597
|
-
# authentication](https://developers.google.com/chat/api/guides/auth/
|
598
|
-
# accounts)
|
599
|
-
#
|
600
|
-
#
|
601
|
-
#
|
602
|
-
# com/chat/api/guides/auth
|
603
|
-
#
|
603
|
+
# Lists memberships in a space. For an example, see [List memberships](https://
|
604
|
+
# developers.google.com/chat/api/guides/v1/members/list). Listing memberships
|
605
|
+
# with [app authentication](https://developers.google.com/chat/api/guides/auth/
|
606
|
+
# service-accounts) lists memberships in spaces that the Chat app has access to,
|
607
|
+
# but excludes Chat app memberships, including its own. Listing memberships with
|
608
|
+
# [User authentication](https://developers.google.com/chat/api/guides/auth/users)
|
609
|
+
# lists memberships in spaces that the authenticated user has access to.
|
610
|
+
# Requires [authentication](https://developers.google.com/chat/api/guides/auth).
|
611
|
+
# Fully supports [service account authentication](https://developers.google.com/
|
612
|
+
# chat/api/guides/auth/service-accounts) and [user authentication](https://
|
613
|
+
# developers.google.com/chat/api/guides/auth/users). [User authentication](https:
|
614
|
+
# //developers.google.com/chat/api/guides/auth/users) requires the `chat.
|
615
|
+
# memberships` or `chat.memberships.readonly` authorization scope.
|
604
616
|
# @param [String] parent
|
605
617
|
# Required. The resource name of the space for which to fetch a membership list.
|
606
618
|
# Format: spaces/`space`
|
@@ -665,16 +677,16 @@ module Google
|
|
665
677
|
execute_or_queue_command(command, &block)
|
666
678
|
end
|
667
679
|
|
668
|
-
# Creates a message. For example
|
669
|
-
#
|
670
|
-
#
|
671
|
-
#
|
672
|
-
# chat/api/guides/auth/
|
673
|
-
#
|
674
|
-
#
|
675
|
-
#
|
676
|
-
#
|
677
|
-
#
|
680
|
+
# Creates a message. For an example, see [Create a message](https://developers.
|
681
|
+
# google.com/chat/api/guides/crudl/messages#create_a_message). Requires [
|
682
|
+
# authentication](https://developers.google.com/chat/api/guides/auth). Creating
|
683
|
+
# a text message supports both [user authentication](https://developers.google.
|
684
|
+
# com/chat/api/guides/auth/users) and [app authentication] (https://developers.
|
685
|
+
# google.com/chat/api/guides/auth/service-accounts). [User authentication](https:
|
686
|
+
# //developers.google.com/chat/api/guides/auth/users) requires the `chat.
|
687
|
+
# messages` or `chat.messages.create` authorization scope. Creating a card
|
688
|
+
# message only supports and requires [app authentication] (https://developers.
|
689
|
+
# google.com/chat/api/guides/auth/service-accounts). Because Chat provides
|
678
690
|
# authentication for [webhooks](https://developers.google.com/chat/how-tos/
|
679
691
|
# webhooks) as part of the URL that's generated when a webhook is registered,
|
680
692
|
# webhooks can create messages without a service account or user authentication.
|
@@ -686,9 +698,15 @@ module Google
|
|
686
698
|
# Optional. A custom name for a Chat message assigned at creation. Must start
|
687
699
|
# with `client-` and contain only lowercase letters, numbers, and hyphens up to
|
688
700
|
# 63 characters in length. Specify this field to get, update, or delete the
|
689
|
-
# message with the specified value.
|
690
|
-
# message](
|
691
|
-
#
|
701
|
+
# message with the specified value. Assigning a custom name lets a a Chat app
|
702
|
+
# recall the message without saving the message `name` from the [response body](/
|
703
|
+
# chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when
|
704
|
+
# creating the message. Assigning a custom name doesn't replace the generated `
|
705
|
+
# name` field, the message's resource name. Instead, it sets the custom name as
|
706
|
+
# the `clientAssignedMessageId` field, which you can reference while processing
|
707
|
+
# later operations, like updating or deleting the message. For example usage,
|
708
|
+
# see [Name a created message](https://developers.google.com/chat/api/guides/
|
709
|
+
# crudl/messages#name_a_created_message).
|
692
710
|
# @param [String] message_reply_option
|
693
711
|
# Optional. Specifies whether a message starts a thread or replies to one. Only
|
694
712
|
# supported in named spaces.
|
@@ -734,16 +752,13 @@ module Google
|
|
734
752
|
execute_or_queue_command(command, &block)
|
735
753
|
end
|
736
754
|
|
737
|
-
# Deletes a message. For example
|
738
|
-
#
|
739
|
-
#
|
740
|
-
#
|
741
|
-
#
|
742
|
-
#
|
743
|
-
#
|
744
|
-
# preview), which grants early access to certain features. [User authentication](
|
745
|
-
# https://developers.google.com/chat/api/guides/auth/users) requires the `chat.
|
746
|
-
# messages` authorization scope.
|
755
|
+
# Deletes a message. For an example, see [Delete a message](https://developers.
|
756
|
+
# google.com/chat/api/guides/v1/messages/delete). Requires [authentication](
|
757
|
+
# https://developers.google.com/chat/api/guides/auth). Fully supports [service
|
758
|
+
# account authentication](https://developers.google.com/chat/api/guides/auth/
|
759
|
+
# service-accounts) and [user authentication](https://developers.google.com/chat/
|
760
|
+
# api/guides/auth/users). [User authentication](https://developers.google.com/
|
761
|
+
# chat/api/guides/auth/users) requires the `chat.messages` authorization scope.
|
747
762
|
# @param [String] name
|
748
763
|
# Required. Resource name of the message that you want to delete, in the form `
|
749
764
|
# spaces/*/messages/*` Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.
|
@@ -782,17 +797,15 @@ module Google
|
|
782
797
|
execute_or_queue_command(command, &block)
|
783
798
|
end
|
784
799
|
|
785
|
-
# Returns a message. For example
|
786
|
-
# google.com/chat/api/guides/
|
800
|
+
# Returns details about a message. For an example, see [Read a message](https://
|
801
|
+
# developers.google.com/chat/api/guides/v1/messages/get). Requires [
|
787
802
|
# authentication](https://developers.google.com/chat/api/guides/auth). Fully
|
788
|
-
# supports [
|
789
|
-
# api/guides/auth/service-accounts)
|
790
|
-
#
|
791
|
-
#
|
792
|
-
#
|
793
|
-
#
|
794
|
-
# messages` or `chat.messages.readonly` authorization scope. Note: Might return
|
795
|
-
# a message from a blocked member or space.
|
803
|
+
# supports [service account authentication](https://developers.google.com/chat/
|
804
|
+
# api/guides/auth/service-accounts) and [user authentication](https://developers.
|
805
|
+
# google.com/chat/api/guides/auth/users). [User authentication](https://
|
806
|
+
# developers.google.com/chat/api/guides/auth/users) requires the `chat.messages`
|
807
|
+
# or `chat.messages.readonly` authorization scope. Note: Might return a message
|
808
|
+
# from a blocked member or space.
|
796
809
|
# @param [String] name
|
797
810
|
# Required. Resource name of the message to retrieve. Format: `spaces/`space`/
|
798
811
|
# messages/`message`` If the message begins with `client-`, then it has a custom
|
@@ -827,9 +840,9 @@ module Google
|
|
827
840
|
execute_or_queue_command(command, &block)
|
828
841
|
end
|
829
842
|
|
830
|
-
#
|
831
|
-
#
|
832
|
-
#
|
843
|
+
# Lists messages in a space that the caller is a member of, including messages
|
844
|
+
# from blocked members and spaces. For an example, see [List messages](/chat/api/
|
845
|
+
# guides/v1/messages/list). Requires [user authentication](https://developers.
|
833
846
|
# google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.
|
834
847
|
# messages.readonly` authorization scope. This method is only supported in
|
835
848
|
# spaces that don't allow users from outside the Workspace organization to join.
|
@@ -905,16 +918,14 @@ module Google
|
|
905
918
|
execute_or_queue_command(command, &block)
|
906
919
|
end
|
907
920
|
|
908
|
-
# Updates a message. There's a difference between `patch` and `update`
|
909
|
-
# The `patch` method uses a `patch` request while the `update` method
|
910
|
-
# put` request. We recommend using the `patch` method. For example
|
911
|
-
# Update a message](https://developers.google.com/chat/api/guides/
|
912
|
-
#
|
913
|
-
#
|
914
|
-
#
|
915
|
-
# authentication](https://developers.google.com/chat/api/guides/auth/users)
|
916
|
-
# part of the [Google Workspace Developer Preview Program](https://developers.
|
917
|
-
# google.com/workspace/preview), which grants early access to certain features. [
|
921
|
+
# Updates a message. There's a difference between the `patch` and `update`
|
922
|
+
# methods. The `patch` method uses a `patch` request while the `update` method
|
923
|
+
# uses a `put` request. We recommend using the `patch` method. For an example,
|
924
|
+
# see [Update a message](https://developers.google.com/chat/api/guides/v1/
|
925
|
+
# messages/update). Requires [authentication](https://developers.google.com/chat/
|
926
|
+
# api/guides/auth). Fully supports [service account authentication](https://
|
927
|
+
# developers.google.com/chat/api/guides/auth/service-accounts) and [user
|
928
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/users). [
|
918
929
|
# User authentication](https://developers.google.com/chat/api/guides/auth/users)
|
919
930
|
# requires the `chat.messages` authorization scope.
|
920
931
|
# @param [String] name
|
@@ -928,8 +939,10 @@ module Google
|
|
928
939
|
# name_a_created_message) or the request fails.
|
929
940
|
# @param [String] update_mask
|
930
941
|
# Required. The field paths to update. Separate multiple values with commas.
|
931
|
-
# Currently supported field paths: - `text` - `cards` (Requires [
|
932
|
-
# authentication](/chat/api/guides/auth/service-accounts).) - `
|
942
|
+
# Currently supported field paths: - `text` - `attachment` - `cards` (Requires [
|
943
|
+
# service account authentication](/chat/api/guides/auth/service-accounts).) - `
|
944
|
+
# cards_v2` (Requires [service account authentication](/chat/api/guides/auth/
|
945
|
+
# service-accounts).)
|
933
946
|
# @param [String] fields
|
934
947
|
# Selector specifying which fields to include in a partial response.
|
935
948
|
# @param [String] quota_user
|
@@ -961,16 +974,14 @@ module Google
|
|
961
974
|
execute_or_queue_command(command, &block)
|
962
975
|
end
|
963
976
|
|
964
|
-
# Updates a message. There's a difference between `patch` and `update`
|
965
|
-
# The `patch` method uses a `patch` request while the `update` method
|
966
|
-
# put` request. We recommend using the `patch` method. For example
|
967
|
-
# Update a message](https://developers.google.com/chat/api/guides/
|
968
|
-
#
|
969
|
-
#
|
970
|
-
#
|
971
|
-
# authentication](https://developers.google.com/chat/api/guides/auth/users)
|
972
|
-
# part of the [Google Workspace Developer Preview Program](https://developers.
|
973
|
-
# google.com/workspace/preview), which grants early access to certain features. [
|
977
|
+
# Updates a message. There's a difference between the `patch` and `update`
|
978
|
+
# methods. The `patch` method uses a `patch` request while the `update` method
|
979
|
+
# uses a `put` request. We recommend using the `patch` method. For an example,
|
980
|
+
# see [Update a message](https://developers.google.com/chat/api/guides/v1/
|
981
|
+
# messages/update). Requires [authentication](https://developers.google.com/chat/
|
982
|
+
# api/guides/auth). Fully supports [service account authentication](https://
|
983
|
+
# developers.google.com/chat/api/guides/auth/service-accounts) and [user
|
984
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/users). [
|
974
985
|
# User authentication](https://developers.google.com/chat/api/guides/auth/users)
|
975
986
|
# requires the `chat.messages` authorization scope.
|
976
987
|
# @param [String] name
|
@@ -984,8 +995,10 @@ module Google
|
|
984
995
|
# name_a_created_message) or the request fails.
|
985
996
|
# @param [String] update_mask
|
986
997
|
# Required. The field paths to update. Separate multiple values with commas.
|
987
|
-
# Currently supported field paths: - `text` - `cards` (Requires [
|
988
|
-
# authentication](/chat/api/guides/auth/service-accounts).) - `
|
998
|
+
# Currently supported field paths: - `text` - `attachment` - `cards` (Requires [
|
999
|
+
# service account authentication](/chat/api/guides/auth/service-accounts).) - `
|
1000
|
+
# cards_v2` (Requires [service account authentication](/chat/api/guides/auth/
|
1001
|
+
# service-accounts).)
|
989
1002
|
# @param [String] fields
|
990
1003
|
# Selector specifying which fields to include in a partial response.
|
991
1004
|
# @param [String] quota_user
|
@@ -1019,8 +1032,10 @@ module Google
|
|
1019
1032
|
|
1020
1033
|
# Gets the metadata of a message attachment. The attachment data is fetched
|
1021
1034
|
# using the [media API](https://developers.google.com/chat/api/reference/rest/v1/
|
1022
|
-
# media/download).
|
1023
|
-
# google.com/chat/api/guides/
|
1035
|
+
# media/download). For an example, see [Get a message attachment](https://
|
1036
|
+
# developers.google.com/chat/api/guides/v1/media-and-attachments/get). Requires [
|
1037
|
+
# service account authentication](https://developers.google.com/chat/api/guides/
|
1038
|
+
# auth/service-accounts).
|
1024
1039
|
# @param [String] name
|
1025
1040
|
# Required. Resource name of the attachment, in the form `spaces/*/messages/*/
|
1026
1041
|
# attachments/*`.
|
@@ -1051,11 +1066,11 @@ module Google
|
|
1051
1066
|
execute_or_queue_command(command, &block)
|
1052
1067
|
end
|
1053
1068
|
|
1054
|
-
#
|
1055
|
-
#
|
1056
|
-
# developers.google.com/chat/api/guides/
|
1057
|
-
# chat.messages
|
1058
|
-
# unicode emoji are supported.
|
1069
|
+
# Creates a reaction and adds it to a message. For an example, see [Create a
|
1070
|
+
# reaction](https://developers.google.com/chat/api/guides/v1/reactions/create).
|
1071
|
+
# Requires [user authentication](https://developers.google.com/chat/api/guides/
|
1072
|
+
# auth/users) and the `chat.messages`, `chat.messages.reactions`, or `chat.
|
1073
|
+
# messages.reactions.create` scope. Only unicode emoji are supported.
|
1059
1074
|
# @param [String] parent
|
1060
1075
|
# Required. The message where the reaction is created. Format: `spaces/`space`/
|
1061
1076
|
# messages/`message``
|
@@ -1089,10 +1104,10 @@ module Google
|
|
1089
1104
|
execute_or_queue_command(command, &block)
|
1090
1105
|
end
|
1091
1106
|
|
1092
|
-
# [
|
1093
|
-
#
|
1094
|
-
# google.com/chat/api/guides/auth/users) and
|
1095
|
-
# messages.reactions` scope.
|
1107
|
+
# Deletes a reaction to a message. For an example, see [Delete a reaction](https:
|
1108
|
+
# //developers.google.com/chat/api/guides/v1/reactions/delete). Requires [user
|
1109
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/users) and
|
1110
|
+
# the `chat.messages` or `chat.messages.reactions` scope.
|
1096
1111
|
# @param [String] name
|
1097
1112
|
# Required. Name of the reaction to delete. Format: `spaces/`space`/messages/`
|
1098
1113
|
# message`/reactions/`reaction``
|
@@ -1123,11 +1138,11 @@ module Google
|
|
1123
1138
|
execute_or_queue_command(command, &block)
|
1124
1139
|
end
|
1125
1140
|
|
1126
|
-
# [
|
1127
|
-
# reactions
|
1128
|
-
# google.com/chat/api/guides/auth/users) and `
|
1129
|
-
# readonly`, `chat.messages.reactions`, or `chat.
|
1130
|
-
# scope.
|
1141
|
+
# Lists reactions to a message. For an example, see [List reactions](https://
|
1142
|
+
# developers.google.com/chat/api/guides/v1/reactions/list). Requires [user
|
1143
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/users) and `
|
1144
|
+
# chat.messages`, `chat.messages.readonly`, `chat.messages.reactions`, or `chat.
|
1145
|
+
# messages.reactions.readonly` scope.
|
1131
1146
|
# @param [String] parent
|
1132
1147
|
# Required. The message users reacted to. Format: `spaces/`space`/messages/`
|
1133
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.61.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-
|
11
|
+
date: 2023-06-11 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.61.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: []
|