public class OAuth2PermissionGrantRequest extends BaseRequest implements IOAuth2PermissionGrantRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
OAuth2PermissionGrantRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the OAuth2PermissionGrant
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super OAuth2PermissionGrant> callback)
Delete this item from the service
|
IOAuth2PermissionGrantRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
OAuth2PermissionGrant |
get()
Gets the OAuth2PermissionGrant from the service
|
void |
get(ICallback<? super OAuth2PermissionGrant> callback)
Gets the OAuth2PermissionGrant from the service
|
OAuth2PermissionGrant |
patch(OAuth2PermissionGrant sourceOAuth2PermissionGrant)
Patches this OAuth2PermissionGrant with a source
|
void |
patch(OAuth2PermissionGrant sourceOAuth2PermissionGrant,
ICallback<? super OAuth2PermissionGrant> callback)
Patches this OAuth2PermissionGrant with a source
|
OAuth2PermissionGrant |
post(OAuth2PermissionGrant newOAuth2PermissionGrant)
Creates a OAuth2PermissionGrant with a new object
|
void |
post(OAuth2PermissionGrant newOAuth2PermissionGrant,
ICallback<? super OAuth2PermissionGrant> callback)
Creates a OAuth2PermissionGrant with a new object
|
OAuth2PermissionGrant |
put(OAuth2PermissionGrant newOAuth2PermissionGrant)
Creates a OAuth2PermissionGrant with a new object
|
void |
put(OAuth2PermissionGrant newOAuth2PermissionGrant,
ICallback<? super OAuth2PermissionGrant> callback)
Creates a OAuth2PermissionGrant with a new object
|
IOAuth2PermissionGrantRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addFunctionOption, addHeader, addQueryOption, getClient, getDelay, getFunctionOptions, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getQueryOptions, getRequestUrl, getResponseType, getShouldRedirect, getShouldRetry, getUseCaches, send, send, setDelay, setHttpMethod, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodpublic OAuth2PermissionGrantRequest(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<? super OAuth2PermissionGrant> callback)
get in interface IOAuth2PermissionGrantRequestcallback - the callback to be called after success or failurepublic OAuth2PermissionGrant get() throws ClientException
get in interface IOAuth2PermissionGrantRequestClientException - this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<? super OAuth2PermissionGrant> callback)
delete in interface IOAuth2PermissionGrantRequestcallback - the callback when the deletion action has completedpublic void delete()
throws ClientException
delete in interface IOAuth2PermissionGrantRequestClientException - if there was an exception during the delete operationpublic void patch(OAuth2PermissionGrant sourceOAuth2PermissionGrant, ICallback<? super OAuth2PermissionGrant> callback)
patch in interface IOAuth2PermissionGrantRequestsourceOAuth2PermissionGrant - the source object with updatescallback - the callback to be called after success or failurepublic OAuth2PermissionGrant patch(OAuth2PermissionGrant sourceOAuth2PermissionGrant) throws ClientException
patch in interface IOAuth2PermissionGrantRequestsourceOAuth2PermissionGrant - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(OAuth2PermissionGrant newOAuth2PermissionGrant, ICallback<? super OAuth2PermissionGrant> callback)
post in interface IOAuth2PermissionGrantRequestnewOAuth2PermissionGrant - the new object to createcallback - the callback to be called after success or failurepublic OAuth2PermissionGrant post(OAuth2PermissionGrant newOAuth2PermissionGrant) throws ClientException
post in interface IOAuth2PermissionGrantRequestnewOAuth2PermissionGrant - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic void put(OAuth2PermissionGrant newOAuth2PermissionGrant, ICallback<? super OAuth2PermissionGrant> callback)
put in interface IOAuth2PermissionGrantRequestnewOAuth2PermissionGrant - the object to create/updatecallback - the callback to be called after success or failurepublic OAuth2PermissionGrant put(OAuth2PermissionGrant newOAuth2PermissionGrant) throws ClientException
put in interface IOAuth2PermissionGrantRequestnewOAuth2PermissionGrant - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonpublic IOAuth2PermissionGrantRequest select(java.lang.String value)
select in interface IOAuth2PermissionGrantRequestvalue - the select clausepublic IOAuth2PermissionGrantRequest expand(java.lang.String value)
expand in interface IOAuth2PermissionGrantRequestvalue - the expand clause