google-apps-chat-v1 0.1.1 → 0.2.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.
- checksums.yaml +4 -4
- data/lib/google/apps/chat/v1/chat_service/client.rb +119 -39
- data/lib/google/apps/chat/v1/chat_service/credentials.rb +5 -0
- data/lib/google/apps/chat/v1/chat_service/rest/client.rb +119 -39
- data/lib/google/apps/chat/v1/version.rb +1 -1
- data/lib/google/chat/v1/chat_service_pb.rb +1 -1
- data/lib/google/chat/v1/chat_service_services_pb.rb +25 -1
- data/lib/google/chat/v1/space_pb.rb +3 -1
- data/proto_docs/google/chat/v1/attachment.rb +2 -2
- data/proto_docs/google/chat/v1/membership.rb +8 -4
- data/proto_docs/google/chat/v1/space.rb +66 -6
- data/proto_docs/google/chat/v1/space_setup.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 877eaa8f938142f7f76400b54a2d444e7064e354b2388a24839961883c45fd38
|
4
|
+
data.tar.gz: acc91917f940187c18df84e4fb35c5fd4cee8ddae1991ed9a42f7f4378ecd0d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92038d4b5cdd579f9a8e8e7fe893b807702cea0953e2cc1e1cea0aa65e254e517eef398773ba03447af625a1d7a588f5ffa5e3445d0481739ec186a4ec8a00d8
|
7
|
+
data.tar.gz: 7fd2e7b15f5be710d7af4baceb486b9fb14e90703856b2a736c8238b971d837574cf530656997a227667471faa466b01d6079858143dde512ae9bab451ad8696
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# integrations on Google Chat Platform.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "chat.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -392,10 +395,11 @@ module Google
|
|
392
395
|
# Customize the options with defaults
|
393
396
|
metadata = @config.rpcs.create_message.metadata.to_h
|
394
397
|
|
395
|
-
# Set x-goog-api-client
|
398
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
396
399
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
397
400
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
398
401
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
402
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
399
403
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
400
404
|
|
401
405
|
header_params = {}
|
@@ -558,10 +562,11 @@ module Google
|
|
558
562
|
# Customize the options with defaults
|
559
563
|
metadata = @config.rpcs.list_messages.metadata.to_h
|
560
564
|
|
561
|
-
# Set x-goog-api-client
|
565
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
562
566
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
563
567
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
564
568
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
569
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
565
570
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
566
571
|
|
567
572
|
header_params = {}
|
@@ -657,16 +662,23 @@ module Google
|
|
657
662
|
#
|
658
663
|
# To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
|
659
664
|
#
|
660
|
-
# To filter by type, set `member.type` to `HUMAN` or `BOT`.
|
665
|
+
# To filter by type, set `member.type` to `HUMAN` or `BOT`. Developer
|
666
|
+
# Preview: You can also filter for `member.type` using the `!=` operator.
|
661
667
|
#
|
662
668
|
# To filter by both role and type, use the `AND` operator. To filter by
|
663
669
|
# either role or type, use the `OR` operator.
|
664
670
|
#
|
671
|
+
# Either `member.type = "HUMAN"` or `member.type != "BOT"` is required
|
672
|
+
# when `use_admin_access` is set to true. Other member type filters will be
|
673
|
+
# rejected.
|
674
|
+
#
|
665
675
|
# For example, the following queries are valid:
|
666
676
|
#
|
667
677
|
# ```
|
668
678
|
# role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
|
669
679
|
# member.type = "HUMAN" AND role = "ROLE_MANAGER"
|
680
|
+
#
|
681
|
+
# member.type != "BOT"
|
670
682
|
# ```
|
671
683
|
#
|
672
684
|
# The following queries are invalid:
|
@@ -676,7 +688,6 @@ module Google
|
|
676
688
|
# role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
|
677
689
|
# ```
|
678
690
|
#
|
679
|
-
#
|
680
691
|
# Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
|
681
692
|
# error.
|
682
693
|
# @param show_groups [::Boolean]
|
@@ -735,10 +746,11 @@ module Google
|
|
735
746
|
# Customize the options with defaults
|
736
747
|
metadata = @config.rpcs.list_memberships.metadata.to_h
|
737
748
|
|
738
|
-
# Set x-goog-api-client
|
749
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
739
750
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
740
751
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
741
752
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
753
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
742
754
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
743
755
|
|
744
756
|
header_params = {}
|
@@ -843,10 +855,11 @@ module Google
|
|
843
855
|
# Customize the options with defaults
|
844
856
|
metadata = @config.rpcs.get_membership.metadata.to_h
|
845
857
|
|
846
|
-
# Set x-goog-api-client
|
858
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
847
859
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
848
860
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
849
861
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
862
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
850
863
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
851
864
|
|
852
865
|
header_params = {}
|
@@ -947,10 +960,11 @@ module Google
|
|
947
960
|
# Customize the options with defaults
|
948
961
|
metadata = @config.rpcs.get_message.metadata.to_h
|
949
962
|
|
950
|
-
# Set x-goog-api-client
|
963
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
951
964
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
952
965
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
953
966
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
967
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
954
968
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
955
969
|
|
956
970
|
header_params = {}
|
@@ -1070,10 +1084,11 @@ module Google
|
|
1070
1084
|
# Customize the options with defaults
|
1071
1085
|
metadata = @config.rpcs.update_message.metadata.to_h
|
1072
1086
|
|
1073
|
-
# Set x-goog-api-client
|
1087
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1074
1088
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1075
1089
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1076
1090
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1091
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1077
1092
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1078
1093
|
|
1079
1094
|
header_params = {}
|
@@ -1182,10 +1197,11 @@ module Google
|
|
1182
1197
|
# Customize the options with defaults
|
1183
1198
|
metadata = @config.rpcs.delete_message.metadata.to_h
|
1184
1199
|
|
1185
|
-
# Set x-goog-api-client
|
1200
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1186
1201
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1187
1202
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1188
1203
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1204
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1189
1205
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1190
1206
|
|
1191
1207
|
header_params = {}
|
@@ -1239,7 +1255,7 @@ module Google
|
|
1239
1255
|
#
|
1240
1256
|
# @param name [::String]
|
1241
1257
|
# Required. Resource name of the attachment, in the form
|
1242
|
-
# `spaces
|
1258
|
+
# `spaces/{space}/messages/{message}/attachments/{attachment}`.
|
1243
1259
|
#
|
1244
1260
|
# @yield [response, operation] Access the result along with the RPC operation
|
1245
1261
|
# @yieldparam response [::Google::Apps::Chat::V1::Attachment]
|
@@ -1275,10 +1291,11 @@ module Google
|
|
1275
1291
|
# Customize the options with defaults
|
1276
1292
|
metadata = @config.rpcs.get_attachment.metadata.to_h
|
1277
1293
|
|
1278
|
-
# Set x-goog-api-client
|
1294
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1279
1295
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1280
1296
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1281
1297
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1298
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1282
1299
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1283
1300
|
|
1284
1301
|
header_params = {}
|
@@ -1371,10 +1388,11 @@ module Google
|
|
1371
1388
|
# Customize the options with defaults
|
1372
1389
|
metadata = @config.rpcs.upload_attachment.metadata.to_h
|
1373
1390
|
|
1374
|
-
# Set x-goog-api-client
|
1391
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1375
1392
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1376
1393
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1377
1394
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1395
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1378
1396
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1379
1397
|
|
1380
1398
|
header_params = {}
|
@@ -1418,6 +1436,10 @@ module Google
|
|
1418
1436
|
# Lists spaces visible to the caller or authenticated user. Group chats
|
1419
1437
|
# and DMs aren't listed until the first message is sent.
|
1420
1438
|
#
|
1439
|
+
# To list all named spaces by Google Workspace organization, use the
|
1440
|
+
# [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
|
1441
|
+
# method using Workspace administrator privileges instead.
|
1442
|
+
#
|
1421
1443
|
# @overload list_spaces(request, options = nil)
|
1422
1444
|
# Pass arguments to `list_spaces` via a request object, either of type
|
1423
1445
|
# {::Google::Apps::Chat::V1::ListSpacesRequest} or an equivalent Hash.
|
@@ -1508,10 +1530,11 @@ module Google
|
|
1508
1530
|
# Customize the options with defaults
|
1509
1531
|
metadata = @config.rpcs.list_spaces.metadata.to_h
|
1510
1532
|
|
1511
|
-
# Set x-goog-api-client
|
1533
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1512
1534
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1513
1535
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1514
1536
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1537
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1515
1538
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1516
1539
|
|
1517
1540
|
options.apply_defaults timeout: @config.rpcs.list_spaces.timeout,
|
@@ -1560,7 +1583,7 @@ module Google
|
|
1560
1583
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1561
1584
|
#
|
1562
1585
|
# @param name [::String]
|
1563
|
-
# Required. Resource name of the space, in the form
|
1586
|
+
# Required. Resource name of the space, in the form `spaces/{space}`.
|
1564
1587
|
#
|
1565
1588
|
# Format: `spaces/{space}`
|
1566
1589
|
#
|
@@ -1598,10 +1621,11 @@ module Google
|
|
1598
1621
|
# Customize the options with defaults
|
1599
1622
|
metadata = @config.rpcs.get_space.metadata.to_h
|
1600
1623
|
|
1601
|
-
# Set x-goog-api-client
|
1624
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1602
1625
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1603
1626
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1604
1627
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1628
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1605
1629
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1606
1630
|
|
1607
1631
|
header_params = {}
|
@@ -1707,10 +1731,11 @@ module Google
|
|
1707
1731
|
# Customize the options with defaults
|
1708
1732
|
metadata = @config.rpcs.create_space.metadata.to_h
|
1709
1733
|
|
1710
|
-
# Set x-goog-api-client
|
1734
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1711
1735
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1712
1736
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1713
1737
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1738
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1714
1739
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1715
1740
|
|
1716
1741
|
options.apply_defaults timeout: @config.rpcs.create_space.timeout,
|
@@ -1745,6 +1770,17 @@ module Google
|
|
1745
1770
|
# you can add the user to the space by setting the `membership.member.name`
|
1746
1771
|
# to `users/user@example.com` or `users/123456789`.
|
1747
1772
|
#
|
1773
|
+
# To specify the Google groups to add, add memberships with the
|
1774
|
+
# appropriate `membership.group_member.name`. To add or invite a Google
|
1775
|
+
# group, use `groups/{group}`, where `{group}` is the `id` for the group from
|
1776
|
+
# the Cloud Identity Groups API. For example, you can use [Cloud Identity
|
1777
|
+
# Groups lookup
|
1778
|
+
# API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
|
1779
|
+
# to retrieve the ID `123456789` for group email `group@example.com`, then
|
1780
|
+
# you can add the group to the space by setting the
|
1781
|
+
# `membership.group_member.name` to `groups/123456789`. Group email is not
|
1782
|
+
# supported, and Google groups can only be added as members in named spaces.
|
1783
|
+
#
|
1748
1784
|
# For a named space or group chat, if the caller blocks, or is blocked
|
1749
1785
|
# by some members, or doesn't have permission to add some members, then
|
1750
1786
|
# those members aren't added to the created space.
|
@@ -1819,8 +1855,8 @@ module Google
|
|
1819
1855
|
# Specifying an existing request ID from the same Chat app with a different
|
1820
1856
|
# authenticated user returns an error.
|
1821
1857
|
# @param memberships [::Array<::Google::Apps::Chat::V1::Membership, ::Hash>]
|
1822
|
-
# Optional. The Google Chat users to invite to join the space. Omit
|
1823
|
-
# calling user, as they are added automatically.
|
1858
|
+
# Optional. The Google Chat users or groups to invite to join the space. Omit
|
1859
|
+
# the calling user, as they are added automatically.
|
1824
1860
|
#
|
1825
1861
|
# The set currently allows up to 20 memberships (in addition to the caller).
|
1826
1862
|
#
|
@@ -1833,6 +1869,10 @@ module Google
|
|
1833
1869
|
# To invite Gmail users or users from external Google Workspace domains,
|
1834
1870
|
# user's email must be used for `{user}`.
|
1835
1871
|
#
|
1872
|
+
# For Google group membership, the `Membership.group_member` field must
|
1873
|
+
# contain a `group` with `name` populated (format `groups/{group}`). You
|
1874
|
+
# can only add Google groups when setting `Space.spaceType` to `SPACE`.
|
1875
|
+
#
|
1836
1876
|
# Optional when setting `Space.spaceType` to `SPACE`.
|
1837
1877
|
#
|
1838
1878
|
# Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at
|
@@ -1879,10 +1919,11 @@ module Google
|
|
1879
1919
|
# Customize the options with defaults
|
1880
1920
|
metadata = @config.rpcs.set_up_space.metadata.to_h
|
1881
1921
|
|
1882
|
-
# Set x-goog-api-client
|
1922
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1883
1923
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1884
1924
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1885
1925
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1926
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1886
1927
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1887
1928
|
|
1888
1929
|
options.apply_defaults timeout: @config.rpcs.set_up_space.timeout,
|
@@ -1954,6 +1995,7 @@ module Google
|
|
1954
1995
|
# the display name is optional if the existing space already has the `SPACE`
|
1955
1996
|
# type. Trying to update the space type in other ways results in an invalid
|
1956
1997
|
# argument error).
|
1998
|
+
# `space_type` is not supported with admin access.
|
1957
1999
|
#
|
1958
2000
|
# - `space_details`
|
1959
2001
|
#
|
@@ -1962,12 +2004,27 @@ module Google
|
|
1962
2004
|
# allows users to change their history
|
1963
2005
|
# setting](https://support.google.com/a/answer/7664184).
|
1964
2006
|
# Warning: mutually exclusive with all other field paths.)
|
1965
|
-
#
|
1966
|
-
#
|
1967
|
-
#
|
1968
|
-
#
|
1969
|
-
#
|
1970
|
-
#
|
2007
|
+
# `space_history_state` is not supported with admin access.
|
2008
|
+
#
|
2009
|
+
# - `access_settings.audience` (Supports changing the [access
|
2010
|
+
# setting](https://support.google.com/chat/answer/11971020) of who can
|
2011
|
+
# discover the space, join the space, and preview the messages in space. If
|
2012
|
+
# no audience is specified in the access setting, the space's access setting
|
2013
|
+
# is updated to private. Warning: mutually exclusive with all other field
|
2014
|
+
# paths.)
|
2015
|
+
# `access_settings.audience` is not supported with admin access.
|
2016
|
+
#
|
2017
|
+
# - Developer Preview: Supports changing the [permission
|
2018
|
+
# settings](https://support.google.com/chat/answer/13340792) of a space,
|
2019
|
+
# supported field paths
|
2020
|
+
# include: `permission_settings.manage_members_and_groups`,
|
2021
|
+
# `permission_settings.modify_space_details`,
|
2022
|
+
# `permission_settings.toggle_history`,
|
2023
|
+
# `permission_settings.use_at_mention_all`,
|
2024
|
+
# `permission_settings.manage_apps`, `permission_settings.manage_webhooks`,
|
2025
|
+
# `permission_settings.reply_messages`
|
2026
|
+
# (Warning: mutually exclusive with all other non-permission settings field
|
2027
|
+
# paths). `permission_settings` is not supported with admin access.
|
1971
2028
|
#
|
1972
2029
|
# @yield [response, operation] Access the result along with the RPC operation
|
1973
2030
|
# @yieldparam response [::Google::Apps::Chat::V1::Space]
|
@@ -2003,10 +2060,11 @@ module Google
|
|
2003
2060
|
# Customize the options with defaults
|
2004
2061
|
metadata = @config.rpcs.update_space.metadata.to_h
|
2005
2062
|
|
2006
|
-
# Set x-goog-api-client
|
2063
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2007
2064
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2008
2065
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2009
2066
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2067
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2010
2068
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2011
2069
|
|
2012
2070
|
header_params = {}
|
@@ -2097,10 +2155,11 @@ module Google
|
|
2097
2155
|
# Customize the options with defaults
|
2098
2156
|
metadata = @config.rpcs.delete_space.metadata.to_h
|
2099
2157
|
|
2100
|
-
# Set x-goog-api-client
|
2158
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2101
2159
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2102
2160
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2103
2161
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2162
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2104
2163
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2105
2164
|
|
2106
2165
|
header_params = {}
|
@@ -2189,10 +2248,11 @@ module Google
|
|
2189
2248
|
# Customize the options with defaults
|
2190
2249
|
metadata = @config.rpcs.complete_import_space.metadata.to_h
|
2191
2250
|
|
2192
|
-
# Set x-goog-api-client
|
2251
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2193
2252
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2194
2253
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2195
2254
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2255
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2196
2256
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2197
2257
|
|
2198
2258
|
header_params = {}
|
@@ -2304,10 +2364,11 @@ module Google
|
|
2304
2364
|
# Customize the options with defaults
|
2305
2365
|
metadata = @config.rpcs.find_direct_message.metadata.to_h
|
2306
2366
|
|
2307
|
-
# Set x-goog-api-client
|
2367
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2308
2368
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2309
2369
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2310
2370
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2371
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2311
2372
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2312
2373
|
|
2313
2374
|
options.apply_defaults timeout: @config.rpcs.find_direct_message.timeout,
|
@@ -2338,7 +2399,8 @@ module Google
|
|
2338
2399
|
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
2339
2400
|
#
|
2340
2401
|
# To specify the member to add, set the `membership.member.name` for the
|
2341
|
-
# human or app member.
|
2402
|
+
# human or app member, or set the `membership.group_member.name` for the
|
2403
|
+
# group member.
|
2342
2404
|
#
|
2343
2405
|
# - To add the calling app to a space or a direct message between two human
|
2344
2406
|
# users, use `users/app`. Unable to add other
|
@@ -2352,6 +2414,15 @@ module Google
|
|
2352
2414
|
# the space by setting the `membership.member.name` to
|
2353
2415
|
# `users/user@example.com` or `users/123456789`.
|
2354
2416
|
#
|
2417
|
+
# - To add or invite a Google group in a named space, use
|
2418
|
+
# `groups/{group}`, where `{group}` is the `id` for the group from the Cloud
|
2419
|
+
# Identity Groups API. For example, you can use [Cloud Identity Groups lookup
|
2420
|
+
# API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
|
2421
|
+
# to retrieve the ID `123456789` for group email `group@example.com`, then
|
2422
|
+
# you can add or invite the group to a named space by setting the
|
2423
|
+
# `membership.group_member.name` to `groups/123456789`. Group email is not
|
2424
|
+
# supported, and Google groups can only be added as members in named spaces.
|
2425
|
+
#
|
2355
2426
|
# @overload create_membership(request, options = nil)
|
2356
2427
|
# Pass arguments to `create_membership` via a request object, either of type
|
2357
2428
|
# {::Google::Apps::Chat::V1::CreateMembershipRequest} or an equivalent Hash.
|
@@ -2424,10 +2495,11 @@ module Google
|
|
2424
2495
|
# Customize the options with defaults
|
2425
2496
|
metadata = @config.rpcs.create_membership.metadata.to_h
|
2426
2497
|
|
2427
|
-
# Set x-goog-api-client
|
2498
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2428
2499
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2429
2500
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2430
2501
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2502
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2431
2503
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2432
2504
|
|
2433
2505
|
header_params = {}
|
@@ -2521,10 +2593,11 @@ module Google
|
|
2521
2593
|
# Customize the options with defaults
|
2522
2594
|
metadata = @config.rpcs.update_membership.metadata.to_h
|
2523
2595
|
|
2524
|
-
# Set x-goog-api-client
|
2596
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2525
2597
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2526
2598
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2527
2599
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2600
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2528
2601
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2529
2602
|
|
2530
2603
|
header_params = {}
|
@@ -2624,10 +2697,11 @@ module Google
|
|
2624
2697
|
# Customize the options with defaults
|
2625
2698
|
metadata = @config.rpcs.delete_membership.metadata.to_h
|
2626
2699
|
|
2627
|
-
# Set x-goog-api-client
|
2700
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2628
2701
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2629
2702
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2630
2703
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2704
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2631
2705
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2632
2706
|
|
2633
2707
|
header_params = {}
|
@@ -2718,10 +2792,11 @@ module Google
|
|
2718
2792
|
# Customize the options with defaults
|
2719
2793
|
metadata = @config.rpcs.create_reaction.metadata.to_h
|
2720
2794
|
|
2721
|
-
# Set x-goog-api-client
|
2795
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2722
2796
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2723
2797
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2724
2798
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2799
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2725
2800
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2726
2801
|
|
2727
2802
|
header_params = {}
|
@@ -2870,10 +2945,11 @@ module Google
|
|
2870
2945
|
# Customize the options with defaults
|
2871
2946
|
metadata = @config.rpcs.list_reactions.metadata.to_h
|
2872
2947
|
|
2873
|
-
# Set x-goog-api-client
|
2948
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2874
2949
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2875
2950
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2876
2951
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2952
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2877
2953
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2878
2954
|
|
2879
2955
|
header_params = {}
|
@@ -2963,10 +3039,11 @@ module Google
|
|
2963
3039
|
# Customize the options with defaults
|
2964
3040
|
metadata = @config.rpcs.delete_reaction.metadata.to_h
|
2965
3041
|
|
2966
|
-
# Set x-goog-api-client
|
3042
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2967
3043
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2968
3044
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2969
3045
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
3046
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2970
3047
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2971
3048
|
|
2972
3049
|
header_params = {}
|
@@ -3068,10 +3145,11 @@ module Google
|
|
3068
3145
|
# Customize the options with defaults
|
3069
3146
|
metadata = @config.rpcs.get_space_read_state.metadata.to_h
|
3070
3147
|
|
3071
|
-
# Set x-goog-api-client
|
3148
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3072
3149
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3073
3150
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3074
3151
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
3152
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3075
3153
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3076
3154
|
|
3077
3155
|
header_params = {}
|
@@ -3186,10 +3264,11 @@ module Google
|
|
3186
3264
|
# Customize the options with defaults
|
3187
3265
|
metadata = @config.rpcs.update_space_read_state.metadata.to_h
|
3188
3266
|
|
3189
|
-
# Set x-goog-api-client
|
3267
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3190
3268
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3191
3269
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3192
3270
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
3271
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3193
3272
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3194
3273
|
|
3195
3274
|
header_params = {}
|
@@ -3292,10 +3371,11 @@ module Google
|
|
3292
3371
|
# Customize the options with defaults
|
3293
3372
|
metadata = @config.rpcs.get_thread_read_state.metadata.to_h
|
3294
3373
|
|
3295
|
-
# Set x-goog-api-client
|
3374
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3296
3375
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3297
3376
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3298
3377
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
3378
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3299
3379
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3300
3380
|
|
3301
3381
|
header_params = {}
|
@@ -26,6 +26,11 @@ module Google
|
|
26
26
|
# Credentials for the ChatService API.
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
28
28
|
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/chat.admin.delete",
|
30
|
+
"https://www.googleapis.com/auth/chat.admin.memberships",
|
31
|
+
"https://www.googleapis.com/auth/chat.admin.memberships.readonly",
|
32
|
+
"https://www.googleapis.com/auth/chat.admin.spaces",
|
33
|
+
"https://www.googleapis.com/auth/chat.admin.spaces.readonly",
|
29
34
|
"https://www.googleapis.com/auth/chat.bot",
|
30
35
|
"https://www.googleapis.com/auth/chat.delete",
|
31
36
|
"https://www.googleapis.com/auth/chat.import",
|