Class BinauthzManagementServiceV1Connection (2.29.0)

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

To create a concrete instance, see MakeBinauthzManagementServiceV1Connection().

For mocking, see binaryauthorization_v1_mocks::MockBinauthzManagementServiceV1Connection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetPolicy(google::cloud::binaryauthorization::v1::GetPolicyRequest const &)

Parameter
Name Description
request google::cloud::binaryauthorization::v1::GetPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::binaryauthorization::v1::Policy >

virtual UpdatePolicy(google::cloud::binaryauthorization::v1::UpdatePolicyRequest const &)

Parameter
Name Description
request google::cloud::binaryauthorization::v1::UpdatePolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::binaryauthorization::v1::Policy >

virtual CreateAttestor(google::cloud::binaryauthorization::v1::CreateAttestorRequest const &)

Parameter
Name Description
request google::cloud::binaryauthorization::v1::CreateAttestorRequest const &
Returns
Type Description
StatusOr< google::cloud::binaryauthorization::v1::Attestor >

virtual GetAttestor(google::cloud::binaryauthorization::v1::GetAttestorRequest const &)

Parameter
Name Description
request google::cloud::binaryauthorization::v1::GetAttestorRequest const &
Returns
Type Description
StatusOr< google::cloud::binaryauthorization::v1::Attestor >

virtual UpdateAttestor(google::cloud::binaryauthorization::v1::UpdateAttestorRequest const &)

Parameter
Name Description
request google::cloud::binaryauthorization::v1::UpdateAttestorRequest const &
Returns
Type Description
StatusOr< google::cloud::binaryauthorization::v1::Attestor >

virtual ListAttestors(google::cloud::binaryauthorization::v1::ListAttestorsRequest)

Parameter
Name Description
request google::cloud::binaryauthorization::v1::ListAttestorsRequest
Returns
Type Description
StreamRange< google::cloud::binaryauthorization::v1::Attestor >

virtual DeleteAttestor(google::cloud::binaryauthorization::v1::DeleteAttestorRequest const &)

Parameter
Name Description
request google::cloud::binaryauthorization::v1::DeleteAttestorRequest const &
Returns
Type Description
Status