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 |
Gets a permission by ID.
See: Drive API Reference for drive.permissions.get
.
Synopsis
- type PermissionsGetResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("permissions" :> (Capture "permissionId" Text :> (QueryParam "useDomainAdminAccess" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] Permission))))))))
- permissionsGet :: Text -> Text -> PermissionsGet
- data PermissionsGet
- pgUseDomainAdminAccess :: Lens' PermissionsGet Bool
- pgFileId :: Lens' PermissionsGet Text
- pgSupportsTeamDrives :: Lens' PermissionsGet Bool
- pgPermissionId :: Lens' PermissionsGet Text
REST Resource
type PermissionsGetResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("permissions" :> (Capture "permissionId" Text :> (QueryParam "useDomainAdminAccess" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] Permission)))))))) Source #
A resource alias for drive.permissions.get
method which the
PermissionsGet
request conforms to.
Creating a Request
Creates a value of PermissionsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PermissionsGet Source #
Gets a permission by ID.
See: permissionsGet
smart constructor.
Instances
Request Lenses
pgUseDomainAdminAccess :: Lens' PermissionsGet 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.
pgSupportsTeamDrives :: Lens' PermissionsGet Bool Source #
Whether the requesting application supports Team Drives.
pgPermissionId :: Lens' PermissionsGet Text Source #
The ID of the permission.