gogol-docs-0.5.0: Google Docs 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.Docs.Documents.Create

Contents

Description

Creates a blank document using the title given in the request. Other fields in the request, including any provided content, are ignored. Returns the created document.

See: Google Docs API Reference for docs.documents.create.

Synopsis

REST Resource

type DocumentsCreateResource = "v1" :> ("documents" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Document :> Post '[JSON] Document)))))))) Source #

A resource alias for docs.documents.create method which the DocumentsCreate request conforms to.

Creating a Request

documentsCreate Source #

Creates a value of DocumentsCreate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DocumentsCreate Source #

Creates a blank document using the title given in the request. Other fields in the request, including any provided content, are ignored. Returns the created document.

See: documentsCreate smart constructor.

Instances
Eq DocumentsCreate Source # 
Instance details

Defined in Network.Google.Resource.Docs.Documents.Create

Data DocumentsCreate Source # 
Instance details

Defined in Network.Google.Resource.Docs.Documents.Create

Methods

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

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

toConstr :: DocumentsCreate -> Constr #

dataTypeOf :: DocumentsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DocumentsCreate Source # 
Instance details

Defined in Network.Google.Resource.Docs.Documents.Create

Generic DocumentsCreate Source # 
Instance details

Defined in Network.Google.Resource.Docs.Documents.Create

Associated Types

type Rep DocumentsCreate :: Type -> Type #

GoogleRequest DocumentsCreate Source # 
Instance details

Defined in Network.Google.Resource.Docs.Documents.Create

Associated Types

type Rs DocumentsCreate :: Type #

type Scopes DocumentsCreate :: [Symbol] #

type Rep DocumentsCreate Source # 
Instance details

Defined in Network.Google.Resource.Docs.Documents.Create

type Rep DocumentsCreate = D1 (MetaData "DocumentsCreate" "Network.Google.Resource.Docs.Documents.Create" "gogol-docs-0.5.0-ENmbq05ppI7HbEsEKEkZFk" False) (C1 (MetaCons "DocumentsCreate'" PrefixI True) ((S1 (MetaSel (Just "_dcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_dcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_dcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_dcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Document) :*: S1 (MetaSel (Just "_dcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes DocumentsCreate Source # 
Instance details

Defined in Network.Google.Resource.Docs.Documents.Create

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

Defined in Network.Google.Resource.Docs.Documents.Create

Request Lenses

dcUploadProtocol :: Lens' DocumentsCreate (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

dcUploadType :: Lens' DocumentsCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

dcPayload :: Lens' DocumentsCreate Document Source #

Multipart request metadata.