Class google::cloud::secretmanager_v1::SecretManagerServiceConnection (2.10.1)

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.

Constructors

~SecretManagerServiceConnection

Functions

options

Returns
Type Description
Options

ListSecrets

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

CreateSecret

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

AddSecretVersion

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

GetSecret

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

UpdateSecret

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

DeleteSecret

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

ListSecretVersions

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

GetSecretVersion

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

AccessSecretVersion

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

DisableSecretVersion

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

EnableSecretVersion

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

DestroySecretVersion

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

SetIamPolicy

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

GetIamPolicy

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

TestIamPermissions

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