public class DriveItemCollectionRequest extends BaseCollectionRequest<DriveItemCollectionResponse,IDriveItemCollectionPage> implements IDriveItemCollectionRequest
| Constructor and Description |
|---|
DriveItemCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of DriveItem
|
| Modifier and Type | Method and Description |
|---|---|
IDriveItemCollectionPage |
buildFromResponse(DriveItemCollectionResponse response) |
IDriveItemCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IDriveItemCollectionPage |
get() |
void |
get(ICallback<IDriveItemCollectionPage> callback) |
DriveItem |
post(DriveItem newDriveItem) |
void |
post(DriveItem newDriveItem,
ICallback<DriveItem> callback) |
IDriveItemCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IDriveItemCollectionRequest |
top(int value)
Sets the top value for the request
|
addFunctionOption, addHeader, addQueryOption, getBaseRequest, getCollectionPageClass, getDelay, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, post, send, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCachespublic DriveItemCollectionRequest(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<IDriveItemCollectionPage> callback)
get in interface IDriveItemCollectionRequestpublic IDriveItemCollectionPage get() throws ClientException
get in interface IDriveItemCollectionRequestClientExceptionpublic void post(DriveItem newDriveItem, ICallback<DriveItem> callback)
post in interface IDriveItemCollectionRequestpublic DriveItem post(DriveItem newDriveItem) throws ClientException
post in interface IDriveItemCollectionRequestClientExceptionpublic IDriveItemCollectionRequest expand(java.lang.String value)
expand in interface IDriveItemCollectionRequestvalue - the expand clausepublic IDriveItemCollectionRequest select(java.lang.String value)
select in interface IDriveItemCollectionRequestvalue - the select clausepublic IDriveItemCollectionRequest top(int value)
top in interface IDriveItemCollectionRequestvalue - the max number of items to returnpublic IDriveItemCollectionPage buildFromResponse(DriveItemCollectionResponse response)