class Google::Cloud::Storage::Service

def download_file bucket_name, file_path, target_path, generation: nil,

the end of this file.
Apis::StorageV1::StorageService and Apis::Core::DownloadCommand at
* The `http_resp` accessed via the monkey-patches of
StorageService#get_object (for downloads)
* The IO object that is the usual return type of
Returns a two-element array containing:

Download contents of a file.
#
def download_file bucket_name, file_path, target_path, generation: nil,
                  key: nil, range: nil, user_project: nil, options: {}
  options = key_options(key).merge(options)
  options = range_header options, range
  execute do
    service.get_object \
      bucket_name, file_path,
      download_dest: target_path, generation: generation,
      user_project: user_project(user_project),
      options: options
  end
end