Skip to content

Commit f81aeca

Browse files
feat: Automated regeneration of youtube v3 client (#18475)
Auto-created at 2024-03-10 10:36:20 +0000 using the toys pull request generator.
1 parent cf0114d commit f81aeca

3 files changed

Lines changed: 18 additions & 4 deletions

File tree

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.40.0 (2024-03-10)
4+
5+
* Regenerated from discovery document revision 20240303
6+
37
### v0.39.0 (2024-03-03)
48

59
* Regenerated from discovery document revision 20240225

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.39.0"
19+
GEM_VERSION = "0.40.0"
2020

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

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

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2502,6 +2502,10 @@ def list_playlist_images(max_results: nil, on_behalf_of_content_owner: nil, on_b
25022502
# @param [String] quota_user
25032503
# Available to use for quota purposes for server-side applications. Can be any
25042504
# arbitrary string assigned to a user, but should not exceed 40 characters.
2505+
# @param [IO, String] upload_source
2506+
# IO stream or filename containing content to upload
2507+
# @param [String] content_type
2508+
# Content type of the uploaded content.
25052509
# @param [Google::Apis::RequestOptions] options
25062510
# Request-specific options
25072511
#
@@ -2514,8 +2518,14 @@ def list_playlist_images(max_results: nil, on_behalf_of_content_owner: nil, on_b
25142518
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25152519
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25162520
# @raise [Google::Apis::AuthorizationError] Authorization is required
2517-
def update_playlist_image(playlist_image_object = nil, on_behalf_of_content_owner: nil, part: nil, fields: nil, quota_user: nil, options: nil, &block)
2518-
command = make_simple_command(:put, 'youtube/v3/playlistImages', options)
2521+
def update_playlist_image(playlist_image_object = nil, on_behalf_of_content_owner: nil, part: nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
2522+
if upload_source.nil?
2523+
command = make_simple_command(:put, 'youtube/v3/playlistImages', options)
2524+
else
2525+
command = make_upload_command(:put, 'youtube/v3/playlistImages', options)
2526+
command.upload_source = upload_source
2527+
command.upload_content_type = content_type
2528+
end
25192529
command.request_representation = Google::Apis::YoutubeV3::PlaylistImage::Representation
25202530
command.request_object = playlist_image_object
25212531
command.response_representation = Google::Apis::YoutubeV3::PlaylistImage::Representation

0 commit comments

Comments
 (0)