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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
use crate::api_default_imports::*;
use graph_http::types::NoContent;
register_client!(ActivitiesRequest,);
register_client!(ActivitiesIdRequest, ());
impl<'a, Client> ActivitiesRequest<'a, Client>
where
Client: graph_http::RequestClient,
{
get!({
doc: "Get activities from me",
name: list_activities,
response: serde_json::Value,
path: "activities",
has_body: false
});
post!({
doc: "Create new navigation property to activities for me",
name: create_activities,
response: serde_json::Value,
path: "activities",
has_body: true
});
get!({
doc: "Invoke function recent",
name: recent,
response: serde_json::Value,
path: "activities/microsoft.graph.recent()",
has_body: false
});
}
impl<'a, Client> ActivitiesIdRequest<'a, Client>
where
Client: graph_http::RequestClient,
{
delete!({
doc: "Delete navigation property activities for me",
name: delete_activities,
response: NoContent,
path: "activities/{{RID}}",
has_body: false
});
get!({
doc: "Get activities from me",
name: get_activities,
response: serde_json::Value,
path: "activities/{{RID}}",
has_body: false
});
patch!({
doc: "Update the navigation property activities in me",
name: update_activities,
response: NoContent,
path: "activities/{{RID}}",
has_body: true
});
get!({
doc: "Get historyItems from me",
name: list_history_items,
response: serde_json::Value,
path: "activities/{{RID}}/historyItems",
has_body: false
});
post!({
doc: "Create new navigation property to historyItems for me",
name: create_history_items,
response: serde_json::Value,
path: "activities/{{RID}}/historyItems",
has_body: true
});
get!({
doc: "Get historyItems from me",
name: get_history_items,
response: serde_json::Value,
path: "activities/{{RID}}/historyItems/{{id}}",
params: [ activity_history_item_id ],
has_body: false
});
patch!({
doc: "Update the navigation property historyItems in me",
name: update_history_items,
response: NoContent,
path: "activities/{{RID}}/historyItems/{{id}}",
params: [ activity_history_item_id ],
has_body: true
});
delete!({
doc: "Delete navigation property historyItems for me",
name: delete_history_items,
response: NoContent,
path: "activities/{{RID}}/historyItems/{{id}}",
params: [ activity_history_item_id ],
has_body: false
});
get!({
doc: "Get activity from me",
name: get_history_items_activity,
response: serde_json::Value,
path: "activities/{{RID}}/historyItems/{{id}}/activity",
params: [ activity_history_item_id ],
has_body: false
});
get!({
doc: "Get ref of activity from me",
name: get_ref_activity,
response: serde_json::Value,
path: "activities/{{RID}}/historyItems/{{id}}/activity/$ref",
params: [ activity_history_item_id ],
has_body: false
});
put!({
doc: "Update the ref of navigation property activity in me",
name: update_ref_activity,
response: NoContent,
path: "activities/{{RID}}/historyItems/{{id}}/activity/$ref",
params: [ activity_history_item_id ],
has_body: true
});
delete!({
doc: "Delete ref of navigation property activity for me",
name: delete_ref_activity,
response: NoContent,
path: "activities/{{RID}}/historyItems/{{id}}/activity/$ref",
params: [ activity_history_item_id ],
has_body: false
});
}