Permissions
class Permissions extends Resource (View source)
The "permissions" collection of methods.
Typical usage is:
$driveService = new Google\Service\Drive(...);
$permissions = $driveService->permissions;
Methods
Creates a permission for a file or shared drive. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied. (permissions.create)
Deletes a permission. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.
Gets a permission by ID. (permissions.get)
Lists a file's or shared drive's permissions. (permissions.listPermissions)
Updates a permission with patch semantics. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied. (permissions.update)
Details
Permission
create(string $fileId, Permission $postBody, array $optParams = [])
Creates a permission for a file or shared drive. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied. (permissions.create)
delete(string $fileId, string $permissionId, array $optParams = [])
Deletes a permission. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.
(permissions.delete)
Permission
get(string $fileId, string $permissionId, array $optParams = [])
Gets a permission by ID. (permissions.get)
PermissionList
listPermissions(string $fileId, array $optParams = [])
Lists a file's or shared drive's permissions. (permissions.listPermissions)
Permission
update(string $fileId, string $permissionId, Permission $postBody, array $optParams = [])
Updates a permission with patch semantics. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied. (permissions.update)