google-apis-chat_v1 0.28.0 → 0.31.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 +12 -0
- data/lib/google/apis/chat_v1/classes.rb +95 -92
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +16 -17
- data/lib/google/apis/chat_v1/service.rb +51 -65
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89fee3a044a69bf90ae6f5a4054a271305f870e10d4c95284afc464f4592de07
|
4
|
+
data.tar.gz: f1c7f57285b867ef847a45955f66665f5def9b9449a7a853b9c8cef425d38f69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d394433ccdcd4e58edb32b19d732b405cbefe76e42b9d9f108c4d2d40c37672f1d2e4330206a9206a1e2287664156a96c3d3d1006360511a2bf54c05c4fffbec
|
7
|
+
data.tar.gz: fbe7edb4c1527077f32454db977c6d30733341ea63e282d1247db69e7cf26658b8a1afb3aa2371696321bb554829b807a2408d482d2a808bf5fc639ef1a1b5d4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-chat_v1
|
2
2
|
|
3
|
+
### v0.31.0 (2022-04-22)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220415
|
6
|
+
|
7
|
+
### v0.30.0 (2022-04-08)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220405
|
10
|
+
|
11
|
+
### v0.29.0 (2022-04-01)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220326
|
14
|
+
|
3
15
|
### v0.28.0 (2022-03-25)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220319
|
@@ -50,22 +50,23 @@ module Google
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
# Parameters that a
|
53
|
+
# Parameters that a Chat app can use to configure how it's response is posted.
|
54
54
|
class ActionResponse
|
55
55
|
include Google::Apis::Core::Hashable
|
56
56
|
|
57
|
-
# Contains a [dialog](https://developers.google.com/chat/how-tos/
|
58
|
-
#
|
57
|
+
# Contains a [dialog](https://developers.google.com/chat/how-tos/dialogs) and
|
58
|
+
# request status code.
|
59
59
|
# Corresponds to the JSON property `dialogAction`
|
60
60
|
# @return [Google::Apis::ChatV1::DialogAction]
|
61
61
|
attr_accessor :dialog_action
|
62
62
|
|
63
|
-
# The type of
|
63
|
+
# Input only. The type of Chat app response.
|
64
64
|
# Corresponds to the JSON property `type`
|
65
65
|
# @return [String]
|
66
66
|
attr_accessor :type
|
67
67
|
|
68
|
-
# URL for users to auth or config. (Only for REQUEST_CONFIG response
|
68
|
+
# Input only. URL for users to auth or config. (Only for REQUEST_CONFIG response
|
69
|
+
# types.)
|
69
70
|
# Corresponds to the JSON property `url`
|
70
71
|
# @return [String]
|
71
72
|
attr_accessor :url
|
@@ -82,7 +83,8 @@ module Google
|
|
82
83
|
end
|
83
84
|
end
|
84
85
|
|
85
|
-
# Represents the status
|
86
|
+
# Represents the status for a request to either invoke or submit a [dialog](
|
87
|
+
# https://developers.google.com/chat/how-tos/dialogs).
|
86
88
|
class ActionStatus
|
87
89
|
include Google::Apis::Core::Hashable
|
88
90
|
|
@@ -178,8 +180,8 @@ module Google
|
|
178
180
|
attr_accessor :content_type
|
179
181
|
|
180
182
|
# Output only. The download URL which should be used to allow a human user to
|
181
|
-
# download the attachment.
|
182
|
-
# content.
|
183
|
+
# download the attachment. Chat apps should not use this URL to download
|
184
|
+
# attachment content.
|
183
185
|
# Corresponds to the JSON property `downloadUri`
|
184
186
|
# @return [String]
|
185
187
|
attr_accessor :download_uri
|
@@ -201,7 +203,8 @@ module Google
|
|
201
203
|
attr_accessor :source
|
202
204
|
|
203
205
|
# Output only. The thumbnail URL which should be used to preview the attachment
|
204
|
-
# to a human user.
|
206
|
+
# to a human user. Chat apps should not use this URL to download attachment
|
207
|
+
# content.
|
205
208
|
# Corresponds to the JSON property `thumbnailUri`
|
206
209
|
# @return [String]
|
207
210
|
attr_accessor :thumbnail_uri
|
@@ -371,6 +374,46 @@ module Google
|
|
371
374
|
end
|
372
375
|
end
|
373
376
|
|
377
|
+
# JSON payload of error messages. If the Cloud Logging API is enabled, these
|
378
|
+
# error messages are logged to [Google Cloud Logging](https://cloud.google.com/
|
379
|
+
# logging/docs).
|
380
|
+
class ChatAppLogEntry
|
381
|
+
include Google::Apis::Core::Hashable
|
382
|
+
|
383
|
+
# The deployment that caused the error. For Chat bots built in Apps Script, this
|
384
|
+
# is the deployment ID defined by Apps Script.
|
385
|
+
# Corresponds to the JSON property `deployment`
|
386
|
+
# @return [String]
|
387
|
+
attr_accessor :deployment
|
388
|
+
|
389
|
+
# The unencrypted `callback_method` name that was running when the error was
|
390
|
+
# encountered.
|
391
|
+
# Corresponds to the JSON property `deploymentFunction`
|
392
|
+
# @return [String]
|
393
|
+
attr_accessor :deployment_function
|
394
|
+
|
395
|
+
# The `Status` type defines a logical error model that is suitable for different
|
396
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
397
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
398
|
+
# data: error code, error message, and error details. You can find out more
|
399
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
400
|
+
# //cloud.google.com/apis/design/errors).
|
401
|
+
# Corresponds to the JSON property `error`
|
402
|
+
# @return [Google::Apis::ChatV1::Status]
|
403
|
+
attr_accessor :error
|
404
|
+
|
405
|
+
def initialize(**args)
|
406
|
+
update!(**args)
|
407
|
+
end
|
408
|
+
|
409
|
+
# Update properties of this object
|
410
|
+
def update!(**args)
|
411
|
+
@deployment = args[:deployment] if args.key?(:deployment)
|
412
|
+
@deployment_function = args[:deployment_function] if args.key?(:deployment_function)
|
413
|
+
@error = args[:error] if args.key?(:error)
|
414
|
+
end
|
415
|
+
end
|
416
|
+
|
374
417
|
# Represents a color in the RGBA color space. This representation is designed
|
375
418
|
# for simplicity of conversion to/from color representations in various
|
376
419
|
# languages over compactness. For example, the fields of this representation can
|
@@ -462,7 +505,7 @@ module Google
|
|
462
505
|
# Represents information about the user's client, such as locale, host app, and
|
463
506
|
# platform. For Chat apps, `CommonEventObject` includes data submitted by users
|
464
507
|
# interacting with cards, like data entered in [dialogs](https://developers.
|
465
|
-
# google.com/chat/how-tos/
|
508
|
+
# google.com/chat/how-tos/dialogs).
|
466
509
|
class CommonEventObject
|
467
510
|
include Google::Apis::Core::Hashable
|
468
511
|
|
@@ -473,7 +516,7 @@ module Google
|
|
473
516
|
# array of `StringInput` objects. For a date-time picker, a `DateTimeInput`. For
|
474
517
|
# a date-only picker, a `DateInput`. For a time-only picker, a `TimeInput`.
|
475
518
|
# Corresponds with the data entered by a user on a card in a [dialog](https://
|
476
|
-
# developers.google.com/chat/how-tos/
|
519
|
+
# developers.google.com/chat/how-tos/dialogs).
|
477
520
|
# Corresponds to the JSON property `formInputs`
|
478
521
|
# @return [Hash<String,Google::Apis::ChatV1::Inputs>]
|
479
522
|
attr_accessor :form_inputs
|
@@ -595,12 +638,12 @@ module Google
|
|
595
638
|
# Represents information about the user's client, such as locale, host app, and
|
596
639
|
# platform. For Chat apps, `CommonEventObject` includes data submitted by users
|
597
640
|
# interacting with cards, like data entered in [dialogs](https://developers.
|
598
|
-
# google.com/chat/how-tos/
|
641
|
+
# google.com/chat/how-tos/dialogs).
|
599
642
|
# Corresponds to the JSON property `common`
|
600
643
|
# @return [Google::Apis::ChatV1::CommonEventObject]
|
601
644
|
attr_accessor :common
|
602
645
|
|
603
|
-
# The URL the
|
646
|
+
# The URL the Chat app should redirect the user to after they have completed an
|
604
647
|
# authorization or configuration flow outside of Google Chat. See the [
|
605
648
|
# Authorizing access to 3p services guide](/chat/how-tos/auth-3p) for more
|
606
649
|
# information.
|
@@ -608,8 +651,8 @@ module Google
|
|
608
651
|
# @return [String]
|
609
652
|
attr_accessor :config_complete_redirect_url
|
610
653
|
|
611
|
-
# The type of [dialog](https://developers.google.com/chat/how-tos/
|
612
|
-
#
|
654
|
+
# The type of [dialog](https://developers.google.com/chat/how-tos/dialogs) event
|
655
|
+
# received.
|
613
656
|
# Corresponds to the JSON property `dialogEventType`
|
614
657
|
# @return [String]
|
615
658
|
attr_accessor :dialog_event_type
|
@@ -620,7 +663,7 @@ module Google
|
|
620
663
|
attr_accessor :event_time
|
621
664
|
|
622
665
|
# True when the event is related to [dialogs](https://developers.google.com/chat/
|
623
|
-
# how-tos/
|
666
|
+
# how-tos/dialogs).
|
624
667
|
# Corresponds to the JSON property `isDialogEvent`
|
625
668
|
# @return [Boolean]
|
626
669
|
attr_accessor :is_dialog_event
|
@@ -632,21 +675,24 @@ module Google
|
|
632
675
|
attr_accessor :message
|
633
676
|
|
634
677
|
# A space in Google Chat. Spaces are conversations between two or more users or
|
635
|
-
# 1:1 messages between a user and a Chat
|
678
|
+
# 1:1 messages between a user and a Chat app.
|
636
679
|
# Corresponds to the JSON property `space`
|
637
680
|
# @return [Google::Apis::ChatV1::Space]
|
638
681
|
attr_accessor :space
|
639
682
|
|
640
|
-
# The
|
641
|
-
# field of the `spaces.message.create` request for more information.
|
683
|
+
# The Chat app-defined key for the thread related to the event. See the
|
684
|
+
# thread_key field of the `spaces.message.create` request for more information.
|
642
685
|
# Corresponds to the JSON property `threadKey`
|
643
686
|
# @return [String]
|
644
687
|
attr_accessor :thread_key
|
645
688
|
|
646
|
-
# A secret value that
|
647
|
-
#
|
648
|
-
#
|
649
|
-
#
|
689
|
+
# A secret value that legacy Chat apps can use to verify if a request is from
|
690
|
+
# Google. Google randomly generates the token, and its value remains static. You
|
691
|
+
# can obtain, revoke, or regenerate the token from the [Chat API configuration
|
692
|
+
# page](https://console.cloud.google.com/apis/api/chat.googleapis.com/hangouts-
|
693
|
+
# chat) in the Google Cloud Console. Modern Chat apps don't use this field. It
|
694
|
+
# is absent from API responses and the [Chat API configuration page](https://
|
695
|
+
# console.cloud.google.com/apis/api/chat.googleapis.com/hangouts-chat).
|
650
696
|
# Corresponds to the JSON property `token`
|
651
697
|
# @return [String]
|
652
698
|
attr_accessor :token
|
@@ -718,12 +764,13 @@ module Google
|
|
718
764
|
end
|
719
765
|
end
|
720
766
|
|
721
|
-
# Contains a [dialog](https://developers.google.com/chat/how-tos/
|
722
|
-
#
|
767
|
+
# Contains a [dialog](https://developers.google.com/chat/how-tos/dialogs) and
|
768
|
+
# request status code.
|
723
769
|
class DialogAction
|
724
770
|
include Google::Apis::Core::Hashable
|
725
771
|
|
726
|
-
# Represents the status
|
772
|
+
# Represents the status for a request to either invoke or submit a [dialog](
|
773
|
+
# https://developers.google.com/chat/how-tos/dialogs).
|
727
774
|
# Corresponds to the JSON property `actionStatus`
|
728
775
|
# @return [Google::Apis::ChatV1::ActionStatus]
|
729
776
|
attr_accessor :action_status
|
@@ -763,46 +810,6 @@ module Google
|
|
763
810
|
end
|
764
811
|
end
|
765
812
|
|
766
|
-
# JSON payload of error messages. If the Cloud Logging API is enabled, these
|
767
|
-
# error messages are logged to [Google Cloud Logging](https://cloud.google.com/
|
768
|
-
# logging/docs).
|
769
|
-
class DynamiteIntegrationLogEntry
|
770
|
-
include Google::Apis::Core::Hashable
|
771
|
-
|
772
|
-
# The deployment that caused the error. For Chat bots built in Apps Script, this
|
773
|
-
# is the deployment ID defined by Apps Script.
|
774
|
-
# Corresponds to the JSON property `deployment`
|
775
|
-
# @return [String]
|
776
|
-
attr_accessor :deployment
|
777
|
-
|
778
|
-
# The unencrypted `callback_method` name that was running when the error was
|
779
|
-
# encountered.
|
780
|
-
# Corresponds to the JSON property `deploymentFunction`
|
781
|
-
# @return [String]
|
782
|
-
attr_accessor :deployment_function
|
783
|
-
|
784
|
-
# The `Status` type defines a logical error model that is suitable for different
|
785
|
-
# programming environments, including REST APIs and RPC APIs. It is used by [
|
786
|
-
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
787
|
-
# data: error code, error message, and error details. You can find out more
|
788
|
-
# about this error model and how to work with it in the [API Design Guide](https:
|
789
|
-
# //cloud.google.com/apis/design/errors).
|
790
|
-
# Corresponds to the JSON property `error`
|
791
|
-
# @return [Google::Apis::ChatV1::Status]
|
792
|
-
attr_accessor :error
|
793
|
-
|
794
|
-
def initialize(**args)
|
795
|
-
update!(**args)
|
796
|
-
end
|
797
|
-
|
798
|
-
# Update properties of this object
|
799
|
-
def update!(**args)
|
800
|
-
@deployment = args[:deployment] if args.key?(:deployment)
|
801
|
-
@deployment_function = args[:deployment_function] if args.key?(:deployment_function)
|
802
|
-
@error = args[:error] if args.key?(:error)
|
803
|
-
end
|
804
|
-
end
|
805
|
-
|
806
813
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
807
814
|
# messages in your APIs. A typical example is to use it as the request or the
|
808
815
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -825,8 +832,8 @@ module Google
|
|
825
832
|
include Google::Apis::Core::Hashable
|
826
833
|
|
827
834
|
# The method name is used to identify which part of the form triggered the form
|
828
|
-
# submission. This information is echoed back to the
|
829
|
-
# click event. The same method name can be used for several elements that
|
835
|
+
# submission. This information is echoed back to the Chat app as part of the
|
836
|
+
# card click event. The same method name can be used for several elements that
|
830
837
|
# trigger a common behavior if desired.
|
831
838
|
# Corresponds to the JSON property `actionMethodName`
|
832
839
|
# @return [String]
|
@@ -2355,12 +2362,13 @@ module Google
|
|
2355
2362
|
end
|
2356
2363
|
end
|
2357
2364
|
|
2358
|
-
# A matched url in a Chat message. Chat
|
2359
|
-
# information, refer to [Unfurl links](/chat/how-
|
2365
|
+
# A matched url in a Chat message. Chat apps can unfurl matched URLs. For more
|
2366
|
+
# information, refer to [Unfurl links](https://developers.google.com/chat/how-
|
2367
|
+
# tos/link-unfurling).
|
2360
2368
|
class MatchedUrl
|
2361
2369
|
include Google::Apis::Core::Hashable
|
2362
2370
|
|
2363
|
-
# The url that was matched.
|
2371
|
+
# Output only. The url that was matched.
|
2364
2372
|
# Corresponds to the JSON property `url`
|
2365
2373
|
# @return [String]
|
2366
2374
|
attr_accessor :url
|
@@ -2436,7 +2444,7 @@ module Google
|
|
2436
2444
|
class Message
|
2437
2445
|
include Google::Apis::Core::Hashable
|
2438
2446
|
|
2439
|
-
# Parameters that a
|
2447
|
+
# Parameters that a Chat app can use to configure how it's response is posted.
|
2440
2448
|
# Corresponds to the JSON property `actionResponse`
|
2441
2449
|
# @return [Google::Apis::ChatV1::ActionResponse]
|
2442
2450
|
attr_accessor :action_response
|
@@ -2446,7 +2454,7 @@ module Google
|
|
2446
2454
|
# @return [Array<Google::Apis::ChatV1::Annotation>]
|
2447
2455
|
attr_accessor :annotations
|
2448
2456
|
|
2449
|
-
# Plain-text body of the message with all
|
2457
|
+
# Plain-text body of the message with all Chat app mentions stripped out.
|
2450
2458
|
# Corresponds to the JSON property `argumentText`
|
2451
2459
|
# @return [String]
|
2452
2460
|
attr_accessor :argument_text
|
@@ -2481,8 +2489,9 @@ module Google
|
|
2481
2489
|
# @return [String]
|
2482
2490
|
attr_accessor :last_update_time
|
2483
2491
|
|
2484
|
-
# A matched url in a Chat message. Chat
|
2485
|
-
# information, refer to [Unfurl links](/chat/how-
|
2492
|
+
# A matched url in a Chat message. Chat apps can unfurl matched URLs. For more
|
2493
|
+
# information, refer to [Unfurl links](https://developers.google.com/chat/how-
|
2494
|
+
# tos/link-unfurling).
|
2486
2495
|
# Corresponds to the JSON property `matchedUrl`
|
2487
2496
|
# @return [Google::Apis::ChatV1::MatchedUrl]
|
2488
2497
|
attr_accessor :matched_url
|
@@ -2493,13 +2502,6 @@ module Google
|
|
2493
2502
|
# @return [String]
|
2494
2503
|
attr_accessor :name
|
2495
2504
|
|
2496
|
-
# Text for generating preview chips. This text will not be displayed to the user,
|
2497
|
-
# but any links to images, web pages, videos, etc. included here will generate
|
2498
|
-
# preview chips.
|
2499
|
-
# Corresponds to the JSON property `previewText`
|
2500
|
-
# @return [String]
|
2501
|
-
attr_accessor :preview_text
|
2502
|
-
|
2503
2505
|
# A user in Google Chat.
|
2504
2506
|
# Corresponds to the JSON property `sender`
|
2505
2507
|
# @return [Google::Apis::ChatV1::User]
|
@@ -2512,12 +2514,13 @@ module Google
|
|
2512
2514
|
attr_accessor :slash_command
|
2513
2515
|
|
2514
2516
|
# A space in Google Chat. Spaces are conversations between two or more users or
|
2515
|
-
# 1:1 messages between a user and a Chat
|
2517
|
+
# 1:1 messages between a user and a Chat app.
|
2516
2518
|
# Corresponds to the JSON property `space`
|
2517
2519
|
# @return [Google::Apis::ChatV1::Space]
|
2518
2520
|
attr_accessor :space
|
2519
2521
|
|
2520
|
-
# Plain-text body of the message.
|
2522
|
+
# Plain-text body of the message. The first link to an image, video, web page,
|
2523
|
+
# or other preview-able item generates a preview chip.
|
2521
2524
|
# Corresponds to the JSON property `text`
|
2522
2525
|
# @return [String]
|
2523
2526
|
attr_accessor :text
|
@@ -2543,7 +2546,6 @@ module Google
|
|
2543
2546
|
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
|
2544
2547
|
@matched_url = args[:matched_url] if args.key?(:matched_url)
|
2545
2548
|
@name = args[:name] if args.key?(:name)
|
2546
|
-
@preview_text = args[:preview_text] if args.key?(:preview_text)
|
2547
2549
|
@sender = args[:sender] if args.key?(:sender)
|
2548
2550
|
@slash_command = args[:slash_command] if args.key?(:slash_command)
|
2549
2551
|
@space = args[:space] if args.key?(:space)
|
@@ -2689,7 +2691,7 @@ module Google
|
|
2689
2691
|
end
|
2690
2692
|
|
2691
2693
|
# A space in Google Chat. Spaces are conversations between two or more users or
|
2692
|
-
# 1:1 messages between a user and a Chat
|
2694
|
+
# 1:1 messages between a user and a Chat app.
|
2693
2695
|
class Space
|
2694
2696
|
include Google::Apis::Core::Hashable
|
2695
2697
|
|
@@ -2699,25 +2701,26 @@ module Google
|
|
2699
2701
|
# @return [String]
|
2700
2702
|
attr_accessor :display_name
|
2701
2703
|
|
2702
|
-
#
|
2704
|
+
# Resource name of the space, in the form "spaces/*". Example: spaces/
|
2703
2705
|
# AAAAAAAAAAAA
|
2704
2706
|
# Corresponds to the JSON property `name`
|
2705
2707
|
# @return [String]
|
2706
2708
|
attr_accessor :name
|
2707
2709
|
|
2708
|
-
# Output only. Whether the space is a DM between a
|
2710
|
+
# Output only. Whether the space is a DM between a Chat app and a single human.
|
2709
2711
|
# Corresponds to the JSON property `singleUserBotDm`
|
2710
2712
|
# @return [Boolean]
|
2711
2713
|
attr_accessor :single_user_bot_dm
|
2712
2714
|
alias_method :single_user_bot_dm?, :single_user_bot_dm
|
2713
2715
|
|
2714
|
-
# Output only. Whether the messages are threaded in this space.
|
2716
|
+
# Output only. Output only. Whether the messages are threaded in this space.
|
2715
2717
|
# Corresponds to the JSON property `threaded`
|
2716
2718
|
# @return [Boolean]
|
2717
2719
|
attr_accessor :threaded
|
2718
2720
|
alias_method :threaded?, :threaded
|
2719
2721
|
|
2720
|
-
#
|
2722
|
+
# Output only. Deprecated: Use `single_user_bot_dm` instead. Output only. The
|
2723
|
+
# type of a space.
|
2721
2724
|
# Corresponds to the JSON property `type`
|
2722
2725
|
# @return [String]
|
2723
2726
|
attr_accessor :type
|
@@ -2917,7 +2920,7 @@ module Google
|
|
2917
2920
|
class User
|
2918
2921
|
include Google::Apis::Core::Hashable
|
2919
2922
|
|
2920
|
-
# The user's display name.
|
2923
|
+
# Output only. The user's display name.
|
2921
2924
|
# Corresponds to the JSON property `displayName`
|
2922
2925
|
# @return [String]
|
2923
2926
|
attr_accessor :display_name
|
@@ -2927,7 +2930,7 @@ module Google
|
|
2927
2930
|
# @return [String]
|
2928
2931
|
attr_accessor :domain_id
|
2929
2932
|
|
2930
|
-
# When `true`, the user is deleted or their profile is not visible.
|
2933
|
+
# Output only. When `true`, the user is deleted or their profile is not visible.
|
2931
2934
|
# Corresponds to the JSON property `isAnonymous`
|
2932
2935
|
# @return [Boolean]
|
2933
2936
|
attr_accessor :is_anonymous
|
@@ -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.31.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220415"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -82,6 +82,12 @@ module Google
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
83
83
|
end
|
84
84
|
|
85
|
+
class ChatAppLogEntry
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
85
91
|
class Color
|
86
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
93
|
|
@@ -130,12 +136,6 @@ module Google
|
|
130
136
|
include Google::Apis::Core::JsonObjectSupport
|
131
137
|
end
|
132
138
|
|
133
|
-
class DynamiteIntegrationLogEntry
|
134
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
-
|
136
|
-
include Google::Apis::Core::JsonObjectSupport
|
137
|
-
end
|
138
|
-
|
139
139
|
class Empty
|
140
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
141
|
|
@@ -582,6 +582,16 @@ module Google
|
|
582
582
|
end
|
583
583
|
end
|
584
584
|
|
585
|
+
class ChatAppLogEntry
|
586
|
+
# @private
|
587
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
588
|
+
property :deployment, as: 'deployment'
|
589
|
+
property :deployment_function, as: 'deploymentFunction'
|
590
|
+
property :error, as: 'error', class: Google::Apis::ChatV1::Status, decorator: Google::Apis::ChatV1::Status::Representation
|
591
|
+
|
592
|
+
end
|
593
|
+
end
|
594
|
+
|
585
595
|
class Color
|
586
596
|
# @private
|
587
597
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -671,16 +681,6 @@ module Google
|
|
671
681
|
end
|
672
682
|
end
|
673
683
|
|
674
|
-
class DynamiteIntegrationLogEntry
|
675
|
-
# @private
|
676
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
677
|
-
property :deployment, as: 'deployment'
|
678
|
-
property :deployment_function, as: 'deploymentFunction'
|
679
|
-
property :error, as: 'error', class: Google::Apis::ChatV1::Status, decorator: Google::Apis::ChatV1::Status::Representation
|
680
|
-
|
681
|
-
end
|
682
|
-
end
|
683
|
-
|
684
684
|
class Empty
|
685
685
|
# @private
|
686
686
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1148,7 +1148,6 @@ module Google
|
|
1148
1148
|
property :matched_url, as: 'matchedUrl', class: Google::Apis::ChatV1::MatchedUrl, decorator: Google::Apis::ChatV1::MatchedUrl::Representation
|
1149
1149
|
|
1150
1150
|
property :name, as: 'name'
|
1151
|
-
property :preview_text, as: 'previewText'
|
1152
1151
|
property :sender, as: 'sender', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
|
1153
1152
|
|
1154
1153
|
property :slash_command, as: 'slashCommand', class: Google::Apis::ChatV1::SlashCommand, decorator: Google::Apis::ChatV1::SlashCommand::Representation
|
@@ -61,13 +61,10 @@ module Google
|
|
61
61
|
# Optional. A unique request ID for this message. Specifying an existing request
|
62
62
|
# ID returns the message created with that ID instead of creating a new message.
|
63
63
|
# @param [String] thread_key
|
64
|
-
# Optional. Opaque thread identifier
|
65
|
-
#
|
66
|
-
#
|
67
|
-
#
|
68
|
-
# webhooks from having to store the Google Chat thread ID of a thread (created
|
69
|
-
# earlier by them) to post further updates to it. Has no effect if thread field,
|
70
|
-
# corresponding to an existing thread, is set in message.
|
64
|
+
# Optional. Opaque thread identifier. To start or add to a thread, create a
|
65
|
+
# message and specify a `threadKey` instead of thread.name. (Setting thread.name
|
66
|
+
# has no effect.) The first message with a given `threadKey` starts a new thread.
|
67
|
+
# Subsequent messages with the same `threadKey` post into the same thread.
|
71
68
|
# @param [String] fields
|
72
69
|
# Selector specifying which fields to include in a partial response.
|
73
70
|
# @param [String] quota_user
|
@@ -109,13 +106,10 @@ module Google
|
|
109
106
|
# Optional. A unique request ID for this message. Specifying an existing request
|
110
107
|
# ID returns the message created with that ID instead of creating a new message.
|
111
108
|
# @param [String] thread_key
|
112
|
-
# Optional. Opaque thread identifier
|
113
|
-
#
|
114
|
-
#
|
115
|
-
#
|
116
|
-
# webhooks from having to store the Google Chat thread ID of a thread (created
|
117
|
-
# earlier by them) to post further updates to it. Has no effect if thread field,
|
118
|
-
# corresponding to an existing thread, is set in message.
|
109
|
+
# Optional. Opaque thread identifier. To start or add to a thread, create a
|
110
|
+
# message and specify a `threadKey` instead of thread.name. (Setting thread.name
|
111
|
+
# has no effect.) The first message with a given `threadKey` starts a new thread.
|
112
|
+
# Subsequent messages with the same `threadKey` post into the same thread.
|
119
113
|
# @param [String] fields
|
120
114
|
# Selector specifying which fields to include in a partial response.
|
121
115
|
# @param [String] quota_user
|
@@ -157,13 +151,10 @@ module Google
|
|
157
151
|
# Optional. A unique request ID for this message. Specifying an existing request
|
158
152
|
# ID returns the message created with that ID instead of creating a new message.
|
159
153
|
# @param [String] thread_key
|
160
|
-
# Optional. Opaque thread identifier
|
161
|
-
#
|
162
|
-
#
|
163
|
-
#
|
164
|
-
# webhooks from having to store the Google Chat thread ID of a thread (created
|
165
|
-
# earlier by them) to post further updates to it. Has no effect if thread field,
|
166
|
-
# corresponding to an existing thread, is set in message.
|
154
|
+
# Optional. Opaque thread identifier. To start or add to a thread, create a
|
155
|
+
# message and specify a `threadKey` instead of thread.name. (Setting thread.name
|
156
|
+
# has no effect.) The first message with a given `threadKey` starts a new thread.
|
157
|
+
# Subsequent messages with the same `threadKey` post into the same thread.
|
167
158
|
# @param [String] fields
|
168
159
|
# Selector specifying which fields to include in a partial response.
|
169
160
|
# @param [String] quota_user
|
@@ -243,13 +234,10 @@ module Google
|
|
243
234
|
# Optional. A unique request ID for this message. Specifying an existing request
|
244
235
|
# ID returns the message created with that ID instead of creating a new message.
|
245
236
|
# @param [String] thread_key
|
246
|
-
# Optional. Opaque thread identifier
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
# webhooks from having to store the Google Chat thread ID of a thread (created
|
251
|
-
# earlier by them) to post further updates to it. Has no effect if thread field,
|
252
|
-
# corresponding to an existing thread, is set in message.
|
237
|
+
# Optional. Opaque thread identifier. To start or add to a thread, create a
|
238
|
+
# message and specify a `threadKey` instead of thread.name. (Setting thread.name
|
239
|
+
# has no effect.) The first message with a given `threadKey` starts a new thread.
|
240
|
+
# Subsequent messages with the same `threadKey` post into the same thread.
|
253
241
|
# @param [String] fields
|
254
242
|
# Selector specifying which fields to include in a partial response.
|
255
243
|
# @param [String] quota_user
|
@@ -291,13 +279,10 @@ module Google
|
|
291
279
|
# Optional. A unique request ID for this message. Specifying an existing request
|
292
280
|
# ID returns the message created with that ID instead of creating a new message.
|
293
281
|
# @param [String] thread_key
|
294
|
-
# Optional. Opaque thread identifier
|
295
|
-
#
|
296
|
-
#
|
297
|
-
#
|
298
|
-
# webhooks from having to store the Google Chat thread ID of a thread (created
|
299
|
-
# earlier by them) to post further updates to it. Has no effect if thread field,
|
300
|
-
# corresponding to an existing thread, is set in message.
|
282
|
+
# Optional. Opaque thread identifier. To start or add to a thread, create a
|
283
|
+
# message and specify a `threadKey` instead of thread.name. (Setting thread.name
|
284
|
+
# has no effect.) The first message with a given `threadKey` starts a new thread.
|
285
|
+
# Subsequent messages with the same `threadKey` post into the same thread.
|
301
286
|
# @param [String] fields
|
302
287
|
# Selector specifying which fields to include in a partial response.
|
303
288
|
# @param [String] quota_user
|
@@ -339,13 +324,10 @@ module Google
|
|
339
324
|
# Optional. A unique request ID for this message. Specifying an existing request
|
340
325
|
# ID returns the message created with that ID instead of creating a new message.
|
341
326
|
# @param [String] thread_key
|
342
|
-
# Optional. Opaque thread identifier
|
343
|
-
#
|
344
|
-
#
|
345
|
-
#
|
346
|
-
# webhooks from having to store the Google Chat thread ID of a thread (created
|
347
|
-
# earlier by them) to post further updates to it. Has no effect if thread field,
|
348
|
-
# corresponding to an existing thread, is set in message.
|
327
|
+
# Optional. Opaque thread identifier. To start or add to a thread, create a
|
328
|
+
# message and specify a `threadKey` instead of thread.name. (Setting thread.name
|
329
|
+
# has no effect.) The first message with a given `threadKey` starts a new thread.
|
330
|
+
# Subsequent messages with the same `threadKey` post into the same thread.
|
349
331
|
# @param [String] fields
|
350
332
|
# Selector specifying which fields to include in a partial response.
|
351
333
|
# @param [String] quota_user
|
@@ -377,7 +359,8 @@ module Google
|
|
377
359
|
execute_or_queue_command(command, &block)
|
378
360
|
end
|
379
361
|
|
380
|
-
# Returns a space.
|
362
|
+
# Returns a space. Requires [service account authentication](https://developers.
|
363
|
+
# google.com/chat/api/guides/auth/service-accounts).
|
381
364
|
# @param [String] name
|
382
365
|
# Required. Resource name of the space, in the form "spaces/*". Example: spaces/
|
383
366
|
# AAAAAAAAAAAA
|
@@ -408,7 +391,9 @@ module Google
|
|
408
391
|
execute_or_queue_command(command, &block)
|
409
392
|
end
|
410
393
|
|
411
|
-
# Lists spaces the caller is a member of.
|
394
|
+
# Lists spaces the caller is a member of. Requires [service account
|
395
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/service-
|
396
|
+
# accounts).
|
412
397
|
# @param [Fixnum] page_size
|
413
398
|
# Requested page size. The value is capped at 1000. Server may return fewer
|
414
399
|
# results than requested. If unspecified, server will default to 100.
|
@@ -452,13 +437,10 @@ module Google
|
|
452
437
|
# Optional. A unique request ID for this message. Specifying an existing request
|
453
438
|
# ID returns the message created with that ID instead of creating a new message.
|
454
439
|
# @param [String] thread_key
|
455
|
-
# Optional. Opaque thread identifier
|
456
|
-
#
|
457
|
-
#
|
458
|
-
#
|
459
|
-
# webhooks from having to store the Google Chat thread ID of a thread (created
|
460
|
-
# earlier by them) to post further updates to it. Has no effect if thread field,
|
461
|
-
# corresponding to an existing thread, is set in message.
|
440
|
+
# Optional. Opaque thread identifier. To start or add to a thread, create a
|
441
|
+
# message and specify a `threadKey` instead of thread.name. (Setting thread.name
|
442
|
+
# has no effect.) The first message with a given `threadKey` starts a new thread.
|
443
|
+
# Subsequent messages with the same `threadKey` post into the same thread.
|
462
444
|
# @param [String] fields
|
463
445
|
# Selector specifying which fields to include in a partial response.
|
464
446
|
# @param [String] quota_user
|
@@ -490,7 +472,8 @@ module Google
|
|
490
472
|
execute_or_queue_command(command, &block)
|
491
473
|
end
|
492
474
|
|
493
|
-
# Returns a membership.
|
475
|
+
# Returns a membership. Requires [service account authentication](https://
|
476
|
+
# developers.google.com/chat/api/guides/auth/service-accounts).
|
494
477
|
# @param [String] name
|
495
478
|
# Required. Resource name of the membership to be retrieved, in the form "spaces/
|
496
479
|
# */members/*". Example: spaces/AAAAAAAAAAAA/members/111111111111111111111
|
@@ -521,7 +504,8 @@ module Google
|
|
521
504
|
execute_or_queue_command(command, &block)
|
522
505
|
end
|
523
506
|
|
524
|
-
# Lists human memberships in a space.
|
507
|
+
# Lists human memberships in a space. Requires [service account authentication](
|
508
|
+
# https://developers.google.com/chat/api/guides/auth/service-accounts).
|
525
509
|
# @param [String] parent
|
526
510
|
# Required. The resource name of the space for which membership list is to be
|
527
511
|
# fetched, in the form "spaces/*". Example: spaces/AAAAAAAAAAAA
|
@@ -559,7 +543,8 @@ module Google
|
|
559
543
|
execute_or_queue_command(command, &block)
|
560
544
|
end
|
561
545
|
|
562
|
-
# Creates a message.
|
546
|
+
# Creates a message. Requires [service account authentication](https://
|
547
|
+
# developers.google.com/chat/api/guides/auth/service-accounts).
|
563
548
|
# @param [String] parent
|
564
549
|
# Required. Space resource name, in the form "spaces/*". Example: spaces/
|
565
550
|
# AAAAAAAAAAA
|
@@ -568,13 +553,10 @@ module Google
|
|
568
553
|
# Optional. A unique request ID for this message. Specifying an existing request
|
569
554
|
# ID returns the message created with that ID instead of creating a new message.
|
570
555
|
# @param [String] thread_key
|
571
|
-
# Optional. Opaque thread identifier
|
572
|
-
#
|
573
|
-
#
|
574
|
-
#
|
575
|
-
# webhooks from having to store the Google Chat thread ID of a thread (created
|
576
|
-
# earlier by them) to post further updates to it. Has no effect if thread field,
|
577
|
-
# corresponding to an existing thread, is set in message.
|
556
|
+
# Optional. Opaque thread identifier. To start or add to a thread, create a
|
557
|
+
# message and specify a `threadKey` instead of thread.name. (Setting thread.name
|
558
|
+
# has no effect.) The first message with a given `threadKey` starts a new thread.
|
559
|
+
# Subsequent messages with the same `threadKey` post into the same thread.
|
578
560
|
# @param [String] fields
|
579
561
|
# Selector specifying which fields to include in a partial response.
|
580
562
|
# @param [String] quota_user
|
@@ -606,7 +588,8 @@ module Google
|
|
606
588
|
execute_or_queue_command(command, &block)
|
607
589
|
end
|
608
590
|
|
609
|
-
# Deletes a message.
|
591
|
+
# Deletes a message. Requires [service account authentication](https://
|
592
|
+
# developers.google.com/chat/api/guides/auth/service-accounts).
|
610
593
|
# @param [String] name
|
611
594
|
# Required. Resource name of the message to be deleted, in the form "spaces/*/
|
612
595
|
# messages/*" Example: spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB
|
@@ -637,7 +620,8 @@ module Google
|
|
637
620
|
execute_or_queue_command(command, &block)
|
638
621
|
end
|
639
622
|
|
640
|
-
# Returns a message.
|
623
|
+
# Returns a message. Requires [service account authentication](https://
|
624
|
+
# developers.google.com/chat/api/guides/auth/service-accounts).
|
641
625
|
# @param [String] name
|
642
626
|
# Required. Resource name of the message to be retrieved, in the form "spaces/*/
|
643
627
|
# messages/*". Example: spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB
|
@@ -668,7 +652,8 @@ module Google
|
|
668
652
|
execute_or_queue_command(command, &block)
|
669
653
|
end
|
670
654
|
|
671
|
-
# Updates a message.
|
655
|
+
# Updates a message. Requires [service account authentication](https://
|
656
|
+
# developers.google.com/chat/api/guides/auth/service-accounts).
|
672
657
|
# @param [String] name
|
673
658
|
# Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
|
674
659
|
# messages/BBBBBBBBBBB.BBBBBBBBBBB`
|
@@ -707,7 +692,8 @@ module Google
|
|
707
692
|
end
|
708
693
|
|
709
694
|
# Gets the metadata of a message attachment. The attachment data is fetched
|
710
|
-
# using the media API.
|
695
|
+
# using the media API. Requires [service account authentication](https://
|
696
|
+
# developers.google.com/chat/api/guides/auth/service-accounts).
|
711
697
|
# @param [String] name
|
712
698
|
# Required. Resource name of the attachment, in the form "spaces/*/messages/*/
|
713
699
|
# attachments/*".
|
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.31.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: 2022-
|
11
|
+
date: 2022-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.31.0
|
62
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: []
|