google-apps-chat-v1 0.16.0 → 0.17.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 +20 -3
- data/lib/google/apps/chat/v1/version.rb +1 -1
- 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/deletion_metadata.rb +1 -1
- data/proto_docs/google/chat/v1/membership.rb +56 -6
- data/proto_docs/google/chat/v1/space.rb +11 -2
- metadata +1 -1
|
@@ -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
|
|
|
@@ -322,10 +322,19 @@ module Google
|
|
|
322
322
|
# Represents a space permission setting.
|
|
323
323
|
# @!attribute [rw] managers_allowed
|
|
324
324
|
# @return [::Boolean]
|
|
325
|
-
# Optional. Whether
|
|
325
|
+
# Optional. Whether space owners
|
|
326
|
+
# ({::Google::Apps::Chat::V1::Membership::MembershipRole::ROLE_MANAGER `ROLE_MANAGER`})
|
|
327
|
+
# have this permission.
|
|
328
|
+
# @!attribute [rw] assistant_managers_allowed
|
|
329
|
+
# @return [::Boolean]
|
|
330
|
+
# Optional. Whether space managers
|
|
331
|
+
# {::Google::Apps::Chat::V1::Membership::MembershipRole::ROLE_ASSISTANT_MANAGER `ROLE_ASSISTANT_MANAGER`})
|
|
332
|
+
# have this permission.
|
|
326
333
|
# @!attribute [rw] members_allowed
|
|
327
334
|
# @return [::Boolean]
|
|
328
|
-
# Optional. Whether
|
|
335
|
+
# Optional. Whether basic space members
|
|
336
|
+
# ({::Google::Apps::Chat::V1::Membership::MembershipRole::ROLE_MEMBER `ROLE_MEMBER`})
|
|
337
|
+
# have this permission.
|
|
329
338
|
class PermissionSetting
|
|
330
339
|
include ::Google::Protobuf::MessageExts
|
|
331
340
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|