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 |
Creates a copy of a file and applies any requested updates with patch semantics.
See: Drive API Reference for drive.files.copy
.
Synopsis
- 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))))))))))
- filesCopy :: File -> Text -> FilesCopy
- data FilesCopy
- fPayload :: Lens' FilesCopy File
- fOCRLanguage :: Lens' FilesCopy (Maybe Text)
- fKeepRevisionForever :: Lens' FilesCopy Bool
- fIgnoreDefaultVisibility :: Lens' FilesCopy Bool
- fFileId :: Lens' FilesCopy Text
- fSupportsTeamDrives :: Lens' FilesCopy Bool
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
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:
Creates a copy of a file and applies any requested updates with patch semantics.
See: filesCopy
smart constructor.
Instances
Request Lenses
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.