Class AutokeyConnection (2.31.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(NoAwaitTag, google::cloud::kms::v1::CreateKeyHandleRequest const &)

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

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

Parameter
Name Description
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)

Parameter
Name Description
request google::cloud::kms::v1::ListKeyHandlesRequest
Returns
Type Description
StreamRange< google::cloud::kms::v1::KeyHandle >

virtual ListLocations(google::cloud::location::ListLocationsRequest)

Parameter
Name Description
request google::cloud::location::ListLocationsRequest
Returns
Type Description
StreamRange< google::cloud::location::Location >

virtual GetLocation(google::cloud::location::GetLocationRequest const &)

Parameter
Name Description
request google::cloud::location::GetLocationRequest const &
Returns
Type Description
StatusOr< google::cloud::location::Location >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >