use of com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest in project java-notebooks by googleapis.
the class ITNotebookServiceClientTest method tearDown.
@AfterClass
public static void tearDown() throws ExecutionException, InterruptedException {
// Delete Test Environment Instance
DeleteEnvironmentRequest deleteEnvironmentRequest = DeleteEnvironmentRequest.newBuilder().setName(ENVIRONMENT_NAME).build();
client.deleteEnvironmentAsync(deleteEnvironmentRequest).get();
// Delete Test Notebook Instance
DeleteInstanceRequest deleteInstanceRequest = DeleteInstanceRequest.newBuilder().setName(INSTANCE_NAME).build();
client.deleteInstanceAsync(deleteInstanceRequest).get();
client.close();
}
Aggregations