Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of Slides client #10781

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/slides/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_slides, "~> 0.20"}]
[{:google_api_slides, "~> 0.21"}]
end
```

Expand Down
2 changes: 1 addition & 1 deletion clients/slides/lib/google_api/slides/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Slides.V1 do
API client metadata for GoogleApi.Slides.V1.
"""

@discovery_revision "20220722"
@discovery_revision "20240305"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ defmodule GoogleApi.Slides.V1.Model.CreateImageRequest do

## Attributes

* `elementProperties` (*type:* `GoogleApi.Slides.V1.Model.PageElementProperties.t`, *default:* `nil`) - The element properties for the image. When the aspect ratio of the provided size does not match the image aspect ratio, the image is scaled and centered with respect to the size in order to maintain aspect ratio. The provided transform is applied after this operation. The PageElementProperties.size property is optional. If you don't specify the size, the default size of the image is used. The PageElementProperties.transform property is optional. If you don't specify a transform, the image will be placed at the top left corner of the page.
* `elementProperties` (*type:* `GoogleApi.Slides.V1.Model.PageElementProperties.t`, *default:* `nil`) - The element properties for the image. When the aspect ratio of the provided size does not match the image aspect ratio, the image is scaled and centered with respect to the size in order to maintain the aspect ratio. The provided transform is applied after this operation. The PageElementProperties.size property is optional. If you don't specify the size, the default size of the image is used. The PageElementProperties.transform property is optional. If you don't specify a transform, the image will be placed at the top-left corner of the page.
* `objectId` (*type:* `String.t`, *default:* `nil`) - A user-supplied object ID. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be less than 5 or greater than 50. If you don't specify an ID, a unique one is generated.
* `url` (*type:* `String.t`, *default:* `nil`) - The image URL. The image is fetched once at insertion time and a copy is stored for display inside the presentation. Images must be less than 50MB in size, cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF format. The provided URL can be at most 2 kB in length. The URL itself is saved with the image, and exposed via the Image.source_url field.
* `url` (*type:* `String.t`, *default:* `nil`) - The image URL. The image is fetched once at insertion time and a copy is stored for display inside the presentation. Images must be less than 50 MB in size, can't exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF formats. The provided URL must be publicly accessible and up to 2 KB in length. The URL is saved with the image, and exposed through the Image.source_url field.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ defmodule GoogleApi.Slides.V1.Model.PageElement do
* `shape` (*type:* `GoogleApi.Slides.V1.Model.Shape.t`, *default:* `nil`) - A generic shape.
* `sheetsChart` (*type:* `GoogleApi.Slides.V1.Model.SheetsChart.t`, *default:* `nil`) - A linked chart embedded from Google Sheets. Unlinked charts are represented as images.
* `size` (*type:* `GoogleApi.Slides.V1.Model.Size.t`, *default:* `nil`) - The size of the page element.
* `speakerSpotlight` (*type:* `GoogleApi.Slides.V1.Model.SpeakerSpotlight.t`, *default:* `nil`) - A Speaker Spotlight.
* `table` (*type:* `GoogleApi.Slides.V1.Model.Table.t`, *default:* `nil`) - A table page element.
* `title` (*type:* `String.t`, *default:* `nil`) - The title of the page element. Combined with description to display alt text. The field is not supported for Group elements.
* `transform` (*type:* `GoogleApi.Slides.V1.Model.AffineTransform.t`, *default:* `nil`) - The transform of the page element. The visual appearance of the page element is determined by its absolute transform. To compute the absolute transform, preconcatenate a page element's transform with the transforms of all of its parent groups. If the page element is not in a group, its absolute transform is the same as the value in this field. The initial transform for the newly created Group is always the identity transform.
Expand All @@ -47,6 +48,7 @@ defmodule GoogleApi.Slides.V1.Model.PageElement do
:shape => GoogleApi.Slides.V1.Model.Shape.t() | nil,
:sheetsChart => GoogleApi.Slides.V1.Model.SheetsChart.t() | nil,
:size => GoogleApi.Slides.V1.Model.Size.t() | nil,
:speakerSpotlight => GoogleApi.Slides.V1.Model.SpeakerSpotlight.t() | nil,
:table => GoogleApi.Slides.V1.Model.Table.t() | nil,
:title => String.t() | nil,
:transform => GoogleApi.Slides.V1.Model.AffineTransform.t() | nil,
Expand All @@ -62,6 +64,7 @@ defmodule GoogleApi.Slides.V1.Model.PageElement do
field(:shape, as: GoogleApi.Slides.V1.Model.Shape)
field(:sheetsChart, as: GoogleApi.Slides.V1.Model.SheetsChart)
field(:size, as: GoogleApi.Slides.V1.Model.Size)
field(:speakerSpotlight, as: GoogleApi.Slides.V1.Model.SpeakerSpotlight)
field(:table, as: GoogleApi.Slides.V1.Model.Table)
field(:title)
field(:transform, as: GoogleApi.Slides.V1.Model.AffineTransform)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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.Slides.V1.Model.SpeakerSpotlight do
@moduledoc """
A PageElement kind representing a Speaker Spotlight.

## Attributes

* `speakerSpotlightProperties` (*type:* `GoogleApi.Slides.V1.Model.SpeakerSpotlightProperties.t`, *default:* `nil`) - The properties of the Speaker Spotlight.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:speakerSpotlightProperties =>
GoogleApi.Slides.V1.Model.SpeakerSpotlightProperties.t() | nil
}

field(:speakerSpotlightProperties, as: GoogleApi.Slides.V1.Model.SpeakerSpotlightProperties)
end

defimpl Poison.Decoder, for: GoogleApi.Slides.V1.Model.SpeakerSpotlight do
def decode(value, options) do
GoogleApi.Slides.V1.Model.SpeakerSpotlight.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Slides.V1.Model.SpeakerSpotlight do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
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.Slides.V1.Model.SpeakerSpotlightProperties do
@moduledoc """
The properties of the SpeakerSpotlight.

## Attributes

* `outline` (*type:* `GoogleApi.Slides.V1.Model.Outline.t`, *default:* `nil`) - The outline of the Speaker Spotlight. If not set, it has no outline.
* `shadow` (*type:* `GoogleApi.Slides.V1.Model.Shadow.t`, *default:* `nil`) - The shadow of the Speaker Spotlight. If not set, it has no shadow.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:outline => GoogleApi.Slides.V1.Model.Outline.t() | nil,
:shadow => GoogleApi.Slides.V1.Model.Shadow.t() | nil
}

field(:outline, as: GoogleApi.Slides.V1.Model.Outline)
field(:shadow, as: GoogleApi.Slides.V1.Model.Shadow)
end

defimpl Poison.Decoder, for: GoogleApi.Slides.V1.Model.SpeakerSpotlightProperties do
def decode(value, options) do
GoogleApi.Slides.V1.Model.SpeakerSpotlightProperties.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Slides.V1.Model.SpeakerSpotlightProperties do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
2 changes: 1 addition & 1 deletion clients/slides/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.Slides.Mixfile do
use Mix.Project

@version "0.20.1"
@version "0.21.0"

def project() do
[
Expand Down
Loading