Skip to content

Commit 3277a6b

Browse files
feat: Automated regeneration of YouTube client (#13281)
Auto-created at 2025-04-02 13:18:47 +0000 using the toys pull request generator.
1 parent 970e535 commit 3277a6b

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

clients/you_tube/lib/google_api/you_tube/v3/api/comment_threads.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ defmodule GoogleApi.YouTube.V3.Api.CommentThreads do
112112
* `:moderationStatus` (*type:* `String.t`) - Limits the returned comment threads to those with the specified moderation status. Not compatible with the 'id' filter. Valid values: published, heldForReview, likelySpam.
113113
* `:order` (*type:* `String.t`) -
114114
* `:pageToken` (*type:* `String.t`) - The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
115+
* `:postId` (*type:* `String.t`) - Returns the comment threads of the specified post.
115116
* `:searchTerms` (*type:* `String.t`) - Limits the returned comment threads to those matching the specified key words. Not compatible with the 'id' filter.
116117
* `:textFormat` (*type:* `String.t`) - The requested text format for the returned comments.
117118
* `:videoId` (*type:* `String.t`) - Returns the comment threads of the specified video.
@@ -147,6 +148,7 @@ defmodule GoogleApi.YouTube.V3.Api.CommentThreads do
147148
:moderationStatus => :query,
148149
:order => :query,
149150
:pageToken => :query,
151+
:postId => :query,
150152
:searchTerms => :query,
151153
:textFormat => :query,
152154
:videoId => :query

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 "20250128"
23+
@discovery_revision "20250331"
2424

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

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ defmodule GoogleApi.YouTube.V3.Model.CommentSnippet do
2626
* `authorDisplayName` (*type:* `String.t`, *default:* `nil`) - The name of the user who posted the comment.
2727
* `authorProfileImageUrl` (*type:* `String.t`, *default:* `nil`) - The URL for the avatar of the user who posted the comment.
2828
* `canRate` (*type:* `boolean()`, *default:* `nil`) - Whether the current viewer can rate this comment.
29-
* `channelId` (*type:* `String.t`, *default:* `nil`) - The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel.
29+
* `channelId` (*type:* `String.t`, *default:* `nil`) - The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video or post comment it's the video/post's channel.
3030
* `likeCount` (*type:* `integer()`, *default:* `nil`) - The total number of likes this comment has received.
3131
* `moderationStatus` (*type:* `String.t`, *default:* `nil`) - The comment's moderation status. Will not be set if the comments were requested through the id filter.
32-
* `parentId` (*type:* `String.t`, *default:* `nil`) - The unique id of the parent comment, only set for replies.
32+
* `parentId` (*type:* `String.t`, *default:* `nil`) - The unique id of the top-level comment, only set for replies.
33+
* `postId` (*type:* `String.t`, *default:* `nil`) - The ID of the post the comment refers to, if any.
3334
* `publishedAt` (*type:* `DateTime.t`, *default:* `nil`) - The date and time when the comment was originally published.
3435
* `textDisplay` (*type:* `String.t`, *default:* `nil`) - The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
3536
* `textOriginal` (*type:* `String.t`, *default:* `nil`) - The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author.
@@ -50,6 +51,7 @@ defmodule GoogleApi.YouTube.V3.Model.CommentSnippet do
5051
:likeCount => integer() | nil,
5152
:moderationStatus => String.t() | nil,
5253
:parentId => String.t() | nil,
54+
:postId => String.t() | nil,
5355
:publishedAt => DateTime.t() | nil,
5456
:textDisplay => String.t() | nil,
5557
:textOriginal => String.t() | nil,
@@ -67,6 +69,7 @@ defmodule GoogleApi.YouTube.V3.Model.CommentSnippet do
6769
field(:likeCount)
6870
field(:moderationStatus)
6971
field(:parentId)
72+
field(:postId)
7073
field(:publishedAt, as: DateTime)
7174
field(:textDisplay)
7275
field(:textOriginal)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717

1818
defmodule GoogleApi.YouTube.V3.Model.CommentSnippetAuthorChannelId do
1919
@moduledoc """
20-
The id of the author's YouTube channel, if any.
20+
Contains the id of the author's YouTube channel, if any.
2121
2222
## Attributes
2323
24-
* `value` (*type:* `String.t`, *default:* `nil`) -
24+
* `value` (*type:* `String.t`, *default:* `nil`) - The id of the author's YouTube channel.
2525
"""
2626

2727
use GoogleApi.Gax.ModelBase

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ defmodule GoogleApi.YouTube.V3.Model.CommentThreadSnippet do
2222
## Attributes
2323
2424
* `canReply` (*type:* `boolean()`, *default:* `nil`) - Whether the current viewer of the thread can reply to it. This is viewer specific - other viewers may see a different value for this field.
25-
* `channelId` (*type:* `String.t`, *default:* `nil`) - The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn't set the comments refer to the channel itself.
25+
* `channelId` (*type:* `String.t`, *default:* `nil`) - The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If neither video_id nor post_id is set the comments refer to the channel itself.
2626
* `isPublic` (*type:* `boolean()`, *default:* `nil`) - Whether the thread (and therefore all its comments) is visible to all YouTube users.
27+
* `postId` (*type:* `String.t`, *default:* `nil`) - The ID of the post the comments refer to, if any.
2728
* `topLevelComment` (*type:* `GoogleApi.YouTube.V3.Model.Comment.t`, *default:* `nil`) - The top level comment of this thread.
2829
* `totalReplyCount` (*type:* `integer()`, *default:* `nil`) - The total number of replies (not including the top level comment).
29-
* `videoId` (*type:* `String.t`, *default:* `nil`) - The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment.
30+
* `videoId` (*type:* `String.t`, *default:* `nil`) - The ID of the video the comments refer to, if any.
3031
"""
3132

3233
use GoogleApi.Gax.ModelBase
@@ -35,6 +36,7 @@ defmodule GoogleApi.YouTube.V3.Model.CommentThreadSnippet do
3536
:canReply => boolean() | nil,
3637
:channelId => String.t() | nil,
3738
:isPublic => boolean() | nil,
39+
:postId => String.t() | nil,
3840
:topLevelComment => GoogleApi.YouTube.V3.Model.Comment.t() | nil,
3941
:totalReplyCount => integer() | nil,
4042
:videoId => String.t() | nil
@@ -43,6 +45,7 @@ defmodule GoogleApi.YouTube.V3.Model.CommentThreadSnippet do
4345
field(:canReply)
4446
field(:channelId)
4547
field(:isPublic)
48+
field(:postId)
4649
field(:topLevelComment, as: GoogleApi.YouTube.V3.Model.Comment)
4750
field(:totalReplyCount)
4851
field(:videoId)

0 commit comments

Comments
 (0)