-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of Chat client (#12412)
Auto-created at 2024-10-26 13:12:17 +0000 using the toys pull request generator.
- Loading branch information
1 parent
1b228a0
commit c1e6e0b
Showing
14 changed files
with
286 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_chip.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1Chip do | ||
@moduledoc """ | ||
A text, icon, or text and icon chip that users can click. [Google Chat apps](https://developers.google.com/workspace/chat): | ||
## Attributes | ||
* `altText` (*type:* `String.t`, *default:* `nil`) - The alternative text that's used for accessibility. Set descriptive text that lets users know what the chip does. For example, if a chip opens a hyperlink, write: "Opens a new browser tab and navigates to the Google Chat developer documentation at https://developers.google.com/workspace/chat". | ||
* `disabled` (*type:* `boolean()`, *default:* `nil`) - Whether the chip is in an inactive state and ignores user actions. Defaults to `false`. | ||
* `enabled` (*type:* `boolean()`, *default:* `nil`) - Whether the chip is in an active state and responds to user actions. Defaults to `true`. Deprecated. Use `disabled` instead. | ||
* `icon` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon.t`, *default:* `nil`) - The icon image. If both `icon` and `text` are set, then the icon appears before the text. | ||
* `label` (*type:* `String.t`, *default:* `nil`) - The text displayed inside the chip. | ||
* `onClick` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1OnClick.t`, *default:* `nil`) - Optional. The action to perform when a user clicks the chip, such as opening a hyperlink or running a custom function. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:altText => String.t() | nil, | ||
:disabled => boolean() | nil, | ||
:enabled => boolean() | nil, | ||
:icon => GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon.t() | nil, | ||
:label => String.t() | nil, | ||
:onClick => GoogleApi.Chat.V1.Model.GoogleAppsCardV1OnClick.t() | nil | ||
} | ||
|
||
field(:altText) | ||
field(:disabled) | ||
field(:enabled) | ||
field(:icon, as: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon) | ||
field(:label) | ||
field(:onClick, as: GoogleApi.Chat.V1.Model.GoogleAppsCardV1OnClick) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Chip do | ||
def decode(value, options) do | ||
GoogleApi.Chat.V1.Model.GoogleAppsCardV1Chip.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Chip do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
49 changes: 49 additions & 0 deletions
49
clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_chip_list.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1ChipList do | ||
@moduledoc """ | ||
A list of chips layed out horizontally, which can either scroll horizontally or wrap to the next line. [Google Chat apps](https://developers.google.com/workspace/chat): | ||
## Attributes | ||
* `chips` (*type:* `list(GoogleApi.Chat.V1.Model.GoogleAppsCardV1Chip.t)`, *default:* `nil`) - An array of chips. | ||
* `layout` (*type:* `String.t`, *default:* `nil`) - Specified chip list layout. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:chips => list(GoogleApi.Chat.V1.Model.GoogleAppsCardV1Chip.t()) | nil, | ||
:layout => String.t() | nil | ||
} | ||
|
||
field(:chips, as: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Chip, type: :list) | ||
field(:layout) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.GoogleAppsCardV1ChipList do | ||
def decode(value, options) do | ||
GoogleApi.Chat.V1.Model.GoogleAppsCardV1ChipList.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.GoogleAppsCardV1ChipList do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
52 changes: 52 additions & 0 deletions
52
clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_collapse_control.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1CollapseControl do | ||
@moduledoc """ | ||
Represent an expand and collapse control. [Google Chat apps](https://developers.google.com/workspace/chat): | ||
## Attributes | ||
* `collapseButton` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1Button.t`, *default:* `nil`) - Optional. Define a customizable button to collapse the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used. | ||
* `expandButton` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1Button.t`, *default:* `nil`) - Optional. Define a customizable button to expand the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used. | ||
* `horizontalAlignment` (*type:* `String.t`, *default:* `nil`) - The horizontal alignment of the expand and collapse button. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:collapseButton => GoogleApi.Chat.V1.Model.GoogleAppsCardV1Button.t() | nil, | ||
:expandButton => GoogleApi.Chat.V1.Model.GoogleAppsCardV1Button.t() | nil, | ||
:horizontalAlignment => String.t() | nil | ||
} | ||
|
||
field(:collapseButton, as: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Button) | ||
field(:expandButton, as: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Button) | ||
field(:horizontalAlignment) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.GoogleAppsCardV1CollapseControl do | ||
def decode(value, options) do | ||
GoogleApi.Chat.V1.Model.GoogleAppsCardV1CollapseControl.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.GoogleAppsCardV1CollapseControl do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_overflow_menu.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1OverflowMenu do | ||
@moduledoc """ | ||
A widget that presents a pop-up menu with one or more actions that users can invoke. For example, showing non-primary actions in a card. You can use this widget when actions don't fit in the available space. To use, specify this widget in the `OnClick` action of widgets that support it. For example, in a `Button`. [Google Chat apps](https://developers.google.com/workspace/chat): | ||
## Attributes | ||
* `items` (*type:* `list(GoogleApi.Chat.V1.Model.GoogleAppsCardV1OverflowMenuItem.t)`, *default:* `nil`) - Required. The list of menu options. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:items => list(GoogleApi.Chat.V1.Model.GoogleAppsCardV1OverflowMenuItem.t()) | nil | ||
} | ||
|
||
field(:items, as: GoogleApi.Chat.V1.Model.GoogleAppsCardV1OverflowMenuItem, type: :list) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.GoogleAppsCardV1OverflowMenu do | ||
def decode(value, options) do | ||
GoogleApi.Chat.V1.Model.GoogleAppsCardV1OverflowMenu.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.GoogleAppsCardV1OverflowMenu do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
55 changes: 55 additions & 0 deletions
55
clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_overflow_menu_item.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1OverflowMenuItem do | ||
@moduledoc """ | ||
An option that users can invoke in an overflow menu. [Google Chat apps](https://developers.google.com/workspace/chat): | ||
## Attributes | ||
* `disabled` (*type:* `boolean()`, *default:* `nil`) - Whether the menu option is disabled. Defaults to false. | ||
* `onClick` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1OnClick.t`, *default:* `nil`) - Required. The action invoked when a menu option is selected. This `OnClick` cannot contain an `OverflowMenu`, any specified `OverflowMenu` is dropped and the menu item disabled. | ||
* `startIcon` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon.t`, *default:* `nil`) - The icon displayed in front of the text. | ||
* `text` (*type:* `String.t`, *default:* `nil`) - Required. The text that identifies or describes the item to users. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:disabled => boolean() | nil, | ||
:onClick => GoogleApi.Chat.V1.Model.GoogleAppsCardV1OnClick.t() | nil, | ||
:startIcon => GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon.t() | nil, | ||
:text => String.t() | nil | ||
} | ||
|
||
field(:disabled) | ||
field(:onClick, as: GoogleApi.Chat.V1.Model.GoogleAppsCardV1OnClick) | ||
field(:startIcon, as: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon) | ||
field(:text) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.GoogleAppsCardV1OverflowMenuItem do | ||
def decode(value, options) do | ||
GoogleApi.Chat.V1.Model.GoogleAppsCardV1OverflowMenuItem.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.GoogleAppsCardV1OverflowMenuItem do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.