@@ -1394,12 +1394,16 @@ public CompleteImport set(String parameterName, Object value) {
13941394 * `https://www.googleapis.com/auth/chat.spaces.create` -
13951395 * `https://www.googleapis.com/auth/chat.spaces` - `https://www.googleapis.com/auth/chat.import`
13961396 * (import mode spaces only) When authenticating as an app, the `space.customer` field must be set
1397- * in the request. Space membership upon creation depends on whether the space is created in `Import
1398- * mode`: * **Import mode:** No members are created. * **All other modes:** The calling user is
1399- * added as a member. This is: * The app itself when using app authentication. * The human user when
1400- * using user authentication. If you receive the error message `ALREADY_EXISTS` when creating a
1401- * space, try a different `displayName`. An existing space within the Google Workspace organization
1402- * might already use this display name.
1397+ * in the request. When authenticating as an app, the Chat app is added as a member of the space.
1398+ * However, unlike human authentication, the Chat app is not added as a space manager. By default,
1399+ * the Chat app can be removed from the space by all space members. To allow only space managers to
1400+ * remove the app from a space, set `space.permission_settings.manage_apps` to `managers_allowed`.
1401+ * Space membership upon creation depends on whether the space is created in `Import mode`: *
1402+ * **Import mode:** No members are created. * **All other modes:** The calling user is added as a
1403+ * member. This is: * The app itself when using app authentication. * The human user when using user
1404+ * authentication. If you receive the error message `ALREADY_EXISTS` when creating a space, try a
1405+ * different `displayName`. An existing space within the Google Workspace organization might already
1406+ * use this display name.
14031407 *
14041408 * Create a request for the method "spaces.create".
14051409 *
@@ -1434,7 +1438,11 @@ public class Create extends HangoutsChatRequest<com.google.api.services.chat.v1.
14341438 * `https://www.googleapis.com/auth/chat.spaces.create` -
14351439 * `https://www.googleapis.com/auth/chat.spaces` - `https://www.googleapis.com/auth/chat.import`
14361440 * (import mode spaces only) When authenticating as an app, the `space.customer` field must be set
1437- * in the request. Space membership upon creation depends on whether the space is created in
1441+ * in the request. When authenticating as an app, the Chat app is added as a member of the space.
1442+ * However, unlike human authentication, the Chat app is not added as a space manager. By default,
1443+ * the Chat app can be removed from the space by all space members. To allow only space managers
1444+ * to remove the app from a space, set `space.permission_settings.manage_apps` to
1445+ * `managers_allowed`. Space membership upon creation depends on whether the space is created in
14381446 * `Import mode`: * **Import mode:** No members are created. * **All other modes:** The calling
14391447 * user is added as a member. This is: * The app itself when using app authentication. * The human
14401448 * user when using user authentication. If you receive the error message `ALREADY_EXISTS` when
@@ -1930,7 +1938,10 @@ public FindDirectMessage set(String parameterName, Object value) {
19301938 * privileges when an administrator account authenticates, `use_admin_access` is `true`, and one of
19311939 * the following authorization scopes is used: -
19321940 * `https://www.googleapis.com/auth/chat.admin.spaces.readonly` -
1933- * `https://www.googleapis.com/auth/chat.admin.spaces`
1941+ * `https://www.googleapis.com/auth/chat.admin.spaces` App authentication has the following
1942+ * limitations: - `space.access_settings` is only populated when using the `chat.app.spaces` scope.
1943+ * - `space.predefind_permission_settings` and `space.permission_settings` are only populated when
1944+ * using the `chat.app.spaces` scope, and only for spaces the app created.
19341945 *
19351946 * Create a request for the method "spaces.get".
19361947 *
@@ -1968,7 +1979,10 @@ public class Get extends HangoutsChatRequest<com.google.api.services.chat.v1.mod
19681979 * privileges when an administrator account authenticates, `use_admin_access` is `true`, and one
19691980 * of the following authorization scopes is used: -
19701981 * `https://www.googleapis.com/auth/chat.admin.spaces.readonly` -
1971- * `https://www.googleapis.com/auth/chat.admin.spaces`
1982+ * `https://www.googleapis.com/auth/chat.admin.spaces` App authentication has the following
1983+ * limitations: - `space.access_settings` is only populated when using the `chat.app.spaces`
1984+ * scope. - `space.predefind_permission_settings` and `space.permission_settings` are only
1985+ * populated when using the `chat.app.spaces` scope, and only for spaces the app created.
19721986 *
19731987 * Create a request for the method "spaces.get".
19741988 *
@@ -2356,7 +2370,10 @@ public List set(String parameterName, Object value) {
23562370 * `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication
23572371 * grants administrator privileges when an administrator account authenticates, `use_admin_access`
23582372 * is `true`, and the following authorization scopes is used: -
2359- * `https://www.googleapis.com/auth/chat.admin.spaces`
2373+ * `https://www.googleapis.com/auth/chat.admin.spaces` App authentication has the following
2374+ * limitations: - To update either `space.predefined_permission_settings` or
2375+ * `space.permission_settings`, the app must be the space creator. - Updating the
2376+ * `space.access_settings.audience` is not supported for app authentication.
23602377 *
23612378 * Create a request for the method "spaces.patch".
23622379 *
@@ -2400,7 +2417,10 @@ public class Patch extends HangoutsChatRequest<com.google.api.services.chat.v1.m
24002417 * - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication
24012418 * grants administrator privileges when an administrator account authenticates, `use_admin_access`
24022419 * is `true`, and the following authorization scopes is used: -
2403- * `https://www.googleapis.com/auth/chat.admin.spaces`
2420+ * `https://www.googleapis.com/auth/chat.admin.spaces` App authentication has the following
2421+ * limitations: - To update either `space.predefined_permission_settings` or
2422+ * `space.permission_settings`, the app must be the space creator. - Updating the
2423+ * `space.access_settings.audience` is not supported for app authentication.
24042424 *
24052425 * Create a request for the method "spaces.patch".
24062426 *
@@ -3247,9 +3267,11 @@ public class Members {
32473267 * `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication
32483268 * grants administrator privileges when an administrator account authenticates, `use_admin_access`
32493269 * is `true`, and the following authorization scope is used: -
3250- * `https://www.googleapis.com/auth/chat.admin.memberships` For example usage, see: - [Invite or add
3251- * a user to a space](https://developers.google.com/workspace/chat/create-members#create-user-
3252- * membership). - [Invite or add a Google Group to a
3270+ * `https://www.googleapis.com/auth/chat.admin.memberships` App authentication is not supported for
3271+ * the following use cases: - Inviting users external to the Workspace organization that owns the
3272+ * space. - Adding a Google Group to a space. - Adding a Chat app to a space. For example usage,
3273+ * see: - [Invite or add a user to a space](https://developers.google.com/workspace/chat/create-
3274+ * members#create-user-membership). - [Invite or add a Google Group to a
32533275 * space](https://developers.google.com/workspace/chat/create-members#create-group-membership). -
32543276 * [Add the Chat app to a space](https://developers.google.com/workspace/chat/create-members#create-
32553277 * membership-calling-api).
@@ -3294,12 +3316,15 @@ public class Create extends HangoutsChatRequest<com.google.api.services.chat.v1.
32943316 * `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication
32953317 * grants administrator privileges when an administrator account authenticates, `use_admin_access`
32963318 * is `true`, and the following authorization scope is used: -
3297- * `https://www.googleapis.com/auth/chat.admin.memberships` For example usage, see: - [Invite or
3298- * add a user to a space](https://developers.google.com/workspace/chat/create-members#create-user-
3299- * membership). - [Invite or add a Google Group to a
3300- * space](https://developers.google.com/workspace/chat/create-members#create-group-membership). -
3301- * [Add the Chat app to a space](https://developers.google.com/workspace/chat/create-
3302- * members#create-membership-calling-api).
3319+ * `https://www.googleapis.com/auth/chat.admin.memberships` App authentication is not supported
3320+ * for the following use cases: - Inviting users external to the Workspace organization that owns
3321+ * the space. - Adding a Google Group to a space. - Adding a Chat app to a space. For example
3322+ * usage, see: - [Invite or add a user to a
3323+ * space](https://developers.google.com/workspace/chat/create-members#create-user-membership). -
3324+ * [Invite or add a Google Group to a space](https://developers.google.com/workspace/chat/create-
3325+ * members#create-group-membership). - [Add the Chat app to a
3326+ * space](https://developers.google.com/workspace/chat/create-members#create-membership-calling-
3327+ * api).
33033328 *
33043329 * Create a request for the method "members.create".
33053330 *
@@ -3462,10 +3487,11 @@ public Create set(String parameterName, Object value) {
34623487 * - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication
34633488 * grants administrator privileges when an administrator account authenticates, `use_admin_access`
34643489 * is `true`, and the following authorization scope is used: -
3465- * `https://www.googleapis.com/auth/chat.admin.memberships` To delete memberships for space
3466- * managers, the requester must be a space manager. If you're using [app
3467- * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) the
3468- * application must be the space creator.
3490+ * `https://www.googleapis.com/auth/chat.admin.memberships` App authentication is not supported for
3491+ * the following use cases: - Removing a Google Group from a space. - Removing a Chat app from a
3492+ * space. To delete memberships for space managers, the requester must be a space manager. If you're
3493+ * using [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-
3494+ * chat-app) the Chat app must be the space creator.
34693495 *
34703496 * Create a request for the method "members.delete".
34713497 *
@@ -3513,10 +3539,11 @@ public class Delete extends HangoutsChatRequest<com.google.api.services.chat.v1.
35133539 * space) - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User
35143540 * authentication grants administrator privileges when an administrator account authenticates,
35153541 * `use_admin_access` is `true`, and the following authorization scope is used: -
3516- * `https://www.googleapis.com/auth/chat.admin.memberships` To delete memberships for space
3517- * managers, the requester must be a space manager. If you're using [app
3518- * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
3519- * the application must be the space creator.
3542+ * `https://www.googleapis.com/auth/chat.admin.memberships` App authentication is not supported
3543+ * for the following use cases: - Removing a Google Group from a space. - Removing a Chat app from
3544+ * a space. To delete memberships for space managers, the requester must be a space manager. If
3545+ * you're using [app authentication](https://developers.google.com/workspace/chat/authenticate-
3546+ * authorize-chat-app) the Chat app must be the space creator.
35203547 *
35213548 * Create a request for the method "members.delete".
35223549 *
0 commit comments