use of com.microsoft.graph.requests.PlannerBucketRequest in project msgraph-beta-sdk-java by microsoftgraph.
the class PlannerTests method testDeleteBucket.
@Test
public void testDeleteBucket() {
PlannerBucket newBucket = new PlannerBucket();
newBucket.name = "Delete Me";
newBucket.planId = planId;
PlannerBucket createdBucket = testBase.graphClient.planner().buckets().buildRequest().post(newBucket);
PlannerBucketRequest req = testBase.graphClient.planner().buckets(createdBucket.id).buildRequest();
req.addHeader("If-Match", createdBucket.additionalDataManager().get("@odata.etag").getAsString());
req.delete();
}
Aggregations