google-apis-chat_v1 0.12.0 → 0.16.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.
@@ -57,13 +57,17 @@ 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
- # Opaque thread identifier string that can be specified to group messages into a
62
- # single thread. If this is the first message with a given thread identifier, a
63
- # new thread is created. Subsequent messages with the same thread identifier
64
- # will be posted into the same thread. This relieves bots and webhooks from
65
- # having to store the Hangouts Chat thread ID of a thread (created earlier by
66
- # them) to post further updates to it. Has no effect if thread field,
65
+ # Optional. Opaque thread identifier string that can be specified to group
66
+ # messages into a single thread. If this is the first message with a given
67
+ # thread identifier, a new thread is created. Subsequent messages with the same
68
+ # thread identifier will be posted into the same thread. This relieves bots and
69
+ # webhooks from having to store the Google Chat thread ID of a thread (created
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
69
73
  # Selector specifying which fields to include in a partial response.
@@ -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,13 +106,17 @@ 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
- # Opaque thread identifier string that can be specified to group messages into a
106
- # single thread. If this is the first message with a given thread identifier, a
107
- # new thread is created. Subsequent messages with the same thread identifier
108
- # will be posted into the same thread. This relieves bots and webhooks from
109
- # having to store the Hangouts Chat thread ID of a thread (created earlier by
110
- # them) to post further updates to it. Has no effect if thread field,
114
+ # Optional. Opaque thread identifier string that can be specified to group
115
+ # messages into a single thread. If this is the first message with a given
116
+ # thread identifier, a new thread is created. Subsequent messages with the same
117
+ # thread identifier will be posted into the same thread. This relieves bots and
118
+ # webhooks from having to store the Google Chat thread ID of a thread (created
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
113
122
  # Selector specifying which fields to include in a partial response.
@@ -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,13 +155,17 @@ 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
- # Opaque thread identifier string that can be specified to group messages into a
150
- # single thread. If this is the first message with a given thread identifier, a
151
- # new thread is created. Subsequent messages with the same thread identifier
152
- # will be posted into the same thread. This relieves bots and webhooks from
153
- # having to store the Hangouts Chat thread ID of a thread (created earlier by
154
- # them) to post further updates to it. Has no effect if thread field,
163
+ # Optional. Opaque thread identifier string that can be specified to group
164
+ # messages into a single thread. If this is the first message with a given
165
+ # thread identifier, a new thread is created. Subsequent messages with the same
166
+ # thread identifier will be posted into the same thread. This relieves bots and
167
+ # webhooks from having to store the Google Chat thread ID of a thread (created
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
157
171
  # Selector specifying which fields to include in a partial response.
@@ -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,13 +242,17 @@ 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
- # Opaque thread identifier string that can be specified to group messages into a
232
- # single thread. If this is the first message with a given thread identifier, a
233
- # new thread is created. Subsequent messages with the same thread identifier
234
- # will be posted into the same thread. This relieves bots and webhooks from
235
- # having to store the Hangouts Chat thread ID of a thread (created earlier by
236
- # them) to post further updates to it. Has no effect if thread field,
250
+ # Optional. Opaque thread identifier string that can be specified to group
251
+ # messages into a single thread. If this is the first message with a given
252
+ # thread identifier, a new thread is created. Subsequent messages with the same
253
+ # thread identifier will be posted into the same thread. This relieves bots and
254
+ # webhooks from having to store the Google Chat thread ID of a thread (created
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
239
258
  # Selector specifying which fields to include in a partial response.
@@ -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,13 +291,17 @@ 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
- # Opaque thread identifier string that can be specified to group messages into a
276
- # single thread. If this is the first message with a given thread identifier, a
277
- # new thread is created. Subsequent messages with the same thread identifier
278
- # will be posted into the same thread. This relieves bots and webhooks from
279
- # having to store the Hangouts Chat thread ID of a thread (created earlier by
280
- # them) to post further updates to it. Has no effect if thread field,
299
+ # Optional. Opaque thread identifier string that can be specified to group
300
+ # messages into a single thread. If this is the first message with a given
301
+ # thread identifier, a new thread is created. Subsequent messages with the same
302
+ # thread identifier will be posted into the same thread. This relieves bots and
303
+ # webhooks from having to store the Google Chat thread ID of a thread (created
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
283
307
  # Selector specifying which fields to include in a partial response.
@@ -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,13 +340,17 @@ 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
- # Opaque thread identifier string that can be specified to group messages into a
320
- # single thread. If this is the first message with a given thread identifier, a
321
- # new thread is created. Subsequent messages with the same thread identifier
322
- # will be posted into the same thread. This relieves bots and webhooks from
323
- # having to store the Hangouts Chat thread ID of a thread (created earlier by
324
- # them) to post further updates to it. Has no effect if thread field,
348
+ # Optional. Opaque thread identifier string that can be specified to group
349
+ # messages into a single thread. If this is the first message with a given
350
+ # thread identifier, a new thread is created. Subsequent messages with the same
351
+ # thread identifier will be posted into the same thread. This relieves bots and
352
+ # webhooks from having to store the Google Chat thread ID of a thread (created
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
327
356
  # Selector specifying which fields to include in a partial response.
@@ -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,13 +454,17 @@ 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
- # Opaque thread identifier string that can be specified to group messages into a
429
- # single thread. If this is the first message with a given thread identifier, a
430
- # new thread is created. Subsequent messages with the same thread identifier
431
- # will be posted into the same thread. This relieves bots and webhooks from
432
- # having to store the Hangouts Chat thread ID of a thread (created earlier by
433
- # them) to post further updates to it. Has no effect if thread field,
462
+ # Optional. Opaque thread identifier string that can be specified to group
463
+ # messages into a single thread. If this is the first message with a given
464
+ # thread identifier, a new thread is created. Subsequent messages with the same
465
+ # thread identifier will be posted into the same thread. This relieves bots and
466
+ # webhooks from having to store the Google Chat thread ID of a thread (created
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
436
470
  # Selector specifying which fields to include in a partial response.
@@ -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?
@@ -536,13 +571,17 @@ 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
- # Opaque thread identifier string that can be specified to group messages into a
541
- # single thread. If this is the first message with a given thread identifier, a
542
- # new thread is created. Subsequent messages with the same thread identifier
543
- # will be posted into the same thread. This relieves bots and webhooks from
544
- # having to store the Hangouts Chat thread ID of a thread (created earlier by
545
- # them) to post further updates to it. Has no effect if thread field,
579
+ # Optional. Opaque thread identifier string that can be specified to group
580
+ # messages into a single thread. If this is the first message with a given
581
+ # thread identifier, a new thread is created. Subsequent messages with the same
582
+ # thread identifier will be posted into the same thread. This relieves bots and
583
+ # webhooks from having to store the Google Chat thread ID of a thread (created
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
548
587
  # Selector specifying which fields to include in a partial response.
@@ -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.12.0
4
+ version: 0.16.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-07-19 00:00:00.000000000 Z
11
+ date: 2021-10-27 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.12.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.16.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: