google-apps-chat-v1 0.1.2 → 0.2.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/lib/google/apps/chat/v1/chat_service/client.rb +36 -10
- data/lib/google/apps/chat/v1/chat_service/credentials.rb +5 -0
- data/lib/google/apps/chat/v1/chat_service/rest/client.rb +36 -10
- data/lib/google/apps/chat/v1/version.rb +1 -1
- data/lib/google/chat/v1/chat_service_pb.rb +1 -1
- data/lib/google/chat/v1/chat_service_services_pb.rb +3 -0
- data/lib/google/chat/v1/space_pb.rb +3 -1
- data/proto_docs/google/chat/v1/attachment.rb +2 -2
- data/proto_docs/google/chat/v1/membership.rb +8 -2
- data/proto_docs/google/chat/v1/space.rb +66 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 877eaa8f938142f7f76400b54a2d444e7064e354b2388a24839961883c45fd38
|
4
|
+
data.tar.gz: acc91917f940187c18df84e4fb35c5fd4cee8ddae1991ed9a42f7f4378ecd0d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92038d4b5cdd579f9a8e8e7fe893b807702cea0953e2cc1e1cea0aa65e254e517eef398773ba03447af625a1d7a588f5ffa5e3445d0481739ec186a4ec8a00d8
|
7
|
+
data.tar.gz: 7fd2e7b15f5be710d7af4baceb486b9fb14e90703856b2a736c8238b971d837574cf530656997a227667471faa466b01d6079858143dde512ae9bab451ad8696
|
@@ -662,16 +662,23 @@ module Google
|
|
662
662
|
#
|
663
663
|
# To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
|
664
664
|
#
|
665
|
-
# To filter by type, set `member.type` to `HUMAN` or `BOT`.
|
665
|
+
# To filter by type, set `member.type` to `HUMAN` or `BOT`. Developer
|
666
|
+
# Preview: You can also filter for `member.type` using the `!=` operator.
|
666
667
|
#
|
667
668
|
# To filter by both role and type, use the `AND` operator. To filter by
|
668
669
|
# either role or type, use the `OR` operator.
|
669
670
|
#
|
671
|
+
# Either `member.type = "HUMAN"` or `member.type != "BOT"` is required
|
672
|
+
# when `use_admin_access` is set to true. Other member type filters will be
|
673
|
+
# rejected.
|
674
|
+
#
|
670
675
|
# For example, the following queries are valid:
|
671
676
|
#
|
672
677
|
# ```
|
673
678
|
# role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
|
674
679
|
# member.type = "HUMAN" AND role = "ROLE_MANAGER"
|
680
|
+
#
|
681
|
+
# member.type != "BOT"
|
675
682
|
# ```
|
676
683
|
#
|
677
684
|
# The following queries are invalid:
|
@@ -681,7 +688,6 @@ module Google
|
|
681
688
|
# role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
|
682
689
|
# ```
|
683
690
|
#
|
684
|
-
#
|
685
691
|
# Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
|
686
692
|
# error.
|
687
693
|
# @param show_groups [::Boolean]
|
@@ -1249,7 +1255,7 @@ module Google
|
|
1249
1255
|
#
|
1250
1256
|
# @param name [::String]
|
1251
1257
|
# Required. Resource name of the attachment, in the form
|
1252
|
-
# `spaces
|
1258
|
+
# `spaces/{space}/messages/{message}/attachments/{attachment}`.
|
1253
1259
|
#
|
1254
1260
|
# @yield [response, operation] Access the result along with the RPC operation
|
1255
1261
|
# @yieldparam response [::Google::Apps::Chat::V1::Attachment]
|
@@ -1430,6 +1436,10 @@ module Google
|
|
1430
1436
|
# Lists spaces visible to the caller or authenticated user. Group chats
|
1431
1437
|
# and DMs aren't listed until the first message is sent.
|
1432
1438
|
#
|
1439
|
+
# To list all named spaces by Google Workspace organization, use the
|
1440
|
+
# [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
|
1441
|
+
# method using Workspace administrator privileges instead.
|
1442
|
+
#
|
1433
1443
|
# @overload list_spaces(request, options = nil)
|
1434
1444
|
# Pass arguments to `list_spaces` via a request object, either of type
|
1435
1445
|
# {::Google::Apps::Chat::V1::ListSpacesRequest} or an equivalent Hash.
|
@@ -1573,7 +1583,7 @@ module Google
|
|
1573
1583
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1574
1584
|
#
|
1575
1585
|
# @param name [::String]
|
1576
|
-
# Required. Resource name of the space, in the form
|
1586
|
+
# Required. Resource name of the space, in the form `spaces/{space}`.
|
1577
1587
|
#
|
1578
1588
|
# Format: `spaces/{space}`
|
1579
1589
|
#
|
@@ -1985,6 +1995,7 @@ module Google
|
|
1985
1995
|
# the display name is optional if the existing space already has the `SPACE`
|
1986
1996
|
# type. Trying to update the space type in other ways results in an invalid
|
1987
1997
|
# argument error).
|
1998
|
+
# `space_type` is not supported with admin access.
|
1988
1999
|
#
|
1989
2000
|
# - `space_details`
|
1990
2001
|
#
|
@@ -1993,12 +2004,27 @@ module Google
|
|
1993
2004
|
# allows users to change their history
|
1994
2005
|
# setting](https://support.google.com/a/answer/7664184).
|
1995
2006
|
# Warning: mutually exclusive with all other field paths.)
|
1996
|
-
#
|
1997
|
-
#
|
1998
|
-
#
|
1999
|
-
#
|
2000
|
-
#
|
2001
|
-
#
|
2007
|
+
# `space_history_state` is not supported with admin access.
|
2008
|
+
#
|
2009
|
+
# - `access_settings.audience` (Supports changing the [access
|
2010
|
+
# setting](https://support.google.com/chat/answer/11971020) of who can
|
2011
|
+
# discover the space, join the space, and preview the messages in space. If
|
2012
|
+
# no audience is specified in the access setting, the space's access setting
|
2013
|
+
# is updated to private. Warning: mutually exclusive with all other field
|
2014
|
+
# paths.)
|
2015
|
+
# `access_settings.audience` is not supported with admin access.
|
2016
|
+
#
|
2017
|
+
# - Developer Preview: Supports changing the [permission
|
2018
|
+
# settings](https://support.google.com/chat/answer/13340792) of a space,
|
2019
|
+
# supported field paths
|
2020
|
+
# include: `permission_settings.manage_members_and_groups`,
|
2021
|
+
# `permission_settings.modify_space_details`,
|
2022
|
+
# `permission_settings.toggle_history`,
|
2023
|
+
# `permission_settings.use_at_mention_all`,
|
2024
|
+
# `permission_settings.manage_apps`, `permission_settings.manage_webhooks`,
|
2025
|
+
# `permission_settings.reply_messages`
|
2026
|
+
# (Warning: mutually exclusive with all other non-permission settings field
|
2027
|
+
# paths). `permission_settings` is not supported with admin access.
|
2002
2028
|
#
|
2003
2029
|
# @yield [response, operation] Access the result along with the RPC operation
|
2004
2030
|
# @yieldparam response [::Google::Apps::Chat::V1::Space]
|
@@ -26,6 +26,11 @@ module Google
|
|
26
26
|
# Credentials for the ChatService API.
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
28
28
|
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/chat.admin.delete",
|
30
|
+
"https://www.googleapis.com/auth/chat.admin.memberships",
|
31
|
+
"https://www.googleapis.com/auth/chat.admin.memberships.readonly",
|
32
|
+
"https://www.googleapis.com/auth/chat.admin.spaces",
|
33
|
+
"https://www.googleapis.com/auth/chat.admin.spaces.readonly",
|
29
34
|
"https://www.googleapis.com/auth/chat.bot",
|
30
35
|
"https://www.googleapis.com/auth/chat.delete",
|
31
36
|
"https://www.googleapis.com/auth/chat.import",
|
@@ -641,16 +641,23 @@ module Google
|
|
641
641
|
#
|
642
642
|
# To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
|
643
643
|
#
|
644
|
-
# To filter by type, set `member.type` to `HUMAN` or `BOT`.
|
644
|
+
# To filter by type, set `member.type` to `HUMAN` or `BOT`. Developer
|
645
|
+
# Preview: You can also filter for `member.type` using the `!=` operator.
|
645
646
|
#
|
646
647
|
# To filter by both role and type, use the `AND` operator. To filter by
|
647
648
|
# either role or type, use the `OR` operator.
|
648
649
|
#
|
650
|
+
# Either `member.type = "HUMAN"` or `member.type != "BOT"` is required
|
651
|
+
# when `use_admin_access` is set to true. Other member type filters will be
|
652
|
+
# rejected.
|
653
|
+
#
|
649
654
|
# For example, the following queries are valid:
|
650
655
|
#
|
651
656
|
# ```
|
652
657
|
# role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
|
653
658
|
# member.type = "HUMAN" AND role = "ROLE_MANAGER"
|
659
|
+
#
|
660
|
+
# member.type != "BOT"
|
654
661
|
# ```
|
655
662
|
#
|
656
663
|
# The following queries are invalid:
|
@@ -660,7 +667,6 @@ module Google
|
|
660
667
|
# role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
|
661
668
|
# ```
|
662
669
|
#
|
663
|
-
#
|
664
670
|
# Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
|
665
671
|
# error.
|
666
672
|
# @param show_groups [::Boolean]
|
@@ -1193,7 +1199,7 @@ module Google
|
|
1193
1199
|
#
|
1194
1200
|
# @param name [::String]
|
1195
1201
|
# Required. Resource name of the attachment, in the form
|
1196
|
-
# `spaces
|
1202
|
+
# `spaces/{space}/messages/{message}/attachments/{attachment}`.
|
1197
1203
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1198
1204
|
# @yieldparam result [::Google::Apps::Chat::V1::Attachment]
|
1199
1205
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1360,6 +1366,10 @@ module Google
|
|
1360
1366
|
# Lists spaces visible to the caller or authenticated user. Group chats
|
1361
1367
|
# and DMs aren't listed until the first message is sent.
|
1362
1368
|
#
|
1369
|
+
# To list all named spaces by Google Workspace organization, use the
|
1370
|
+
# [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
|
1371
|
+
# method using Workspace administrator privileges instead.
|
1372
|
+
#
|
1363
1373
|
# @overload list_spaces(request, options = nil)
|
1364
1374
|
# Pass arguments to `list_spaces` via a request object, either of type
|
1365
1375
|
# {::Google::Apps::Chat::V1::ListSpacesRequest} or an equivalent Hash.
|
@@ -1504,7 +1514,7 @@ module Google
|
|
1504
1514
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1505
1515
|
#
|
1506
1516
|
# @param name [::String]
|
1507
|
-
# Required. Resource name of the space, in the form
|
1517
|
+
# Required. Resource name of the space, in the form `spaces/{space}`.
|
1508
1518
|
#
|
1509
1519
|
# Format: `spaces/{space}`
|
1510
1520
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -1911,6 +1921,7 @@ module Google
|
|
1911
1921
|
# the display name is optional if the existing space already has the `SPACE`
|
1912
1922
|
# type. Trying to update the space type in other ways results in an invalid
|
1913
1923
|
# argument error).
|
1924
|
+
# `space_type` is not supported with admin access.
|
1914
1925
|
#
|
1915
1926
|
# - `space_details`
|
1916
1927
|
#
|
@@ -1919,12 +1930,27 @@ module Google
|
|
1919
1930
|
# allows users to change their history
|
1920
1931
|
# setting](https://support.google.com/a/answer/7664184).
|
1921
1932
|
# Warning: mutually exclusive with all other field paths.)
|
1922
|
-
#
|
1923
|
-
#
|
1924
|
-
#
|
1925
|
-
#
|
1926
|
-
#
|
1927
|
-
#
|
1933
|
+
# `space_history_state` is not supported with admin access.
|
1934
|
+
#
|
1935
|
+
# - `access_settings.audience` (Supports changing the [access
|
1936
|
+
# setting](https://support.google.com/chat/answer/11971020) of who can
|
1937
|
+
# discover the space, join the space, and preview the messages in space. If
|
1938
|
+
# no audience is specified in the access setting, the space's access setting
|
1939
|
+
# is updated to private. Warning: mutually exclusive with all other field
|
1940
|
+
# paths.)
|
1941
|
+
# `access_settings.audience` is not supported with admin access.
|
1942
|
+
#
|
1943
|
+
# - Developer Preview: Supports changing the [permission
|
1944
|
+
# settings](https://support.google.com/chat/answer/13340792) of a space,
|
1945
|
+
# supported field paths
|
1946
|
+
# include: `permission_settings.manage_members_and_groups`,
|
1947
|
+
# `permission_settings.modify_space_details`,
|
1948
|
+
# `permission_settings.toggle_history`,
|
1949
|
+
# `permission_settings.use_at_mention_all`,
|
1950
|
+
# `permission_settings.manage_apps`, `permission_settings.manage_webhooks`,
|
1951
|
+
# `permission_settings.reply_messages`
|
1952
|
+
# (Warning: mutually exclusive with all other non-permission settings field
|
1953
|
+
# paths). `permission_settings` is not supported with admin access.
|
1928
1954
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1929
1955
|
# @yieldparam result [::Google::Apps::Chat::V1::Space]
|
1930
1956
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -17,7 +17,7 @@ require 'google/chat/v1/thread_read_state_pb'
|
|
17
17
|
require 'google/protobuf/empty_pb'
|
18
18
|
|
19
19
|
|
20
|
-
descriptor_data = "\n!google/chat/v1/chat_service.proto\x12\x0egoogle.chat.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a\x1fgoogle/chat/v1/membership.proto\x1a\x1cgoogle/chat/v1/message.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x1agoogle/chat/v1/space.proto\x1a%google/chat/v1/space_read_state.proto\x1a google/chat/v1/space_setup.proto\x1a&google/chat/v1/thread_read_state.proto\x1a\x1bgoogle/protobuf/empty.proto2\
|
20
|
+
descriptor_data = "\n!google/chat/v1/chat_service.proto\x12\x0egoogle.chat.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a\x1fgoogle/chat/v1/membership.proto\x1a\x1cgoogle/chat/v1/message.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x1agoogle/chat/v1/space.proto\x1a%google/chat/v1/space_read_state.proto\x1a google/chat/v1/space_setup.proto\x1a&google/chat/v1/thread_read_state.proto\x1a\x1bgoogle/protobuf/empty.proto2\xf4&\n\x0b\x43hatService\x12\x9b\x01\n\rCreateMessage\x12$.google.chat.v1.CreateMessageRequest\x1a\x17.google.chat.v1.Message\"K\xda\x41\x19parent,message,message_id\x82\xd3\xe4\x93\x02)\"\x1e/v1/{parent=spaces/*}/messages:\x07message\x12\x8a\x01\n\x0cListMessages\x12#.google.chat.v1.ListMessagesRequest\x1a$.google.chat.v1.ListMessagesResponse\"/\xda\x41\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=spaces/*}/messages\x12\x92\x01\n\x0fListMemberships\x12&.google.chat.v1.ListMembershipsRequest\x1a\'.google.chat.v1.ListMembershipsResponse\".\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=spaces/*}/members\x12\x7f\n\rGetMembership\x12$.google.chat.v1.GetMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{name=spaces/*/members/*}\x12w\n\nGetMessage\x12!.google.chat.v1.GetMessageRequest\x1a\x17.google.chat.v1.Message\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=spaces/*/messages/*}\x12\xd1\x01\n\rUpdateMessage\x12$.google.chat.v1.UpdateMessageRequest\x1a\x17.google.chat.v1.Message\"\x80\x01\xda\x41\x13message,update_mask\x82\xd3\xe4\x93\x02\x64\x1a&/v1/{message.name=spaces/*/messages/*}:\x07messageZ12&/v1/{message.name=spaces/*/messages/*}:\x07message\x12|\n\rDeleteMessage\x12$.google.chat.v1.DeleteMessageRequest\x1a\x16.google.protobuf.Empty\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/v1/{name=spaces/*/messages/*}\x12\x8e\x01\n\rGetAttachment\x12$.google.chat.v1.GetAttachmentRequest\x1a\x1a.google.chat.v1.Attachment\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=spaces/*/messages/*/attachments/*}\x12\x9a\x01\n\x10UploadAttachment\x12\'.google.chat.v1.UploadAttachmentRequest\x1a(.google.chat.v1.UploadAttachmentResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1/{parent=spaces/*}/attachments:upload:\x01*\x12j\n\nListSpaces\x12!.google.chat.v1.ListSpacesRequest\x1a\".google.chat.v1.ListSpacesResponse\"\x15\xda\x41\x00\x82\xd3\xe4\x93\x02\x0c\x12\n/v1/spaces\x12\x66\n\x08GetSpace\x12\x1f.google.chat.v1.GetSpaceRequest\x1a\x15.google.chat.v1.Space\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15\x12\x13/v1/{name=spaces/*}\x12k\n\x0b\x43reateSpace\x12\".google.chat.v1.CreateSpaceRequest\x1a\x15.google.chat.v1.Space\"!\xda\x41\x05space\x82\xd3\xe4\x93\x02\x13\"\n/v1/spaces:\x05space\x12\x63\n\nSetUpSpace\x12!.google.chat.v1.SetUpSpaceRequest\x1a\x15.google.chat.v1.Space\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x10/v1/spaces:setup:\x01*\x12\x86\x01\n\x0bUpdateSpace\x12\".google.chat.v1.UpdateSpaceRequest\x1a\x15.google.chat.v1.Space\"<\xda\x41\x11space,update_mask\x82\xd3\xe4\x93\x02\"2\x19/v1/{space.name=spaces/*}:\x05space\x12m\n\x0b\x44\x65leteSpace\x12\".google.chat.v1.DeleteSpaceRequest\x1a\x16.google.protobuf.Empty\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15*\x13/v1/{name=spaces/*}\x12\x9d\x01\n\x13\x43ompleteImportSpace\x12*.google.chat.v1.CompleteImportSpaceRequest\x1a+.google.chat.v1.CompleteImportSpaceResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1/{name=spaces/*}:completeImport:\x01*\x12z\n\x11\x46indDirectMessage\x12(.google.chat.v1.FindDirectMessageRequest\x1a\x15.google.chat.v1.Space\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/spaces:findDirectMessage\x12\x9e\x01\n\x10\x43reateMembership\x12\'.google.chat.v1.CreateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"E\xda\x41\x11parent,membership\x82\xd3\xe4\x93\x02+\"\x1d/v1/{parent=spaces/*}/members:\nmembership\x12\xae\x01\n\x10UpdateMembership\x12\'.google.chat.v1.UpdateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"U\xda\x41\x16membership,update_mask\x82\xd3\xe4\x93\x02\x36\x32(/v1/{membership.name=spaces/*/members/*}:\nmembership\x12\x85\x01\n\x10\x44\x65leteMembership\x12\'.google.chat.v1.DeleteMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=spaces/*/members/*}\x12\xa1\x01\n\x0e\x43reateReaction\x12%.google.chat.v1.CreateReactionRequest\x1a\x18.google.chat.v1.Reaction\"N\xda\x41\x0fparent,reaction\x82\xd3\xe4\x93\x02\x36\"*/v1/{parent=spaces/*/messages/*}/reactions:\x08reaction\x12\x99\x01\n\rListReactions\x12$.google.chat.v1.ListReactionsRequest\x1a%.google.chat.v1.ListReactionsResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v1/{parent=spaces/*/messages/*}/reactions\x12\x8a\x01\n\x0e\x44\x65leteReaction\x12%.google.chat.v1.DeleteReactionRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v1/{name=spaces/*/messages/*/reactions/*}\x12\x98\x01\n\x11GetSpaceReadState\x12(.google.chat.v1.GetSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v1/{name=users/*/spaces/*/spaceReadState}\x12\xd9\x01\n\x14UpdateSpaceReadState\x12+.google.chat.v1.UpdateSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"t\xda\x41\x1cspace_read_state,update_mask\x82\xd3\xe4\x93\x02O2;/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}:\x10space_read_state\x12\xa6\x01\n\x12GetThreadReadState\x12).google.chat.v1.GetThreadReadStateRequest\x1a\x1f.google.chat.v1.ThreadReadState\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=users/*/spaces/*/threads/*/threadReadState}\x1a\xa9\t\xca\x41\x13\x63hat.googleapis.com\xd2\x41\x8f\thttps://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonlyB\xa9\x01\n\x12\x63om.google.chat.v1B\x10\x43hatServiceProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xa2\x02\x0b\x44YNAPIProto\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"
|
21
21
|
|
22
22
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
23
23
|
|
@@ -165,6 +165,9 @@ module Google
|
|
165
165
|
# Lists spaces visible to the caller or authenticated user. Group chats
|
166
166
|
# and DMs aren't listed until the first message is sent.
|
167
167
|
#
|
168
|
+
# To list all named spaces by Google Workspace organization, use the
|
169
|
+
# [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
|
170
|
+
# method using Workspace administrator privileges instead.
|
168
171
|
rpc :ListSpaces, ::Google::Apps::Chat::V1::ListSpacesRequest, ::Google::Apps::Chat::V1::ListSpacesResponse
|
169
172
|
# Returns details about a space. For an example, see
|
170
173
|
# [Get details about a
|
@@ -11,7 +11,7 @@ require 'google/protobuf/field_mask_pb'
|
|
11
11
|
require 'google/protobuf/timestamp_pb'
|
12
12
|
|
13
13
|
|
14
|
-
descriptor_data = "\n\x1agoogle/chat/v1/space.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\"google/chat/v1/history_state.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
14
|
+
descriptor_data = "\n\x1agoogle/chat/v1/space.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\"google/chat/v1/history_state.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xba\t\n\x05Space\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x04type\x18\x02 \x01(\x0e\x32\x1a.google.chat.v1.Space.TypeB\x05\x18\x01\xe0\x41\x03\x12\x33\n\nspace_type\x18\n \x01(\x0e\x32\x1f.google.chat.v1.Space.SpaceType\x12\x1f\n\x12single_user_bot_dm\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x17\n\x08threaded\x18\x05 \x01(\x08\x42\x05\x18\x01\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\"\n\x15\x65xternal_user_allowed\x18\x08 \x01(\x08\x42\x03\xe0\x41\x05\x12M\n\x15space_threading_state\x18\t \x01(\x0e\x32).google.chat.v1.Space.SpaceThreadingStateB\x03\xe0\x41\x03\x12\x39\n\rspace_details\x18\x0b \x01(\x0b\x32\".google.chat.v1.Space.SpaceDetails\x12\x39\n\x13space_history_state\x18\r \x01(\x0e\x32\x1c.google.chat.v1.HistoryState\x12\x18\n\x0bimport_mode\x18\x10 \x01(\x08\x42\x03\xe0\x41\x01\x12\x37\n\x0b\x63reate_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xe0\x41\x05\xe0\x41\x01\x12\x1c\n\x0f\x61\x64min_installed\x18\x13 \x01(\x08\x42\x03\xe0\x41\x03\x12\x42\n\x0f\x61\x63\x63\x65ss_settings\x18\x17 \x01(\x0b\x32$.google.chat.v1.Space.AccessSettingsB\x03\xe0\x41\x01\x12\x16\n\tspace_uri\x18\x19 \x01(\tB\x03\xe0\x41\x03\x1a\x37\n\x0cSpaceDetails\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x12\n\nguidelines\x18\x02 \x01(\t\x1a\xc0\x01\n\x0e\x41\x63\x63\x65ssSettings\x12K\n\x0c\x61\x63\x63\x65ss_state\x18\x01 \x01(\x0e\x32\x30.google.chat.v1.Space.AccessSettings.AccessStateB\x03\xe0\x41\x03\x12\x15\n\x08\x61udience\x18\x03 \x01(\tB\x03\xe0\x41\x01\"J\n\x0b\x41\x63\x63\x65ssState\x12\x1c\n\x18\x41\x43\x43\x45SS_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRIVATE\x10\x01\x12\x10\n\x0c\x44ISCOVERABLE\x10\x02\".\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04ROOM\x10\x01\x12\x06\n\x02\x44M\x10\x02\"V\n\tSpaceType\x12\x1a\n\x16SPACE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nGROUP_CHAT\x10\x02\x12\x12\n\x0e\x44IRECT_MESSAGE\x10\x03\"\x82\x01\n\x13SpaceThreadingState\x12%\n!SPACE_THREADING_STATE_UNSPECIFIED\x10\x00\x12\x15\n\x11THREADED_MESSAGES\x10\x02\x12\x14\n\x10GROUPED_MESSAGES\x10\x03\x12\x17\n\x13UNTHREADED_MESSAGES\x10\x04:.\xea\x41+\n\x19\x63hat.googleapis.com/Space\x12\x0espaces/{space}\"X\n\x12\x43reateSpaceRequest\x12)\n\x05space\x18\x01 \x01(\x0b\x32\x15.google.chat.v1.SpaceB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"Y\n\x11ListSpacesRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01\"T\n\x12ListSpacesResponse\x12%\n\x06spaces\x18\x01 \x03(\x0b\x32\x15.google.chat.v1.Space\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"B\n\x0fGetSpaceRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\"-\n\x18\x46indDirectMessageRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"p\n\x12UpdateSpaceRequest\x12)\n\x05space\x18\x01 \x01(\x0b\x32\x15.google.chat.v1.SpaceB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"E\n\x12\x44\x65leteSpaceRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\"M\n\x1a\x43ompleteImportSpaceRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\"C\n\x1b\x43ompleteImportSpaceResponse\x12$\n\x05space\x18\x01 \x01(\x0b\x32\x15.google.chat.v1.SpaceB\xa3\x01\n\x12\x63om.google.chat.v1B\nSpaceProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xa2\x02\x0b\x44YNAPIProto\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"
|
15
15
|
|
16
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
17
|
|
@@ -45,6 +45,8 @@ module Google
|
|
45
45
|
module V1
|
46
46
|
Space = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Space").msgclass
|
47
47
|
Space::SpaceDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Space.SpaceDetails").msgclass
|
48
|
+
Space::AccessSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Space.AccessSettings").msgclass
|
49
|
+
Space::AccessSettings::AccessState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Space.AccessSettings.AccessState").enummodule
|
48
50
|
Space::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Space.Type").enummodule
|
49
51
|
Space::SpaceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Space.SpaceType").enummodule
|
50
52
|
Space::SpaceThreadingState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Space.SpaceThreadingState").enummodule
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @!attribute [rw] name
|
26
26
|
# @return [::String]
|
27
27
|
# Resource name of the attachment, in the form
|
28
|
-
# `spaces
|
28
|
+
# `spaces/{space}/messages/{message}/attachments/{attachment}`.
|
29
29
|
# @!attribute [r] content_name
|
30
30
|
# @return [::String]
|
31
31
|
# Output only. The original file name for the content, not the full path.
|
@@ -98,7 +98,7 @@ module Google
|
|
98
98
|
# @!attribute [rw] name
|
99
99
|
# @return [::String]
|
100
100
|
# Required. Resource name of the attachment, in the form
|
101
|
-
# `spaces
|
101
|
+
# `spaces/{space}/messages/{message}/attachments/{attachment}`.
|
102
102
|
class GetAttachmentRequest
|
103
103
|
include ::Google::Protobuf::MessageExts
|
104
104
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -186,16 +186,23 @@ module Google
|
|
186
186
|
#
|
187
187
|
# To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
|
188
188
|
#
|
189
|
-
# To filter by type, set `member.type` to `HUMAN` or `BOT`.
|
189
|
+
# To filter by type, set `member.type` to `HUMAN` or `BOT`. Developer
|
190
|
+
# Preview: You can also filter for `member.type` using the `!=` operator.
|
190
191
|
#
|
191
192
|
# To filter by both role and type, use the `AND` operator. To filter by
|
192
193
|
# either role or type, use the `OR` operator.
|
193
194
|
#
|
195
|
+
# Either `member.type = "HUMAN"` or `member.type != "BOT"` is required
|
196
|
+
# when `use_admin_access` is set to true. Other member type filters will be
|
197
|
+
# rejected.
|
198
|
+
#
|
194
199
|
# For example, the following queries are valid:
|
195
200
|
#
|
196
201
|
# ```
|
197
202
|
# role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
|
198
203
|
# member.type = "HUMAN" AND role = "ROLE_MANAGER"
|
204
|
+
#
|
205
|
+
# member.type != "BOT"
|
199
206
|
# ```
|
200
207
|
#
|
201
208
|
# The following queries are invalid:
|
@@ -205,7 +212,6 @@ module Google
|
|
205
212
|
# role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
|
206
213
|
# ```
|
207
214
|
#
|
208
|
-
#
|
209
215
|
# Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
|
210
216
|
# error.
|
211
217
|
# @!attribute [rw] show_groups
|
@@ -110,6 +110,14 @@ module Google
|
|
110
110
|
# their organization.
|
111
111
|
#
|
112
112
|
# To support admin install, your Chat app must feature direct messaging.
|
113
|
+
# @!attribute [rw] access_settings
|
114
|
+
# @return [::Google::Apps::Chat::V1::Space::AccessSettings]
|
115
|
+
# Optional. Specifies the [access
|
116
|
+
# setting](https://support.google.com/chat/answer/11971020) of the space.
|
117
|
+
# Only populated when the `space_type` is `SPACE`.
|
118
|
+
# @!attribute [r] space_uri
|
119
|
+
# @return [::String]
|
120
|
+
# Output only. The URI for a user to access the space.
|
113
121
|
class Space
|
114
122
|
include ::Google::Protobuf::MessageExts
|
115
123
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -131,6 +139,42 @@ module Google
|
|
131
139
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
132
140
|
end
|
133
141
|
|
142
|
+
# Represents the [access
|
143
|
+
# setting](https://support.google.com/chat/answer/11971020) of the space.
|
144
|
+
# @!attribute [r] access_state
|
145
|
+
# @return [::Google::Apps::Chat::V1::Space::AccessSettings::AccessState]
|
146
|
+
# Output only. Indicates the access state of the space.
|
147
|
+
# @!attribute [rw] audience
|
148
|
+
# @return [::String]
|
149
|
+
# Optional. The resource name of the [target
|
150
|
+
# audience](https://support.google.com/a/answer/9934697) who can discover
|
151
|
+
# the space, join the space, and preview the messages in the space. For
|
152
|
+
# details, see [Make a space discoverable to a target
|
153
|
+
# audience](https://developers.google.com/workspace/chat/space-target-audience).
|
154
|
+
#
|
155
|
+
# Format: `audiences/{audience}`
|
156
|
+
#
|
157
|
+
# To use the default target audience for the Google Workspace organization,
|
158
|
+
# set to `audiences/default`.
|
159
|
+
class AccessSettings
|
160
|
+
include ::Google::Protobuf::MessageExts
|
161
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
162
|
+
|
163
|
+
# Represents the access state of the space.
|
164
|
+
module AccessState
|
165
|
+
# Access state is unknown or not supported in this API.
|
166
|
+
ACCESS_STATE_UNSPECIFIED = 0
|
167
|
+
|
168
|
+
# Space is discoverable by added or invited members or groups.
|
169
|
+
PRIVATE = 1
|
170
|
+
|
171
|
+
# Space is discoverable by the selected [target
|
172
|
+
# audience](https://support.google.com/a/answer/9934697), as well as
|
173
|
+
# added or invited members or groups.
|
174
|
+
DISCOVERABLE = 2
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
134
178
|
# Deprecated: Use `SpaceType` instead.
|
135
179
|
module Type
|
136
180
|
# Reserved.
|
@@ -268,7 +312,7 @@ module Google
|
|
268
312
|
# A request to return a single space.
|
269
313
|
# @!attribute [rw] name
|
270
314
|
# @return [::String]
|
271
|
-
# Required. Resource name of the space, in the form
|
315
|
+
# Required. Resource name of the space, in the form `spaces/{space}`.
|
272
316
|
#
|
273
317
|
# Format: `spaces/{space}`
|
274
318
|
class GetSpaceRequest
|
@@ -326,6 +370,7 @@ module Google
|
|
326
370
|
# the display name is optional if the existing space already has the `SPACE`
|
327
371
|
# type. Trying to update the space type in other ways results in an invalid
|
328
372
|
# argument error).
|
373
|
+
# `space_type` is not supported with admin access.
|
329
374
|
#
|
330
375
|
# - `space_details`
|
331
376
|
#
|
@@ -334,12 +379,27 @@ module Google
|
|
334
379
|
# allows users to change their history
|
335
380
|
# setting](https://support.google.com/a/answer/7664184).
|
336
381
|
# Warning: mutually exclusive with all other field paths.)
|
382
|
+
# `space_history_state` is not supported with admin access.
|
383
|
+
#
|
384
|
+
# - `access_settings.audience` (Supports changing the [access
|
385
|
+
# setting](https://support.google.com/chat/answer/11971020) of who can
|
386
|
+
# discover the space, join the space, and preview the messages in space. If
|
387
|
+
# no audience is specified in the access setting, the space's access setting
|
388
|
+
# is updated to private. Warning: mutually exclusive with all other field
|
389
|
+
# paths.)
|
390
|
+
# `access_settings.audience` is not supported with admin access.
|
337
391
|
#
|
338
|
-
# - Developer Preview:
|
339
|
-
#
|
340
|
-
#
|
341
|
-
#
|
342
|
-
#
|
392
|
+
# - Developer Preview: Supports changing the [permission
|
393
|
+
# settings](https://support.google.com/chat/answer/13340792) of a space,
|
394
|
+
# supported field paths
|
395
|
+
# include: `permission_settings.manage_members_and_groups`,
|
396
|
+
# `permission_settings.modify_space_details`,
|
397
|
+
# `permission_settings.toggle_history`,
|
398
|
+
# `permission_settings.use_at_mention_all`,
|
399
|
+
# `permission_settings.manage_apps`, `permission_settings.manage_webhooks`,
|
400
|
+
# `permission_settings.reply_messages`
|
401
|
+
# (Warning: mutually exclusive with all other non-permission settings field
|
402
|
+
# paths). `permission_settings` is not supported with admin access.
|
343
403
|
class UpdateSpaceRequest
|
344
404
|
include ::Google::Protobuf::MessageExts
|
345
405
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apps-chat-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|