graph_rs_sdk/sites/sites_lists/
request.rs

1// GENERATED CODE
2
3use crate::api_default_imports::*;
4use crate::sites::*;
5
6api_client!(
7    SitesListsApiClient,
8    SitesListsIdApiClient,
9    ResourceIdentity::SitesLists
10);
11
12impl SitesListsApiClient {
13    post!(
14        doc: "Create a new list",
15        name: create_lists,
16        path: "/lists",
17        body: true
18    );
19    get!(
20        doc: "Enumerate lists in a site",
21        name: list_lists,
22        path: "/lists"
23    );
24    get!(
25        doc: "Get the number of the resource",
26        name: get_lists_count,
27        path: "/lists/$count"
28    );
29}
30
31impl SitesListsIdApiClient {
32    api_client_link_id!(item, SitesItemsIdApiClient);
33    api_client_link!(items, SitesItemsApiClient);
34    api_client_link_id!(content_type, SitesContentTypesIdApiClient);
35    api_client_link!(content_types, SitesContentTypesApiClient);
36
37    delete!(
38        doc: "Delete navigation property lists for sites",
39        name: delete_lists,
40        path: "/lists/{{RID}}"
41    );
42    get!(
43        doc: "Get lists from sites",
44        name: get_lists,
45        path: "/lists/{{RID}}"
46    );
47    patch!(
48        doc: "Update the navigation property lists in sites",
49        name: update_lists,
50        path: "/lists/{{RID}}",
51        body: true
52    );
53    post!(
54        doc: "Create a columnDefinition in a list",
55        name: create_columns,
56        path: "/lists/{{RID}}/columns",
57        body: true
58    );
59    get!(
60        doc: "List columnDefinitions in a list",
61        name: list_columns,
62        path: "/lists/{{RID}}/columns"
63    );
64    get!(
65        doc: "Get the number of the resource",
66        name: get_columns_count,
67        path: "/lists/{{RID}}/columns/$count"
68    );
69    delete!(
70        doc: "Delete navigation property columns for sites",
71        name: delete_columns,
72        path: "/lists/{{RID}}/columns/{{id}}",
73        params: column_definition_id
74    );
75    get!(
76        doc: "Get columns from sites",
77        name: get_columns,
78        path: "/lists/{{RID}}/columns/{{id}}",
79        params: column_definition_id
80    );
81    patch!(
82        doc: "Update the navigation property columns in sites",
83        name: update_columns,
84        path: "/lists/{{RID}}/columns/{{id}}",
85        body: true,
86        params: column_definition_id
87    );
88    get!(
89        doc: "Get sourceColumn from sites",
90        name: get_source_column,
91        path: "/lists/{{RID}}/columns/{{id}}/sourceColumn",
92        params: column_definition_id
93    );
94    get!(
95        doc: "Get drive from sites",
96        name: get_drive,
97        path: "/lists/{{RID}}/drive"
98    );
99    post!(
100        doc: "Create new navigation property to operations for sites",
101        name: create_operations,
102        path: "/lists/{{RID}}/operations",
103        body: true
104    );
105    get!(
106        doc: "Get operations from sites",
107        name: list_operations,
108        path: "/lists/{{RID}}/operations"
109    );
110    get!(
111        doc: "Get the number of the resource",
112        name: get_operations_count,
113        path: "/lists/{{RID}}/operations/$count"
114    );
115    delete!(
116        doc: "Delete navigation property operations for sites",
117        name: delete_operations,
118        path: "/lists/{{RID}}/operations/{{id}}",
119        params: rich_long_running_operation_id
120    );
121    get!(
122        doc: "Get operations from sites",
123        name: get_operations,
124        path: "/lists/{{RID}}/operations/{{id}}",
125        params: rich_long_running_operation_id
126    );
127    patch!(
128        doc: "Update the navigation property operations in sites",
129        name: update_operations,
130        path: "/lists/{{RID}}/operations/{{id}}",
131        body: true,
132        params: rich_long_running_operation_id
133    );
134    post!(
135        doc: "Create new navigation property to subscriptions for sites",
136        name: create_subscriptions,
137        path: "/lists/{{RID}}/subscriptions",
138        body: true
139    );
140    get!(
141        doc: "Get subscriptions from sites",
142        name: list_subscriptions,
143        path: "/lists/{{RID}}/subscriptions"
144    );
145    get!(
146        doc: "Get the number of the resource",
147        name: get_subscriptions_count,
148        path: "/lists/{{RID}}/subscriptions/$count"
149    );
150    delete!(
151        doc: "Delete navigation property subscriptions for sites",
152        name: delete_subscriptions,
153        path: "/lists/{{RID}}/subscriptions/{{id}}",
154        params: subscription_id
155    );
156    get!(
157        doc: "Get subscriptions from sites",
158        name: get_subscriptions,
159        path: "/lists/{{RID}}/subscriptions/{{id}}",
160        params: subscription_id
161    );
162    patch!(
163        doc: "Update the navigation property subscriptions in sites",
164        name: update_subscriptions,
165        path: "/lists/{{RID}}/subscriptions/{{id}}",
166        body: true,
167        params: subscription_id
168    );
169    post!(
170        doc: "Invoke action reauthorize",
171        name: reauthorize,
172        path: "/lists/{{RID}}/subscriptions/{{id}}/reauthorize",
173        params: subscription_id
174    );
175}