google-apps-chat-v1 0.13.0 → 0.15.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.
@@ -356,10 +356,21 @@ module Google
356
356
  # Creates a message in a Google Chat space. For an example, see [Send a
357
357
  # message](https://developers.google.com/workspace/chat/create-messages).
358
358
  #
359
- # The `create()` method requires either [user
359
+ # Supports the following types of
360
+ # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
361
+ #
362
+ # - [App
363
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
364
+ # with the authorization scope:
365
+ # - `https://www.googleapis.com/auth/chat.bot`
366
+ # - [User
360
367
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
361
- # or [app
362
- # authentication](https://developers.google.com/workspace/chat/authorize-import).
368
+ # with one of the following authorization scopes:
369
+ # - `https://www.googleapis.com/auth/chat.messages.create`
370
+ # - `https://www.googleapis.com/auth/chat.messages`
371
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
372
+ # only)
373
+ #
363
374
  # Chat attributes the message sender differently depending on the type of
364
375
  # authentication that you use in your request.
365
376
  #
@@ -513,7 +524,13 @@ module Google
513
524
  # messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list).
514
525
  #
515
526
  # Requires [user
516
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
527
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
528
+ # with one of the following [authorization
529
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
530
+ #
531
+ # - `https://www.googleapis.com/auth/chat.messages.readonly`
532
+ # - `https://www.googleapis.com/auth/chat.messages`
533
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
517
534
  #
518
535
  # @overload list_messages(request, options = nil)
519
536
  # Pass arguments to `list_messages` via a request object, either of type
@@ -684,11 +701,23 @@ module Google
684
701
  #
685
702
  # - [App
686
703
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
704
+ # with one of the following authorization scopes:
705
+ # - `https://www.googleapis.com/auth/chat.bot`
706
+ # - `https://www.googleapis.com/auth/chat.app.memberships` (requires
707
+ # [administrator approval](https://support.google.com/a?p=chat-app-auth))
687
708
  #
688
709
  # - [User
689
710
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
690
- # You can authenticate and authorize this method with administrator
691
- # privileges by setting the `use_admin_access` field in the request.
711
+ # with one of the following authorization scopes:
712
+ # - `https://www.googleapis.com/auth/chat.memberships.readonly`
713
+ # - `https://www.googleapis.com/auth/chat.memberships`
714
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
715
+ # only)
716
+ # - User authentication grants administrator privileges when an
717
+ # administrator account authenticates, `use_admin_access` is `true`, and
718
+ # one of the following authorization scopes is used:
719
+ # - `https://www.googleapis.com/auth/chat.admin.memberships.readonly`
720
+ # - `https://www.googleapis.com/auth/chat.admin.memberships`
692
721
  #
693
722
  # @overload list_memberships(request, options = nil)
694
723
  # Pass arguments to `list_memberships` via a request object, either of type
@@ -869,11 +898,21 @@ module Google
869
898
  #
870
899
  # - [App
871
900
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
901
+ # with one of the following authorization scopes:
902
+ # - `https://www.googleapis.com/auth/chat.bot`
903
+ # - `https://www.googleapis.com/auth/chat.app.memberships` (requires
904
+ # [administrator approval](https://support.google.com/a?p=chat-app-auth))
872
905
  #
873
906
  # - [User
874
907
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
875
- # You can authenticate and authorize this method with administrator
876
- # privileges by setting the `use_admin_access` field in the request.
908
+ # with one of the following authorization scopes:
909
+ # - `https://www.googleapis.com/auth/chat.memberships.readonly`
910
+ # - `https://www.googleapis.com/auth/chat.memberships`
911
+ # - User authentication grants administrator privileges when an
912
+ # administrator account authenticates, `use_admin_access` is `true`, and
913
+ # one of the following authorization scopes is used:
914
+ # - `https://www.googleapis.com/auth/chat.admin.memberships.readonly`
915
+ # - `https://www.googleapis.com/auth/chat.admin.memberships`
877
916
  #
878
917
  # @overload get_membership(request, options = nil)
879
918
  # Pass arguments to `get_membership` via a request object, either of type
@@ -983,9 +1022,14 @@ module Google
983
1022
  #
984
1023
  # - [App
985
1024
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1025
+ # with the authorization scope:
1026
+ # - `https://www.googleapis.com/auth/chat.bot`
986
1027
  #
987
1028
  # - [User
988
1029
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1030
+ # with one of the following authorization scopes:
1031
+ # - `https://www.googleapis.com/auth/chat.messages.readonly`
1032
+ # - `https://www.googleapis.com/auth/chat.messages`
989
1033
  #
990
1034
  # Note: Might return a message from a blocked member or space.
991
1035
  #
@@ -1084,9 +1128,15 @@ module Google
1084
1128
  #
1085
1129
  # - [App
1086
1130
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1131
+ # with the authorization scope:
1132
+ # - `https://www.googleapis.com/auth/chat.bot`
1087
1133
  #
1088
1134
  # - [User
1089
1135
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1136
+ # with one of the following authorization scopes:
1137
+ # - `https://www.googleapis.com/auth/chat.messages`
1138
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
1139
+ # only)
1090
1140
  #
1091
1141
  # When using app authentication, requests can only update messages
1092
1142
  # created by the calling Chat app.
@@ -1126,6 +1176,8 @@ module Google
1126
1176
  #
1127
1177
  # - `accessory_widgets` (Requires [app
1128
1178
  # authentication](/chat/api/guides/auth/service-accounts).)
1179
+ #
1180
+ # - `quoted_message_metadata` (Only allows removal of the quoted message.)
1129
1181
  # @param allow_missing [::Boolean]
1130
1182
  # Optional. If `true` and the message isn't found, a new message is created
1131
1183
  # and `updateMask` is ignored. The specified message ID must be
@@ -1199,9 +1251,15 @@ module Google
1199
1251
  #
1200
1252
  # - [App
1201
1253
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1254
+ # with the authorization scope:
1255
+ # - `https://www.googleapis.com/auth/chat.bot`
1202
1256
  #
1203
1257
  # - [User
1204
1258
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1259
+ # with one of the following authorization scopes:
1260
+ # - `https://www.googleapis.com/auth/chat.messages`
1261
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
1262
+ # only)
1205
1263
  #
1206
1264
  # When using app authentication, requests can only delete messages
1207
1265
  # created by the calling Chat app.
@@ -1303,8 +1361,13 @@ module Google
1303
1361
  # For an example, see
1304
1362
  # [Get metadata about a message
1305
1363
  # attachment](https://developers.google.com/workspace/chat/get-media-attachments).
1364
+ #
1306
1365
  # Requires [app
1307
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
1366
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1367
+ # with the [authorization
1368
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
1369
+ #
1370
+ # - `https://www.googleapis.com/auth/chat.bot`
1308
1371
  #
1309
1372
  # @overload get_attachment(request, options = nil)
1310
1373
  # Pass arguments to `get_attachment` via a request object, either of type
@@ -1388,7 +1451,13 @@ module Google
1388
1451
  # attachment](https://developers.google.com/workspace/chat/upload-media-attachments).
1389
1452
  #
1390
1453
  # Requires user
1391
- # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
1454
+ # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1455
+ # with one of the following [authorization
1456
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
1457
+ #
1458
+ # - `https://www.googleapis.com/auth/chat.messages.create`
1459
+ # - `https://www.googleapis.com/auth/chat.messages`
1460
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
1392
1461
  #
1393
1462
  # You can upload attachments up to 200 MB. Certain file types aren't
1394
1463
  # supported. For details, see [File types blocked by Google
@@ -1483,9 +1552,14 @@ module Google
1483
1552
  #
1484
1553
  # - [App
1485
1554
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1555
+ # with the authorization scope:
1556
+ # - `https://www.googleapis.com/auth/chat.bot`
1486
1557
  #
1487
1558
  # - [User
1488
1559
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1560
+ # with one of the following authorization scopes:
1561
+ # - `https://www.googleapis.com/auth/chat.spaces.readonly`
1562
+ # - `https://www.googleapis.com/auth/chat.spaces`
1489
1563
  #
1490
1564
  # To list all named spaces by Google Workspace organization, use the
1491
1565
  # [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
@@ -1612,7 +1686,13 @@ module Google
1612
1686
  #
1613
1687
  # Requires [user
1614
1688
  # authentication with administrator
1615
- # privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges).
1689
+ # privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges)
1690
+ # and one of the following [authorization
1691
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
1692
+ #
1693
+ # - `https://www.googleapis.com/auth/chat.admin.spaces.readonly`
1694
+ # - `https://www.googleapis.com/auth/chat.admin.spaces`
1695
+ #
1616
1696
  # In the request, set `use_admin_access` to `true`.
1617
1697
  #
1618
1698
  # @overload search_spaces(request, options = nil)
@@ -1827,11 +1907,29 @@ module Google
1827
1907
  #
1828
1908
  # - [App
1829
1909
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1910
+ # with one of the following authorization scopes:
1911
+ # - `https://www.googleapis.com/auth/chat.bot`
1912
+ # - `https://www.googleapis.com/auth/chat.app.spaces` with [administrator
1913
+ # approval](https://support.google.com/a?p=chat-app-auth)
1830
1914
  #
1831
1915
  # - [User
1832
1916
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1833
- # You can authenticate and authorize this method with administrator
1834
- # privileges by setting the `use_admin_access` field in the request.
1917
+ # with one of the following authorization scopes:
1918
+ # - `https://www.googleapis.com/auth/chat.spaces.readonly`
1919
+ # - `https://www.googleapis.com/auth/chat.spaces`
1920
+ # - User authentication grants administrator privileges when an
1921
+ # administrator account authenticates, `use_admin_access` is `true`, and
1922
+ # one of the following authorization scopes is used:
1923
+ # - `https://www.googleapis.com/auth/chat.admin.spaces.readonly`
1924
+ # - `https://www.googleapis.com/auth/chat.admin.spaces`
1925
+ #
1926
+ # App authentication has the following limitations:
1927
+ #
1928
+ # - `space.access_settings` is only populated when using the
1929
+ # `chat.app.spaces` scope.
1930
+ # - `space.predefind_permission_settings` and `space.permission_settings` are
1931
+ # only populated when using the `chat.app.spaces` scope, and only for
1932
+ # spaces the app created.
1835
1933
  #
1836
1934
  # @overload get_space(request, options = nil)
1837
1935
  # Pass arguments to `get_space` via a request object, either of type
@@ -1921,28 +2019,49 @@ module Google
1921
2019
  end
1922
2020
 
1923
2021
  ##
1924
- # Creates a space with no members. Can be used to create a named space, or a
2022
+ # Creates a space. Can be used to create a named space, or a
1925
2023
  # group chat in `Import mode`. For an example, see [Create a
1926
2024
  # space](https://developers.google.com/workspace/chat/create-spaces).
1927
2025
  #
1928
- # If you receive the error message `ALREADY_EXISTS` when creating
1929
- # a space, try a different `displayName`. An existing space within
1930
- # the Google Workspace organization might already use this display name.
1931
- #
1932
2026
  # Supports the following types of
1933
2027
  # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
1934
2028
  #
1935
2029
  # - [App
1936
2030
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1937
2031
  # with [administrator approval](https://support.google.com/a?p=chat-app-auth)
1938
- # in [Developer Preview](https://developers.google.com/workspace/preview)
2032
+ # and one of the following authorization scopes:
2033
+ # - `https://www.googleapis.com/auth/chat.app.spaces.create`
2034
+ # - `https://www.googleapis.com/auth/chat.app.spaces`
1939
2035
  #
1940
2036
  # - [User
1941
2037
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2038
+ # with one of the following authorization scopes:
2039
+ # - `https://www.googleapis.com/auth/chat.spaces.create`
2040
+ # - `https://www.googleapis.com/auth/chat.spaces`
2041
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
2042
+ # only)
1942
2043
  #
1943
2044
  # When authenticating as an app, the `space.customer` field must be set in
1944
2045
  # the request.
1945
2046
  #
2047
+ # When authenticating as an app, the Chat app is added as a member of the
2048
+ # space. However, unlike human authentication, the Chat app is not added as a
2049
+ # space manager. By default, the Chat app can be removed from the space by
2050
+ # all space members. To allow only space managers to remove the app from a
2051
+ # space, set `space.permission_settings.manage_apps` to `managers_allowed`.
2052
+ #
2053
+ # Space membership upon creation depends on whether the space is created in
2054
+ # `Import mode`:
2055
+ #
2056
+ # * **Import mode:** No members are created.
2057
+ # * **All other modes:** The calling user is added as a member. This is:
2058
+ # * The app itself when using app authentication.
2059
+ # * The human user when using user authentication.
2060
+ #
2061
+ # If you receive the error message `ALREADY_EXISTS` when creating
2062
+ # a space, try a different `displayName`. An existing space within
2063
+ # the Google Workspace organization might already use this display name.
2064
+ #
1946
2065
  # @overload create_space(request, options = nil)
1947
2066
  # Pass arguments to `create_space` via a request object, either of type
1948
2067
  # {::Google::Apps::Chat::V1::CreateSpaceRequest} or an equivalent Hash.
@@ -2087,7 +2206,12 @@ module Google
2087
2206
  # might already use this display name.
2088
2207
  #
2089
2208
  # Requires [user
2090
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
2209
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2210
+ # with one of the following [authorization
2211
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
2212
+ #
2213
+ # - `https://www.googleapis.com/auth/chat.spaces.create`
2214
+ # - `https://www.googleapis.com/auth/chat.spaces`
2091
2215
  #
2092
2216
  # @overload set_up_space(request, options = nil)
2093
2217
  # Pass arguments to `set_up_space` via a request object, either of type
@@ -2139,7 +2263,7 @@ module Google
2139
2263
  # Optional. The Google Chat users or groups to invite to join the space. Omit
2140
2264
  # the calling user, as they are added automatically.
2141
2265
  #
2142
- # The set currently allows up to 20 memberships (in addition to the caller).
2266
+ # The set currently allows up to 49 memberships (in addition to the caller).
2143
2267
  #
2144
2268
  # For human membership, the `Membership.member` field must contain a `user`
2145
2269
  # with `name` populated (format: `users/{user}`) and `type` set to
@@ -2238,12 +2362,26 @@ module Google
2238
2362
  # - [App
2239
2363
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
2240
2364
  # with [administrator approval](https://support.google.com/a?p=chat-app-auth)
2241
- # in [Developer Preview](https://developers.google.com/workspace/preview)
2365
+ # and one of the following authorization scopes:
2366
+ # - `https://www.googleapis.com/auth/chat.app.spaces`
2242
2367
  #
2243
2368
  # - [User
2244
2369
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2245
- # You can authenticate and authorize this method with administrator
2246
- # privileges by setting the `use_admin_access` field in the request.
2370
+ # with one of the following authorization scopes:
2371
+ # - `https://www.googleapis.com/auth/chat.spaces`
2372
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
2373
+ # only)
2374
+ # - User authentication grants administrator privileges when an
2375
+ # administrator account authenticates, `use_admin_access` is `true`, and
2376
+ # the following authorization scopes is used:
2377
+ # - `https://www.googleapis.com/auth/chat.admin.spaces`
2378
+ #
2379
+ # App authentication has the following limitations:
2380
+ #
2381
+ # - To update either `space.predefined_permission_settings` or
2382
+ # `space.permission_settings`, the app must be the space creator.
2383
+ # - Updating the `space.access_settings.audience` is not supported for app
2384
+ # authentication.
2247
2385
  #
2248
2386
  # @overload update_space(request, options = nil)
2249
2387
  # Pass arguments to `update_space` via a request object, either of type
@@ -2409,13 +2547,22 @@ module Google
2409
2547
  #
2410
2548
  # - [App
2411
2549
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
2412
- # with [administrator approval](https://support.google.com/a?p=chat-app-auth)
2413
- # in [Developer Preview](https://developers.google.com/workspace/preview)
2550
+ # with [administrator
2551
+ # approval](https://support.google.com/a?p=chat-app-auth) and the
2552
+ # authorization scope:
2553
+ # - `https://www.googleapis.com/auth/chat.app.delete` (only in
2554
+ # spaces the app created)
2414
2555
  #
2415
2556
  # - [User
2416
2557
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2417
- # You can authenticate and authorize this method with administrator
2418
- # privileges by setting the `use_admin_access` field in the request.
2558
+ # with one of the following authorization scopes:
2559
+ # - `https://www.googleapis.com/auth/chat.delete`
2560
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
2561
+ # only)
2562
+ # - User authentication grants administrator privileges when an
2563
+ # administrator account authenticates, `use_admin_access` is `true`, and
2564
+ # the following authorization scope is used:
2565
+ # - `https://www.googleapis.com/auth/chat.admin.delete`
2419
2566
  #
2420
2567
  # @overload delete_space(request, options = nil)
2421
2568
  # Pass arguments to `delete_space` via a request object, either of type
@@ -2509,9 +2656,14 @@ module Google
2509
2656
  # [import process](https://developers.google.com/workspace/chat/import-data)
2510
2657
  # for the specified space and makes it visible to users.
2511
2658
  #
2512
- # Requires [app
2513
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
2514
- # and domain-wide delegation. For more information, see [Authorize Google
2659
+ # Requires [user
2660
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2661
+ # and domain-wide delegation with the [authorization
2662
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
2663
+ #
2664
+ # - `https://www.googleapis.com/auth/chat.import`
2665
+ #
2666
+ # For more information, see [Authorize Google
2515
2667
  # Chat apps to import
2516
2668
  # data](https://developers.google.com/workspace/chat/authorize-import).
2517
2669
  #
@@ -2608,14 +2760,19 @@ module Google
2608
2760
  # returns the direct message space between the specified user and the
2609
2761
  # authenticated user.
2610
2762
  #
2611
- # // Supports the following types of
2763
+ # Supports the following types of
2612
2764
  # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
2613
2765
  #
2614
2766
  # - [App
2615
2767
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
2768
+ # with the authorization scope:
2769
+ # - `https://www.googleapis.com/auth/chat.bot`
2616
2770
  #
2617
2771
  # - [User
2618
2772
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2773
+ # with one of the following authorization scopes:
2774
+ # - `https://www.googleapis.com/auth/chat.spaces.readonly`
2775
+ # - `https://www.googleapis.com/auth/chat.spaces`
2619
2776
  #
2620
2777
  # @overload find_direct_message(request, options = nil)
2621
2778
  # Pass arguments to `find_direct_message` via a request object, either of type
@@ -2718,21 +2875,35 @@ module Google
2718
2875
  # - [App
2719
2876
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
2720
2877
  # with [administrator approval](https://support.google.com/a?p=chat-app-auth)
2721
- # in [Developer Preview](https://developers.google.com/workspace/preview)
2878
+ # and the authorization scope:
2879
+ # - `https://www.googleapis.com/auth/chat.app.memberships`
2722
2880
  #
2723
2881
  # - [User
2724
2882
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2725
- # You can authenticate and authorize this method with administrator
2726
- # privileges by setting the `use_admin_access` field in the request.
2883
+ # with one of the following authorization scopes:
2884
+ # - `https://www.googleapis.com/auth/chat.memberships`
2885
+ # - `https://www.googleapis.com/auth/chat.memberships.app` (to add the
2886
+ # calling app to the space)
2887
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
2888
+ # only)
2889
+ # - User authentication grants administrator privileges when an
2890
+ # administrator account authenticates, `use_admin_access` is `true`, and
2891
+ # the following authorization scope is used:
2892
+ # - `https://www.googleapis.com/auth/chat.admin.memberships`
2893
+ #
2894
+ # App authentication is not supported for the following use cases:
2895
+ #
2896
+ # - Inviting users external to the Workspace organization that owns the
2897
+ # space.
2898
+ # - Adding a Google Group to a space.
2899
+ # - Adding a Chat app to a space.
2727
2900
  #
2728
2901
  # For example usage, see:
2729
2902
  #
2730
2903
  # - [Invite or add a user to a
2731
2904
  # space](https://developers.google.com/workspace/chat/create-members#create-user-membership).
2732
- #
2733
2905
  # - [Invite or add a Google Group to a
2734
2906
  # space](https://developers.google.com/workspace/chat/create-members#create-group-membership).
2735
- #
2736
2907
  # - [Add the Chat app to a
2737
2908
  # space](https://developers.google.com/workspace/chat/create-members#create-membership-calling-api).
2738
2909
  #
@@ -2773,8 +2944,6 @@ module Google
2773
2944
  # - When [authenticating as an
2774
2945
  # app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
2775
2946
  # the `chat.app.memberships` authorization scope is required.
2776
- # Authenticating as an app is available in [Developer
2777
- # Preview](https://developers.google.com/workspace/preview).
2778
2947
  #
2779
2948
  # - Set `user.type` to `HUMAN`, and set `user.name` with format
2780
2949
  # `users/{user}`, where `{user}` can be the email address for the user. For
@@ -2875,13 +3044,22 @@ module Google
2875
3044
  #
2876
3045
  # - [App
2877
3046
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
2878
- # with [administrator approval](https://support.google.com/a?p=chat-app-auth)
2879
- # in [Developer Preview](https://developers.google.com/workspace/preview)
3047
+ # with [administrator
3048
+ # approval](https://support.google.com/a?p=chat-app-auth) and the
3049
+ # authorization scope:
3050
+ # - `https://www.googleapis.com/auth/chat.app.memberships` (only in
3051
+ # spaces the app created)
2880
3052
  #
2881
3053
  # - [User
2882
3054
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2883
- # You can authenticate and authorize this method with administrator
2884
- # privileges by setting the `use_admin_access` field in the request.
3055
+ # with one of the following authorization scopes:
3056
+ # - `https://www.googleapis.com/auth/chat.memberships`
3057
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
3058
+ # only)
3059
+ # - User authentication grants administrator privileges when an
3060
+ # administrator account authenticates, `use_admin_access` is `true`, and
3061
+ # the following authorization scope is used:
3062
+ # - `https://www.googleapis.com/auth/chat.admin.memberships`
2885
3063
  #
2886
3064
  # @overload update_membership(request, options = nil)
2887
3065
  # Pass arguments to `update_membership` via a request object, either of type
@@ -2987,12 +3165,31 @@ module Google
2987
3165
  # - [App
2988
3166
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
2989
3167
  # with [administrator approval](https://support.google.com/a?p=chat-app-auth)
2990
- # in [Developer Preview](https://developers.google.com/workspace/preview)
3168
+ # and the authorization scope:
3169
+ # - `https://www.googleapis.com/auth/chat.app.memberships`
2991
3170
  #
2992
3171
  # - [User
2993
3172
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2994
- # You can authenticate and authorize this method with administrator
2995
- # privileges by setting the `use_admin_access` field in the request.
3173
+ # with one of the following authorization scopes:
3174
+ # - `https://www.googleapis.com/auth/chat.memberships`
3175
+ # - `https://www.googleapis.com/auth/chat.memberships.app` (to remove
3176
+ # the calling app from the space)
3177
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
3178
+ # only)
3179
+ # - User authentication grants administrator privileges when an
3180
+ # administrator account authenticates, `use_admin_access` is `true`, and
3181
+ # the following authorization scope is used:
3182
+ # - `https://www.googleapis.com/auth/chat.admin.memberships`
3183
+ #
3184
+ # App authentication is not supported for the following use cases:
3185
+ #
3186
+ # - Removing a Google Group from a space.
3187
+ # - Removing a Chat app from a space.
3188
+ #
3189
+ # To delete memberships for space managers, the requester
3190
+ # must be a space manager. If you're using [app
3191
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
3192
+ # the Chat app must be the space creator.
2996
3193
  #
2997
3194
  # @overload delete_membership(request, options = nil)
2998
3195
  # Pass arguments to `delete_membership` via a request object, either of type
@@ -3014,9 +3211,13 @@ module Google
3014
3211
  # human users' or their own memberships. Chat apps can't delete other apps'
3015
3212
  # memberships.
3016
3213
  #
3017
- # When deleting a human membership, requires the `chat.memberships` scope and
3018
- # `spaces/{space}/members/{member}` format. You can use the email as an
3019
- # alias for `{member}`. For example,
3214
+ # When deleting a human membership, requires the `chat.memberships` scope
3215
+ # with [user
3216
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3217
+ # or the `chat.memberships.app` scope with [app
3218
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
3219
+ # and the `spaces/{space}/members/{member}` format.
3220
+ # You can use the email as an alias for `{member}`. For example,
3020
3221
  # `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the
3021
3222
  # email of the Google Chat user.
3022
3223
  #
@@ -3100,7 +3301,14 @@ module Google
3100
3301
  # message](https://developers.google.com/workspace/chat/create-reactions).
3101
3302
  #
3102
3303
  # Requires [user
3103
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
3304
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3305
+ # with one of the following [authorization
3306
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
3307
+ #
3308
+ # - `https://www.googleapis.com/auth/chat.messages.reactions.create`
3309
+ # - `https://www.googleapis.com/auth/chat.messages.reactions`
3310
+ # - `https://www.googleapis.com/auth/chat.messages`
3311
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
3104
3312
  #
3105
3313
  # @overload create_reaction(request, options = nil)
3106
3314
  # Pass arguments to `create_reaction` via a request object, either of type
@@ -3187,7 +3395,14 @@ module Google
3187
3395
  # message](https://developers.google.com/workspace/chat/list-reactions).
3188
3396
  #
3189
3397
  # Requires [user
3190
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
3398
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3399
+ # with one of the following [authorization
3400
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
3401
+ #
3402
+ # - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
3403
+ # - `https://www.googleapis.com/auth/chat.messages.reactions`
3404
+ # - `https://www.googleapis.com/auth/chat.messages.readonly`
3405
+ # - `https://www.googleapis.com/auth/chat.messages`
3191
3406
  #
3192
3407
  # @overload list_reactions(request, options = nil)
3193
3408
  # Pass arguments to `list_reactions` via a request object, either of type
@@ -3334,7 +3549,13 @@ module Google
3334
3549
  # reaction](https://developers.google.com/workspace/chat/delete-reactions).
3335
3550
  #
3336
3551
  # Requires [user
3337
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
3552
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3553
+ # with one of the following [authorization
3554
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
3555
+ #
3556
+ # - `https://www.googleapis.com/auth/chat.messages.reactions`
3557
+ # - `https://www.googleapis.com/auth/chat.messages`
3558
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
3338
3559
  #
3339
3560
  # @overload delete_reaction(request, options = nil)
3340
3561
  # Pass arguments to `delete_reaction` via a request object, either of type
@@ -3424,7 +3645,11 @@ module Google
3424
3645
  # permissions](https://support.google.com/a/answer/12850085).
3425
3646
  #
3426
3647
  # Requires [user
3427
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
3648
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3649
+ # with the [authorization
3650
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
3651
+ #
3652
+ # - `https://www.googleapis.com/auth/chat.customemojis`
3428
3653
  #
3429
3654
  # @overload create_custom_emoji(request, options = nil)
3430
3655
  # Pass arguments to `create_custom_emoji` via a request object, either of type
@@ -3512,7 +3737,12 @@ module Google
3512
3737
  # permissions](https://support.google.com/a/answer/12850085).
3513
3738
  #
3514
3739
  # Requires [user
3515
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
3740
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3741
+ # with one of the following [authorization
3742
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
3743
+ #
3744
+ # - `https://www.googleapis.com/auth/chat.customemojis.readonly`
3745
+ # - `https://www.googleapis.com/auth/chat.customemojis`
3516
3746
  #
3517
3747
  # @overload get_custom_emoji(request, options = nil)
3518
3748
  # Pass arguments to `get_custom_emoji` via a request object, either of type
@@ -3606,7 +3836,12 @@ module Google
3606
3836
  # permissions](https://support.google.com/a/answer/12850085).
3607
3837
  #
3608
3838
  # Requires [user
3609
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
3839
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3840
+ # with one of the following [authorization
3841
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
3842
+ #
3843
+ # - `https://www.googleapis.com/auth/chat.customemojis.readonly`
3844
+ # - `https://www.googleapis.com/auth/chat.customemojis`
3610
3845
  #
3611
3846
  # @overload list_custom_emojis(request, options = nil)
3612
3847
  # Pass arguments to `list_custom_emojis` via a request object, either of type
@@ -3730,7 +3965,11 @@ module Google
3730
3965
  # permissions](https://support.google.com/a/answer/12850085).
3731
3966
  #
3732
3967
  # Requires [user
3733
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
3968
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3969
+ # with the [authorization
3970
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
3971
+ #
3972
+ # - `https://www.googleapis.com/auth/chat.customemojis`
3734
3973
  #
3735
3974
  # @overload delete_custom_emoji(request, options = nil)
3736
3975
  # Pass arguments to `delete_custom_emoji` via a request object, either of type
@@ -3820,7 +4059,12 @@ module Google
3820
4059
  # state](https://developers.google.com/workspace/chat/get-space-read-state).
3821
4060
  #
3822
4061
  # Requires [user
3823
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
4062
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4063
+ # with one of the following [authorization
4064
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
4065
+ #
4066
+ # - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
4067
+ # - `https://www.googleapis.com/auth/chat.users.readstate`
3824
4068
  #
3825
4069
  # @overload get_space_read_state(request, options = nil)
3826
4070
  # Pass arguments to `get_space_read_state` via a request object, either of type
@@ -3917,7 +4161,11 @@ module Google
3917
4161
  # state](https://developers.google.com/workspace/chat/update-space-read-state).
3918
4162
  #
3919
4163
  # Requires [user
3920
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
4164
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4165
+ # with the [authorization
4166
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
4167
+ #
4168
+ # - `https://www.googleapis.com/auth/chat.users.readstate`
3921
4169
  #
3922
4170
  # @overload update_space_read_state(request, options = nil)
3923
4171
  # Pass arguments to `update_space_read_state` via a request object, either of type
@@ -4029,7 +4277,12 @@ module Google
4029
4277
  # state](https://developers.google.com/workspace/chat/get-thread-read-state).
4030
4278
  #
4031
4279
  # Requires [user
4032
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
4280
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4281
+ # with one of the following [authorization
4282
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
4283
+ #
4284
+ # - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
4285
+ # - `https://www.googleapis.com/auth/chat.users.readstate`
4033
4286
  #
4034
4287
  # @overload get_thread_read_state(request, options = nil)
4035
4288
  # Pass arguments to `get_thread_read_state` via a request object, either of type
@@ -4133,7 +4386,20 @@ module Google
4133
4386
  # object of the Space event data for this request.
4134
4387
  #
4135
4388
  # Requires [user
4136
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
4389
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4390
+ # with an [authorization
4391
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
4392
+ # appropriate for reading the requested data:
4393
+ #
4394
+ # - `https://www.googleapis.com/auth/chat.spaces.readonly`
4395
+ # - `https://www.googleapis.com/auth/chat.spaces`
4396
+ # - `https://www.googleapis.com/auth/chat.messages.readonly`
4397
+ # - `https://www.googleapis.com/auth/chat.messages`
4398
+ # - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
4399
+ # - `https://www.googleapis.com/auth/chat.messages.reactions`
4400
+ # - `https://www.googleapis.com/auth/chat.memberships.readonly`
4401
+ # - `https://www.googleapis.com/auth/chat.memberships`
4402
+ #
4137
4403
  # To get an event, the authenticated user must be a member of the space.
4138
4404
  #
4139
4405
  # For an example, see [Get details about an
@@ -4227,7 +4493,20 @@ module Google
4227
4493
  # `Membership` resource.
4228
4494
  #
4229
4495
  # Requires [user
4230
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
4496
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4497
+ # with an [authorization
4498
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
4499
+ # appropriate for reading the requested data:
4500
+ #
4501
+ # - `https://www.googleapis.com/auth/chat.spaces.readonly`
4502
+ # - `https://www.googleapis.com/auth/chat.spaces`
4503
+ # - `https://www.googleapis.com/auth/chat.messages.readonly`
4504
+ # - `https://www.googleapis.com/auth/chat.messages`
4505
+ # - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
4506
+ # - `https://www.googleapis.com/auth/chat.messages.reactions`
4507
+ # - `https://www.googleapis.com/auth/chat.memberships.readonly`
4508
+ # - `https://www.googleapis.com/auth/chat.memberships`
4509
+ #
4231
4510
  # To list events, the authenticated user must be a member of the space.
4232
4511
  #
4233
4512
  # For an example, see [List events from a Google Chat
@@ -4389,7 +4668,11 @@ module Google
4389
4668
  # setting](https://developers.google.com/workspace/chat/get-space-notification-setting).
4390
4669
  #
4391
4670
  # Requires [user
4392
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
4671
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4672
+ # with the [authorization
4673
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
4674
+ #
4675
+ # - `https://www.googleapis.com/auth/chat.users.spacesettings`
4393
4676
  #
4394
4677
  # @overload get_space_notification_setting(request, options = nil)
4395
4678
  # Pass arguments to `get_space_notification_setting` via a request object, either of type
@@ -4477,7 +4760,11 @@ module Google
4477
4760
  # setting](https://developers.google.com/workspace/chat/update-space-notification-setting).
4478
4761
  #
4479
4762
  # Requires [user
4480
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
4763
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4764
+ # with the [authorization
4765
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
4766
+ #
4767
+ # - `https://www.googleapis.com/auth/chat.users.spacesettings`
4481
4768
  #
4482
4769
  # @overload update_space_notification_setting(request, options = nil)
4483
4770
  # Pass arguments to `update_space_notification_setting` via a request object, either of type