public class Drive.Permissions.Patch extends DriveRequest<Permission>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
Drive.Permissions.Patch(java.lang.String fileId,
java.lang.String permissionId,
Permission content)
Updates a permission.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFileId()
The ID for the file.
|
java.lang.String |
getPermissionId()
The ID for the permission.
|
java.lang.Boolean |
getTransferOwnership()
Whether changing a role to 'owner' downgrades the current owners to writers.
|
boolean |
isTransferOwnership()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
Drive.Permissions.Patch |
set(java.lang.String parameterName,
java.lang.Object value) |
Drive.Permissions.Patch |
setAlt(java.lang.String alt)
Data format for the response.
|
Drive.Permissions.Patch |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Drive.Permissions.Patch |
setFileId(java.lang.String fileId)
The ID for the file.
|
Drive.Permissions.Patch |
setKey(java.lang.String key)
API key.
|
Drive.Permissions.Patch |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Drive.Permissions.Patch |
setPermissionId(java.lang.String permissionId)
The ID for the permission.
|
Drive.Permissions.Patch |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Drive.Permissions.Patch |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Drive.Permissions.Patch |
setTransferOwnership(java.lang.Boolean transferOwnership)
Whether changing a role to 'owner' downgrades the current owners to writers.
|
Drive.Permissions.Patch |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysprotected Drive.Permissions.Patch(java.lang.String fileId,
java.lang.String permissionId,
Permission content)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Drive.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must
be called to initialize this instance immediately after invoking the constructor.
fileId - The ID for the file.permissionId - The ID for the permission.content - the Permissionpublic Drive.Permissions.Patch setAlt(java.lang.String alt)
DriveRequestsetAlt in class DriveRequest<Permission>public Drive.Permissions.Patch setFields(java.lang.String fields)
DriveRequestsetFields in class DriveRequest<Permission>public Drive.Permissions.Patch setKey(java.lang.String key)
DriveRequestsetKey in class DriveRequest<Permission>public Drive.Permissions.Patch setOauthToken(java.lang.String oauthToken)
DriveRequestsetOauthToken in class DriveRequest<Permission>public Drive.Permissions.Patch setPrettyPrint(java.lang.Boolean prettyPrint)
DriveRequestsetPrettyPrint in class DriveRequest<Permission>public Drive.Permissions.Patch setQuotaUser(java.lang.String quotaUser)
DriveRequestsetQuotaUser in class DriveRequest<Permission>public Drive.Permissions.Patch setUserIp(java.lang.String userIp)
DriveRequestsetUserIp in class DriveRequest<Permission>public java.lang.String getFileId()
public Drive.Permissions.Patch setFileId(java.lang.String fileId)
public java.lang.String getPermissionId()
public Drive.Permissions.Patch setPermissionId(java.lang.String permissionId)
public java.lang.Boolean getTransferOwnership()
public Drive.Permissions.Patch setTransferOwnership(java.lang.Boolean transferOwnership)
public boolean isTransferOwnership()
Boolean.TRUE or Boolean.FALSE.
Boolean properties can have four possible values:
null, Data.NULL_BOOLEAN, Boolean.TRUE
or Boolean.FALSE.
This method returns Boolean.TRUE if the default of the property is Boolean.TRUE
and it is null or Data.NULL_BOOLEAN.
Boolean.FALSE is returned if the default of the property is Boolean.FALSE and
it is null or Data.NULL_BOOLEAN.
Whether changing a role to 'owner' downgrades the current owners to writers. Does nothing if the specified role is not 'owner'.
public Drive.Permissions.Patch set(java.lang.String parameterName, java.lang.Object value)
set in class DriveRequest<Permission>