public class RolesApi extends Object
Constructor and Description |
---|
RolesApi() |
RolesApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
RoleDTO |
createRole(String workspaceId,
RoleDTO body)
Create a new role
|
com.squareup.okhttp.Call |
createRoleAsync(String workspaceId,
RoleDTO body,
ApiCallback<RoleDTO> callback)
Create a new role (asynchronously)
|
ApiResponse<RoleDTO> |
createRoleWithHttpInfo(String workspaceId,
RoleDTO body)
Create a new role
|
void |
deleteRole(String workspaceId,
String roleName)
Delete a role
|
com.squareup.okhttp.Call |
deleteRoleAsync(String workspaceId,
String roleName,
ApiCallback<Void> callback)
Delete a role (asynchronously)
|
ApiResponse<Void> |
deleteRoleWithHttpInfo(String workspaceId,
String roleName)
Delete a role
|
ApiClient |
getApiClient() |
List<RoleDTO> |
getRolesInUseInWorkspace(String workspaceId)
Get roles in use in given workspace
|
com.squareup.okhttp.Call |
getRolesInUseInWorkspaceAsync(String workspaceId,
ApiCallback<List<RoleDTO>> callback)
Get roles in use in given workspace (asynchronously)
|
ApiResponse<List<RoleDTO>> |
getRolesInUseInWorkspaceWithHttpInfo(String workspaceId)
Get roles in use in given workspace
|
List<RoleDTO> |
getRolesInWorkspace(String workspaceId)
Get roles in given workspace
|
com.squareup.okhttp.Call |
getRolesInWorkspaceAsync(String workspaceId,
ApiCallback<List<RoleDTO>> callback)
Get roles in given workspace (asynchronously)
|
ApiResponse<List<RoleDTO>> |
getRolesInWorkspaceWithHttpInfo(String workspaceId)
Get roles in given workspace
|
void |
setApiClient(ApiClient apiClient) |
RoleDTO |
updateRole(String workspaceId,
String roleName,
RoleDTO body)
Update a role
|
com.squareup.okhttp.Call |
updateRoleAsync(String workspaceId,
String roleName,
RoleDTO body,
ApiCallback<RoleDTO> callback)
Update a role (asynchronously)
|
ApiResponse<RoleDTO> |
updateRoleWithHttpInfo(String workspaceId,
String roleName,
RoleDTO body)
Update a role
|
public RolesApi()
public RolesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public List<RoleDTO> getRolesInWorkspace(String workspaceId) throws ApiException
workspaceId
- Workspace idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<RoleDTO>> getRolesInWorkspaceWithHttpInfo(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 getRolesInWorkspaceAsync(String workspaceId, ApiCallback<List<RoleDTO>> 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 RoleDTO createRole(String workspaceId, RoleDTO body) throws ApiException
workspaceId
- Workspace idbody
- Role to createApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<RoleDTO> createRoleWithHttpInfo(String workspaceId, RoleDTO body) throws ApiException
workspaceId
- Workspace idbody
- Role to createApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createRoleAsync(String workspaceId, RoleDTO body, ApiCallback<RoleDTO> callback) throws ApiException
workspaceId
- Workspace idbody
- Role to createcallback
- 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<RoleDTO> getRolesInUseInWorkspace(String workspaceId) throws ApiException
workspaceId
- Workspace idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<RoleDTO>> getRolesInUseInWorkspaceWithHttpInfo(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 getRolesInUseInWorkspaceAsync(String workspaceId, ApiCallback<List<RoleDTO>> 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 RoleDTO updateRole(String workspaceId, String roleName, RoleDTO body) throws ApiException
workspaceId
- Workspace idroleName
- Role namebody
- Role to updateApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<RoleDTO> updateRoleWithHttpInfo(String workspaceId, String roleName, RoleDTO body) throws ApiException
workspaceId
- Workspace idroleName
- Role namebody
- Role to updateApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateRoleAsync(String workspaceId, String roleName, RoleDTO body, ApiCallback<RoleDTO> callback) throws ApiException
workspaceId
- Workspace idroleName
- Role namebody
- Role to updatecallback
- 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 deleteRole(String workspaceId, String roleName) throws ApiException
workspaceId
- Workspace idroleName
- Role nameApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> deleteRoleWithHttpInfo(String workspaceId, String roleName) throws ApiException
workspaceId
- Workspace idroleName
- Role nameApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteRoleAsync(String workspaceId, String roleName, ApiCallback<Void> callback) throws ApiException
workspaceId
- Workspace idroleName
- Role namecallback
- 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.