public class UsersResourceApi extends Object
Constructor and Description |
---|
UsersResourceApi() |
UsersResourceApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiUser2List |
createUsers2(ApiUser2List body)
Creates a list of users.
|
com.squareup.okhttp.Call |
createUsers2Async(ApiUser2List body,
ApiCallback<ApiUser2List> callback)
Creates a list of users.
|
com.squareup.okhttp.Call |
createUsers2Call(ApiUser2List body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createUsers2
|
ApiResponse<ApiUser2List> |
createUsers2WithHttpInfo(ApiUser2List body)
Creates a list of users.
|
ApiUser2 |
deleteUser2(String userName)
Deletes a user from the system.
|
com.squareup.okhttp.Call |
deleteUser2Async(String userName,
ApiCallback<ApiUser2> callback)
Deletes a user from the system.
|
com.squareup.okhttp.Call |
deleteUser2Call(String userName,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deleteUser2
|
ApiResponse<ApiUser2> |
deleteUser2WithHttpInfo(String userName)
Deletes a user from the system.
|
void |
expireSessions(String userName)
Expires the sessions associated with interactive authenticated user in Cloudera Manager.
|
com.squareup.okhttp.Call |
expireSessionsAsync(String userName,
ApiCallback<Void> callback)
Expires the sessions associated with interactive authenticated user in Cloudera Manager.
|
com.squareup.okhttp.Call |
expireSessionsCall(String userName,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for expireSessions
|
ApiResponse<Void> |
expireSessionsWithHttpInfo(String userName)
Expires the sessions associated with interactive authenticated user in Cloudera Manager.
|
ApiClient |
getApiClient() |
ApiUserSessionList |
getSessions()
Return a list of the sessions associated with interactive authenticated users in Cloudera Manager.
|
com.squareup.okhttp.Call |
getSessionsAsync(ApiCallback<ApiUserSessionList> callback)
Return a list of the sessions associated with interactive authenticated users in Cloudera Manager.
|
com.squareup.okhttp.Call |
getSessionsCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getSessions
|
ApiResponse<ApiUserSessionList> |
getSessionsWithHttpInfo()
Return a list of the sessions associated with interactive authenticated users in Cloudera Manager.
|
ApiUser2 |
readUser2(String userName)
Returns detailed information about a user.
|
com.squareup.okhttp.Call |
readUser2Async(String userName,
ApiCallback<ApiUser2> callback)
Returns detailed information about a user.
|
com.squareup.okhttp.Call |
readUser2Call(String userName,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readUser2
|
ApiResponse<ApiUser2> |
readUser2WithHttpInfo(String userName)
Returns detailed information about a user.
|
ApiUser2List |
readUsers2(String view)
Returns a list of the user names configured in the system.
|
com.squareup.okhttp.Call |
readUsers2Async(String view,
ApiCallback<ApiUser2List> callback)
Returns a list of the user names configured in the system.
|
com.squareup.okhttp.Call |
readUsers2Call(String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readUsers2
|
ApiResponse<ApiUser2List> |
readUsers2WithHttpInfo(String view)
Returns a list of the user names configured in the system.
|
void |
setApiClient(ApiClient apiClient) |
ApiUser2 |
updateUser2(String userName,
ApiUser2 body)
Updates the given user's information.
|
com.squareup.okhttp.Call |
updateUser2Async(String userName,
ApiUser2 body,
ApiCallback<ApiUser2> callback)
Updates the given user's information.
|
com.squareup.okhttp.Call |
updateUser2Call(String userName,
ApiUser2 body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updateUser2
|
ApiResponse<ApiUser2> |
updateUser2WithHttpInfo(String userName,
ApiUser2 body)
Updates the given user's information.
|
public UsersResourceApi()
public UsersResourceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call createUsers2Call(ApiUser2List body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
body
- List of users to create. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiUser2List createUsers2(ApiUser2List body) throws ApiException
body
- List of users to create. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiUser2List> createUsers2WithHttpInfo(ApiUser2List body) throws ApiException
body
- List of users to create. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createUsers2Async(ApiUser2List body, ApiCallback<ApiUser2List> callback) throws ApiException
body
- List of users to create. (optional)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 com.squareup.okhttp.Call deleteUser2Call(String userName, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
userName
- The name of the user to delete. (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiUser2 deleteUser2(String userName) throws ApiException
userName
- The name of the user to delete. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiUser2> deleteUser2WithHttpInfo(String userName) throws ApiException
userName
- The name of the user to delete. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteUser2Async(String userName, ApiCallback<ApiUser2> callback) throws ApiException
userName
- The name of the user to delete. (required)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 com.squareup.okhttp.Call expireSessionsCall(String userName, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
userName
- (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic void expireSessions(String userName) throws ApiException
userName
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> expireSessionsWithHttpInfo(String userName) throws ApiException
userName
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call expireSessionsAsync(String userName, ApiCallback<Void> callback) throws ApiException
userName
- (required)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 com.squareup.okhttp.Call getSessionsCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiUserSessionList getSessions() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiUserSessionList> getSessionsWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getSessionsAsync(ApiCallback<ApiUserSessionList> 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 com.squareup.okhttp.Call readUser2Call(String userName, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
userName
- The user to read. (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiUser2 readUser2(String userName) throws ApiException
userName
- The user to read. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiUser2> readUser2WithHttpInfo(String userName) throws ApiException
userName
- The user to read. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readUser2Async(String userName, ApiCallback<ApiUser2> callback) throws ApiException
userName
- The user to read. (required)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 com.squareup.okhttp.Call readUsers2Call(String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
view
- (optional, default to summary)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiUser2List readUsers2(String view) throws ApiException
view
- (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiUser2List> readUsers2WithHttpInfo(String view) throws ApiException
view
- (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readUsers2Async(String view, ApiCallback<ApiUser2List> callback) throws ApiException
view
- (optional, default to summary)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 com.squareup.okhttp.Call updateUser2Call(String userName, ApiUser2 body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
userName
- User name being updated. (required)body
- The user information. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiUser2 updateUser2(String userName, ApiUser2 body) throws ApiException
userName
- User name being updated. (required)body
- The user information. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiUser2> updateUser2WithHttpInfo(String userName, ApiUser2 body) throws ApiException
userName
- User name being updated. (required)body
- The user information. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateUser2Async(String userName, ApiUser2 body, ApiCallback<ApiUser2> callback) throws ApiException
userName
- User name being updated. (required)body
- The user information. (optional)callback
- 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. All rights reserved.