Skip to content

Commit ec06300

Browse files
feat: Automated regeneration of youtube v3 client (googleapis#22356)
Auto-created at 2025-04-06 09:34:20 +0000 using the toys pull request generator.
1 parent 2b81b11 commit ec06300

File tree

6 files changed

+36
-13
lines changed

6 files changed

+36
-13
lines changed

api_names_out.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365415,6 +365415,7 @@
365415365415
"/youtube:v3/CommentSnippet/likeCount": like_count
365416365416
"/youtube:v3/CommentSnippet/moderationStatus": moderation_status
365417365417
"/youtube:v3/CommentSnippet/parentId": parent_id
365418+
"/youtube:v3/CommentSnippet/postId": post_id
365418365419
"/youtube:v3/CommentSnippet/publishedAt": published_at
365419365420
"/youtube:v3/CommentSnippet/textDisplay": text_display
365420365421
"/youtube:v3/CommentSnippet/textOriginal": text_original
@@ -365446,6 +365447,7 @@
365446365447
"/youtube:v3/CommentThreadSnippet/canReply": can_reply
365447365448
"/youtube:v3/CommentThreadSnippet/channelId": channel_id
365448365449
"/youtube:v3/CommentThreadSnippet/isPublic": is_public
365450+
"/youtube:v3/CommentThreadSnippet/postId": post_id
365449365451
"/youtube:v3/CommentThreadSnippet/topLevelComment": top_level_comment
365450365452
"/youtube:v3/CommentThreadSnippet/totalReplyCount": total_reply_count
365451365453
"/youtube:v3/CommentThreadSnippet/videoId": video_id
@@ -366686,6 +366688,7 @@
366686366688
"/youtube:v3/youtube.commentThreads.list/order": order
366687366689
"/youtube:v3/youtube.commentThreads.list/pageToken": page_token
366688366690
"/youtube:v3/youtube.commentThreads.list/part": part
366691+
"/youtube:v3/youtube.commentThreads.list/postId": post_id
366689366692
"/youtube:v3/youtube.commentThreads.list/searchTerms": search_terms
366690366693
"/youtube:v3/youtube.commentThreads.list/textFormat": text_format
366691366694
"/youtube:v3/youtube.commentThreads.list/videoId": video_id

generated/google-apis-youtube_v3/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-youtube_v3
22

3+
### v0.55.0 (2025-04-06)
4+
5+
* Regenerated from discovery document revision 20250331
6+
37
### v0.54.0 (2025-02-26)
48

59
* Regenerated from discovery document revision 20250224

generated/google-apis-youtube_v3/lib/google/apis/youtube_v3/classes.rb

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2128,7 +2128,7 @@ def update!(**args)
21282128
class CommentSnippet
21292129
include Google::Apis::Core::Hashable
21302130

2131-
# The id of the author's YouTube channel, if any.
2131+
# Contains the id of the author's YouTube channel, if any.
21322132
# Corresponds to the JSON property `authorChannelId`
21332133
# @return [Google::Apis::YoutubeV3::CommentSnippetAuthorChannelId]
21342134
attr_accessor :author_channel_id
@@ -2155,8 +2155,8 @@ class CommentSnippet
21552155
alias_method :can_rate?, :can_rate
21562156

21572157
# The id of the corresponding YouTube channel. In case of a channel comment this
2158-
# is the channel the comment refers to. In case of a video comment it's the
2159-
# video's channel.
2158+
# is the channel the comment refers to. In case of a video or post comment it's
2159+
# the video/post's channel.
21602160
# Corresponds to the JSON property `channelId`
21612161
# @return [String]
21622162
attr_accessor :channel_id
@@ -2172,11 +2172,16 @@ class CommentSnippet
21722172
# @return [String]
21732173
attr_accessor :moderation_status
21742174

2175-
# The unique id of the parent comment, only set for replies.
2175+
# The unique id of the top-level comment, only set for replies.
21762176
# Corresponds to the JSON property `parentId`
21772177
# @return [String]
21782178
attr_accessor :parent_id
21792179

2180+
# The ID of the post the comment refers to, if any.
2181+
# Corresponds to the JSON property `postId`
2182+
# @return [String]
2183+
attr_accessor :post_id
2184+
21802185
# The date and time when the comment was originally published.
21812186
# Corresponds to the JSON property `publishedAt`
21822187
# @return [DateTime]
@@ -2229,6 +2234,7 @@ def update!(**args)
22292234
@like_count = args[:like_count] if args.key?(:like_count)
22302235
@moderation_status = args[:moderation_status] if args.key?(:moderation_status)
22312236
@parent_id = args[:parent_id] if args.key?(:parent_id)
2237+
@post_id = args[:post_id] if args.key?(:post_id)
22322238
@published_at = args[:published_at] if args.key?(:published_at)
22332239
@text_display = args[:text_display] if args.key?(:text_display)
22342240
@text_original = args[:text_original] if args.key?(:text_original)
@@ -2238,11 +2244,11 @@ def update!(**args)
22382244
end
22392245
end
22402246

2241-
# The id of the author's YouTube channel, if any.
2247+
# Contains the id of the author's YouTube channel, if any.
22422248
class CommentSnippetAuthorChannelId
22432249
include Google::Apis::Core::Hashable
22442250

2245-
#
2251+
# The id of the author's YouTube channel.
22462252
# Corresponds to the JSON property `value`
22472253
# @return [String]
22482254
attr_accessor :value
@@ -2400,8 +2406,8 @@ class CommentThreadSnippet
24002406
alias_method :can_reply?, :can_reply
24012407

24022408
# The YouTube channel the comments in the thread refer to or the channel with
2403-
# the video the comments refer to. If video_id isn't set the comments refer to
2404-
# the channel itself.
2409+
# the video the comments refer to. If neither video_id nor post_id is set the
2410+
# comments refer to the channel itself.
24052411
# Corresponds to the JSON property `channelId`
24062412
# @return [String]
24072413
attr_accessor :channel_id
@@ -2413,6 +2419,11 @@ class CommentThreadSnippet
24132419
attr_accessor :is_public
24142420
alias_method :is_public?, :is_public
24152421

2422+
# The ID of the post the comments refer to, if any.
2423+
# Corresponds to the JSON property `postId`
2424+
# @return [String]
2425+
attr_accessor :post_id
2426+
24162427
# A *comment* represents a single YouTube comment.
24172428
# Corresponds to the JSON property `topLevelComment`
24182429
# @return [Google::Apis::YoutubeV3::Comment]
@@ -2423,8 +2434,7 @@ class CommentThreadSnippet
24232434
# @return [Fixnum]
24242435
attr_accessor :total_reply_count
24252436

2426-
# The ID of the video the comments refer to, if any. No video_id implies a
2427-
# channel discussion comment.
2437+
# The ID of the video the comments refer to, if any.
24282438
# Corresponds to the JSON property `videoId`
24292439
# @return [String]
24302440
attr_accessor :video_id
@@ -2438,6 +2448,7 @@ def update!(**args)
24382448
@can_reply = args[:can_reply] if args.key?(:can_reply)
24392449
@channel_id = args[:channel_id] if args.key?(:channel_id)
24402450
@is_public = args[:is_public] if args.key?(:is_public)
2451+
@post_id = args[:post_id] if args.key?(:post_id)
24412452
@top_level_comment = args[:top_level_comment] if args.key?(:top_level_comment)
24422453
@total_reply_count = args[:total_reply_count] if args.key?(:total_reply_count)
24432454
@video_id = args[:video_id] if args.key?(:video_id)

generated/google-apis-youtube_v3/lib/google/apis/youtube_v3/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module YoutubeV3
1818
# Version of the google-apis-youtube_v3 gem
19-
GEM_VERSION = "0.54.0"
19+
GEM_VERSION = "0.55.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250224"
25+
REVISION = "20250331"
2626
end
2727
end
2828
end

generated/google-apis-youtube_v3/lib/google/apis/youtube_v3/representations.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,6 +1822,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
18221822
property :like_count, as: 'likeCount'
18231823
property :moderation_status, as: 'moderationStatus'
18241824
property :parent_id, as: 'parentId'
1825+
property :post_id, as: 'postId'
18251826
property :published_at, as: 'publishedAt', type: DateTime
18261827

18271828
property :text_display, as: 'textDisplay'
@@ -1884,6 +1885,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
18841885
property :can_reply, as: 'canReply'
18851886
property :channel_id, as: 'channelId'
18861887
property :is_public, as: 'isPublic'
1888+
property :post_id, as: 'postId'
18871889
property :top_level_comment, as: 'topLevelComment', class: Google::Apis::YoutubeV3::Comment, decorator: Google::Apis::YoutubeV3::Comment::Representation
18881890

18891891
property :total_reply_count, as: 'totalReplyCount'

generated/google-apis-youtube_v3/lib/google/apis/youtube_v3/service.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,8 @@ def insert_comment_thread(part, comment_thread_object = nil, fields: nil, quota_
888888
# The *pageToken* parameter identifies a specific page in the result set that
889889
# should be returned. In an API response, the nextPageToken and prevPageToken
890890
# properties identify other pages that could be retrieved.
891+
# @param [String] post_id
892+
# Returns the comment threads of the specified post.
891893
# @param [String] search_terms
892894
# Limits the returned comment threads to those matching the specified key words.
893895
# Not compatible with the 'id' filter.
@@ -912,7 +914,7 @@ def insert_comment_thread(part, comment_thread_object = nil, fields: nil, quota_
912914
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
913915
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
914916
# @raise [Google::Apis::AuthorizationError] Authorization is required
915-
def list_comment_threads(part, all_threads_related_to_channel_id: nil, channel_id: nil, id: nil, max_results: nil, moderation_status: nil, order: nil, page_token: nil, search_terms: nil, text_format: nil, video_id: nil, fields: nil, quota_user: nil, options: nil, &block)
917+
def list_comment_threads(part, all_threads_related_to_channel_id: nil, channel_id: nil, id: nil, max_results: nil, moderation_status: nil, order: nil, page_token: nil, post_id: nil, search_terms: nil, text_format: nil, video_id: nil, fields: nil, quota_user: nil, options: nil, &block)
916918
command = make_simple_command(:get, 'youtube/v3/commentThreads', options)
917919
command.response_representation = Google::Apis::YoutubeV3::ListCommentThreadsResponse::Representation
918920
command.response_class = Google::Apis::YoutubeV3::ListCommentThreadsResponse
@@ -924,6 +926,7 @@ def list_comment_threads(part, all_threads_related_to_channel_id: nil, channel_i
924926
command.query['order'] = order unless order.nil?
925927
command.query['pageToken'] = page_token unless page_token.nil?
926928
command.query['part'] = part unless part.nil?
929+
command.query['postId'] = post_id unless post_id.nil?
927930
command.query['searchTerms'] = search_terms unless search_terms.nil?
928931
command.query['textFormat'] = text_format unless text_format.nil?
929932
command.query['videoId'] = video_id unless video_id.nil?

0 commit comments

Comments
 (0)