1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// GENERATED CODE

use crate::api_default_imports::*;
use crate::planner::*;

resource_api_client!(
    BucketsApiClient,
    BucketsIdApiClient,
    ResourceIdentity::Buckets
);

impl BucketsApiClient {
    post!(
        doc: "Create plannerBucket",
        name: create_buckets,
        path: "/buckets",
        body: true
    );
    get!(
        doc: "List buckets",
        name: list_buckets,
        path: "/buckets"
    );
    get!(
        doc: "Get the number of the resource",
        name: count,
        path: "/buckets/$count"
    );
}

impl BucketsIdApiClient {
    api_client_link_id!(task, PlannerTasksIdApiClient);
    api_client_link!(tasks, PlannerTasksApiClient);

    delete!(
        doc: "Delete navigation property buckets for planner",
        name: delete_buckets,
        path: "/buckets/{{RID}}"
    );
    get!(
        doc: "Get buckets from planner",
        name: get_buckets,
        path: "/buckets/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property buckets in planner",
        name: update_buckets,
        path: "/buckets/{{RID}}",
        body: true
    );
}