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, getHeaders, getHttpMethod, getOptions, getRequestUrl, getUseCaches, post, send, setUseCaches
public 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 IDriveItemCollectionRequest
public IDriveItemCollectionPage get() throws ClientException
get
in interface IDriveItemCollectionRequest
ClientException
public void post(DriveItem newDriveItem, ICallback<DriveItem> callback)
post
in interface IDriveItemCollectionRequest
public DriveItem post(DriveItem newDriveItem) throws ClientException
post
in interface IDriveItemCollectionRequest
ClientException
public IDriveItemCollectionRequest expand(java.lang.String value)
expand
in interface IDriveItemCollectionRequest
value
- the expand clausepublic IDriveItemCollectionRequest select(java.lang.String value)
select
in interface IDriveItemCollectionRequest
value
- the select clausepublic IDriveItemCollectionRequest top(int value)
top
in interface IDriveItemCollectionRequest
value
- the max number of items to returnpublic IDriveItemCollectionPage buildFromResponse(DriveItemCollectionResponse response)