Class PackageApi

java.lang.Object
build.cursed.genapi.forgejo.api.PackageApi

public class PackageApi extends Object
  • Constructor Details

    • PackageApi

      public PackageApi()
    • PackageApi

      public PackageApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • deletePackageCall

      public okhttp3.Call deletePackageCall(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String version, ApiCallback _callback) throws ApiException
      Build call for deletePackage
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      version - version of the package (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      204 APIEmpty is an empty response -
      404 APINotFound is a not found error response -
    • deletePackage

      public void deletePackage(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String version) throws ApiException
      Delete a package
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      version - version of the package (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      204 APIEmpty is an empty response -
      404 APINotFound is a not found error response -
    • deletePackageWithHttpInfo

      public ApiResponse<Void> deletePackageWithHttpInfo(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String version) throws ApiException
      Delete a package
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      version - version of the package (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      204 APIEmpty is an empty response -
      404 APINotFound is a not found error response -
    • deletePackageAsync

      public okhttp3.Call deletePackageAsync(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String version, ApiCallback<Void> _callback) throws ApiException
      Delete a package (asynchronously)
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      version - version of the package (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      204 APIEmpty is an empty response -
      404 APINotFound is a not found error response -
    • getPackageCall

      public okhttp3.Call getPackageCall(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String version, ApiCallback _callback) throws ApiException
      Build call for getPackage
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      version - version of the package (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Package -
      404 APINotFound is a not found error response -
    • getPackage

      public ModelPackage getPackage(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String version) throws ApiException
      Gets a package
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      version - version of the package (required)
      Returns:
      ModelPackage
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Package -
      404 APINotFound is a not found error response -
    • getPackageWithHttpInfo

      public ApiResponse<ModelPackage> getPackageWithHttpInfo(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String version) throws ApiException
      Gets a package
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      version - version of the package (required)
      Returns:
      ApiResponse<ModelPackage>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Package -
      404 APINotFound is a not found error response -
    • getPackageAsync

      public okhttp3.Call getPackageAsync(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String version, ApiCallback<ModelPackage> _callback) throws ApiException
      Gets a package (asynchronously)
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      version - version of the package (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Package -
      404 APINotFound is a not found error response -
    • linkPackageCall

      public okhttp3.Call linkPackageCall(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String repoName, ApiCallback _callback) throws ApiException
      Build call for linkPackage
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      repoName - name of the repository to link. (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 APIEmpty is an empty response -
      404 APINotFound is a not found error response -
    • linkPackage

      public void linkPackage(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String repoName) throws ApiException
      Link a package to a repository
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      repoName - name of the repository to link. (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 APIEmpty is an empty response -
      404 APINotFound is a not found error response -
    • linkPackageWithHttpInfo

      public ApiResponse<Void> linkPackageWithHttpInfo(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String repoName) throws ApiException
      Link a package to a repository
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      repoName - name of the repository to link. (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 APIEmpty is an empty response -
      404 APINotFound is a not found error response -
    • linkPackageAsync

      public okhttp3.Call linkPackageAsync(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String repoName, ApiCallback<Void> _callback) throws ApiException
      Link a package to a repository (asynchronously)
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      repoName - name of the repository to link. (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 APIEmpty is an empty response -
      404 APINotFound is a not found error response -
    • listPackageFilesCall

      public okhttp3.Call listPackageFilesCall(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String version, ApiCallback _callback) throws ApiException
      Build call for listPackageFiles
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      version - version of the package (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 PackageFileList -
      404 APINotFound is a not found error response -
    • listPackageFiles

      public List<PackageFile> listPackageFiles(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String version) throws ApiException
      Gets all files of a package
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      version - version of the package (required)
      Returns:
      List<PackageFile>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 PackageFileList -
      404 APINotFound is a not found error response -
    • listPackageFilesWithHttpInfo

      public ApiResponse<List<PackageFile>> listPackageFilesWithHttpInfo(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String version) throws ApiException
      Gets all files of a package
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      version - version of the package (required)
      Returns:
      ApiResponse<List<PackageFile>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 PackageFileList -
      404 APINotFound is a not found error response -
    • listPackageFilesAsync

      public okhttp3.Call listPackageFilesAsync(@Nonnull String owner, @Nonnull String type, @Nonnull String name, @Nonnull String version, ApiCallback<List<PackageFile>> _callback) throws ApiException
      Gets all files of a package (asynchronously)
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      version - version of the package (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 PackageFileList -
      404 APINotFound is a not found error response -
    • listPackagesCall

      public okhttp3.Call listPackagesCall(@Nonnull String owner, @Nullable Integer page, @Nullable Integer limit, @Nullable String type, @Nullable String q, ApiCallback _callback) throws ApiException
      Build call for listPackages
      Parameters:
      owner - owner of the packages (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      type - package type filter (optional)
      q - name filter (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 PackageList * X-Total-Count - The total number of access tokens
      404 APINotFound is a not found error response -
    • listPackages

      public List<ModelPackage> listPackages(@Nonnull String owner, @Nullable Integer page, @Nullable Integer limit, @Nullable String type, @Nullable String q) throws ApiException
      Gets all packages of an owner
      Parameters:
      owner - owner of the packages (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      type - package type filter (optional)
      q - name filter (optional)
      Returns:
      List<ModelPackage>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 PackageList * X-Total-Count - The total number of access tokens
      404 APINotFound is a not found error response -
    • listPackagesWithHttpInfo

      public ApiResponse<List<ModelPackage>> listPackagesWithHttpInfo(@Nonnull String owner, @Nullable Integer page, @Nullable Integer limit, @Nullable String type, @Nullable String q) throws ApiException
      Gets all packages of an owner
      Parameters:
      owner - owner of the packages (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      type - package type filter (optional)
      q - name filter (optional)
      Returns:
      ApiResponse<List<ModelPackage>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 PackageList * X-Total-Count - The total number of access tokens
      404 APINotFound is a not found error response -
    • listPackagesAsync

      public okhttp3.Call listPackagesAsync(@Nonnull String owner, @Nullable Integer page, @Nullable Integer limit, @Nullable String type, @Nullable String q, ApiCallback<List<ModelPackage>> _callback) throws ApiException
      Gets all packages of an owner (asynchronously)
      Parameters:
      owner - owner of the packages (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      type - package type filter (optional)
      q - name filter (optional)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 PackageList * X-Total-Count - The total number of access tokens
      404 APINotFound is a not found error response -
    • unlinkPackageCall

      public okhttp3.Call unlinkPackageCall(@Nonnull String owner, @Nonnull String type, @Nonnull String name, ApiCallback _callback) throws ApiException
      Build call for unlinkPackage
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 APIEmpty is an empty response -
      404 APINotFound is a not found error response -
    • unlinkPackage

      public void unlinkPackage(@Nonnull String owner, @Nonnull String type, @Nonnull String name) throws ApiException
      Unlink a package from a repository
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 APIEmpty is an empty response -
      404 APINotFound is a not found error response -
    • unlinkPackageWithHttpInfo

      public ApiResponse<Void> unlinkPackageWithHttpInfo(@Nonnull String owner, @Nonnull String type, @Nonnull String name) throws ApiException
      Unlink a package from a repository
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 APIEmpty is an empty response -
      404 APINotFound is a not found error response -
    • unlinkPackageAsync

      public okhttp3.Call unlinkPackageAsync(@Nonnull String owner, @Nonnull String type, @Nonnull String name, ApiCallback<Void> _callback) throws ApiException
      Unlink a package from a repository (asynchronously)
      Parameters:
      owner - owner of the package (required)
      type - type of the package (required)
      name - name of the package (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 APIEmpty is an empty response -
      404 APINotFound is a not found error response -