graph_rs_sdk/users/onenote_sections/
request.rs

1// GENERATED CODE
2
3use crate::api_default_imports::*;
4use crate::users::*;
5
6api_client!(
7    OnenoteSectionsApiClient,
8    OnenoteSectionsIdApiClient,
9    ResourceIdentity::OnenoteSections
10);
11
12impl OnenoteSectionsApiClient {
13    post!(
14        doc: "Create new navigation property to sections for users",
15        name: create_sections,
16        path: "/sections",
17        body: true
18    );
19    get!(
20        doc: "List sections",
21        name: list_sections,
22        path: "/sections"
23    );
24    get!(
25        doc: "Get the number of the resource",
26        name: get_sections_count,
27        path: "/sections/$count"
28    );
29}
30
31impl OnenoteSectionsIdApiClient {
32    api_client_link!(pages, OnenotePagesApiClient);
33    api_client_link_id!(section, OnenoteSectionsIdApiClient);
34    api_client_link!(sections, OnenoteSectionsApiClient);
35    api_client_link_id!(page, OnenotePagesIdApiClient);
36
37    delete!(
38        doc: "Delete navigation property sections for users",
39        name: delete_sections,
40        path: "/sections/{{RID}}"
41    );
42    get!(
43        doc: "Get sections from users",
44        name: get_sections,
45        path: "/sections/{{RID}}"
46    );
47    patch!(
48        doc: "Update the navigation property sections in users",
49        name: update_sections,
50        path: "/sections/{{RID}}",
51        body: true
52    );
53    post!(
54        doc: "Invoke action copyToNotebook",
55        name: copy_to_notebook,
56        path: "/sections/{{RID}}/copyToNotebook",
57        body: true
58    );
59    post!(
60        doc: "Invoke action copyToSectionGroup",
61        name: copy_to_section_group,
62        path: "/sections/{{RID}}/copyToSectionGroup",
63        body: true
64    );
65    get!(
66        doc: "Get parentNotebook from users",
67        name: get_parent_notebook,
68        path: "/sections/{{RID}}/parentNotebook"
69    );
70    get!(
71        doc: "Get parentSectionGroup from users",
72        name: get_parent_section_group,
73        path: "/sections/{{RID}}/parentSectionGroup"
74    );
75}