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

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

resource_api_client!(
    OnenoteSectionsApiClient,
    OnenoteSectionsIdApiClient,
    ResourceIdentity::OnenoteSections
);

impl OnenoteSectionsApiClient {
    post!(
        doc: "Create new navigation property to sections for users",
        name: create_sections,
        path: "/sections",
        body: true
    );
    get!(
        doc: "List sections",
        name: list_sections,
        path: "/sections"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_sections_count,
        path: "/sections/$count"
    );
}

impl OnenoteSectionsIdApiClient {
    api_client_link!(pages, OnenotePagesApiClient);
    api_client_link_id!(section, OnenoteSectionsIdApiClient);
    api_client_link!(sections, OnenoteSectionsApiClient);
    api_client_link_id!(page, OnenotePagesIdApiClient);

    delete!(
        doc: "Delete navigation property sections for users",
        name: delete_sections,
        path: "/sections/{{RID}}"
    );
    get!(
        doc: "Get sections from users",
        name: get_sections,
        path: "/sections/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property sections in users",
        name: update_sections,
        path: "/sections/{{RID}}",
        body: true
    );
    post!(
        doc: "Invoke action copyToNotebook",
        name: copy_to_notebook,
        path: "/sections/{{RID}}/copyToNotebook",
        body: true
    );
    post!(
        doc: "Invoke action copyToSectionGroup",
        name: copy_to_section_group,
        path: "/sections/{{RID}}/copyToSectionGroup",
        body: true
    );
    get!(
        doc: "Get parentNotebook from users",
        name: get_parent_notebook,
        path: "/sections/{{RID}}/parentNotebook"
    );
    get!(
        doc: "Get parentSectionGroup from users",
        name: get_parent_section_group,
        path: "/sections/{{RID}}/parentSectionGroup"
    );
}