Class SecretManagerServiceConnection (2.20.0)

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

To create a concrete instance, see MakeSecretManagerServiceConnection().

For mocking, see secretmanager_v1_mocks::MockSecretManagerServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListSecrets(google::cloud::secretmanager::v1::ListSecretsRequest)

Parameter
Name Description
request google::cloud::secretmanager::v1::ListSecretsRequest
Returns
Type Description
StreamRange< google::cloud::secretmanager::v1::Secret >

virtual CreateSecret(google::cloud::secretmanager::v1::CreateSecretRequest const &)

Parameter
Name Description
request google::cloud::secretmanager::v1::CreateSecretRequest const &
Returns
Type Description
StatusOr< google::cloud::secretmanager::v1::Secret >

virtual AddSecretVersion(google::cloud::secretmanager::v1::AddSecretVersionRequest const &)

Parameter
Name Description
request google::cloud::secretmanager::v1::AddSecretVersionRequest const &
Returns
Type Description
StatusOr< google::cloud::secretmanager::v1::SecretVersion >

virtual GetSecret(google::cloud::secretmanager::v1::GetSecretRequest const &)

Parameter
Name Description
request google::cloud::secretmanager::v1::GetSecretRequest const &
Returns
Type Description
StatusOr< google::cloud::secretmanager::v1::Secret >

virtual UpdateSecret(google::cloud::secretmanager::v1::UpdateSecretRequest const &)

Parameter
Name Description
request google::cloud::secretmanager::v1::UpdateSecretRequest const &
Returns
Type Description
StatusOr< google::cloud::secretmanager::v1::Secret >

virtual DeleteSecret(google::cloud::secretmanager::v1::DeleteSecretRequest const &)

Parameter
Name Description
request google::cloud::secretmanager::v1::DeleteSecretRequest const &
Returns
Type Description
Status

virtual ListSecretVersions(google::cloud::secretmanager::v1::ListSecretVersionsRequest)

Parameter
Name Description
request google::cloud::secretmanager::v1::ListSecretVersionsRequest
Returns
Type Description
StreamRange< google::cloud::secretmanager::v1::SecretVersion >

virtual GetSecretVersion(google::cloud::secretmanager::v1::GetSecretVersionRequest const &)

Parameter
Name Description
request google::cloud::secretmanager::v1::GetSecretVersionRequest const &
Returns
Type Description
StatusOr< google::cloud::secretmanager::v1::SecretVersion >

virtual AccessSecretVersion(google::cloud::secretmanager::v1::AccessSecretVersionRequest const &)

Parameter
Name Description
request google::cloud::secretmanager::v1::AccessSecretVersionRequest const &
Returns
Type Description
StatusOr< google::cloud::secretmanager::v1::AccessSecretVersionResponse >

virtual DisableSecretVersion(google::cloud::secretmanager::v1::DisableSecretVersionRequest const &)

Parameter
Name Description
request google::cloud::secretmanager::v1::DisableSecretVersionRequest const &
Returns
Type Description
StatusOr< google::cloud::secretmanager::v1::SecretVersion >

virtual EnableSecretVersion(google::cloud::secretmanager::v1::EnableSecretVersionRequest const &)

Parameter
Name Description
request google::cloud::secretmanager::v1::EnableSecretVersionRequest const &
Returns
Type Description
StatusOr< google::cloud::secretmanager::v1::SecretVersion >

virtual DestroySecretVersion(google::cloud::secretmanager::v1::DestroySecretVersionRequest const &)

Parameter
Name Description
request google::cloud::secretmanager::v1::DestroySecretVersionRequest const &
Returns
Type Description
StatusOr< google::cloud::secretmanager::v1::SecretVersion >

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 >