@@ -80,10 +80,15 @@ public function completeImport($name, CompleteImportSpaceRequest $postBody, $opt
8080 * `https://www.googleapis.com/auth/chat.spaces` -
8181 * `https://www.googleapis.com/auth/chat.import` (import mode spaces only) When
8282 * authenticating as an app, the `space.customer` field must be set in the
83- * request. Space membership upon creation depends on whether the space is
84- * created in `Import mode`: * **Import mode:** No members are created. * **All
85- * other modes:** The calling user is added as a member. This is: * The app
86- * itself when using app authentication. * The human user when using user
83+ * request. When authenticating as an app, the Chat app is added as a member of
84+ * the space. However, unlike human authentication, the Chat app is not added as
85+ * a space manager. By default, the Chat app can be removed from the space by
86+ * all space members. To allow only space managers to remove the app from a
87+ * space, set `space.permission_settings.manage_apps` to `managers_allowed`.
88+ * Space membership upon creation depends on whether the space is created in
89+ * `Import mode`: * **Import mode:** No members are created. * **All other
90+ * modes:** The calling user is added as a member. This is: * The app itself
91+ * when using app authentication. * The human user when using user
8792 * authentication. If you receive the error message `ALREADY_EXISTS` when
8893 * creating a space, try a different `displayName`. An existing space within the
8994 * Google Workspace organization might already use this display name.
@@ -211,7 +216,11 @@ public function findDirectMessage($optParams = [])
211216 * administrator privileges when an administrator account authenticates,
212217 * `use_admin_access` is `true`, and one of the following authorization scopes
213218 * is used: - `https://www.googleapis.com/auth/chat.admin.spaces.readonly` -
214- * `https://www.googleapis.com/auth/chat.admin.spaces` (spaces.get)
219+ * `https://www.googleapis.com/auth/chat.admin.spaces` App authentication has
220+ * the following limitations: - `space.access_settings` is only populated when
221+ * using the `chat.app.spaces` scope. - `space.predefind_permission_settings`
222+ * and `space.permission_settings` are only populated when using the
223+ * `chat.app.spaces` scope, and only for spaces the app created. (spaces.get)
215224 *
216225 * @param string $name Required. Resource name of the space, in the form
217226 * `spaces/{space}`. Format: `spaces/{space}`
@@ -302,7 +311,12 @@ public function listSpaces($optParams = [])
302311 * User authentication grants administrator privileges when an administrator
303312 * account authenticates, `use_admin_access` is `true`, and the following
304313 * authorization scopes is used: -
305- * `https://www.googleapis.com/auth/chat.admin.spaces` (spaces.patch)
314+ * `https://www.googleapis.com/auth/chat.admin.spaces` App authentication has
315+ * the following limitations: - To update either
316+ * `space.predefined_permission_settings` or `space.permission_settings`, the
317+ * app must be the space creator. - Updating the
318+ * `space.access_settings.audience` is not supported for app authentication.
319+ * (spaces.patch)
306320 *
307321 * @param string $name Identifier. Resource name of the space. Format:
308322 * `spaces/{space}` Where `{space}` represents the system-assigned ID for the
0 commit comments