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.Files.Delete

Contents

Description

Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a Team Drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted.

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

Synopsis

REST Resource

type FilesDeleteResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Delete '[JSON] ()))))) Source #

A resource alias for drive.files.delete method which the FilesDelete request conforms to.

Creating a Request

filesDelete Source #

Arguments

:: Text

fdFileId

-> FilesDelete 

Creates a value of FilesDelete with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data FilesDelete Source #

Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a Team Drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted.

See: filesDelete smart constructor.

Instances
Eq FilesDelete Source # 
Instance details

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

Data FilesDelete Source # 
Instance details

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

Methods

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

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

toConstr :: FilesDelete -> Constr #

dataTypeOf :: FilesDelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show FilesDelete Source # 
Instance details

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

Generic FilesDelete Source # 
Instance details

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

Associated Types

type Rep FilesDelete :: Type -> Type #

GoogleRequest FilesDelete Source # 
Instance details

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

Associated Types

type Rs FilesDelete :: Type #

type Scopes FilesDelete :: [Symbol] #

type Rep FilesDelete Source # 
Instance details

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

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

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

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

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

type Rs FilesDelete = ()

Request Lenses

fdFileId :: Lens' FilesDelete Text Source #

The ID of the file.

fdSupportsTeamDrives :: Lens' FilesDelete Bool Source #

Whether the requesting application supports Team Drives.