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.
@@ -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
- # Optional. Resource name of the attachment, in the form
28
- # `spaces/{space}/messages/{message}/attachments/{attachment}`.
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.
@@ -41,7 +41,7 @@ module Google
41
41
  # User deleted their own message.
42
42
  CREATOR = 1
43
43
 
44
- # A space manager deleted the message.
44
+ # An owner or manager deleted the message.
45
45
  SPACE_OWNER = 2
46
46
 
47
47
  # A Google Workspace administrator deleted the message. Administrators can
@@ -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`, `deleteTime`, and
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. The user has basic permissions, like sending
99
- # messages to the space. In 1:1 and unnamed group conversations, everyone
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 manager. The user has all basic permissions plus administrative
104
- # permissions that let them manage the space, like adding or removing
105
- # members. Only supported in
106
- # {::Google::Apps::Chat::V1::Space::SpaceType SpaceType.SPACE}.
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
- # For DMs, this field isn't populated.
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 spaces managers have this permission.
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 non-manager members have this permission.
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. Supports up to 150
546
- # characters.
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. `permissionSettings` is not supported with
591
- # `useAdminAccess`.
602
+ # at the same time.
592
603
  # The supported field masks include:
593
604
  #
594
605
  # - `permission_settings.manageMembersAndGroups`
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apps-chat-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC