graph_rs_sdk/users/onenote/
request.rs1use crate::api_default_imports::*;
4use crate::users::*;
5
6api_client!(OnenoteApiClient, ResourceIdentity::Onenote);
7
8impl OnenoteApiClient {
9 api_client_link!(sections, OnenoteSectionsApiClient);
10 api_client_link!(section_groups, OnenoteSectionGroupsApiClient);
11 api_client_link_id!(section_group, OnenoteSectionGroupsIdApiClient);
12 api_client_link!(pages, OnenotePagesApiClient);
13 api_client_link!(notebooks, OnenoteNotebooksApiClient);
14 api_client_link_id!(notebook, OnenoteNotebooksIdApiClient);
15 api_client_link_id!(section, OnenoteSectionsIdApiClient);
16 api_client_link_id!(page, OnenotePagesIdApiClient);
17
18 delete!(
19 doc: "Delete navigation property onenote for users",
20 name: delete_onenote,
21 path: "/onenote"
22 );
23 get!(
24 doc: "Get onenote from users",
25 name: get_onenote,
26 path: "/onenote"
27 );
28 patch!(
29 doc: "Update the navigation property onenote in users",
30 name: update_onenote,
31 path: "/onenote",
32 body: true
33 );
34 post!(
35 doc: "Create new navigation property to operations for users",
36 name: create_operations,
37 path: "/onenote/operations",
38 body: true
39 );
40 get!(
41 doc: "Get operations from users",
42 name: list_operations,
43 path: "/onenote/operations"
44 );
45 get!(
46 doc: "Get the number of the resource",
47 name: operations_adfa,
48 path: "/onenote/operations/$count"
49 );
50 delete!(
51 doc: "Delete navigation property operations for users",
52 name: delete_operations,
53 path: "/onenote/operations/{{id}}",
54 params: onenote_operation_id
55 );
56 get!(
57 doc: "Get operations from users",
58 name: get_operations,
59 path: "/onenote/operations/{{id}}",
60 params: onenote_operation_id
61 );
62 patch!(
63 doc: "Update the navigation property operations in users",
64 name: update_operations,
65 path: "/onenote/operations/{{id}}",
66 body: true,
67 params: onenote_operation_id
68 );
69 post!(
70 doc: "Create new navigation property to resources for users",
71 name: create_resources,
72 path: "/onenote/resources",
73 body: true
74 );
75 get!(
76 doc: "Get resources from users",
77 name: list_resources,
78 path: "/onenote/resources"
79 );
80 get!(
81 doc: "Get the number of the resource",
82 name: get_resources_count,
83 path: "/onenote/resources/$count"
84 );
85 delete!(
86 doc: "Delete navigation property resources for users",
87 name: delete_resources,
88 path: "/onenote/resources/{{id}}",
89 params: onenote_resource_id
90 );
91 get!(
92 doc: "Get resources from users",
93 name: get_resources,
94 path: "/onenote/resources/{{id}}",
95 params: onenote_resource_id
96 );
97 patch!(
98 doc: "Update the navigation property resources in users",
99 name: update_resources,
100 path: "/onenote/resources/{{id}}",
101 body: true,
102 params: onenote_resource_id
103 );
104 get!(
105 doc: "Get content for the navigation property resources from users",
106 name: get_resources_content,
107 path: "/onenote/resources/{{id}}/content",
108 params: onenote_resource_id
109 );
110 put!(
111 doc: "Update content for the navigation property resources in users",
112 name: update_resources_content,
113 path: "/onenote/resources/{{id}}/content",
114 body: true,
115 params: onenote_resource_id
116 );
117}