google-apis-core/lib/google/apis/core/base_service.rb
# Create a new upload command.
#
# @param [symbol] method
#   HTTP method for uploading (typically :put or :post)
# @param [String] path
#  Additional path to upload endpoint, appended to API base path
# @param [Hash, Google::Apis::RequestOptions] options
#  Request-specific options
# @return [Google::Apis::Core::UploadCommand]
Create a new upload command.
Create a new upload command .
def make_upload_command(method, path, options)
          template = Addressable::Template.new(root_url + upload_path + path)
          if batch?
            command = MultipartUploadCommand.new(method, template, client_version: client_version)
          else
            command = ResumableUploadCommand.new(method, template, client_version: client_version)
          end
          command.options = request_options.merge(options)
          apply_command_defaults(command)
          command
        end
def make_upload_command ( method , path , options ) template = Addressable :: Template . new ( root_url + upload_path + path ) if batch? command = MultipartUploadCommand . new ( method , template , client_version : client_version ) else command = ResumableUploadCommand . new ( method , template , client_version : client_version ) end command . options = request_options . merge ( options ) apply_command_defaults ( command ) command end
Create a new upload command.
Create a new upload command .
None
Google::Apis::Core::UploadCommand
method
path
options
options Request-specific options
options Request - specific options