use of com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest in project java-notebooks by googleapis.
the class ITNotebookServiceClientTest method testSetInstanceMachineType.
@Test
public void testSetInstanceMachineType() throws ExecutionException, InterruptedException {
this.stopInstance();
SetInstanceMachineTypeRequest request = SetInstanceMachineTypeRequest.newBuilder().setName(INSTANCE_NAME).setMachineType(MACHINE_TYPE_B).build();
Instance response = client.setInstanceMachineTypeAsync(request).get();
assertTrue(response.getMachineType().endsWith(MACHINE_TYPE_B));
this.startInstance();
}
Aggregations