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

Contents

Description

Creates a new file.

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

Synopsis

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

filesCreate Source #

Arguments

:: File

fcPayload

-> 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
Eq FilesCreate Source # 
Instance details

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

Data FilesCreate Source # 
Instance details

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

Methods

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

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

toConstr :: FilesCreate -> Constr #

dataTypeOf :: FilesCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show FilesCreate Source # 
Instance details

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

Generic FilesCreate Source # 
Instance details

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

Associated Types

type Rep FilesCreate :: Type -> Type #

GoogleRequest FilesCreate Source # 
Instance details

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

Associated Types

type Rs FilesCreate :: Type #

type Scopes FilesCreate :: [Symbol] #

GoogleRequest (MediaUpload FilesCreate) Source # 
Instance details

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

Associated Types

type Rs (MediaUpload FilesCreate) :: Type #

type Scopes (MediaUpload FilesCreate) :: [Symbol] #

type Rep FilesCreate Source # 
Instance details

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

type Rep FilesCreate = D1 (MetaData "FilesCreate" "Network.Google.Resource.Drive.Files.Create" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "FilesCreate'" PrefixI True) ((S1 (MetaSel (Just "_fcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 File) :*: (S1 (MetaSel (Just "_fcUseContentAsIndexableText") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_fcOCRLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_fcKeepRevisionForever") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: (S1 (MetaSel (Just "_fcIgnoreDefaultVisibility") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_fcSupportsTeamDrives") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))))
type Scopes FilesCreate Source # 
Instance details

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

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

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

type Scopes (MediaUpload FilesCreate) Source # 
Instance details

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

type Rs (MediaUpload FilesCreate) Source # 
Instance details

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

Request Lenses

fcPayload :: Lens' FilesCreate File Source #

Multipart request metadata.

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.