Package build.cursed.genapi.forgejo.api
Class PackageApi
java.lang.Object
build.cursed.genapi.forgejo.api.PackageApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeletePackage(String owner, String type, String name, String version) Delete a packageokhttp3.CalldeletePackageAsync(String owner, String type, String name, String version, ApiCallback<Void> _callback) Delete a package (asynchronously)okhttp3.CalldeletePackageCall(String owner, String type, String name, String version, ApiCallback _callback) Build call for deletePackagedeletePackageWithHttpInfo(String owner, String type, String name, String version) Delete a packageintgetPackage(String owner, String type, String name, String version) Gets a packageokhttp3.CallgetPackageAsync(String owner, String type, String name, String version, ApiCallback<ModelPackage> _callback) Gets a package (asynchronously)okhttp3.CallgetPackageCall(String owner, String type, String name, String version, ApiCallback _callback) Build call for getPackagegetPackageWithHttpInfo(String owner, String type, String name, String version) Gets a packagevoidlinkPackage(String owner, String type, String name, String repoName) Link a package to a repositoryokhttp3.CalllinkPackageAsync(String owner, String type, String name, String repoName, ApiCallback<Void> _callback) Link a package to a repository (asynchronously)okhttp3.CalllinkPackageCall(String owner, String type, String name, String repoName, ApiCallback _callback) Build call for linkPackagelinkPackageWithHttpInfo(String owner, String type, String name, String repoName) Link a package to a repositorylistPackageFiles(String owner, String type, String name, String version) Gets all files of a packageokhttp3.CalllistPackageFilesAsync(String owner, String type, String name, String version, ApiCallback<List<PackageFile>> _callback) Gets all files of a package (asynchronously)okhttp3.CalllistPackageFilesCall(String owner, String type, String name, String version, ApiCallback _callback) Build call for listPackageFileslistPackageFilesWithHttpInfo(String owner, String type, String name, String version) Gets all files of a packageGets all packages of an ownerokhttp3.CalllistPackagesAsync(String owner, Integer page, Integer limit, String type, String q, ApiCallback<List<ModelPackage>> _callback) Gets all packages of an owner (asynchronously)okhttp3.CalllistPackagesCall(String owner, Integer page, Integer limit, String type, String q, ApiCallback _callback) Build call for listPackagesGets all packages of an ownervoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) voidunlinkPackage(String owner, String type, String name) Unlink a package from a repositoryokhttp3.CallunlinkPackageAsync(String owner, String type, String name, ApiCallback<Void> _callback) Unlink a package from a repository (asynchronously)okhttp3.CallunlinkPackageCall(String owner, String type, String name, ApiCallback _callback) Build call for unlinkPackageunlinkPackageWithHttpInfo(String owner, String type, String name) Unlink a package from a repository
-
Constructor Details
-
PackageApi
public PackageApi() -
PackageApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
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 -
-