Class CloudBuildConnection (2.14.0)

This interface defines virtual methods for each of the user-facing overload sets in CloudBuildClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type CloudBuildClient.

To create a concrete instance, see MakeCloudBuildConnection().

For mocking, see cloudbuild_v1_mocks::MockCloudBuildConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateBuild(google::devtools::cloudbuild::v1::CreateBuildRequest const &)

Parameter
Name Description
request google::devtools::cloudbuild::v1::CreateBuildRequest const &
Returns
Type Description
future< StatusOr< google::devtools::cloudbuild::v1::Build > >

virtual GetBuild(google::devtools::cloudbuild::v1::GetBuildRequest const &)

Parameter
Name Description
request google::devtools::cloudbuild::v1::GetBuildRequest const &
Returns
Type Description
StatusOr< google::devtools::cloudbuild::v1::Build >

virtual ListBuilds(google::devtools::cloudbuild::v1::ListBuildsRequest)

Parameter
Name Description
request google::devtools::cloudbuild::v1::ListBuildsRequest
Returns
Type Description
StreamRange< google::devtools::cloudbuild::v1::Build >

virtual CancelBuild(google::devtools::cloudbuild::v1::CancelBuildRequest const &)

Parameter
Name Description
request google::devtools::cloudbuild::v1::CancelBuildRequest const &
Returns
Type Description
StatusOr< google::devtools::cloudbuild::v1::Build >

virtual RetryBuild(google::devtools::cloudbuild::v1::RetryBuildRequest const &)

Parameter
Name Description
request google::devtools::cloudbuild::v1::RetryBuildRequest const &
Returns
Type Description
future< StatusOr< google::devtools::cloudbuild::v1::Build > >

virtual ApproveBuild(google::devtools::cloudbuild::v1::ApproveBuildRequest const &)

Parameter
Name Description
request google::devtools::cloudbuild::v1::ApproveBuildRequest const &
Returns
Type Description
future< StatusOr< google::devtools::cloudbuild::v1::Build > >

virtual CreateBuildTrigger(google::devtools::cloudbuild::v1::CreateBuildTriggerRequest const &)

Parameter
Name Description
request google::devtools::cloudbuild::v1::CreateBuildTriggerRequest const &
Returns
Type Description
StatusOr< google::devtools::cloudbuild::v1::BuildTrigger >

virtual GetBuildTrigger(google::devtools::cloudbuild::v1::GetBuildTriggerRequest const &)

Parameter
Name Description
request google::devtools::cloudbuild::v1::GetBuildTriggerRequest const &
Returns
Type Description
StatusOr< google::devtools::cloudbuild::v1::BuildTrigger >

virtual ListBuildTriggers(google::devtools::cloudbuild::v1::ListBuildTriggersRequest)

Parameter
Name Description
request google::devtools::cloudbuild::v1::ListBuildTriggersRequest
Returns
Type Description
StreamRange< google::devtools::cloudbuild::v1::BuildTrigger >

virtual DeleteBuildTrigger(google::devtools::cloudbuild::v1::DeleteBuildTriggerRequest const &)

Parameter
Name Description
request google::devtools::cloudbuild::v1::DeleteBuildTriggerRequest const &
Returns
Type Description
Status

virtual UpdateBuildTrigger(google::devtools::cloudbuild::v1::UpdateBuildTriggerRequest const &)

Parameter
Name Description
request google::devtools::cloudbuild::v1::UpdateBuildTriggerRequest const &
Returns
Type Description
StatusOr< google::devtools::cloudbuild::v1::BuildTrigger >

virtual RunBuildTrigger(google::devtools::cloudbuild::v1::RunBuildTriggerRequest const &)

Parameter
Name Description
request google::devtools::cloudbuild::v1::RunBuildTriggerRequest const &
Returns
Type Description
future< StatusOr< google::devtools::cloudbuild::v1::Build > >

virtual ReceiveTriggerWebhook(google::devtools::cloudbuild::v1::ReceiveTriggerWebhookRequest const &)

Parameter
Name Description
request google::devtools::cloudbuild::v1::ReceiveTriggerWebhookRequest const &
Returns
Type Description
StatusOr< google::devtools::cloudbuild::v1::ReceiveTriggerWebhookResponse >

virtual CreateWorkerPool(google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const &)

Parameter
Name Description
request google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const &
Returns
Type Description
future< StatusOr< google::devtools::cloudbuild::v1::WorkerPool > >

virtual GetWorkerPool(google::devtools::cloudbuild::v1::GetWorkerPoolRequest const &)

Parameter
Name Description
request google::devtools::cloudbuild::v1::GetWorkerPoolRequest const &
Returns
Type Description
StatusOr< google::devtools::cloudbuild::v1::WorkerPool >

virtual DeleteWorkerPool(google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const &)

Parameter
Name Description
request google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const &
Returns
Type Description
future< StatusOr< google::devtools::cloudbuild::v1::DeleteWorkerPoolOperationMetadata > >

virtual UpdateWorkerPool(google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const &)

Parameter
Name Description
request google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const &
Returns
Type Description
future< StatusOr< google::devtools::cloudbuild::v1::WorkerPool > >

virtual ListWorkerPools(google::devtools::cloudbuild::v1::ListWorkerPoolsRequest)

Parameter
Name Description
request google::devtools::cloudbuild::v1::ListWorkerPoolsRequest
Returns
Type Description
StreamRange< google::devtools::cloudbuild::v1::WorkerPool >