use of com.google.cloud.kms.v1.CryptoKeyVersionName in project gapic-generator-java by googleapis.
the class SyncDestroyCryptoKeyVersionCryptokeyversionname method syncDestroyCryptoKeyVersionCryptokeyversionname.
public static void syncDestroyCryptoKeyVersionCryptokeyversionname() throws Exception {
// It may require modifications to work in your environment.
try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
CryptoKeyVersion response = keyManagementServiceClient.destroyCryptoKeyVersion(name);
}
}
use of com.google.cloud.kms.v1.CryptoKeyVersionName in project gapic-generator-java by googleapis.
the class SyncGetCryptoKeyVersionCryptokeyversionname method syncGetCryptoKeyVersionCryptokeyversionname.
public static void syncGetCryptoKeyVersionCryptokeyversionname() throws Exception {
// It may require modifications to work in your environment.
try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
CryptoKeyVersion response = keyManagementServiceClient.getCryptoKeyVersion(name);
}
}
Aggregations