graph_rs_sdk/applications/
request.rs

1// GENERATED CODE
2
3use crate::api_default_imports::*;
4use crate::service_principals::*;
5
6api_client!(
7    ApplicationsApiClient,
8    ApplicationsIdApiClient,
9    ResourceIdentity::Applications
10);
11
12impl ApplicationsApiClient {
13    post!(
14        doc: "Create application",
15        name: create_application,
16        path: "/applications",
17        body: true
18    );
19    get!(
20        doc: "List applications",
21        name: list_application,
22        path: "/applications"
23    );
24    get!(
25        doc: "Get the number of the resource",
26        name: get_applications_count,
27        path: "/applications/$count"
28    );
29    get!(
30        doc: "Invoke function delta",
31        name: delta,
32        path: "/applications/delta()"
33    );
34    post!(
35        doc: "Invoke action getAvailableExtensionProperties",
36        name: get_available_extension_properties,
37        path: "/applications/getAvailableExtensionProperties",
38        body: true
39    );
40    post!(
41        doc: "Invoke action getByIds",
42        name: get_by_ids,
43        path: "/applications/getByIds",
44        body: true
45    );
46    post!(
47        doc: "Invoke action validateProperties",
48        name: validate_properties,
49        path: "/applications/validateProperties",
50        body: true
51    );
52}
53
54impl ApplicationsIdApiClient {
55    api_client_link_id!(owner, ServicePrincipalsOwnersIdApiClient);
56    api_client_link!(owners, ServicePrincipalsOwnersApiClient);
57
58    delete!(
59        doc: "Delete application",
60        name: delete_application,
61        path: "/applications/{{RID}}"
62    );
63    get!(
64        doc: "Get application",
65        name: get_application,
66        path: "/applications/{{RID}}"
67    );
68    patch!(
69        doc: "Update application",
70        name: update_application,
71        path: "/applications/{{RID}}",
72        body: true
73    );
74    post!(
75        doc: "Invoke action addKey",
76        name: add_key,
77        path: "/applications/{{RID}}/addKey",
78        body: true
79    );
80    post!(
81        doc: "Invoke action addPassword",
82        name: add_password,
83        path: "/applications/{{RID}}/addPassword",
84        body: true
85    );
86    get!(
87        doc: "Get appManagementPolicies from applications",
88        name: list_app_management_policies,
89        path: "/applications/{{RID}}/appManagementPolicies"
90    );
91    get!(
92        doc: "Get the number of the resource",
93        name: count,
94        path: "/applications/{{RID}}/appManagementPolicies/$count"
95    );
96    post!(
97        doc: "Create new navigation property ref to appManagementPolicies for applications",
98        name: create_ref_app_management_policies,
99        path: "/applications/{{RID}}/appManagementPolicies/$ref",
100        body: true
101    );
102    get!(
103        doc: "Get ref of appManagementPolicies from applications",
104        name: list_ref_app_management_policies,
105        path: "/applications/{{RID}}/appManagementPolicies/$ref"
106    );
107    delete!(
108        doc: "Delete ref of navigation property appManagementPolicies for applications",
109        name: delete_ref_app_management_policies,
110        path: "/applications/{{RID}}/appManagementPolicies/{{id}}/$ref",
111        params: app_management_policy_id
112    );
113    post!(
114        doc: "Invoke action checkMemberGroups",
115        name: check_member_groups,
116        path: "/applications/{{RID}}/checkMemberGroups",
117        body: true
118    );
119    post!(
120        doc: "Invoke action checkMemberObjects",
121        name: check_member_objects,
122        path: "/applications/{{RID}}/checkMemberObjects",
123        body: true
124    );
125    get!(
126        doc: "Get createdOnBehalfOf from applications",
127        name: get_created_on_behalf_of,
128        path: "/applications/{{RID}}/createdOnBehalfOf"
129    );
130    post!(
131        doc: "Create extensionProperty (directory extension)",
132        name: create_extension_properties,
133        path: "/applications/{{RID}}/extensionProperties",
134        body: true
135    );
136    get!(
137        doc: "List extensionProperties (directory extensions)",
138        name: list_extension_properties,
139        path: "/applications/{{RID}}/extensionProperties"
140    );
141    get!(
142        doc: "Get the number of the resource",
143        name: get_extension_properties_count,
144        path: "/applications/{{RID}}/extensionProperties/$count"
145    );
146    delete!(
147        doc: "Delete navigation property extensionProperties for applications",
148        name: delete_extension_properties,
149        path: "/applications/{{RID}}/extensionProperties/{{id}}",
150        params: extension_property_id
151    );
152    get!(
153        doc: "Get extensionProperties from applications",
154        name: get_extension_properties,
155        path: "/applications/{{RID}}/extensionProperties/{{id}}",
156        params: extension_property_id
157    );
158    patch!(
159        doc: "Update the navigation property extensionProperties in applications",
160        name: update_extension_properties,
161        path: "/applications/{{RID}}/extensionProperties/{{id}}",
162        body: true,
163        params: extension_property_id
164    );
165    post!(
166        doc: "Create federatedIdentityCredential",
167        name: create_federated_identity_credentials,
168        path: "/applications/{{RID}}/federatedIdentityCredentials",
169        body: true
170    );
171    get!(
172        doc: "List federatedIdentityCredentials",
173        name: list_federated_identity_credentials,
174        path: "/applications/{{RID}}/federatedIdentityCredentials"
175    );
176    get!(
177        doc: "Get the number of the resource",
178        name: get_federated_identity_credentials_count,
179        path: "/applications/{{RID}}/federatedIdentityCredentials/$count"
180    );
181    delete!(
182        doc: "Delete navigation property federatedIdentityCredentials for applications",
183        name: delete_federated_identity_credentials,
184        path: "/applications/{{RID}}/federatedIdentityCredentials/{{id}}",
185        params: federated_identity_credential_id
186    );
187    get!(
188        doc: "Get federatedIdentityCredentials from applications",
189        name: get_federated_identity_credentials,
190        path: "/applications/{{RID}}/federatedIdentityCredentials/{{id}}",
191        params: federated_identity_credential_id
192    );
193    patch!(
194        doc: "Update the navigation property federatedIdentityCredentials in applications",
195        name: update_federated_identity_credentials,
196        path: "/applications/{{RID}}/federatedIdentityCredentials/{{id}}",
197        body: true,
198        params: federated_identity_credential_id
199    );
200    post!(
201        doc: "Invoke action getMemberGroups",
202        name: get_member_groups,
203        path: "/applications/{{RID}}/getMemberGroups",
204        body: true
205    );
206    post!(
207        doc: "Invoke action getMemberObjects",
208        name: get_member_objects,
209        path: "/applications/{{RID}}/getMemberObjects",
210        body: true
211    );
212    get!(
213        doc: "Get homeRealmDiscoveryPolicies from applications",
214        name: list_home_realm_discovery_policies,
215        path: "/applications/{{RID}}/homeRealmDiscoveryPolicies"
216    );
217    get!(
218        doc: "Get the number of the resource",
219        name: get_home_realm_discovery_policies_count,
220        path: "/applications/{{RID}}/homeRealmDiscoveryPolicies/$count"
221    );
222    get!(
223        doc: "Get homeRealmDiscoveryPolicies from applications",
224        name: get_home_realm_discovery_policies,
225        path: "/applications/{{RID}}/homeRealmDiscoveryPolicies/{{id}}",
226        params: home_realm_discovery_policy_id
227    );
228    get!(
229        doc: "Get logo for application from applications",
230        name: get_logo,
231        path: "/applications/{{RID}}/logo"
232    );
233    put!(
234        doc: "Update logo for application in applications",
235        name: update_logo,
236        path: "/applications/{{RID}}/logo",
237        body: true
238    );
239    post!(
240        doc: "Invoke action removeKey",
241        name: remove_key,
242        path: "/applications/{{RID}}/removeKey",
243        body: true
244    );
245    post!(
246        doc: "Invoke action removePassword",
247        name: remove_password,
248        path: "/applications/{{RID}}/removePassword",
249        body: true
250    );
251    post!(
252        doc: "Invoke action restore",
253        name: restore,
254        path: "/applications/{{RID}}/restore"
255    );
256    post!(
257        doc: "Invoke action setVerifiedPublisher",
258        name: set_verified_publisher,
259        path: "/applications/{{RID}}/setVerifiedPublisher",
260        body: true
261    );
262    get!(
263        doc: "List assigned tokenIssuancePolicies",
264        name: list_token_issuance_policies,
265        path: "/applications/{{RID}}/tokenIssuancePolicies"
266    );
267    get!(
268        doc: "Get the number of the resource",
269        name: get_token_issuance_policies_count,
270        path: "/applications/{{RID}}/tokenIssuancePolicies/$count"
271    );
272    post!(
273        doc: "Create new navigation property ref to tokenIssuancePolicies for applications",
274        name: create_ref_token_issuance_policies,
275        path: "/applications/{{RID}}/tokenIssuancePolicies/$ref",
276        body: true
277    );
278    get!(
279        doc: "List assigned tokenIssuancePolicies",
280        name: list_ref_token_issuance_policies,
281        path: "/applications/{{RID}}/tokenIssuancePolicies/$ref"
282    );
283    delete!(
284        doc: "Delete ref of navigation property tokenIssuancePolicies for applications",
285        name: delete_ref_token_issuance_policies,
286        path: "/applications/{{RID}}/tokenIssuancePolicies/{{id}}/$ref",
287        params: token_issuance_policy_id
288    );
289    get!(
290        doc: "List assigned tokenLifetimePolicy",
291        name: list_token_lifetime_policies,
292        path: "/applications/{{RID}}/tokenLifetimePolicies"
293    );
294    get!(
295        doc: "Get the number of the resource",
296        name: get_token_lifetime_policies_count,
297        path: "/applications/{{RID}}/tokenLifetimePolicies/$count"
298    );
299    post!(
300        doc: "Create new navigation property ref to tokenLifetimePolicies for applications",
301        name: create_ref_token_lifetime_policies,
302        path: "/applications/{{RID}}/tokenLifetimePolicies/$ref",
303        body: true
304    );
305    get!(
306        doc: "List assigned tokenLifetimePolicy",
307        name: list_ref_token_lifetime_policies,
308        path: "/applications/{{RID}}/tokenLifetimePolicies/$ref"
309    );
310    delete!(
311        doc: "Delete ref of navigation property tokenLifetimePolicies for applications",
312        name: delete_ref_token_lifetime_policies,
313        path: "/applications/{{RID}}/tokenLifetimePolicies/{{id}}/$ref",
314        params: token_lifetime_policy_id
315    );
316    post!(
317        doc: "Invoke action unsetVerifiedPublisher",
318        name: unset_verified_publisher,
319        path: "/applications/{{RID}}/unsetVerifiedPublisher"
320    );
321}