gogol-drive-0.1.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 "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 # 
Data FilesCopy Source # 

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 # 
Generic FilesCopy Source # 

Associated Types

type Rep FilesCopy :: * -> * #

GoogleRequest FilesCopy Source # 

Associated Types

type Rs FilesCopy :: * #

type Scopes FilesCopy :: [Symbol] #

type Rep FilesCopy Source # 
type Rep FilesCopy = D1 (MetaData "FilesCopy" "Network.Google.Resource.Drive.Files.Copy" "gogol-drive-0.1.0-6HBMQCLlnIn4vn8VWItYpl" False) (C1 (MetaCons "FilesCopy'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_fPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 File)) (S1 (MetaSel (Just Symbol "_fOCRLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_fKeepRevisionForever") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) ((:*:) (S1 (MetaSel (Just Symbol "_fIgnoreDefaultVisibility") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_fFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Scopes FilesCopy Source # 
type Scopes FilesCopy = (:) Symbol "https://www.googleapis.com/auth/drive" ((:) Symbol "https://www.googleapis.com/auth/drive.appdata" ((:) Symbol "https://www.googleapis.com/auth/drive.file" ((:) Symbol "https://www.googleapis.com/auth/drive.photos.readonly" ([] Symbol))))
type Rs FilesCopy Source # 

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.