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

use crate::api_default_imports::*;

resource_api_client!(
    UsersAttachmentsApiClient,
    UsersAttachmentsIdApiClient,
    ResourceIdentity::UsersAttachments
);

impl UsersAttachmentsApiClient {
    post!(
        doc: "Create taskFileAttachment",
        name: create_attachments,
        path: "/attachments",
        body: true
    );
    get!(
        doc: "List taskFileAttachments",
        name: list_attachments,
        path: "/attachments"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_attachments_count,
        path: "/attachments/$count"
    );
    post!(
        doc: "Invoke action createUploadSession",
        name: create_upload_session,
        path: "/attachments/createUploadSession",
        body: true
    );
}

impl UsersAttachmentsIdApiClient {
    delete!(
        doc: "Delete navigation property attachments for users",
        name: delete_attachments,
        path: "/attachments/{{RID}}"
    );
    get!(
        doc: "Get attachments from users",
        name: get_attachments,
        path: "/attachments/{{RID}}"
    );
    get!(
        doc: "Get media content for the navigation property attachments from users",
        name: get_attachments_content,
        path: "/attachments/{{RID}}/$value"
    );
    put!(
        doc: "Update media content for the navigation property attachments in users",
        name: update_attachments_content,
        path: "/attachments/{{RID}}/$value",
        body: true
    );
}