Skip to content

Commit 29a96d5

Browse files
feat: Automated regeneration of Chat client (googleapis#12955)
Auto-created at 2025-02-11 13:18:59 +0000 using the toys pull request generator.
1 parent 1c46b63 commit 29a96d5

File tree

3 files changed

+57
-2
lines changed

3 files changed

+57
-2
lines changed

clients/chat/lib/google_api/chat/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Chat.V1 do
2020
API client metadata for GoogleApi.Chat.V1.
2121
"""
2222

23-
@discovery_revision "20250130"
23+
@discovery_revision "20250206"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Chat.V1.Model.AppCommandMetadata do
19+
@moduledoc """
20+
Metadata associated with app commands. App commands are a way for users to invoke and interact with a Chat app. These can be slash commands typed in the compose box, or items directly selected from the integration menu. For more information, see [Respond to quick commands](https://developers.google.com/workspace/chat/quick-commands).
21+
22+
## Attributes
23+
24+
* `appCommandId` (*type:* `integer()`, *default:* `nil`) - The command ID for the given app interaction.
25+
* `appCommandType` (*type:* `String.t`, *default:* `nil`) - The type of the app command.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:appCommandId => integer() | nil,
32+
:appCommandType => String.t() | nil
33+
}
34+
35+
field(:appCommandId)
36+
field(:appCommandType)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.AppCommandMetadata do
40+
def decode(value, options) do
41+
GoogleApi.Chat.V1.Model.AppCommandMetadata.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.AppCommandMetadata do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

clients/chat/lib/google_api/chat/v1/model/deprecated_event.ex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ defmodule GoogleApi.Chat.V1.Model.DeprecatedEvent do
2222
## Attributes
2323
2424
* `action` (*type:* `GoogleApi.Chat.V1.Model.FormAction.t`, *default:* `nil`) - For `CARD_CLICKED` interaction events, the form action data associated when a user clicks a card or dialog. To learn more, see [Read form data input by users on cards](https://developers.google.com/workspace/chat/read-form-data).
25+
* `appCommandMetadata` (*type:* `GoogleApi.Chat.V1.Model.AppCommandMetadata.t`, *default:* `nil`) - Populated for app commands, including slash commands and quick commands.
2526
* `common` (*type:* `GoogleApi.Chat.V1.Model.CommonEventObject.t`, *default:* `nil`) - Represents information about the user's client, such as locale, host app, and platform. For Chat apps, `CommonEventObject` includes information submitted by users interacting with [dialogs](https://developers.google.com/workspace/chat/dialogs), like data entered on a card.
26-
* `configCompleteRedirectUrl` (*type:* `String.t`, *default:* `nil`) - This URL is populated for `MESSAGE` and `ADDED_TO_SPACE` interaction events. After completing an authorization or configuration flow outside of Google Chat, users must be redirected to this URL to signal to Google Chat that the authorization or configuration flow was successful. For more information, see [Connect a Chat app with other services and tools](https://developers.google.com/workspace/chat/connect-web-services-tools). In [Developer Preview](https://developers.google.com/workspace/preview), this URL is also populated for `APP_COMMAND` interaction events.
27+
* `configCompleteRedirectUrl` (*type:* `String.t`, *default:* `nil`) - This URL is populated for `MESSAGE`, `ADDED_TO_SPACE`, and `APP_COMMAND` interaction events. After completing an authorization or configuration flow outside of Google Chat, users must be redirected to this URL to signal to Google Chat that the authorization or configuration flow was successful. For more information, see [Connect a Chat app with other services and tools](https://developers.google.com/workspace/chat/connect-web-services-tools).
2728
* `dialogEventType` (*type:* `String.t`, *default:* `nil`) - The type of [dialog](https://developers.google.com/workspace/chat/dialogs) interaction event received.
2829
* `eventTime` (*type:* `DateTime.t`, *default:* `nil`) - The timestamp indicating when the interaction event occurred.
2930
* `isDialogEvent` (*type:* `boolean()`, *default:* `nil`) - For `CARD_CLICKED` and `MESSAGE` interaction events, whether the user is interacting with or about to interact with a [dialog](https://developers.google.com/workspace/chat/dialogs).
3031
* `message` (*type:* `GoogleApi.Chat.V1.Model.Message.t`, *default:* `nil`) - For `ADDED_TO_SPACE`, `CARD_CLICKED`, and `MESSAGE` interaction events, the message that triggered the interaction event, if applicable.
3132
* `space` (*type:* `GoogleApi.Chat.V1.Model.Space.t`, *default:* `nil`) - The space in which the user interacted with the Chat app.
33+
* `thread` (*type:* `GoogleApi.Chat.V1.Model.Thread.t`, *default:* `nil`) - The thread in which the user interacted with the Chat app. This could be in a new thread created by a newly sent message. This field is populated if the interaction event is associated with a specific message or thread.
3234
* `threadKey` (*type:* `String.t`, *default:* `nil`) - The Chat app-defined key for the thread related to the interaction event. See [`spaces.messages.thread.threadKey`](/chat/api/reference/rest/v1/spaces.messages#Thread.FIELDS.thread_key) for more information.
3335
* `token` (*type:* `String.t`, *default:* `nil`) - A secret value that legacy Chat apps can use to verify if a request is from Google. Google randomly generates the token, and its value remains static. You can obtain, revoke, or regenerate the token from the [Chat API configuration page](https://console.cloud.google.com/apis/api/chat.googleapis.com/hangouts-chat) in the Google Cloud Console. Modern Chat apps don't use this field. It is absent from API responses and the [Chat API configuration page](https://console.cloud.google.com/apis/api/chat.googleapis.com/hangouts-chat).
3436
* `type` (*type:* `String.t`, *default:* `nil`) - The [type](/workspace/chat/api/reference/rest/v1/EventType) of user interaction with the Chat app, such as `MESSAGE` or `ADDED_TO_SPACE`.
@@ -39,27 +41,31 @@ defmodule GoogleApi.Chat.V1.Model.DeprecatedEvent do
3941

4042
@type t :: %__MODULE__{
4143
:action => GoogleApi.Chat.V1.Model.FormAction.t() | nil,
44+
:appCommandMetadata => GoogleApi.Chat.V1.Model.AppCommandMetadata.t() | nil,
4245
:common => GoogleApi.Chat.V1.Model.CommonEventObject.t() | nil,
4346
:configCompleteRedirectUrl => String.t() | nil,
4447
:dialogEventType => String.t() | nil,
4548
:eventTime => DateTime.t() | nil,
4649
:isDialogEvent => boolean() | nil,
4750
:message => GoogleApi.Chat.V1.Model.Message.t() | nil,
4851
:space => GoogleApi.Chat.V1.Model.Space.t() | nil,
52+
:thread => GoogleApi.Chat.V1.Model.Thread.t() | nil,
4953
:threadKey => String.t() | nil,
5054
:token => String.t() | nil,
5155
:type => String.t() | nil,
5256
:user => GoogleApi.Chat.V1.Model.User.t() | nil
5357
}
5458

5559
field(:action, as: GoogleApi.Chat.V1.Model.FormAction)
60+
field(:appCommandMetadata, as: GoogleApi.Chat.V1.Model.AppCommandMetadata)
5661
field(:common, as: GoogleApi.Chat.V1.Model.CommonEventObject)
5762
field(:configCompleteRedirectUrl)
5863
field(:dialogEventType)
5964
field(:eventTime, as: DateTime)
6065
field(:isDialogEvent)
6166
field(:message, as: GoogleApi.Chat.V1.Model.Message)
6267
field(:space, as: GoogleApi.Chat.V1.Model.Space)
68+
field(:thread, as: GoogleApi.Chat.V1.Model.Thread)
6369
field(:threadKey)
6470
field(:token)
6571
field(:type)

0 commit comments

Comments
 (0)