public class AdminApi extends Object
Constructor and Description |
---|
AdminApi() |
AdminApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
OAuthProviderPublicDTO |
createProvider(OAuthProviderPublicDTO body)
Create a new OAuth provider
|
com.squareup.okhttp.Call |
createProviderAsync(OAuthProviderPublicDTO body,
ApiCallback<OAuthProviderPublicDTO> callback)
Create a new OAuth provider (asynchronously)
|
ApiResponse<OAuthProviderPublicDTO> |
createProviderWithHttpInfo(OAuthProviderPublicDTO body)
Create a new OAuth provider
|
AccountDTO |
enableAccount(String login,
Boolean enabled)
Enable or disable account
|
com.squareup.okhttp.Call |
enableAccountAsync(String login,
Boolean enabled,
ApiCallback<AccountDTO> callback)
Enable or disable account (asynchronously)
|
ApiResponse<AccountDTO> |
enableAccountWithHttpInfo(String login,
Boolean enabled)
Enable or disable account
|
WorkspaceDTO |
enableWorkspace(String workspaceId,
Boolean enabled)
Enable or disable workspace
|
com.squareup.okhttp.Call |
enableWorkspaceAsync(String workspaceId,
Boolean enabled,
ApiCallback<WorkspaceDTO> callback)
Enable or disable workspace (asynchronously)
|
ApiResponse<WorkspaceDTO> |
enableWorkspaceWithHttpInfo(String workspaceId,
Boolean enabled)
Enable or disable workspace
|
List<AccountDTO> |
getAccounts()
Get all registered accounts
|
com.squareup.okhttp.Call |
getAccountsAsync(ApiCallback<List<AccountDTO>> callback)
Get all registered accounts (asynchronously)
|
ApiResponse<List<AccountDTO>> |
getAccountsWithHttpInfo()
Get all registered accounts
|
ApiClient |
getApiClient() |
OAuthProviderPublicDTO |
getDetailedProvider(Integer id)
Get detailed provider
|
com.squareup.okhttp.Call |
getDetailedProviderAsync(Integer id,
ApiCallback<OAuthProviderPublicDTO> callback)
Get detailed provider (asynchronously)
|
List<OAuthProviderPublicDTO> |
getDetailedProviders()
Get detailed providers
|
com.squareup.okhttp.Call |
getDetailedProvidersAsync(ApiCallback<List<OAuthProviderPublicDTO>> callback)
Get detailed providers (asynchronously)
|
ApiResponse<List<OAuthProviderPublicDTO>> |
getDetailedProvidersWithHttpInfo()
Get detailed providers
|
ApiResponse<OAuthProviderPublicDTO> |
getDetailedProviderWithHttpInfo(Integer id)
Get detailed provider
|
String |
getDiskSpaceUsageStats()
Get disk usage stats
|
com.squareup.okhttp.Call |
getDiskSpaceUsageStatsAsync(ApiCallback<String> callback)
Get disk usage stats (asynchronously)
|
ApiResponse<String> |
getDiskSpaceUsageStatsWithHttpInfo()
Get disk usage stats
|
String |
getDocumentsStats()
Get documents stats
|
com.squareup.okhttp.Call |
getDocumentsStatsAsync(ApiCallback<String> callback)
Get documents stats (asynchronously)
|
ApiResponse<String> |
getDocumentsStatsWithHttpInfo()
Get documents stats
|
String |
getPartsStats()
Get parts stats
|
com.squareup.okhttp.Call |
getPartsStatsAsync(ApiCallback<String> callback)
Get parts stats (asynchronously)
|
ApiResponse<String> |
getPartsStatsWithHttpInfo()
Get parts stats
|
PlatformOptionsDTO |
getPlatformOptions()
Get platform options
|
com.squareup.okhttp.Call |
getPlatformOptionsAsync(ApiCallback<PlatformOptionsDTO> callback)
Get platform options (asynchronously)
|
ApiResponse<PlatformOptionsDTO> |
getPlatformOptionsWithHttpInfo()
Get platform options
|
String |
getProductsStats()
Get products stats
|
com.squareup.okhttp.Call |
getProductsStatsAsync(ApiCallback<String> callback)
Get products stats (asynchronously)
|
ApiResponse<String> |
getProductsStatsWithHttpInfo()
Get products stats
|
String |
getUsersStats()
Get users stats
|
com.squareup.okhttp.Call |
getUsersStatsAsync(ApiCallback<String> callback)
Get users stats (asynchronously)
|
ApiResponse<String> |
getUsersStatsWithHttpInfo()
Get users stats
|
void |
indexAllWorkspaces()
Synchronize index for all workspaces
|
com.squareup.okhttp.Call |
indexAllWorkspacesAsync(ApiCallback<Void> callback)
Synchronize index for all workspaces (asynchronously)
|
ApiResponse<Void> |
indexAllWorkspacesWithHttpInfo()
Synchronize index for all workspaces
|
void |
indexWorkspaceData(String workspaceId)
Synchronize index for given workspace
|
com.squareup.okhttp.Call |
indexWorkspaceDataAsync(String workspaceId,
ApiCallback<Void> callback)
Synchronize index for given workspace (asynchronously)
|
ApiResponse<Void> |
indexWorkspaceDataWithHttpInfo(String workspaceId)
Synchronize index for given workspace
|
void |
removeProvider(Integer id)
Delete OAuth provider
|
com.squareup.okhttp.Call |
removeProviderAsync(Integer id,
ApiCallback<Void> callback)
Delete OAuth provider (asynchronously)
|
ApiResponse<Void> |
removeProviderWithHttpInfo(Integer id)
Delete OAuth provider
|
void |
setApiClient(ApiClient apiClient) |
void |
setPlatformOptions(PlatformOptionsDTO body)
Set platform options
|
com.squareup.okhttp.Call |
setPlatformOptionsAsync(PlatformOptionsDTO body,
ApiCallback<Void> callback)
Set platform options (asynchronously)
|
ApiResponse<Void> |
setPlatformOptionsWithHttpInfo(PlatformOptionsDTO body)
Set platform options
|
AccountDTO |
updateAccount(AccountDTO body)
Update account
|
com.squareup.okhttp.Call |
updateAccountAsync(AccountDTO body,
ApiCallback<AccountDTO> callback)
Update account (asynchronously)
|
ApiResponse<AccountDTO> |
updateAccountWithHttpInfo(AccountDTO body)
Update account
|
OAuthProviderPublicDTO |
updateProvider(Integer id,
OAuthProviderPublicDTO body)
Update OAuth provider
|
com.squareup.okhttp.Call |
updateProviderAsync(Integer id,
OAuthProviderPublicDTO body,
ApiCallback<OAuthProviderPublicDTO> callback)
Update OAuth provider (asynchronously)
|
ApiResponse<OAuthProviderPublicDTO> |
updateProviderWithHttpInfo(Integer id,
OAuthProviderPublicDTO body)
Update OAuth provider
|
public AdminApi()
public AdminApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public List<AccountDTO> getAccounts() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<AccountDTO>> getAccountsWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getAccountsAsync(ApiCallback<List<AccountDTO>> callback) throws ApiException
callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic AccountDTO updateAccount(AccountDTO body) throws ApiException
body
- Updated accountApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<AccountDTO> updateAccountWithHttpInfo(AccountDTO body) throws ApiException
body
- Updated accountApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateAccountAsync(AccountDTO body, ApiCallback<AccountDTO> callback) throws ApiException
body
- Updated accountcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic AccountDTO enableAccount(String login, Boolean enabled) throws ApiException
login
- Workspace idenabled
- EnabledApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<AccountDTO> enableAccountWithHttpInfo(String login, Boolean enabled) throws ApiException
login
- Workspace idenabled
- EnabledApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call enableAccountAsync(String login, Boolean enabled, ApiCallback<AccountDTO> callback) throws ApiException
login
- Workspace idenabled
- Enabledcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic String getDiskSpaceUsageStats() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<String> getDiskSpaceUsageStatsWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getDiskSpaceUsageStatsAsync(ApiCallback<String> callback) throws ApiException
callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic String getDocumentsStats() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<String> getDocumentsStatsWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getDocumentsStatsAsync(ApiCallback<String> callback) throws ApiException
callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void indexAllWorkspaces() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> indexAllWorkspacesWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call indexAllWorkspacesAsync(ApiCallback<Void> callback) throws ApiException
callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void indexWorkspaceData(String workspaceId) throws ApiException
workspaceId
- Workspace idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> indexWorkspaceDataWithHttpInfo(String workspaceId) throws ApiException
workspaceId
- Workspace idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call indexWorkspaceDataAsync(String workspaceId, ApiCallback<Void> callback) throws ApiException
workspaceId
- Workspace idcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic String getPartsStats() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<String> getPartsStatsWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getPartsStatsAsync(ApiCallback<String> callback) throws ApiException
callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic PlatformOptionsDTO getPlatformOptions() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<PlatformOptionsDTO> getPlatformOptionsWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getPlatformOptionsAsync(ApiCallback<PlatformOptionsDTO> callback) throws ApiException
callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void setPlatformOptions(PlatformOptionsDTO body) throws ApiException
body
- Options to setApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> setPlatformOptionsWithHttpInfo(PlatformOptionsDTO body) throws ApiException
body
- Options to setApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call setPlatformOptionsAsync(PlatformOptionsDTO body, ApiCallback<Void> callback) throws ApiException
body
- Options to setcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic String getProductsStats() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<String> getProductsStatsWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getProductsStatsAsync(ApiCallback<String> callback) throws ApiException
callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic List<OAuthProviderPublicDTO> getDetailedProviders() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<OAuthProviderPublicDTO>> getDetailedProvidersWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getDetailedProvidersAsync(ApiCallback<List<OAuthProviderPublicDTO>> callback) throws ApiException
callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic OAuthProviderPublicDTO createProvider(OAuthProviderPublicDTO body) throws ApiException
body
- Updated accountApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<OAuthProviderPublicDTO> createProviderWithHttpInfo(OAuthProviderPublicDTO body) throws ApiException
body
- Updated accountApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createProviderAsync(OAuthProviderPublicDTO body, ApiCallback<OAuthProviderPublicDTO> callback) throws ApiException
body
- Updated accountcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic OAuthProviderPublicDTO getDetailedProvider(Integer id) throws ApiException
id
- Provider idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<OAuthProviderPublicDTO> getDetailedProviderWithHttpInfo(Integer id) throws ApiException
id
- Provider idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getDetailedProviderAsync(Integer id, ApiCallback<OAuthProviderPublicDTO> callback) throws ApiException
id
- Provider idcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic OAuthProviderPublicDTO updateProvider(Integer id, OAuthProviderPublicDTO body) throws ApiException
id
- OAuthProvider idbody
- Updated providerApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<OAuthProviderPublicDTO> updateProviderWithHttpInfo(Integer id, OAuthProviderPublicDTO body) throws ApiException
id
- OAuthProvider idbody
- Updated providerApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateProviderAsync(Integer id, OAuthProviderPublicDTO body, ApiCallback<OAuthProviderPublicDTO> callback) throws ApiException
id
- OAuthProvider idbody
- Updated providercallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void removeProvider(Integer id) throws ApiException
id
- OAuthProvider idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> removeProviderWithHttpInfo(Integer id) throws ApiException
id
- OAuthProvider idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call removeProviderAsync(Integer id, ApiCallback<Void> callback) throws ApiException
id
- OAuthProvider idcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic String getUsersStats() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<String> getUsersStatsWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getUsersStatsAsync(ApiCallback<String> callback) throws ApiException
callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic WorkspaceDTO enableWorkspace(String workspaceId, Boolean enabled) throws ApiException
workspaceId
- Workspace idenabled
- EnabledApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<WorkspaceDTO> enableWorkspaceWithHttpInfo(String workspaceId, Boolean enabled) throws ApiException
workspaceId
- Workspace idenabled
- EnabledApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call enableWorkspaceAsync(String workspaceId, Boolean enabled, ApiCallback<WorkspaceDTO> callback) throws ApiException
workspaceId
- Workspace idenabled
- Enabledcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2019 DocDoku. All rights reserved.