Search in sources :

Example 6 with PlannerBucketRequest

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();
}
Also used : PlannerBucket(com.microsoft.graph.models.PlannerBucket) PlannerBucketRequest(com.microsoft.graph.requests.PlannerBucketRequest) Test(org.junit.jupiter.api.Test)

Aggregations

PlannerBucket (com.microsoft.graph.models.PlannerBucket)6 PlannerBucketRequest (com.microsoft.graph.requests.PlannerBucketRequest)6 Test (org.junit.jupiter.api.Test)4 PlannerTask (com.microsoft.graph.models.PlannerTask)2 PlannerTaskRequest (com.microsoft.graph.requests.PlannerTaskRequest)2 AfterEach (org.junit.jupiter.api.AfterEach)2