graph_rs_sdk/teamwork/
request.rs1use crate::api_default_imports::*;
4use crate::teamwork::*;
5
6api_client!(TeamworkApiClient, ResourceIdentity::Teamwork);
7
8impl TeamworkApiClient {
9 api_client_link_id!(deleted_team, DeletedTeamsIdApiClient);
10 api_client_link!(deleted_teams, DeletedTeamsApiClient);
11
12 get!(
13 doc: "Get teamwork",
14 name: get_teamwork,
15 path: "/teamwork"
16 );
17 patch!(
18 doc: "Update teamwork",
19 name: update_teamwork,
20 path: "/teamwork",
21 body: true
22 );
23 post!(
24 doc: "Invoke action sendActivityNotificationToRecipients",
25 name: send_activity_notification_to_recipients,
26 path: "/teamwork/sendActivityNotificationToRecipients",
27 body: true
28 );
29 post!(
30 doc: "Create workforceIntegration",
31 name: create_workforce_integrations,
32 path: "/teamwork/workforceIntegrations",
33 body: true
34 );
35 get!(
36 doc: "List workforceIntegrations",
37 name: list_workforce_integrations,
38 path: "/teamwork/workforceIntegrations"
39 );
40 get!(
41 doc: "Get the number of the resource",
42 name: get_workforce_integrations_count,
43 path: "/teamwork/workforceIntegrations/$count"
44 );
45 delete!(
46 doc: "Delete navigation property workforceIntegrations for teamwork",
47 name: delete_workforce_integrations,
48 path: "/teamwork/workforceIntegrations/{{id}}",
49 params: workforce_integration_id
50 );
51 get!(
52 doc: "Get workforceIntegrations from teamwork",
53 name: get_workforce_integrations,
54 path: "/teamwork/workforceIntegrations/{{id}}",
55 params: workforce_integration_id
56 );
57 patch!(
58 doc: "Update the navigation property workforceIntegrations in teamwork",
59 name: update_workforce_integrations,
60 path: "/teamwork/workforceIntegrations/{{id}}",
61 body: true,
62 params: workforce_integration_id
63 );
64}