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.
@@ -363,10 +363,21 @@ module Google
363
363
  # Creates a message in a Google Chat space. For an example, see [Send a
364
364
  # message](https://developers.google.com/workspace/chat/create-messages).
365
365
  #
366
- # The `create()` method requires either [user
366
+ # Supports the following types of
367
+ # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
368
+ #
369
+ # - [App
370
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
371
+ # with the authorization scope:
372
+ # - `https://www.googleapis.com/auth/chat.bot`
373
+ # - [User
367
374
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
368
- # or [app
369
- # authentication](https://developers.google.com/workspace/chat/authorize-import).
375
+ # with one of the following authorization scopes:
376
+ # - `https://www.googleapis.com/auth/chat.messages.create`
377
+ # - `https://www.googleapis.com/auth/chat.messages`
378
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
379
+ # only)
380
+ #
370
381
  # Chat attributes the message sender differently depending on the type of
371
382
  # authentication that you use in your request.
372
383
  #
@@ -527,7 +538,13 @@ module Google
527
538
  # messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list).
528
539
  #
529
540
  # Requires [user
530
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
541
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
542
+ # with one of the following [authorization
543
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
544
+ #
545
+ # - `https://www.googleapis.com/auth/chat.messages.readonly`
546
+ # - `https://www.googleapis.com/auth/chat.messages`
547
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
531
548
  #
532
549
  # @overload list_messages(request, options = nil)
533
550
  # Pass arguments to `list_messages` via a request object, either of type
@@ -705,11 +722,23 @@ module Google
705
722
  #
706
723
  # - [App
707
724
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
725
+ # with one of the following authorization scopes:
726
+ # - `https://www.googleapis.com/auth/chat.bot`
727
+ # - `https://www.googleapis.com/auth/chat.app.memberships` (requires
728
+ # [administrator approval](https://support.google.com/a?p=chat-app-auth))
708
729
  #
709
730
  # - [User
710
731
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
711
- # You can authenticate and authorize this method with administrator
712
- # privileges by setting the `use_admin_access` field in the request.
732
+ # with one of the following authorization scopes:
733
+ # - `https://www.googleapis.com/auth/chat.memberships.readonly`
734
+ # - `https://www.googleapis.com/auth/chat.memberships`
735
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
736
+ # only)
737
+ # - User authentication grants administrator privileges when an
738
+ # administrator account authenticates, `use_admin_access` is `true`, and
739
+ # one of the following authorization scopes is used:
740
+ # - `https://www.googleapis.com/auth/chat.admin.memberships.readonly`
741
+ # - `https://www.googleapis.com/auth/chat.admin.memberships`
713
742
  #
714
743
  # @overload list_memberships(request, options = nil)
715
744
  # Pass arguments to `list_memberships` via a request object, either of type
@@ -897,11 +926,21 @@ module Google
897
926
  #
898
927
  # - [App
899
928
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
929
+ # with one of the following authorization scopes:
930
+ # - `https://www.googleapis.com/auth/chat.bot`
931
+ # - `https://www.googleapis.com/auth/chat.app.memberships` (requires
932
+ # [administrator approval](https://support.google.com/a?p=chat-app-auth))
900
933
  #
901
934
  # - [User
902
935
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
903
- # You can authenticate and authorize this method with administrator
904
- # privileges by setting the `use_admin_access` field in the request.
936
+ # with one of the following authorization scopes:
937
+ # - `https://www.googleapis.com/auth/chat.memberships.readonly`
938
+ # - `https://www.googleapis.com/auth/chat.memberships`
939
+ # - User authentication grants administrator privileges when an
940
+ # administrator account authenticates, `use_admin_access` is `true`, and
941
+ # one of the following authorization scopes is used:
942
+ # - `https://www.googleapis.com/auth/chat.admin.memberships.readonly`
943
+ # - `https://www.googleapis.com/auth/chat.admin.memberships`
905
944
  #
906
945
  # @overload get_membership(request, options = nil)
907
946
  # Pass arguments to `get_membership` via a request object, either of type
@@ -1018,9 +1057,14 @@ module Google
1018
1057
  #
1019
1058
  # - [App
1020
1059
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1060
+ # with the authorization scope:
1061
+ # - `https://www.googleapis.com/auth/chat.bot`
1021
1062
  #
1022
1063
  # - [User
1023
1064
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1065
+ # with one of the following authorization scopes:
1066
+ # - `https://www.googleapis.com/auth/chat.messages.readonly`
1067
+ # - `https://www.googleapis.com/auth/chat.messages`
1024
1068
  #
1025
1069
  # Note: Might return a message from a blocked member or space.
1026
1070
  #
@@ -1126,9 +1170,15 @@ module Google
1126
1170
  #
1127
1171
  # - [App
1128
1172
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1173
+ # with the authorization scope:
1174
+ # - `https://www.googleapis.com/auth/chat.bot`
1129
1175
  #
1130
1176
  # - [User
1131
1177
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1178
+ # with one of the following authorization scopes:
1179
+ # - `https://www.googleapis.com/auth/chat.messages`
1180
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
1181
+ # only)
1132
1182
  #
1133
1183
  # When using app authentication, requests can only update messages
1134
1184
  # created by the calling Chat app.
@@ -1168,6 +1218,8 @@ module Google
1168
1218
  #
1169
1219
  # - `accessory_widgets` (Requires [app
1170
1220
  # authentication](/chat/api/guides/auth/service-accounts).)
1221
+ #
1222
+ # - `quoted_message_metadata` (Only allows removal of the quoted message.)
1171
1223
  # @param allow_missing [::Boolean]
1172
1224
  # Optional. If `true` and the message isn't found, a new message is created
1173
1225
  # and `updateMask` is ignored. The specified message ID must be
@@ -1248,9 +1300,15 @@ module Google
1248
1300
  #
1249
1301
  # - [App
1250
1302
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1303
+ # with the authorization scope:
1304
+ # - `https://www.googleapis.com/auth/chat.bot`
1251
1305
  #
1252
1306
  # - [User
1253
1307
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1308
+ # with one of the following authorization scopes:
1309
+ # - `https://www.googleapis.com/auth/chat.messages`
1310
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
1311
+ # only)
1254
1312
  #
1255
1313
  # When using app authentication, requests can only delete messages
1256
1314
  # created by the calling Chat app.
@@ -1359,8 +1417,13 @@ module Google
1359
1417
  # For an example, see
1360
1418
  # [Get metadata about a message
1361
1419
  # attachment](https://developers.google.com/workspace/chat/get-media-attachments).
1420
+ #
1362
1421
  # Requires [app
1363
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
1422
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1423
+ # with the [authorization
1424
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
1425
+ #
1426
+ # - `https://www.googleapis.com/auth/chat.bot`
1364
1427
  #
1365
1428
  # @overload get_attachment(request, options = nil)
1366
1429
  # Pass arguments to `get_attachment` via a request object, either of type
@@ -1451,7 +1514,13 @@ module Google
1451
1514
  # attachment](https://developers.google.com/workspace/chat/upload-media-attachments).
1452
1515
  #
1453
1516
  # Requires user
1454
- # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
1517
+ # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1518
+ # with one of the following [authorization
1519
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
1520
+ #
1521
+ # - `https://www.googleapis.com/auth/chat.messages.create`
1522
+ # - `https://www.googleapis.com/auth/chat.messages`
1523
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
1455
1524
  #
1456
1525
  # You can upload attachments up to 200 MB. Certain file types aren't
1457
1526
  # supported. For details, see [File types blocked by Google
@@ -1553,9 +1622,14 @@ module Google
1553
1622
  #
1554
1623
  # - [App
1555
1624
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1625
+ # with the authorization scope:
1626
+ # - `https://www.googleapis.com/auth/chat.bot`
1556
1627
  #
1557
1628
  # - [User
1558
1629
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1630
+ # with one of the following authorization scopes:
1631
+ # - `https://www.googleapis.com/auth/chat.spaces.readonly`
1632
+ # - `https://www.googleapis.com/auth/chat.spaces`
1559
1633
  #
1560
1634
  # To list all named spaces by Google Workspace organization, use the
1561
1635
  # [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
@@ -1681,7 +1755,13 @@ module Google
1681
1755
  #
1682
1756
  # Requires [user
1683
1757
  # authentication with administrator
1684
- # privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges).
1758
+ # privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges)
1759
+ # and one of the following [authorization
1760
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
1761
+ #
1762
+ # - `https://www.googleapis.com/auth/chat.admin.spaces.readonly`
1763
+ # - `https://www.googleapis.com/auth/chat.admin.spaces`
1764
+ #
1685
1765
  # In the request, set `use_admin_access` to `true`.
1686
1766
  #
1687
1767
  # @overload search_spaces(request, options = nil)
@@ -1895,11 +1975,29 @@ module Google
1895
1975
  #
1896
1976
  # - [App
1897
1977
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1978
+ # with one of the following authorization scopes:
1979
+ # - `https://www.googleapis.com/auth/chat.bot`
1980
+ # - `https://www.googleapis.com/auth/chat.app.spaces` with [administrator
1981
+ # approval](https://support.google.com/a?p=chat-app-auth)
1898
1982
  #
1899
1983
  # - [User
1900
1984
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1901
- # You can authenticate and authorize this method with administrator
1902
- # privileges by setting the `use_admin_access` field in the request.
1985
+ # with one of the following authorization scopes:
1986
+ # - `https://www.googleapis.com/auth/chat.spaces.readonly`
1987
+ # - `https://www.googleapis.com/auth/chat.spaces`
1988
+ # - User authentication grants administrator privileges when an
1989
+ # administrator account authenticates, `use_admin_access` is `true`, and
1990
+ # one of the following authorization scopes is used:
1991
+ # - `https://www.googleapis.com/auth/chat.admin.spaces.readonly`
1992
+ # - `https://www.googleapis.com/auth/chat.admin.spaces`
1993
+ #
1994
+ # App authentication has the following limitations:
1995
+ #
1996
+ # - `space.access_settings` is only populated when using the
1997
+ # `chat.app.spaces` scope.
1998
+ # - `space.predefind_permission_settings` and `space.permission_settings` are
1999
+ # only populated when using the `chat.app.spaces` scope, and only for
2000
+ # spaces the app created.
1903
2001
  #
1904
2002
  # @overload get_space(request, options = nil)
1905
2003
  # Pass arguments to `get_space` via a request object, either of type
@@ -1996,28 +2094,49 @@ module Google
1996
2094
  end
1997
2095
 
1998
2096
  ##
1999
- # Creates a space with no members. Can be used to create a named space, or a
2097
+ # Creates a space. Can be used to create a named space, or a
2000
2098
  # group chat in `Import mode`. For an example, see [Create a
2001
2099
  # space](https://developers.google.com/workspace/chat/create-spaces).
2002
2100
  #
2003
- # If you receive the error message `ALREADY_EXISTS` when creating
2004
- # a space, try a different `displayName`. An existing space within
2005
- # the Google Workspace organization might already use this display name.
2006
- #
2007
2101
  # Supports the following types of
2008
2102
  # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
2009
2103
  #
2010
2104
  # - [App
2011
2105
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
2012
2106
  # with [administrator approval](https://support.google.com/a?p=chat-app-auth)
2013
- # in [Developer Preview](https://developers.google.com/workspace/preview)
2107
+ # and one of the following authorization scopes:
2108
+ # - `https://www.googleapis.com/auth/chat.app.spaces.create`
2109
+ # - `https://www.googleapis.com/auth/chat.app.spaces`
2014
2110
  #
2015
2111
  # - [User
2016
2112
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2113
+ # with one of the following authorization scopes:
2114
+ # - `https://www.googleapis.com/auth/chat.spaces.create`
2115
+ # - `https://www.googleapis.com/auth/chat.spaces`
2116
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
2117
+ # only)
2017
2118
  #
2018
2119
  # When authenticating as an app, the `space.customer` field must be set in
2019
2120
  # the request.
2020
2121
  #
2122
+ # When authenticating as an app, the Chat app is added as a member of the
2123
+ # space. However, unlike human authentication, the Chat app is not added as a
2124
+ # space manager. By default, the Chat app can be removed from the space by
2125
+ # all space members. To allow only space managers to remove the app from a
2126
+ # space, set `space.permission_settings.manage_apps` to `managers_allowed`.
2127
+ #
2128
+ # Space membership upon creation depends on whether the space is created in
2129
+ # `Import mode`:
2130
+ #
2131
+ # * **Import mode:** No members are created.
2132
+ # * **All other modes:** The calling user is added as a member. This is:
2133
+ # * The app itself when using app authentication.
2134
+ # * The human user when using user authentication.
2135
+ #
2136
+ # If you receive the error message `ALREADY_EXISTS` when creating
2137
+ # a space, try a different `displayName`. An existing space within
2138
+ # the Google Workspace organization might already use this display name.
2139
+ #
2021
2140
  # @overload create_space(request, options = nil)
2022
2141
  # Pass arguments to `create_space` via a request object, either of type
2023
2142
  # {::Google::Apps::Chat::V1::CreateSpaceRequest} or an equivalent Hash.
@@ -2161,7 +2280,12 @@ module Google
2161
2280
  # might already use this display name.
2162
2281
  #
2163
2282
  # Requires [user
2164
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
2283
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2284
+ # with one of the following [authorization
2285
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
2286
+ #
2287
+ # - `https://www.googleapis.com/auth/chat.spaces.create`
2288
+ # - `https://www.googleapis.com/auth/chat.spaces`
2165
2289
  #
2166
2290
  # @overload set_up_space(request, options = nil)
2167
2291
  # Pass arguments to `set_up_space` via a request object, either of type
@@ -2213,7 +2337,7 @@ module Google
2213
2337
  # Optional. The Google Chat users or groups to invite to join the space. Omit
2214
2338
  # the calling user, as they are added automatically.
2215
2339
  #
2216
- # The set currently allows up to 20 memberships (in addition to the caller).
2340
+ # The set currently allows up to 49 memberships (in addition to the caller).
2217
2341
  #
2218
2342
  # For human membership, the `Membership.member` field must contain a `user`
2219
2343
  # with `name` populated (format: `users/{user}`) and `type` set to
@@ -2311,12 +2435,26 @@ module Google
2311
2435
  # - [App
2312
2436
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
2313
2437
  # with [administrator approval](https://support.google.com/a?p=chat-app-auth)
2314
- # in [Developer Preview](https://developers.google.com/workspace/preview)
2438
+ # and one of the following authorization scopes:
2439
+ # - `https://www.googleapis.com/auth/chat.app.spaces`
2315
2440
  #
2316
2441
  # - [User
2317
2442
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2318
- # You can authenticate and authorize this method with administrator
2319
- # privileges by setting the `use_admin_access` field in the request.
2443
+ # with one of the following authorization scopes:
2444
+ # - `https://www.googleapis.com/auth/chat.spaces`
2445
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
2446
+ # only)
2447
+ # - User authentication grants administrator privileges when an
2448
+ # administrator account authenticates, `use_admin_access` is `true`, and
2449
+ # the following authorization scopes is used:
2450
+ # - `https://www.googleapis.com/auth/chat.admin.spaces`
2451
+ #
2452
+ # App authentication has the following limitations:
2453
+ #
2454
+ # - To update either `space.predefined_permission_settings` or
2455
+ # `space.permission_settings`, the app must be the space creator.
2456
+ # - Updating the `space.access_settings.audience` is not supported for app
2457
+ # authentication.
2320
2458
  #
2321
2459
  # @overload update_space(request, options = nil)
2322
2460
  # Pass arguments to `update_space` via a request object, either of type
@@ -2489,13 +2627,22 @@ module Google
2489
2627
  #
2490
2628
  # - [App
2491
2629
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
2492
- # with [administrator approval](https://support.google.com/a?p=chat-app-auth)
2493
- # in [Developer Preview](https://developers.google.com/workspace/preview)
2630
+ # with [administrator
2631
+ # approval](https://support.google.com/a?p=chat-app-auth) and the
2632
+ # authorization scope:
2633
+ # - `https://www.googleapis.com/auth/chat.app.delete` (only in
2634
+ # spaces the app created)
2494
2635
  #
2495
2636
  # - [User
2496
2637
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2497
- # You can authenticate and authorize this method with administrator
2498
- # privileges by setting the `use_admin_access` field in the request.
2638
+ # with one of the following authorization scopes:
2639
+ # - `https://www.googleapis.com/auth/chat.delete`
2640
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
2641
+ # only)
2642
+ # - User authentication grants administrator privileges when an
2643
+ # administrator account authenticates, `use_admin_access` is `true`, and
2644
+ # the following authorization scope is used:
2645
+ # - `https://www.googleapis.com/auth/chat.admin.delete`
2499
2646
  #
2500
2647
  # @overload delete_space(request, options = nil)
2501
2648
  # Pass arguments to `delete_space` via a request object, either of type
@@ -2596,9 +2743,14 @@ module Google
2596
2743
  # [import process](https://developers.google.com/workspace/chat/import-data)
2597
2744
  # for the specified space and makes it visible to users.
2598
2745
  #
2599
- # Requires [app
2600
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
2601
- # and domain-wide delegation. For more information, see [Authorize Google
2746
+ # Requires [user
2747
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2748
+ # and domain-wide delegation with the [authorization
2749
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
2750
+ #
2751
+ # - `https://www.googleapis.com/auth/chat.import`
2752
+ #
2753
+ # For more information, see [Authorize Google
2602
2754
  # Chat apps to import
2603
2755
  # data](https://developers.google.com/workspace/chat/authorize-import).
2604
2756
  #
@@ -2702,14 +2854,19 @@ module Google
2702
2854
  # returns the direct message space between the specified user and the
2703
2855
  # authenticated user.
2704
2856
  #
2705
- # // Supports the following types of
2857
+ # Supports the following types of
2706
2858
  # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
2707
2859
  #
2708
2860
  # - [App
2709
2861
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
2862
+ # with the authorization scope:
2863
+ # - `https://www.googleapis.com/auth/chat.bot`
2710
2864
  #
2711
2865
  # - [User
2712
2866
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2867
+ # with one of the following authorization scopes:
2868
+ # - `https://www.googleapis.com/auth/chat.spaces.readonly`
2869
+ # - `https://www.googleapis.com/auth/chat.spaces`
2713
2870
  #
2714
2871
  # @overload find_direct_message(request, options = nil)
2715
2872
  # Pass arguments to `find_direct_message` via a request object, either of type
@@ -2811,21 +2968,35 @@ module Google
2811
2968
  # - [App
2812
2969
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
2813
2970
  # with [administrator approval](https://support.google.com/a?p=chat-app-auth)
2814
- # in [Developer Preview](https://developers.google.com/workspace/preview)
2971
+ # and the authorization scope:
2972
+ # - `https://www.googleapis.com/auth/chat.app.memberships`
2815
2973
  #
2816
2974
  # - [User
2817
2975
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2818
- # You can authenticate and authorize this method with administrator
2819
- # privileges by setting the `use_admin_access` field in the request.
2976
+ # with one of the following authorization scopes:
2977
+ # - `https://www.googleapis.com/auth/chat.memberships`
2978
+ # - `https://www.googleapis.com/auth/chat.memberships.app` (to add the
2979
+ # calling app to the space)
2980
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
2981
+ # only)
2982
+ # - User authentication grants administrator privileges when an
2983
+ # administrator account authenticates, `use_admin_access` is `true`, and
2984
+ # the following authorization scope is used:
2985
+ # - `https://www.googleapis.com/auth/chat.admin.memberships`
2986
+ #
2987
+ # App authentication is not supported for the following use cases:
2988
+ #
2989
+ # - Inviting users external to the Workspace organization that owns the
2990
+ # space.
2991
+ # - Adding a Google Group to a space.
2992
+ # - Adding a Chat app to a space.
2820
2993
  #
2821
2994
  # For example usage, see:
2822
2995
  #
2823
2996
  # - [Invite or add a user to a
2824
2997
  # space](https://developers.google.com/workspace/chat/create-members#create-user-membership).
2825
- #
2826
2998
  # - [Invite or add a Google Group to a
2827
2999
  # space](https://developers.google.com/workspace/chat/create-members#create-group-membership).
2828
- #
2829
3000
  # - [Add the Chat app to a
2830
3001
  # space](https://developers.google.com/workspace/chat/create-members#create-membership-calling-api).
2831
3002
  #
@@ -2866,8 +3037,6 @@ module Google
2866
3037
  # - When [authenticating as an
2867
3038
  # app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
2868
3039
  # the `chat.app.memberships` authorization scope is required.
2869
- # Authenticating as an app is available in [Developer
2870
- # Preview](https://developers.google.com/workspace/preview).
2871
3040
  #
2872
3041
  # - Set `user.type` to `HUMAN`, and set `user.name` with format
2873
3042
  # `users/{user}`, where `{user}` can be the email address for the user. For
@@ -2975,13 +3144,22 @@ module Google
2975
3144
  #
2976
3145
  # - [App
2977
3146
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
2978
- # with [administrator approval](https://support.google.com/a?p=chat-app-auth)
2979
- # in [Developer Preview](https://developers.google.com/workspace/preview)
3147
+ # with [administrator
3148
+ # approval](https://support.google.com/a?p=chat-app-auth) and the
3149
+ # authorization scope:
3150
+ # - `https://www.googleapis.com/auth/chat.app.memberships` (only in
3151
+ # spaces the app created)
2980
3152
  #
2981
3153
  # - [User
2982
3154
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
2983
- # You can authenticate and authorize this method with administrator
2984
- # privileges by setting the `use_admin_access` field in the request.
3155
+ # with one of the following authorization scopes:
3156
+ # - `https://www.googleapis.com/auth/chat.memberships`
3157
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
3158
+ # only)
3159
+ # - User authentication grants administrator privileges when an
3160
+ # administrator account authenticates, `use_admin_access` is `true`, and
3161
+ # the following authorization scope is used:
3162
+ # - `https://www.googleapis.com/auth/chat.admin.memberships`
2985
3163
  #
2986
3164
  # @overload update_membership(request, options = nil)
2987
3165
  # Pass arguments to `update_membership` via a request object, either of type
@@ -3094,12 +3272,31 @@ module Google
3094
3272
  # - [App
3095
3273
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
3096
3274
  # with [administrator approval](https://support.google.com/a?p=chat-app-auth)
3097
- # in [Developer Preview](https://developers.google.com/workspace/preview)
3275
+ # and the authorization scope:
3276
+ # - `https://www.googleapis.com/auth/chat.app.memberships`
3098
3277
  #
3099
3278
  # - [User
3100
3279
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3101
- # You can authenticate and authorize this method with administrator
3102
- # privileges by setting the `use_admin_access` field in the request.
3280
+ # with one of the following authorization scopes:
3281
+ # - `https://www.googleapis.com/auth/chat.memberships`
3282
+ # - `https://www.googleapis.com/auth/chat.memberships.app` (to remove
3283
+ # the calling app from the space)
3284
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces
3285
+ # only)
3286
+ # - User authentication grants administrator privileges when an
3287
+ # administrator account authenticates, `use_admin_access` is `true`, and
3288
+ # the following authorization scope is used:
3289
+ # - `https://www.googleapis.com/auth/chat.admin.memberships`
3290
+ #
3291
+ # App authentication is not supported for the following use cases:
3292
+ #
3293
+ # - Removing a Google Group from a space.
3294
+ # - Removing a Chat app from a space.
3295
+ #
3296
+ # To delete memberships for space managers, the requester
3297
+ # must be a space manager. If you're using [app
3298
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
3299
+ # the Chat app must be the space creator.
3103
3300
  #
3104
3301
  # @overload delete_membership(request, options = nil)
3105
3302
  # Pass arguments to `delete_membership` via a request object, either of type
@@ -3121,9 +3318,13 @@ module Google
3121
3318
  # human users' or their own memberships. Chat apps can't delete other apps'
3122
3319
  # memberships.
3123
3320
  #
3124
- # When deleting a human membership, requires the `chat.memberships` scope and
3125
- # `spaces/{space}/members/{member}` format. You can use the email as an
3126
- # alias for `{member}`. For example,
3321
+ # When deleting a human membership, requires the `chat.memberships` scope
3322
+ # with [user
3323
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3324
+ # or the `chat.memberships.app` scope with [app
3325
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
3326
+ # and the `spaces/{space}/members/{member}` format.
3327
+ # You can use the email as an alias for `{member}`. For example,
3127
3328
  # `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the
3128
3329
  # email of the Google Chat user.
3129
3330
  #
@@ -3214,7 +3415,14 @@ module Google
3214
3415
  # message](https://developers.google.com/workspace/chat/create-reactions).
3215
3416
  #
3216
3417
  # Requires [user
3217
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
3418
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3419
+ # with one of the following [authorization
3420
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
3421
+ #
3422
+ # - `https://www.googleapis.com/auth/chat.messages.reactions.create`
3423
+ # - `https://www.googleapis.com/auth/chat.messages.reactions`
3424
+ # - `https://www.googleapis.com/auth/chat.messages`
3425
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
3218
3426
  #
3219
3427
  # @overload create_reaction(request, options = nil)
3220
3428
  # Pass arguments to `create_reaction` via a request object, either of type
@@ -3308,7 +3516,14 @@ module Google
3308
3516
  # message](https://developers.google.com/workspace/chat/list-reactions).
3309
3517
  #
3310
3518
  # Requires [user
3311
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
3519
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3520
+ # with one of the following [authorization
3521
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
3522
+ #
3523
+ # - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
3524
+ # - `https://www.googleapis.com/auth/chat.messages.reactions`
3525
+ # - `https://www.googleapis.com/auth/chat.messages.readonly`
3526
+ # - `https://www.googleapis.com/auth/chat.messages`
3312
3527
  #
3313
3528
  # @overload list_reactions(request, options = nil)
3314
3529
  # Pass arguments to `list_reactions` via a request object, either of type
@@ -3462,7 +3677,13 @@ module Google
3462
3677
  # reaction](https://developers.google.com/workspace/chat/delete-reactions).
3463
3678
  #
3464
3679
  # Requires [user
3465
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
3680
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3681
+ # with one of the following [authorization
3682
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
3683
+ #
3684
+ # - `https://www.googleapis.com/auth/chat.messages.reactions`
3685
+ # - `https://www.googleapis.com/auth/chat.messages`
3686
+ # - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
3466
3687
  #
3467
3688
  # @overload delete_reaction(request, options = nil)
3468
3689
  # Pass arguments to `delete_reaction` via a request object, either of type
@@ -3559,7 +3780,11 @@ module Google
3559
3780
  # permissions](https://support.google.com/a/answer/12850085).
3560
3781
  #
3561
3782
  # Requires [user
3562
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
3783
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3784
+ # with the [authorization
3785
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
3786
+ #
3787
+ # - `https://www.googleapis.com/auth/chat.customemojis`
3563
3788
  #
3564
3789
  # @overload create_custom_emoji(request, options = nil)
3565
3790
  # Pass arguments to `create_custom_emoji` via a request object, either of type
@@ -3646,7 +3871,12 @@ module Google
3646
3871
  # permissions](https://support.google.com/a/answer/12850085).
3647
3872
  #
3648
3873
  # Requires [user
3649
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
3874
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3875
+ # with one of the following [authorization
3876
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
3877
+ #
3878
+ # - `https://www.googleapis.com/auth/chat.customemojis.readonly`
3879
+ # - `https://www.googleapis.com/auth/chat.customemojis`
3650
3880
  #
3651
3881
  # @overload get_custom_emoji(request, options = nil)
3652
3882
  # Pass arguments to `get_custom_emoji` via a request object, either of type
@@ -3747,7 +3977,12 @@ module Google
3747
3977
  # permissions](https://support.google.com/a/answer/12850085).
3748
3978
  #
3749
3979
  # Requires [user
3750
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
3980
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3981
+ # with one of the following [authorization
3982
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
3983
+ #
3984
+ # - `https://www.googleapis.com/auth/chat.customemojis.readonly`
3985
+ # - `https://www.googleapis.com/auth/chat.customemojis`
3751
3986
  #
3752
3987
  # @overload list_custom_emojis(request, options = nil)
3753
3988
  # Pass arguments to `list_custom_emojis` via a request object, either of type
@@ -3870,7 +4105,11 @@ module Google
3870
4105
  # permissions](https://support.google.com/a/answer/12850085).
3871
4106
  #
3872
4107
  # Requires [user
3873
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
4108
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4109
+ # with the [authorization
4110
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
4111
+ #
4112
+ # - `https://www.googleapis.com/auth/chat.customemojis`
3874
4113
  #
3875
4114
  # @overload delete_custom_emoji(request, options = nil)
3876
4115
  # Pass arguments to `delete_custom_emoji` via a request object, either of type
@@ -3967,7 +4206,12 @@ module Google
3967
4206
  # state](https://developers.google.com/workspace/chat/get-space-read-state).
3968
4207
  #
3969
4208
  # Requires [user
3970
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
4209
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4210
+ # with one of the following [authorization
4211
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
4212
+ #
4213
+ # - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
4214
+ # - `https://www.googleapis.com/auth/chat.users.readstate`
3971
4215
  #
3972
4216
  # @overload get_space_read_state(request, options = nil)
3973
4217
  # Pass arguments to `get_space_read_state` via a request object, either of type
@@ -4071,7 +4315,11 @@ module Google
4071
4315
  # state](https://developers.google.com/workspace/chat/update-space-read-state).
4072
4316
  #
4073
4317
  # Requires [user
4074
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
4318
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4319
+ # with the [authorization
4320
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
4321
+ #
4322
+ # - `https://www.googleapis.com/auth/chat.users.readstate`
4075
4323
  #
4076
4324
  # @overload update_space_read_state(request, options = nil)
4077
4325
  # Pass arguments to `update_space_read_state` via a request object, either of type
@@ -4190,7 +4438,12 @@ module Google
4190
4438
  # state](https://developers.google.com/workspace/chat/get-thread-read-state).
4191
4439
  #
4192
4440
  # Requires [user
4193
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
4441
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4442
+ # with one of the following [authorization
4443
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
4444
+ #
4445
+ # - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
4446
+ # - `https://www.googleapis.com/auth/chat.users.readstate`
4194
4447
  #
4195
4448
  # @overload get_thread_read_state(request, options = nil)
4196
4449
  # Pass arguments to `get_thread_read_state` via a request object, either of type
@@ -4301,7 +4554,20 @@ module Google
4301
4554
  # object of the Space event data for this request.
4302
4555
  #
4303
4556
  # Requires [user
4304
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
4557
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4558
+ # with an [authorization
4559
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
4560
+ # appropriate for reading the requested data:
4561
+ #
4562
+ # - `https://www.googleapis.com/auth/chat.spaces.readonly`
4563
+ # - `https://www.googleapis.com/auth/chat.spaces`
4564
+ # - `https://www.googleapis.com/auth/chat.messages.readonly`
4565
+ # - `https://www.googleapis.com/auth/chat.messages`
4566
+ # - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
4567
+ # - `https://www.googleapis.com/auth/chat.messages.reactions`
4568
+ # - `https://www.googleapis.com/auth/chat.memberships.readonly`
4569
+ # - `https://www.googleapis.com/auth/chat.memberships`
4570
+ #
4305
4571
  # To get an event, the authenticated user must be a member of the space.
4306
4572
  #
4307
4573
  # For an example, see [Get details about an
@@ -4402,7 +4668,20 @@ module Google
4402
4668
  # `Membership` resource.
4403
4669
  #
4404
4670
  # Requires [user
4405
- # 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 an [authorization
4673
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
4674
+ # appropriate for reading the requested data:
4675
+ #
4676
+ # - `https://www.googleapis.com/auth/chat.spaces.readonly`
4677
+ # - `https://www.googleapis.com/auth/chat.spaces`
4678
+ # - `https://www.googleapis.com/auth/chat.messages.readonly`
4679
+ # - `https://www.googleapis.com/auth/chat.messages`
4680
+ # - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
4681
+ # - `https://www.googleapis.com/auth/chat.messages.reactions`
4682
+ # - `https://www.googleapis.com/auth/chat.memberships.readonly`
4683
+ # - `https://www.googleapis.com/auth/chat.memberships`
4684
+ #
4406
4685
  # To list events, the authenticated user must be a member of the space.
4407
4686
  #
4408
4687
  # For an example, see [List events from a Google Chat
@@ -4571,7 +4850,11 @@ module Google
4571
4850
  # setting](https://developers.google.com/workspace/chat/get-space-notification-setting).
4572
4851
  #
4573
4852
  # Requires [user
4574
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
4853
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4854
+ # with the [authorization
4855
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
4856
+ #
4857
+ # - `https://www.googleapis.com/auth/chat.users.spacesettings`
4575
4858
  #
4576
4859
  # @overload get_space_notification_setting(request, options = nil)
4577
4860
  # Pass arguments to `get_space_notification_setting` via a request object, either of type
@@ -4666,7 +4949,11 @@ module Google
4666
4949
  # setting](https://developers.google.com/workspace/chat/update-space-notification-setting).
4667
4950
  #
4668
4951
  # Requires [user
4669
- # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
4952
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
4953
+ # with the [authorization
4954
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
4955
+ #
4956
+ # - `https://www.googleapis.com/auth/chat.users.spacesettings`
4670
4957
  #
4671
4958
  # @overload update_space_notification_setting(request, options = nil)
4672
4959
  # Pass arguments to `update_space_notification_setting` via a request object, either of type