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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// GENERATED CODE

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

resource_api_client!(PlansApiClient, PlansIdApiClient, ResourceIdentity::Plans);

impl PlansApiClient {
    post!(
        doc: "Create plannerPlan",
        name: create_plans,
        path: "/plans",
        body: true
    );
    get!(
        doc: "List plans",
        name: list_plans,
        path: "/plans"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_plans_count,
        path: "/plans/$count"
    );
}

impl PlansIdApiClient {
    api_client_link_id!(task, PlannerTasksIdApiClient);
    api_client_link!(plans, PlansApiClient);
    api_client_link_id!(plan, PlansIdApiClient);
    api_client_link!(tasks, PlannerTasksApiClient);

    delete!(
        doc: "Delete navigation property plans for planner",
        name: delete_plans,
        path: "/plans/{{RID}}"
    );
    get!(
        doc: "Get plans from planner",
        name: get_plans,
        path: "/plans/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property plans in planner",
        name: update_plans,
        path: "/plans/{{RID}}",
        body: true
    );
    delete!(
        doc: "Delete navigation property details for planner",
        name: delete_details,
        path: "/plans/{{RID}}/details"
    );
    get!(
        doc: "Get plannerPlanDetails",
        name: get_details,
        path: "/plans/{{RID}}/details"
    );
    patch!(
        doc: "Update the navigation property details in planner",
        name: update_details,
        path: "/plans/{{RID}}/details",
        body: true
    );
}