Class ConfigConnection (2.19.0)

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

To create a concrete instance, see MakeConfigConnection().

For mocking, see config_v1_mocks::MockConfigConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ListDeployments(google::cloud::config::v1::ListDeploymentsRequest)

Parameter
NameDescription
request google::cloud::config::v1::ListDeploymentsRequest
Returns
TypeDescription
StreamRange< google::cloud::config::v1::Deployment >

virtual GetDeployment(google::cloud::config::v1::GetDeploymentRequest const &)

Parameter
NameDescription
request google::cloud::config::v1::GetDeploymentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::config::v1::Deployment >

virtual CreateDeployment(google::cloud::config::v1::CreateDeploymentRequest const &)

Parameter
NameDescription
request google::cloud::config::v1::CreateDeploymentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::config::v1::Deployment > >

virtual UpdateDeployment(google::cloud::config::v1::UpdateDeploymentRequest const &)

Parameter
NameDescription
request google::cloud::config::v1::UpdateDeploymentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::config::v1::Deployment > >

virtual DeleteDeployment(google::cloud::config::v1::DeleteDeploymentRequest const &)

Parameter
NameDescription
request google::cloud::config::v1::DeleteDeploymentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::config::v1::Deployment > >

virtual ListRevisions(google::cloud::config::v1::ListRevisionsRequest)

Parameter
NameDescription
request google::cloud::config::v1::ListRevisionsRequest
Returns
TypeDescription
StreamRange< google::cloud::config::v1::Revision >

virtual GetRevision(google::cloud::config::v1::GetRevisionRequest const &)

Parameter
NameDescription
request google::cloud::config::v1::GetRevisionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::config::v1::Revision >

virtual GetResource(google::cloud::config::v1::GetResourceRequest const &)

Parameter
NameDescription
request google::cloud::config::v1::GetResourceRequest const &
Returns
TypeDescription
StatusOr< google::cloud::config::v1::Resource >

virtual ListResources(google::cloud::config::v1::ListResourcesRequest)

Parameter
NameDescription
request google::cloud::config::v1::ListResourcesRequest
Returns
TypeDescription
StreamRange< google::cloud::config::v1::Resource >

virtual ExportDeploymentStatefile(google::cloud::config::v1::ExportDeploymentStatefileRequest const &)

Parameter
NameDescription
request google::cloud::config::v1::ExportDeploymentStatefileRequest const &
Returns
TypeDescription
StatusOr< google::cloud::config::v1::Statefile >

virtual ExportRevisionStatefile(google::cloud::config::v1::ExportRevisionStatefileRequest const &)

Parameter
NameDescription
request google::cloud::config::v1::ExportRevisionStatefileRequest const &
Returns
TypeDescription
StatusOr< google::cloud::config::v1::Statefile >

virtual ImportStatefile(google::cloud::config::v1::ImportStatefileRequest const &)

Parameter
NameDescription
request google::cloud::config::v1::ImportStatefileRequest const &
Returns
TypeDescription
StatusOr< google::cloud::config::v1::Statefile >

virtual DeleteStatefile(google::cloud::config::v1::DeleteStatefileRequest const &)

Parameter
NameDescription
request google::cloud::config::v1::DeleteStatefileRequest const &
Returns
TypeDescription
Status

virtual LockDeployment(google::cloud::config::v1::LockDeploymentRequest const &)

Parameter
NameDescription
request google::cloud::config::v1::LockDeploymentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::config::v1::Deployment > >

virtual UnlockDeployment(google::cloud::config::v1::UnlockDeploymentRequest const &)

Parameter
NameDescription
request google::cloud::config::v1::UnlockDeploymentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::config::v1::Deployment > >

virtual ExportLockInfo(google::cloud::config::v1::ExportLockInfoRequest const &)

Parameter
NameDescription
request google::cloud::config::v1::ExportLockInfoRequest const &
Returns
TypeDescription
StatusOr< google::cloud::config::v1::LockInfo >