Class KeyManagementServiceConnection (2.21.0)

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.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ListKeyRings(google::cloud::kms::v1::ListKeyRingsRequest)

Parameter
NameDescription
request google::cloud::kms::v1::ListKeyRingsRequest
Returns
TypeDescription
StreamRange< google::cloud::kms::v1::KeyRing >

virtual ListCryptoKeys(google::cloud::kms::v1::ListCryptoKeysRequest)

Parameter
NameDescription
request google::cloud::kms::v1::ListCryptoKeysRequest
Returns
TypeDescription
StreamRange< google::cloud::kms::v1::CryptoKey >

virtual ListCryptoKeyVersions(google::cloud::kms::v1::ListCryptoKeyVersionsRequest)

Parameter
NameDescription
request google::cloud::kms::v1::ListCryptoKeyVersionsRequest
Returns
TypeDescription
StreamRange< google::cloud::kms::v1::CryptoKeyVersion >

virtual ListImportJobs(google::cloud::kms::v1::ListImportJobsRequest)

Parameter
NameDescription
request google::cloud::kms::v1::ListImportJobsRequest
Returns
TypeDescription
StreamRange< google::cloud::kms::v1::ImportJob >

virtual GetKeyRing(google::cloud::kms::v1::GetKeyRingRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::GetKeyRingRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::KeyRing >

virtual GetCryptoKey(google::cloud::kms::v1::GetCryptoKeyRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::GetCryptoKeyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::CryptoKey >

virtual GetCryptoKeyVersion(google::cloud::kms::v1::GetCryptoKeyVersionRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::GetCryptoKeyVersionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::CryptoKeyVersion >

virtual GetPublicKey(google::cloud::kms::v1::GetPublicKeyRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::GetPublicKeyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::PublicKey >

virtual GetImportJob(google::cloud::kms::v1::GetImportJobRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::GetImportJobRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::ImportJob >

virtual CreateKeyRing(google::cloud::kms::v1::CreateKeyRingRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::CreateKeyRingRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::KeyRing >

virtual CreateCryptoKey(google::cloud::kms::v1::CreateCryptoKeyRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::CreateCryptoKeyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::CryptoKey >

virtual CreateCryptoKeyVersion(google::cloud::kms::v1::CreateCryptoKeyVersionRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::CreateCryptoKeyVersionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::CryptoKeyVersion >

virtual ImportCryptoKeyVersion(google::cloud::kms::v1::ImportCryptoKeyVersionRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::ImportCryptoKeyVersionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::CryptoKeyVersion >

virtual CreateImportJob(google::cloud::kms::v1::CreateImportJobRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::CreateImportJobRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::ImportJob >

virtual UpdateCryptoKey(google::cloud::kms::v1::UpdateCryptoKeyRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::UpdateCryptoKeyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::CryptoKey >

virtual UpdateCryptoKeyVersion(google::cloud::kms::v1::UpdateCryptoKeyVersionRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::UpdateCryptoKeyVersionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::CryptoKeyVersion >

virtual UpdateCryptoKeyPrimaryVersion(google::cloud::kms::v1::UpdateCryptoKeyPrimaryVersionRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::UpdateCryptoKeyPrimaryVersionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::CryptoKey >

virtual DestroyCryptoKeyVersion(google::cloud::kms::v1::DestroyCryptoKeyVersionRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::DestroyCryptoKeyVersionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::CryptoKeyVersion >

virtual RestoreCryptoKeyVersion(google::cloud::kms::v1::RestoreCryptoKeyVersionRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::RestoreCryptoKeyVersionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::CryptoKeyVersion >

virtual Encrypt(google::cloud::kms::v1::EncryptRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::EncryptRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::EncryptResponse >

virtual Decrypt(google::cloud::kms::v1::DecryptRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::DecryptRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::DecryptResponse >

virtual RawEncrypt(google::cloud::kms::v1::RawEncryptRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::RawEncryptRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::RawEncryptResponse >

virtual RawDecrypt(google::cloud::kms::v1::RawDecryptRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::RawDecryptRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::RawDecryptResponse >

virtual AsymmetricSign(google::cloud::kms::v1::AsymmetricSignRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::AsymmetricSignRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::AsymmetricSignResponse >

virtual AsymmetricDecrypt(google::cloud::kms::v1::AsymmetricDecryptRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::AsymmetricDecryptRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::AsymmetricDecryptResponse >

virtual MacSign(google::cloud::kms::v1::MacSignRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::MacSignRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::MacSignResponse >

virtual MacVerify(google::cloud::kms::v1::MacVerifyRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::MacVerifyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::MacVerifyResponse >

virtual GenerateRandomBytes(google::cloud::kms::v1::GenerateRandomBytesRequest const &)

Parameter
NameDescription
request google::cloud::kms::v1::GenerateRandomBytesRequest const &
Returns
TypeDescription
StatusOr< google::cloud::kms::v1::GenerateRandomBytesResponse >