code: public List<Package> getPackages(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
          Response response = get(Response.Status.OK, getPageQueryParams(page, perPage),
                  "projects", getProjectIdOrPath(projectIdOrPath), "packages");
          return response.readEntity(new GenericType<List<Package>>() {});
      }
docs: Get a list of project packages for the specified page. Both Maven and NPM packages are included in results.
  When accessed without authentication, only packages of public projects are returned.
  
  <pre><code>GitLab Endpoint: GET /projects/:id/packages</code></pre>
  
  @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param page the page to get
  @param perPage the number of Package instances per page
  @return a list of project packages for the specified range
  @throws GitLabApiException if any exception occurs