google-apis-chat_v1 0.76.0 → 0.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 005d8d6c7edccdf3a114dc00ab25d5d87789bf2d339adbcb6dd1a22c5a2521bc
4
- data.tar.gz: 2bc9dd91af3f1fa65a1aef505c3c559c74feb7833406f2eb6f7a39488366f235
3
+ metadata.gz: 4c49553e1a4bb00f33a2dbcbcd8a0de9d7dbded6f219fc942e0f7584c256569e
4
+ data.tar.gz: cfaf907d9b16f2aeeea22d480d624c9395a8797066c92cf15d8283888fb800d4
5
5
  SHA512:
6
- metadata.gz: 8368649471a5a787712aa3489c45c75c44fa6e3a31c67c8cc9582a0bb39874f15f5304f7d2690d23b9a407064684e2484edd77dd651788a75557594421e57165
7
- data.tar.gz: 8459f904c2300ca2d60bcb2dc504df35a6869f1a8904a76909d103f0089f7cad01af39cddf737b1591586d567bd40d13c53008f6398df7286a99ea8c88e4e6dd
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.76.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 = "20231114"
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 [service account authentication](https://developers.
223
- # google.com/chat/api/guides/auth/service-accounts), returns the direct message
224
- # space between the specified user and the calling Chat app. Requires [user
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
- # service account authentication](https://developers.google.com/chat/api/guides/
227
- # auth/service-accounts).
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). Fully supports [service
269
- # account authentication](https://developers.google.com/chat/api/guides/auth/
270
- # service-accounts) and [user authentication](https://developers.google.com/chat/
271
- # api/guides/auth/users).
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). Fully
306
- # supports [service account authentication](https://developers.google.com/chat/
307
- # api/guides/auth/service-accounts) and [user authentication](https://developers.
308
- # google.com/chat/api/guides/auth/users). Lists spaces visible to the caller or
309
- # authenticated user. Group chats and DMs aren't listed until the first message
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
- # service account authentication](https://developers.google.com/chat/api/guides/
322
- # auth/service-accounts), this field is ignored and the query always returns all
323
- # spaces. But the Chat API still validates the query syntax with service
324
- # accounts, so invalid queries are still rejected.
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). Fully
573
- # supports [service account authentication](https://developers.google.com/chat/
574
- # api/guides/auth/service-accounts) and [user authentication](https://developers.
575
- # google.com/chat/api/guides/auth/users).
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
- # Fully supports [service account authentication](https://developers.google.com/
620
- # chat/api/guides/auth/service-accounts) and [user authentication](https://
621
- # developers.google.com/chat/api/guides/auth/users).
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). Fully supports [service
759
- # account authentication](https://developers.google.com/chat/api/guides/auth/
760
- # service-accounts) and [user authentication](https://developers.google.com/chat/
761
- # api/guides/auth/users). Requests authenticated with service accounts can only
762
- # delete messages created by the calling Chat app.
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 with a service account] (https://
772
- # developers.google.com/chat/api/guides/auth/service-accounts).
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). Fully
804
- # supports [service account authentication](https://developers.google.com/chat/
805
- # api/guides/auth/service-accounts) and [user authentication](https://developers.
806
- # google.com/chat/api/guides/auth/users). Note: Might return a message from a
807
- # blocked member or space.
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). Fully supports [service account authentication](https://
924
- # developers.google.com/chat/api/guides/auth/service-accounts) and [user
925
- # authentication](https://developers.google.com/chat/api/guides/auth/users).
926
- # Requests authenticated with service accounts can only update messages created
927
- # by the calling Chat app.
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
- # service account authentication](/chat/api/guides/auth/service-accounts).) - `
941
- # cards_v2` (Requires [service account authentication](/chat/api/guides/auth/
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). Fully supports [service account authentication](https://
980
- # developers.google.com/chat/api/guides/auth/service-accounts) and [user
981
- # authentication](https://developers.google.com/chat/api/guides/auth/users).
982
- # Requests authenticated with service accounts can only update messages created
983
- # by the calling Chat app.
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
- # service account authentication](/chat/api/guides/auth/service-accounts).) - `
997
- # cards_v2` (Requires [service account authentication](/chat/api/guides/auth/
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
- # service account authentication](https://developers.google.com/chat/api/guides/
1035
- # auth/service-accounts).
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.76.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-19 00:00:00.000000000 Z
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.76.0
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: []