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, setUseCaches
public 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 IDriveCollectionRequest
public IDriveCollectionPage get() throws ClientException
get
in interface IDriveCollectionRequest
ClientException
public void post(Drive newDrive, ICallback<Drive> callback)
post
in interface IDriveCollectionRequest
public Drive post(Drive newDrive) throws ClientException
post
in interface IDriveCollectionRequest
ClientException
public IDriveCollectionRequest expand(java.lang.String value)
expand
in interface IDriveCollectionRequest
value
- the expand clausepublic IDriveCollectionRequest select(java.lang.String value)
select
in interface IDriveCollectionRequest
value
- the select clausepublic IDriveCollectionRequest top(int value)
top
in interface IDriveCollectionRequest
value
- the max number of items to returnpublic IDriveCollectionPage buildFromResponse(DriveCollectionResponse response)