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

use crate::api_default_imports::*;

resource_api_client!(PlacesApiClient, PlacesIdApiClient, ResourceIdentity::Places);

impl PlacesApiClient {
    get!(
        doc: "Get the number of the resource",
        name: get_places_count,
        path: "/places/$count"
    );
    get!(
        doc: "Get the items of type microsoft.graph.room in the microsoft.graph.place collection",
        name: graph,
        path: "/places/graph.room"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_room_count,
        path: "/places/graph.room/$count"
    );
}

impl PlacesIdApiClient {
    delete!(
        doc: "Delete entity from places",
        name: delete_place,
        path: "/places/{{RID}}"
    );
    patch!(
        doc: "Update place",
        name: update_place,
        path: "/places/{{RID}}",
        body: true
    );
    get!(
        doc: "Get the item of type microsoft.graph.place as microsoft.graph.room",
        name: graph,
        path: "/places/{{RID}}/graph.room"
    );
}