google-apis-chat_v1 0.119.0 → 0.120.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a4eb6fb136035bc53aeb7d017efdf96b17de686e93c01a0a289929abb1a8eeb
|
4
|
+
data.tar.gz: 246d6751998801317526a47515b9f9f8055d1f9110efa22331c8f1232105b43c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5e6065c3d7b1d6157a40f6ca5a03694651c5445ec1837ca3654aaac7a6f71bec6d6edd8c79cbd625ddb061cd16c000e6e711112944f6864c32ac2bfe9629975
|
7
|
+
data.tar.gz: 14c90f7a233dddfde1fc2920ff974366d5dbb29ad2fb686e21f54b7c1269a3572c4841f780408f46cdb1124a820a2974e4d8a2062706ec7e5af854bbbf96b25e
|
data/CHANGELOG.md
CHANGED
@@ -859,10 +859,38 @@ module Google
|
|
859
859
|
end
|
860
860
|
end
|
861
861
|
|
862
|
-
# Represents a custom emoji.
|
862
|
+
# Represents a [custom emoji](https://support.google.com/chat/answer/12800149).
|
863
863
|
class CustomEmoji
|
864
864
|
include Google::Apis::Core::Hashable
|
865
865
|
|
866
|
+
# Optional. Immutable. User-provided name for the custom emoji, which is unique
|
867
|
+
# within the organization. Required when the custom emoji is created, output
|
868
|
+
# only otherwise. Emoji names must start and end with colons, must be lowercase
|
869
|
+
# and can only contain alphanumeric characters, hyphens, and underscores.
|
870
|
+
# Hyphens and underscores should be used to separate words and cannot be used
|
871
|
+
# consecutively. Example: `:valid-emoji-name:`
|
872
|
+
# Corresponds to the JSON property `emojiName`
|
873
|
+
# @return [String]
|
874
|
+
attr_accessor :emoji_name
|
875
|
+
|
876
|
+
# Identifier. The resource name of the custom emoji, assigned by the server.
|
877
|
+
# Format: `customEmojis/`customEmoji``
|
878
|
+
# Corresponds to the JSON property `name`
|
879
|
+
# @return [String]
|
880
|
+
attr_accessor :name
|
881
|
+
|
882
|
+
# Payload data for the custom emoji.
|
883
|
+
# Corresponds to the JSON property `payload`
|
884
|
+
# @return [Google::Apis::ChatV1::CustomEmojiPayload]
|
885
|
+
attr_accessor :payload
|
886
|
+
|
887
|
+
# Output only. A temporary image URL for the custom emoji, valid for at least 10
|
888
|
+
# minutes. Note that this is not populated in the response when the custom emoji
|
889
|
+
# is created.
|
890
|
+
# Corresponds to the JSON property `temporaryImageUri`
|
891
|
+
# @return [String]
|
892
|
+
attr_accessor :temporary_image_uri
|
893
|
+
|
866
894
|
# Output only. Unique key for the custom emoji resource.
|
867
895
|
# Corresponds to the JSON property `uid`
|
868
896
|
# @return [String]
|
@@ -874,6 +902,10 @@ module Google
|
|
874
902
|
|
875
903
|
# Update properties of this object
|
876
904
|
def update!(**args)
|
905
|
+
@emoji_name = args[:emoji_name] if args.key?(:emoji_name)
|
906
|
+
@name = args[:name] if args.key?(:name)
|
907
|
+
@payload = args[:payload] if args.key?(:payload)
|
908
|
+
@temporary_image_uri = args[:temporary_image_uri] if args.key?(:temporary_image_uri)
|
877
909
|
@uid = args[:uid] if args.key?(:uid)
|
878
910
|
end
|
879
911
|
end
|
@@ -882,7 +914,7 @@ module Google
|
|
882
914
|
class CustomEmojiMetadata
|
883
915
|
include Google::Apis::Core::Hashable
|
884
916
|
|
885
|
-
# Represents a custom emoji.
|
917
|
+
# Represents a [custom emoji](https://support.google.com/chat/answer/12800149).
|
886
918
|
# Corresponds to the JSON property `customEmoji`
|
887
919
|
# @return [Google::Apis::ChatV1::CustomEmoji]
|
888
920
|
attr_accessor :custom_emoji
|
@@ -897,6 +929,35 @@ module Google
|
|
897
929
|
end
|
898
930
|
end
|
899
931
|
|
932
|
+
# Payload data for the custom emoji.
|
933
|
+
class CustomEmojiPayload
|
934
|
+
include Google::Apis::Core::Hashable
|
935
|
+
|
936
|
+
# Required. Input only. The image used for the custom emoji. The payload must be
|
937
|
+
# under 256 KB and the dimension of the image must be square and between 64 and
|
938
|
+
# 500 pixels. The restrictions are subject to change.
|
939
|
+
# Corresponds to the JSON property `fileContent`
|
940
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
941
|
+
# @return [String]
|
942
|
+
attr_accessor :file_content
|
943
|
+
|
944
|
+
# Required. Input only. The image file name. Supported file extensions: `.png`, `
|
945
|
+
# .jpg`, `.gif`.
|
946
|
+
# Corresponds to the JSON property `filename`
|
947
|
+
# @return [String]
|
948
|
+
attr_accessor :filename
|
949
|
+
|
950
|
+
def initialize(**args)
|
951
|
+
update!(**args)
|
952
|
+
end
|
953
|
+
|
954
|
+
# Update properties of this object
|
955
|
+
def update!(**args)
|
956
|
+
@file_content = args[:file_content] if args.key?(:file_content)
|
957
|
+
@filename = args[:filename] if args.key?(:filename)
|
958
|
+
end
|
959
|
+
end
|
960
|
+
|
900
961
|
# Date input values.
|
901
962
|
class DateInput
|
902
963
|
include Google::Apis::Core::Hashable
|
@@ -1225,7 +1286,7 @@ module Google
|
|
1225
1286
|
class Emoji
|
1226
1287
|
include Google::Apis::Core::Hashable
|
1227
1288
|
|
1228
|
-
# Represents a custom emoji.
|
1289
|
+
# Represents a [custom emoji](https://support.google.com/chat/answer/12800149).
|
1229
1290
|
# Corresponds to the JSON property `customEmoji`
|
1230
1291
|
# @return [Google::Apis::ChatV1::CustomEmoji]
|
1231
1292
|
attr_accessor :custom_emoji
|
@@ -4026,6 +4087,32 @@ module Google
|
|
4026
4087
|
end
|
4027
4088
|
end
|
4028
4089
|
|
4090
|
+
# A response to list custom emojis.
|
4091
|
+
class ListCustomEmojisResponse
|
4092
|
+
include Google::Apis::Core::Hashable
|
4093
|
+
|
4094
|
+
# Unordered list. List of custom emojis.
|
4095
|
+
# Corresponds to the JSON property `customEmojis`
|
4096
|
+
# @return [Array<Google::Apis::ChatV1::CustomEmoji>]
|
4097
|
+
attr_accessor :custom_emojis
|
4098
|
+
|
4099
|
+
# A token that you can send as `pageToken` to retrieve the next page of results.
|
4100
|
+
# If empty, there are no subsequent pages.
|
4101
|
+
# Corresponds to the JSON property `nextPageToken`
|
4102
|
+
# @return [String]
|
4103
|
+
attr_accessor :next_page_token
|
4104
|
+
|
4105
|
+
def initialize(**args)
|
4106
|
+
update!(**args)
|
4107
|
+
end
|
4108
|
+
|
4109
|
+
# Update properties of this object
|
4110
|
+
def update!(**args)
|
4111
|
+
@custom_emojis = args[:custom_emojis] if args.key?(:custom_emojis)
|
4112
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
4113
|
+
end
|
4114
|
+
end
|
4115
|
+
|
4029
4116
|
# Response to list memberships of the space.
|
4030
4117
|
class ListMembershipsResponse
|
4031
4118
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ChatV1
|
18
18
|
# Version of the google-apis-chat_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.120.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250406"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -166,6 +166,12 @@ module Google
|
|
166
166
|
include Google::Apis::Core::JsonObjectSupport
|
167
167
|
end
|
168
168
|
|
169
|
+
class CustomEmojiPayload
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
169
175
|
class DateInput
|
170
176
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
177
|
|
@@ -532,6 +538,12 @@ module Google
|
|
532
538
|
include Google::Apis::Core::JsonObjectSupport
|
533
539
|
end
|
534
540
|
|
541
|
+
class ListCustomEmojisResponse
|
542
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
543
|
+
|
544
|
+
include Google::Apis::Core::JsonObjectSupport
|
545
|
+
end
|
546
|
+
|
535
547
|
class ListMembershipsResponse
|
536
548
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
537
549
|
|
@@ -1118,6 +1130,11 @@ module Google
|
|
1118
1130
|
class CustomEmoji
|
1119
1131
|
# @private
|
1120
1132
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1133
|
+
property :emoji_name, as: 'emojiName'
|
1134
|
+
property :name, as: 'name'
|
1135
|
+
property :payload, as: 'payload', class: Google::Apis::ChatV1::CustomEmojiPayload, decorator: Google::Apis::ChatV1::CustomEmojiPayload::Representation
|
1136
|
+
|
1137
|
+
property :temporary_image_uri, as: 'temporaryImageUri'
|
1121
1138
|
property :uid, as: 'uid'
|
1122
1139
|
end
|
1123
1140
|
end
|
@@ -1130,6 +1147,14 @@ module Google
|
|
1130
1147
|
end
|
1131
1148
|
end
|
1132
1149
|
|
1150
|
+
class CustomEmojiPayload
|
1151
|
+
# @private
|
1152
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1153
|
+
property :file_content, :base64 => true, as: 'fileContent'
|
1154
|
+
property :filename, as: 'filename'
|
1155
|
+
end
|
1156
|
+
end
|
1157
|
+
|
1133
1158
|
class DateInput
|
1134
1159
|
# @private
|
1135
1160
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1833,6 +1858,15 @@ module Google
|
|
1833
1858
|
end
|
1834
1859
|
end
|
1835
1860
|
|
1861
|
+
class ListCustomEmojisResponse
|
1862
|
+
# @private
|
1863
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1864
|
+
collection :custom_emojis, as: 'customEmojis', class: Google::Apis::ChatV1::CustomEmoji, decorator: Google::Apis::ChatV1::CustomEmoji::Representation
|
1865
|
+
|
1866
|
+
property :next_page_token, as: 'nextPageToken'
|
1867
|
+
end
|
1868
|
+
end
|
1869
|
+
|
1836
1870
|
class ListMembershipsResponse
|
1837
1871
|
# @private
|
1838
1872
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -52,6 +52,176 @@ module Google
|
|
52
52
|
@batch_path = 'batch'
|
53
53
|
end
|
54
54
|
|
55
|
+
# Creates a custom emoji. Custom emojis are only available for Google Workspace
|
56
|
+
# accounts, and the administrator must turn custom emojis on for the
|
57
|
+
# organization. For more information, see [Learn about custom emojis in Google
|
58
|
+
# Chat](https://support.google.com/chat/answer/12800149) and [Manage custom
|
59
|
+
# emoji permissions](https://support.google.com/a/answer/12850085). Requires [
|
60
|
+
# user authentication](https://developers.google.com/workspace/chat/authenticate-
|
61
|
+
# authorize-chat-user).
|
62
|
+
# @param [Google::Apis::ChatV1::CustomEmoji] custom_emoji_object
|
63
|
+
# @param [String] fields
|
64
|
+
# Selector specifying which fields to include in a partial response.
|
65
|
+
# @param [String] quota_user
|
66
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
67
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
68
|
+
# @param [Google::Apis::RequestOptions] options
|
69
|
+
# Request-specific options
|
70
|
+
#
|
71
|
+
# @yield [result, err] Result & error if block supplied
|
72
|
+
# @yieldparam result [Google::Apis::ChatV1::CustomEmoji] parsed result object
|
73
|
+
# @yieldparam err [StandardError] error object if request failed
|
74
|
+
#
|
75
|
+
# @return [Google::Apis::ChatV1::CustomEmoji]
|
76
|
+
#
|
77
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
78
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
79
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
80
|
+
def create_custom_emoji(custom_emoji_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
81
|
+
command = make_simple_command(:post, 'v1/customEmojis', options)
|
82
|
+
command.request_representation = Google::Apis::ChatV1::CustomEmoji::Representation
|
83
|
+
command.request_object = custom_emoji_object
|
84
|
+
command.response_representation = Google::Apis::ChatV1::CustomEmoji::Representation
|
85
|
+
command.response_class = Google::Apis::ChatV1::CustomEmoji
|
86
|
+
command.query['fields'] = fields unless fields.nil?
|
87
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
88
|
+
execute_or_queue_command(command, &block)
|
89
|
+
end
|
90
|
+
|
91
|
+
# Deletes a custom emoji. By default, users can only delete custom emoji they
|
92
|
+
# created. [Emoji managers](https://support.google.com/a/answer/12850085)
|
93
|
+
# assigned by the administrator can delete any custom emoji in the organization.
|
94
|
+
# See [Learn about custom emojis in Google Chat](https://support.google.com/chat/
|
95
|
+
# answer/12800149). Custom emojis are only available for Google Workspace
|
96
|
+
# accounts, and the administrator must turn custom emojis on for the
|
97
|
+
# organization. For more information, see [Learn about custom emojis in Google
|
98
|
+
# Chat](https://support.google.com/chat/answer/12800149) and [Manage custom
|
99
|
+
# emoji permissions](https://support.google.com/a/answer/12850085). Requires [
|
100
|
+
# user authentication](https://developers.google.com/workspace/chat/authenticate-
|
101
|
+
# authorize-chat-user).
|
102
|
+
# @param [String] name
|
103
|
+
# Required. Resource name of the custom emoji to delete. Format: `customEmojis/`
|
104
|
+
# customEmoji`` You can use the emoji name as an alias for ``customEmoji``. For
|
105
|
+
# example, `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji
|
106
|
+
# name for a custom emoji.
|
107
|
+
# @param [String] fields
|
108
|
+
# Selector specifying which fields to include in a partial response.
|
109
|
+
# @param [String] quota_user
|
110
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
111
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
112
|
+
# @param [Google::Apis::RequestOptions] options
|
113
|
+
# Request-specific options
|
114
|
+
#
|
115
|
+
# @yield [result, err] Result & error if block supplied
|
116
|
+
# @yieldparam result [Google::Apis::ChatV1::Empty] parsed result object
|
117
|
+
# @yieldparam err [StandardError] error object if request failed
|
118
|
+
#
|
119
|
+
# @return [Google::Apis::ChatV1::Empty]
|
120
|
+
#
|
121
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
122
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
123
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
124
|
+
def delete_custom_emoji(name, fields: nil, quota_user: nil, options: nil, &block)
|
125
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
126
|
+
command.response_representation = Google::Apis::ChatV1::Empty::Representation
|
127
|
+
command.response_class = Google::Apis::ChatV1::Empty
|
128
|
+
command.params['name'] = name unless name.nil?
|
129
|
+
command.query['fields'] = fields unless fields.nil?
|
130
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
131
|
+
execute_or_queue_command(command, &block)
|
132
|
+
end
|
133
|
+
|
134
|
+
# Returns details about a custom emoji. Custom emojis are only available for
|
135
|
+
# Google Workspace accounts, and the administrator must turn custom emojis on
|
136
|
+
# for the organization. For more information, see [Learn about custom emojis in
|
137
|
+
# Google Chat](https://support.google.com/chat/answer/12800149) and [Manage
|
138
|
+
# custom emoji permissions](https://support.google.com/a/answer/12850085).
|
139
|
+
# Requires [user authentication](https://developers.google.com/workspace/chat/
|
140
|
+
# authenticate-authorize-chat-user).
|
141
|
+
# @param [String] name
|
142
|
+
# Required. Resource name of the custom emoji. Format: `customEmojis/`
|
143
|
+
# customEmoji`` You can use the emoji name as an alias for ``customEmoji``. For
|
144
|
+
# example, `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji
|
145
|
+
# name for a custom emoji.
|
146
|
+
# @param [String] fields
|
147
|
+
# Selector specifying which fields to include in a partial response.
|
148
|
+
# @param [String] quota_user
|
149
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
150
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
151
|
+
# @param [Google::Apis::RequestOptions] options
|
152
|
+
# Request-specific options
|
153
|
+
#
|
154
|
+
# @yield [result, err] Result & error if block supplied
|
155
|
+
# @yieldparam result [Google::Apis::ChatV1::CustomEmoji] parsed result object
|
156
|
+
# @yieldparam err [StandardError] error object if request failed
|
157
|
+
#
|
158
|
+
# @return [Google::Apis::ChatV1::CustomEmoji]
|
159
|
+
#
|
160
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
161
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
162
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
163
|
+
def get_custom_emoji(name, fields: nil, quota_user: nil, options: nil, &block)
|
164
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
165
|
+
command.response_representation = Google::Apis::ChatV1::CustomEmoji::Representation
|
166
|
+
command.response_class = Google::Apis::ChatV1::CustomEmoji
|
167
|
+
command.params['name'] = name unless name.nil?
|
168
|
+
command.query['fields'] = fields unless fields.nil?
|
169
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
170
|
+
execute_or_queue_command(command, &block)
|
171
|
+
end
|
172
|
+
|
173
|
+
# Lists custom emojis visible to the authenticated user. Custom emojis are only
|
174
|
+
# available for Google Workspace accounts, and the administrator must turn
|
175
|
+
# custom emojis on for the organization. For more information, see [Learn about
|
176
|
+
# custom emojis in Google Chat](https://support.google.com/chat/answer/12800149)
|
177
|
+
# and [Manage custom emoji permissions](https://support.google.com/a/answer/
|
178
|
+
# 12850085). Requires [user authentication](https://developers.google.com/
|
179
|
+
# workspace/chat/authenticate-authorize-chat-user).
|
180
|
+
# @param [String] filter
|
181
|
+
# Optional. A query filter. Supports filtering by creator. To filter by creator,
|
182
|
+
# you must specify a valid value. Currently only `creator("users/me")` and `NOT
|
183
|
+
# creator("users/me")` are accepted to filter custom emojis by whether they were
|
184
|
+
# created by the calling user or not. For example, the following query returns
|
185
|
+
# custom emojis created by the caller: ``` creator("users/me") ``` Invalid
|
186
|
+
# queries are rejected with an `INVALID_ARGUMENT` error.
|
187
|
+
# @param [Fixnum] page_size
|
188
|
+
# Optional. The maximum number of custom emojis returned. The service can return
|
189
|
+
# fewer custom emojis than this value. If unspecified, the default value is 25.
|
190
|
+
# The maximum value is 200; values above 200 are changed to 200.
|
191
|
+
# @param [String] page_token
|
192
|
+
# Optional. (If resuming from a previous query.) A page token received from a
|
193
|
+
# previous list custom emoji call. Provide this to retrieve the subsequent page.
|
194
|
+
# When paginating, the filter value should match the call that provided the page
|
195
|
+
# token. Passing a different value might lead to unexpected results.
|
196
|
+
# @param [String] fields
|
197
|
+
# Selector specifying which fields to include in a partial response.
|
198
|
+
# @param [String] quota_user
|
199
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
200
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
201
|
+
# @param [Google::Apis::RequestOptions] options
|
202
|
+
# Request-specific options
|
203
|
+
#
|
204
|
+
# @yield [result, err] Result & error if block supplied
|
205
|
+
# @yieldparam result [Google::Apis::ChatV1::ListCustomEmojisResponse] parsed result object
|
206
|
+
# @yieldparam err [StandardError] error object if request failed
|
207
|
+
#
|
208
|
+
# @return [Google::Apis::ChatV1::ListCustomEmojisResponse]
|
209
|
+
#
|
210
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
211
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
212
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
213
|
+
def list_custom_emojis(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
214
|
+
command = make_simple_command(:get, 'v1/customEmojis', options)
|
215
|
+
command.response_representation = Google::Apis::ChatV1::ListCustomEmojisResponse::Representation
|
216
|
+
command.response_class = Google::Apis::ChatV1::ListCustomEmojisResponse
|
217
|
+
command.query['filter'] = filter unless filter.nil?
|
218
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
219
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
220
|
+
command.query['fields'] = fields unless fields.nil?
|
221
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
222
|
+
execute_or_queue_command(command, &block)
|
223
|
+
end
|
224
|
+
|
55
225
|
# Downloads media. Download is supported on the URI `/v1/media/`+name`?alt=media`
|
56
226
|
# .
|
57
227
|
# @param [String] resource_name
|
@@ -774,17 +944,23 @@ module Google
|
|
774
944
|
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
775
945
|
# authorize-chat-user) You can authenticate and authorize this method with
|
776
946
|
# administrator privileges by setting the `use_admin_access` field in the
|
777
|
-
# request.
|
947
|
+
# request. To delete memberships for space managers, the requester must be a
|
948
|
+
# space manager. If you're using [app authentication](https://developers.google.
|
949
|
+
# com/workspace/chat/authenticate-authorize-chat-app) the application must be
|
950
|
+
# the space creator.
|
778
951
|
# @param [String] name
|
779
952
|
# Required. Resource name of the membership to delete. Chat apps can delete
|
780
953
|
# human users' or their own memberships. Chat apps can't delete other apps'
|
781
954
|
# memberships. When deleting a human membership, requires the `chat.memberships`
|
782
|
-
# scope
|
783
|
-
#
|
784
|
-
#
|
785
|
-
#
|
786
|
-
#
|
787
|
-
#
|
955
|
+
# scope with [user authentication](https://developers.google.com/workspace/chat/
|
956
|
+
# authenticate-authorize-chat-user) or the `chat.memberships.app` scope with [
|
957
|
+
# app authentication](https://developers.google.com/workspace/chat/authenticate-
|
958
|
+
# authorize-chat-app) and the `spaces/`space`/members/`member`` format. You can
|
959
|
+
# use the email as an alias for ``member``. For example, `spaces/`space`/members/
|
960
|
+
# example@gmail.com` where `example@gmail.com` is the email of the Google Chat
|
961
|
+
# user. When deleting an app membership, requires the `chat.memberships.app`
|
962
|
+
# scope and `spaces/`space`/members/app` format. Format: `spaces/`space`/members/
|
963
|
+
# `member`` or `spaces/`space`/members/app`.
|
788
964
|
# @param [Boolean] use_admin_access
|
789
965
|
# Optional. When `true`, the method runs using the user's Google Workspace
|
790
966
|
# administrator privileges. The calling user must be a Google Workspace
|
@@ -1541,7 +1717,7 @@ module Google
|
|
1541
1717
|
# emoji.unicode = "🙂" OR user.name = "users/`user`" emoji.unicode = "🙂" OR emoji.
|
1542
1718
|
# custom_emoji.uid = "`uid`" OR user.name = "users/`user`" emoji.unicode = "🙂"
|
1543
1719
|
# OR emoji.custom_emoji.uid = "`uid`" AND user.name = "users/`user`" ``` Invalid
|
1544
|
-
# queries are rejected
|
1720
|
+
# queries are rejected with an `INVALID_ARGUMENT` error.
|
1545
1721
|
# @param [Fixnum] page_size
|
1546
1722
|
# Optional. The maximum number of reactions returned. The service can return
|
1547
1723
|
# fewer reactions than this value. If unspecified, the default value is 25. The
|
data/lib/google/apis/chat_v1.rb
CHANGED
@@ -60,6 +60,12 @@ module Google
|
|
60
60
|
# Private Service: https://www.googleapis.com/auth/chat.bot
|
61
61
|
AUTH_CHAT_BOT = 'https://www.googleapis.com/auth/chat.bot'
|
62
62
|
|
63
|
+
# View, create, and delete custom emoji in Google Chat
|
64
|
+
AUTH_CHAT_CUSTOMEMOJIS = 'https://www.googleapis.com/auth/chat.customemojis'
|
65
|
+
|
66
|
+
# View custom emoji in Google Chat
|
67
|
+
AUTH_CHAT_CUSTOMEMOJIS_READONLY = 'https://www.googleapis.com/auth/chat.customemojis.readonly'
|
68
|
+
|
63
69
|
# Delete conversations and spaces and remove access to associated files in Google Chat
|
64
70
|
AUTH_CHAT_DELETE = 'https://www.googleapis.com/auth/chat.delete'
|
65
71
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-chat_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.120.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-16 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.120.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|