Package | Description |
---|---|
com.google.api.services.drive | |
com.google.api.services.drive.model |
Modifier and Type | Method and Description |
---|---|
Drive.Permissions.Insert |
Drive.Permissions.insert(String fileId,
Permission content)
Inserts a permission for a file or shared drive.
|
Drive.Permissions.Patch |
Drive.Permissions.patch(String fileId,
String permissionId,
Permission content)
Updates a permission using patch semantics.
|
Drive.Permissions.Update |
Drive.Permissions.update(String fileId,
String permissionId,
Permission content)
Updates a permission.
|
Constructor and Description |
---|
Insert(String fileId,
Permission content)
Inserts a permission for a file or shared drive.
|
Patch(String fileId,
String permissionId,
Permission content)
Updates a permission using patch semantics.
|
Update(String fileId,
String permissionId,
Permission content)
Updates a permission.
|
Modifier and Type | Method and Description |
---|---|
Permission |
Permission.clone() |
Permission |
File.getUserPermission()
The permissions for the authenticated user on this file.
|
Permission |
Permission.set(String fieldName,
Object value) |
Permission |
Permission.setAdditionalRoles(List<String> additionalRoles)
Additional roles for this user.
|
Permission |
Permission.setAuthKey(String authKey)
Deprecated.
|
Permission |
Permission.setDeleted(Boolean deleted)
Whether the account associated with this permission has been deleted.
|
Permission |
Permission.setDomain(String domain)
The domain name of the entity this permission refers to.
|
Permission |
Permission.setEmailAddress(String emailAddress)
The email address of the user or group this permission refers to.
|
Permission |
Permission.setEtag(String etag)
The ETag of the permission.
|
Permission |
Permission.setExpirationDate(com.google.api.client.util.DateTime expirationDate)
The time at which this permission will expire (RFC 3339 date-time).
|
Permission |
Permission.setId(String id)
The ID of the user this permission refers to, and identical to the permissionId in the About
and Files resources.
|
Permission |
Permission.setKind(String kind)
This is always drive#permission.
|
Permission |
Permission.setName(String name)
The name for this permission.
|
Permission |
Permission.setPendingOwner(Boolean pendingOwner)
Whether the account associated with this permission is a pending owner.
|
Permission |
Permission.setPermissionDetails(List<Permission.PermissionDetails> permissionDetails)
Details of whether the permissions on this shared drive item are inherited or directly on this
item.
|
Permission |
Permission.setPhotoLink(String photoLink)
A link to the profile photo, if available.
|
Permission |
Permission.setRole(String role)
The primary role for this user.
|
Permission |
Permission.setSelfLink(String selfLink)
A link back to this permission.
|
Permission |
Permission.setTeamDrivePermissionDetails(List<Permission.TeamDrivePermissionDetails> teamDrivePermissionDetails)
Deprecated - use permissionDetails instead.
|
Permission |
Permission.setType(String type)
The account type.
|
Permission |
Permission.setValue(String value)
The email address or domain name for the entity.
|
Permission |
Permission.setView(String view)
Indicates the view for this permission.
|
Permission |
Permission.setWithLink(Boolean withLink)
Whether the link is required for this permission.
|
Modifier and Type | Method and Description |
---|---|
List<Permission> |
PermissionList.getItems()
The list of permissions.
|
List<Permission> |
File.getPermissions()
The list of permissions for users with access to this file.
|
Modifier and Type | Method and Description |
---|---|
File |
File.setUserPermission(Permission userPermission)
The permissions for the authenticated user on this file.
|
Modifier and Type | Method and Description |
---|---|
PermissionList |
PermissionList.setItems(List<Permission> items)
The list of permissions.
|
File |
File.setPermissions(List<Permission> permissions)
The list of permissions for users with access to this file.
|
Copyright © 2011–2023 Google. All rights reserved.