public class RoleAssignmentRequest extends BaseRequest implements IRoleAssignmentRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING
Constructor and Description |
---|
RoleAssignmentRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the RoleAssignment
|
RoleAssignmentRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<? extends RoleAssignment> responseClass)
The request for the RoleAssignment
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<RoleAssignment> callback)
Delete this item from the service
|
IRoleAssignmentRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
RoleAssignment |
get()
Gets the RoleAssignment from the service
|
void |
get(ICallback<RoleAssignment> callback)
Gets the RoleAssignment from the service
|
RoleAssignment |
patch(RoleAssignment sourceRoleAssignment)
Patches this RoleAssignment with a source
|
void |
patch(RoleAssignment sourceRoleAssignment,
ICallback<RoleAssignment> callback)
Patches this RoleAssignment with a source
|
RoleAssignment |
post(RoleAssignment newRoleAssignment)
Creates a RoleAssignment with a new object
|
void |
post(RoleAssignment newRoleAssignment,
ICallback<RoleAssignment> callback)
Creates a RoleAssignment with a new object
|
IRoleAssignmentRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addFunctionOption, addHeader, addQueryOption, getClient, getFunctionOptions, getHeaders, getHttpMethod, getOptions, getQueryOptions, getRequestUrl, getResponseType, getUseCaches, send, send, setHttpMethod, setUseCaches
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHeader, getHeaders, getHttpMethod, getOptions, getRequestUrl, getUseCaches, setUseCaches
public RoleAssignmentRequest(java.lang.String requestUrl, IBaseClient client, java.util.List<? extends Option> requestOptions, java.lang.Class<? extends RoleAssignment> responseClass)
requestUrl
- the request URLclient
- the service clientrequestOptions
- the options for this requestresponseClass
- the class of the responsepublic RoleAssignmentRequest(java.lang.String requestUrl, IBaseClient client, java.util.List<? extends Option> requestOptions)
requestUrl
- the request URLclient
- the service clientrequestOptions
- the options for this requestpublic void get(ICallback<RoleAssignment> callback)
get
in interface IRoleAssignmentRequest
callback
- the callback to be called after success or failurepublic RoleAssignment get() throws ClientException
get
in interface IRoleAssignmentRequest
ClientException
- this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<RoleAssignment> callback)
delete
in interface IRoleAssignmentRequest
callback
- the callback when the deletion action has completedpublic void delete() throws ClientException
delete
in interface IRoleAssignmentRequest
ClientException
- if there was an exception during the delete operationpublic void patch(RoleAssignment sourceRoleAssignment, ICallback<RoleAssignment> callback)
patch
in interface IRoleAssignmentRequest
sourceRoleAssignment
- the source object with updatescallback
- the callback to be called after success or failurepublic RoleAssignment patch(RoleAssignment sourceRoleAssignment) throws ClientException
patch
in interface IRoleAssignmentRequest
sourceRoleAssignment
- the source object with updatesClientException
- this exception occurs if the request was unable to complete for any reasonpublic void post(RoleAssignment newRoleAssignment, ICallback<RoleAssignment> callback)
post
in interface IRoleAssignmentRequest
newRoleAssignment
- the new object to createcallback
- the callback to be called after success or failurepublic RoleAssignment post(RoleAssignment newRoleAssignment) throws ClientException
post
in interface IRoleAssignmentRequest
newRoleAssignment
- the new object to createClientException
- this exception occurs if the request was unable to complete for any reasonpublic IRoleAssignmentRequest select(java.lang.String value)
select
in interface IRoleAssignmentRequest
value
- the select clausepublic IRoleAssignmentRequest expand(java.lang.String value)
expand
in interface IRoleAssignmentRequest
value
- the expand clause