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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// GENERATED CODE

use crate::api_default_imports::*;
use crate::education::*;

api_client!(
    EducationSchoolsApiClient,
    EducationSchoolsIdApiClient,
    ResourceIdentity::EducationSchools
);

impl EducationSchoolsApiClient {
    post!(
        doc: "Create educationSchool",
        name: create_schools,
        path: "/schools",
        body: true
    );
    get!(
        doc: "List educationSchools",
        name: list_schools,
        path: "/schools"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_schools_count,
        path: "/schools/$count"
    );
    get!(
        doc: "Invoke function delta",
        name: delta,
        path: "/schools/delta()"
    );
}

impl EducationSchoolsIdApiClient {
    api_client_link!(assignments, EducationAssignmentsApiClient);
    api_client_link_id!(assignment, EducationAssignmentsIdApiClient);

    delete!(
        doc: "Delete navigation property schools for education",
        name: delete_schools,
        path: "/schools/{{RID}}"
    );
    get!(
        doc: "Get schools from education",
        name: get_schools,
        path: "/schools/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property schools in education",
        name: update_schools,
        path: "/schools/{{RID}}",
        body: true
    );
    get!(
        doc: "List administrativeUnit an educationSchool",
        name: get_administrative_unit,
        path: "/schools/{{RID}}/administrativeUnit"
    );
    patch!(
        doc: "Update the navigation property administrativeUnit in education",
        name: update_administrative_unit,
        path: "/schools/{{RID}}/administrativeUnit",
        body: true
    );
    get!(
        doc: "List classes of an educationSchool",
        name: list_classes,
        path: "/schools/{{RID}}/classes"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_classes_count,
        path: "/schools/{{RID}}/classes/$count"
    );
    post!(
        doc: "Create new navigation property ref to classes for education",
        name: create_ref_classes,
        path: "/schools/{{RID}}/classes/$ref",
        body: true
    );
    get!(
        doc: "List classes of an educationSchool",
        name: list_ref_classes,
        path: "/schools/{{RID}}/classes/$ref"
    );
    delete!(
        doc: "Delete ref of navigation property classes for education",
        name: delete_ref_classes,
        path: "/schools/{{RID}}/classes/{{id}}/$ref",
        params: education_class_id
    );
    get!(
        doc: "List users of an educationSchool",
        name: list_users,
        path: "/schools/{{RID}}/users"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_users_count,
        path: "/schools/{{RID}}/users/$count"
    );
    post!(
        doc: "Create new navigation property ref to users for education",
        name: create_ref_users,
        path: "/schools/{{RID}}/users/$ref",
        body: true
    );
    get!(
        doc: "List users of an educationSchool",
        name: list_ref_users,
        path: "/schools/{{RID}}/users/$ref"
    );
    delete!(
        doc: "Delete ref of navigation property users for education",
        name: delete_ref_users,
        path: "/schools/{{RID}}/users/{{id}}/$ref",
        params: education_user_id
    );
}