| 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 |
Network.Google.Resource.Drive.Permissions.Get
Description
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 "supportsAllDrives" Bool :> (QueryParam "useDomainAdminAccess" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] Permission)))))))))
- permissionsGet :: Text -> Text -> PermissionsGet
- data PermissionsGet
- pgSupportsAllDrives :: Lens' PermissionsGet Bool
- 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 "supportsAllDrives" Bool :> (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
Arguments
| :: Text | |
| -> Text | |
| -> PermissionsGet |
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
pgSupportsAllDrives :: Lens' PermissionsGet Bool Source #
Whether the requesting application supports both My Drives and shared drives.
pgUseDomainAdminAccess :: Lens' PermissionsGet Bool Source #
Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
pgSupportsTeamDrives :: Lens' PermissionsGet Bool Source #
Deprecated use supportsAllDrives instead.
pgPermissionId :: Lens' PermissionsGet Text Source #
The ID of the permission.