class Google::Apis::Core::BatchUploadCommand
Wrapper request for batching multiple uploads in a single server request
Public Instance Methods
ensure_valid_command(command)
click to toggle source
# File lib/google/apis/core/batch.rb, line 143 def ensure_valid_command(command) fail Google::Apis::ClientError, 'Can only include upload commands in batch' \ unless command.is_a?(Google::Apis::Core::BaseUploadCommand) end
prepare!()
click to toggle source
Calls superclass method
Google::Apis::Core::BatchCommand#prepare!
# File lib/google/apis/core/batch.rb, line 148 def prepare! header['X-Goog-Upload-Protocol'] = 'batch' super end