graph_rs_sdk/users/users_attachments/
request.rs

1// GENERATED CODE
2
3use crate::api_default_imports::*;
4
5api_client!(
6    UsersAttachmentsApiClient,
7    UsersAttachmentsIdApiClient,
8    ResourceIdentity::UsersAttachments
9);
10
11impl UsersAttachmentsApiClient {
12    post!(
13        doc: "Create taskFileAttachment",
14        name: create_attachments,
15        path: "/attachments",
16        body: true
17    );
18    get!(
19        doc: "List taskFileAttachments",
20        name: list_attachments,
21        path: "/attachments"
22    );
23    get!(
24        doc: "Get the number of the resource",
25        name: get_attachments_count,
26        path: "/attachments/$count"
27    );
28    post!(
29        doc: "Invoke action createUploadSession",
30        name: create_upload_session,
31        path: "/attachments/createUploadSession",
32        body: true
33    );
34}
35
36impl UsersAttachmentsIdApiClient {
37    delete!(
38        doc: "Delete navigation property attachments for users",
39        name: delete_attachments,
40        path: "/attachments/{{RID}}"
41    );
42    get!(
43        doc: "Get attachments from users",
44        name: get_attachments,
45        path: "/attachments/{{RID}}"
46    );
47    get!(
48        doc: "Get media content for the navigation property attachments from users",
49        name: get_attachments_content,
50        path: "/attachments/{{RID}}/$value"
51    );
52    put!(
53        doc: "Update media content for the navigation property attachments in users",
54        name: update_attachments_content,
55        path: "/attachments/{{RID}}/$value",
56        body: true
57    );
58}