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