Package | Description |
---|---|
com.google.api.services.drive | |
com.google.api.services.drive.model |
Modifier and Type | Method and Description |
---|---|
Drive.Permissions.Create |
Drive.Permissions.create(String fileId,
Permission content)
Creates a permission for a file or shared drive.
|
Drive.Permissions.Update |
Drive.Permissions.update(String fileId,
String permissionId,
Permission content)
Updates a permission with patch semantics.
|
Constructor and Description |
---|
Create(String fileId,
Permission content)
Creates a permission for a file or shared drive.
|
Update(String fileId,
String permissionId,
Permission content)
Updates a permission with patch semantics.
|
Modifier and Type | Method and Description |
---|---|
Permission |
Permission.clone() |
Permission |
Permission.set(String fieldName,
Object value) |
Permission |
Permission.setAllowFileDiscovery(Boolean allowFileDiscovery)
Whether the permission allows the file to be discovered through search.
|
Permission |
Permission.setDeleted(Boolean deleted)
Output only.
|
Permission |
Permission.setDisplayName(String displayName)
Output only.
|
Permission |
Permission.setDomain(String domain)
The domain to which this permission refers.
|
Permission |
Permission.setEmailAddress(String emailAddress)
The email address of the user or group to which this permission refers.
|
Permission |
Permission.setExpirationTime(com.google.api.client.util.DateTime expirationTime)
The time at which this permission will expire (RFC 3339 date-time).
|
Permission |
Permission.setId(String id)
Output only.
|
Permission |
Permission.setKind(String kind)
Output only.
|
Permission |
Permission.setPendingOwner(Boolean pendingOwner)
Whether the account associated with this permission is a pending owner.
|
Permission |
Permission.setPermissionDetails(List<Permission.PermissionDetails> permissionDetails)
Output only.
|
Permission |
Permission.setPhotoLink(String photoLink)
Output only.
|
Permission |
Permission.setRole(String role)
The role granted by this permission.
|
Permission |
Permission.setTeamDrivePermissionDetails(List<Permission.TeamDrivePermissionDetails> teamDrivePermissionDetails)
Output only.
|
Permission |
Permission.setType(String type)
The type of the grantee.
|
Permission |
Permission.setView(String view)
Indicates the view for this permission.
|
Modifier and Type | Method and Description |
---|---|
List<Permission> |
File.getPermissions()
Output only.
|
List<Permission> |
PermissionList.getPermissions()
The list of permissions.
|
Modifier and Type | Method and Description |
---|---|
File |
File.setPermissions(List<Permission> permissions)
Output only.
|
PermissionList |
PermissionList.setPermissions(List<Permission> permissions)
The list of permissions.
|
Copyright © 2011–2024 Google. All rights reserved.