gogol-drive-0.4.0: Google Drive SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Drive.Permissions.Delete

Contents

Description

Deletes a permission.

See: Drive API Reference for drive.permissions.delete.

Synopsis

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

permissionsDelete Source #

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
Eq PermissionsDelete Source # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Delete

Data PermissionsDelete Source # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Delete

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PermissionsDelete -> c PermissionsDelete #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PermissionsDelete #

toConstr :: PermissionsDelete -> Constr #

dataTypeOf :: PermissionsDelete -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PermissionsDelete) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PermissionsDelete) #

gmapT :: (forall b. Data b => b -> b) -> PermissionsDelete -> PermissionsDelete #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PermissionsDelete -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PermissionsDelete -> r #

gmapQ :: (forall d. Data d => d -> u) -> PermissionsDelete -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PermissionsDelete -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PermissionsDelete -> m PermissionsDelete #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PermissionsDelete -> m PermissionsDelete #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PermissionsDelete -> m PermissionsDelete #

Show PermissionsDelete Source # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Delete

Generic PermissionsDelete Source # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Delete

Associated Types

type Rep PermissionsDelete :: Type -> Type #

GoogleRequest PermissionsDelete Source # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Delete

Associated Types

type Rs PermissionsDelete :: Type #

type Scopes PermissionsDelete :: [Symbol] #

type Rep PermissionsDelete Source # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Delete

type Rep PermissionsDelete = D1 (MetaData "PermissionsDelete" "Network.Google.Resource.Drive.Permissions.Delete" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "PermissionsDelete'" PrefixI True) ((S1 (MetaSel (Just "_pdUseDomainAdminAccess") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_pdFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_pdSupportsTeamDrives") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_pdPermissionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes PermissionsDelete Source # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Delete

type Scopes PermissionsDelete = "https://www.googleapis.com/auth/drive" ': ("https://www.googleapis.com/auth/drive.file" ': ([] :: [Symbol]))
type Rs PermissionsDelete Source # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Delete

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.

pdFileId :: Lens' PermissionsDelete Text Source #

The ID of the file or Team Drive.

pdSupportsTeamDrives :: Lens' PermissionsDelete Bool Source #

Whether the requesting application supports Team Drives.

pdPermissionId :: Lens' PermissionsDelete Text Source #

The ID of the permission.