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 deployment of an Apps Script project.
See: Apps Script API Reference for script.projects.deployments.create
.
Synopsis
- type ProjectsDeploymentsCreateResource = "v1" :> ("projects" :> (Capture "scriptId" Text :> ("deployments" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DeploymentConfig :> Post '[JSON] Deployment))))))))))
- projectsDeploymentsCreate :: DeploymentConfig -> Text -> ProjectsDeploymentsCreate
- data ProjectsDeploymentsCreate
- pdcXgafv :: Lens' ProjectsDeploymentsCreate (Maybe Xgafv)
- pdcUploadProtocol :: Lens' ProjectsDeploymentsCreate (Maybe Text)
- pdcAccessToken :: Lens' ProjectsDeploymentsCreate (Maybe Text)
- pdcUploadType :: Lens' ProjectsDeploymentsCreate (Maybe Text)
- pdcPayload :: Lens' ProjectsDeploymentsCreate DeploymentConfig
- pdcScriptId :: Lens' ProjectsDeploymentsCreate Text
- pdcCallback :: Lens' ProjectsDeploymentsCreate (Maybe Text)
REST Resource
type ProjectsDeploymentsCreateResource = "v1" :> ("projects" :> (Capture "scriptId" Text :> ("deployments" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DeploymentConfig :> Post '[JSON] Deployment)))))))))) Source #
A resource alias for script.projects.deployments.create
method which the
ProjectsDeploymentsCreate
request conforms to.
Creating a Request
projectsDeploymentsCreate Source #
Creates a value of ProjectsDeploymentsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsDeploymentsCreate Source #
Creates a deployment of an Apps Script project.
See: projectsDeploymentsCreate
smart constructor.
Instances
Request Lenses
pdcUploadProtocol :: Lens' ProjectsDeploymentsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pdcAccessToken :: Lens' ProjectsDeploymentsCreate (Maybe Text) Source #
OAuth access token.
pdcUploadType :: Lens' ProjectsDeploymentsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pdcPayload :: Lens' ProjectsDeploymentsCreate DeploymentConfig Source #
Multipart request metadata.
pdcScriptId :: Lens' ProjectsDeploymentsCreate Text Source #
The script project's Drive ID.
pdcCallback :: Lens' ProjectsDeploymentsCreate (Maybe Text) Source #
JSONP