Search in sources :

Example 1 with DeleteEnvironmentRequest

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();
}
Also used : DeleteEnvironmentRequest(com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest) DeleteInstanceRequest(com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest) AfterClass(org.junit.AfterClass)

Aggregations

DeleteEnvironmentRequest (com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest)1 DeleteInstanceRequest (com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest)1 AfterClass (org.junit.AfterClass)1