graph_rs_sdk/planner/buckets/
request.rs1use crate::api_default_imports::*;
4use crate::planner::*;
5
6api_client!(
7 BucketsApiClient,
8 BucketsIdApiClient,
9 ResourceIdentity::Buckets
10);
11
12impl BucketsApiClient {
13 post!(
14 doc: "Create plannerBucket",
15 name: create_buckets,
16 path: "/buckets",
17 body: true
18 );
19 get!(
20 doc: "List buckets",
21 name: list_buckets,
22 path: "/buckets"
23 );
24 get!(
25 doc: "Get the number of the resource",
26 name: count,
27 path: "/buckets/$count"
28 );
29}
30
31impl BucketsIdApiClient {
32 api_client_link_id!(task, PlannerTasksIdApiClient);
33 api_client_link!(tasks, PlannerTasksApiClient);
34
35 delete!(
36 doc: "Delete navigation property buckets for planner",
37 name: delete_buckets,
38 path: "/buckets/{{RID}}"
39 );
40 get!(
41 doc: "Get buckets from planner",
42 name: get_buckets,
43 path: "/buckets/{{RID}}"
44 );
45 patch!(
46 doc: "Update the navigation property buckets in planner",
47 name: update_buckets,
48 path: "/buckets/{{RID}}",
49 body: true
50 );
51}