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, empty script project with no script files and a base manifest file.
See: Apps Script API Reference for script.projects.create
.
Synopsis
- type ProjectsCreateResource = "v1" :> ("projects" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateProjectRequest :> Post '[JSON] Project))))))))
- projectsCreate :: CreateProjectRequest -> ProjectsCreate
- data ProjectsCreate
- pcXgafv :: Lens' ProjectsCreate (Maybe Xgafv)
- pcUploadProtocol :: Lens' ProjectsCreate (Maybe Text)
- pcAccessToken :: Lens' ProjectsCreate (Maybe Text)
- pcUploadType :: Lens' ProjectsCreate (Maybe Text)
- pcPayload :: Lens' ProjectsCreate CreateProjectRequest
- pcCallback :: Lens' ProjectsCreate (Maybe Text)
REST Resource
type ProjectsCreateResource = "v1" :> ("projects" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateProjectRequest :> Post '[JSON] Project)))))))) Source #
A resource alias for script.projects.create
method which the
ProjectsCreate
request conforms to.
Creating a Request
Creates a value of ProjectsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsCreate Source #
Creates a new, empty script project with no script files and a base manifest file.
See: projectsCreate
smart constructor.
Instances
Request Lenses
pcUploadProtocol :: Lens' ProjectsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pcAccessToken :: Lens' ProjectsCreate (Maybe Text) Source #
OAuth access token.
pcUploadType :: Lens' ProjectsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pcPayload :: Lens' ProjectsCreate CreateProjectRequest Source #
Multipart request metadata.
pcCallback :: Lens' ProjectsCreate (Maybe Text) Source #
JSONP