graph_rs_sdk/organization/
request.rs1use crate::api_default_imports::*;
4
5api_client!(
6 OrganizationApiClient,
7 OrganizationIdApiClient,
8 ResourceIdentity::Organization
9);
10
11impl OrganizationApiClient {
12 post!(
13 doc: "Add new entity to organization",
14 name: create_organization,
15 path: "/organization",
16 body: true
17 );
18 get!(
19 doc: "List organization",
20 name: list_organization,
21 path: "/organization"
22 );
23 get!(
24 doc: "Get the number of the resource",
25 name: get_organization_count,
26 path: "/organization/$count"
27 );
28 get!(
29 doc: "Invoke function delta",
30 name: delta,
31 path: "/organization/delta()"
32 );
33 post!(
34 doc: "Invoke action getAvailableExtensionProperties",
35 name: get_available_extension_properties,
36 path: "/organization/getAvailableExtensionProperties",
37 body: true
38 );
39 post!(
40 doc: "Invoke action getByIds",
41 name: get_by_ids,
42 path: "/organization/getByIds",
43 body: true
44 );
45 post!(
46 doc: "Invoke action validateProperties",
47 name: validate_properties,
48 path: "/organization/validateProperties",
49 body: true
50 );
51}
52
53impl OrganizationIdApiClient {
54 delete!(
55 doc: "Delete entity from organization",
56 name: delete_organization,
57 path: "/organization/{{RID}}"
58 );
59 get!(
60 doc: "Get organization",
61 name: get_organization,
62 path: "/organization/{{RID}}"
63 );
64 patch!(
65 doc: "Update organization",
66 name: update_organization,
67 path: "/organization/{{RID}}",
68 body: true
69 );
70 delete!(
71 doc: "Delete organizationalBranding",
72 name: delete_branding,
73 path: "/organization/{{RID}}/branding"
74 );
75 get!(
76 doc: "Get organizationalBranding",
77 name: get_branding,
78 path: "/organization/{{RID}}/branding"
79 );
80 patch!(
81 doc: "Update organizationalBranding",
82 name: update_branding,
83 path: "/organization/{{RID}}/branding",
84 body: true
85 );
86 get!(
87 doc: "Get backgroundImage for the navigation property branding from organization",
88 name: get_branding_background_image,
89 path: "/organization/{{RID}}/branding/backgroundImage"
90 );
91 put!(
92 doc: "Update backgroundImage for the navigation property branding in organization",
93 name: update_branding_background_image,
94 path: "/organization/{{RID}}/branding/backgroundImage",
95 body: true
96 );
97 get!(
98 doc: "Get bannerLogo for the navigation property branding from organization",
99 name: get_branding_banner_logo,
100 path: "/organization/{{RID}}/branding/bannerLogo"
101 );
102 put!(
103 doc: "Update bannerLogo for the navigation property branding in organization",
104 name: update_branding_banner_logo,
105 path: "/organization/{{RID}}/branding/bannerLogo",
106 body: true
107 );
108 post!(
109 doc: "Create organizationalBrandingLocalization",
110 name: create_localizations,
111 path: "/organization/{{RID}}/branding/localizations",
112 body: true
113 );
114 get!(
115 doc: "List localizations",
116 name: list_localizations,
117 path: "/organization/{{RID}}/branding/localizations"
118 );
119 get!(
120 doc: "Get the number of the resource",
121 name: get_localizations_count,
122 path: "/organization/{{RID}}/branding/localizations/$count"
123 );
124 delete!(
125 doc: "Delete navigation property localizations for organization",
126 name: delete_localizations,
127 path: "/organization/{{RID}}/branding/localizations/{{id}}",
128 params: organizational_branding_localization_id
129 );
130 get!(
131 doc: "Get localizations from organization",
132 name: get_localizations,
133 path: "/organization/{{RID}}/branding/localizations/{{id}}",
134 params: organizational_branding_localization_id
135 );
136 patch!(
137 doc: "Update the navigation property localizations in organization",
138 name: update_localizations,
139 path: "/organization/{{RID}}/branding/localizations/{{id}}",
140 body: true,
141 params: organizational_branding_localization_id
142 );
143 get!(
144 doc: "Get backgroundImage for the navigation property localizations from organization",
145 name: get_localizations_background_image,
146 path: "/organization/{{RID}}/branding/localizations/{{id}}/backgroundImage",
147 params: organizational_branding_localization_id
148 );
149 put!(
150 doc: "Update backgroundImage for the navigation property localizations in organization",
151 name: update_localizations_background_image,
152 path: "/organization/{{RID}}/branding/localizations/{{id}}/backgroundImage",
153 body: true,
154 params: organizational_branding_localization_id
155 );
156 get!(
157 doc: "Get bannerLogo for the navigation property localizations from organization",
158 name: get_localizations_banner_logo,
159 path: "/organization/{{RID}}/branding/localizations/{{id}}/bannerLogo",
160 params: organizational_branding_localization_id
161 );
162 put!(
163 doc: "Update bannerLogo for the navigation property localizations in organization",
164 name: update_localizations_banner_logo,
165 path: "/organization/{{RID}}/branding/localizations/{{id}}/bannerLogo",
166 body: true,
167 params: organizational_branding_localization_id
168 );
169 get!(
170 doc: "Get squareLogo for the navigation property localizations from organization",
171 name: get_localizations_square_logo,
172 path: "/organization/{{RID}}/branding/localizations/{{id}}/squareLogo",
173 params: organizational_branding_localization_id
174 );
175 put!(
176 doc: "Update squareLogo for the navigation property localizations in organization",
177 name: update_localizations_square_logo,
178 path: "/organization/{{RID}}/branding/localizations/{{id}}/squareLogo",
179 body: true,
180 params: organizational_branding_localization_id
181 );
182 get!(
183 doc: "Get squareLogo for the navigation property branding from organization",
184 name: get_branding_square_logo,
185 path: "/organization/{{RID}}/branding/squareLogo"
186 );
187 put!(
188 doc: "Update squareLogo for the navigation property branding in organization",
189 name: update_branding_square_logo,
190 path: "/organization/{{RID}}/branding/squareLogo",
191 body: true
192 );
193 get!(
194 doc: "List certificateBasedAuthConfigurations",
195 name: list_certificate_based_auth_configuration,
196 path: "/organization/{{RID}}/certificateBasedAuthConfiguration"
197 );
198 get!(
199 doc: "Get the number of the resource",
200 name: get_certificate_based_auth_configuration_count,
201 path: "/organization/{{RID}}/certificateBasedAuthConfiguration/$count"
202 );
203 get!(
204 doc: "Get certificateBasedAuthConfiguration from organization",
205 name: get_certificate_based_auth_configuration,
206 path: "/organization/{{RID}}/certificateBasedAuthConfiguration/{{id}}",
207 params: certificate_based_auth_configuration_id
208 );
209 post!(
210 doc: "Invoke action checkMemberGroups",
211 name: check_member_groups,
212 path: "/organization/{{RID}}/checkMemberGroups",
213 body: true
214 );
215 post!(
216 doc: "Invoke action checkMemberObjects",
217 name: check_member_objects,
218 path: "/organization/{{RID}}/checkMemberObjects",
219 body: true
220 );
221 post!(
222 doc: "Create new navigation property to extensions for organization",
223 name: create_extensions,
224 path: "/organization/{{RID}}/extensions",
225 body: true
226 );
227 get!(
228 doc: "Get extensions from organization",
229 name: list_extensions,
230 path: "/organization/{{RID}}/extensions"
231 );
232 get!(
233 doc: "Get the number of the resource",
234 name: get_extensions_count,
235 path: "/organization/{{RID}}/extensions/$count"
236 );
237 delete!(
238 doc: "Delete navigation property extensions for organization",
239 name: delete_extensions,
240 path: "/organization/{{RID}}/extensions/{{id}}",
241 params: extension_id
242 );
243 get!(
244 doc: "Get extensions from organization",
245 name: get_extensions,
246 path: "/organization/{{RID}}/extensions/{{id}}",
247 params: extension_id
248 );
249 patch!(
250 doc: "Update the navigation property extensions in organization",
251 name: update_extensions,
252 path: "/organization/{{RID}}/extensions/{{id}}",
253 body: true,
254 params: extension_id
255 );
256 post!(
257 doc: "Invoke action getMemberGroups",
258 name: get_member_groups,
259 path: "/organization/{{RID}}/getMemberGroups",
260 body: true
261 );
262 post!(
263 doc: "Invoke action getMemberObjects",
264 name: get_member_objects,
265 path: "/organization/{{RID}}/getMemberObjects",
266 body: true
267 );
268 post!(
269 doc: "Invoke action restore",
270 name: restore,
271 path: "/organization/{{RID}}/restore"
272 );
273 post!(
274 doc: "Invoke action setMobileDeviceManagementAuthority",
275 name: set_mobile_device_management_authority,
276 path: "/organization/{{RID}}/setMobileDeviceManagementAuthority"
277 );
278}