google-apis-chat_v1 0.76.0 → 0.78.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 +8 -0
- data/lib/google/apis/chat_v1/classes.rb +53 -0
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +31 -0
- data/lib/google/apis/chat_v1/service.rb +54 -57
- 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: 4c49553e1a4bb00f33a2dbcbcd8a0de9d7dbded6f219fc942e0f7584c256569e
|
4
|
+
data.tar.gz: cfaf907d9b16f2aeeea22d480d624c9395a8797066c92cf15d8283888fb800d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8992505e2843e24f8bb949c68a6203fec39b1766a525bd7f1467198a8203bd00c9d03a740895661f6d1deb8f08ea421665a0135d8c928d72404319db10c8c53d
|
7
|
+
data.tar.gz: 19c6bb9c828429b92a8c933cf634d497c1dbb53c371c1b2ace20ea1bcb88a00bdcf7231dd84c03a9878f1d8db859f3704cea3c60950521ddaad65ffafb847ccc
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-chat_v1
|
2
2
|
|
3
|
+
### v0.78.0 (2023-12-03)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20231121
|
6
|
+
|
7
|
+
### v0.77.0 (2023-11-26)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20231116
|
10
|
+
|
3
11
|
### v0.76.0 (2023-11-19)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20231114
|
@@ -65,6 +65,12 @@ module Google
|
|
65
65
|
# @return [String]
|
66
66
|
attr_accessor :type
|
67
67
|
|
68
|
+
# The response of the updated widget. Used to provide autocomplete options for a
|
69
|
+
# widget.
|
70
|
+
# Corresponds to the JSON property `updatedWidget`
|
71
|
+
# @return [Google::Apis::ChatV1::UpdatedWidget]
|
72
|
+
attr_accessor :updated_widget
|
73
|
+
|
68
74
|
# Input only. URL for users to authenticate or configure. (Only for `
|
69
75
|
# REQUEST_CONFIG` response types.)
|
70
76
|
# Corresponds to the JSON property `url`
|
@@ -79,6 +85,7 @@ module Google
|
|
79
85
|
def update!(**args)
|
80
86
|
@dialog_action = args[:dialog_action] if args.key?(:dialog_action)
|
81
87
|
@type = args[:type] if args.key?(:type)
|
88
|
+
@updated_widget = args[:updated_widget] if args.key?(:updated_widget)
|
82
89
|
@url = args[:url] if args.key?(:url)
|
83
90
|
end
|
84
91
|
end
|
@@ -3631,6 +3638,25 @@ module Google
|
|
3631
3638
|
end
|
3632
3639
|
end
|
3633
3640
|
|
3641
|
+
# List of widget autocomplete results.
|
3642
|
+
class SelectionItems
|
3643
|
+
include Google::Apis::Core::Hashable
|
3644
|
+
|
3645
|
+
# An array of the SelectionItem objects.
|
3646
|
+
# Corresponds to the JSON property `items`
|
3647
|
+
# @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem>]
|
3648
|
+
attr_accessor :items
|
3649
|
+
|
3650
|
+
def initialize(**args)
|
3651
|
+
update!(**args)
|
3652
|
+
end
|
3653
|
+
|
3654
|
+
# Update properties of this object
|
3655
|
+
def update!(**args)
|
3656
|
+
@items = args[:items] if args.key?(:items)
|
3657
|
+
end
|
3658
|
+
end
|
3659
|
+
|
3634
3660
|
#
|
3635
3661
|
class SetUpSpaceRequest
|
3636
3662
|
include Google::Apis::Core::Hashable
|
@@ -4100,6 +4126,33 @@ module Google
|
|
4100
4126
|
end
|
4101
4127
|
end
|
4102
4128
|
|
4129
|
+
# The response of the updated widget. Used to provide autocomplete options for a
|
4130
|
+
# widget.
|
4131
|
+
class UpdatedWidget
|
4132
|
+
include Google::Apis::Core::Hashable
|
4133
|
+
|
4134
|
+
# List of widget autocomplete results.
|
4135
|
+
# Corresponds to the JSON property `suggestions`
|
4136
|
+
# @return [Google::Apis::ChatV1::SelectionItems]
|
4137
|
+
attr_accessor :suggestions
|
4138
|
+
|
4139
|
+
# The ID of the updated widget. The ID must match the one for the widget that
|
4140
|
+
# triggered the update request.
|
4141
|
+
# Corresponds to the JSON property `widget`
|
4142
|
+
# @return [String]
|
4143
|
+
attr_accessor :widget
|
4144
|
+
|
4145
|
+
def initialize(**args)
|
4146
|
+
update!(**args)
|
4147
|
+
end
|
4148
|
+
|
4149
|
+
# Update properties of this object
|
4150
|
+
def update!(**args)
|
4151
|
+
@suggestions = args[:suggestions] if args.key?(:suggestions)
|
4152
|
+
@widget = args[:widget] if args.key?(:widget)
|
4153
|
+
end
|
4154
|
+
end
|
4155
|
+
|
4103
4156
|
#
|
4104
4157
|
class UploadAttachmentRequest
|
4105
4158
|
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.78.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231121"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -496,6 +496,12 @@ module Google
|
|
496
496
|
include Google::Apis::Core::JsonObjectSupport
|
497
497
|
end
|
498
498
|
|
499
|
+
class SelectionItems
|
500
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
|
+
|
502
|
+
include Google::Apis::Core::JsonObjectSupport
|
503
|
+
end
|
504
|
+
|
499
505
|
class SetUpSpaceRequest
|
500
506
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
507
|
|
@@ -574,6 +580,12 @@ module Google
|
|
574
580
|
include Google::Apis::Core::JsonObjectSupport
|
575
581
|
end
|
576
582
|
|
583
|
+
class UpdatedWidget
|
584
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
585
|
+
|
586
|
+
include Google::Apis::Core::JsonObjectSupport
|
587
|
+
end
|
588
|
+
|
577
589
|
class UploadAttachmentRequest
|
578
590
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
579
591
|
|
@@ -618,6 +630,8 @@ module Google
|
|
618
630
|
property :dialog_action, as: 'dialogAction', class: Google::Apis::ChatV1::DialogAction, decorator: Google::Apis::ChatV1::DialogAction::Representation
|
619
631
|
|
620
632
|
property :type, as: 'type'
|
633
|
+
property :updated_widget, as: 'updatedWidget', class: Google::Apis::ChatV1::UpdatedWidget, decorator: Google::Apis::ChatV1::UpdatedWidget::Representation
|
634
|
+
|
621
635
|
property :url, as: 'url'
|
622
636
|
end
|
623
637
|
end
|
@@ -1489,6 +1503,14 @@ module Google
|
|
1489
1503
|
end
|
1490
1504
|
end
|
1491
1505
|
|
1506
|
+
class SelectionItems
|
1507
|
+
# @private
|
1508
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1509
|
+
collection :items, as: 'items', class: Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem, decorator: Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem::Representation
|
1510
|
+
|
1511
|
+
end
|
1512
|
+
end
|
1513
|
+
|
1492
1514
|
class SetUpSpaceRequest
|
1493
1515
|
# @private
|
1494
1516
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1608,6 +1630,15 @@ module Google
|
|
1608
1630
|
end
|
1609
1631
|
end
|
1610
1632
|
|
1633
|
+
class UpdatedWidget
|
1634
|
+
# @private
|
1635
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1636
|
+
property :suggestions, as: 'suggestions', class: Google::Apis::ChatV1::SelectionItems, decorator: Google::Apis::ChatV1::SelectionItems::Representation
|
1637
|
+
|
1638
|
+
property :widget, as: 'widget'
|
1639
|
+
end
|
1640
|
+
end
|
1641
|
+
|
1611
1642
|
class UploadAttachmentRequest
|
1612
1643
|
# @private
|
1613
1644
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -219,12 +219,12 @@ module Google
|
|
219
219
|
# Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). With [
|
220
220
|
# user authentication](https://developers.google.com/chat/api/guides/auth/users),
|
221
221
|
# returns the direct message space between the specified user and the
|
222
|
-
# authenticated user. With [
|
223
|
-
#
|
224
|
-
#
|
222
|
+
# authenticated user. With [app authentication](https://developers.google.com/
|
223
|
+
# chat/api/guides/auth/service-accounts), returns the direct message space
|
224
|
+
# between the specified user and the calling Chat app. Requires [user
|
225
225
|
# authentication](https://developers.google.com/chat/api/guides/auth/users) or [
|
226
|
-
#
|
227
|
-
#
|
226
|
+
# app authentication](https://developers.google.com/chat/api/guides/auth/service-
|
227
|
+
# accounts).
|
228
228
|
# @param [String] name
|
229
229
|
# Required. Resource name of the user to find direct message with. Format: `
|
230
230
|
# users/`user``, where ``user`` is either the `id` for the [person](https://
|
@@ -265,10 +265,10 @@ module Google
|
|
265
265
|
|
266
266
|
# Returns details about a space. For an example, see [Get a space](https://
|
267
267
|
# developers.google.com/chat/api/guides/v1/spaces/get). Requires [authentication]
|
268
|
-
# (https://developers.google.com/chat/api/guides/auth).
|
269
|
-
#
|
270
|
-
#
|
271
|
-
#
|
268
|
+
# (https://developers.google.com/chat/api/guides/auth). Supports [app
|
269
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/service-
|
270
|
+
# accounts) and [user authentication](https://developers.google.com/chat/api/
|
271
|
+
# guides/auth/users).
|
272
272
|
# @param [String] name
|
273
273
|
# Required. Resource name of the space, in the form "spaces/*". Format: `spaces/`
|
274
274
|
# space``
|
@@ -302,12 +302,11 @@ module Google
|
|
302
302
|
# Lists spaces the caller is a member of. Group chats and DMs aren't listed
|
303
303
|
# until the first message is sent. For an example, see [List spaces](https://
|
304
304
|
# developers.google.com/chat/api/guides/v1/spaces/list). Requires [
|
305
|
-
# authentication](https://developers.google.com/chat/api/guides/auth).
|
306
|
-
#
|
307
|
-
#
|
308
|
-
#
|
309
|
-
#
|
310
|
-
# is sent.
|
305
|
+
# authentication](https://developers.google.com/chat/api/guides/auth). Supports [
|
306
|
+
# app authentication](https://developers.google.com/chat/api/guides/auth/service-
|
307
|
+
# accounts) and [user authentication](https://developers.google.com/chat/api/
|
308
|
+
# guides/auth/users). Lists spaces visible to the caller or authenticated user.
|
309
|
+
# Group chats and DMs aren't listed until the first message is sent.
|
311
310
|
# @param [String] filter
|
312
311
|
# Optional. A query filter. Requires [user authentication](https://developers.
|
313
312
|
# google.com/chat/api/guides/auth/users). You can filter spaces by the space
|
@@ -317,11 +316,11 @@ module Google
|
|
317
316
|
# SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR`
|
318
317
|
# operator. For example, the following queries are valid: ``` space_type = "
|
319
318
|
# SPACE" spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE" ``` Invalid
|
320
|
-
# queries are rejected by the server with an `INVALID_ARGUMENT` error. With [
|
321
|
-
#
|
322
|
-
#
|
323
|
-
#
|
324
|
-
#
|
319
|
+
# queries are rejected by the server with an `INVALID_ARGUMENT` error. With [app
|
320
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/service-
|
321
|
+
# accounts), this field is ignored and the query always returns all spaces. But
|
322
|
+
# the Chat API still validates the query syntax, so invalid queries are still
|
323
|
+
# rejected.
|
325
324
|
# @param [Fixnum] page_size
|
326
325
|
# Optional. The maximum number of spaces to return. The service might return
|
327
326
|
# fewer than this value. If unspecified, at most 100 spaces are returned. The
|
@@ -569,10 +568,10 @@ module Google
|
|
569
568
|
|
570
569
|
# Returns details about a membership. For an example, see [Get a membership](
|
571
570
|
# https://developers.google.com/chat/api/guides/v1/members/get). Requires [
|
572
|
-
# authentication](https://developers.google.com/chat/api/guides/auth).
|
573
|
-
#
|
574
|
-
#
|
575
|
-
#
|
571
|
+
# authentication](https://developers.google.com/chat/api/guides/auth). Supports [
|
572
|
+
# app authentication](https://developers.google.com/chat/api/guides/auth/service-
|
573
|
+
# accounts) and [user authentication](https://developers.google.com/chat/api/
|
574
|
+
# guides/auth/users).
|
576
575
|
# @param [String] name
|
577
576
|
# Required. Resource name of the membership to retrieve. To get the app's own
|
578
577
|
# membership, you can optionally use `spaces/`space`/members/app`. Format: `
|
@@ -616,9 +615,9 @@ module Google
|
|
616
615
|
# [User authentication](https://developers.google.com/chat/api/guides/auth/users)
|
617
616
|
# lists memberships in spaces that the authenticated user has access to.
|
618
617
|
# Requires [authentication](https://developers.google.com/chat/api/guides/auth).
|
619
|
-
#
|
620
|
-
#
|
621
|
-
#
|
618
|
+
# Supports [app authentication](https://developers.google.com/chat/api/guides/
|
619
|
+
# auth/service-accounts) and [user authentication](https://developers.google.com/
|
620
|
+
# chat/api/guides/auth/users).
|
622
621
|
# @param [String] parent
|
623
622
|
# Required. The resource name of the space for which to fetch a membership list.
|
624
623
|
# Format: spaces/`space`
|
@@ -755,11 +754,11 @@ module Google
|
|
755
754
|
|
756
755
|
# Deletes a message. For an example, see [Delete a message](https://developers.
|
757
756
|
# google.com/chat/api/guides/v1/messages/delete). Requires [authentication](
|
758
|
-
# https://developers.google.com/chat/api/guides/auth).
|
759
|
-
#
|
760
|
-
#
|
761
|
-
#
|
762
|
-
#
|
757
|
+
# https://developers.google.com/chat/api/guides/auth). Supports [app
|
758
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/service-
|
759
|
+
# accounts) and [user authentication](https://developers.google.com/chat/api/
|
760
|
+
# guides/auth/users). When using app authentication, requests can only delete
|
761
|
+
# messages created by the calling Chat app.
|
763
762
|
# @param [String] name
|
764
763
|
# Required. Resource name of the message that you want to delete, in the form `
|
765
764
|
# spaces/*/messages/*` Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.
|
@@ -768,8 +767,8 @@ module Google
|
|
768
767
|
# When `true`, deleting a message also deletes its threaded replies. When `false`
|
769
768
|
# , if a message has threaded replies, deletion fails. Only applies when [
|
770
769
|
# authenticating as a user](https://developers.google.com/chat/api/guides/auth/
|
771
|
-
# users). Has no effect when [authenticating
|
772
|
-
#
|
770
|
+
# users). Has no effect when [authenticating as a Chat app] (https://developers.
|
771
|
+
# google.com/chat/api/guides/auth/service-accounts).
|
773
772
|
# @param [String] fields
|
774
773
|
# Selector specifying which fields to include in a partial response.
|
775
774
|
# @param [String] quota_user
|
@@ -800,11 +799,11 @@ module Google
|
|
800
799
|
|
801
800
|
# Returns details about a message. For an example, see [Read a message](https://
|
802
801
|
# developers.google.com/chat/api/guides/v1/messages/get). Requires [
|
803
|
-
# authentication](https://developers.google.com/chat/api/guides/auth).
|
804
|
-
#
|
805
|
-
#
|
806
|
-
#
|
807
|
-
#
|
802
|
+
# authentication](https://developers.google.com/chat/api/guides/auth). Supports [
|
803
|
+
# app authentication](https://developers.google.com/chat/api/guides/auth/service-
|
804
|
+
# accounts) and [user authentication](https://developers.google.com/chat/api/
|
805
|
+
# guides/auth/users). Note: Might return a message from a blocked member or
|
806
|
+
# space.
|
808
807
|
# @param [String] name
|
809
808
|
# Required. Resource name of the message to retrieve. Format: `spaces/`space`/
|
810
809
|
# messages/`message`` If the message begins with `client-`, then it has a custom
|
@@ -920,11 +919,11 @@ module Google
|
|
920
919
|
# uses a `put` request. We recommend using the `patch` method. For an example,
|
921
920
|
# see [Update a message](https://developers.google.com/chat/api/guides/v1/
|
922
921
|
# messages/update). Requires [authentication](https://developers.google.com/chat/
|
923
|
-
# api/guides/auth).
|
924
|
-
#
|
925
|
-
#
|
926
|
-
#
|
927
|
-
#
|
922
|
+
# api/guides/auth). Supports [app authentication](https://developers.google.com/
|
923
|
+
# chat/api/guides/auth/service-accounts) and [user authentication](https://
|
924
|
+
# developers.google.com/chat/api/guides/auth/users). When using app
|
925
|
+
# authentication, requests can only update messages created by the calling Chat
|
926
|
+
# app.
|
928
927
|
# @param [String] name
|
929
928
|
# Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
|
930
929
|
# messages/BBBBBBBBBBB.BBBBBBBBBBB`
|
@@ -937,9 +936,8 @@ module Google
|
|
937
936
|
# @param [String] update_mask
|
938
937
|
# Required. The field paths to update. Separate multiple values with commas.
|
939
938
|
# Currently supported field paths: - `text` - `attachment` - `cards` (Requires [
|
940
|
-
#
|
941
|
-
#
|
942
|
-
# service-accounts).)
|
939
|
+
# app authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (
|
940
|
+
# Requires [app authentication](/chat/api/guides/auth/service-accounts).)
|
943
941
|
# @param [String] fields
|
944
942
|
# Selector specifying which fields to include in a partial response.
|
945
943
|
# @param [String] quota_user
|
@@ -976,11 +974,11 @@ module Google
|
|
976
974
|
# uses a `put` request. We recommend using the `patch` method. For an example,
|
977
975
|
# see [Update a message](https://developers.google.com/chat/api/guides/v1/
|
978
976
|
# messages/update). Requires [authentication](https://developers.google.com/chat/
|
979
|
-
# api/guides/auth).
|
980
|
-
#
|
981
|
-
#
|
982
|
-
#
|
983
|
-
#
|
977
|
+
# api/guides/auth). Supports [app authentication](https://developers.google.com/
|
978
|
+
# chat/api/guides/auth/service-accounts) and [user authentication](https://
|
979
|
+
# developers.google.com/chat/api/guides/auth/users). When using app
|
980
|
+
# authentication, requests can only update messages created by the calling Chat
|
981
|
+
# app.
|
984
982
|
# @param [String] name
|
985
983
|
# Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
|
986
984
|
# messages/BBBBBBBBBBB.BBBBBBBBBBB`
|
@@ -993,9 +991,8 @@ module Google
|
|
993
991
|
# @param [String] update_mask
|
994
992
|
# Required. The field paths to update. Separate multiple values with commas.
|
995
993
|
# Currently supported field paths: - `text` - `attachment` - `cards` (Requires [
|
996
|
-
#
|
997
|
-
#
|
998
|
-
# service-accounts).)
|
994
|
+
# app authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (
|
995
|
+
# Requires [app authentication](/chat/api/guides/auth/service-accounts).)
|
999
996
|
# @param [String] fields
|
1000
997
|
# Selector specifying which fields to include in a partial response.
|
1001
998
|
# @param [String] quota_user
|
@@ -1031,8 +1028,8 @@ module Google
|
|
1031
1028
|
# using the [media API](https://developers.google.com/chat/api/reference/rest/v1/
|
1032
1029
|
# media/download). For an example, see [Get a message attachment](https://
|
1033
1030
|
# developers.google.com/chat/api/guides/v1/media-and-attachments/get). Requires [
|
1034
|
-
#
|
1035
|
-
#
|
1031
|
+
# app authentication](https://developers.google.com/chat/api/guides/auth/service-
|
1032
|
+
# accounts).
|
1036
1033
|
# @param [String] name
|
1037
1034
|
# Required. Resource name of the attachment, in the form `spaces/*/messages/*/
|
1038
1035
|
# 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.78.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: 2023-
|
11
|
+
date: 2023-12-03 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.78.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: []
|