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.Copy

Contents

Description

Creates a copy of a file and applies any requested updates with patch semantics.

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

Synopsis

REST Resource

type FilesCopyResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("copy" :> (QueryParam "ocrLanguage" Text :> (QueryParam "keepRevisionForever" Bool :> (QueryParam "ignoreDefaultVisibility" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] File :> Post '[JSON] File)))))))))) Source #

A resource alias for drive.files.copy method which the FilesCopy request conforms to.

Creating a Request

filesCopy Source #

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

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

data FilesCopy Source #

Creates a copy of a file and applies any requested updates with patch semantics.

See: filesCopy smart constructor.

Instances
Eq FilesCopy Source # 
Instance details

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

Data FilesCopy Source # 
Instance details

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

Methods

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

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

toConstr :: FilesCopy -> Constr #

dataTypeOf :: FilesCopy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show FilesCopy Source # 
Instance details

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

Generic FilesCopy Source # 
Instance details

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

Associated Types

type Rep FilesCopy :: Type -> Type #

GoogleRequest FilesCopy Source # 
Instance details

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

Associated Types

type Rs FilesCopy :: Type #

type Scopes FilesCopy :: [Symbol] #

type Rep FilesCopy Source # 
Instance details

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

type Rep FilesCopy = D1 (MetaData "FilesCopy" "Network.Google.Resource.Drive.Files.Copy" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "FilesCopy'" PrefixI True) ((S1 (MetaSel (Just "_fPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 File) :*: (S1 (MetaSel (Just "_fOCRLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_fKeepRevisionForever") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))) :*: (S1 (MetaSel (Just "_fIgnoreDefaultVisibility") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: (S1 (MetaSel (Just "_fFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_fSupportsTeamDrives") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))))
type Scopes FilesCopy Source # 
Instance details

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

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

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

Request Lenses

fPayload :: Lens' FilesCopy File Source #

Multipart request metadata.

fOCRLanguage :: Lens' FilesCopy (Maybe Text) Source #

A language hint for OCR processing during image import (ISO 639-1 code).

fKeepRevisionForever :: Lens' FilesCopy Bool Source #

Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Drive.

fIgnoreDefaultVisibility :: Lens' FilesCopy Bool Source #

Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.

fFileId :: Lens' FilesCopy Text Source #

The ID of the file.

fSupportsTeamDrives :: Lens' FilesCopy Bool Source #

Whether the requesting application supports Team Drives.