use of com.google.cloud.kms.v1.CryptoKeyVersion in project gapic-generator-java by googleapis.
the class AsyncUpdateCryptoKeyVersion method asyncUpdateCryptoKeyVersion.
public static void asyncUpdateCryptoKeyVersion() throws Exception {
// It may require modifications to work in your environment.
try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
UpdateCryptoKeyVersionRequest request = UpdateCryptoKeyVersionRequest.newBuilder().setCryptoKeyVersion(CryptoKeyVersion.newBuilder().build()).setUpdateMask(FieldMask.newBuilder().build()).build();
ApiFuture<CryptoKeyVersion> future = keyManagementServiceClient.updateCryptoKeyVersionCallable().futureCall(request);
// Do something.
CryptoKeyVersion response = future.get();
}
}
use of com.google.cloud.kms.v1.CryptoKeyVersion in project gapic-generator-java by googleapis.
the class SyncUpdateCryptoKeyVersionCryptokeyversionFieldmask method syncUpdateCryptoKeyVersionCryptokeyversionFieldmask.
public static void syncUpdateCryptoKeyVersionCryptokeyversionFieldmask() throws Exception {
// It may require modifications to work in your environment.
try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
CryptoKeyVersion cryptoKeyVersion = CryptoKeyVersion.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
CryptoKeyVersion response = keyManagementServiceClient.updateCryptoKeyVersion(cryptoKeyVersion, updateMask);
}
}
Aggregations