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 |
Updates a permission with patch semantics.
See: Drive API Reference for drive.permissions.update
.
Synopsis
- type PermissionsUpdateResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("permissions" :> (Capture "permissionId" Text :> (QueryParam "removeExpiration" Bool :> (QueryParam "useDomainAdminAccess" Bool :> (QueryParam "transferOwnership" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Permission :> Patch '[JSON] Permission)))))))))))
- permissionsUpdate :: Permission -> Text -> Text -> PermissionsUpdate
- data PermissionsUpdate
- puPayload :: Lens' PermissionsUpdate Permission
- puRemoveExpiration :: Lens' PermissionsUpdate Bool
- puUseDomainAdminAccess :: Lens' PermissionsUpdate Bool
- puTransferOwnership :: Lens' PermissionsUpdate Bool
- puFileId :: Lens' PermissionsUpdate Text
- puSupportsTeamDrives :: Lens' PermissionsUpdate Bool
- puPermissionId :: Lens' PermissionsUpdate Text
REST Resource
type PermissionsUpdateResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("permissions" :> (Capture "permissionId" Text :> (QueryParam "removeExpiration" Bool :> (QueryParam "useDomainAdminAccess" Bool :> (QueryParam "transferOwnership" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Permission :> Patch '[JSON] Permission))))))))))) Source #
A resource alias for drive.permissions.update
method which the
PermissionsUpdate
request conforms to.
Creating a Request
Creates a value of PermissionsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PermissionsUpdate Source #
Updates a permission with patch semantics.
See: permissionsUpdate
smart constructor.
Instances
Request Lenses
puPayload :: Lens' PermissionsUpdate Permission Source #
Multipart request metadata.
puRemoveExpiration :: Lens' PermissionsUpdate Bool Source #
Whether to remove the expiration date.
puUseDomainAdminAccess :: Lens' PermissionsUpdate 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.
puTransferOwnership :: Lens' PermissionsUpdate Bool Source #
Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect.
puSupportsTeamDrives :: Lens' PermissionsUpdate Bool Source #
Whether the requesting application supports Team Drives.
puPermissionId :: Lens' PermissionsUpdate Text Source #
The ID of the permission.