google-apps-chat-v1 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/apps/chat/v1/chat_service/client.rb +121 -57
- data/lib/google/apps/chat/v1/chat_service/rest/client.rb +121 -57
- data/lib/google/apps/chat/v1/version.rb +1 -1
- data/lib/google/chat/v1/action_status_pb.rb +1 -1
- data/lib/google/chat/v1/annotation_pb.rb +2 -1
- data/lib/google/chat/v1/attachment_pb.rb +1 -1
- data/lib/google/chat/v1/chat_service_pb.rb +1 -1
- data/lib/google/chat/v1/chat_service_services_pb.rb +50 -19
- data/lib/google/chat/v1/contextual_addon_pb.rb +1 -1
- data/lib/google/chat/v1/deletion_metadata_pb.rb +1 -1
- data/lib/google/chat/v1/group_pb.rb +1 -1
- data/lib/google/chat/v1/history_state_pb.rb +1 -1
- data/lib/google/chat/v1/matched_url_pb.rb +1 -1
- data/lib/google/chat/v1/membership_pb.rb +1 -1
- data/lib/google/chat/v1/message_pb.rb +1 -1
- data/lib/google/chat/v1/reaction_pb.rb +1 -1
- data/lib/google/chat/v1/slash_command_pb.rb +1 -1
- data/lib/google/chat/v1/space_pb.rb +1 -1
- data/lib/google/chat/v1/space_read_state_pb.rb +1 -1
- data/lib/google/chat/v1/space_setup_pb.rb +1 -1
- data/lib/google/chat/v1/thread_read_state_pb.rb +1 -1
- data/lib/google/chat/v1/user_pb.rb +1 -1
- data/lib/google/chat/v1/widgets_pb.rb +1 -1
- data/proto_docs/google/chat/v1/membership.rb +3 -4
- data/proto_docs/google/chat/v1/reaction.rb +2 -2
- data/proto_docs/google/chat/v1/space.rb +5 -6
- data/proto_docs/google/chat/v1/space_setup.rb +14 -10
- 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: 23faf0fbefeb7f44a5fba6d51a6371567c7827b21defcc1d3c4c71793d569e83
|
4
|
+
data.tar.gz: dd5d816e2af03d322fc242adc747a451003de933de9182d39aff485ef2338fae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86b0dee8653233f4e3f751ec2de7fec903e8686422b9185de7725d4319db555739ac5056e6ae90f72d64d8be053bdd15cbe31cf8300e1b4a5699cf97e4ad50da
|
7
|
+
data.tar.gz: b8ddcca37979e8b189ad49a99552816901779f1a5b0dce66eb02dc6d83a40f712765c45db91c7de9cbeaa8cb6e0e94ef1143d46a35882b07d63c5fb616780427
|
@@ -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
|
|
@@ -292,7 +295,8 @@ module Google
|
|
292
295
|
# Service calls
|
293
296
|
|
294
297
|
##
|
295
|
-
# Creates a message in a Google Chat space.
|
298
|
+
# Creates a message in a Google Chat space. The maximum message size,
|
299
|
+
# including text and cards, is 32,000 bytes. For an example, see [Send a
|
296
300
|
# message](https://developers.google.com/workspace/chat/create-messages).
|
297
301
|
#
|
298
302
|
# Calling this method requires
|
@@ -391,10 +395,11 @@ module Google
|
|
391
395
|
# Customize the options with defaults
|
392
396
|
metadata = @config.rpcs.create_message.metadata.to_h
|
393
397
|
|
394
|
-
# Set x-goog-api-client
|
398
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
395
399
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
396
400
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
397
401
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
402
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
398
403
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
399
404
|
|
400
405
|
header_params = {}
|
@@ -557,10 +562,11 @@ module Google
|
|
557
562
|
# Customize the options with defaults
|
558
563
|
metadata = @config.rpcs.list_messages.metadata.to_h
|
559
564
|
|
560
|
-
# Set x-goog-api-client
|
565
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
561
566
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
562
567
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
563
568
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
569
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
564
570
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
565
571
|
|
566
572
|
header_params = {}
|
@@ -734,10 +740,11 @@ module Google
|
|
734
740
|
# Customize the options with defaults
|
735
741
|
metadata = @config.rpcs.list_memberships.metadata.to_h
|
736
742
|
|
737
|
-
# Set x-goog-api-client
|
743
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
738
744
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
739
745
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
740
746
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
747
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
741
748
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
742
749
|
|
743
750
|
header_params = {}
|
@@ -796,8 +803,9 @@ module Google
|
|
796
803
|
# @param name [::String]
|
797
804
|
# Required. Resource name of the membership to retrieve.
|
798
805
|
#
|
799
|
-
# To get the app's own membership
|
800
|
-
#
|
806
|
+
# To get the app's own membership [by using user
|
807
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
|
808
|
+
# you can optionally use `spaces/{space}/members/app`.
|
801
809
|
#
|
802
810
|
# Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`
|
803
811
|
#
|
@@ -841,10 +849,11 @@ module Google
|
|
841
849
|
# Customize the options with defaults
|
842
850
|
metadata = @config.rpcs.get_membership.metadata.to_h
|
843
851
|
|
844
|
-
# Set x-goog-api-client
|
852
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
845
853
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
846
854
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
847
855
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
856
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
848
857
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
849
858
|
|
850
859
|
header_params = {}
|
@@ -945,10 +954,11 @@ module Google
|
|
945
954
|
# Customize the options with defaults
|
946
955
|
metadata = @config.rpcs.get_message.metadata.to_h
|
947
956
|
|
948
|
-
# Set x-goog-api-client
|
957
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
949
958
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
950
959
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
951
960
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
961
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
952
962
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
953
963
|
|
954
964
|
header_params = {}
|
@@ -1068,10 +1078,11 @@ module Google
|
|
1068
1078
|
# Customize the options with defaults
|
1069
1079
|
metadata = @config.rpcs.update_message.metadata.to_h
|
1070
1080
|
|
1071
|
-
# Set x-goog-api-client
|
1081
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1072
1082
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1073
1083
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1074
1084
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1085
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1075
1086
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1076
1087
|
|
1077
1088
|
header_params = {}
|
@@ -1180,10 +1191,11 @@ module Google
|
|
1180
1191
|
# Customize the options with defaults
|
1181
1192
|
metadata = @config.rpcs.delete_message.metadata.to_h
|
1182
1193
|
|
1183
|
-
# Set x-goog-api-client
|
1194
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1184
1195
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1185
1196
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1186
1197
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1198
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1187
1199
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1188
1200
|
|
1189
1201
|
header_params = {}
|
@@ -1273,10 +1285,11 @@ module Google
|
|
1273
1285
|
# Customize the options with defaults
|
1274
1286
|
metadata = @config.rpcs.get_attachment.metadata.to_h
|
1275
1287
|
|
1276
|
-
# Set x-goog-api-client
|
1288
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1277
1289
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1278
1290
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1279
1291
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1292
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1280
1293
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1281
1294
|
|
1282
1295
|
header_params = {}
|
@@ -1369,10 +1382,11 @@ module Google
|
|
1369
1382
|
# Customize the options with defaults
|
1370
1383
|
metadata = @config.rpcs.upload_attachment.metadata.to_h
|
1371
1384
|
|
1372
|
-
# Set x-goog-api-client
|
1385
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1373
1386
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1374
1387
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1375
1388
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1389
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1376
1390
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1377
1391
|
|
1378
1392
|
header_params = {}
|
@@ -1506,10 +1520,11 @@ module Google
|
|
1506
1520
|
# Customize the options with defaults
|
1507
1521
|
metadata = @config.rpcs.list_spaces.metadata.to_h
|
1508
1522
|
|
1509
|
-
# Set x-goog-api-client
|
1523
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1510
1524
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1511
1525
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1512
1526
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1527
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1513
1528
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1514
1529
|
|
1515
1530
|
options.apply_defaults timeout: @config.rpcs.list_spaces.timeout,
|
@@ -1596,10 +1611,11 @@ module Google
|
|
1596
1611
|
# Customize the options with defaults
|
1597
1612
|
metadata = @config.rpcs.get_space.metadata.to_h
|
1598
1613
|
|
1599
|
-
# Set x-goog-api-client
|
1614
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1600
1615
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1601
1616
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1602
1617
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1618
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1603
1619
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1604
1620
|
|
1605
1621
|
header_params = {}
|
@@ -1705,10 +1721,11 @@ module Google
|
|
1705
1721
|
# Customize the options with defaults
|
1706
1722
|
metadata = @config.rpcs.create_space.metadata.to_h
|
1707
1723
|
|
1708
|
-
# Set x-goog-api-client
|
1724
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1709
1725
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1710
1726
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1711
1727
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1728
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1712
1729
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1713
1730
|
|
1714
1731
|
options.apply_defaults timeout: @config.rpcs.create_space.timeout,
|
@@ -1735,17 +1752,28 @@ module Google
|
|
1735
1752
|
# members](https://developers.google.com/workspace/chat/set-up-spaces).
|
1736
1753
|
#
|
1737
1754
|
# To specify the human members to add, add memberships with the appropriate
|
1738
|
-
# `member.name
|
1739
|
-
# `
|
1740
|
-
#
|
1741
|
-
# the
|
1742
|
-
#
|
1743
|
-
#
|
1744
|
-
#
|
1745
|
-
#
|
1746
|
-
#
|
1747
|
-
#
|
1748
|
-
#
|
1755
|
+
# `membership.member.name`. To add a human user, use `users/{user}`, where
|
1756
|
+
# `{user}` can be the email address for the user. For users in the same
|
1757
|
+
# Workspace organization `{user}` can also be the `id` for the person from
|
1758
|
+
# the People API, or the `id` for the user in the Directory API. For example,
|
1759
|
+
# if the People API Person profile ID for `user@example.com` is `123456789`,
|
1760
|
+
# you can add the user to the space by setting the `membership.member.name`
|
1761
|
+
# to `users/user@example.com` or `users/123456789`.
|
1762
|
+
#
|
1763
|
+
# To specify the Google groups to add, add memberships with the
|
1764
|
+
# appropriate `membership.group_member.name`. To add or invite a Google
|
1765
|
+
# group, use `groups/{group}`, where `{group}` is the `id` for the group from
|
1766
|
+
# the Cloud Identity Groups API. For example, you can use [Cloud Identity
|
1767
|
+
# Groups lookup
|
1768
|
+
# API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
|
1769
|
+
# to retrieve the ID `123456789` for group email `group@example.com`, then
|
1770
|
+
# you can add the group to the space by setting the
|
1771
|
+
# `membership.group_member.name` to `groups/123456789`. Group email is not
|
1772
|
+
# supported, and Google groups can only be added as members in named spaces.
|
1773
|
+
#
|
1774
|
+
# For a named space or group chat, if the caller blocks, or is blocked
|
1775
|
+
# by some members, or doesn't have permission to add some members, then
|
1776
|
+
# those members aren't added to the created space.
|
1749
1777
|
#
|
1750
1778
|
# To create a direct message (DM) between the calling user and another human
|
1751
1779
|
# user, specify exactly one membership to represent the human user. If
|
@@ -1817,19 +1845,23 @@ module Google
|
|
1817
1845
|
# Specifying an existing request ID from the same Chat app with a different
|
1818
1846
|
# authenticated user returns an error.
|
1819
1847
|
# @param memberships [::Array<::Google::Apps::Chat::V1::Membership, ::Hash>]
|
1820
|
-
# Optional. The Google Chat users to invite to join the space. Omit
|
1821
|
-
# calling user, as they are added automatically.
|
1848
|
+
# Optional. The Google Chat users or groups to invite to join the space. Omit
|
1849
|
+
# the calling user, as they are added automatically.
|
1822
1850
|
#
|
1823
1851
|
# The set currently allows up to 20 memberships (in addition to the caller).
|
1824
1852
|
#
|
1825
|
-
#
|
1826
|
-
# (format: `users/{user}`) and `type` set to
|
1827
|
-
# add human users when setting up a space
|
1828
|
-
# for direct message setup with the
|
1829
|
-
# using the user's email as an alias
|
1830
|
-
# can be `users/example@gmail.com`.
|
1831
|
-
#
|
1832
|
-
# `{user}`.
|
1853
|
+
# For human membership, the `Membership.member` field must contain a `user`
|
1854
|
+
# with `name` populated (format: `users/{user}`) and `type` set to
|
1855
|
+
# `User.Type.HUMAN`. You can only add human users when setting up a space
|
1856
|
+
# (adding Chat apps is only supported for direct message setup with the
|
1857
|
+
# calling app). You can also add members using the user's email as an alias
|
1858
|
+
# for \\{user}. For example, the `user.name` can be `users/example@gmail.com`.
|
1859
|
+
# To invite Gmail users or users from external Google Workspace domains,
|
1860
|
+
# user's email must be used for `{user}`.
|
1861
|
+
#
|
1862
|
+
# For Google group membership, the `Membership.group_member` field must
|
1863
|
+
# contain a `group` with `name` populated (format `groups/{group}`). You
|
1864
|
+
# can only add Google groups when setting `Space.spaceType` to `SPACE`.
|
1833
1865
|
#
|
1834
1866
|
# Optional when setting `Space.spaceType` to `SPACE`.
|
1835
1867
|
#
|
@@ -1877,10 +1909,11 @@ module Google
|
|
1877
1909
|
# Customize the options with defaults
|
1878
1910
|
metadata = @config.rpcs.set_up_space.metadata.to_h
|
1879
1911
|
|
1880
|
-
# Set x-goog-api-client
|
1912
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1881
1913
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1882
1914
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1883
1915
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
1916
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1884
1917
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1885
1918
|
|
1886
1919
|
options.apply_defaults timeout: @config.rpcs.set_up_space.timeout,
|
@@ -2001,10 +2034,11 @@ module Google
|
|
2001
2034
|
# Customize the options with defaults
|
2002
2035
|
metadata = @config.rpcs.update_space.metadata.to_h
|
2003
2036
|
|
2004
|
-
# Set x-goog-api-client
|
2037
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2005
2038
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2006
2039
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2007
2040
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2041
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2008
2042
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2009
2043
|
|
2010
2044
|
header_params = {}
|
@@ -2095,10 +2129,11 @@ module Google
|
|
2095
2129
|
# Customize the options with defaults
|
2096
2130
|
metadata = @config.rpcs.delete_space.metadata.to_h
|
2097
2131
|
|
2098
|
-
# Set x-goog-api-client
|
2132
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2099
2133
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2100
2134
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2101
2135
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2136
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2102
2137
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2103
2138
|
|
2104
2139
|
header_params = {}
|
@@ -2187,10 +2222,11 @@ module Google
|
|
2187
2222
|
# Customize the options with defaults
|
2188
2223
|
metadata = @config.rpcs.complete_import_space.metadata.to_h
|
2189
2224
|
|
2190
|
-
# Set x-goog-api-client
|
2225
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2191
2226
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2192
2227
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2193
2228
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2229
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2194
2230
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2195
2231
|
|
2196
2232
|
header_params = {}
|
@@ -2302,10 +2338,11 @@ module Google
|
|
2302
2338
|
# Customize the options with defaults
|
2303
2339
|
metadata = @config.rpcs.find_direct_message.metadata.to_h
|
2304
2340
|
|
2305
|
-
# Set x-goog-api-client
|
2341
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2306
2342
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2307
2343
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2308
2344
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2345
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2309
2346
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2310
2347
|
|
2311
2348
|
options.apply_defaults timeout: @config.rpcs.find_direct_message.timeout,
|
@@ -2335,8 +2372,9 @@ module Google
|
|
2335
2372
|
# directly to the specified space. Requires [user
|
2336
2373
|
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
2337
2374
|
#
|
2338
|
-
# To specify the member to add, set the `membership.member.name`
|
2339
|
-
# `
|
2375
|
+
# To specify the member to add, set the `membership.member.name` for the
|
2376
|
+
# human or app member, or set the `membership.group_member.name` for the
|
2377
|
+
# group member.
|
2340
2378
|
#
|
2341
2379
|
# - To add the calling app to a space or a direct message between two human
|
2342
2380
|
# users, use `users/app`. Unable to add other
|
@@ -2350,6 +2388,15 @@ module Google
|
|
2350
2388
|
# the space by setting the `membership.member.name` to
|
2351
2389
|
# `users/user@example.com` or `users/123456789`.
|
2352
2390
|
#
|
2391
|
+
# - To add or invite a Google group in a named space, use
|
2392
|
+
# `groups/{group}`, where `{group}` is the `id` for the group from the Cloud
|
2393
|
+
# Identity Groups API. For example, you can use [Cloud Identity Groups lookup
|
2394
|
+
# API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
|
2395
|
+
# to retrieve the ID `123456789` for group email `group@example.com`, then
|
2396
|
+
# you can add or invite the group to a named space by setting the
|
2397
|
+
# `membership.group_member.name` to `groups/123456789`. Group email is not
|
2398
|
+
# supported, and Google groups can only be added as members in named spaces.
|
2399
|
+
#
|
2353
2400
|
# @overload create_membership(request, options = nil)
|
2354
2401
|
# Pass arguments to `create_membership` via a request object, either of type
|
2355
2402
|
# {::Google::Apps::Chat::V1::CreateMembershipRequest} or an equivalent Hash.
|
@@ -2422,10 +2469,11 @@ module Google
|
|
2422
2469
|
# Customize the options with defaults
|
2423
2470
|
metadata = @config.rpcs.create_membership.metadata.to_h
|
2424
2471
|
|
2425
|
-
# Set x-goog-api-client
|
2472
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2426
2473
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2427
2474
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2428
2475
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2476
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2429
2477
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2430
2478
|
|
2431
2479
|
header_params = {}
|
@@ -2453,8 +2501,11 @@ module Google
|
|
2453
2501
|
end
|
2454
2502
|
|
2455
2503
|
##
|
2456
|
-
# Updates a membership.
|
2457
|
-
#
|
2504
|
+
# Updates a membership. For an example, see [Update a user's membership in
|
2505
|
+
# a space](https://developers.google.com/workspace/chat/update-members).
|
2506
|
+
#
|
2507
|
+
# Requires [user
|
2508
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
2458
2509
|
#
|
2459
2510
|
# @overload update_membership(request, options = nil)
|
2460
2511
|
# Pass arguments to `update_membership` via a request object, either of type
|
@@ -2516,10 +2567,11 @@ module Google
|
|
2516
2567
|
# Customize the options with defaults
|
2517
2568
|
metadata = @config.rpcs.update_membership.metadata.to_h
|
2518
2569
|
|
2519
|
-
# Set x-goog-api-client
|
2570
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2520
2571
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2521
2572
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2522
2573
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2574
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2523
2575
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2524
2576
|
|
2525
2577
|
header_params = {}
|
@@ -2619,10 +2671,11 @@ module Google
|
|
2619
2671
|
# Customize the options with defaults
|
2620
2672
|
metadata = @config.rpcs.delete_membership.metadata.to_h
|
2621
2673
|
|
2622
|
-
# Set x-goog-api-client
|
2674
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2623
2675
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2624
2676
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2625
2677
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2678
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2626
2679
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2627
2680
|
|
2628
2681
|
header_params = {}
|
@@ -2713,10 +2766,11 @@ module Google
|
|
2713
2766
|
# Customize the options with defaults
|
2714
2767
|
metadata = @config.rpcs.create_reaction.metadata.to_h
|
2715
2768
|
|
2716
|
-
# Set x-goog-api-client
|
2769
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2717
2770
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2718
2771
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2719
2772
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2773
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2720
2774
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2721
2775
|
|
2722
2776
|
header_params = {}
|
@@ -2865,10 +2919,11 @@ module Google
|
|
2865
2919
|
# Customize the options with defaults
|
2866
2920
|
metadata = @config.rpcs.list_reactions.metadata.to_h
|
2867
2921
|
|
2868
|
-
# Set x-goog-api-client
|
2922
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2869
2923
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2870
2924
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2871
2925
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
2926
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2872
2927
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2873
2928
|
|
2874
2929
|
header_params = {}
|
@@ -2958,10 +3013,11 @@ module Google
|
|
2958
3013
|
# Customize the options with defaults
|
2959
3014
|
metadata = @config.rpcs.delete_reaction.metadata.to_h
|
2960
3015
|
|
2961
|
-
# Set x-goog-api-client
|
3016
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2962
3017
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2963
3018
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2964
3019
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
3020
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2965
3021
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2966
3022
|
|
2967
3023
|
header_params = {}
|
@@ -2990,7 +3046,9 @@ module Google
|
|
2990
3046
|
|
2991
3047
|
##
|
2992
3048
|
# Returns details about a user's read state within a space, used to identify
|
2993
|
-
# read and unread messages.
|
3049
|
+
# read and unread messages. For an example, see [Get details about a user's
|
3050
|
+
# space read
|
3051
|
+
# state](https://developers.google.com/workspace/chat/get-space-read-state).
|
2994
3052
|
#
|
2995
3053
|
# Requires [user
|
2996
3054
|
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
@@ -3061,10 +3119,11 @@ module Google
|
|
3061
3119
|
# Customize the options with defaults
|
3062
3120
|
metadata = @config.rpcs.get_space_read_state.metadata.to_h
|
3063
3121
|
|
3064
|
-
# Set x-goog-api-client
|
3122
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3065
3123
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3066
3124
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3067
3125
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
3126
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3068
3127
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3069
3128
|
|
3070
3129
|
header_params = {}
|
@@ -3093,7 +3152,8 @@ module Google
|
|
3093
3152
|
|
3094
3153
|
##
|
3095
3154
|
# Updates a user's read state within a space, used to identify read and
|
3096
|
-
# unread messages.
|
3155
|
+
# unread messages. For an example, see [Update a user's space read
|
3156
|
+
# state](https://developers.google.com/workspace/chat/update-space-read-state).
|
3097
3157
|
#
|
3098
3158
|
# Requires [user
|
3099
3159
|
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
@@ -3178,10 +3238,11 @@ module Google
|
|
3178
3238
|
# Customize the options with defaults
|
3179
3239
|
metadata = @config.rpcs.update_space_read_state.metadata.to_h
|
3180
3240
|
|
3181
|
-
# Set x-goog-api-client
|
3241
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3182
3242
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3183
3243
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3184
3244
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
3245
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3185
3246
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3186
3247
|
|
3187
3248
|
header_params = {}
|
@@ -3210,7 +3271,9 @@ module Google
|
|
3210
3271
|
|
3211
3272
|
##
|
3212
3273
|
# Returns details about a user's read state within a thread, used to identify
|
3213
|
-
# read and unread messages.
|
3274
|
+
# read and unread messages. For an example, see [Get details about a user's
|
3275
|
+
# thread read
|
3276
|
+
# state](https://developers.google.com/workspace/chat/get-thread-read-state).
|
3214
3277
|
#
|
3215
3278
|
# Requires [user
|
3216
3279
|
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
@@ -3282,10 +3345,11 @@ module Google
|
|
3282
3345
|
# Customize the options with defaults
|
3283
3346
|
metadata = @config.rpcs.get_thread_read_state.metadata.to_h
|
3284
3347
|
|
3285
|
-
# Set x-goog-api-client
|
3348
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3286
3349
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3287
3350
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3288
3351
|
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
3352
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3289
3353
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3290
3354
|
|
3291
3355
|
header_params = {}
|