Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Deletes a permission.
See: Drive API Reference for drive.permissions.delete
.
Synopsis
- type PermissionsDeleteResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("permissions" :> (Capture "permissionId" Text :> (QueryParam "useDomainAdminAccess" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Delete '[JSON] ()))))))))
- permissionsDelete :: Text -> Text -> PermissionsDelete
- data PermissionsDelete
- pdUseDomainAdminAccess :: Lens' PermissionsDelete Bool
- pdFileId :: Lens' PermissionsDelete Text
- pdSupportsTeamDrives :: Lens' PermissionsDelete Bool
- pdPermissionId :: Lens' PermissionsDelete Text
REST Resource
type PermissionsDeleteResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("permissions" :> (Capture "permissionId" Text :> (QueryParam "useDomainAdminAccess" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Delete '[JSON] ())))))))) Source #
A resource alias for drive.permissions.delete
method which the
PermissionsDelete
request conforms to.
Creating a Request
Creates a value of PermissionsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PermissionsDelete Source #
Deletes a permission.
See: permissionsDelete
smart constructor.
Instances
Request Lenses
pdUseDomainAdminAccess :: Lens' PermissionsDelete Bool Source #
Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.
pdSupportsTeamDrives :: Lens' PermissionsDelete Bool Source #
Whether the requesting application supports Team Drives.
pdPermissionId :: Lens' PermissionsDelete Text Source #
The ID of the permission.