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 |
Starts a build with the specified configuration. This method returns a long-running `Operation`, which includes the build ID. Pass the build ID to `GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`).
See: Cloud Build API Reference for cloudbuild.projects.builds.create
.
Synopsis
- type ProjectsBuildsCreateResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("builds" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Build :> Post '[JSON] Operation))))))))))
- projectsBuildsCreate :: Build -> Text -> ProjectsBuildsCreate
- data ProjectsBuildsCreate
- pXgafv :: Lens' ProjectsBuildsCreate (Maybe Xgafv)
- pUploadProtocol :: Lens' ProjectsBuildsCreate (Maybe Text)
- pAccessToken :: Lens' ProjectsBuildsCreate (Maybe Text)
- pUploadType :: Lens' ProjectsBuildsCreate (Maybe Text)
- pPayload :: Lens' ProjectsBuildsCreate Build
- pProjectId :: Lens' ProjectsBuildsCreate Text
- pCallback :: Lens' ProjectsBuildsCreate (Maybe Text)
REST Resource
type ProjectsBuildsCreateResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("builds" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Build :> Post '[JSON] Operation)))))))))) Source #
A resource alias for cloudbuild.projects.builds.create
method which the
ProjectsBuildsCreate
request conforms to.
Creating a Request
Creates a value of ProjectsBuildsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsBuildsCreate Source #
Starts a build with the specified configuration. This method returns a long-running `Operation`, which includes the build ID. Pass the build ID to `GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`).
See: projectsBuildsCreate
smart constructor.
Instances
Request Lenses
pUploadProtocol :: Lens' ProjectsBuildsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pAccessToken :: Lens' ProjectsBuildsCreate (Maybe Text) Source #
OAuth access token.
pUploadType :: Lens' ProjectsBuildsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pProjectId :: Lens' ProjectsBuildsCreate Text Source #
ID of the project.