google-apis-chat_v1 0.13.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/chat_v1/classes.rb +271 -15
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +115 -0
- data/lib/google/apis/chat_v1/service.rb +103 -60
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed1d036a7d3f050ddcb4697e2ac2ff037152993b3f831e8e8e40321d28050af5
|
4
|
+
data.tar.gz: cca915839c842e94f150dc0aacd91341046273e342dc0682fb751f2477ce87be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a53a7f72f88746d61dffd9f5a3f2fc75e1dc307b0439866fb57599d187572e4c3d9beebefe23bc057bde4beddd39f9e8824858bc95c07b7b9130b89d094e572d
|
7
|
+
data.tar.gz: d02287a676646090350849a4c8a29e76c88b6b1f00920d7b5f85bc6139fa34d62dac253c2718ab08de4f9593ae541ffec24d38874c444c3da4a36bd799da59e8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-chat_v1
|
2
2
|
|
3
|
+
### v0.17.0 (2021-10-29)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211022
|
6
|
+
|
7
|
+
### v0.16.0 (2021-10-22)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211015
|
10
|
+
|
11
|
+
### v0.15.0 (2021-09-15)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210911
|
14
|
+
|
15
|
+
### v0.14.0 (2021-09-01)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210818
|
18
|
+
|
3
19
|
### v0.13.0 (2021-07-21)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210714
|
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/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
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
|
166
|
+
# An attachment in Google Chat.
|
167
167
|
class Attachment
|
168
168
|
include Google::Apis::Core::Hashable
|
169
169
|
|
@@ -464,6 +464,118 @@ module Google
|
|
464
464
|
end
|
465
465
|
end
|
466
466
|
|
467
|
+
# Next available ID = 8
|
468
|
+
class CommonEventObject
|
469
|
+
include Google::Apis::Core::Hashable
|
470
|
+
|
471
|
+
# The keys are the string IDs associated with the widget and the values are
|
472
|
+
# inputs with a widget in the card.
|
473
|
+
# Corresponds to the JSON property `formInputs`
|
474
|
+
# @return [Hash<String,Google::Apis::ChatV1::Inputs>]
|
475
|
+
attr_accessor :form_inputs
|
476
|
+
|
477
|
+
# The hostApp enum which indicates the app the add-on is invoked from
|
478
|
+
# Corresponds to the JSON property `hostApp`
|
479
|
+
# @return [String]
|
480
|
+
attr_accessor :host_app
|
481
|
+
|
482
|
+
# Name of the invoked function associated with the widget. This field is
|
483
|
+
# currently only set for chat.
|
484
|
+
# Corresponds to the JSON property `invokedFunction`
|
485
|
+
# @return [String]
|
486
|
+
attr_accessor :invoked_function
|
487
|
+
|
488
|
+
# Any additional parameters.
|
489
|
+
# Corresponds to the JSON property `parameters`
|
490
|
+
# @return [Hash<String,String>]
|
491
|
+
attr_accessor :parameters
|
492
|
+
|
493
|
+
# The platform enum which indicates the platform where the add-on is running.
|
494
|
+
# Corresponds to the JSON property `platform`
|
495
|
+
# @return [String]
|
496
|
+
attr_accessor :platform
|
497
|
+
|
498
|
+
# The timezone id and offset. The id is the tz database time zones such as "
|
499
|
+
# America/Toronto". The user timezone offset, in milliseconds, from Coordinated
|
500
|
+
# Universal Time (UTC).
|
501
|
+
# Corresponds to the JSON property `timeZone`
|
502
|
+
# @return [Google::Apis::ChatV1::TimeZone]
|
503
|
+
attr_accessor :time_zone
|
504
|
+
|
505
|
+
# The full locale.displayName in the format of [ISO 639 language code]-[ISO 3166
|
506
|
+
# country/region code] such as "en-US"
|
507
|
+
# Corresponds to the JSON property `userLocale`
|
508
|
+
# @return [String]
|
509
|
+
attr_accessor :user_locale
|
510
|
+
|
511
|
+
def initialize(**args)
|
512
|
+
update!(**args)
|
513
|
+
end
|
514
|
+
|
515
|
+
# Update properties of this object
|
516
|
+
def update!(**args)
|
517
|
+
@form_inputs = args[:form_inputs] if args.key?(:form_inputs)
|
518
|
+
@host_app = args[:host_app] if args.key?(:host_app)
|
519
|
+
@invoked_function = args[:invoked_function] if args.key?(:invoked_function)
|
520
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
521
|
+
@platform = args[:platform] if args.key?(:platform)
|
522
|
+
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
523
|
+
@user_locale = args[:user_locale] if args.key?(:user_locale)
|
524
|
+
end
|
525
|
+
end
|
526
|
+
|
527
|
+
# Input Parameter for Date Picker widget.
|
528
|
+
class DateInput
|
529
|
+
include Google::Apis::Core::Hashable
|
530
|
+
|
531
|
+
#
|
532
|
+
# Corresponds to the JSON property `msSinceEpoch`
|
533
|
+
# @return [Fixnum]
|
534
|
+
attr_accessor :ms_since_epoch
|
535
|
+
|
536
|
+
def initialize(**args)
|
537
|
+
update!(**args)
|
538
|
+
end
|
539
|
+
|
540
|
+
# Update properties of this object
|
541
|
+
def update!(**args)
|
542
|
+
@ms_since_epoch = args[:ms_since_epoch] if args.key?(:ms_since_epoch)
|
543
|
+
end
|
544
|
+
end
|
545
|
+
|
546
|
+
# Input Parameter for Date and Time Picker widget.
|
547
|
+
class DateTimeInput
|
548
|
+
include Google::Apis::Core::Hashable
|
549
|
+
|
550
|
+
#
|
551
|
+
# Corresponds to the JSON property `hasDate`
|
552
|
+
# @return [Boolean]
|
553
|
+
attr_accessor :has_date
|
554
|
+
alias_method :has_date?, :has_date
|
555
|
+
|
556
|
+
#
|
557
|
+
# Corresponds to the JSON property `hasTime`
|
558
|
+
# @return [Boolean]
|
559
|
+
attr_accessor :has_time
|
560
|
+
alias_method :has_time?, :has_time
|
561
|
+
|
562
|
+
#
|
563
|
+
# Corresponds to the JSON property `msSinceEpoch`
|
564
|
+
# @return [Fixnum]
|
565
|
+
attr_accessor :ms_since_epoch
|
566
|
+
|
567
|
+
def initialize(**args)
|
568
|
+
update!(**args)
|
569
|
+
end
|
570
|
+
|
571
|
+
# Update properties of this object
|
572
|
+
def update!(**args)
|
573
|
+
@has_date = args[:has_date] if args.key?(:has_date)
|
574
|
+
@has_time = args[:has_time] if args.key?(:has_time)
|
575
|
+
@ms_since_epoch = args[:ms_since_epoch] if args.key?(:ms_since_epoch)
|
576
|
+
end
|
577
|
+
end
|
578
|
+
|
467
579
|
# Google Chat events.
|
468
580
|
class DeprecatedEvent
|
469
581
|
include Google::Apis::Core::Hashable
|
@@ -474,6 +586,11 @@ module Google
|
|
474
586
|
# @return [Google::Apis::ChatV1::FormAction]
|
475
587
|
attr_accessor :action
|
476
588
|
|
589
|
+
# Next available ID = 8
|
590
|
+
# Corresponds to the JSON property `common`
|
591
|
+
# @return [Google::Apis::ChatV1::CommonEventObject]
|
592
|
+
attr_accessor :common
|
593
|
+
|
477
594
|
# The URL the bot should redirect the user to after they have completed an
|
478
595
|
# authorization or configuration flow outside of Google Chat. See the [
|
479
596
|
# Authorizing access to 3p services guide](/chat/how-tos/auth-3p) for more
|
@@ -482,17 +599,30 @@ module Google
|
|
482
599
|
# @return [String]
|
483
600
|
attr_accessor :config_complete_redirect_url
|
484
601
|
|
602
|
+
# The type of dialog event we have received.
|
603
|
+
# Corresponds to the JSON property `dialogEventType`
|
604
|
+
# @return [String]
|
605
|
+
attr_accessor :dialog_event_type
|
606
|
+
|
485
607
|
# The timestamp indicating when the event was dispatched.
|
486
608
|
# Corresponds to the JSON property `eventTime`
|
487
609
|
# @return [String]
|
488
610
|
attr_accessor :event_time
|
489
611
|
|
490
|
-
#
|
612
|
+
# Whether or not this event is related to dialogs request, submit or cancel.
|
613
|
+
# This will be set to true when we want a request/submit/cancel event.
|
614
|
+
# Corresponds to the JSON property `isDialogEvent`
|
615
|
+
# @return [Boolean]
|
616
|
+
attr_accessor :is_dialog_event
|
617
|
+
alias_method :is_dialog_event?, :is_dialog_event
|
618
|
+
|
619
|
+
# A message in Google Chat.
|
491
620
|
# Corresponds to the JSON property `message`
|
492
621
|
# @return [Google::Apis::ChatV1::Message]
|
493
622
|
attr_accessor :message
|
494
623
|
|
495
|
-
# A
|
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.
|
496
626
|
# Corresponds to the JSON property `space`
|
497
627
|
# @return [Google::Apis::ChatV1::Space]
|
498
628
|
attr_accessor :space
|
@@ -528,8 +658,11 @@ module Google
|
|
528
658
|
# Update properties of this object
|
529
659
|
def update!(**args)
|
530
660
|
@action = args[:action] if args.key?(:action)
|
661
|
+
@common = args[:common] if args.key?(:common)
|
531
662
|
@config_complete_redirect_url = args[:config_complete_redirect_url] if args.key?(:config_complete_redirect_url)
|
663
|
+
@dialog_event_type = args[:dialog_event_type] if args.key?(:dialog_event_type)
|
532
664
|
@event_time = args[:event_time] if args.key?(:event_time)
|
665
|
+
@is_dialog_event = args[:is_dialog_event] if args.key?(:is_dialog_event)
|
533
666
|
@message = args[:message] if args.key?(:message)
|
534
667
|
@space = args[:space] if args.key?(:space)
|
535
668
|
@thread_key = args[:thread_key] if args.key?(:thread_key)
|
@@ -2021,6 +2154,45 @@ module Google
|
|
2021
2154
|
end
|
2022
2155
|
end
|
2023
2156
|
|
2157
|
+
# The inputs with widgets.
|
2158
|
+
class Inputs
|
2159
|
+
include Google::Apis::Core::Hashable
|
2160
|
+
|
2161
|
+
# Input Parameter for Date Picker widget.
|
2162
|
+
# Corresponds to the JSON property `dateInput`
|
2163
|
+
# @return [Google::Apis::ChatV1::DateInput]
|
2164
|
+
attr_accessor :date_input
|
2165
|
+
|
2166
|
+
# Input Parameter for Date and Time Picker widget.
|
2167
|
+
# Corresponds to the JSON property `dateTimeInput`
|
2168
|
+
# @return [Google::Apis::ChatV1::DateTimeInput]
|
2169
|
+
attr_accessor :date_time_input
|
2170
|
+
|
2171
|
+
# Input parameter for regular widgets. For single-valued widgets, it will be a
|
2172
|
+
# single value list; for multi-valued widgets, such as checkbox, all the values
|
2173
|
+
# are presented.
|
2174
|
+
# Corresponds to the JSON property `stringInputs`
|
2175
|
+
# @return [Google::Apis::ChatV1::StringInputs]
|
2176
|
+
attr_accessor :string_inputs
|
2177
|
+
|
2178
|
+
# Input Parameter for Time Picker widget.
|
2179
|
+
# Corresponds to the JSON property `timeInput`
|
2180
|
+
# @return [Google::Apis::ChatV1::TimeInput]
|
2181
|
+
attr_accessor :time_input
|
2182
|
+
|
2183
|
+
def initialize(**args)
|
2184
|
+
update!(**args)
|
2185
|
+
end
|
2186
|
+
|
2187
|
+
# Update properties of this object
|
2188
|
+
def update!(**args)
|
2189
|
+
@date_input = args[:date_input] if args.key?(:date_input)
|
2190
|
+
@date_time_input = args[:date_time_input] if args.key?(:date_time_input)
|
2191
|
+
@string_inputs = args[:string_inputs] if args.key?(:string_inputs)
|
2192
|
+
@time_input = args[:time_input] if args.key?(:time_input)
|
2193
|
+
end
|
2194
|
+
end
|
2195
|
+
|
2024
2196
|
# A UI element contains a key (label) and a value (content). And this element
|
2025
2197
|
# may also contain some actions such as onclick button.
|
2026
2198
|
class KeyValue
|
@@ -2157,11 +2329,11 @@ module Google
|
|
2157
2329
|
end
|
2158
2330
|
end
|
2159
2331
|
|
2160
|
-
# Represents a membership relation in
|
2332
|
+
# Represents a membership relation in Google Chat.
|
2161
2333
|
class Membership
|
2162
2334
|
include Google::Apis::Core::Hashable
|
2163
2335
|
|
2164
|
-
# 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
|
2165
2337
|
# the space, if applicable.
|
2166
2338
|
# Corresponds to the JSON property `createTime`
|
2167
2339
|
# @return [String]
|
@@ -2195,7 +2367,7 @@ module Google
|
|
2195
2367
|
end
|
2196
2368
|
end
|
2197
2369
|
|
2198
|
-
# A message in
|
2370
|
+
# A message in Google Chat.
|
2199
2371
|
class Message
|
2200
2372
|
include Google::Apis::Core::Hashable
|
2201
2373
|
|
@@ -2226,7 +2398,7 @@ module Google
|
|
2226
2398
|
# @return [Array<Google::Apis::ChatV1::Card>]
|
2227
2399
|
attr_accessor :cards
|
2228
2400
|
|
2229
|
-
# Output only. The time at which the message was created in
|
2401
|
+
# Output only. The time at which the message was created in Google Chat server.
|
2230
2402
|
# Corresponds to the JSON property `createTime`
|
2231
2403
|
# @return [String]
|
2232
2404
|
attr_accessor :create_time
|
@@ -2237,7 +2409,15 @@ module Google
|
|
2237
2409
|
# @return [String]
|
2238
2410
|
attr_accessor :fallback_text
|
2239
2411
|
|
2240
|
-
#
|
2412
|
+
# Output only. The time at which the message was last updated in Google Chat
|
2413
|
+
# server. If the message was never updated, this field will be same as
|
2414
|
+
# create_time.
|
2415
|
+
# Corresponds to the JSON property `lastUpdateTime`
|
2416
|
+
# @return [String]
|
2417
|
+
attr_accessor :last_update_time
|
2418
|
+
|
2419
|
+
# Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAMpdlehY/
|
2420
|
+
# messages/UMxbHmzDlr4.UMxbHmzDlr4`
|
2241
2421
|
# Corresponds to the JSON property `name`
|
2242
2422
|
# @return [String]
|
2243
2423
|
attr_accessor :name
|
@@ -2259,7 +2439,8 @@ module Google
|
|
2259
2439
|
# @return [Google::Apis::ChatV1::SlashCommand]
|
2260
2440
|
attr_accessor :slash_command
|
2261
2441
|
|
2262
|
-
# A
|
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.
|
2263
2444
|
# Corresponds to the JSON property `space`
|
2264
2445
|
# @return [Google::Apis::ChatV1::Space]
|
2265
2446
|
attr_accessor :space
|
@@ -2269,7 +2450,7 @@ module Google
|
|
2269
2450
|
# @return [String]
|
2270
2451
|
attr_accessor :text
|
2271
2452
|
|
2272
|
-
# A thread in
|
2453
|
+
# A thread in Google Chat.
|
2273
2454
|
# Corresponds to the JSON property `thread`
|
2274
2455
|
# @return [Google::Apis::ChatV1::Thread]
|
2275
2456
|
attr_accessor :thread
|
@@ -2287,6 +2468,7 @@ module Google
|
|
2287
2468
|
@cards = args[:cards] if args.key?(:cards)
|
2288
2469
|
@create_time = args[:create_time] if args.key?(:create_time)
|
2289
2470
|
@fallback_text = args[:fallback_text] if args.key?(:fallback_text)
|
2471
|
+
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
|
2290
2472
|
@name = args[:name] if args.key?(:name)
|
2291
2473
|
@preview_text = args[:preview_text] if args.key?(:preview_text)
|
2292
2474
|
@sender = args[:sender] if args.key?(:sender)
|
@@ -2432,18 +2614,19 @@ module Google
|
|
2432
2614
|
end
|
2433
2615
|
end
|
2434
2616
|
|
2435
|
-
# A
|
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.
|
2436
2619
|
class Space
|
2437
2620
|
include Google::Apis::Core::Hashable
|
2438
2621
|
|
2439
|
-
#
|
2440
|
-
#
|
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.
|
2441
2624
|
# Corresponds to the JSON property `displayName`
|
2442
2625
|
# @return [String]
|
2443
2626
|
attr_accessor :display_name
|
2444
2627
|
|
2445
2628
|
# Resource name of the space, in the form "spaces/*". Example: spaces/
|
2446
|
-
#
|
2629
|
+
# AAAAAAAAAAAA
|
2447
2630
|
# Corresponds to the JSON property `name`
|
2448
2631
|
# @return [String]
|
2449
2632
|
attr_accessor :name
|
@@ -2480,6 +2663,27 @@ module Google
|
|
2480
2663
|
end
|
2481
2664
|
end
|
2482
2665
|
|
2666
|
+
# Input parameter for regular widgets. For single-valued widgets, it will be a
|
2667
|
+
# single value list; for multi-valued widgets, such as checkbox, all the values
|
2668
|
+
# are presented.
|
2669
|
+
class StringInputs
|
2670
|
+
include Google::Apis::Core::Hashable
|
2671
|
+
|
2672
|
+
#
|
2673
|
+
# Corresponds to the JSON property `value`
|
2674
|
+
# @return [Array<String>]
|
2675
|
+
attr_accessor :value
|
2676
|
+
|
2677
|
+
def initialize(**args)
|
2678
|
+
update!(**args)
|
2679
|
+
end
|
2680
|
+
|
2681
|
+
# Update properties of this object
|
2682
|
+
def update!(**args)
|
2683
|
+
@value = args[:value] if args.key?(:value)
|
2684
|
+
end
|
2685
|
+
end
|
2686
|
+
|
2483
2687
|
# A button with text and onclick action.
|
2484
2688
|
class TextButton
|
2485
2689
|
include Google::Apis::Core::Hashable
|
@@ -2524,7 +2728,7 @@ module Google
|
|
2524
2728
|
end
|
2525
2729
|
end
|
2526
2730
|
|
2527
|
-
# A thread in
|
2731
|
+
# A thread in Google Chat.
|
2528
2732
|
class Thread
|
2529
2733
|
include Google::Apis::Core::Hashable
|
2530
2734
|
|
@@ -2544,6 +2748,58 @@ module Google
|
|
2544
2748
|
end
|
2545
2749
|
end
|
2546
2750
|
|
2751
|
+
# Input Parameter for Time Picker widget.
|
2752
|
+
class TimeInput
|
2753
|
+
include Google::Apis::Core::Hashable
|
2754
|
+
|
2755
|
+
#
|
2756
|
+
# Corresponds to the JSON property `hours`
|
2757
|
+
# @return [Fixnum]
|
2758
|
+
attr_accessor :hours
|
2759
|
+
|
2760
|
+
#
|
2761
|
+
# Corresponds to the JSON property `minutes`
|
2762
|
+
# @return [Fixnum]
|
2763
|
+
attr_accessor :minutes
|
2764
|
+
|
2765
|
+
def initialize(**args)
|
2766
|
+
update!(**args)
|
2767
|
+
end
|
2768
|
+
|
2769
|
+
# Update properties of this object
|
2770
|
+
def update!(**args)
|
2771
|
+
@hours = args[:hours] if args.key?(:hours)
|
2772
|
+
@minutes = args[:minutes] if args.key?(:minutes)
|
2773
|
+
end
|
2774
|
+
end
|
2775
|
+
|
2776
|
+
# The timezone id and offset. The id is the tz database time zones such as "
|
2777
|
+
# America/Toronto". The user timezone offset, in milliseconds, from Coordinated
|
2778
|
+
# Universal Time (UTC).
|
2779
|
+
class TimeZone
|
2780
|
+
include Google::Apis::Core::Hashable
|
2781
|
+
|
2782
|
+
#
|
2783
|
+
# Corresponds to the JSON property `id`
|
2784
|
+
# @return [String]
|
2785
|
+
attr_accessor :id
|
2786
|
+
|
2787
|
+
#
|
2788
|
+
# Corresponds to the JSON property `offset`
|
2789
|
+
# @return [Fixnum]
|
2790
|
+
attr_accessor :offset
|
2791
|
+
|
2792
|
+
def initialize(**args)
|
2793
|
+
update!(**args)
|
2794
|
+
end
|
2795
|
+
|
2796
|
+
# Update properties of this object
|
2797
|
+
def update!(**args)
|
2798
|
+
@id = args[:id] if args.key?(:id)
|
2799
|
+
@offset = args[:offset] if args.key?(:offset)
|
2800
|
+
end
|
2801
|
+
end
|
2802
|
+
|
2547
2803
|
# A user in Google Chat.
|
2548
2804
|
class User
|
2549
2805
|
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.17.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 = "
|
25
|
+
REVISION = "20211022"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -88,6 +88,24 @@ module Google
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
+
class CommonEventObject
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class DateInput
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class DateTimeInput
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
91
109
|
class DeprecatedEvent
|
92
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
111
|
|
@@ -310,6 +328,12 @@ module Google
|
|
310
328
|
include Google::Apis::Core::JsonObjectSupport
|
311
329
|
end
|
312
330
|
|
331
|
+
class Inputs
|
332
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
|
+
|
334
|
+
include Google::Apis::Core::JsonObjectSupport
|
335
|
+
end
|
336
|
+
|
313
337
|
class KeyValue
|
314
338
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
339
|
|
@@ -382,6 +406,12 @@ module Google
|
|
382
406
|
include Google::Apis::Core::JsonObjectSupport
|
383
407
|
end
|
384
408
|
|
409
|
+
class StringInputs
|
410
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
411
|
+
|
412
|
+
include Google::Apis::Core::JsonObjectSupport
|
413
|
+
end
|
414
|
+
|
385
415
|
class TextButton
|
386
416
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
417
|
|
@@ -400,6 +430,18 @@ module Google
|
|
400
430
|
include Google::Apis::Core::JsonObjectSupport
|
401
431
|
end
|
402
432
|
|
433
|
+
class TimeInput
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
435
|
+
|
436
|
+
include Google::Apis::Core::JsonObjectSupport
|
437
|
+
end
|
438
|
+
|
439
|
+
class TimeZone
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
|
+
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
443
|
+
end
|
444
|
+
|
403
445
|
class User
|
404
446
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
405
447
|
|
@@ -532,13 +574,48 @@ module Google
|
|
532
574
|
end
|
533
575
|
end
|
534
576
|
|
577
|
+
class CommonEventObject
|
578
|
+
# @private
|
579
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
580
|
+
hash :form_inputs, as: 'formInputs', class: Google::Apis::ChatV1::Inputs, decorator: Google::Apis::ChatV1::Inputs::Representation
|
581
|
+
|
582
|
+
property :host_app, as: 'hostApp'
|
583
|
+
property :invoked_function, as: 'invokedFunction'
|
584
|
+
hash :parameters, as: 'parameters'
|
585
|
+
property :platform, as: 'platform'
|
586
|
+
property :time_zone, as: 'timeZone', class: Google::Apis::ChatV1::TimeZone, decorator: Google::Apis::ChatV1::TimeZone::Representation
|
587
|
+
|
588
|
+
property :user_locale, as: 'userLocale'
|
589
|
+
end
|
590
|
+
end
|
591
|
+
|
592
|
+
class DateInput
|
593
|
+
# @private
|
594
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
595
|
+
property :ms_since_epoch, :numeric_string => true, as: 'msSinceEpoch'
|
596
|
+
end
|
597
|
+
end
|
598
|
+
|
599
|
+
class DateTimeInput
|
600
|
+
# @private
|
601
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
602
|
+
property :has_date, as: 'hasDate'
|
603
|
+
property :has_time, as: 'hasTime'
|
604
|
+
property :ms_since_epoch, :numeric_string => true, as: 'msSinceEpoch'
|
605
|
+
end
|
606
|
+
end
|
607
|
+
|
535
608
|
class DeprecatedEvent
|
536
609
|
# @private
|
537
610
|
class Representation < Google::Apis::Core::JsonRepresentation
|
538
611
|
property :action, as: 'action', class: Google::Apis::ChatV1::FormAction, decorator: Google::Apis::ChatV1::FormAction::Representation
|
539
612
|
|
613
|
+
property :common, as: 'common', class: Google::Apis::ChatV1::CommonEventObject, decorator: Google::Apis::ChatV1::CommonEventObject::Representation
|
614
|
+
|
540
615
|
property :config_complete_redirect_url, as: 'configCompleteRedirectUrl'
|
616
|
+
property :dialog_event_type, as: 'dialogEventType'
|
541
617
|
property :event_time, as: 'eventTime'
|
618
|
+
property :is_dialog_event, as: 'isDialogEvent'
|
542
619
|
property :message, as: 'message', class: Google::Apis::ChatV1::Message, decorator: Google::Apis::ChatV1::Message::Representation
|
543
620
|
|
544
621
|
property :space, as: 'space', class: Google::Apis::ChatV1::Space, decorator: Google::Apis::ChatV1::Space::Representation
|
@@ -952,6 +1029,20 @@ module Google
|
|
952
1029
|
end
|
953
1030
|
end
|
954
1031
|
|
1032
|
+
class Inputs
|
1033
|
+
# @private
|
1034
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1035
|
+
property :date_input, as: 'dateInput', class: Google::Apis::ChatV1::DateInput, decorator: Google::Apis::ChatV1::DateInput::Representation
|
1036
|
+
|
1037
|
+
property :date_time_input, as: 'dateTimeInput', class: Google::Apis::ChatV1::DateTimeInput, decorator: Google::Apis::ChatV1::DateTimeInput::Representation
|
1038
|
+
|
1039
|
+
property :string_inputs, as: 'stringInputs', class: Google::Apis::ChatV1::StringInputs, decorator: Google::Apis::ChatV1::StringInputs::Representation
|
1040
|
+
|
1041
|
+
property :time_input, as: 'timeInput', class: Google::Apis::ChatV1::TimeInput, decorator: Google::Apis::ChatV1::TimeInput::Representation
|
1042
|
+
|
1043
|
+
end
|
1044
|
+
end
|
1045
|
+
|
955
1046
|
class KeyValue
|
956
1047
|
# @private
|
957
1048
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1018,6 +1109,7 @@ module Google
|
|
1018
1109
|
|
1019
1110
|
property :create_time, as: 'createTime'
|
1020
1111
|
property :fallback_text, as: 'fallbackText'
|
1112
|
+
property :last_update_time, as: 'lastUpdateTime'
|
1021
1113
|
property :name, as: 'name'
|
1022
1114
|
property :preview_text, as: 'previewText'
|
1023
1115
|
property :sender, as: 'sender', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
|
@@ -1088,6 +1180,13 @@ module Google
|
|
1088
1180
|
end
|
1089
1181
|
end
|
1090
1182
|
|
1183
|
+
class StringInputs
|
1184
|
+
# @private
|
1185
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1186
|
+
collection :value, as: 'value'
|
1187
|
+
end
|
1188
|
+
end
|
1189
|
+
|
1091
1190
|
class TextButton
|
1092
1191
|
# @private
|
1093
1192
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1111,6 +1210,22 @@ module Google
|
|
1111
1210
|
end
|
1112
1211
|
end
|
1113
1212
|
|
1213
|
+
class TimeInput
|
1214
|
+
# @private
|
1215
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1216
|
+
property :hours, as: 'hours'
|
1217
|
+
property :minutes, as: 'minutes'
|
1218
|
+
end
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
class TimeZone
|
1222
|
+
# @private
|
1223
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1224
|
+
property :id, as: 'id'
|
1225
|
+
property :offset, as: 'offset'
|
1226
|
+
end
|
1227
|
+
end
|
1228
|
+
|
1114
1229
|
class User
|
1115
1230
|
# @private
|
1116
1231
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -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
|
62
|
-
# single thread. If this is the first message with a given
|
63
|
-
# new thread is created. Subsequent messages with the same
|
64
|
-
# will be posted into the same thread. This relieves bots and
|
65
|
-
# having to store the
|
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
|
106
|
-
# single thread. If this is the first message with a given
|
107
|
-
# new thread is created. Subsequent messages with the same
|
108
|
-
# will be posted into the same thread. This relieves bots and
|
109
|
-
# having to store the
|
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
|
150
|
-
# single thread. If this is the first message with a given
|
151
|
-
# new thread is created. Subsequent messages with the same
|
152
|
-
# will be posted into the same thread. This relieves bots and
|
153
|
-
# having to store the
|
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
|
232
|
-
# single thread. If this is the first message with a given
|
233
|
-
# new thread is created. Subsequent messages with the same
|
234
|
-
# will be posted into the same thread. This relieves bots and
|
235
|
-
# having to store the
|
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
|
276
|
-
# single thread. If this is the first message with a given
|
277
|
-
# new thread is created. Subsequent messages with the same
|
278
|
-
# will be posted into the same thread. This relieves bots and
|
279
|
-
# having to store the
|
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
|
320
|
-
# single thread. If this is the first message with a given
|
321
|
-
# new thread is created. Subsequent messages with the same
|
322
|
-
# will be posted into the same thread. This relieves bots and
|
323
|
-
# having to store the
|
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
|
-
#
|
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
|
429
|
-
# single thread. If this is the first message with a given
|
430
|
-
# new thread is created. Subsequent messages with the same
|
431
|
-
# will be posted into the same thread. This relieves bots and
|
432
|
-
# having to store the
|
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?
|
@@ -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/
|
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/
|
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,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
|
541
|
-
# single thread. If this is the first message with a given
|
542
|
-
# new thread is created. Subsequent messages with the same
|
543
|
-
# will be posted into the same thread. This relieves bots and
|
544
|
-
# having to store the
|
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.
|
4
|
+
version: 0.17.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-
|
11
|
+
date: 2021-11-01 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/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.17.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:
|