Skip to content

Commit 5a20e8d

Browse files
feat: Automated regeneration of YouTube client (googleapis#12562)
Auto-created at 2024-11-19 13:12:32 +0000 using the toys pull request generator.
1 parent eda4398 commit 5a20e8d

File tree

5 files changed

+63
-3
lines changed

5 files changed

+63
-3
lines changed

clients/you_tube/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_you_tube, "~> 0.51"}]
14+
[{:google_api_you_tube, "~> 0.52"}]
1515
end
1616
```
1717

clients/you_tube/lib/google_api/you_tube/v3/metadata.ex

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

23-
@discovery_revision "20241105"
23+
@discovery_revision "20241117"
2424

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

clients/you_tube/lib/google_api/you_tube/v3/model/channel_to_store_link_details.ex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetails do
2222
## Attributes
2323
2424
* `billingDetails` (*type:* `GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetailsBillingDetails.t`, *default:* `nil`) - Information specific to billing (read-only).
25+
* `merchantAffiliateProgramDetails` (*type:* `GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails.t`, *default:* `nil`) - Information specific to merchant affiliate program (read-only).
2526
* `merchantId` (*type:* `String.t`, *default:* `nil`) - Google Merchant Center id of the store.
2627
* `storeName` (*type:* `String.t`, *default:* `nil`) - Name of the store.
2728
* `storeUrl` (*type:* `String.t`, *default:* `nil`) - Landing page of the store.
@@ -32,12 +33,20 @@ defmodule GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetails do
3233
@type t :: %__MODULE__{
3334
:billingDetails =>
3435
GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetailsBillingDetails.t() | nil,
36+
:merchantAffiliateProgramDetails =>
37+
GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails.t()
38+
| nil,
3539
:merchantId => String.t() | nil,
3640
:storeName => String.t() | nil,
3741
:storeUrl => String.t() | nil
3842
}
3943

4044
field(:billingDetails, as: GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetailsBillingDetails)
45+
46+
field(:merchantAffiliateProgramDetails,
47+
as: GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails
48+
)
49+
4150
field(:merchantId)
4251
field(:storeName)
4352
field(:storeUrl)
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.YouTube.V3.Model.ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails do
19+
@moduledoc """
20+
Information specific to merchant affiliate program.
21+
22+
## Attributes
23+
24+
* `status` (*type:* `String.t`, *default:* `nil`) - The current merchant affiliate program status.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:status => String.t() | nil
31+
}
32+
33+
field(:status)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails do
38+
def decode(value, options) do
39+
GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end

clients/you_tube/mix.exs

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

21-
@version "0.51.1"
21+
@version "0.52.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)