google-apis-chat_v1 0.75.0 → 0.77.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 +10 -11
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/service.rb +89 -92
- 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: 82e52f01a75d5732e8b21c4cb38eec99174f8dca5aa7f79797175c3027157a05
|
4
|
+
data.tar.gz: b2dd508219112f9d890170180c05eebe4526d99bcd6cdb3f3d91b2c3373b2f04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 102581df0e348883dc5c620dd08595390412fe3fa807f865442ea3312d3c714d6c88f4dd3b7be0a97b7e6f4164ae2550c3f1f6e5cfbb865fb9d74c79bf332444
|
7
|
+
data.tar.gz: 65fc975528d6e5274f2964d5fe6140843057ba7910bd3a7326961638d9bcfd7695e98a1b0bcafcca49345bcef4fcadf05beaeff94927a227a2dc9854095b55d9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-chat_v1
|
2
2
|
|
3
|
+
### v0.77.0 (2023-11-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20231116
|
6
|
+
|
7
|
+
### v0.76.0 (2023-11-19)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20231114
|
10
|
+
|
3
11
|
### v0.75.0 (2023-11-12)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20231105
|
@@ -4163,17 +4163,16 @@ module Google
|
|
4163
4163
|
|
4164
4164
|
# Resource name for a Google Chat user. Format: `users/`user``. `users/app` can
|
4165
4165
|
# be used as an alias for the calling app bot user. For human users, ``user`` is
|
4166
|
-
# the same user identifier as: - the
|
4167
|
-
#
|
4168
|
-
#
|
4169
|
-
# in
|
4170
|
-
#
|
4171
|
-
#
|
4172
|
-
#
|
4173
|
-
#
|
4174
|
-
#
|
4175
|
-
# users/123456789
|
4176
|
-
# 123456789`) will be returned from the API.
|
4166
|
+
# the same user identifier as: - the `id` for the [Person](https://developers.
|
4167
|
+
# google.com/people/api/rest/v1/people) in the People API. For example, `users/
|
4168
|
+
# 123456789` in Chat API represents the same person as the `123456789` Person
|
4169
|
+
# profile ID in People API. - the `id` for a [user](https://developers.google.
|
4170
|
+
# com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory
|
4171
|
+
# API. - the user's email address can be used as an alias for ``user`` in API
|
4172
|
+
# requests. For example, if the People API Person profile ID for `user@example.
|
4173
|
+
# com` is `123456789`, you can use `users/user@example.com` as an alias to
|
4174
|
+
# reference `users/123456789`. Only the canonical resource name (for example `
|
4175
|
+
# users/123456789`) will be returned from the API.
|
4177
4176
|
# Corresponds to the JSON property `name`
|
4178
4177
|
# @return [String]
|
4179
4178
|
attr_accessor :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.77.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 = "20231116"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -219,23 +219,23 @@ module Google
|
|
219
219
|
# Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). With [
|
220
220
|
# user authentication](https://developers.google.com/chat/api/guides/auth/users),
|
221
221
|
# returns the direct message space between the specified user and the
|
222
|
-
# authenticated user. With [
|
223
|
-
#
|
224
|
-
#
|
222
|
+
# authenticated user. With [app authentication](https://developers.google.com/
|
223
|
+
# chat/api/guides/auth/service-accounts), returns the direct message space
|
224
|
+
# between the specified user and the calling Chat app. Requires [user
|
225
225
|
# authentication](https://developers.google.com/chat/api/guides/auth/users) or [
|
226
|
-
#
|
227
|
-
#
|
226
|
+
# app authentication](https://developers.google.com/chat/api/guides/auth/service-
|
227
|
+
# accounts).
|
228
228
|
# @param [String] name
|
229
229
|
# Required. Resource name of the user to find direct message with. Format: `
|
230
|
-
# users/`user``, where ``user`` is either the
|
231
|
-
#
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
230
|
+
# users/`user``, where ``user`` is either the `id` for the [person](https://
|
231
|
+
# developers.google.com/people/api/rest/v1/people) from the People API, or the `
|
232
|
+
# id` for the [user](https://developers.google.com/admin-sdk/directory/reference/
|
233
|
+
# rest/v1/users) in the Directory API. For example, if the People API profile ID
|
234
|
+
# is `123456789`, you can find a direct message with that person by using `users/
|
235
|
+
# 123456789` as the `name`. When [authenticated as a user](https://developers.
|
236
|
+
# google.com/chat/api/guides/auth/users), you can use the email as an alias for `
|
237
|
+
# `user``. For example, `users/example@gmail.com` where `example@gmail.com` is
|
238
|
+
# the email of the Google Chat user.
|
239
239
|
# @param [String] fields
|
240
240
|
# Selector specifying which fields to include in a partial response.
|
241
241
|
# @param [String] quota_user
|
@@ -265,10 +265,10 @@ module Google
|
|
265
265
|
|
266
266
|
# Returns details about a space. For an example, see [Get a space](https://
|
267
267
|
# developers.google.com/chat/api/guides/v1/spaces/get). Requires [authentication]
|
268
|
-
# (https://developers.google.com/chat/api/guides/auth).
|
269
|
-
#
|
270
|
-
#
|
271
|
-
#
|
268
|
+
# (https://developers.google.com/chat/api/guides/auth). Supports [app
|
269
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/service-
|
270
|
+
# accounts) and [user authentication](https://developers.google.com/chat/api/
|
271
|
+
# guides/auth/users).
|
272
272
|
# @param [String] name
|
273
273
|
# Required. Resource name of the space, in the form "spaces/*". Format: `spaces/`
|
274
274
|
# space``
|
@@ -302,12 +302,11 @@ module Google
|
|
302
302
|
# Lists spaces the caller is a member of. Group chats and DMs aren't listed
|
303
303
|
# until the first message is sent. For an example, see [List spaces](https://
|
304
304
|
# developers.google.com/chat/api/guides/v1/spaces/list). Requires [
|
305
|
-
# authentication](https://developers.google.com/chat/api/guides/auth).
|
306
|
-
#
|
307
|
-
#
|
308
|
-
#
|
309
|
-
#
|
310
|
-
# is sent.
|
305
|
+
# authentication](https://developers.google.com/chat/api/guides/auth). Supports [
|
306
|
+
# app authentication](https://developers.google.com/chat/api/guides/auth/service-
|
307
|
+
# accounts) and [user authentication](https://developers.google.com/chat/api/
|
308
|
+
# guides/auth/users). Lists spaces visible to the caller or authenticated user.
|
309
|
+
# Group chats and DMs aren't listed until the first message is sent.
|
311
310
|
# @param [String] filter
|
312
311
|
# Optional. A query filter. Requires [user authentication](https://developers.
|
313
312
|
# google.com/chat/api/guides/auth/users). You can filter spaces by the space
|
@@ -317,11 +316,11 @@ module Google
|
|
317
316
|
# SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR`
|
318
317
|
# operator. For example, the following queries are valid: ``` space_type = "
|
319
318
|
# SPACE" spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE" ``` Invalid
|
320
|
-
# queries are rejected by the server with an `INVALID_ARGUMENT` error. With [
|
321
|
-
#
|
322
|
-
#
|
323
|
-
#
|
324
|
-
#
|
319
|
+
# queries are rejected by the server with an `INVALID_ARGUMENT` error. With [app
|
320
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/service-
|
321
|
+
# accounts), this field is ignored and the query always returns all spaces. But
|
322
|
+
# the Chat API still validates the query syntax, so invalid queries are still
|
323
|
+
# rejected.
|
325
324
|
# @param [Fixnum] page_size
|
326
325
|
# Optional. The maximum number of spaces to return. The service might return
|
327
326
|
# fewer than this value. If unspecified, at most 100 spaces are returned. The
|
@@ -427,27 +426,27 @@ module Google
|
|
427
426
|
# add memberships with the appropriate `member.name` in the `SetUpSpaceRequest`.
|
428
427
|
# To add a human user, use `users/`user``, where ``user`` can be the email
|
429
428
|
# address for the user. For users in the same Workspace organization ``user``
|
430
|
-
# can also be the
|
431
|
-
#
|
432
|
-
#
|
433
|
-
#
|
434
|
-
#
|
435
|
-
#
|
436
|
-
#
|
437
|
-
#
|
438
|
-
#
|
439
|
-
#
|
440
|
-
#
|
441
|
-
#
|
442
|
-
#
|
443
|
-
#
|
444
|
-
#
|
445
|
-
#
|
446
|
-
#
|
447
|
-
#
|
448
|
-
#
|
449
|
-
#
|
450
|
-
#
|
429
|
+
# can also be the `id` for the person from the People API, or the `id` for the
|
430
|
+
# user in the Directory API. For example, if the People API Person profile ID
|
431
|
+
# for `user@example.com` is `123456789`, you can add the user to the space by
|
432
|
+
# setting the `membership.member.name` to `users/user@example.com` or `users/
|
433
|
+
# 123456789`. For a space or group chat, if the caller blocks or is blocked by
|
434
|
+
# some members, then those members aren't added to the created space. To create
|
435
|
+
# a direct message (DM) between the calling user and another human user, specify
|
436
|
+
# exactly one membership to represent the human user. If one user blocks the
|
437
|
+
# other, the request fails and the DM isn't created. To create a DM between the
|
438
|
+
# calling user and the calling app, set `Space.singleUserBotDm` to `true` and
|
439
|
+
# don't specify any memberships. You can only use this method to set up a DM
|
440
|
+
# with the calling app. To add the calling app as a member of a space or an
|
441
|
+
# existing DM between two human users, see [create a membership](https://
|
442
|
+
# developers.google.com/chat/api/guides/v1/members/create). If a DM already
|
443
|
+
# exists between two users, even when one user blocks the other at the time a
|
444
|
+
# request is made, then the existing DM is returned. Spaces with threaded
|
445
|
+
# replies aren't supported. If you receive the error message `ALREADY_EXISTS`
|
446
|
+
# when setting up a space, try a different `displayName`. An existing space
|
447
|
+
# within the Google Workspace organization might already use this display name.
|
448
|
+
# Requires [user authentication](https://developers.google.com/chat/api/guides/
|
449
|
+
# auth/users).
|
451
450
|
# @param [Google::Apis::ChatV1::SetUpSpaceRequest] set_up_space_request_object
|
452
451
|
# @param [String] fields
|
453
452
|
# Selector specifying which fields to include in a partial response.
|
@@ -489,11 +488,11 @@ module Google
|
|
489
488
|
# app to a space or a direct message between two human users, use `users/app`.
|
490
489
|
# Unable to add other apps to the space. - To add a human user, use `users/`user`
|
491
490
|
# `, where ``user`` can be the email address for the user. For users in the same
|
492
|
-
# Workspace organization ``user`` can also be the
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
491
|
+
# Workspace organization ``user`` can also be the `id` for the person from the
|
492
|
+
# People API, or the `id` for the user in the Directory API. For example, if the
|
493
|
+
# People API Person profile ID for `user@example.com` is `123456789`, you can
|
494
|
+
# add the user to the space by setting the `membership.member.name` to `users/
|
495
|
+
# user@example.com` or `users/123456789`.
|
497
496
|
# @param [String] parent
|
498
497
|
# Required. The resource name of the space for which to create the membership.
|
499
498
|
# Format: spaces/`space`
|
@@ -569,10 +568,10 @@ module Google
|
|
569
568
|
|
570
569
|
# Returns details about a membership. For an example, see [Get a membership](
|
571
570
|
# https://developers.google.com/chat/api/guides/v1/members/get). Requires [
|
572
|
-
# authentication](https://developers.google.com/chat/api/guides/auth).
|
573
|
-
#
|
574
|
-
#
|
575
|
-
#
|
571
|
+
# authentication](https://developers.google.com/chat/api/guides/auth). Supports [
|
572
|
+
# app authentication](https://developers.google.com/chat/api/guides/auth/service-
|
573
|
+
# accounts) and [user authentication](https://developers.google.com/chat/api/
|
574
|
+
# guides/auth/users).
|
576
575
|
# @param [String] name
|
577
576
|
# Required. Resource name of the membership to retrieve. To get the app's own
|
578
577
|
# membership, you can optionally use `spaces/`space`/members/app`. Format: `
|
@@ -616,9 +615,9 @@ module Google
|
|
616
615
|
# [User authentication](https://developers.google.com/chat/api/guides/auth/users)
|
617
616
|
# lists memberships in spaces that the authenticated user has access to.
|
618
617
|
# Requires [authentication](https://developers.google.com/chat/api/guides/auth).
|
619
|
-
#
|
620
|
-
#
|
621
|
-
#
|
618
|
+
# Supports [app authentication](https://developers.google.com/chat/api/guides/
|
619
|
+
# auth/service-accounts) and [user authentication](https://developers.google.com/
|
620
|
+
# chat/api/guides/auth/users).
|
622
621
|
# @param [String] parent
|
623
622
|
# Required. The resource name of the space for which to fetch a membership list.
|
624
623
|
# Format: spaces/`space`
|
@@ -755,11 +754,11 @@ module Google
|
|
755
754
|
|
756
755
|
# Deletes a message. For an example, see [Delete a message](https://developers.
|
757
756
|
# google.com/chat/api/guides/v1/messages/delete). Requires [authentication](
|
758
|
-
# https://developers.google.com/chat/api/guides/auth).
|
759
|
-
#
|
760
|
-
#
|
761
|
-
#
|
762
|
-
#
|
757
|
+
# https://developers.google.com/chat/api/guides/auth). Supports [app
|
758
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/service-
|
759
|
+
# accounts) and [user authentication](https://developers.google.com/chat/api/
|
760
|
+
# guides/auth/users). When using app authentication, requests can only delete
|
761
|
+
# messages created by the calling Chat app.
|
763
762
|
# @param [String] name
|
764
763
|
# Required. Resource name of the message that you want to delete, in the form `
|
765
764
|
# spaces/*/messages/*` Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.
|
@@ -768,8 +767,8 @@ module Google
|
|
768
767
|
# When `true`, deleting a message also deletes its threaded replies. When `false`
|
769
768
|
# , if a message has threaded replies, deletion fails. Only applies when [
|
770
769
|
# authenticating as a user](https://developers.google.com/chat/api/guides/auth/
|
771
|
-
# users). Has no effect when [authenticating
|
772
|
-
#
|
770
|
+
# users). Has no effect when [authenticating as a Chat app] (https://developers.
|
771
|
+
# google.com/chat/api/guides/auth/service-accounts).
|
773
772
|
# @param [String] fields
|
774
773
|
# Selector specifying which fields to include in a partial response.
|
775
774
|
# @param [String] quota_user
|
@@ -800,11 +799,11 @@ module Google
|
|
800
799
|
|
801
800
|
# Returns details about a message. For an example, see [Read a message](https://
|
802
801
|
# developers.google.com/chat/api/guides/v1/messages/get). Requires [
|
803
|
-
# authentication](https://developers.google.com/chat/api/guides/auth).
|
804
|
-
#
|
805
|
-
#
|
806
|
-
#
|
807
|
-
#
|
802
|
+
# authentication](https://developers.google.com/chat/api/guides/auth). Supports [
|
803
|
+
# app authentication](https://developers.google.com/chat/api/guides/auth/service-
|
804
|
+
# accounts) and [user authentication](https://developers.google.com/chat/api/
|
805
|
+
# guides/auth/users). Note: Might return a message from a blocked member or
|
806
|
+
# space.
|
808
807
|
# @param [String] name
|
809
808
|
# Required. Resource name of the message to retrieve. Format: `spaces/`space`/
|
810
809
|
# messages/`message`` If the message begins with `client-`, then it has a custom
|
@@ -920,11 +919,11 @@ module Google
|
|
920
919
|
# uses a `put` request. We recommend using the `patch` method. For an example,
|
921
920
|
# see [Update a message](https://developers.google.com/chat/api/guides/v1/
|
922
921
|
# messages/update). Requires [authentication](https://developers.google.com/chat/
|
923
|
-
# api/guides/auth).
|
924
|
-
#
|
925
|
-
#
|
926
|
-
#
|
927
|
-
#
|
922
|
+
# api/guides/auth). Supports [app authentication](https://developers.google.com/
|
923
|
+
# chat/api/guides/auth/service-accounts) and [user authentication](https://
|
924
|
+
# developers.google.com/chat/api/guides/auth/users). When using app
|
925
|
+
# authentication, requests can only update messages created by the calling Chat
|
926
|
+
# app.
|
928
927
|
# @param [String] name
|
929
928
|
# Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
|
930
929
|
# messages/BBBBBBBBBBB.BBBBBBBBBBB`
|
@@ -937,9 +936,8 @@ module Google
|
|
937
936
|
# @param [String] update_mask
|
938
937
|
# Required. The field paths to update. Separate multiple values with commas.
|
939
938
|
# Currently supported field paths: - `text` - `attachment` - `cards` (Requires [
|
940
|
-
#
|
941
|
-
#
|
942
|
-
# service-accounts).)
|
939
|
+
# app authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (
|
940
|
+
# Requires [app authentication](/chat/api/guides/auth/service-accounts).)
|
943
941
|
# @param [String] fields
|
944
942
|
# Selector specifying which fields to include in a partial response.
|
945
943
|
# @param [String] quota_user
|
@@ -976,11 +974,11 @@ module Google
|
|
976
974
|
# uses a `put` request. We recommend using the `patch` method. For an example,
|
977
975
|
# see [Update a message](https://developers.google.com/chat/api/guides/v1/
|
978
976
|
# messages/update). Requires [authentication](https://developers.google.com/chat/
|
979
|
-
# api/guides/auth).
|
980
|
-
#
|
981
|
-
#
|
982
|
-
#
|
983
|
-
#
|
977
|
+
# api/guides/auth). Supports [app authentication](https://developers.google.com/
|
978
|
+
# chat/api/guides/auth/service-accounts) and [user authentication](https://
|
979
|
+
# developers.google.com/chat/api/guides/auth/users). When using app
|
980
|
+
# authentication, requests can only update messages created by the calling Chat
|
981
|
+
# app.
|
984
982
|
# @param [String] name
|
985
983
|
# Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
|
986
984
|
# messages/BBBBBBBBBBB.BBBBBBBBBBB`
|
@@ -993,9 +991,8 @@ module Google
|
|
993
991
|
# @param [String] update_mask
|
994
992
|
# Required. The field paths to update. Separate multiple values with commas.
|
995
993
|
# Currently supported field paths: - `text` - `attachment` - `cards` (Requires [
|
996
|
-
#
|
997
|
-
#
|
998
|
-
# service-accounts).)
|
994
|
+
# app authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (
|
995
|
+
# Requires [app authentication](/chat/api/guides/auth/service-accounts).)
|
999
996
|
# @param [String] fields
|
1000
997
|
# Selector specifying which fields to include in a partial response.
|
1001
998
|
# @param [String] quota_user
|
@@ -1031,8 +1028,8 @@ module Google
|
|
1031
1028
|
# using the [media API](https://developers.google.com/chat/api/reference/rest/v1/
|
1032
1029
|
# media/download). For an example, see [Get a message attachment](https://
|
1033
1030
|
# developers.google.com/chat/api/guides/v1/media-and-attachments/get). Requires [
|
1034
|
-
#
|
1035
|
-
#
|
1031
|
+
# app authentication](https://developers.google.com/chat/api/guides/auth/service-
|
1032
|
+
# accounts).
|
1036
1033
|
# @param [String] name
|
1037
1034
|
# Required. Resource name of the attachment, in the form `spaces/*/messages/*/
|
1038
1035
|
# attachments/*`.
|
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.77.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-
|
11
|
+
date: 2023-11-26 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.77.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: []
|