graph_rs_sdk/sites/
request.rs

1// GENERATED CODE
2
3use crate::api_default_imports::*;
4use crate::default_drive::*;
5use crate::sites::*;
6use crate::users::*;
7
8api_client!(SitesApiClient, SitesIdApiClient, ResourceIdentity::Sites);
9
10impl SitesApiClient {
11    get!(
12        doc: "Search for sites",
13        name: list_site,
14        path: "/sites"
15    );
16    get!(
17        doc: "Get the number of the resource",
18        name: get_sites_count,
19        path: "/sites/$count"
20    );
21    post!(
22        doc: "Invoke action add",
23        name: add,
24        path: "/sites/add",
25        body: true
26    );
27    post!(
28        doc: "Invoke action remove",
29        name: remove,
30        path: "/sites/remove",
31        body: true
32    );
33}
34
35impl SitesIdApiClient {
36    api_client_link!(onenote, OnenoteApiClient);
37    api_client_link!(lists, SitesListsApiClient);
38    api_client_link!(items, SitesItemsApiClient);
39    api_client_link_id!(list, SitesListsIdApiClient);
40    api_client_link_id!(content_type, SitesContentTypesIdApiClient);
41    api_client_link!(drive, DefaultDriveApiClient);
42    api_client_link_id!(term_stores_id, TermStoresIdApiClient);
43    api_client_link!(content_types, SitesContentTypesApiClient);
44    api_client_link!(term_stores, TermStoresApiClient);
45    api_client_link!(term_store, TermStoreApiClient);
46
47    get!(
48        doc: "Get a site resource",
49        name: get_site,
50        path: "/sites/{{RID}}"
51    );
52    patch!(
53        doc: "Update entity in sites",
54        name: update_site,
55        path: "/sites/{{RID}}",
56        body: true
57    );
58    get!(
59        doc: "Get analytics from sites",
60        name: get_analytics,
61        path: "/sites/{{RID}}/analytics"
62    );
63    post!(
64        doc: "Create a columnDefinition in a site",
65        name: create_columns,
66        path: "/sites/{{RID}}/columns",
67        body: true
68    );
69    get!(
70        doc: "List columns in a site",
71        name: list_columns,
72        path: "/sites/{{RID}}/columns"
73    );
74    get!(
75        doc: "Get the number of the resource",
76        name: get_columns_count,
77        path: "/sites/{{RID}}/columns/$count"
78    );
79    delete!(
80        doc: "Delete navigation property columns for sites",
81        name: delete_columns,
82        path: "/sites/{{RID}}/columns/{{id}}",
83        params: column_definition_id
84    );
85    get!(
86        doc: "Get columns from sites",
87        name: get_columns,
88        path: "/sites/{{RID}}/columns/{{id}}",
89        params: column_definition_id
90    );
91    patch!(
92        doc: "Update the navigation property columns in sites",
93        name: update_columns,
94        path: "/sites/{{RID}}/columns/{{id}}",
95        body: true,
96        params: column_definition_id
97    );
98    get!(
99        doc: "Get sourceColumn from sites",
100        name: get_source_column,
101        path: "/sites/{{RID}}/columns/{{id}}/sourceColumn",
102        params: column_definition_id
103    );
104    get!(
105        doc: "Get Drive",
106        name: get_drive,
107        path: "/sites/{{RID}}/drive"
108    );
109    get!(
110        doc: "List available drives",
111        name: list_drives,
112        path: "/sites/{{RID}}/drives"
113    );
114    get!(
115        doc: "Get the number of the resource",
116        name: get_drives_count,
117        path: "/sites/{{RID}}/drives/$count"
118    );
119    get!(
120        doc: "Get drives from sites",
121        name: get_drives,
122        path: "/sites/{{RID}}/drives/{{id}}",
123        params: drive_id
124    );
125    get!(
126        doc: "Get externalColumns from sites",
127        name: list_external_columns,
128        path: "/sites/{{RID}}/externalColumns"
129    );
130    get!(
131        doc: "Get the number of the resource",
132        name: get_external_columns_count,
133        path: "/sites/{{RID}}/externalColumns/$count"
134    );
135    get!(
136        doc: "Get externalColumns from sites",
137        name: get_external_columns,
138        path: "/sites/{{RID}}/externalColumns/{{id}}",
139        params: column_definition_id
140    );
141    get!(
142        doc: "Invoke function getActivitiesByInterval",
143        name: site,
144        path: "/sites/{{RID}}/getActivitiesByInterval(startDateTime='{{id}}',endDateTime='{{id2}}',interval='{{id3}}')",
145        params: start_date_time, end_date_time, interval
146    );
147    get!(
148        doc: "Invoke function getApplicableContentTypesForList",
149        name: get_applicable_content_types_for_list,
150        path: "/sites/{{RID}}/getApplicableContentTypesForList(listId='{{id}}')",
151        params: list_id
152    );
153    get!(
154        doc: "Invoke function getByPath",
155        name: get_by_path,
156        path: "/sites/{{RID}}/getByPath(path='{{id}}')",
157        params: path
158    );
159    get!(
160        doc: "Get items from sites",
161        name: list_items,
162        path: "/sites/{{RID}}/items"
163    );
164    get!(
165        doc: "Get the number of the resource",
166        name: get_items_count,
167        path: "/sites/{{RID}}/items/$count"
168    );
169    get!(
170        doc: "Get items from sites",
171        name: get_items,
172        path: "/sites/{{RID}}/items/{{id}}",
173        params: base_item_id
174    );
175    post!(
176        doc: "Create new navigation property to operations for sites",
177        name: create_operations,
178        path: "/sites/{{RID}}/operations",
179        body: true
180    );
181    get!(
182        doc: "List operations on a site",
183        name: list_operations,
184        path: "/sites/{{RID}}/operations"
185    );
186    get!(
187        doc: "Get the number of the resource",
188        name: get_operations_count,
189        path: "/sites/{{RID}}/operations/$count"
190    );
191    delete!(
192        doc: "Delete navigation property operations for sites",
193        name: delete_operations,
194        path: "/sites/{{RID}}/operations/{{id}}",
195        params: rich_long_running_operation_id
196    );
197    get!(
198        doc: "Get operations from sites",
199        name: get_operations,
200        path: "/sites/{{RID}}/operations/{{id}}",
201        params: rich_long_running_operation_id
202    );
203    patch!(
204        doc: "Update the navigation property operations in sites",
205        name: update_operations,
206        path: "/sites/{{RID}}/operations/{{id}}",
207        body: true,
208        params: rich_long_running_operation_id
209    );
210    post!(
211        doc: "Create permission",
212        name: create_permissions,
213        path: "/sites/{{RID}}/permissions",
214        body: true
215    );
216    get!(
217        doc: "List permissions",
218        name: list_permissions,
219        path: "/sites/{{RID}}/permissions"
220    );
221    get!(
222        doc: "Get the number of the resource",
223        name: get_permissions_count,
224        path: "/sites/{{RID}}/permissions/$count"
225    );
226    delete!(
227        doc: "Delete navigation property permissions for sites",
228        name: delete_permissions,
229        path: "/sites/{{RID}}/permissions/{{id}}",
230        params: permission_id
231    );
232    get!(
233        doc: "Get permissions from sites",
234        name: get_permissions,
235        path: "/sites/{{RID}}/permissions/{{id}}",
236        params: permission_id
237    );
238    patch!(
239        doc: "Update the navigation property permissions in sites",
240        name: update_permissions,
241        path: "/sites/{{RID}}/permissions/{{id}}",
242        body: true,
243        params: permission_id
244    );
245    post!(
246        doc: "Invoke action grant",
247        name: grant,
248        path: "/sites/{{RID}}/permissions/{{id}}/grant",
249        body: true,
250        params: permission_id
251    );
252    get!(
253        doc: "Enumerate subsites",
254        name: list_sites,
255        path: "/sites/{{RID}}/sites"
256    );
257    get!(
258        doc: "Get the number of the resource",
259        name: get_sites_count,
260        path: "/sites/{{RID}}/sites/$count"
261    );
262    get!(
263        doc: "Get sites from sites",
264        name: get_sites,
265        path: "/sites/{{RID}}/sites/{{id}}",
266        params: site_id_1
267    );
268}