Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [AppsChat] Add doc for Discoverable Space support for GA launch #7500

Merged
merged 2 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified AppsChat/metadata/Chat/V1/ChatService.php
Binary file not shown.
Binary file modified AppsChat/metadata/Chat/V1/Space.php
Binary file not shown.
2 changes: 1 addition & 1 deletion AppsChat/samples/V1/ChatServiceClient/get_attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
*
* @param string $formattedName Resource name of the attachment, in the form
* `spaces/*/messages/*/attachments/*`. Please see
* `spaces/{space}/messages/{message}/attachments/{attachment}`. Please see
* {@see ChatServiceClient::attachmentName()} for help formatting this field.
*/
function get_attachment_sample(string $formattedName): void
Expand Down
2 changes: 1 addition & 1 deletion AppsChat/samples/V1/ChatServiceClient/get_space.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* and [user
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
*
* @param string $formattedName Resource name of the space, in the form "spaces/*".
* @param string $formattedName Resource name of the space, in the form `spaces/{space}`.
*
* Format: `spaces/{space}`
* Please see {@see ChatServiceClient::spaceName()} for help formatting this field.
Expand Down
3 changes: 3 additions & 0 deletions AppsChat/samples/V1/ChatServiceClient/list_spaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
* Lists spaces visible to the caller or authenticated user. Group chats
* and DMs aren't listed until the first message is sent.
*
* To list all named spaces by Google Workspace organization, use the
* [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
* method using Workspace administrator privileges instead.
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
Expand Down
8 changes: 4 additions & 4 deletions AppsChat/src/Chat/V1/Attachment.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions AppsChat/src/Chat/V1/Client/ChatServiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@
private const CODEGEN_NAME = 'gapic';

/** The default scopes required by the service. */
public static $serviceScopes = [

Check failure on line 137 in AppsChat/src/Chat/V1/Client/ChatServiceClient.php

View workflow job for this annotation

GitHub Actions / backwards-compatibility-check

Property Google\Apps\Chat\V1\Client\ChatServiceClient::$serviceScopes changed default value from array ( 0 => 'https://www.googleapis.com/auth/chat.bot', 1 => 'https://www.googleapis.com/auth/chat.delete', 2 => 'https://www.googleapis.com/auth/chat.import', 3 => 'https://www.googleapis.com/auth/chat.memberships', 4 => 'https://www.googleapis.com/auth/chat.memberships.app', 5 => 'https://www.googleapis.com/auth/chat.memberships.readonly', 6 => 'https://www.googleapis.com/auth/chat.messages', 7 => 'https://www.googleapis.com/auth/chat.messages.create', 8 => 'https://www.googleapis.com/auth/chat.messages.reactions', 9 => 'https://www.googleapis.com/auth/chat.messages.reactions.create', 10 => 'https://www.googleapis.com/auth/chat.messages.reactions.readonly', 11 => 'https://www.googleapis.com/auth/chat.messages.readonly', 12 => 'https://www.googleapis.com/auth/chat.spaces', 13 => 'https://www.googleapis.com/auth/chat.spaces.create', 14 => 'https://www.googleapis.com/auth/chat.spaces.readonly', 15 => 'https://www.googleapis.com/auth/chat.users.readstate', 16 => 'https://www.googleapis.com/auth/chat.users.readstate.readonly', ) to array ( 0 => 'https://www.googleapis.com/auth/chat.admin.delete', 1 => 'https://www.googleapis.com/auth/chat.admin.memberships', 2 => 'https://www.googleapis.com/auth/chat.admin.memberships.readonly', 3 => 'https://www.googleapis.com/auth/chat.admin.spaces', 4 => 'https://www.googleapis.com/auth/chat.admin.spaces.readonly', 5 => 'https://www.googleapis.com/auth/chat.bot', 6 => 'https://www.googleapis.com/auth/chat.delete', 7 => 'https://www.googleapis.com/auth/chat.import', 8 => 'https://www.googleapis.com/auth/chat.memberships', 9 => 'https://www.googleapis.com/auth/chat.memberships.app', 10 => 'https://www.googleapis.com/auth/chat.memberships.readonly', 11 => 'https://www.googleapis.com/auth/chat.messages', 12 => 'https://www.googleapis.com/auth/chat.messages.create', 13 => 'https://www.googleapis.com/auth/chat.messages.reactions', 14 => 'https://www.googleapis.com/auth/chat.messages.reactions.create', 15 => 'https://www.googleapis.com/auth/chat.messages.reactions.readonly', 16 => 'https://www.googleapis.com/auth/chat.messages.readonly', 17 => 'https://www.googleapis.com/auth/chat.spaces', 18 => 'https://www.googleapis.com/auth/chat.spaces.create', 19 => 'https://www.googleapis.com/auth/chat.spaces.readonly', 20 => 'https://www.googleapis.com/auth/chat.users.readstate', 21 => 'https://www.googleapis.com/auth/chat.users.readstate.readonly', )

Check failure on line 137 in AppsChat/src/Chat/V1/Client/ChatServiceClient.php

View workflow job for this annotation

GitHub Actions / backwards-compatibility-check

Property Google\Apps\Chat\V1\Client\ChatServiceClient::$serviceScopes changed default value from array ( 0 => 'https://www.googleapis.com/auth/chat.bot', 1 => 'https://www.googleapis.com/auth/chat.delete', 2 => 'https://www.googleapis.com/auth/chat.import', 3 => 'https://www.googleapis.com/auth/chat.memberships', 4 => 'https://www.googleapis.com/auth/chat.memberships.app', 5 => 'https://www.googleapis.com/auth/chat.memberships.readonly', 6 => 'https://www.googleapis.com/auth/chat.messages', 7 => 'https://www.googleapis.com/auth/chat.messages.create', 8 => 'https://www.googleapis.com/auth/chat.messages.reactions', 9 => 'https://www.googleapis.com/auth/chat.messages.reactions.create', 10 => 'https://www.googleapis.com/auth/chat.messages.reactions.readonly', 11 => 'https://www.googleapis.com/auth/chat.messages.readonly', 12 => 'https://www.googleapis.com/auth/chat.spaces', 13 => 'https://www.googleapis.com/auth/chat.spaces.create', 14 => 'https://www.googleapis.com/auth/chat.spaces.readonly', 15 => 'https://www.googleapis.com/auth/chat.users.readstate', 16 => 'https://www.googleapis.com/auth/chat.users.readstate.readonly', ) to array ( 0 => 'https://www.googleapis.com/auth/chat.admin.delete', 1 => 'https://www.googleapis.com/auth/chat.admin.memberships', 2 => 'https://www.googleapis.com/auth/chat.admin.memberships.readonly', 3 => 'https://www.googleapis.com/auth/chat.admin.spaces', 4 => 'https://www.googleapis.com/auth/chat.admin.spaces.readonly', 5 => 'https://www.googleapis.com/auth/chat.bot', 6 => 'https://www.googleapis.com/auth/chat.delete', 7 => 'https://www.googleapis.com/auth/chat.import', 8 => 'https://www.googleapis.com/auth/chat.memberships', 9 => 'https://www.googleapis.com/auth/chat.memberships.app', 10 => 'https://www.googleapis.com/auth/chat.memberships.readonly', 11 => 'https://www.googleapis.com/auth/chat.messages', 12 => 'https://www.googleapis.com/auth/chat.messages.create', 13 => 'https://www.googleapis.com/auth/chat.messages.reactions', 14 => 'https://www.googleapis.com/auth/chat.messages.reactions.create', 15 => 'https://www.googleapis.com/auth/chat.messages.reactions.readonly', 16 => 'https://www.googleapis.com/auth/chat.messages.readonly', 17 => 'https://www.googleapis.com/auth/chat.spaces', 18 => 'https://www.googleapis.com/auth/chat.spaces.create', 19 => 'https://www.googleapis.com/auth/chat.spaces.readonly', 20 => 'https://www.googleapis.com/auth/chat.users.readstate', 21 => 'https://www.googleapis.com/auth/chat.users.readstate.readonly', )

Check failure on line 137 in AppsChat/src/Chat/V1/Client/ChatServiceClient.php

View workflow job for this annotation

GitHub Actions / backwards-compatibility-check

Property Google\Apps\Chat\V1\Client\ChatServiceClient::$serviceScopes changed default value from array ( 0 => 'https://www.googleapis.com/auth/chat.bot', 1 => 'https://www.googleapis.com/auth/chat.delete', 2 => 'https://www.googleapis.com/auth/chat.import', 3 => 'https://www.googleapis.com/auth/chat.memberships', 4 => 'https://www.googleapis.com/auth/chat.memberships.app', 5 => 'https://www.googleapis.com/auth/chat.memberships.readonly', 6 => 'https://www.googleapis.com/auth/chat.messages', 7 => 'https://www.googleapis.com/auth/chat.messages.create', 8 => 'https://www.googleapis.com/auth/chat.messages.reactions', 9 => 'https://www.googleapis.com/auth/chat.messages.reactions.create', 10 => 'https://www.googleapis.com/auth/chat.messages.reactions.readonly', 11 => 'https://www.googleapis.com/auth/chat.messages.readonly', 12 => 'https://www.googleapis.com/auth/chat.spaces', 13 => 'https://www.googleapis.com/auth/chat.spaces.create', 14 => 'https://www.googleapis.com/auth/chat.spaces.readonly', 15 => 'https://www.googleapis.com/auth/chat.users.readstate', 16 => 'https://www.googleapis.com/auth/chat.users.readstate.readonly', ) to array ( 0 => 'https://www.googleapis.com/auth/chat.admin.delete', 1 => 'https://www.googleapis.com/auth/chat.admin.memberships', 2 => 'https://www.googleapis.com/auth/chat.admin.memberships.readonly', 3 => 'https://www.googleapis.com/auth/chat.admin.spaces', 4 => 'https://www.googleapis.com/auth/chat.admin.spaces.readonly', 5 => 'https://www.googleapis.com/auth/chat.bot', 6 => 'https://www.googleapis.com/auth/chat.delete', 7 => 'https://www.googleapis.com/auth/chat.import', 8 => 'https://www.googleapis.com/auth/chat.memberships', 9 => 'https://www.googleapis.com/auth/chat.memberships.app', 10 => 'https://www.googleapis.com/auth/chat.memberships.readonly', 11 => 'https://www.googleapis.com/auth/chat.messages', 12 => 'https://www.googleapis.com/auth/chat.messages.create', 13 => 'https://www.googleapis.com/auth/chat.messages.reactions', 14 => 'https://www.googleapis.com/auth/chat.messages.reactions.create', 15 => 'https://www.googleapis.com/auth/chat.messages.reactions.readonly', 16 => 'https://www.googleapis.com/auth/chat.messages.readonly', 17 => 'https://www.googleapis.com/auth/chat.spaces', 18 => 'https://www.googleapis.com/auth/chat.spaces.create', 19 => 'https://www.googleapis.com/auth/chat.spaces.readonly', 20 => 'https://www.googleapis.com/auth/chat.users.readstate', 21 => 'https://www.googleapis.com/auth/chat.users.readstate.readonly', )
'https://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',
Expand Down Expand Up @@ -1132,6 +1137,9 @@
* Lists spaces visible to the caller or authenticated user. Group chats
* and DMs aren't listed until the first message is sent.
*
* To list all named spaces by Google Workspace organization, use the
* [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
* method using Workspace administrator privileges instead.
*
* The async variant is {@see ChatServiceClient::listSpacesAsync()} .
*
Expand Down
10 changes: 5 additions & 5 deletions AppsChat/src/Chat/V1/GetAttachmentRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions AppsChat/src/Chat/V1/GetSpaceRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 24 additions & 4 deletions AppsChat/src/Chat/V1/ListMembershipsRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

86 changes: 86 additions & 0 deletions AppsChat/src/Chat/V1/Space.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading