graph_rs_sdk/teams/shared_with_teams/
request.rs1use crate::api_default_imports::*;
4
5api_client!(
6 SharedWithTeamsApiClient,
7 SharedWithTeamsIdApiClient,
8 ResourceIdentity::SharedWithTeams
9);
10
11impl SharedWithTeamsApiClient {
12 post!(
13 doc: "Create new navigation property to sharedWithTeams for teams",
14 name: create_shared_with_teams,
15 path: "/sharedWithTeams",
16 body: true
17 );
18 get!(
19 doc: "List sharedWithChannelTeamInfo",
20 name: list_shared_with_teams,
21 path: "/sharedWithTeams"
22 );
23 get!(
24 doc: "Get the number of the resource",
25 name: count,
26 path: "/sharedWithTeams/$count"
27 );
28}
29
30impl SharedWithTeamsIdApiClient {
31 delete!(
32 doc: "Delete navigation property sharedWithTeams for teams",
33 name: delete_shared_with_teams,
34 path: "/sharedWithTeams/{{RID}}"
35 );
36 get!(
37 doc: "Get sharedWithTeams from teams",
38 name: get_shared_with_teams,
39 path: "/sharedWithTeams/{{RID}}"
40 );
41 patch!(
42 doc: "Update the navigation property sharedWithTeams in teams",
43 name: update_shared_with_teams,
44 path: "/sharedWithTeams/{{RID}}",
45 body: true
46 );
47 get!(
48 doc: "List allowedMembers",
49 name: list_allowed_members,
50 path: "/sharedWithTeams/{{RID}}/allowedMembers"
51 );
52 get!(
53 doc: "Get the number of the resource",
54 name: get_allowed_members_count,
55 path: "/sharedWithTeams/{{RID}}/allowedMembers/$count"
56 );
57 get!(
58 doc: "Get allowedMembers from teams",
59 name: get_allowed_members,
60 path: "/sharedWithTeams/{{RID}}/allowedMembers/{{id}}",
61 params: conversation_member_id
62 );
63}