use of com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest in project java-notebooks by googleapis.
the class ITNotebookServiceClientTest method testSetInstanceLabels.
@Test
public void testSetInstanceLabels() throws ExecutionException, InterruptedException {
SetInstanceLabelsRequest setInstanceLabelsRequest = SetInstanceLabelsRequest.newBuilder().setName(INSTANCE_NAME).putLabels("a", "100").build();
Instance response = client.setInstanceLabelsAsync(setInstanceLabelsRequest).get();
assertEquals(response.getLabelsMap().get("a"), "100");
}
Aggregations