Skip to content

Commit

Permalink
feat: Automated regeneration of Chat client (#12479)
Browse files Browse the repository at this point in the history
Auto-created at 2024-11-05 13:10:29 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Nov 5, 2024
1 parent 9cafd30 commit f979d31
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion clients/chat/lib/google_api/chat/v1/api/spaces.ex
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ defmodule GoogleApi.Chat.V1.Api.Spaces do
end

@doc """
Creates a message in a Google Chat space. For an example, see [Send a message](https://developers.google.com/workspace/chat/create-messages). The `create()` method requires either [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) or [app authentication](https://developers.google.com/workspace/chat/authorize-import). Chat attributes the message sender differently depending on the type of authentication that you use in your request. The following image shows how Chat attributes a message when you use app authentication. Chat displays the Chat app as the message sender. The content of the message can contain text (`text`), cards (`cardsV2`), and accessory widgets (`accessoryWidgets`). ![Message sent with app authentication](https://developers.google.com/workspace/chat/images/message-app-auth.svg) The following image shows how Chat attributes a message when you use user authentication. Chat displays the user as the message sender and attributes the Chat app to the message by displaying its name. The content of message can only contain text (`text`). ![Message sent with user authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg) The maximum message size, including the message contents, is 32,000 bytes.
Creates a message in a Google Chat space. For an example, see [Send a message](https://developers.google.com/workspace/chat/create-messages). The `create()` method requires either [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) or [app authentication](https://developers.google.com/workspace/chat/authorize-import). Chat attributes the message sender differently depending on the type of authentication that you use in your request. The following image shows how Chat attributes a message when you use app authentication. Chat displays the Chat app as the message sender. The content of the message can contain text (`text`), cards (`cardsV2`), and accessory widgets (`accessoryWidgets`). ![Message sent with app authentication](https://developers.google.com/workspace/chat/images/message-app-auth.svg) The following image shows how Chat attributes a message when you use user authentication. Chat displays the user as the message sender and attributes the Chat app to the message by displaying its name. The content of message can only contain text (`text`). ![Message sent with user authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg) The maximum message size, including the message contents, is 32,000 bytes. For [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks) requests, the response doesn't contain the full message. The response only populates the `name` and `thread.name` fields in addition to the information that was in the request.
## Parameters
Expand Down
2 changes: 1 addition & 1 deletion clients/chat/lib/google_api/chat/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Chat.V1 do
API client metadata for GoogleApi.Chat.V1.
"""

@discovery_revision "20241029"
@discovery_revision "20241031"

def discovery_revision(), do: @discovery_revision
end
2 changes: 1 addition & 1 deletion clients/chat/lib/google_api/chat/v1/model/emoji.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule GoogleApi.Chat.V1.Model.Emoji do
## Attributes
* `customEmoji` (*type:* `GoogleApi.Chat.V1.Model.CustomEmoji.t`, *default:* `nil`) - Output only. A custom emoji.
* `unicode` (*type:* `String.t`, *default:* `nil`) - A basic emoji represented by a unicode string.
* `unicode` (*type:* `String.t`, *default:* `nil`) - Optional. A basic emoji represented by a unicode string.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ defmodule GoogleApi.Chat.V1.Model.EmojiReactionSummary do
## Attributes
* `emoji` (*type:* `GoogleApi.Chat.V1.Model.Emoji.t`, *default:* `nil`) - Emoji associated with the reactions.
* `reactionCount` (*type:* `integer()`, *default:* `nil`) - The total number of reactions using the associated emoji.
* `emoji` (*type:* `GoogleApi.Chat.V1.Model.Emoji.t`, *default:* `nil`) - Output only. Emoji associated with the reactions.
* `reactionCount` (*type:* `integer()`, *default:* `nil`) - Output only. The total number of reactions using the associated emoji.
"""

use GoogleApi.Gax.ModelBase
Expand Down
4 changes: 2 additions & 2 deletions clients/chat/lib/google_api/chat/v1/model/reaction.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ defmodule GoogleApi.Chat.V1.Model.Reaction do
## Attributes
* `emoji` (*type:* `GoogleApi.Chat.V1.Model.Emoji.t`, *default:* `nil`) - The emoji used in the reaction.
* `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the reaction. Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
* `emoji` (*type:* `GoogleApi.Chat.V1.Model.Emoji.t`, *default:* `nil`) - Required. The emoji used in the reaction.
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of the reaction. Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
* `user` (*type:* `GoogleApi.Chat.V1.Model.User.t`, *default:* `nil`) - Output only. The user who created the reaction.
"""

Expand Down
2 changes: 1 addition & 1 deletion clients/chat/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.Chat.Mixfile do
use Mix.Project

@version "0.41.1"
@version "0.41.2"

def project() do
[
Expand Down

0 comments on commit f979d31

Please sign in to comment.