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

use crate::api_default_imports::*;

resource_api_client!(
    SitesItemsVersionsApiClient,
    SitesItemsVersionsIdApiClient,
    ResourceIdentity::SitesItemsVersions
);

impl SitesItemsVersionsApiClient {
    post!(
        doc: "Create new navigation property to versions for sites",
        name: create_versions,
        path: "/versions",
        body: true
    );
    get!(
        doc: "Listing versions of a ListItem",
        name: list_versions,
        path: "/versions"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_versions_count,
        path: "/versions/$count"
    );
}

impl SitesItemsVersionsIdApiClient {
    delete!(
        doc: "Delete navigation property versions for sites",
        name: delete_versions,
        path: "/versions/{{RID}}"
    );
    get!(
        doc: "Get versions from sites",
        name: get_versions,
        path: "/versions/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property versions in sites",
        name: update_versions,
        path: "/versions/{{RID}}",
        body: true
    );
    delete!(
        doc: "Delete navigation property fields for sites",
        name: delete_fields,
        path: "/versions/{{RID}}/fields"
    );
    get!(
        doc: "Get fields from sites",
        name: get_fields,
        path: "/versions/{{RID}}/fields"
    );
    patch!(
        doc: "Update the navigation property fields in sites",
        name: update_fields,
        path: "/versions/{{RID}}/fields",
        body: true
    );
    post!(
        doc: "Invoke action restoreVersion",
        name: restore_version,
        path: "/versions/{{RID}}/restoreVersion"
    );
}