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 |
Updates a file's metadata and/or content with patch semantics.
See: Drive API Reference for drive.files.update
.
- type FilesUpdateResource = ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> (QueryParam "removeParents" Text :> (QueryParam "useContentAsIndexableText" Bool :> (QueryParam "ocrLanguage" Text :> (QueryParam "keepRevisionForever" Bool :> (QueryParam "addParents" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] File :> Patch '[JSON] File))))))))))) :<|> ("upload" :> ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> (QueryParam "removeParents" Text :> (QueryParam "useContentAsIndexableText" Bool :> (QueryParam "ocrLanguage" Text :> (QueryParam "keepRevisionForever" Bool :> (QueryParam "addParents" Text :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] File :> Patch '[JSON] File)))))))))))))
- filesUpdate :: File -> Text -> FilesUpdate
- data FilesUpdate
- fuPayload :: Lens' FilesUpdate File
- fuRemoveParents :: Lens' FilesUpdate (Maybe Text)
- fuUseContentAsIndexableText :: Lens' FilesUpdate Bool
- fuOCRLanguage :: Lens' FilesUpdate (Maybe Text)
- fuKeepRevisionForever :: Lens' FilesUpdate Bool
- fuFileId :: Lens' FilesUpdate Text
- fuAddParents :: Lens' FilesUpdate (Maybe Text)
REST Resource
type FilesUpdateResource = ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> (QueryParam "removeParents" Text :> (QueryParam "useContentAsIndexableText" Bool :> (QueryParam "ocrLanguage" Text :> (QueryParam "keepRevisionForever" Bool :> (QueryParam "addParents" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] File :> Patch '[JSON] File))))))))))) :<|> ("upload" :> ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> (QueryParam "removeParents" Text :> (QueryParam "useContentAsIndexableText" Bool :> (QueryParam "ocrLanguage" Text :> (QueryParam "keepRevisionForever" Bool :> (QueryParam "addParents" Text :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] File :> Patch '[JSON] File))))))))))))) Source #
A resource alias for drive.files.update
method which the
FilesUpdate
request conforms to.
Creating a Request
:: File | |
-> Text | |
-> FilesUpdate |
Creates a value of FilesUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data FilesUpdate Source #
Updates a file's metadata and/or content with patch semantics.
See: filesUpdate
smart constructor.
Eq FilesUpdate Source # | |
Data FilesUpdate Source # | |
Show FilesUpdate Source # | |
Generic FilesUpdate Source # | |
GoogleRequest FilesUpdate Source # | |
GoogleRequest (MediaUpload FilesUpdate) Source # | |
type Rep FilesUpdate Source # | |
type Scopes FilesUpdate Source # | |
type Rs FilesUpdate Source # | |
type Scopes (MediaUpload FilesUpdate) Source # | |
type Rs (MediaUpload FilesUpdate) Source # | |
Request Lenses
fuRemoveParents :: Lens' FilesUpdate (Maybe Text) Source #
A comma-separated list of parent IDs to remove.
fuUseContentAsIndexableText :: Lens' FilesUpdate Bool Source #
Whether to use the uploaded content as indexable text.
fuOCRLanguage :: Lens' FilesUpdate (Maybe Text) Source #
A language hint for OCR processing during image import (ISO 639-1 code).
fuKeepRevisionForever :: Lens' FilesUpdate Bool Source #
Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Drive.
fuAddParents :: Lens' FilesUpdate (Maybe Text) Source #
A comma-separated list of parent IDs to add.