code: public InputStream getRepositoryArchive(Object projectIdOrPath, String sha, String format) throws GitLabApiException {
          ArchiveFormat archiveFormat = ArchiveFormat.forValue(format);
          return (getRepositoryArchive(projectIdOrPath, sha, archiveFormat));
      }
docs: Get an archive of the complete repository by SHA (optional).
  
  <pre><code>GitLab Endpoint: GET /projects/:id/repository/archive</code></pre>
  
  @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param sha the SHA of the archive to get
  @param format The archive format, defaults to "tar.gz" if null
  @return an input stream that can be used to save as a file or to read the content of the archive
  @throws GitLabApiException if format is not a valid archive format or any exception occurs