@@ -1394,12 +1394,16 @@ public CompleteImport set(String parameterName, Object value) {
1394
1394
* `https://www.googleapis.com/auth/chat.spaces.create` -
1395
1395
* `https://www.googleapis.com/auth/chat.spaces` - `https://www.googleapis.com/auth/chat.import`
1396
1396
* (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.
1403
1407
*
1404
1408
* Create a request for the method "spaces.create".
1405
1409
*
@@ -1434,7 +1438,11 @@ public class Create extends HangoutsChatRequest<com.google.api.services.chat.v1.
1434
1438
* `https://www.googleapis.com/auth/chat.spaces.create` -
1435
1439
* `https://www.googleapis.com/auth/chat.spaces` - `https://www.googleapis.com/auth/chat.import`
1436
1440
* (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
1438
1446
* `Import mode`: * **Import mode:** No members are created. * **All other modes:** The calling
1439
1447
* user is added as a member. This is: * The app itself when using app authentication. * The human
1440
1448
* 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) {
1930
1938
* privileges when an administrator account authenticates, `use_admin_access` is `true`, and one of
1931
1939
* the following authorization scopes is used: -
1932
1940
* `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.
1934
1945
*
1935
1946
* Create a request for the method "spaces.get".
1936
1947
*
@@ -1968,7 +1979,10 @@ public class Get extends HangoutsChatRequest<com.google.api.services.chat.v1.mod
1968
1979
* privileges when an administrator account authenticates, `use_admin_access` is `true`, and one
1969
1980
* of the following authorization scopes is used: -
1970
1981
* `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.
1972
1986
*
1973
1987
* Create a request for the method "spaces.get".
1974
1988
*
@@ -2356,7 +2370,10 @@ public List set(String parameterName, Object value) {
2356
2370
* `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication
2357
2371
* grants administrator privileges when an administrator account authenticates, `use_admin_access`
2358
2372
* 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.
2360
2377
*
2361
2378
* Create a request for the method "spaces.patch".
2362
2379
*
@@ -2400,7 +2417,10 @@ public class Patch extends HangoutsChatRequest<com.google.api.services.chat.v1.m
2400
2417
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication
2401
2418
* grants administrator privileges when an administrator account authenticates, `use_admin_access`
2402
2419
* 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.
2404
2424
*
2405
2425
* Create a request for the method "spaces.patch".
2406
2426
*
@@ -3247,9 +3267,11 @@ public class Members {
3247
3267
* `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication
3248
3268
* grants administrator privileges when an administrator account authenticates, `use_admin_access`
3249
3269
* 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
3253
3275
* space](https://developers.google.com/workspace/chat/create-members#create-group-membership). -
3254
3276
* [Add the Chat app to a space](https://developers.google.com/workspace/chat/create-members#create-
3255
3277
* membership-calling-api).
@@ -3294,12 +3316,15 @@ public class Create extends HangoutsChatRequest<com.google.api.services.chat.v1.
3294
3316
* `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication
3295
3317
* grants administrator privileges when an administrator account authenticates, `use_admin_access`
3296
3318
* 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).
3303
3328
*
3304
3329
* Create a request for the method "members.create".
3305
3330
*
@@ -3462,10 +3487,11 @@ public Create set(String parameterName, Object value) {
3462
3487
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication
3463
3488
* grants administrator privileges when an administrator account authenticates, `use_admin_access`
3464
3489
* 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.
3469
3495
*
3470
3496
* Create a request for the method "members.delete".
3471
3497
*
@@ -3513,10 +3539,11 @@ public class Delete extends HangoutsChatRequest<com.google.api.services.chat.v1.
3513
3539
* space) - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User
3514
3540
* authentication grants administrator privileges when an administrator account authenticates,
3515
3541
* `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.
3520
3547
*
3521
3548
* Create a request for the method "members.delete".
3522
3549
*
0 commit comments