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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
// GENERATED CODE

use crate::api_default_imports::*;
use crate::sites::*;

resource_api_client!(
    SitesListsApiClient,
    SitesListsIdApiClient,
    ResourceIdentity::SitesLists
);

impl SitesListsApiClient {
    post!(
        doc: "Create a new list",
        name: create_lists,
        path: "/lists",
        body: true
    );
    get!(
        doc: "Enumerate lists in a site",
        name: list_lists,
        path: "/lists"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_lists_count,
        path: "/lists/$count"
    );
}

impl SitesListsIdApiClient {
    api_client_link_id!(item, SitesItemsIdApiClient);
    api_client_link!(items, SitesItemsApiClient);
    api_client_link_id!(content_type, SitesContentTypesIdApiClient);
    api_client_link!(content_types, SitesContentTypesApiClient);

    delete!(
        doc: "Delete navigation property lists for sites",
        name: delete_lists,
        path: "/lists/{{RID}}"
    );
    get!(
        doc: "Get lists from sites",
        name: get_lists,
        path: "/lists/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property lists in sites",
        name: update_lists,
        path: "/lists/{{RID}}",
        body: true
    );
    post!(
        doc: "Create a columnDefinition in a list",
        name: create_columns,
        path: "/lists/{{RID}}/columns",
        body: true
    );
    get!(
        doc: "List columnDefinitions in a list",
        name: list_columns,
        path: "/lists/{{RID}}/columns"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_columns_count,
        path: "/lists/{{RID}}/columns/$count"
    );
    delete!(
        doc: "Delete navigation property columns for sites",
        name: delete_columns,
        path: "/lists/{{RID}}/columns/{{id}}",
        params: column_definition_id
    );
    get!(
        doc: "Get columns from sites",
        name: get_columns,
        path: "/lists/{{RID}}/columns/{{id}}",
        params: column_definition_id
    );
    patch!(
        doc: "Update the navigation property columns in sites",
        name: update_columns,
        path: "/lists/{{RID}}/columns/{{id}}",
        body: true,
        params: column_definition_id
    );
    get!(
        doc: "Get sourceColumn from sites",
        name: get_source_column,
        path: "/lists/{{RID}}/columns/{{id}}/sourceColumn",
        params: column_definition_id
    );
    get!(
        doc: "Get drive from sites",
        name: get_drive,
        path: "/lists/{{RID}}/drive"
    );
    post!(
        doc: "Create new navigation property to operations for sites",
        name: create_operations,
        path: "/lists/{{RID}}/operations",
        body: true
    );
    get!(
        doc: "Get operations from sites",
        name: list_operations,
        path: "/lists/{{RID}}/operations"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_operations_count,
        path: "/lists/{{RID}}/operations/$count"
    );
    delete!(
        doc: "Delete navigation property operations for sites",
        name: delete_operations,
        path: "/lists/{{RID}}/operations/{{id}}",
        params: rich_long_running_operation_id
    );
    get!(
        doc: "Get operations from sites",
        name: get_operations,
        path: "/lists/{{RID}}/operations/{{id}}",
        params: rich_long_running_operation_id
    );
    patch!(
        doc: "Update the navigation property operations in sites",
        name: update_operations,
        path: "/lists/{{RID}}/operations/{{id}}",
        body: true,
        params: rich_long_running_operation_id
    );
    post!(
        doc: "Create new navigation property to subscriptions for sites",
        name: create_subscriptions,
        path: "/lists/{{RID}}/subscriptions",
        body: true
    );
    get!(
        doc: "Get subscriptions from sites",
        name: list_subscriptions,
        path: "/lists/{{RID}}/subscriptions"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_subscriptions_count,
        path: "/lists/{{RID}}/subscriptions/$count"
    );
    delete!(
        doc: "Delete navigation property subscriptions for sites",
        name: delete_subscriptions,
        path: "/lists/{{RID}}/subscriptions/{{id}}",
        params: subscription_id
    );
    get!(
        doc: "Get subscriptions from sites",
        name: get_subscriptions,
        path: "/lists/{{RID}}/subscriptions/{{id}}",
        params: subscription_id
    );
    patch!(
        doc: "Update the navigation property subscriptions in sites",
        name: update_subscriptions,
        path: "/lists/{{RID}}/subscriptions/{{id}}",
        body: true,
        params: subscription_id
    );
    post!(
        doc: "Invoke action reauthorize",
        name: reauthorize,
        path: "/lists/{{RID}}/subscriptions/{{id}}/reauthorize",
        params: subscription_id
    );
}