gogol-containerbuilder-0.5.0: Google Cloud Build SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Cloudbuild.Projects.Builds.Retry

Contents

Description

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

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

projectsBuildsRetry Source #

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
Eq ProjectsBuildsRetry Source # 
Instance details

Defined in Network.Google.Resource.Cloudbuild.Projects.Builds.Retry

Data ProjectsBuildsRetry Source # 
Instance details

Defined in Network.Google.Resource.Cloudbuild.Projects.Builds.Retry

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsBuildsRetry -> c ProjectsBuildsRetry #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsBuildsRetry #

toConstr :: ProjectsBuildsRetry -> Constr #

dataTypeOf :: ProjectsBuildsRetry -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsBuildsRetry) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsBuildsRetry) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsBuildsRetry -> ProjectsBuildsRetry #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsBuildsRetry -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsBuildsRetry -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsBuildsRetry -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsBuildsRetry -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsBuildsRetry -> m ProjectsBuildsRetry #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsBuildsRetry -> m ProjectsBuildsRetry #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsBuildsRetry -> m ProjectsBuildsRetry #

Show ProjectsBuildsRetry Source # 
Instance details

Defined in Network.Google.Resource.Cloudbuild.Projects.Builds.Retry

Generic ProjectsBuildsRetry Source # 
Instance details

Defined in Network.Google.Resource.Cloudbuild.Projects.Builds.Retry

Associated Types

type Rep ProjectsBuildsRetry :: Type -> Type #

GoogleRequest ProjectsBuildsRetry Source # 
Instance details

Defined in Network.Google.Resource.Cloudbuild.Projects.Builds.Retry

Associated Types

type Rs ProjectsBuildsRetry :: Type #

type Scopes ProjectsBuildsRetry :: [Symbol] #

type Rep ProjectsBuildsRetry Source # 
Instance details

Defined in Network.Google.Resource.Cloudbuild.Projects.Builds.Retry

type Rep ProjectsBuildsRetry = D1 (MetaData "ProjectsBuildsRetry" "Network.Google.Resource.Cloudbuild.Projects.Builds.Retry" "gogol-containerbuilder-0.5.0-Ikoix1weodFLeNf9BNnSfO" False) (C1 (MetaCons "ProjectsBuildsRetry'" PrefixI True) (((S1 (MetaSel (Just "_pbrXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_pbrUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pbrAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pbrUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pbrPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RetryBuildRequest) :*: S1 (MetaSel (Just "_pbrId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_pbrProjectId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pbrCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsBuildsRetry Source # 
Instance details

Defined in Network.Google.Resource.Cloudbuild.Projects.Builds.Retry

type Scopes ProjectsBuildsRetry = "https://www.googleapis.com/auth/cloud-platform" ': ([] :: [Symbol])
type Rs ProjectsBuildsRetry Source # 
Instance details

Defined in Network.Google.Resource.Cloudbuild.Projects.Builds.Retry

Request Lenses

pbrUploadProtocol :: Lens' ProjectsBuildsRetry (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

pbrUploadType :: Lens' ProjectsBuildsRetry (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

pbrId :: Lens' ProjectsBuildsRetry Text Source #

Build ID of the original build.