Package io.gitea.api
Class AdminApi
java.lang.Object
io.gitea.api.AdminApi
public class AdminApi
extends java.lang.Object
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidadminAdoptRepository(java.lang.String owner, java.lang.String repo)Adopt unadopted files as a repositorycom.squareup.okhttp.CalladminAdoptRepositoryAsync(java.lang.String owner, java.lang.String repo, ApiCallback<java.lang.Void> callback)Adopt unadopted files as a repository (asynchronously)com.squareup.okhttp.CalladminAdoptRepositoryCall(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for adminAdoptRepositoryApiResponse<java.lang.Void>adminAdoptRepositoryWithHttpInfo(java.lang.String owner, java.lang.String repo)Adopt unadopted files as a repositoryOrganizationadminCreateOrg(java.lang.String username, CreateOrgOption organization)Create an organizationcom.squareup.okhttp.CalladminCreateOrgAsync(java.lang.String username, CreateOrgOption organization, ApiCallback<Organization> callback)Create an organization (asynchronously)com.squareup.okhttp.CalladminCreateOrgCall(java.lang.String username, CreateOrgOption organization, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for adminCreateOrgApiResponse<Organization>adminCreateOrgWithHttpInfo(java.lang.String username, CreateOrgOption organization)Create an organizationPublicKeyadminCreatePublicKey(java.lang.String username, CreateKeyOption key)Add a public key on behalf of a usercom.squareup.okhttp.CalladminCreatePublicKeyAsync(java.lang.String username, CreateKeyOption key, ApiCallback<PublicKey> callback)Add a public key on behalf of a user (asynchronously)com.squareup.okhttp.CalladminCreatePublicKeyCall(java.lang.String username, CreateKeyOption key, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for adminCreatePublicKeyApiResponse<PublicKey>adminCreatePublicKeyWithHttpInfo(java.lang.String username, CreateKeyOption key)Add a public key on behalf of a userRepositoryadminCreateRepo(java.lang.String username, CreateRepoOption repository)Create a repository on behalf of a usercom.squareup.okhttp.CalladminCreateRepoAsync(java.lang.String username, CreateRepoOption repository, ApiCallback<Repository> callback)Create a repository on behalf of a user (asynchronously)com.squareup.okhttp.CalladminCreateRepoCall(java.lang.String username, CreateRepoOption repository, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for adminCreateRepoApiResponse<Repository>adminCreateRepoWithHttpInfo(java.lang.String username, CreateRepoOption repository)Create a repository on behalf of a userUseradminCreateUser(CreateUserOption body)Create a usercom.squareup.okhttp.CalladminCreateUserAsync(CreateUserOption body, ApiCallback<User> callback)Create a user (asynchronously)com.squareup.okhttp.CalladminCreateUserCall(CreateUserOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for adminCreateUserApiResponse<User>adminCreateUserWithHttpInfo(CreateUserOption body)Create a userjava.util.List<Cron>adminCronList(java.lang.Integer page, java.lang.Integer limit)List cron taskscom.squareup.okhttp.CalladminCronListAsync(java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<Cron>> callback)List cron tasks (asynchronously)com.squareup.okhttp.CalladminCronListCall(java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for adminCronListApiResponse<java.util.List<Cron>>adminCronListWithHttpInfo(java.lang.Integer page, java.lang.Integer limit)List cron tasksvoidadminCronRun(java.lang.String task)Run cron taskcom.squareup.okhttp.CalladminCronRunAsync(java.lang.String task, ApiCallback<java.lang.Void> callback)Run cron task (asynchronously)com.squareup.okhttp.CalladminCronRunCall(java.lang.String task, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for adminCronRunApiResponse<java.lang.Void>adminCronRunWithHttpInfo(java.lang.String task)Run cron taskvoidadminDeleteUnadoptedRepository(java.lang.String owner, java.lang.String repo)Delete unadopted filescom.squareup.okhttp.CalladminDeleteUnadoptedRepositoryAsync(java.lang.String owner, java.lang.String repo, ApiCallback<java.lang.Void> callback)Delete unadopted files (asynchronously)com.squareup.okhttp.CalladminDeleteUnadoptedRepositoryCall(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for adminDeleteUnadoptedRepositoryApiResponse<java.lang.Void>adminDeleteUnadoptedRepositoryWithHttpInfo(java.lang.String owner, java.lang.String repo)Delete unadopted filesvoidadminDeleteUser(java.lang.String username)Delete a usercom.squareup.okhttp.CalladminDeleteUserAsync(java.lang.String username, ApiCallback<java.lang.Void> callback)Delete a user (asynchronously)com.squareup.okhttp.CalladminDeleteUserCall(java.lang.String username, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for adminDeleteUservoidadminDeleteUserPublicKey(java.lang.String username, java.lang.Long id)Delete a user's public keycom.squareup.okhttp.CalladminDeleteUserPublicKeyAsync(java.lang.String username, java.lang.Long id, ApiCallback<java.lang.Void> callback)Delete a user's public key (asynchronously)com.squareup.okhttp.CalladminDeleteUserPublicKeyCall(java.lang.String username, java.lang.Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for adminDeleteUserPublicKeyApiResponse<java.lang.Void>adminDeleteUserPublicKeyWithHttpInfo(java.lang.String username, java.lang.Long id)Delete a user's public keyApiResponse<java.lang.Void>adminDeleteUserWithHttpInfo(java.lang.String username)Delete a userUseradminEditUser(java.lang.String username, EditUserOption body)Edit an existing usercom.squareup.okhttp.CalladminEditUserAsync(java.lang.String username, EditUserOption body, ApiCallback<User> callback)Edit an existing user (asynchronously)com.squareup.okhttp.CalladminEditUserCall(java.lang.String username, EditUserOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for adminEditUserApiResponse<User>adminEditUserWithHttpInfo(java.lang.String username, EditUserOption body)Edit an existing userjava.util.List<Organization>adminGetAllOrgs(java.lang.Integer page, java.lang.Integer limit)List all organizationscom.squareup.okhttp.CalladminGetAllOrgsAsync(java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<Organization>> callback)List all organizations (asynchronously)com.squareup.okhttp.CalladminGetAllOrgsCall(java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for adminGetAllOrgsApiResponse<java.util.List<Organization>>adminGetAllOrgsWithHttpInfo(java.lang.Integer page, java.lang.Integer limit)List all organizationsjava.util.List<User>adminGetAllUsers(java.lang.Integer page, java.lang.Integer limit)List all userscom.squareup.okhttp.CalladminGetAllUsersAsync(java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<User>> callback)List all users (asynchronously)com.squareup.okhttp.CalladminGetAllUsersCall(java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for adminGetAllUsersApiResponse<java.util.List<User>>adminGetAllUsersWithHttpInfo(java.lang.Integer page, java.lang.Integer limit)List all usersjava.util.List<java.lang.String>adminUnadoptedList(java.lang.Integer page, java.lang.Integer limit, java.lang.String pattern)List unadopted repositoriescom.squareup.okhttp.CalladminUnadoptedListAsync(java.lang.Integer page, java.lang.Integer limit, java.lang.String pattern, ApiCallback<java.util.List<java.lang.String>> callback)List unadopted repositories (asynchronously)com.squareup.okhttp.CalladminUnadoptedListCall(java.lang.Integer page, java.lang.Integer limit, java.lang.String pattern, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for adminUnadoptedListApiResponse<java.util.List<java.lang.String>>adminUnadoptedListWithHttpInfo(java.lang.Integer page, java.lang.Integer limit, java.lang.String pattern)List unadopted repositoriesApiClientgetApiClient()voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
Method Details
-
getApiClient
-
setApiClient
-
adminAdoptRepositoryCall
public com.squareup.okhttp.Call adminAdoptRepositoryCall(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for adminAdoptRepository- Parameters:
owner- owner of the repo (required)repo- name of the repo (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
adminAdoptRepository
public void adminAdoptRepository(java.lang.String owner, java.lang.String repo) throws ApiExceptionAdopt unadopted files as a repository- Parameters:
owner- owner of the repo (required)repo- name of the repo (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminAdoptRepositoryWithHttpInfo
public ApiResponse<java.lang.Void> adminAdoptRepositoryWithHttpInfo(java.lang.String owner, java.lang.String repo) throws ApiExceptionAdopt unadopted files as a repository- Parameters:
owner- owner of the repo (required)repo- name of the repo (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminAdoptRepositoryAsync
public com.squareup.okhttp.Call adminAdoptRepositoryAsync(java.lang.String owner, java.lang.String repo, ApiCallback<java.lang.Void> callback) throws ApiExceptionAdopt unadopted files as a repository (asynchronously)- Parameters:
owner- owner of the repo (required)repo- name of the repo (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
-
adminCreateOrgCall
public com.squareup.okhttp.Call adminCreateOrgCall(java.lang.String username, CreateOrgOption organization, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for adminCreateOrg- Parameters:
username- username of the user that will own the created organization (required)organization- (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
adminCreateOrg
public Organization adminCreateOrg(java.lang.String username, CreateOrgOption organization) throws ApiExceptionCreate an organization- Parameters:
username- username of the user that will own the created organization (required)organization- (required)- Returns:
- Organization
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminCreateOrgWithHttpInfo
public ApiResponse<Organization> adminCreateOrgWithHttpInfo(java.lang.String username, CreateOrgOption organization) throws ApiExceptionCreate an organization- Parameters:
username- username of the user that will own the created organization (required)organization- (required)- Returns:
- ApiResponse<Organization>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminCreateOrgAsync
public com.squareup.okhttp.Call adminCreateOrgAsync(java.lang.String username, CreateOrgOption organization, ApiCallback<Organization> callback) throws ApiExceptionCreate an organization (asynchronously)- Parameters:
username- username of the user that will own the created organization (required)organization- (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
-
adminCreatePublicKeyCall
public com.squareup.okhttp.Call adminCreatePublicKeyCall(java.lang.String username, CreateKeyOption key, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for adminCreatePublicKey- Parameters:
username- username of the user (required)key- (optional)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
adminCreatePublicKey
public PublicKey adminCreatePublicKey(java.lang.String username, CreateKeyOption key) throws ApiExceptionAdd a public key on behalf of a user- Parameters:
username- username of the user (required)key- (optional)- Returns:
- PublicKey
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminCreatePublicKeyWithHttpInfo
public ApiResponse<PublicKey> adminCreatePublicKeyWithHttpInfo(java.lang.String username, CreateKeyOption key) throws ApiExceptionAdd a public key on behalf of a user- Parameters:
username- username of the user (required)key- (optional)- Returns:
- ApiResponse<PublicKey>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminCreatePublicKeyAsync
public com.squareup.okhttp.Call adminCreatePublicKeyAsync(java.lang.String username, CreateKeyOption key, ApiCallback<PublicKey> callback) throws ApiExceptionAdd a public key on behalf of a user (asynchronously)- Parameters:
username- username of the user (required)key- (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
-
adminCreateRepoCall
public com.squareup.okhttp.Call adminCreateRepoCall(java.lang.String username, CreateRepoOption repository, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for adminCreateRepo- Parameters:
username- username of the user. This user will own the created repository (required)repository- (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
adminCreateRepo
public Repository adminCreateRepo(java.lang.String username, CreateRepoOption repository) throws ApiExceptionCreate a repository on behalf of a user- Parameters:
username- username of the user. This user will own the created repository (required)repository- (required)- Returns:
- Repository
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminCreateRepoWithHttpInfo
public ApiResponse<Repository> adminCreateRepoWithHttpInfo(java.lang.String username, CreateRepoOption repository) throws ApiExceptionCreate a repository on behalf of a user- Parameters:
username- username of the user. This user will own the created repository (required)repository- (required)- Returns:
- ApiResponse<Repository>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminCreateRepoAsync
public com.squareup.okhttp.Call adminCreateRepoAsync(java.lang.String username, CreateRepoOption repository, ApiCallback<Repository> callback) throws ApiExceptionCreate a repository on behalf of a user (asynchronously)- Parameters:
username- username of the user. This user will own the created repository (required)repository- (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
-
adminCreateUserCall
public com.squareup.okhttp.Call adminCreateUserCall(CreateUserOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for adminCreateUser- Parameters:
body- (optional)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
adminCreateUser
Create a user- Parameters:
body- (optional)- Returns:
- User
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminCreateUserWithHttpInfo
Create a user- Parameters:
body- (optional)- Returns:
- ApiResponse<User>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminCreateUserAsync
public com.squareup.okhttp.Call adminCreateUserAsync(CreateUserOption body, ApiCallback<User> callback) throws ApiExceptionCreate a user (asynchronously)- Parameters:
body- (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
-
adminCronListCall
public com.squareup.okhttp.Call adminCronListCall(java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for adminCronList- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (optional)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
adminCronList
public java.util.List<Cron> adminCronList(java.lang.Integer page, java.lang.Integer limit) throws ApiExceptionList cron tasks- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (optional)- Returns:
- List<Cron>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminCronListWithHttpInfo
public ApiResponse<java.util.List<Cron>> adminCronListWithHttpInfo(java.lang.Integer page, java.lang.Integer limit) throws ApiExceptionList cron tasks- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (optional)- Returns:
- ApiResponse<List<Cron>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminCronListAsync
public com.squareup.okhttp.Call adminCronListAsync(java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<Cron>> callback) throws ApiExceptionList cron tasks (asynchronously)- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (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
-
adminCronRunCall
public com.squareup.okhttp.Call adminCronRunCall(java.lang.String task, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for adminCronRun- Parameters:
task- task to run (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
adminCronRun
Run cron task- Parameters:
task- task to run (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminCronRunWithHttpInfo
public ApiResponse<java.lang.Void> adminCronRunWithHttpInfo(java.lang.String task) throws ApiExceptionRun cron task- Parameters:
task- task to run (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminCronRunAsync
public com.squareup.okhttp.Call adminCronRunAsync(java.lang.String task, ApiCallback<java.lang.Void> callback) throws ApiExceptionRun cron task (asynchronously)- Parameters:
task- task to run (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
-
adminDeleteUnadoptedRepositoryCall
public com.squareup.okhttp.Call adminDeleteUnadoptedRepositoryCall(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for adminDeleteUnadoptedRepository- Parameters:
owner- owner of the repo (required)repo- name of the repo (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
adminDeleteUnadoptedRepository
public void adminDeleteUnadoptedRepository(java.lang.String owner, java.lang.String repo) throws ApiExceptionDelete unadopted files- Parameters:
owner- owner of the repo (required)repo- name of the repo (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminDeleteUnadoptedRepositoryWithHttpInfo
public ApiResponse<java.lang.Void> adminDeleteUnadoptedRepositoryWithHttpInfo(java.lang.String owner, java.lang.String repo) throws ApiExceptionDelete unadopted files- Parameters:
owner- owner of the repo (required)repo- name of the repo (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminDeleteUnadoptedRepositoryAsync
public com.squareup.okhttp.Call adminDeleteUnadoptedRepositoryAsync(java.lang.String owner, java.lang.String repo, ApiCallback<java.lang.Void> callback) throws ApiExceptionDelete unadopted files (asynchronously)- Parameters:
owner- owner of the repo (required)repo- name of the repo (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
-
adminDeleteUserCall
public com.squareup.okhttp.Call adminDeleteUserCall(java.lang.String username, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for adminDeleteUser- Parameters:
username- username of user to delete (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
adminDeleteUser
Delete a user- Parameters:
username- username of user to delete (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminDeleteUserWithHttpInfo
public ApiResponse<java.lang.Void> adminDeleteUserWithHttpInfo(java.lang.String username) throws ApiExceptionDelete a user- Parameters:
username- username of user to delete (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminDeleteUserAsync
public com.squareup.okhttp.Call adminDeleteUserAsync(java.lang.String username, ApiCallback<java.lang.Void> callback) throws ApiExceptionDelete a user (asynchronously)- Parameters:
username- username of user to delete (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
-
adminDeleteUserPublicKeyCall
public com.squareup.okhttp.Call adminDeleteUserPublicKeyCall(java.lang.String username, java.lang.Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for adminDeleteUserPublicKey- Parameters:
username- username of user (required)id- id of the key to delete (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
adminDeleteUserPublicKey
public void adminDeleteUserPublicKey(java.lang.String username, java.lang.Long id) throws ApiExceptionDelete a user's public key- Parameters:
username- username of user (required)id- id of the key to delete (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminDeleteUserPublicKeyWithHttpInfo
public ApiResponse<java.lang.Void> adminDeleteUserPublicKeyWithHttpInfo(java.lang.String username, java.lang.Long id) throws ApiExceptionDelete a user's public key- Parameters:
username- username of user (required)id- id of the key to delete (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminDeleteUserPublicKeyAsync
public com.squareup.okhttp.Call adminDeleteUserPublicKeyAsync(java.lang.String username, java.lang.Long id, ApiCallback<java.lang.Void> callback) throws ApiExceptionDelete a user's public key (asynchronously)- Parameters:
username- username of user (required)id- id of the key to delete (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
-
adminEditUserCall
public com.squareup.okhttp.Call adminEditUserCall(java.lang.String username, EditUserOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for adminEditUser- Parameters:
username- username of user to edit (required)body- (optional)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
adminEditUser
Edit an existing user- Parameters:
username- username of user to edit (required)body- (optional)- Returns:
- User
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminEditUserWithHttpInfo
public ApiResponse<User> adminEditUserWithHttpInfo(java.lang.String username, EditUserOption body) throws ApiExceptionEdit an existing user- Parameters:
username- username of user to edit (required)body- (optional)- Returns:
- ApiResponse<User>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminEditUserAsync
public com.squareup.okhttp.Call adminEditUserAsync(java.lang.String username, EditUserOption body, ApiCallback<User> callback) throws ApiExceptionEdit an existing user (asynchronously)- Parameters:
username- username of user to edit (required)body- (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
-
adminGetAllOrgsCall
public com.squareup.okhttp.Call adminGetAllOrgsCall(java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for adminGetAllOrgs- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (optional)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
adminGetAllOrgs
public java.util.List<Organization> adminGetAllOrgs(java.lang.Integer page, java.lang.Integer limit) throws ApiExceptionList all organizations- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (optional)- Returns:
- List<Organization>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminGetAllOrgsWithHttpInfo
public ApiResponse<java.util.List<Organization>> adminGetAllOrgsWithHttpInfo(java.lang.Integer page, java.lang.Integer limit) throws ApiExceptionList all organizations- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (optional)- Returns:
- ApiResponse<List<Organization>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminGetAllOrgsAsync
public com.squareup.okhttp.Call adminGetAllOrgsAsync(java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<Organization>> callback) throws ApiExceptionList all organizations (asynchronously)- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (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
-
adminGetAllUsersCall
public com.squareup.okhttp.Call adminGetAllUsersCall(java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for adminGetAllUsers- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (optional)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
adminGetAllUsers
public java.util.List<User> adminGetAllUsers(java.lang.Integer page, java.lang.Integer limit) throws ApiExceptionList all users- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (optional)- Returns:
- List<User>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminGetAllUsersWithHttpInfo
public ApiResponse<java.util.List<User>> adminGetAllUsersWithHttpInfo(java.lang.Integer page, java.lang.Integer limit) throws ApiExceptionList all users- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (optional)- Returns:
- ApiResponse<List<User>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminGetAllUsersAsync
public com.squareup.okhttp.Call adminGetAllUsersAsync(java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<User>> callback) throws ApiExceptionList all users (asynchronously)- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (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
-
adminUnadoptedListCall
public com.squareup.okhttp.Call adminUnadoptedListCall(java.lang.Integer page, java.lang.Integer limit, java.lang.String pattern, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for adminUnadoptedList- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (optional)pattern- pattern of repositories to search for (optional)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
adminUnadoptedList
public java.util.List<java.lang.String> adminUnadoptedList(java.lang.Integer page, java.lang.Integer limit, java.lang.String pattern) throws ApiExceptionList unadopted repositories- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (optional)pattern- pattern of repositories to search for (optional)- Returns:
- List<String>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminUnadoptedListWithHttpInfo
public ApiResponse<java.util.List<java.lang.String>> adminUnadoptedListWithHttpInfo(java.lang.Integer page, java.lang.Integer limit, java.lang.String pattern) throws ApiExceptionList unadopted repositories- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (optional)pattern- pattern of repositories to search for (optional)- Returns:
- ApiResponse<List<String>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
adminUnadoptedListAsync
public com.squareup.okhttp.Call adminUnadoptedListAsync(java.lang.Integer page, java.lang.Integer limit, java.lang.String pattern, ApiCallback<java.util.List<java.lang.String>> callback) throws ApiExceptionList unadopted repositories (asynchronously)- Parameters:
page- page number of results to return (1-based) (optional)limit- page size of results (optional)pattern- pattern of repositories to search for (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
-