graph_rs_sdk/users/onenote_notebooks/
request.rs

1// GENERATED CODE
2
3use crate::api_default_imports::*;
4use crate::users::*;
5
6api_client!(
7    OnenoteNotebooksApiClient,
8    OnenoteNotebooksIdApiClient,
9    ResourceIdentity::OnenoteNotebooks
10);
11
12impl OnenoteNotebooksApiClient {
13    post!(
14        doc: "Create notebook",
15        name: create_notebooks,
16        path: "/notebooks",
17        body: true
18    );
19    get!(
20        doc: "List notebooks",
21        name: list_notebooks,
22        path: "/notebooks"
23    );
24    get!(
25        doc: "Get the number of the resource",
26        name: get_notebooks_count,
27        path: "/notebooks/$count"
28    );
29    post!(
30        doc: "Invoke action getNotebookFromWebUrl",
31        name: get_notebook_from_web_url,
32        path: "/notebooks/getNotebookFromWebUrl",
33        body: true
34    );
35    get!(
36        doc: "Invoke function getRecentNotebooks",
37        name: get_recent_notebooks,
38        path: "/notebooks/getRecentNotebooks(includePersonalNotebooks={{id}})",
39        params: include_personal_notebooks
40    );
41}
42
43impl OnenoteNotebooksIdApiClient {
44    api_client_link_id!(section_group, OnenoteSectionGroupsIdApiClient);
45    api_client_link!(section_groups, OnenoteSectionGroupsApiClient);
46    api_client_link_id!(section, OnenoteSectionsIdApiClient);
47    api_client_link!(sections, OnenoteSectionsApiClient);
48
49    delete!(
50        doc: "Delete navigation property notebooks for users",
51        name: delete_notebooks,
52        path: "/notebooks/{{RID}}"
53    );
54    get!(
55        doc: "Get notebooks from users",
56        name: get_notebooks,
57        path: "/notebooks/{{RID}}"
58    );
59    patch!(
60        doc: "Update the navigation property notebooks in users",
61        name: update_notebooks,
62        path: "/notebooks/{{RID}}",
63        body: true
64    );
65    post!(
66        doc: "Invoke action copyNotebook",
67        name: copy_notebook,
68        path: "/notebooks/{{RID}}/copyNotebook",
69        body: true
70    );
71}