Search in sources :

Example 1 with GetUserSyncStateModelRequest

use of com.cloudera.thunderhead.service.usermanagement.UserManagementProto.GetUserSyncStateModelRequest in project cloudbreak by hortonworks.

the class UmsClient method getUserSyncStateModel.

/**
 * Retrieves user sync state model from the UMS.
 *
 * @param requestId          the request ID for the request
 * @param accountId          the account ID
 * @param rightsChecks       list of rights checks for resources. A List is used to preserve order.
 * @return the user sync state model
 */
public GetUserSyncStateModelResponse getUserSyncStateModel(String requestId, String accountId, List<RightsCheck> rightsChecks) {
    validateAccountIdWithWarning(accountId);
    GetUserSyncStateModelRequest request = GetUserSyncStateModelRequest.newBuilder().setAccountId(accountId).addAllRightsCheck(rightsChecks).build();
    return newStub(requestId).getUserSyncStateModel(request);
}
Also used : GetUserSyncStateModelRequest(com.cloudera.thunderhead.service.usermanagement.UserManagementProto.GetUserSyncStateModelRequest)

Example 2 with GetUserSyncStateModelRequest

use of com.cloudera.thunderhead.service.usermanagement.UserManagementProto.GetUserSyncStateModelRequest in project cloudbreak by hortonworks.

the class UmsClient method getUserSyncStateModel.

/**
 * Retrieves user sync state model from the UMS.
 *
 * @param requestId       the request ID for the request
 * @param accountId       the account ID
 * @param rightsChecks    list of rights checks for resources. A List is used to preserve order.
 * @param skipCredentials whether to skip including credentials in the response
 * @return the user sync state model
 */
public GetUserSyncStateModelResponse getUserSyncStateModel(String requestId, String accountId, List<RightsCheck> rightsChecks, boolean skipCredentials) {
    validateAccountIdWithWarning(accountId);
    GetUserSyncStateModelRequest request = GetUserSyncStateModelRequest.newBuilder().setAccountId(accountId).addAllRightsCheck(rightsChecks).setSkipCredentials(skipCredentials).build();
    return newStub(requestId).getUserSyncStateModel(request);
}
Also used : GetUserSyncStateModelRequest(com.cloudera.thunderhead.service.usermanagement.UserManagementProto.GetUserSyncStateModelRequest)

Aggregations

GetUserSyncStateModelRequest (com.cloudera.thunderhead.service.usermanagement.UserManagementProto.GetUserSyncStateModelRequest)2