@@ -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