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
// GENERATED CODE

use crate::api_default_imports::*;

resource_api_client!(
    OwnedObjectsApiClient,
    OwnedObjectsIdApiClient,
    ResourceIdentity::OwnedObjects
);

impl OwnedObjectsApiClient {
    get!(
        doc: "Get ownedObjects from users",
        name: list_owned_objects,
        path: "/ownedObjects"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_owned_objects_count,
        path: "/ownedObjects/$count"
    );
    get!(
        doc: "Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection",
        name: application_abca,
        path: "/ownedObjects/graph.application"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_application_count,
        path: "/ownedObjects/graph.application/$count"
    );

    get!(
        doc: "Get the number of the resource",
        name: get_service_principal_count,
        path: "/ownedObjects/graph.servicePrincipal/$count"
    );
}

impl OwnedObjectsIdApiClient {
    get!(
        doc: "Get ownedObjects from users",
        name: get_owned_objects,
        path: "/ownedObjects/{{RID}}"
    );
    get!(
        doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.application",
        name: application_abca,
        path: "/ownedObjects/{{RID}}/graph.application"
    );
    get!(
        doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.group",
        name: get_directory_object_item_as_group_type,
        path: "/ownedObjects/{{RID}}/graph.group"
    );
    get!(
        doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal",
        name: get_directory_object_item_as_service_principal_type,
        path: "/ownedObjects/{{RID}}/graph.servicePrincipal"
    );
}