Skip to content

Commit

Permalink
feat: Automated regeneration of YouTube client (#10932)
Browse files Browse the repository at this point in the history
Auto-created at 2024-03-12 02:32:22 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Mar 12, 2024
1 parent 51a5d65 commit 0e4266f
Show file tree
Hide file tree
Showing 20 changed files with 1,242 additions and 11 deletions.
2 changes: 2 additions & 0 deletions clients/you_tube/lib/google_api/you_tube/v3/api/channels.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ defmodule GoogleApi.YouTube.V3.Api.Channels do
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
* `:categoryId` (*type:* `String.t`) - Return the channels within the specified guide category ID.
* `:forHandle` (*type:* `String.t`) - Return the channel associated with a YouTube handle.
* `:forUsername` (*type:* `String.t`) - Return the channel associated with a YouTube username.
* `:hl` (*type:* `String.t`) - Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX).
* `:id` (*type:* `list(String.t)`) - Return the channels with the specified IDs.
Expand Down Expand Up @@ -80,6 +81,7 @@ defmodule GoogleApi.YouTube.V3.Api.Channels do
:uploadType => :query,
:upload_protocol => :query,
:categoryId => :query,
:forHandle => :query,
:forUsername => :query,
:hl => :query,
:id => :query,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ defmodule GoogleApi.YouTube.V3.Api.Comments do
* `connection` (*type:* `GoogleApi.YouTube.V3.Connection.t`) - Connection to server
* `id` (*type:* `list(String.t)`) - Modifies the moderation status of the comments with the given IDs
* `moderation_status` (*type:* `String.t`) - Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: MODERATION_STATUS_PUBLISHED, MODERATION_STATUS_HELD_FOR_REVIEW, MODERATION_STATUS_REJECTED.
* `moderation_status` (*type:* `String.t`) - Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: 'heldForReview', 'published' or 'rejected'.
* `optional_params` (*type:* `keyword()`) - Optional parameters
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
* `:access_token` (*type:* `String.t`) - OAuth access token.
Expand Down
754 changes: 754 additions & 0 deletions clients/you_tube/lib/google_api/you_tube/v3/api/playlist_images.ex

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ defmodule GoogleApi.YouTube.V3.Api.Playlists do
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
* `:channelId` (*type:* `String.t`) - Return the playlists owned by the specified channel ID.
* `:hl` (*type:* `String.t`) - Returen content in specified language
* `:hl` (*type:* `String.t`) - Return content in specified language
* `:id` (*type:* `list(String.t)`) - Return the playlists with the given IDs for Stubby or Apiary.
* `:maxResults` (*type:* `integer()`) - The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
* `:mine` (*type:* `boolean()`) - Return the playlists owned by the authenticated user.
Expand Down
4 changes: 2 additions & 2 deletions clients/you_tube/lib/google_api/you_tube/v3/api/search.ex
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ defmodule GoogleApi.YouTube.V3.Api.Search do
* `:publishedBefore` (*type:* `DateTime.t`) - Filter on resources published before this date.
* `:q` (*type:* `String.t`) - Textual search terms to match.
* `:regionCode` (*type:* `String.t`) - Display the content as seen by viewers in this country.
* `:relatedToVideoId` (*type:* `String.t`) - Search related to a resource.
* `:relevanceLanguage` (*type:* `String.t`) - Return results relevant to this language.
* `:safeSearch` (*type:* `String.t`) - Indicates whether the search results should include restricted content as well as standard content.
* `:topicId` (*type:* `String.t`) - Restrict results to a particular topic.
Expand All @@ -72,6 +71,7 @@ defmodule GoogleApi.YouTube.V3.Api.Search do
* `:videoDuration` (*type:* `String.t`) - Filter on the duration of the videos.
* `:videoEmbeddable` (*type:* `String.t`) - Filter on embeddable videos.
* `:videoLicense` (*type:* `String.t`) - Filter on the license of the videos.
* `:videoPaidProductPlacement` (*type:* `String.t`) -
* `:videoSyndicated` (*type:* `String.t`) - Filter on syndicated videos.
* `:videoType` (*type:* `String.t`) - Filter on videos of a specific type.
* `opts` (*type:* `keyword()`) - Call options
Expand Down Expand Up @@ -115,7 +115,6 @@ defmodule GoogleApi.YouTube.V3.Api.Search do
:publishedBefore => :query,
:q => :query,
:regionCode => :query,
:relatedToVideoId => :query,
:relevanceLanguage => :query,
:safeSearch => :query,
:topicId => :query,
Expand All @@ -127,6 +126,7 @@ defmodule GoogleApi.YouTube.V3.Api.Search do
:videoDuration => :query,
:videoEmbeddable => :query,
:videoLicense => :query,
:videoPaidProductPlacement => :query,
:videoSyndicated => :query,
:videoType => :query
}
Expand Down
2 changes: 1 addition & 1 deletion clients/you_tube/lib/google_api/you_tube/v3/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.YouTube.V3 do
API client metadata for GoogleApi.YouTube.V3.
"""

@discovery_revision "20220926"
@discovery_revision "20240310"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ defmodule GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetails do
## Attributes
* `billingDetails` (*type:* `GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetailsBillingDetails.t`, *default:* `nil`) - Information specific to billing (read-only).
* `merchantId` (*type:* `String.t`, *default:* `nil`) - Google Merchant Center id of the store.
* `storeName` (*type:* `String.t`, *default:* `nil`) - Name of the store.
* `storeUrl` (*type:* `String.t`, *default:* `nil`) - Landing page of the store.
Expand All @@ -29,11 +30,14 @@ defmodule GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetails do
use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:billingDetails =>
GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetailsBillingDetails.t() | nil,
:merchantId => String.t() | nil,
:storeName => String.t() | nil,
:storeUrl => String.t() | nil
}

field(:billingDetails, as: GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetailsBillingDetails)
field(:merchantId)
field(:storeName)
field(:storeUrl)
Expand Down
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.YouTube.V3.Model.ChannelToStoreLinkDetailsBillingDetails do
@moduledoc """
Information specific to billing.
## Attributes
* `billingStatus` (*type:* `String.t`, *default:* `nil`) - The current billing profile status.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:billingStatus => String.t() | nil
}

field(:billingStatus)
end

defimpl Poison.Decoder, for: GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetailsBillingDetails do
def decode(value, options) do
GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetailsBillingDetails.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.YouTube.V3.Model.ChannelToStoreLinkDetailsBillingDetails 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,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.YouTube.V3.Model.CuepointSchedule do
@moduledoc """
Schedule to insert cuepoints into a broadcast by ads automator.
## Attributes
* `enabled` (*type:* `boolean()`, *default:* `nil`) - This field is semantically required. If it is set false or not set, other fields in this message will be ignored.
* `pauseAdsUntil` (*type:* `String.t`, *default:* `nil`) - If set, automatic cuepoint insertion is paused until this timestamp ("No Ad Zone"). The value is specified in ISO 8601 format.
* `repeatIntervalSecs` (*type:* `integer()`, *default:* `nil`) - Interval frequency in seconds that api uses to insert cuepoints automatically.
* `scheduleStrategy` (*type:* `String.t`, *default:* `nil`) - The strategy to use when scheduling cuepoints.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:enabled => boolean() | nil,
:pauseAdsUntil => String.t() | nil,
:repeatIntervalSecs => integer() | nil,
:scheduleStrategy => String.t() | nil
}

field(:enabled)
field(:pauseAdsUntil)
field(:repeatIntervalSecs)
field(:scheduleStrategy)
end

defimpl Poison.Decoder, for: GoogleApi.YouTube.V3.Model.CuepointSchedule do
def decode(value, options) do
GoogleApi.YouTube.V3.Model.CuepointSchedule.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.YouTube.V3.Model.CuepointSchedule do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ defmodule GoogleApi.YouTube.V3.Model.LiveBroadcast do
* `etag` (*type:* `String.t`, *default:* `nil`) - Etag of this resource.
* `id` (*type:* `String.t`, *default:* `nil`) - The ID that YouTube assigns to uniquely identify the broadcast.
* `kind` (*type:* `String.t`, *default:* `youtube#liveBroadcast`) - Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
* `monetizationDetails` (*type:* `GoogleApi.YouTube.V3.Model.LiveBroadcastMonetizationDetails.t`, *default:* `nil`) - The monetizationDetails object contains information about the event's monetization details.
* `snippet` (*type:* `GoogleApi.YouTube.V3.Model.LiveBroadcastSnippet.t`, *default:* `nil`) - The snippet object contains basic details about the event, including its title, description, start time, and end time.
* `statistics` (*type:* `GoogleApi.YouTube.V3.Model.LiveBroadcastStatistics.t`, *default:* `nil`) - The statistics object contains info about the event's current stats. These include concurrent viewers and total chat count. Statistics can change (in either direction) during the lifetime of an event. Statistics are only returned while the event is live.
* `status` (*type:* `GoogleApi.YouTube.V3.Model.LiveBroadcastStatus.t`, *default:* `nil`) - The status object contains information about the event's status.
Expand All @@ -37,6 +38,8 @@ defmodule GoogleApi.YouTube.V3.Model.LiveBroadcast do
:etag => String.t() | nil,
:id => String.t() | nil,
:kind => String.t() | nil,
:monetizationDetails =>
GoogleApi.YouTube.V3.Model.LiveBroadcastMonetizationDetails.t() | nil,
:snippet => GoogleApi.YouTube.V3.Model.LiveBroadcastSnippet.t() | nil,
:statistics => GoogleApi.YouTube.V3.Model.LiveBroadcastStatistics.t() | nil,
:status => GoogleApi.YouTube.V3.Model.LiveBroadcastStatus.t() | nil
Expand All @@ -46,6 +49,7 @@ defmodule GoogleApi.YouTube.V3.Model.LiveBroadcast do
field(:etag)
field(:id)
field(:kind)
field(:monetizationDetails, as: GoogleApi.YouTube.V3.Model.LiveBroadcastMonetizationDetails)
field(:snippet, as: GoogleApi.YouTube.V3.Model.LiveBroadcastSnippet)
field(:statistics, as: GoogleApi.YouTube.V3.Model.LiveBroadcastStatistics)
field(:status, as: GoogleApi.YouTube.V3.Model.LiveBroadcastStatus)
Expand Down
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.YouTube.V3.Model.LiveBroadcastMonetizationDetails do
@moduledoc """
Monetization settings of a broadcast.
## Attributes
* `cuepointSchedule` (*type:* `GoogleApi.YouTube.V3.Model.CuepointSchedule.t`, *default:* `nil`) -
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:cuepointSchedule => GoogleApi.YouTube.V3.Model.CuepointSchedule.t() | nil
}

field(:cuepointSchedule, as: GoogleApi.YouTube.V3.Model.CuepointSchedule)
end

defimpl Poison.Decoder, for: GoogleApi.YouTube.V3.Model.LiveBroadcastMonetizationDetails do
def decode(value, options) do
GoogleApi.YouTube.V3.Model.LiveBroadcastMonetizationDetails.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.YouTube.V3.Model.LiveBroadcastMonetizationDetails do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,15 @@ defmodule GoogleApi.YouTube.V3.Model.LiveBroadcastStatistics do
## Attributes
* `concurrentViewers` (*type:* `String.t`, *default:* `nil`) - The number of viewers currently watching the broadcast. The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video. Note that YouTube stops tracking the number of concurrent viewers for a broadcast when the broadcast ends. So, this property would not identify the number of viewers watching an archived video of a live broadcast that already ended.
* `totalChatCount` (*type:* `String.t`, *default:* `nil`) - The total number of live chat messages currently on the broadcast. The property and its value will be present if the broadcast is public, has the live chat feature enabled, and has at least one message. Note that this field will not be filled after the broadcast ends. So this property would not identify the number of chat messages for an archived video of a completed live broadcast.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:concurrentViewers => String.t() | nil,
:totalChatCount => String.t() | nil
:concurrentViewers => String.t() | nil
}

field(:concurrentViewers)
field(:totalChatCount)
end

defimpl Poison.Decoder, for: GoogleApi.YouTube.V3.Model.LiveBroadcastStatistics do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ defmodule GoogleApi.YouTube.V3.Model.LiveChatMessageListResponse do
## Attributes
* `activePollItem` (*type:* `GoogleApi.YouTube.V3.Model.LiveChatMessage.t`, *default:* `nil`) - Set when there is an active poll.
* `etag` (*type:* `String.t`, *default:* `nil`) - Etag of this resource.
* `eventId` (*type:* `String.t`, *default:* `nil`) - Serialized EventId of the request which produced this response.
* `items` (*type:* `list(GoogleApi.YouTube.V3.Model.LiveChatMessage.t)`, *default:* `nil`) -
Expand All @@ -36,6 +37,7 @@ defmodule GoogleApi.YouTube.V3.Model.LiveChatMessageListResponse do
use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:activePollItem => GoogleApi.YouTube.V3.Model.LiveChatMessage.t() | nil,
:etag => String.t() | nil,
:eventId => String.t() | nil,
:items => list(GoogleApi.YouTube.V3.Model.LiveChatMessage.t()) | nil,
Expand All @@ -48,6 +50,7 @@ defmodule GoogleApi.YouTube.V3.Model.LiveChatMessageListResponse do
:visitorId => String.t() | nil
}

field(:activePollItem, as: GoogleApi.YouTube.V3.Model.LiveChatMessage)
field(:etag)
field(:eventId)
field(:items, as: GoogleApi.YouTube.V3.Model.LiveChatMessage, type: :list)
Expand Down
Loading

0 comments on commit 0e4266f

Please sign in to comment.