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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
// GENERATED CODE

use crate::api_default_imports::*;

resource_api_client!(InsightsApiClient, ResourceIdentity::Insights);

impl InsightsApiClient {
    delete!(
        doc: "Delete navigation property insights for users",
        name: delete_insights,
        path: "/insights"
    );
    get!(
        doc: "Get insights from users",
        name: get_insights,
        path: "/insights"
    );
    patch!(
        doc: "Update the navigation property insights in users",
        name: update_insights,
        path: "/insights",
        body: true
    );
    post!(
        doc: "Create new navigation property to shared for users",
        name: create_shared,
        path: "/insights/shared",
        body: true
    );
    get!(
        doc: "Get shared from users",
        name: list_shared,
        path: "/insights/shared"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_shared_count,
        path: "/insights/shared/$count"
    );
    delete!(
        doc: "Delete navigation property shared for users",
        name: delete_shared,
        path: "/insights/shared/{{id}}",
        params: shared_insight_id
    );
    get!(
        doc: "Get shared from users",
        name: get_shared,
        path: "/insights/shared/{{id}}",
        params: shared_insight_id
    );
    patch!(
        doc: "Update the navigation property shared in users",
        name: update_shared,
        path: "/insights/shared/{{id}}",
        body: true,
        params: shared_insight_id
    );
    get!(
        doc: "Get lastSharedMethod from users",
        name: get_last_shared_method,
        path: "/insights/shared/{{id}}/lastSharedMethod",
        params: shared_insight_id
    );
    get!(
        doc: "Get resource from users",
        name: get_shared_resource,
        path: "/insights/shared/{{id}}/resource",
        params: shared_insight_id
    );
    post!(
        doc: "Create new navigation property to trending for users",
        name: create_trending,
        path: "/insights/trending",
        body: true
    );
    get!(
        doc: "Get trending from users",
        name: list_trending,
        path: "/insights/trending"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_trending_count,
        path: "/insights/trending/$count"
    );
    delete!(
        doc: "Delete navigation property trending for users",
        name: delete_trending,
        path: "/insights/trending/{{id}}",
        params: trending_id
    );
    get!(
        doc: "Get trending from users",
        name: get_trending,
        path: "/insights/trending/{{id}}",
        params: trending_id
    );
    patch!(
        doc: "Update the navigation property trending in users",
        name: update_trending,
        path: "/insights/trending/{{id}}",
        body: true,
        params: trending_id
    );
    get!(
        doc: "Get resource from users",
        name: get_trending_resource,
        path: "/insights/trending/{{id}}/resource",
        params: trending_id
    );
    post!(
        doc: "Create new navigation property to used for users",
        name: create_used,
        path: "/insights/used",
        body: true
    );
    get!(
        doc: "List used",
        name: list_used,
        path: "/insights/used"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_used_count,
        path: "/insights/used/$count"
    );
    delete!(
        doc: "Delete navigation property used for users",
        name: delete_used,
        path: "/insights/used/{{id}}",
        params: used_insight_id
    );
    get!(
        doc: "Get used from users",
        name: get_used,
        path: "/insights/used/{{id}}",
        params: used_insight_id
    );
    patch!(
        doc: "Update the navigation property used in users",
        name: update_used,
        path: "/insights/used/{{id}}",
        body: true,
        params: used_insight_id
    );
    get!(
        doc: "Get resource from users",
        name: get_used_resource,
        path: "/insights/used/{{id}}/resource",
        params: used_insight_id
    );
}