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

use crate::api_default_imports::*;

resource_api_client!(
    SharedWithTeamsApiClient,
    SharedWithTeamsIdApiClient,
    ResourceIdentity::SharedWithTeams
);

impl SharedWithTeamsApiClient {
    post!(
        doc: "Create new navigation property to sharedWithTeams for teams",
        name: create_shared_with_teams,
        path: "/sharedWithTeams",
        body: true
    );
    get!(
        doc: "List sharedWithChannelTeamInfo",
        name: list_shared_with_teams,
        path: "/sharedWithTeams"
    );
    get!(
        doc: "Get the number of the resource",
        name: count,
        path: "/sharedWithTeams/$count"
    );
}

impl SharedWithTeamsIdApiClient {
    delete!(
        doc: "Delete navigation property sharedWithTeams for teams",
        name: delete_shared_with_teams,
        path: "/sharedWithTeams/{{RID}}"
    );
    get!(
        doc: "Get sharedWithTeams from teams",
        name: get_shared_with_teams,
        path: "/sharedWithTeams/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property sharedWithTeams in teams",
        name: update_shared_with_teams,
        path: "/sharedWithTeams/{{RID}}",
        body: true
    );
    get!(
        doc: "List allowedMembers",
        name: list_allowed_members,
        path: "/sharedWithTeams/{{RID}}/allowedMembers"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_allowed_members_count,
        path: "/sharedWithTeams/{{RID}}/allowedMembers/$count"
    );
    get!(
        doc: "Get allowedMembers from teams",
        name: get_allowed_members,
        path: "/sharedWithTeams/{{RID}}/allowedMembers/{{id}}",
        params: conversation_member_id
    );
}