Search in sources :

Example 1 with SetInstanceMachineTypeRequest

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();
}
Also used : Instance(com.google.cloud.notebooks.v1beta1.Instance) SetInstanceMachineTypeRequest(com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest) Test(org.junit.Test)

Aggregations

Instance (com.google.cloud.notebooks.v1beta1.Instance)1 SetInstanceMachineTypeRequest (com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest)1 Test (org.junit.Test)1