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 |
Cancels a build in progress.
See: Cloud Build API Reference for cloudbuild.projects.builds.cancel
.
Synopsis
- type ProjectsBuildsCancelResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("builds" :> (CaptureMode "id" "cancel" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CancelBuildRequest :> Post '[JSON] Build)))))))))))
- projectsBuildsCancel :: CancelBuildRequest -> Text -> Text -> ProjectsBuildsCancel
- data ProjectsBuildsCancel
- pbcXgafv :: Lens' ProjectsBuildsCancel (Maybe Xgafv)
- pbcUploadProtocol :: Lens' ProjectsBuildsCancel (Maybe Text)
- pbcAccessToken :: Lens' ProjectsBuildsCancel (Maybe Text)
- pbcUploadType :: Lens' ProjectsBuildsCancel (Maybe Text)
- pbcPayload :: Lens' ProjectsBuildsCancel CancelBuildRequest
- pbcId :: Lens' ProjectsBuildsCancel Text
- pbcProjectId :: Lens' ProjectsBuildsCancel Text
- pbcCallback :: Lens' ProjectsBuildsCancel (Maybe Text)
REST Resource
type ProjectsBuildsCancelResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("builds" :> (CaptureMode "id" "cancel" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CancelBuildRequest :> Post '[JSON] Build))))))))))) Source #
A resource alias for cloudbuild.projects.builds.cancel
method which the
ProjectsBuildsCancel
request conforms to.
Creating a Request
Creates a value of ProjectsBuildsCancel
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsBuildsCancel Source #
Cancels a build in progress.
See: projectsBuildsCancel
smart constructor.
Instances
Request Lenses
pbcUploadProtocol :: Lens' ProjectsBuildsCancel (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pbcAccessToken :: Lens' ProjectsBuildsCancel (Maybe Text) Source #
OAuth access token.
pbcUploadType :: Lens' ProjectsBuildsCancel (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pbcPayload :: Lens' ProjectsBuildsCancel CancelBuildRequest Source #
Multipart request metadata.
pbcProjectId :: Lens' ProjectsBuildsCancel Text Source #
ID of the project.
pbcCallback :: Lens' ProjectsBuildsCancel (Maybe Text) Source #
JSONP