Class AutokeyConnection (2.26.0)

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

To create a concrete instance, see MakeAutokeyConnection().

For mocking, see kms_v1_mocks::MockAutokeyConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateKeyHandle(google::cloud::kms::v1::CreateKeyHandleRequest const &)

Parameter
Name Description
request google::cloud::kms::v1::CreateKeyHandleRequest const &
Returns
Type Description
future< StatusOr< google::cloud::kms::v1::KeyHandle > >

virtual CreateKeyHandle(ExperimentalTag, NoAwaitTag, google::cloud::kms::v1::CreateKeyHandleRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::kms::v1::CreateKeyHandleRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateKeyHandle(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::kms::v1::KeyHandle > >

virtual GetKeyHandle(google::cloud::kms::v1::GetKeyHandleRequest const &)

Parameter
Name Description
request google::cloud::kms::v1::GetKeyHandleRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::KeyHandle >

virtual ListKeyHandles(google::cloud::kms::v1::ListKeyHandlesRequest const &)

Parameter
Name Description
request google::cloud::kms::v1::ListKeyHandlesRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::ListKeyHandlesResponse >