Skip to content

Commit cfe4d85

Browse files
feat: Automated regeneration of Content client (googleapis#12735)
Auto-created at 2024-12-18 13:13:21 +0000 using the toys pull request generator.
1 parent 079a3c8 commit cfe4d85

File tree

5 files changed

+64
-3
lines changed

5 files changed

+64
-3
lines changed

clients/content/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_content, "~> 0.72"}]
14+
[{:google_api_content, "~> 0.73"}]
1515
end
1616
```
1717

clients/content/lib/google_api/content/v21/metadata.ex

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

23-
@discovery_revision "20241120"
23+
@discovery_revision "20241217"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/content/lib/google_api/content/v21/model/product.ex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ defmodule GoogleApi.Content.V21.Model.Product do
9595
* `productHighlights` (*type:* `list(String.t)`, *default:* `nil`) - Bullet points describing the most relevant highlights of a product.
9696
* `sizeType` (*type:* `String.t`, *default:* `nil`) - The cut of the item. Recommended for apparel items.
9797
* `customAttributes` (*type:* `list(GoogleApi.Content.V21.Model.CustomAttribute.t)`, *default:* `nil`) - A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form (for example, `{ "name": "size type", "value": "regular" }`). This is useful for submitting attributes not explicitly exposed by the API, such as additional attributes used for Buy on Google (formerly known as Shopping Actions).
98+
* `sustainabilityIncentives` (*type:* `list(GoogleApi.Content.V21.Model.ProductSustainabilityIncentive.t)`, *default:* `nil`) - Optional. The list of sustainability incentive programs.
9899
* `pickupSla` (*type:* `String.t`, *default:* `nil`) - Item store pickup timeline. Acceptable values are: - "`same day`" - "`next day`" - "`2-day`" - "`3-day`" - "`4-day`" - "`5-day`" - "`6-day`" - "`7-day`" - "`multi-week`"
99100
* `expirationDate` (*type:* `String.t`, *default:* `nil`) - Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in `productstatuses` as `googleExpirationDate` and might be earlier if `expirationDate` is too far in the future.
100101
* `channel` (*type:* `String.t`, *default:* `nil`) - Required. The item's channel (online or local). Acceptable values are: - "`local`" - "`online`"
@@ -205,6 +206,8 @@ defmodule GoogleApi.Content.V21.Model.Product do
205206
:productHighlights => list(String.t()) | nil,
206207
:sizeType => String.t() | nil,
207208
:customAttributes => list(GoogleApi.Content.V21.Model.CustomAttribute.t()) | nil,
209+
:sustainabilityIncentives =>
210+
list(GoogleApi.Content.V21.Model.ProductSustainabilityIncentive.t()) | nil,
208211
:pickupSla => String.t() | nil,
209212
:expirationDate => String.t() | nil,
210213
:channel => String.t() | nil,
@@ -317,6 +320,12 @@ defmodule GoogleApi.Content.V21.Model.Product do
317320
field(:productHighlights, type: :list)
318321
field(:sizeType)
319322
field(:customAttributes, as: GoogleApi.Content.V21.Model.CustomAttribute, type: :list)
323+
324+
field(:sustainabilityIncentives,
325+
as: GoogleApi.Content.V21.Model.ProductSustainabilityIncentive,
326+
type: :list
327+
)
328+
320329
field(:pickupSla)
321330
field(:expirationDate)
322331
field(:channel)
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.Content.V21.Model.ProductSustainabilityIncentive do
19+
@moduledoc """
20+
Information regarding sustainability related incentive programs such as rebates or tax relief.
21+
22+
## Attributes
23+
24+
* `amount` (*type:* `GoogleApi.Content.V21.Model.Price.t`, *default:* `nil`) - Optional. The fixed amount of the incentive.
25+
* `percentage` (*type:* `float()`, *default:* `nil`) - Optional. The percentage of the sale price that the incentive is applied to.
26+
* `type` (*type:* `String.t`, *default:* `nil`) - Required. Sustainability incentive program.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:amount => GoogleApi.Content.V21.Model.Price.t() | nil,
33+
:percentage => float() | nil,
34+
:type => String.t() | nil
35+
}
36+
37+
field(:amount, as: GoogleApi.Content.V21.Model.Price)
38+
field(:percentage)
39+
field(:type)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ProductSustainabilityIncentive do
43+
def decode(value, options) do
44+
GoogleApi.Content.V21.Model.ProductSustainabilityIncentive.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.ProductSustainabilityIncentive do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

clients/content/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.Content.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.72.1"
21+
@version "0.73.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)