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
// GENERATED CODE

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

resource_api_client!(
    OnenoteNotebooksApiClient,
    OnenoteNotebooksIdApiClient,
    ResourceIdentity::OnenoteNotebooks
);

impl OnenoteNotebooksApiClient {
    post!(
        doc: "Create notebook",
        name: create_notebooks,
        path: "/notebooks",
        body: true
    );
    get!(
        doc: "List notebooks",
        name: list_notebooks,
        path: "/notebooks"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_notebooks_count,
        path: "/notebooks/$count"
    );
    post!(
        doc: "Invoke action getNotebookFromWebUrl",
        name: get_notebook_from_web_url,
        path: "/notebooks/getNotebookFromWebUrl",
        body: true
    );
    get!(
        doc: "Invoke function getRecentNotebooks",
        name: get_recent_notebooks,
        path: "/notebooks/getRecentNotebooks(includePersonalNotebooks={{id}})",
        params: include_personal_notebooks
    );
}

impl OnenoteNotebooksIdApiClient {
    api_client_link_id!(section_group, OnenoteSectionGroupsIdApiClient);
    api_client_link!(section_groups, OnenoteSectionGroupsApiClient);
    api_client_link_id!(section, OnenoteSectionsIdApiClient);
    api_client_link!(sections, OnenoteSectionsApiClient);

    delete!(
        doc: "Delete navigation property notebooks for users",
        name: delete_notebooks,
        path: "/notebooks/{{RID}}"
    );
    get!(
        doc: "Get notebooks from users",
        name: get_notebooks,
        path: "/notebooks/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property notebooks in users",
        name: update_notebooks,
        path: "/notebooks/{{RID}}",
        body: true
    );
    post!(
        doc: "Invoke action copyNotebook",
        name: copy_notebook,
        path: "/notebooks/{{RID}}/copyNotebook",
        body: true
    );
}