diff --git a/clients/slides/README.md b/clients/slides/README.md index 10a9c62a8e..a820dc94f5 100644 --- a/clients/slides/README.md +++ b/clients/slides/README.md @@ -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 ``` diff --git a/clients/slides/lib/google_api/slides/v1/metadata.ex b/clients/slides/lib/google_api/slides/v1/metadata.ex index 1d3839c862..635f901d9c 100644 --- a/clients/slides/lib/google_api/slides/v1/metadata.ex +++ b/clients/slides/lib/google_api/slides/v1/metadata.ex @@ -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 diff --git a/clients/slides/lib/google_api/slides/v1/model/create_image_request.ex b/clients/slides/lib/google_api/slides/v1/model/create_image_request.ex index aa613b272f..77cfcdbfe2 100644 --- a/clients/slides/lib/google_api/slides/v1/model/create_image_request.ex +++ b/clients/slides/lib/google_api/slides/v1/model/create_image_request.ex @@ -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 diff --git a/clients/slides/lib/google_api/slides/v1/model/page_element.ex b/clients/slides/lib/google_api/slides/v1/model/page_element.ex index 172d8a3a2d..1268b746d5 100644 --- a/clients/slides/lib/google_api/slides/v1/model/page_element.ex +++ b/clients/slides/lib/google_api/slides/v1/model/page_element.ex @@ -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. @@ -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, @@ -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) diff --git a/clients/slides/lib/google_api/slides/v1/model/speaker_spotlight.ex b/clients/slides/lib/google_api/slides/v1/model/speaker_spotlight.ex new file mode 100644 index 0000000000..0c71e369e6 --- /dev/null +++ b/clients/slides/lib/google_api/slides/v1/model/speaker_spotlight.ex @@ -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 diff --git a/clients/slides/lib/google_api/slides/v1/model/speaker_spotlight_properties.ex b/clients/slides/lib/google_api/slides/v1/model/speaker_spotlight_properties.ex new file mode 100644 index 0000000000..481425f8a1 --- /dev/null +++ b/clients/slides/lib/google_api/slides/v1/model/speaker_spotlight_properties.ex @@ -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 diff --git a/clients/slides/mix.exs b/clients/slides/mix.exs index 1821b382ef..b66a27eeea 100644 --- a/clients/slides/mix.exs +++ b/clients/slides/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Slides.Mixfile do use Mix.Project - @version "0.20.1" + @version "0.21.0" def project() do [