google-apps-chat-v1 0.16.0 → 0.18.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 +113 -44
- data/lib/google/apps/chat/v1/chat_service/credentials.rb +1 -0
- data/lib/google/apps/chat/v1/chat_service/rest/client.rb +93 -41
- data/lib/google/apps/chat/v1/version.rb +1 -1
- data/lib/google/chat/v1/annotation_pb.rb +1 -1
- data/lib/google/chat/v1/attachment_pb.rb +1 -1
- data/lib/google/chat/v1/chat_service_pb.rb +1 -1
- data/lib/google/chat/v1/chat_service_services_pb.rb +88 -37
- data/lib/google/chat/v1/membership_pb.rb +1 -1
- data/lib/google/chat/v1/space_pb.rb +1 -1
- data/proto_docs/google/apps/card/v1/card.rb +640 -167
- data/proto_docs/google/chat/v1/annotation.rb +5 -0
- data/proto_docs/google/chat/v1/attachment.rb +3 -2
- data/proto_docs/google/chat/v1/deletion_metadata.rb +1 -1
- data/proto_docs/google/chat/v1/event_payload.rb +1 -1
- data/proto_docs/google/chat/v1/membership.rb +56 -6
- data/proto_docs/google/chat/v1/message.rb +2 -2
- data/proto_docs/google/chat/v1/space.rb +18 -7
- metadata +1 -1
|
@@ -185,6 +185,11 @@ module Google
|
|
|
185
185
|
# A Chat space rich link type. For example, a space smart chip.
|
|
186
186
|
CHAT_SPACE = 2
|
|
187
187
|
|
|
188
|
+
# A Gmail message rich link type. Specifically, a Gmail chip from [Share to
|
|
189
|
+
# Chat](https://support.google.com/chat?p=chat_gmail). The API only
|
|
190
|
+
# supports reading messages with GMAIL_MESSAGE rich links.
|
|
191
|
+
GMAIL_MESSAGE = 3
|
|
192
|
+
|
|
188
193
|
# A Meet message rich link type. For example, a Meet chip.
|
|
189
194
|
MEET_SPACE = 4
|
|
190
195
|
|
|
@@ -24,8 +24,9 @@ module Google
|
|
|
24
24
|
# An attachment in Google Chat.
|
|
25
25
|
# @!attribute [rw] name
|
|
26
26
|
# @return [::String]
|
|
27
|
-
#
|
|
28
|
-
#
|
|
27
|
+
# Identifier. Resource name of the attachment.
|
|
28
|
+
#
|
|
29
|
+
# Format: `spaces/{space}/messages/{message}/attachments/{attachment}`.
|
|
29
30
|
# @!attribute [r] content_name
|
|
30
31
|
# @return [::String]
|
|
31
32
|
# Output only. The original file name for the content, not the full path.
|
|
@@ -114,7 +114,7 @@ module Google
|
|
|
114
114
|
# Event type: `google.workspace.chat.message.v1.deleted`
|
|
115
115
|
# @!attribute [rw] message
|
|
116
116
|
# @return [::Google::Apps::Chat::V1::Message]
|
|
117
|
-
# The deleted message. Only the `name`, `createTime`,
|
|
117
|
+
# The deleted message. Only the `name`, `createTime`, and
|
|
118
118
|
# `deletionMetadata` fields are populated.
|
|
119
119
|
class MessageDeletedEventData
|
|
120
120
|
include ::Google::Protobuf::MessageExts
|
|
@@ -95,16 +95,66 @@ module Google
|
|
|
95
95
|
# assigned this role (other enum values might be used in the future).
|
|
96
96
|
MEMBERSHIP_ROLE_UNSPECIFIED = 0
|
|
97
97
|
|
|
98
|
-
# A member of the space.
|
|
99
|
-
#
|
|
98
|
+
# A member of the space. In the Chat UI, this role is called Member.
|
|
99
|
+
#
|
|
100
|
+
# The user has basic permissions, like sending
|
|
101
|
+
# messages to the space.
|
|
102
|
+
# Managers and owners can grant members additional permissions in a space,
|
|
103
|
+
# including:
|
|
104
|
+
#
|
|
105
|
+
# - Add or remove members.
|
|
106
|
+
# - Modify space details.
|
|
107
|
+
# - Turn history on or off.
|
|
108
|
+
# - Mention everyone in the space with `@all`.
|
|
109
|
+
# - Manage Chat apps and webhooks installed in the space.
|
|
110
|
+
#
|
|
111
|
+
# In direct messages and unnamed group conversations, everyone
|
|
100
112
|
# has this role.
|
|
101
113
|
ROLE_MEMBER = 1
|
|
102
114
|
|
|
103
|
-
# A space
|
|
104
|
-
#
|
|
105
|
-
#
|
|
106
|
-
#
|
|
115
|
+
# A space owner. In the Chat UI, this role is called Owner.
|
|
116
|
+
#
|
|
117
|
+
# The user has the complete set of space permissions to manage the space,
|
|
118
|
+
# including:
|
|
119
|
+
#
|
|
120
|
+
# - Change the role of other members in the space to member, manager, or
|
|
121
|
+
# owner.
|
|
122
|
+
# - Delete the space.
|
|
123
|
+
#
|
|
124
|
+
# Only supported in
|
|
125
|
+
# {::Google::Apps::Chat::V1::Space::SpaceType SpaceType.SPACE} (named spaces).
|
|
126
|
+
#
|
|
127
|
+
# To learn more, see
|
|
128
|
+
# [Learn more about your role as a space
|
|
129
|
+
# owner or manager](https://support.google.com/chat/answer/11833441).
|
|
107
130
|
ROLE_MANAGER = 2
|
|
131
|
+
|
|
132
|
+
# A space manager. In the Chat UI, this role is called Manager.
|
|
133
|
+
#
|
|
134
|
+
# The user has all basic permissions of `ROLE_MEMBER`,
|
|
135
|
+
# and can be granted a subset of administrative permissions by an owner.
|
|
136
|
+
# By default, managers have all the permissions of an owner except for the
|
|
137
|
+
# ability to:
|
|
138
|
+
#
|
|
139
|
+
# - Delete the space.
|
|
140
|
+
# - Make another space member an owner.
|
|
141
|
+
# - Change an owner's role.
|
|
142
|
+
#
|
|
143
|
+
# By default, managers permissions include but aren't limited to:
|
|
144
|
+
#
|
|
145
|
+
# - Make another member a manager.
|
|
146
|
+
# - Delete messages in the space.
|
|
147
|
+
# - Manage space permissions.
|
|
148
|
+
# - Receive notifications for requests to join the space if the manager
|
|
149
|
+
# has the "manage members" permission in the space settings.
|
|
150
|
+
# - Make a space discoverable.
|
|
151
|
+
#
|
|
152
|
+
# Only supported in
|
|
153
|
+
# {::Google::Apps::Chat::V1::Space::SpaceType SpaceType.SPACE} (named spaces).
|
|
154
|
+
#
|
|
155
|
+
# To learn more, see
|
|
156
|
+
# [Manage space settings](https://support.google.com/chat/answer/13340792).
|
|
157
|
+
ROLE_ASSISTANT_MANAGER = 4
|
|
108
158
|
end
|
|
109
159
|
end
|
|
110
160
|
|
|
@@ -98,6 +98,8 @@ module Google
|
|
|
98
98
|
# This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning
|
|
99
99
|
# face emoji.
|
|
100
100
|
#
|
|
101
|
+
# * Bullet list items using asterisks (`*`)—for example, `* item`.
|
|
102
|
+
#
|
|
101
103
|
# For more information, see [View text formatting sent in a
|
|
102
104
|
# message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message)
|
|
103
105
|
# @!attribute [rw] cards
|
|
@@ -191,8 +193,6 @@ module Google
|
|
|
191
193
|
# and omit the following:
|
|
192
194
|
#
|
|
193
195
|
# * [Attachments](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments)
|
|
194
|
-
# * [Accessory
|
|
195
|
-
# widgets](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#Message.AccessoryWidget)
|
|
196
196
|
#
|
|
197
197
|
# For details, see [Send a message
|
|
198
198
|
# privately](https://developers.google.com/workspace/chat/create-messages#private).
|
|
@@ -137,7 +137,8 @@ module Google
|
|
|
137
137
|
# Private apps can also use the `customers/my_customer` alias to create
|
|
138
138
|
# the space in the same Google Workspace organization as the app.
|
|
139
139
|
#
|
|
140
|
-
#
|
|
140
|
+
# This field isn't populated for direct messages (DMs) or when the space is
|
|
141
|
+
# created by non-Google Workspace users.
|
|
141
142
|
# @!attribute [r] space_uri
|
|
142
143
|
# @return [::String]
|
|
143
144
|
# Output only. The URI for a user to access the space.
|
|
@@ -322,10 +323,19 @@ module Google
|
|
|
322
323
|
# Represents a space permission setting.
|
|
323
324
|
# @!attribute [rw] managers_allowed
|
|
324
325
|
# @return [::Boolean]
|
|
325
|
-
# Optional. Whether
|
|
326
|
+
# Optional. Whether space owners
|
|
327
|
+
# ({::Google::Apps::Chat::V1::Membership::MembershipRole::ROLE_MANAGER `ROLE_MANAGER`})
|
|
328
|
+
# have this permission.
|
|
329
|
+
# @!attribute [rw] assistant_managers_allowed
|
|
330
|
+
# @return [::Boolean]
|
|
331
|
+
# Optional. Whether space managers
|
|
332
|
+
# {::Google::Apps::Chat::V1::Membership::MembershipRole::ROLE_ASSISTANT_MANAGER `ROLE_ASSISTANT_MANAGER`})
|
|
333
|
+
# have this permission.
|
|
326
334
|
# @!attribute [rw] members_allowed
|
|
327
335
|
# @return [::Boolean]
|
|
328
|
-
# Optional. Whether
|
|
336
|
+
# Optional. Whether basic space members
|
|
337
|
+
# ({::Google::Apps::Chat::V1::Membership::MembershipRole::ROLE_MEMBER `ROLE_MEMBER`})
|
|
338
|
+
# have this permission.
|
|
329
339
|
class PermissionSetting
|
|
330
340
|
include ::Google::Protobuf::MessageExts
|
|
331
341
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -542,8 +552,10 @@ module Google
|
|
|
542
552
|
#
|
|
543
553
|
# You can update the following fields for a space:
|
|
544
554
|
#
|
|
545
|
-
# `space_details`: Updates the space's description
|
|
546
|
-
#
|
|
555
|
+
# `space_details`: Updates the space's description and guidelines. You must
|
|
556
|
+
# pass both description and guidelines in the update request as
|
|
557
|
+
# {::Google::Apps::Chat::V1::Space::SpaceDetails `SpaceDetails`}. If you only want to
|
|
558
|
+
# update one of the fields, pass the existing value for the other field.
|
|
547
559
|
#
|
|
548
560
|
# `display_name`: Only supports updating the display name for spaces where
|
|
549
561
|
# `spaceType` field is `SPACE`.
|
|
@@ -587,8 +599,7 @@ module Google
|
|
|
587
599
|
# of a space.
|
|
588
600
|
# When updating permission settings, you can only specify
|
|
589
601
|
# `permissionSettings` field masks; you cannot update other field masks
|
|
590
|
-
# at the same time.
|
|
591
|
-
# `useAdminAccess`.
|
|
602
|
+
# at the same time.
|
|
592
603
|
# The supported field masks include:
|
|
593
604
|
#
|
|
594
605
|
# - `permission_settings.manageMembersAndGroups`
|