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 new file.
See: Drive API Reference for drive.files.create
.
Synopsis
- type FilesCreateResource = ("drive" :> ("v3" :> ("files" :> (QueryParam "useContentAsIndexableText" Bool :> (QueryParam "ocrLanguage" Text :> (QueryParam "keepRevisionForever" Bool :> (QueryParam "ignoreDefaultVisibility" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] File :> Post '[JSON] File)))))))))) :<|> ("upload" :> ("drive" :> ("v3" :> ("files" :> (QueryParam "useContentAsIndexableText" Bool :> (QueryParam "ocrLanguage" Text :> (QueryParam "keepRevisionForever" Bool :> (QueryParam "ignoreDefaultVisibility" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] File :> Post '[JSON] File))))))))))))
- filesCreate :: File -> FilesCreate
- data FilesCreate
- fcPayload :: Lens' FilesCreate File
- fcUseContentAsIndexableText :: Lens' FilesCreate Bool
- fcOCRLanguage :: Lens' FilesCreate (Maybe Text)
- fcKeepRevisionForever :: Lens' FilesCreate Bool
- fcIgnoreDefaultVisibility :: Lens' FilesCreate Bool
- fcSupportsTeamDrives :: Lens' FilesCreate Bool
REST Resource
type FilesCreateResource = ("drive" :> ("v3" :> ("files" :> (QueryParam "useContentAsIndexableText" Bool :> (QueryParam "ocrLanguage" Text :> (QueryParam "keepRevisionForever" Bool :> (QueryParam "ignoreDefaultVisibility" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] File :> Post '[JSON] File)))))))))) :<|> ("upload" :> ("drive" :> ("v3" :> ("files" :> (QueryParam "useContentAsIndexableText" Bool :> (QueryParam "ocrLanguage" Text :> (QueryParam "keepRevisionForever" Bool :> (QueryParam "ignoreDefaultVisibility" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] File :> Post '[JSON] File)))))))))))) Source #
A resource alias for drive.files.create
method which the
FilesCreate
request conforms to.
Creating a Request
:: File | |
-> FilesCreate |
Creates a value of FilesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data FilesCreate Source #
Creates a new file.
See: filesCreate
smart constructor.
Instances
Request Lenses
fcUseContentAsIndexableText :: Lens' FilesCreate Bool Source #
Whether to use the uploaded content as indexable text.
fcOCRLanguage :: Lens' FilesCreate (Maybe Text) Source #
A language hint for OCR processing during image import (ISO 639-1 code).
fcKeepRevisionForever :: Lens' FilesCreate Bool Source #
Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Drive.
fcIgnoreDefaultVisibility :: Lens' FilesCreate 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.
fcSupportsTeamDrives :: Lens' FilesCreate Bool Source #
Whether the requesting application supports Team Drives.