graph_rs_sdk/education/education_schools/
request.rs

1// GENERATED CODE
2
3use crate::api_default_imports::*;
4use crate::education::*;
5
6api_client!(
7    EducationSchoolsApiClient,
8    EducationSchoolsIdApiClient,
9    ResourceIdentity::EducationSchools
10);
11
12impl EducationSchoolsApiClient {
13    post!(
14        doc: "Create educationSchool",
15        name: create_schools,
16        path: "/schools",
17        body: true
18    );
19    get!(
20        doc: "List educationSchools",
21        name: list_schools,
22        path: "/schools"
23    );
24    get!(
25        doc: "Get the number of the resource",
26        name: get_schools_count,
27        path: "/schools/$count"
28    );
29    get!(
30        doc: "Invoke function delta",
31        name: delta,
32        path: "/schools/delta()"
33    );
34}
35
36impl EducationSchoolsIdApiClient {
37    api_client_link!(assignments, EducationAssignmentsApiClient);
38    api_client_link_id!(assignment, EducationAssignmentsIdApiClient);
39
40    delete!(
41        doc: "Delete navigation property schools for education",
42        name: delete_schools,
43        path: "/schools/{{RID}}"
44    );
45    get!(
46        doc: "Get schools from education",
47        name: get_schools,
48        path: "/schools/{{RID}}"
49    );
50    patch!(
51        doc: "Update the navigation property schools in education",
52        name: update_schools,
53        path: "/schools/{{RID}}",
54        body: true
55    );
56    get!(
57        doc: "List administrativeUnit an educationSchool",
58        name: get_administrative_unit,
59        path: "/schools/{{RID}}/administrativeUnit"
60    );
61    patch!(
62        doc: "Update the navigation property administrativeUnit in education",
63        name: update_administrative_unit,
64        path: "/schools/{{RID}}/administrativeUnit",
65        body: true
66    );
67    get!(
68        doc: "List classes of an educationSchool",
69        name: list_classes,
70        path: "/schools/{{RID}}/classes"
71    );
72    get!(
73        doc: "Get the number of the resource",
74        name: get_classes_count,
75        path: "/schools/{{RID}}/classes/$count"
76    );
77    post!(
78        doc: "Create new navigation property ref to classes for education",
79        name: create_ref_classes,
80        path: "/schools/{{RID}}/classes/$ref",
81        body: true
82    );
83    get!(
84        doc: "List classes of an educationSchool",
85        name: list_ref_classes,
86        path: "/schools/{{RID}}/classes/$ref"
87    );
88    delete!(
89        doc: "Delete ref of navigation property classes for education",
90        name: delete_ref_classes,
91        path: "/schools/{{RID}}/classes/{{id}}/$ref",
92        params: education_class_id
93    );
94    get!(
95        doc: "List users of an educationSchool",
96        name: list_users,
97        path: "/schools/{{RID}}/users"
98    );
99    get!(
100        doc: "Get the number of the resource",
101        name: get_users_count,
102        path: "/schools/{{RID}}/users/$count"
103    );
104    post!(
105        doc: "Create new navigation property ref to users for education",
106        name: create_ref_users,
107        path: "/schools/{{RID}}/users/$ref",
108        body: true
109    );
110    get!(
111        doc: "List users of an educationSchool",
112        name: list_ref_users,
113        path: "/schools/{{RID}}/users/$ref"
114    );
115    delete!(
116        doc: "Delete ref of navigation property users for education",
117        name: delete_ref_users,
118        path: "/schools/{{RID}}/users/{{id}}/$ref",
119        params: education_user_id
120    );
121}