google-apis-chat_v1 0.14.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 462cbae738070d0e3a8b1380893401f4fcb0fe220cbd47854e29b9cbb3c4823f
4
- data.tar.gz: e8745a1e7280f9b7a43f444b2d8601eb81af11826ff4687edf59b422cc1c5c92
3
+ metadata.gz: 3fda8c21ecadba60cd25818a41ef5e85da5839c3562f71eac5e4ff19c986508b
4
+ data.tar.gz: 42e8c0d4642dc9447e677a27d025edf0a8847ed7e74d96a53c70fe99535f3ec1
5
5
  SHA512:
6
- metadata.gz: bd9df92f09ffb61e413c9806e4d71c05ab97ff210b64eae43d649a7fc1a0cb8dd913cfd807875d6ea52ec626ab92533620d245febeb8f5c8082c5a2e7d9f994e
7
- data.tar.gz: 2d77e86e344ded064a5a44d17575fedf73836f99c11f3087cf7a086ae401ad24331a3b91830e04491780e004b70591e6a9ba348def4e363d2d06d346ea82ef3e
6
+ metadata.gz: c241506f20845bafdf1a19f717b11a05566b25c2ba528bf75f821e316850a267bcae6d8f1a5011f4e95e47d45f3f9a2c6c4014294f6ffd0f2cc6c41bfd53584c
7
+ data.tar.gz: e5d3dcfe66d73a9ca6cb6eb5f9f4bbc85405f215cabaf1446803319b156d567e33718f8071b0f475233a647457a17e7ea5466bbdd4bb98ea47cd7a798c2ee50f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-chat_v1
2
2
 
3
+ ### v0.18.0 (2021-11-13)
4
+
5
+ * Regenerated from discovery document revision 20211106
6
+
7
+ ### v0.17.0 (2021-10-29)
8
+
9
+ * Regenerated from discovery document revision 20211022
10
+
11
+ ### v0.16.0 (2021-10-22)
12
+
13
+ * Regenerated from discovery document revision 20211015
14
+
15
+ ### v0.15.0 (2021-09-15)
16
+
17
+ * Regenerated from discovery document revision 20210911
18
+
3
19
  ### v0.14.0 (2021-09-01)
4
20
 
5
21
  * Regenerated from discovery document revision 20210818
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Chat service in particular.)
67
67
 
@@ -163,7 +163,7 @@ module Google
163
163
  end
164
164
  end
165
165
 
166
- # An attachment in Hangouts Chat.
166
+ # An attachment in Google Chat.
167
167
  class Attachment
168
168
  include Google::Apis::Core::Hashable
169
169
 
@@ -604,7 +604,7 @@ module Google
604
604
  # @return [String]
605
605
  attr_accessor :dialog_event_type
606
606
 
607
- # The timestamp indicating when the event was dispatched.
607
+ # The timestamp indicating when the event occurred.
608
608
  # Corresponds to the JSON property `eventTime`
609
609
  # @return [String]
610
610
  attr_accessor :event_time
@@ -616,12 +616,13 @@ module Google
616
616
  attr_accessor :is_dialog_event
617
617
  alias_method :is_dialog_event?, :is_dialog_event
618
618
 
619
- # A message in Hangouts Chat.
619
+ # A message in Google Chat.
620
620
  # Corresponds to the JSON property `message`
621
621
  # @return [Google::Apis::ChatV1::Message]
622
622
  attr_accessor :message
623
623
 
624
- # A room or DM in Hangouts Chat.
624
+ # A space in Google Chat. Spaces are conversations between two or more users or
625
+ # 1:1 messages between a user and a Chat bot.
625
626
  # Corresponds to the JSON property `space`
626
627
  # @return [Google::Apis::ChatV1::Space]
627
628
  attr_accessor :space
@@ -2328,11 +2329,11 @@ module Google
2328
2329
  end
2329
2330
  end
2330
2331
 
2331
- # Represents a membership relation in Hangouts Chat.
2332
+ # Represents a membership relation in Google Chat.
2332
2333
  class Membership
2333
2334
  include Google::Apis::Core::Hashable
2334
2335
 
2335
- # The creation time of the membership a.k.a the time at which the member joined
2336
+ # The creation time of the membership a.k.a. the time at which the member joined
2336
2337
  # the space, if applicable.
2337
2338
  # Corresponds to the JSON property `createTime`
2338
2339
  # @return [String]
@@ -2366,7 +2367,7 @@ module Google
2366
2367
  end
2367
2368
  end
2368
2369
 
2369
- # A message in Hangouts Chat.
2370
+ # A message in Google Chat.
2370
2371
  class Message
2371
2372
  include Google::Apis::Core::Hashable
2372
2373
 
@@ -2397,7 +2398,7 @@ module Google
2397
2398
  # @return [Array<Google::Apis::ChatV1::Card>]
2398
2399
  attr_accessor :cards
2399
2400
 
2400
- # Output only. The time at which the message was created in Hangouts Chat server.
2401
+ # Output only. The time at which the message was created in Google Chat server.
2401
2402
  # Corresponds to the JSON property `createTime`
2402
2403
  # @return [String]
2403
2404
  attr_accessor :create_time
@@ -2408,14 +2409,15 @@ module Google
2408
2409
  # @return [String]
2409
2410
  attr_accessor :fallback_text
2410
2411
 
2411
- # Output only. The time at which the message was last updated in Hangouts Chat
2412
+ # Output only. The time at which the message was last updated in Google Chat
2412
2413
  # server. If the message was never updated, this field will be same as
2413
2414
  # create_time.
2414
2415
  # Corresponds to the JSON property `lastUpdateTime`
2415
2416
  # @return [String]
2416
2417
  attr_accessor :last_update_time
2417
2418
 
2418
- #
2419
+ # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAMpdlehY/
2420
+ # messages/UMxbHmzDlr4.UMxbHmzDlr4`
2419
2421
  # Corresponds to the JSON property `name`
2420
2422
  # @return [String]
2421
2423
  attr_accessor :name
@@ -2437,7 +2439,8 @@ module Google
2437
2439
  # @return [Google::Apis::ChatV1::SlashCommand]
2438
2440
  attr_accessor :slash_command
2439
2441
 
2440
- # A room or DM in Hangouts Chat.
2442
+ # A space in Google Chat. Spaces are conversations between two or more users or
2443
+ # 1:1 messages between a user and a Chat bot.
2441
2444
  # Corresponds to the JSON property `space`
2442
2445
  # @return [Google::Apis::ChatV1::Space]
2443
2446
  attr_accessor :space
@@ -2447,7 +2450,7 @@ module Google
2447
2450
  # @return [String]
2448
2451
  attr_accessor :text
2449
2452
 
2450
- # A thread in Hangouts Chat.
2453
+ # A thread in Google Chat.
2451
2454
  # Corresponds to the JSON property `thread`
2452
2455
  # @return [Google::Apis::ChatV1::Thread]
2453
2456
  attr_accessor :thread
@@ -2611,18 +2614,19 @@ module Google
2611
2614
  end
2612
2615
  end
2613
2616
 
2614
- # A room or DM in Hangouts Chat.
2617
+ # A space in Google Chat. Spaces are conversations between two or more users or
2618
+ # 1:1 messages between a user and a Chat bot.
2615
2619
  class Space
2616
2620
  include Google::Apis::Core::Hashable
2617
2621
 
2618
- # Output only. The display name (only if the space is a room). Please note that
2619
- # this field might not be populated in direct messages between humans.
2622
+ # The display name (only if the space is of type `ROOM`). Please note that this
2623
+ # field might not be populated in direct messages between humans.
2620
2624
  # Corresponds to the JSON property `displayName`
2621
2625
  # @return [String]
2622
2626
  attr_accessor :display_name
2623
2627
 
2624
2628
  # Resource name of the space, in the form "spaces/*". Example: spaces/
2625
- # AAAAMpdlehYs
2629
+ # AAAAAAAAAAAA
2626
2630
  # Corresponds to the JSON property `name`
2627
2631
  # @return [String]
2628
2632
  attr_accessor :name
@@ -2724,7 +2728,7 @@ module Google
2724
2728
  end
2725
2729
  end
2726
2730
 
2727
- # A thread in Hangouts Chat.
2731
+ # A thread in Google Chat.
2728
2732
  class Thread
2729
2733
  include Google::Apis::Core::Hashable
2730
2734
 
@@ -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.14.0"
19
+ GEM_VERSION = "0.18.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210818"
25
+ REVISION = "20211106"
26
26
  end
27
27
  end
28
28
  end
@@ -57,12 +57,16 @@ module Google
57
57
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
58
58
  # AAAAMpdlehY
59
59
  # @param [Google::Apis::ChatV1::Message] message_object
60
+ # @param [String] request_id
61
+ # Optional. A unique request ID for this message. If a message has already been
62
+ # created in the space with this request ID, the subsequent request will return
63
+ # the existing message and no new message will be created.
60
64
  # @param [String] thread_key
61
65
  # Optional. Opaque thread identifier string that can be specified to group
62
66
  # messages into a single thread. If this is the first message with a given
63
67
  # thread identifier, a new thread is created. Subsequent messages with the same
64
68
  # thread identifier will be posted into the same thread. This relieves bots and
65
- # webhooks from having to store the Hangouts Chat thread ID of a thread (created
69
+ # webhooks from having to store the Google Chat thread ID of a thread (created
66
70
  # earlier by them) to post further updates to it. Has no effect if thread field,
67
71
  # corresponding to an existing thread, is set in message.
68
72
  # @param [String] fields
@@ -82,13 +86,14 @@ module Google
82
86
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
83
87
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
84
88
  # @raise [Google::Apis::AuthorizationError] Authorization is required
85
- def messages_dm(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
89
+ def messages_dm(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
86
90
  command = make_simple_command(:post, 'v1/{+parent}/messages', options)
87
91
  command.request_representation = Google::Apis::ChatV1::Message::Representation
88
92
  command.request_object = message_object
89
93
  command.response_representation = Google::Apis::ChatV1::Message::Representation
90
94
  command.response_class = Google::Apis::ChatV1::Message
91
95
  command.params['parent'] = parent unless parent.nil?
96
+ command.query['requestId'] = request_id unless request_id.nil?
92
97
  command.query['threadKey'] = thread_key unless thread_key.nil?
93
98
  command.query['fields'] = fields unless fields.nil?
94
99
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -101,12 +106,16 @@ module Google
101
106
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
102
107
  # AAAAMpdlehY
103
108
  # @param [Google::Apis::ChatV1::Message] message_object
109
+ # @param [String] request_id
110
+ # Optional. A unique request ID for this message. If a message has already been
111
+ # created in the space with this request ID, the subsequent request will return
112
+ # the existing message and no new message will be created.
104
113
  # @param [String] thread_key
105
114
  # Optional. Opaque thread identifier string that can be specified to group
106
115
  # messages into a single thread. If this is the first message with a given
107
116
  # thread identifier, a new thread is created. Subsequent messages with the same
108
117
  # thread identifier will be posted into the same thread. This relieves bots and
109
- # webhooks from having to store the Hangouts Chat thread ID of a thread (created
118
+ # webhooks from having to store the Google Chat thread ID of a thread (created
110
119
  # earlier by them) to post further updates to it. Has no effect if thread field,
111
120
  # corresponding to an existing thread, is set in message.
112
121
  # @param [String] fields
@@ -126,13 +135,14 @@ module Google
126
135
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
127
136
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
128
137
  # @raise [Google::Apis::AuthorizationError] Authorization is required
129
- def webhooks_dm(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
138
+ def webhooks_dm(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
130
139
  command = make_simple_command(:post, 'v1/{+parent}/webhooks', options)
131
140
  command.request_representation = Google::Apis::ChatV1::Message::Representation
132
141
  command.request_object = message_object
133
142
  command.response_representation = Google::Apis::ChatV1::Message::Representation
134
143
  command.response_class = Google::Apis::ChatV1::Message
135
144
  command.params['parent'] = parent unless parent.nil?
145
+ command.query['requestId'] = request_id unless request_id.nil?
136
146
  command.query['threadKey'] = thread_key unless thread_key.nil?
137
147
  command.query['fields'] = fields unless fields.nil?
138
148
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -145,12 +155,16 @@ module Google
145
155
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
146
156
  # AAAAMpdlehY
147
157
  # @param [Google::Apis::ChatV1::Message] message_object
158
+ # @param [String] request_id
159
+ # Optional. A unique request ID for this message. If a message has already been
160
+ # created in the space with this request ID, the subsequent request will return
161
+ # the existing message and no new message will be created.
148
162
  # @param [String] thread_key
149
163
  # Optional. Opaque thread identifier string that can be specified to group
150
164
  # messages into a single thread. If this is the first message with a given
151
165
  # thread identifier, a new thread is created. Subsequent messages with the same
152
166
  # thread identifier will be posted into the same thread. This relieves bots and
153
- # webhooks from having to store the Hangouts Chat thread ID of a thread (created
167
+ # webhooks from having to store the Google Chat thread ID of a thread (created
154
168
  # earlier by them) to post further updates to it. Has no effect if thread field,
155
169
  # corresponding to an existing thread, is set in message.
156
170
  # @param [String] fields
@@ -170,13 +184,14 @@ module Google
170
184
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
171
185
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
172
186
  # @raise [Google::Apis::AuthorizationError] Authorization is required
173
- def messages_dm_conversation(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
187
+ def messages_dm_conversation(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
174
188
  command = make_simple_command(:post, 'v1/{+parent}/messages', options)
175
189
  command.request_representation = Google::Apis::ChatV1::Message::Representation
176
190
  command.request_object = message_object
177
191
  command.response_representation = Google::Apis::ChatV1::Message::Representation
178
192
  command.response_class = Google::Apis::ChatV1::Message
179
193
  command.params['parent'] = parent unless parent.nil?
194
+ command.query['requestId'] = request_id unless request_id.nil?
180
195
  command.query['threadKey'] = thread_key unless thread_key.nil?
181
196
  command.query['fields'] = fields unless fields.nil?
182
197
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -227,12 +242,16 @@ module Google
227
242
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
228
243
  # AAAAMpdlehY
229
244
  # @param [Google::Apis::ChatV1::Message] message_object
245
+ # @param [String] request_id
246
+ # Optional. A unique request ID for this message. If a message has already been
247
+ # created in the space with this request ID, the subsequent request will return
248
+ # the existing message and no new message will be created.
230
249
  # @param [String] thread_key
231
250
  # Optional. Opaque thread identifier string that can be specified to group
232
251
  # messages into a single thread. If this is the first message with a given
233
252
  # thread identifier, a new thread is created. Subsequent messages with the same
234
253
  # thread identifier will be posted into the same thread. This relieves bots and
235
- # webhooks from having to store the Hangouts Chat thread ID of a thread (created
254
+ # webhooks from having to store the Google Chat thread ID of a thread (created
236
255
  # earlier by them) to post further updates to it. Has no effect if thread field,
237
256
  # corresponding to an existing thread, is set in message.
238
257
  # @param [String] fields
@@ -252,13 +271,14 @@ module Google
252
271
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
253
272
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
254
273
  # @raise [Google::Apis::AuthorizationError] Authorization is required
255
- def messages_room(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
274
+ def messages_room(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
256
275
  command = make_simple_command(:post, 'v1/{+parent}/messages', options)
257
276
  command.request_representation = Google::Apis::ChatV1::Message::Representation
258
277
  command.request_object = message_object
259
278
  command.response_representation = Google::Apis::ChatV1::Message::Representation
260
279
  command.response_class = Google::Apis::ChatV1::Message
261
280
  command.params['parent'] = parent unless parent.nil?
281
+ command.query['requestId'] = request_id unless request_id.nil?
262
282
  command.query['threadKey'] = thread_key unless thread_key.nil?
263
283
  command.query['fields'] = fields unless fields.nil?
264
284
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -271,12 +291,16 @@ module Google
271
291
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
272
292
  # AAAAMpdlehY
273
293
  # @param [Google::Apis::ChatV1::Message] message_object
294
+ # @param [String] request_id
295
+ # Optional. A unique request ID for this message. If a message has already been
296
+ # created in the space with this request ID, the subsequent request will return
297
+ # the existing message and no new message will be created.
274
298
  # @param [String] thread_key
275
299
  # Optional. Opaque thread identifier string that can be specified to group
276
300
  # messages into a single thread. If this is the first message with a given
277
301
  # thread identifier, a new thread is created. Subsequent messages with the same
278
302
  # thread identifier will be posted into the same thread. This relieves bots and
279
- # webhooks from having to store the Hangouts Chat thread ID of a thread (created
303
+ # webhooks from having to store the Google Chat thread ID of a thread (created
280
304
  # earlier by them) to post further updates to it. Has no effect if thread field,
281
305
  # corresponding to an existing thread, is set in message.
282
306
  # @param [String] fields
@@ -296,13 +320,14 @@ module Google
296
320
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
297
321
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
298
322
  # @raise [Google::Apis::AuthorizationError] Authorization is required
299
- def webhooks_room(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
323
+ def webhooks_room(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
300
324
  command = make_simple_command(:post, 'v1/{+parent}/webhooks', options)
301
325
  command.request_representation = Google::Apis::ChatV1::Message::Representation
302
326
  command.request_object = message_object
303
327
  command.response_representation = Google::Apis::ChatV1::Message::Representation
304
328
  command.response_class = Google::Apis::ChatV1::Message
305
329
  command.params['parent'] = parent unless parent.nil?
330
+ command.query['requestId'] = request_id unless request_id.nil?
306
331
  command.query['threadKey'] = thread_key unless thread_key.nil?
307
332
  command.query['fields'] = fields unless fields.nil?
308
333
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -315,12 +340,16 @@ module Google
315
340
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
316
341
  # AAAAMpdlehY
317
342
  # @param [Google::Apis::ChatV1::Message] message_object
343
+ # @param [String] request_id
344
+ # Optional. A unique request ID for this message. If a message has already been
345
+ # created in the space with this request ID, the subsequent request will return
346
+ # the existing message and no new message will be created.
318
347
  # @param [String] thread_key
319
348
  # Optional. Opaque thread identifier string that can be specified to group
320
349
  # messages into a single thread. If this is the first message with a given
321
350
  # thread identifier, a new thread is created. Subsequent messages with the same
322
351
  # thread identifier will be posted into the same thread. This relieves bots and
323
- # webhooks from having to store the Hangouts Chat thread ID of a thread (created
352
+ # webhooks from having to store the Google Chat thread ID of a thread (created
324
353
  # earlier by them) to post further updates to it. Has no effect if thread field,
325
354
  # corresponding to an existing thread, is set in message.
326
355
  # @param [String] fields
@@ -340,13 +369,14 @@ module Google
340
369
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
341
370
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
342
371
  # @raise [Google::Apis::AuthorizationError] Authorization is required
343
- def messages_room_conversation(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
372
+ def messages_room_conversation(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
344
373
  command = make_simple_command(:post, 'v1/{+parent}/messages', options)
345
374
  command.request_representation = Google::Apis::ChatV1::Message::Representation
346
375
  command.request_object = message_object
347
376
  command.response_representation = Google::Apis::ChatV1::Message::Representation
348
377
  command.response_class = Google::Apis::ChatV1::Message
349
378
  command.params['parent'] = parent unless parent.nil?
379
+ command.query['requestId'] = request_id unless request_id.nil?
350
380
  command.query['threadKey'] = thread_key unless thread_key.nil?
351
381
  command.query['fields'] = fields unless fields.nil?
352
382
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -356,7 +386,7 @@ module Google
356
386
  # Returns a space.
357
387
  # @param [String] name
358
388
  # Required. Resource name of the space, in the form "spaces/*". Example: spaces/
359
- # AAAAMpdlehY
389
+ # AAAAAAAAAAAA
360
390
  # @param [String] fields
361
391
  # Selector specifying which fields to include in a partial response.
362
392
  # @param [String] quota_user
@@ -424,12 +454,16 @@ module Google
424
454
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
425
455
  # AAAAMpdlehY
426
456
  # @param [Google::Apis::ChatV1::Message] message_object
457
+ # @param [String] request_id
458
+ # Optional. A unique request ID for this message. If a message has already been
459
+ # created in the space with this request ID, the subsequent request will return
460
+ # the existing message and no new message will be created.
427
461
  # @param [String] thread_key
428
462
  # Optional. Opaque thread identifier string that can be specified to group
429
463
  # messages into a single thread. If this is the first message with a given
430
464
  # thread identifier, a new thread is created. Subsequent messages with the same
431
465
  # thread identifier will be posted into the same thread. This relieves bots and
432
- # webhooks from having to store the Hangouts Chat thread ID of a thread (created
466
+ # webhooks from having to store the Google Chat thread ID of a thread (created
433
467
  # earlier by them) to post further updates to it. Has no effect if thread field,
434
468
  # corresponding to an existing thread, is set in message.
435
469
  # @param [String] fields
@@ -449,13 +483,14 @@ module Google
449
483
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
450
484
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
451
485
  # @raise [Google::Apis::AuthorizationError] Authorization is required
452
- def webhooks_space(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
486
+ def webhooks_space(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
453
487
  command = make_simple_command(:post, 'v1/{+parent}/webhooks', options)
454
488
  command.request_representation = Google::Apis::ChatV1::Message::Representation
455
489
  command.request_object = message_object
456
490
  command.response_representation = Google::Apis::ChatV1::Message::Representation
457
491
  command.response_class = Google::Apis::ChatV1::Message
458
492
  command.params['parent'] = parent unless parent.nil?
493
+ command.query['requestId'] = request_id unless request_id.nil?
459
494
  command.query['threadKey'] = thread_key unless thread_key.nil?
460
495
  command.query['fields'] = fields unless fields.nil?
461
496
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -465,7 +500,7 @@ module Google
465
500
  # Returns a membership.
466
501
  # @param [String] name
467
502
  # Required. Resource name of the membership to be retrieved, in the form "spaces/
468
- # */members/*". Example: spaces/AAAAMpdlehY/members/105115627578887013105
503
+ # */members/*". Example: spaces/AAAAAAAAAAAA/members/111111111111111111111
469
504
  # @param [String] fields
470
505
  # Selector specifying which fields to include in a partial response.
471
506
  # @param [String] quota_user
@@ -496,7 +531,7 @@ module Google
496
531
  # Lists human memberships in a space.
497
532
  # @param [String] parent
498
533
  # Required. The resource name of the space for which membership list is to be
499
- # fetched, in the form "spaces/*". Example: spaces/AAAAMpdlehY
534
+ # fetched, in the form "spaces/*". Example: spaces/AAAAAAAAAAAA
500
535
  # @param [Fixnum] page_size
501
536
  # Requested page size. The value is capped at 1000. Server may return fewer
502
537
  # results than requested. If unspecified, server will default to 100.
@@ -536,12 +571,16 @@ module Google
536
571
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
537
572
  # AAAAMpdlehY
538
573
  # @param [Google::Apis::ChatV1::Message] message_object
574
+ # @param [String] request_id
575
+ # Optional. A unique request ID for this message. If a message has already been
576
+ # created in the space with this request ID, the subsequent request will return
577
+ # the existing message and no new message will be created.
539
578
  # @param [String] thread_key
540
579
  # Optional. Opaque thread identifier string that can be specified to group
541
580
  # messages into a single thread. If this is the first message with a given
542
581
  # thread identifier, a new thread is created. Subsequent messages with the same
543
582
  # thread identifier will be posted into the same thread. This relieves bots and
544
- # webhooks from having to store the Hangouts Chat thread ID of a thread (created
583
+ # webhooks from having to store the Google Chat thread ID of a thread (created
545
584
  # earlier by them) to post further updates to it. Has no effect if thread field,
546
585
  # corresponding to an existing thread, is set in message.
547
586
  # @param [String] fields
@@ -561,13 +600,14 @@ module Google
561
600
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
562
601
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
563
602
  # @raise [Google::Apis::AuthorizationError] Authorization is required
564
- def create_space_message(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
603
+ def create_space_message(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
565
604
  command = make_simple_command(:post, 'v1/{+parent}/messages', options)
566
605
  command.request_representation = Google::Apis::ChatV1::Message::Representation
567
606
  command.request_object = message_object
568
607
  command.response_representation = Google::Apis::ChatV1::Message::Representation
569
608
  command.response_class = Google::Apis::ChatV1::Message
570
609
  command.params['parent'] = parent unless parent.nil?
610
+ command.query['requestId'] = request_id unless request_id.nil?
571
611
  command.query['threadKey'] = thread_key unless thread_key.nil?
572
612
  command.query['fields'] = fields unless fields.nil?
573
613
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -638,10 +678,13 @@ module Google
638
678
 
639
679
  # Updates a message.
640
680
  # @param [String] name
681
+ # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAMpdlehY/
682
+ # messages/UMxbHmzDlr4.UMxbHmzDlr4`
641
683
  # @param [Google::Apis::ChatV1::Message] message_object
642
684
  # @param [String] update_mask
643
685
  # Required. The field paths to be updated, comma separated if there are multiple.
644
- # Currently supported field paths: * text * cards
686
+ # Currently supported field paths: * text * cards *
687
+ # gsuite_message_integration_render_data * attachment
645
688
  # @param [String] fields
646
689
  # Selector specifying which fields to include in a partial response.
647
690
  # @param [String] quota_user
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-chat_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-06 00:00:00.000000000 Z
11
+ date: 2021-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-chat_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.14.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-chat_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.18.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: