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 build based on the specified build. This method creates a new build using the original build request, which may or may not result in an identical build. For triggered builds: * Triggered builds resolve to a precise revision; therefore a retry of a triggered build will result in a build that uses the same revision. For non-triggered builds that specify `RepoSource`: * If the original build built from the tip of a branch, the retried build will build from the tip of that branch, which may not be the same revision as the original build. * If the original build specified a commit sha or revision ID, the retried build will use the identical source. For builds that specify `StorageSource`: * If the original build pulled source from Google Cloud Storage without specifying the generation of the object, the new build will use the current object, which may be different from the original build source. * If the original build pulled source from Cloud Storage and specified the generation of the object, the new build will attempt to use the same object, which may or may not be available depending on the bucket's lifecycle management settings.
See: Cloud Build API Reference for cloudbuild.projects.builds.retry
.
Synopsis
- type ProjectsBuildsRetryResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("builds" :> (CaptureMode "id" "retry" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RetryBuildRequest :> Post '[JSON] Operation)))))))))))
- projectsBuildsRetry :: RetryBuildRequest -> Text -> Text -> ProjectsBuildsRetry
- data ProjectsBuildsRetry
- pbrXgafv :: Lens' ProjectsBuildsRetry (Maybe Xgafv)
- pbrUploadProtocol :: Lens' ProjectsBuildsRetry (Maybe Text)
- pbrAccessToken :: Lens' ProjectsBuildsRetry (Maybe Text)
- pbrUploadType :: Lens' ProjectsBuildsRetry (Maybe Text)
- pbrPayload :: Lens' ProjectsBuildsRetry RetryBuildRequest
- pbrId :: Lens' ProjectsBuildsRetry Text
- pbrProjectId :: Lens' ProjectsBuildsRetry Text
- pbrCallback :: Lens' ProjectsBuildsRetry (Maybe Text)
REST Resource
type ProjectsBuildsRetryResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("builds" :> (CaptureMode "id" "retry" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RetryBuildRequest :> Post '[JSON] Operation))))))))))) Source #
A resource alias for cloudbuild.projects.builds.retry
method which the
ProjectsBuildsRetry
request conforms to.
Creating a Request
Creates a value of ProjectsBuildsRetry
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsBuildsRetry Source #
Creates a new build based on the specified build. This method creates a new build using the original build request, which may or may not result in an identical build. For triggered builds: * Triggered builds resolve to a precise revision; therefore a retry of a triggered build will result in a build that uses the same revision. For non-triggered builds that specify `RepoSource`: * If the original build built from the tip of a branch, the retried build will build from the tip of that branch, which may not be the same revision as the original build. * If the original build specified a commit sha or revision ID, the retried build will use the identical source. For builds that specify `StorageSource`: * If the original build pulled source from Google Cloud Storage without specifying the generation of the object, the new build will use the current object, which may be different from the original build source. * If the original build pulled source from Cloud Storage and specified the generation of the object, the new build will attempt to use the same object, which may or may not be available depending on the bucket's lifecycle management settings.
See: projectsBuildsRetry
smart constructor.
Instances
Request Lenses
pbrUploadProtocol :: Lens' ProjectsBuildsRetry (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pbrAccessToken :: Lens' ProjectsBuildsRetry (Maybe Text) Source #
OAuth access token.
pbrUploadType :: Lens' ProjectsBuildsRetry (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pbrPayload :: Lens' ProjectsBuildsRetry RetryBuildRequest Source #
Multipart request metadata.
pbrProjectId :: Lens' ProjectsBuildsRetry Text Source #
ID of the project.
pbrCallback :: Lens' ProjectsBuildsRetry (Maybe Text) Source #
JSONP