graph_rs_sdk/users/owned_objects/
request.rs1use crate::api_default_imports::*;
4
5api_client!(
6 OwnedObjectsApiClient,
7 OwnedObjectsIdApiClient,
8 ResourceIdentity::OwnedObjects
9);
10
11impl OwnedObjectsApiClient {
12 get!(
13 doc: "Get ownedObjects from users",
14 name: list_owned_objects,
15 path: "/ownedObjects"
16 );
17 get!(
18 doc: "Get the number of the resource",
19 name: get_owned_objects_count,
20 path: "/ownedObjects/$count"
21 );
22 get!(
23 doc: "Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection",
24 name: application_abca,
25 path: "/ownedObjects/graph.application"
26 );
27 get!(
28 doc: "Get the number of the resource",
29 name: get_application_count,
30 path: "/ownedObjects/graph.application/$count"
31 );
32
33 get!(
34 doc: "Get the number of the resource",
35 name: get_service_principal_count,
36 path: "/ownedObjects/graph.servicePrincipal/$count"
37 );
38}
39
40impl OwnedObjectsIdApiClient {
41 get!(
42 doc: "Get ownedObjects from users",
43 name: get_owned_objects,
44 path: "/ownedObjects/{{RID}}"
45 );
46 get!(
47 doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.application",
48 name: application_abca,
49 path: "/ownedObjects/{{RID}}/graph.application"
50 );
51 get!(
52 doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.group",
53 name: get_directory_object_item_as_group_type,
54 path: "/ownedObjects/{{RID}}/graph.group"
55 );
56 get!(
57 doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal",
58 name: get_directory_object_item_as_service_principal_type,
59 path: "/ownedObjects/{{RID}}/graph.servicePrincipal"
60 );
61}