public class DriveCollectionRequest extends BaseCollectionRequest<DriveCollectionResponse,IDriveCollectionPage> implements IDriveCollectionRequest
| Constructor and Description |
|---|
DriveCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Drive
|
| Modifier and Type | Method and Description |
|---|---|
IDriveCollectionPage |
buildFromResponse(DriveCollectionResponse response) |
IDriveCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IDriveCollectionPage |
get() |
void |
get(ICallback<IDriveCollectionPage> callback) |
Drive |
post(Drive newDrive) |
void |
post(Drive newDrive,
ICallback<Drive> callback) |
IDriveCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IDriveCollectionRequest |
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 DriveCollectionRequest(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<IDriveCollectionPage> callback)
get in interface IDriveCollectionRequestpublic IDriveCollectionPage get() throws ClientException
get in interface IDriveCollectionRequestClientExceptionpublic void post(Drive newDrive, ICallback<Drive> callback)
post in interface IDriveCollectionRequestpublic Drive post(Drive newDrive) throws ClientException
post in interface IDriveCollectionRequestClientExceptionpublic IDriveCollectionRequest expand(java.lang.String value)
expand in interface IDriveCollectionRequestvalue - the expand clausepublic IDriveCollectionRequest select(java.lang.String value)
select in interface IDriveCollectionRequestvalue - the select clausepublic IDriveCollectionRequest top(int value)
top in interface IDriveCollectionRequestvalue - the max number of items to returnpublic IDriveCollectionPage buildFromResponse(DriveCollectionResponse response)