Skip to content

Commit e9795e3

Browse files
feat: [google-apps-chat] Addition of app auth support for chat api (#14163)
BEGIN_COMMIT_OVERRIDE feat: Addition of app auth support for chat api docs: Update reference documentation for createSpace,updateSpace,deleteSpace,createMembership,updateMembership,deleteMembership and the newly added field -customer- in space.proto END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. docs: Update reference documentation for createSpace,updateSpace,deleteSpace,createMembership,updateMembership,deleteMembership and the newly added field -customer- in space.proto PiperOrigin-RevId: 788882030 Source-Link: googleapis/googleapis@f6801ce Source-Link: googleapis/googleapis-gen@34024b5 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwcHMtY2hhdC8uT3dsQm90LnlhbWwiLCJoIjoiMzQwMjRiNTk0YzM3MTRlZDZhNDExODA1MDA3ZmM0ZDYyNDRlYTYzMiJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 30452f1 commit e9795e3

File tree

14 files changed

+1779
-365
lines changed

14 files changed

+1779
-365
lines changed

packages/google-apps-chat/google/apps/chat/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.2.7" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-apps-chat/google/apps/chat_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.2.7" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-apps-chat/google/apps/chat_v1/services/chat_service/async_client.py

Lines changed: 415 additions & 89 deletions
Large diffs are not rendered by default.

packages/google-apps-chat/google/apps/chat_v1/services/chat_service/client.py

Lines changed: 415 additions & 89 deletions
Large diffs are not rendered by default.

packages/google-apps-chat/google/apps/chat_v1/services/chat_service/transports/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ class ChatServiceTransport(abc.ABC):
6262
"https://www.googleapis.com/auth/chat.admin.memberships.readonly",
6363
"https://www.googleapis.com/auth/chat.admin.spaces",
6464
"https://www.googleapis.com/auth/chat.admin.spaces.readonly",
65+
"https://www.googleapis.com/auth/chat.app.delete",
66+
"https://www.googleapis.com/auth/chat.app.memberships",
67+
"https://www.googleapis.com/auth/chat.app.spaces",
68+
"https://www.googleapis.com/auth/chat.app.spaces.create",
6569
"https://www.googleapis.com/auth/chat.bot",
6670
"https://www.googleapis.com/auth/chat.customemojis",
6771
"https://www.googleapis.com/auth/chat.customemojis.readonly",

packages/google-apps-chat/google/apps/chat_v1/services/chat_service/transports/grpc.py

Lines changed: 405 additions & 80 deletions
Large diffs are not rendered by default.

packages/google-apps-chat/google/apps/chat_v1/services/chat_service/transports/grpc_asyncio.py

Lines changed: 405 additions & 80 deletions
Large diffs are not rendered by default.

packages/google-apps-chat/google/apps/chat_v1/types/deletion_metadata.py

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,35 @@ class DeletionMetadata(proto.Message):
3737
"""
3838

3939
class DeletionType(proto.Enum):
40-
r"""Who deleted the message and how it was deleted. More values
41-
may be added in the future.
40+
r"""Who deleted the message and how it was deleted. More values may be
41+
added in the future. See `Edit or delete a message in Google
42+
Chat <https://support.google.com/chat/answer/7653281>`__ for details
43+
on when messages can be deleted.
4244
4345
Values:
4446
DELETION_TYPE_UNSPECIFIED (0):
4547
This value is unused.
4648
CREATOR (1):
4749
User deleted their own message.
4850
SPACE_OWNER (2):
49-
The space owner deleted the message.
51+
A space manager deleted the message.
5052
ADMIN (3):
51-
A Google Workspace admin deleted the message.
53+
A Google Workspace administrator deleted the
54+
message. Administrators can delete any message
55+
in the space, including messages sent by any
56+
space member or Chat app.
5257
APP_MESSAGE_EXPIRY (4):
5358
A Chat app deleted its own message when it
5459
expired.
5560
CREATOR_VIA_APP (5):
5661
A Chat app deleted the message on behalf of
57-
the user.
62+
the creator (using user authentication).
5863
SPACE_OWNER_VIA_APP (6):
59-
A Chat app deleted the message on behalf of
60-
the space owner.
64+
A Chat app deleted the message on behalf of a
65+
space manager (using user authentication).
6166
SPACE_MEMBER (7):
6267
A member of the space deleted the message.
63-
Human users can delete messages sent by apps.
68+
Users can delete messages sent by apps.
6469
"""
6570
DELETION_TYPE_UNSPECIFIED = 0
6671
CREATOR = 1

packages/google-apps-chat/google/apps/chat_v1/types/membership.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ class CreateMembershipRequest(proto.Message):
210210
- When `authenticating as an
211211
app <https://developers.google.com/workspace/chat/authenticate-authorize-chat-app>`__,
212212
the ``chat.app.memberships`` authorization scope is
213-
required. Authenticating as an app is available in
214-
`Developer
215-
Preview <https://developers.google.com/workspace/preview>`__.
213+
required.
216214
217215
- Set ``user.type`` to ``HUMAN``, and set ``user.name``
218216
with format ``users/{user}``, where ``{user}`` can be the
@@ -527,9 +525,12 @@ class DeleteMembershipRequest(proto.Message):
527525
apps can't delete other apps' memberships.
528526
529527
When deleting a human membership, requires the
530-
``chat.memberships`` scope and
531-
``spaces/{space}/members/{member}`` format. You can use the
532-
email as an alias for ``{member}``. For example,
528+
``chat.memberships`` scope with `user
529+
authentication <https://developers.google.com/workspace/chat/authenticate-authorize-chat-user>`__
530+
or the ``chat.memberships.app`` scope with `app
531+
authentication <https://developers.google.com/workspace/chat/authenticate-authorize-chat-app>`__
532+
and the ``spaces/{space}/members/{member}`` format. You can
533+
use the email as an alias for ``{member}``. For example,
533534
``spaces/{space}/members/[email protected]`` where
534535
``[email protected]`` is the email of the Google Chat user.
535536

packages/google-apps-chat/google/apps/chat_v1/types/slash_command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828

2929

3030
class SlashCommand(proto.Message):
31-
r"""A `slash
31+
r"""Metadata about a `slash
3232
command <https://developers.google.com/workspace/chat/commands>`__
3333
in Google Chat.
3434
3535
Attributes:
3636
command_id (int):
37-
The ID of the slash command invoked.
37+
The ID of the slash command.
3838
"""
3939

4040
command_id: int = proto.Field(

0 commit comments

Comments
 (0)