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 immutable version using the current code, with a unique version number.
See: Apps Script API Reference for script.projects.versions.create
.
Synopsis
- type ProjectsVersionsCreateResource = "v1" :> ("projects" :> (Capture "scriptId" Text :> ("versions" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Version :> Post '[JSON] Version))))))))))
- projectsVersionsCreate :: Version -> Text -> ProjectsVersionsCreate
- data ProjectsVersionsCreate
- pvcXgafv :: Lens' ProjectsVersionsCreate (Maybe Xgafv)
- pvcUploadProtocol :: Lens' ProjectsVersionsCreate (Maybe Text)
- pvcAccessToken :: Lens' ProjectsVersionsCreate (Maybe Text)
- pvcUploadType :: Lens' ProjectsVersionsCreate (Maybe Text)
- pvcPayload :: Lens' ProjectsVersionsCreate Version
- pvcScriptId :: Lens' ProjectsVersionsCreate Text
- pvcCallback :: Lens' ProjectsVersionsCreate (Maybe Text)
REST Resource
type ProjectsVersionsCreateResource = "v1" :> ("projects" :> (Capture "scriptId" Text :> ("versions" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Version :> Post '[JSON] Version)))))))))) Source #
A resource alias for script.projects.versions.create
method which the
ProjectsVersionsCreate
request conforms to.
Creating a Request
projectsVersionsCreate Source #
Creates a value of ProjectsVersionsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsVersionsCreate Source #
Creates a new immutable version using the current code, with a unique version number.
See: projectsVersionsCreate
smart constructor.
Instances
Request Lenses
pvcUploadProtocol :: Lens' ProjectsVersionsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pvcAccessToken :: Lens' ProjectsVersionsCreate (Maybe Text) Source #
OAuth access token.
pvcUploadType :: Lens' ProjectsVersionsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pvcPayload :: Lens' ProjectsVersionsCreate Version Source #
Multipart request metadata.
pvcScriptId :: Lens' ProjectsVersionsCreate Text Source #
The script project's Drive ID.
pvcCallback :: Lens' ProjectsVersionsCreate (Maybe Text) Source #
JSONP