@@ -927,42 +927,6 @@ def list_comment_threads(part, all_threads_related_to_channel_id: nil, channel_i
927927 execute_or_queue_command ( command , &block )
928928 end
929929
930- # Updates an existing resource.
931- # @param [Array<String>, String] part
932- # The *part* parameter specifies a comma-separated list of commentThread
933- # resource properties that the API response will include. You must at least
934- # include the snippet part in the parameter value since that part contains all
935- # of the properties that the API request can update.
936- # @param [Google::Apis::YoutubeV3::CommentThread] comment_thread_object
937- # @param [String] fields
938- # Selector specifying which fields to include in a partial response.
939- # @param [String] quota_user
940- # Available to use for quota purposes for server-side applications. Can be any
941- # arbitrary string assigned to a user, but should not exceed 40 characters.
942- # @param [Google::Apis::RequestOptions] options
943- # Request-specific options
944- #
945- # @yield [result, err] Result & error if block supplied
946- # @yieldparam result [Google::Apis::YoutubeV3::CommentThread] parsed result object
947- # @yieldparam err [StandardError] error object if request failed
948- #
949- # @return [Google::Apis::YoutubeV3::CommentThread]
950- #
951- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
952- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
953- # @raise [Google::Apis::AuthorizationError] Authorization is required
954- def update_comment_thread ( part , comment_thread_object = nil , fields : nil , quota_user : nil , options : nil , &block )
955- command = make_simple_command ( :put , 'youtube/v3/commentThreads' , options )
956- command . request_representation = Google ::Apis ::YoutubeV3 ::CommentThread ::Representation
957- command . request_object = comment_thread_object
958- command . response_representation = Google ::Apis ::YoutubeV3 ::CommentThread ::Representation
959- command . response_class = Google ::Apis ::YoutubeV3 ::CommentThread
960- command . query [ 'part' ] = part unless part . nil?
961- command . query [ 'fields' ] = fields unless fields . nil?
962- command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
963- execute_or_queue_command ( command , &block )
964- end
965-
966930 # Deletes a resource.
967931 # @param [String] id
968932 # @param [String] fields
@@ -3805,6 +3769,42 @@ def unset_watermark(channel_id, on_behalf_of_content_owner: nil, fields: nil, qu
38053769 command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
38063770 execute_or_queue_command ( command , &block )
38073771 end
3772+
3773+ # Updates an existing resource.
3774+ # @param [Google::Apis::YoutubeV3::CommentThread] comment_thread_object
3775+ # @param [Array<String>, String] part
3776+ # The *part* parameter specifies a comma-separated list of commentThread
3777+ # resource properties that the API response will include. You must at least
3778+ # include the snippet part in the parameter value since that part contains all
3779+ # of the properties that the API request can update.
3780+ # @param [String] fields
3781+ # Selector specifying which fields to include in a partial response.
3782+ # @param [String] quota_user
3783+ # Available to use for quota purposes for server-side applications. Can be any
3784+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3785+ # @param [Google::Apis::RequestOptions] options
3786+ # Request-specific options
3787+ #
3788+ # @yield [result, err] Result & error if block supplied
3789+ # @yieldparam result [Google::Apis::YoutubeV3::CommentThread] parsed result object
3790+ # @yieldparam err [StandardError] error object if request failed
3791+ #
3792+ # @return [Google::Apis::YoutubeV3::CommentThread]
3793+ #
3794+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3795+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3796+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3797+ def update_youtube_v3_comment_threads ( comment_thread_object = nil , part : nil , fields : nil , quota_user : nil , options : nil , &block )
3798+ command = make_simple_command ( :put , 'youtube/v3/commentThreads' , options )
3799+ command . request_representation = Google ::Apis ::YoutubeV3 ::CommentThread ::Representation
3800+ command . request_object = comment_thread_object
3801+ command . response_representation = Google ::Apis ::YoutubeV3 ::CommentThread ::Representation
3802+ command . response_class = Google ::Apis ::YoutubeV3 ::CommentThread
3803+ command . query [ 'part' ] = part unless part . nil?
3804+ command . query [ 'fields' ] = fields unless fields . nil?
3805+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
3806+ execute_or_queue_command ( command , &block )
3807+ end
38083808
38093809 protected
38103810
0 commit comments