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(java.lang.String fileId,
Permission content)
Creates a permission for a file.
|
Drive.Permissions.Update |
Drive.Permissions.update(java.lang.String fileId,
java.lang.String permissionId,
Permission content)
Updates a permission with patch semantics.
|
Constructor and Description |
---|
Drive.Permissions.Create(java.lang.String fileId,
Permission content)
Creates a permission for a file.
|
Drive.Permissions.Update(java.lang.String fileId,
java.lang.String permissionId,
Permission content)
Updates a permission with patch semantics.
|
Modifier and Type | Method and Description |
---|---|
Permission |
Permission.clone() |
Permission |
Permission.set(java.lang.String fieldName,
java.lang.Object value) |
Permission |
Permission.setAllowFileDiscovery(java.lang.Boolean allowFileDiscovery)
Whether the permission allows the file to be discovered through search.
|
Permission |
Permission.setDisplayName(java.lang.String displayName)
A displayable name for users, groups or domains.
|
Permission |
Permission.setDomain(java.lang.String domain)
The domain to which this permission refers.
|
Permission |
Permission.setEmailAddress(java.lang.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(java.lang.String id)
The ID of this permission.
|
Permission |
Permission.setKind(java.lang.String kind)
Identifies what kind of resource this is.
|
Permission |
Permission.setPhotoLink(java.lang.String photoLink)
A link to the user's profile photo, if available.
|
Permission |
Permission.setRole(java.lang.String role)
The role granted by this permission.
|
Permission |
Permission.setType(java.lang.String type)
The type of the grantee.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Permission> |
PermissionList.getPermissions()
The full list of permissions.
|
java.util.List<Permission> |
File.getPermissions()
The full list of permissions for the file.
|
Modifier and Type | Method and Description |
---|---|
PermissionList |
PermissionList.setPermissions(java.util.List<Permission> permissions)
The full list of permissions.
|
File |
File.setPermissions(java.util.List<Permission> permissions)
The full list of permissions for the file.
|