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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// GENERATED CODE

use crate::api_default_imports::*;
use crate::users::*;

resource_api_client!(OnenoteApiClient, ResourceIdentity::Onenote);

impl OnenoteApiClient {
    api_client_link!(sections, OnenoteSectionsApiClient);
    api_client_link!(section_groups, OnenoteSectionGroupsApiClient);
    api_client_link_id!(section_group, OnenoteSectionGroupsIdApiClient);
    api_client_link!(pages, OnenotePagesApiClient);
    api_client_link!(notebooks, OnenoteNotebooksApiClient);
    api_client_link_id!(notebook, OnenoteNotebooksIdApiClient);
    api_client_link_id!(section, OnenoteSectionsIdApiClient);
    api_client_link_id!(page, OnenotePagesIdApiClient);

    delete!(
        doc: "Delete navigation property onenote for users",
        name: delete_onenote,
        path: "/onenote"
    );
    get!(
        doc: "Get onenote from users",
        name: get_onenote,
        path: "/onenote"
    );
    patch!(
        doc: "Update the navigation property onenote in users",
        name: update_onenote,
        path: "/onenote",
        body: true
    );
    post!(
        doc: "Create new navigation property to operations for users",
        name: create_operations,
        path: "/onenote/operations",
        body: true
    );
    get!(
        doc: "Get operations from users",
        name: list_operations,
        path: "/onenote/operations"
    );
    get!(
        doc: "Get the number of the resource",
        name: operations_adfa,
        path: "/onenote/operations/$count"
    );
    delete!(
        doc: "Delete navigation property operations for users",
        name: delete_operations,
        path: "/onenote/operations/{{id}}",
        params: onenote_operation_id
    );
    get!(
        doc: "Get operations from users",
        name: get_operations,
        path: "/onenote/operations/{{id}}",
        params: onenote_operation_id
    );
    patch!(
        doc: "Update the navigation property operations in users",
        name: update_operations,
        path: "/onenote/operations/{{id}}",
        body: true,
        params: onenote_operation_id
    );
    post!(
        doc: "Create new navigation property to resources for users",
        name: create_resources,
        path: "/onenote/resources",
        body: true
    );
    get!(
        doc: "Get resources from users",
        name: list_resources,
        path: "/onenote/resources"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_resources_count,
        path: "/onenote/resources/$count"
    );
    delete!(
        doc: "Delete navigation property resources for users",
        name: delete_resources,
        path: "/onenote/resources/{{id}}",
        params: onenote_resource_id
    );
    get!(
        doc: "Get resources from users",
        name: get_resources,
        path: "/onenote/resources/{{id}}",
        params: onenote_resource_id
    );
    patch!(
        doc: "Update the navigation property resources in users",
        name: update_resources,
        path: "/onenote/resources/{{id}}",
        body: true,
        params: onenote_resource_id
    );
    get!(
        doc: "Get content for the navigation property resources from users",
        name: get_resources_content,
        path: "/onenote/resources/{{id}}/content",
        params: onenote_resource_id
    );
    put!(
        doc: "Update content for the navigation property resources in users",
        name: update_resources_content,
        path: "/onenote/resources/{{id}}/content",
        body: true,
        params: onenote_resource_id
    );
}