use of com.google.logging.v2.UndeleteBucketRequest in project gapic-generator-java by googleapis.
the class SyncUndeleteBucket method syncUndeleteBucket.
public static void syncUndeleteBucket() throws Exception {
// It may require modifications to work in your environment.
try (ConfigClient configClient = ConfigClient.create()) {
UndeleteBucketRequest request = UndeleteBucketRequest.newBuilder().setName(LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]").toString()).build();
configClient.undeleteBucket(request);
}
}
Aggregations