public class DriveItemCreateUploadSessionRequest extends BaseRequest implements IDriveItemCreateUploadSessionRequest
| Modifier and Type | Field and Description |
|---|---|
protected DriveItemCreateUploadSessionBody |
body |
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
DriveItemCreateUploadSessionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for this DriveItemCreateUploadSession
|
| Modifier and Type | Method and Description |
|---|---|
IDriveItemCreateUploadSessionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
UploadSession |
post() |
void |
post(ICallback<UploadSession> callback) |
IDriveItemCreateUploadSessionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IDriveItemCreateUploadSessionRequest |
top(int value)
Sets the top value 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, setUseCachesprotected final DriveItemCreateUploadSessionBody body
public DriveItemCreateUploadSessionRequest(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 post(ICallback<UploadSession> callback)
post in interface IDriveItemCreateUploadSessionRequestpublic UploadSession post() throws ClientException
post in interface IDriveItemCreateUploadSessionRequestClientExceptionpublic IDriveItemCreateUploadSessionRequest select(java.lang.String value)
select in interface IDriveItemCreateUploadSessionRequestvalue - the select clausepublic IDriveItemCreateUploadSessionRequest top(int value)
top in interface IDriveItemCreateUploadSessionRequestvalue - the max number of items to returnpublic IDriveItemCreateUploadSessionRequest expand(java.lang.String value)
expand in interface IDriveItemCreateUploadSessionRequestvalue - the expand clause