public class UserAccountRoleService extends Object
| Constructor and Description |
|---|
UserAccountRoleService(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
UserAccountRole |
addRole(Long userId,
Long accountId,
Long roleId,
Boolean appliesOnSubaccount)
Add Role
This operation grants the role to the given user with in the given account.
|
UserAccountRole |
addRole(Long userId,
Long accountId,
Long roleId,
Map<String,Object> params)
Add Role
This operation grants the role to the given user with in the given account.
|
com.google.api.client.http.HttpResponse |
addRoleForHttpResponse(Long userId,
Long accountId,
Long roleId,
Boolean appliesOnSubaccount) |
com.google.api.client.http.HttpResponse |
addRoleForHttpResponse(Long userId,
Long accountId,
Long roleId,
Map<String,Object> params) |
ApiClient |
getApiClient() |
List<UserAccountRole> |
list(Long userId,
Long accountId)
List Roles
List all the roles that are assigned to the given user in the given account.
|
List<UserAccountRole> |
list(Long userId,
Long accountId,
Map<String,Object> params)
List Roles
List all the roles that are assigned to the given user in the given account.
|
com.google.api.client.http.HttpResponse |
listForHttpResponse(Long userId,
Long accountId) |
com.google.api.client.http.HttpResponse |
listForHttpResponse(Long userId,
Long accountId,
Map<String,Object> params) |
void |
removeRole(Long id)
Remove Role
This operation removes the specified user account role.
|
void |
removeRole(Long id,
Map<String,Object> params)
Remove Role
This operation removes the specified user account role.
|
com.google.api.client.http.HttpResponse |
removeRoleForHttpResponse(Long id) |
com.google.api.client.http.HttpResponse |
removeRoleForHttpResponse(Long id,
Map<String,Object> params) |
void |
setApiClient(ApiClient apiClient) |
public UserAccountRoleService(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public UserAccountRole addRole(Long userId, Long accountId, Long roleId, Boolean appliesOnSubaccount) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
userId - The id of the user to whom the role is assigned.accountId - The account to which the role is mapped.roleId - The role which is mapped to the user and account.appliesOnSubaccount - Whether the role applies only on subaccount.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public UserAccountRole addRole(Long userId, Long accountId, Long roleId, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
userId - The id of the user to whom the role is assigned.accountId - The account to which the role is mapped.roleId - The role which is mapped to the user and account.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse addRoleForHttpResponse(Long userId, Long accountId, Long roleId, Boolean appliesOnSubaccount) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse addRoleForHttpResponse(Long userId, Long accountId, Long roleId, Map<String,Object> params) throws IOException
IOExceptionpublic List<UserAccountRole> list(Long userId, Long accountId) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
userId - The id of the user to whom the role is assigned.accountId - The account to which the role is mapped.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public List<UserAccountRole> list(Long userId, Long accountId, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
userId - The id of the user to whom the role is assigned.accountId - The account to which the role is mapped.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse listForHttpResponse(Long userId, Long accountId) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse listForHttpResponse(Long userId, Long accountId, Map<String,Object> params) throws IOException
IOExceptionpublic void removeRole(Long id) throws IOException
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
id - The id of user account role which should be removedIOException - if an error occurs while attempting to invoke the API
For more information visit this link.public void removeRole(Long id, Map<String,Object> params) throws IOException
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
id - The id of user account role which should be removedparams - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse removeRoleForHttpResponse(Long id) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse removeRoleForHttpResponse(Long id, Map<String,Object> params) throws IOException
IOExceptionCopyright © 2023. All rights reserved.