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 |
Network.Google.Resource.Docs.Documents.Create
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
- 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))))))))
- documentsCreate :: Document -> DocumentsCreate
- data DocumentsCreate
- dcXgafv :: Lens' DocumentsCreate (Maybe Xgafv)
- dcUploadProtocol :: Lens' DocumentsCreate (Maybe Text)
- dcAccessToken :: Lens' DocumentsCreate (Maybe Text)
- dcUploadType :: Lens' DocumentsCreate (Maybe Text)
- dcPayload :: Lens' DocumentsCreate Document
- dcCallback :: Lens' DocumentsCreate (Maybe Text)
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
Arguments
:: Document | |
-> DocumentsCreate |
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
Request Lenses
dcUploadProtocol :: Lens' DocumentsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
dcAccessToken :: Lens' DocumentsCreate (Maybe Text) Source #
OAuth access token.
dcUploadType :: Lens' DocumentsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
dcCallback :: Lens' DocumentsCreate (Maybe Text) Source #
JSONP