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

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

api_client!(
    OnenoteSectionGroupsApiClient,
    OnenoteSectionGroupsIdApiClient,
    ResourceIdentity::OnenoteSectionGroups
);

impl OnenoteSectionGroupsApiClient {
    post!(
        doc: "Create new navigation property to sectionGroups for users",
        name: create_section_groups,
        path: "/sectionGroups",
        body: true
    );
    get!(
        doc: "List sectionGroups",
        name: list_section_groups,
        path: "/sectionGroups"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_section_groups_count,
        path: "/sectionGroups/$count"
    );
}

impl OnenoteSectionGroupsIdApiClient {
    api_client_link!(sections, OnenoteSectionsApiClient);
    api_client_link_id!(section, OnenoteSectionsIdApiClient);

    delete!(
        doc: "Delete navigation property sectionGroups for users",
        name: delete_section_groups,
        path: "/sectionGroups/{{RID}}"
    );
    get!(
        doc: "Get sectionGroups from users",
        name: get_section_groups,
        path: "/sectionGroups/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property sectionGroups in users",
        name: update_section_groups,
        path: "/sectionGroups/{{RID}}",
        body: true
    );
    get!(
        doc: "Get parentNotebook from users",
        name: get_parent_notebook,
        path: "/sectionGroups/{{RID}}/parentNotebook"
    );
    get!(
        doc: "Get parentSectionGroup from users",
        name: get_parent_section_group,
        path: "/sectionGroups/{{RID}}/parentSectionGroup"
    );
    get!(
        doc: "List sectionGroups",
        name: list_section_groups,
        path: "/sectionGroups/{{RID}}/sectionGroups"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_section_groups_count,
        path: "/sectionGroups/{{RID}}/sectionGroups/$count"
    );
    get!(
        doc: "Get sectionGroups from users",
        name: get_section_groups_section_group,
        path: "/sectionGroups/{{RID}}/sectionGroups/{{id}}",
        params: section_group_id_1
    );
}