Class ApiKeysConnection (2.15.1)

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

To create a concrete instance, see MakeApiKeysConnection().

For mocking, see apikeys_v2_mocks::MockApiKeysConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateKey(google::api::apikeys::v2::CreateKeyRequest const &)

Parameter
Name Description
request google::api::apikeys::v2::CreateKeyRequest const &
Returns
Type Description
future< StatusOr< google::api::apikeys::v2::Key > >

virtual ListKeys(google::api::apikeys::v2::ListKeysRequest)

Parameter
Name Description
request google::api::apikeys::v2::ListKeysRequest
Returns
Type Description
StreamRange< google::api::apikeys::v2::Key >

virtual GetKey(google::api::apikeys::v2::GetKeyRequest const &)

Parameter
Name Description
request google::api::apikeys::v2::GetKeyRequest const &
Returns
Type Description
StatusOr< google::api::apikeys::v2::Key >

virtual GetKeyString(google::api::apikeys::v2::GetKeyStringRequest const &)

Parameter
Name Description
request google::api::apikeys::v2::GetKeyStringRequest const &
Returns
Type Description
StatusOr< google::api::apikeys::v2::GetKeyStringResponse >

virtual UpdateKey(google::api::apikeys::v2::UpdateKeyRequest const &)

Parameter
Name Description
request google::api::apikeys::v2::UpdateKeyRequest const &
Returns
Type Description
future< StatusOr< google::api::apikeys::v2::Key > >

virtual DeleteKey(google::api::apikeys::v2::DeleteKeyRequest const &)

Parameter
Name Description
request google::api::apikeys::v2::DeleteKeyRequest const &
Returns
Type Description
future< StatusOr< google::api::apikeys::v2::Key > >

virtual UndeleteKey(google::api::apikeys::v2::UndeleteKeyRequest const &)

Parameter
Name Description
request google::api::apikeys::v2::UndeleteKeyRequest const &
Returns
Type Description
future< StatusOr< google::api::apikeys::v2::Key > >

virtual LookupKey(google::api::apikeys::v2::LookupKeyRequest const &)

Parameter
Name Description
request google::api::apikeys::v2::LookupKeyRequest const &
Returns
Type Description
StatusOr< google::api::apikeys::v2::LookupKeyResponse >