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 |
Lists a file's or Team Drive's permissions.
See: Drive API Reference for drive.permissions.list
.
Synopsis
- type PermissionsListResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("permissions" :> (QueryParam "pageToken" Text :> (QueryParam "useDomainAdminAccess" Bool :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] PermissionList)))))))))
- permissionsList :: Text -> PermissionsList
- data PermissionsList
- plPageToken :: Lens' PermissionsList (Maybe Text)
- plUseDomainAdminAccess :: Lens' PermissionsList Bool
- plFileId :: Lens' PermissionsList Text
- plPageSize :: Lens' PermissionsList (Maybe Int32)
- plSupportsTeamDrives :: Lens' PermissionsList Bool
REST Resource
type PermissionsListResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("permissions" :> (QueryParam "pageToken" Text :> (QueryParam "useDomainAdminAccess" Bool :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] PermissionList))))))))) Source #
A resource alias for drive.permissions.list
method which the
PermissionsList
request conforms to.
Creating a Request
Creates a value of PermissionsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PermissionsList Source #
Lists a file's or Team Drive's permissions.
See: permissionsList
smart constructor.
Instances
Request Lenses
plPageToken :: Lens' PermissionsList (Maybe Text) Source #
The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
plUseDomainAdminAccess :: Lens' PermissionsList 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.
plPageSize :: Lens' PermissionsList (Maybe Int32) Source #
The maximum number of permissions to return per page. When not set for files in a Team Drive, at most 100 results will be returned. When not set for files that are not in a Team Drive, the entire list will be returned.
plSupportsTeamDrives :: Lens' PermissionsList Bool Source #
Whether the requesting application supports Team Drives.