Class SecretManagerServiceConnection (2.21.0-rc)

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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::secretmanager::v1::ListSecretsRequest
Returns
TypeDescription
StreamRange< google::cloud::secretmanager::v1::Secret >

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

Parameter
NameDescription
request google::cloud::secretmanager::v1::CreateSecretRequest const &
Returns
TypeDescription
StatusOr< google::cloud::secretmanager::v1::Secret >

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

Parameter
NameDescription
request google::cloud::secretmanager::v1::AddSecretVersionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::secretmanager::v1::SecretVersion >

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

Parameter
NameDescription
request google::cloud::secretmanager::v1::GetSecretRequest const &
Returns
TypeDescription
StatusOr< google::cloud::secretmanager::v1::Secret >

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

Parameter
NameDescription
request google::cloud::secretmanager::v1::UpdateSecretRequest const &
Returns
TypeDescription
StatusOr< google::cloud::secretmanager::v1::Secret >

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

Parameter
NameDescription
request google::cloud::secretmanager::v1::DeleteSecretRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::secretmanager::v1::ListSecretVersionsRequest
Returns
TypeDescription
StreamRange< google::cloud::secretmanager::v1::SecretVersion >

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

Parameter
NameDescription
request google::cloud::secretmanager::v1::GetSecretVersionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::secretmanager::v1::SecretVersion >

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

Parameter
NameDescription
request google::cloud::secretmanager::v1::AccessSecretVersionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::secretmanager::v1::AccessSecretVersionResponse >

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

Parameter
NameDescription
request google::cloud::secretmanager::v1::DisableSecretVersionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::secretmanager::v1::SecretVersion >

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

Parameter
NameDescription
request google::cloud::secretmanager::v1::EnableSecretVersionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::secretmanager::v1::SecretVersion >

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

Parameter
NameDescription
request google::cloud::secretmanager::v1::DestroySecretVersionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::secretmanager::v1::SecretVersion >

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

Parameter
NameDescription
request google::iam::v1::SetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

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

Parameter
NameDescription
request google::iam::v1::GetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

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

Parameter
NameDescription
request google::iam::v1::TestIamPermissionsRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::TestIamPermissionsResponse >