google-apps-chat-v1 0.11.1 → 0.13.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.
@@ -54,13 +54,58 @@ module Google
54
54
  extend ::Google::Protobuf::MessageExts::ClassMethods
55
55
  end
56
56
 
57
- # Represents a custom emoji.
57
+ # Represents a [custom emoji](https://support.google.com/chat/answer/12800149).
58
+ # @!attribute [rw] name
59
+ # @return [::String]
60
+ # Identifier. The resource name of the custom emoji, assigned by the server.
61
+ #
62
+ # Format: `customEmojis/{customEmoji}`
58
63
  # @!attribute [r] uid
59
64
  # @return [::String]
60
65
  # Output only. Unique key for the custom emoji resource.
66
+ # @!attribute [rw] emoji_name
67
+ # @return [::String]
68
+ # Optional. Immutable. User-provided name for the custom emoji, which is
69
+ # unique within the organization.
70
+ #
71
+ # Required when the custom emoji is created, output only otherwise.
72
+ #
73
+ # Emoji names must start and end with colons, must be lowercase and can only
74
+ # contain alphanumeric characters, hyphens, and underscores.
75
+ # Hyphens and underscores should be used to separate words and cannot be used
76
+ # consecutively.
77
+ #
78
+ # Example: `:valid-emoji-name:`
79
+ # @!attribute [r] temporary_image_uri
80
+ # @return [::String]
81
+ # Output only. A temporary image URL for the custom emoji, valid for at least
82
+ # 10 minutes. Note that this is not populated in the response when the custom
83
+ # emoji is created.
84
+ # @!attribute [rw] payload
85
+ # @return [::Google::Apps::Chat::V1::CustomEmoji::CustomEmojiPayload]
86
+ # Optional. Input only. Payload data.
87
+ # Required when the custom emoji is created.
61
88
  class CustomEmoji
62
89
  include ::Google::Protobuf::MessageExts
63
90
  extend ::Google::Protobuf::MessageExts::ClassMethods
91
+
92
+ # Payload data for the custom emoji.
93
+ # @!attribute [rw] file_content
94
+ # @return [::String]
95
+ # Required. Input only. The image used for the custom emoji.
96
+ #
97
+ # The payload must be under 256 KB and the dimension of
98
+ # the image must be square and between 64 and 500 pixels. The
99
+ # restrictions are subject to change.
100
+ # @!attribute [rw] filename
101
+ # @return [::String]
102
+ # Required. Input only. The image file name.
103
+ #
104
+ # Supported file extensions: `.png`, `.jpg`, `.gif`.
105
+ class CustomEmojiPayload
106
+ include ::Google::Protobuf::MessageExts
107
+ extend ::Google::Protobuf::MessageExts::ClassMethods
108
+ end
64
109
  end
65
110
 
66
111
  # The number of people who reacted to a message with a specific emoji.
@@ -153,8 +198,7 @@ module Google
153
198
  # AND user.name = "users/\\{user}"
154
199
  # ```
155
200
  #
156
- # Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
157
- # error.
201
+ # Invalid queries are rejected with an `INVALID_ARGUMENT` error.
158
202
  class ListReactionsRequest
159
203
  include ::Google::Protobuf::MessageExts
160
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -183,6 +227,95 @@ module Google
183
227
  include ::Google::Protobuf::MessageExts
184
228
  extend ::Google::Protobuf::MessageExts::ClassMethods
185
229
  end
230
+
231
+ # A request to create a custom emoji.
232
+ # @!attribute [rw] custom_emoji
233
+ # @return [::Google::Apps::Chat::V1::CustomEmoji]
234
+ # Required. The custom emoji to create.
235
+ class CreateCustomEmojiRequest
236
+ include ::Google::Protobuf::MessageExts
237
+ extend ::Google::Protobuf::MessageExts::ClassMethods
238
+ end
239
+
240
+ # A request to return a single custom emoji.
241
+ # @!attribute [rw] name
242
+ # @return [::String]
243
+ # Required. Resource name of the custom emoji.
244
+ #
245
+ # Format: `customEmojis/{customEmoji}`
246
+ #
247
+ # You can use the emoji name as an alias for `{customEmoji}`. For example,
248
+ # `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name
249
+ # for a custom emoji.
250
+ class GetCustomEmojiRequest
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # A request to return a list of custom emojis.
256
+ # @!attribute [rw] page_size
257
+ # @return [::Integer]
258
+ # Optional. The maximum number of custom emojis returned. The service can
259
+ # return fewer custom emojis than this value. If unspecified, the default
260
+ # value is 25. The maximum value is 200; values above 200 are changed to 200.
261
+ # @!attribute [rw] page_token
262
+ # @return [::String]
263
+ # Optional. (If resuming from a previous query.)
264
+ #
265
+ # A page token received from a previous list custom emoji call. Provide this
266
+ # to retrieve the subsequent page.
267
+ #
268
+ # When paginating, the filter value should match the call that provided the
269
+ # page token. Passing a different value might lead to unexpected results.
270
+ # @!attribute [rw] filter
271
+ # @return [::String]
272
+ # Optional. A query filter.
273
+ #
274
+ # Supports filtering by creator.
275
+ #
276
+ # To filter by creator, you must specify a valid value. Currently only
277
+ # `creator("users/me")` and `NOT creator("users/me")` are accepted to filter
278
+ # custom emojis by whether they were created by the calling user or not.
279
+ #
280
+ # For example, the following query returns custom emojis created by the
281
+ # caller:
282
+ # ```
283
+ # creator("users/me")
284
+ # ```
285
+ #
286
+ # Invalid queries are rejected with an `INVALID_ARGUMENT` error.
287
+ class ListCustomEmojisRequest
288
+ include ::Google::Protobuf::MessageExts
289
+ extend ::Google::Protobuf::MessageExts::ClassMethods
290
+ end
291
+
292
+ # A response to list custom emojis.
293
+ # @!attribute [rw] custom_emojis
294
+ # @return [::Array<::Google::Apps::Chat::V1::CustomEmoji>]
295
+ # Unordered list. List of custom emojis.
296
+ # @!attribute [rw] next_page_token
297
+ # @return [::String]
298
+ # A token that you can send as `pageToken` to retrieve the next page of
299
+ # results. If empty, there are no subsequent pages.
300
+ class ListCustomEmojisResponse
301
+ include ::Google::Protobuf::MessageExts
302
+ extend ::Google::Protobuf::MessageExts::ClassMethods
303
+ end
304
+
305
+ # Request for deleting a custom emoji.
306
+ # @!attribute [rw] name
307
+ # @return [::String]
308
+ # Required. Resource name of the custom emoji to delete.
309
+ #
310
+ # Format: `customEmojis/{customEmoji}`
311
+ #
312
+ # You can use the emoji name as an alias for `{customEmoji}`. For example,
313
+ # `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name
314
+ # for a custom emoji.
315
+ class DeleteCustomEmojiRequest
316
+ include ::Google::Protobuf::MessageExts
317
+ extend ::Google::Protobuf::MessageExts::ClassMethods
318
+ end
186
319
  end
187
320
  end
188
321
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apps-chat-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -13,22 +13,16 @@ dependencies:
13
13
  name: gapic-common
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - ">="
17
- - !ruby/object:Gem::Version
18
- version: 0.25.0
19
- - - "<"
16
+ - - "~>"
20
17
  - !ruby/object:Gem::Version
21
- version: 2.a
18
+ version: '1.0'
22
19
  type: :runtime
23
20
  prerelease: false
24
21
  version_requirements: !ruby/object:Gem::Requirement
25
22
  requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- version: 0.25.0
29
- - - "<"
23
+ - - "~>"
30
24
  - !ruby/object:Gem::Version
31
- version: 2.a
25
+ version: '1.0'
32
26
  - !ruby/object:Gem::Dependency
33
27
  name: google-apps-card-v1
34
28
  requirement: !ruby/object:Gem::Requirement
@@ -157,14 +151,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
157
151
  requirements:
158
152
  - - ">="
159
153
  - !ruby/object:Gem::Version
160
- version: '3.0'
154
+ version: '3.1'
161
155
  required_rubygems_version: !ruby/object:Gem::Requirement
162
156
  requirements:
163
157
  - - ">="
164
158
  - !ruby/object:Gem::Version
165
159
  version: '0'
166
160
  requirements: []
167
- rubygems_version: 3.6.8
161
+ rubygems_version: 3.6.9
168
162
  specification_version: 4
169
163
  summary: The Google Chat API lets you build Chat apps to integrate your services with
170
164
  Google Chat and manage Chat resources such as spaces, members, and messages.