Class google::cloud::kms_v1::KeyManagementServiceConnection (2.10.1)

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

To create a concrete instance, see MakeKeyManagementServiceConnection().

For mocking, see kms_v1_mocks::MockKeyManagementServiceConnection.

Constructors

~KeyManagementServiceConnection

Functions

options

Returns
Type Description
Options

ListKeyRings

Parameter
Name Description
request google::cloud::kms::v1::ListKeyRingsRequest
Returns
Type Description
StreamRange< google::cloud::kms::v1::KeyRing >

ListCryptoKeys

Parameter
Name Description
request google::cloud::kms::v1::ListCryptoKeysRequest
Returns
Type Description
StreamRange< google::cloud::kms::v1::CryptoKey >

ListCryptoKeyVersions

Parameter
Name Description
request google::cloud::kms::v1::ListCryptoKeyVersionsRequest
Returns
Type Description
StreamRange< google::cloud::kms::v1::CryptoKeyVersion >

ListImportJobs

Parameter
Name Description
request google::cloud::kms::v1::ListImportJobsRequest
Returns
Type Description
StreamRange< google::cloud::kms::v1::ImportJob >

GetKeyRing

Parameter
Name Description
request google::cloud::kms::v1::GetKeyRingRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::KeyRing >

GetCryptoKey

Parameter
Name Description
request google::cloud::kms::v1::GetCryptoKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::CryptoKey >

GetCryptoKeyVersion

Parameter
Name Description
request google::cloud::kms::v1::GetCryptoKeyVersionRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::CryptoKeyVersion >

GetPublicKey

Parameter
Name Description
request google::cloud::kms::v1::GetPublicKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::PublicKey >

GetImportJob

Parameter
Name Description
request google::cloud::kms::v1::GetImportJobRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::ImportJob >

CreateKeyRing

Parameter
Name Description
request google::cloud::kms::v1::CreateKeyRingRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::KeyRing >

CreateCryptoKey

Parameter
Name Description
request google::cloud::kms::v1::CreateCryptoKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::CryptoKey >

CreateCryptoKeyVersion

Parameter
Name Description
request google::cloud::kms::v1::CreateCryptoKeyVersionRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::CryptoKeyVersion >

ImportCryptoKeyVersion

Parameter
Name Description
request google::cloud::kms::v1::ImportCryptoKeyVersionRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::CryptoKeyVersion >

CreateImportJob

Parameter
Name Description
request google::cloud::kms::v1::CreateImportJobRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::ImportJob >

UpdateCryptoKey

Parameter
Name Description
request google::cloud::kms::v1::UpdateCryptoKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::CryptoKey >

UpdateCryptoKeyVersion

Parameter
Name Description
request google::cloud::kms::v1::UpdateCryptoKeyVersionRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::CryptoKeyVersion >

UpdateCryptoKeyPrimaryVersion

Parameter
Name Description
request google::cloud::kms::v1::UpdateCryptoKeyPrimaryVersionRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::CryptoKey >

DestroyCryptoKeyVersion

Parameter
Name Description
request google::cloud::kms::v1::DestroyCryptoKeyVersionRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::CryptoKeyVersion >

RestoreCryptoKeyVersion

Parameter
Name Description
request google::cloud::kms::v1::RestoreCryptoKeyVersionRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::CryptoKeyVersion >

Encrypt

Parameter
Name Description
request google::cloud::kms::v1::EncryptRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::EncryptResponse >

Decrypt

Parameter
Name Description
request google::cloud::kms::v1::DecryptRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::DecryptResponse >

AsymmetricSign

Parameter
Name Description
request google::cloud::kms::v1::AsymmetricSignRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::AsymmetricSignResponse >

AsymmetricDecrypt

Parameter
Name Description
request google::cloud::kms::v1::AsymmetricDecryptRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::AsymmetricDecryptResponse >

MacSign

Parameter
Name Description
request google::cloud::kms::v1::MacSignRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::MacSignResponse >

MacVerify

Parameter
Name Description
request google::cloud::kms::v1::MacVerifyRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::MacVerifyResponse >

GenerateRandomBytes

Parameter
Name Description
request google::cloud::kms::v1::GenerateRandomBytesRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::v1::GenerateRandomBytesResponse >