Package io.gitea.api

Class PackageApi


  • public class PackageApi
    extends java.lang.Object
    • Constructor Detail

      • PackageApi

        public PackageApi()
      • PackageApi

        public PackageApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • deletePackageCall

        public com.squareup.okhttp.Call deletePackageCall​(java.lang.String owner,
                                                          java.lang.String type,
                                                          java.lang.String name,
                                                          java.lang.String version,
                                                          ProgressResponseBody.ProgressListener progressListener,
                                                          ProgressRequestBody.ProgressRequestListener progressRequestListener)
                                                   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)
        progressListener - Progress listener
        progressRequestListener - Progress request listener
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deletePackage

        public void deletePackage​(java.lang.String owner,
                                  java.lang.String type,
                                  java.lang.String name,
                                  java.lang.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
      • deletePackageWithHttpInfo

        public ApiResponse<java.lang.Void> deletePackageWithHttpInfo​(java.lang.String owner,
                                                                     java.lang.String type,
                                                                     java.lang.String name,
                                                                     java.lang.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
      • deletePackageAsync

        public com.squareup.okhttp.Call deletePackageAsync​(java.lang.String owner,
                                                           java.lang.String type,
                                                           java.lang.String name,
                                                           java.lang.String version,
                                                           ApiCallback<java.lang.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
      • getPackageCall

        public com.squareup.okhttp.Call getPackageCall​(java.lang.String owner,
                                                       java.lang.String type,
                                                       java.lang.String name,
                                                       java.lang.String version,
                                                       ProgressResponseBody.ProgressListener progressListener,
                                                       ProgressRequestBody.ProgressRequestListener progressRequestListener)
                                                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)
        progressListener - Progress listener
        progressRequestListener - Progress request listener
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getPackage

        public ModelPackage getPackage​(java.lang.String owner,
                                       java.lang.String type,
                                       java.lang.String name,
                                       java.lang.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
      • getPackageWithHttpInfo

        public ApiResponse<ModelPackage> getPackageWithHttpInfo​(java.lang.String owner,
                                                                java.lang.String type,
                                                                java.lang.String name,
                                                                java.lang.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
      • getPackageAsync

        public com.squareup.okhttp.Call getPackageAsync​(java.lang.String owner,
                                                        java.lang.String type,
                                                        java.lang.String name,
                                                        java.lang.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
      • listPackageFilesCall

        public com.squareup.okhttp.Call listPackageFilesCall​(java.lang.String owner,
                                                             java.lang.String type,
                                                             java.lang.String name,
                                                             java.lang.String version,
                                                             ProgressResponseBody.ProgressListener progressListener,
                                                             ProgressRequestBody.ProgressRequestListener progressRequestListener)
                                                      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)
        progressListener - Progress listener
        progressRequestListener - Progress request listener
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • listPackageFiles

        public java.util.List<PackageFile> listPackageFiles​(java.lang.String owner,
                                                            java.lang.String type,
                                                            java.lang.String name,
                                                            java.lang.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
      • listPackageFilesWithHttpInfo

        public ApiResponse<java.util.List<PackageFile>> listPackageFilesWithHttpInfo​(java.lang.String owner,
                                                                                     java.lang.String type,
                                                                                     java.lang.String name,
                                                                                     java.lang.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
      • listPackageFilesAsync

        public com.squareup.okhttp.Call listPackageFilesAsync​(java.lang.String owner,
                                                              java.lang.String type,
                                                              java.lang.String name,
                                                              java.lang.String version,
                                                              ApiCallback<java.util.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
      • listPackagesCall

        public com.squareup.okhttp.Call listPackagesCall​(java.lang.String owner,
                                                         java.lang.Integer page,
                                                         java.lang.Integer limit,
                                                         java.lang.String type,
                                                         java.lang.String q,
                                                         ProgressResponseBody.ProgressListener progressListener,
                                                         ProgressRequestBody.ProgressRequestListener progressRequestListener)
                                                  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)
        progressListener - Progress listener
        progressRequestListener - Progress request listener
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • listPackages

        public java.util.List<ModelPackage> listPackages​(java.lang.String owner,
                                                         java.lang.Integer page,
                                                         java.lang.Integer limit,
                                                         java.lang.String type,
                                                         java.lang.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
      • listPackagesWithHttpInfo

        public ApiResponse<java.util.List<ModelPackage>> listPackagesWithHttpInfo​(java.lang.String owner,
                                                                                  java.lang.Integer page,
                                                                                  java.lang.Integer limit,
                                                                                  java.lang.String type,
                                                                                  java.lang.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
      • listPackagesAsync

        public com.squareup.okhttp.Call listPackagesAsync​(java.lang.String owner,
                                                          java.lang.Integer page,
                                                          java.lang.Integer limit,
                                                          java.lang.String type,
                                                          java.lang.String q,
                                                          ApiCallback<java.util.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