Skip to content

Commit e26b8a6

Browse files
docs: Improve documentation of attachment.proto, event_payload.proto and space.proto (#32284)
feat: Add app authorization support to space APIs feat: Add accessory widget support for private messages PiperOrigin-RevId: 845227338 Source-Link: googleapis/googleapis@1a9d00b Source-Link: googleapis/googleapis-gen@ab1d025 Copy-Tag: eyJwIjoiZ29vZ2xlLWFwcHMtY2hhdC12MS8uT3dsQm90LnlhbWwiLCJoIjoiYWIxZDAyNTAwMjI0ZWI3ZWRhNDdkMjM0NjZlNDBkMjVjMTc2ZjIzYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 87dca63 commit e26b8a6

File tree

10 files changed

+290
-131
lines changed

10 files changed

+290
-131
lines changed

google-apps-chat-v1/lib/google/apps/chat/v1/chat_service/client.rb

Lines changed: 93 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -530,21 +530,34 @@ def create_message request, options = nil
530530

531531
##
532532
# Lists messages in a space that the caller is a member of, including
533-
# messages from blocked members and spaces. If you list messages from a
533+
# messages from blocked members and spaces. System messages, like those
534+
# announcing new space members, aren't included. If you list messages from a
534535
# space with no messages, the response is an empty object. When using a
535536
# REST/HTTP interface, the response contains an empty JSON object, `{}`.
536537
# For an example, see
537538
# [List
538539
# messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list).
539540
#
540-
# Requires [user
541-
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
542-
# with one of the following [authorization
543-
# scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
541+
# Supports the following types of
542+
# [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
544543
#
545-
# - `https://www.googleapis.com/auth/chat.messages.readonly`
546-
# - `https://www.googleapis.com/auth/chat.messages`
547-
# - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
544+
# - [App
545+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
546+
# with [administrator
547+
# approval](https://support.google.com/a?p=chat-app-auth) in
548+
# [Developer Preview](https://developers.google.com/workspace/preview)
549+
# with the authorization scope:
550+
# - `https://www.googleapis.com/auth/chat.app.messages.readonly`. When
551+
# using this authentication scope, this method only returns public
552+
# messages in a space. It doesn't include private messages.
553+
#
554+
# - [User
555+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
556+
# with one of the following authorization scopes:
557+
# - `https://www.googleapis.com/auth/chat.messages.readonly`
558+
# - `https://www.googleapis.com/auth/chat.messages`
559+
# - `https://www.googleapis.com/auth/chat.import` (import mode spaces
560+
# only)
548561
#
549562
# @overload list_messages(request, options = nil)
550563
# Pass arguments to `list_messages` via a request object, either of type
@@ -1057,8 +1070,18 @@ def get_membership request, options = nil
10571070
#
10581071
# - [App
10591072
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1060-
# with the authorization scope:
1061-
# - `https://www.googleapis.com/auth/chat.bot`
1073+
# with one of the following authorization scopes:
1074+
# - `https://www.googleapis.com/auth/chat.bot`: When using this
1075+
# authorization scope, this method returns details about a message the
1076+
# Chat app has access to, like direct messages and [slash
1077+
# commands](https://developers.google.com/workspace/chat/slash-commands)
1078+
# that invoke the Chat app.
1079+
# - `https://www.googleapis.com/auth/chat.app.messages.readonly`
1080+
# with [administrator
1081+
# approval](https://support.google.com/a?p=chat-app-auth) (available in
1082+
# [Developer Preview](https://developers.google.com/workspace/preview)).
1083+
# When using this authentication scope,
1084+
# this method returns details about a public message in a space.
10621085
#
10631086
# - [User
10641087
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
@@ -1751,7 +1774,9 @@ def list_spaces request, options = nil
17511774

17521775
##
17531776
# Returns a list of spaces in a Google Workspace organization based on an
1754-
# administrator's search.
1777+
# administrator's search. In the request, set `use_admin_access` to `true`.
1778+
# For an example, see [Search for and manage
1779+
# spaces](https://developers.google.com/workspace/chat/search-manage-admin).
17551780
#
17561781
# Requires [user
17571782
# authentication with administrator
@@ -1762,8 +1787,6 @@ def list_spaces request, options = nil
17621787
# - `https://www.googleapis.com/auth/chat.admin.spaces.readonly`
17631788
# - `https://www.googleapis.com/auth/chat.admin.spaces`
17641789
#
1765-
# In the request, set `use_admin_access` to `true`.
1766-
#
17671790
# @overload search_spaces(request, options = nil)
17681791
# Pass arguments to `search_spaces` via a request object, either of type
17691792
# {::Google::Apps::Chat::V1::SearchSpacesRequest} or an equivalent Hash.
@@ -2481,8 +2504,10 @@ def set_up_space request, options = nil
24812504
#
24822505
# You can update the following fields for a space:
24832506
#
2484-
# `space_details`: Updates the space's description. Supports up to 150
2485-
# characters.
2507+
# `space_details`: Updates the space's description and guidelines. You must
2508+
# pass both description and guidelines in the update request as
2509+
# {::Google::Apps::Chat::V1::Space::SpaceDetails `SpaceDetails`}. If you only want to
2510+
# update one of the fields, pass the existing value for the other field.
24862511
#
24872512
# `display_name`: Only supports updating the display name for spaces where
24882513
# `spaceType` field is `SPACE`.
@@ -2526,8 +2551,7 @@ def set_up_space request, options = nil
25262551
# of a space.
25272552
# When updating permission settings, you can only specify
25282553
# `permissionSettings` field masks; you cannot update other field masks
2529-
# at the same time. `permissionSettings` is not supported with
2530-
# `useAdminAccess`.
2554+
# at the same time.
25312555
# The supported field masks include:
25322556
#
25332557
# - `permission_settings.manageMembersAndGroups`
@@ -4553,22 +4577,36 @@ def get_thread_read_state request, options = nil
45534577
# Note: The `permissionSettings` field is not returned in the Space
45544578
# object of the Space event data for this request.
45554579
#
4556-
# Requires [user
4557-
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4558-
# with an [authorization
4580+
# Supports the following types of
4581+
# [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
4582+
# with an
4583+
# [authorization
45594584
# scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
45604585
# appropriate for reading the requested data:
45614586
#
4562-
# - `https://www.googleapis.com/auth/chat.spaces.readonly`
4563-
# - `https://www.googleapis.com/auth/chat.spaces`
4564-
# - `https://www.googleapis.com/auth/chat.messages.readonly`
4565-
# - `https://www.googleapis.com/auth/chat.messages`
4566-
# - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
4567-
# - `https://www.googleapis.com/auth/chat.messages.reactions`
4568-
# - `https://www.googleapis.com/auth/chat.memberships.readonly`
4569-
# - `https://www.googleapis.com/auth/chat.memberships`
4587+
# - [App
4588+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
4589+
# with [administrator
4590+
# approval](https://support.google.com/a?p=chat-app-auth) in
4591+
# [Developer Preview](https://developers.google.com/workspace/preview)
4592+
# with one of the following authorization scopes:
4593+
# - `https://www.googleapis.com/auth/chat.app.spaces`
4594+
# - `https://www.googleapis.com/auth/chat.app.messages.readonly`
4595+
# - `https://www.googleapis.com/auth/chat.app.memberships`
4596+
#
4597+
# - [User
4598+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4599+
# with one of the following authorization scopes:
4600+
# - `https://www.googleapis.com/auth/chat.spaces.readonly`
4601+
# - `https://www.googleapis.com/auth/chat.spaces`
4602+
# - `https://www.googleapis.com/auth/chat.messages.readonly`
4603+
# - `https://www.googleapis.com/auth/chat.messages`
4604+
# - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
4605+
# - `https://www.googleapis.com/auth/chat.messages.reactions`
4606+
# - `https://www.googleapis.com/auth/chat.memberships.readonly`
4607+
# - `https://www.googleapis.com/auth/chat.memberships`
45704608
#
4571-
# To get an event, the authenticated user must be a member of the space.
4609+
# To get an event, the authenticated caller must be a member of the space.
45724610
#
45734611
# For an example, see [Get details about an
45744612
# event from a Google Chat
@@ -4667,22 +4705,36 @@ def get_space_event request, options = nil
46674705
# removed during the requested period, the event payload contains an empty
46684706
# `Membership` resource.
46694707
#
4670-
# Requires [user
4671-
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4672-
# with an [authorization
4708+
# Supports the following types of
4709+
# [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
4710+
# with an
4711+
# [authorization
46734712
# scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
46744713
# appropriate for reading the requested data:
46754714
#
4676-
# - `https://www.googleapis.com/auth/chat.spaces.readonly`
4677-
# - `https://www.googleapis.com/auth/chat.spaces`
4678-
# - `https://www.googleapis.com/auth/chat.messages.readonly`
4679-
# - `https://www.googleapis.com/auth/chat.messages`
4680-
# - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
4681-
# - `https://www.googleapis.com/auth/chat.messages.reactions`
4682-
# - `https://www.googleapis.com/auth/chat.memberships.readonly`
4683-
# - `https://www.googleapis.com/auth/chat.memberships`
4715+
# - [App
4716+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
4717+
# with [administrator
4718+
# approval](https://support.google.com/a?p=chat-app-auth) in
4719+
# [Developer Preview](https://developers.google.com/workspace/preview)
4720+
# with one of the following authorization scopes:
4721+
# - `https://www.googleapis.com/auth/chat.app.spaces`
4722+
# - `https://www.googleapis.com/auth/chat.app.messages.readonly`
4723+
# - `https://www.googleapis.com/auth/chat.app.memberships`
4724+
#
4725+
# - [User
4726+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4727+
# with one of the following authorization scopes:
4728+
# - `https://www.googleapis.com/auth/chat.spaces.readonly`
4729+
# - `https://www.googleapis.com/auth/chat.spaces`
4730+
# - `https://www.googleapis.com/auth/chat.messages.readonly`
4731+
# - `https://www.googleapis.com/auth/chat.messages`
4732+
# - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
4733+
# - `https://www.googleapis.com/auth/chat.messages.reactions`
4734+
# - `https://www.googleapis.com/auth/chat.memberships.readonly`
4735+
# - `https://www.googleapis.com/auth/chat.memberships`
46844736
#
4685-
# To list events, the authenticated user must be a member of the space.
4737+
# To list events, the authenticated caller must be a member of the space.
46864738
#
46874739
# For an example, see [List events from a Google Chat
46884740
# space](https://developers.google.com/workspace/chat/list-space-events).

google-apps-chat-v1/lib/google/apps/chat/v1/chat_service/credentials.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class Credentials < ::Google::Auth::Credentials
3333
"https://www.googleapis.com/auth/chat.admin.spaces.readonly",
3434
"https://www.googleapis.com/auth/chat.app.delete",
3535
"https://www.googleapis.com/auth/chat.app.memberships",
36+
"https://www.googleapis.com/auth/chat.app.messages.readonly",
3637
"https://www.googleapis.com/auth/chat.app.spaces",
3738
"https://www.googleapis.com/auth/chat.app.spaces.create",
3839
"https://www.googleapis.com/auth/chat.bot",

0 commit comments

Comments
 (0)