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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// GENERATED CODE

use crate::api_default_imports::*;
use crate::chats::*;
use crate::teams::*;

api_client!(PrimaryChannelApiClient, ResourceIdentity::PrimaryChannel);

impl PrimaryChannelApiClient {
    api_client_link!(members, TeamsMembersApiClient);
    api_client_link_id!(message, ChatsMessagesIdApiClient);
    api_client_link!(member, TeamsMembersIdApiClient);
    api_client_link!(shared_with_teams, SharedWithTeamsApiClient);
    api_client_link!(messages, ChatsMessagesApiClient);
    api_client_link_id!(shared_with_team, SharedWithTeamsIdApiClient);

    delete!(
        doc: "Delete navigation property primaryChannel for teams",
        name: delete_primary_channel,
        path: "/primaryChannel"
    );
    get!(
        doc: "Get primaryChannel",
        name: get_primary_channel,
        path: "/primaryChannel"
    );
    patch!(
        doc: "Update the navigation property primaryChannel in teams",
        name: update_primary_channel,
        path: "/primaryChannel",
        body: true
    );
    post!(
        doc: "Invoke action completeMigration",
        name: complete_migration,
        path: "/primaryChannel/completeMigration"
    );
    get!(
        doc: "Invoke function doesUserHaveAccess",
        name: does_user_have_access,
        path: "/primaryChannel/doesUserHaveAccess(userId='@userId',tenantId='@tenantId',userPrincipalName='@userPrincipalName')"
    );
    get!(
        doc: "Get filesFolder",
        name: get_files_folder,
        path: "/primaryChannel/filesFolder"
    );
    get!(
        doc: "Get content for the navigation property filesFolder from teams",
        name: get_files_folder_content,
        path: "/primaryChannel/filesFolder/content"
    );
    put!(
        doc: "Update content for the navigation property filesFolder in teams",
        name: update_files_folder_content,
        path: "/primaryChannel/filesFolder/content",
        body: true
    );
    post!(
        doc: "Invoke action provisionEmail",
        name: provision_email,
        path: "/primaryChannel/provisionEmail"
    );
    post!(
        doc: "Invoke action removeEmail",
        name: remove_email,
        path: "/primaryChannel/removeEmail"
    );
    post!(
        doc: "Create new navigation property to tabs for teams",
        name: create_tabs,
        path: "/primaryChannel/tabs",
        body: true
    );
    get!(
        doc: "List tabs in channel",
        name: list_tabs,
        path: "/primaryChannel/tabs"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_tabs_count,
        path: "/primaryChannel/tabs/$count"
    );
    delete!(
        doc: "Delete navigation property tabs for teams",
        name: delete_tabs,
        path: "/primaryChannel/tabs/{{id}}",
        params: teams_tab_id
    );
    get!(
        doc: "Get tabs from teams",
        name: get_tabs,
        path: "/primaryChannel/tabs/{{id}}",
        params: teams_tab_id
    );
    patch!(
        doc: "Update the navigation property tabs in teams",
        name: update_tabs,
        path: "/primaryChannel/tabs/{{id}}",
        body: true,
        params: teams_tab_id
    );
    get!(
        doc: "Get teamsApp from teams",
        name: get_tabs_teams_app,
        path: "/primaryChannel/tabs/{{id}}/teamsApp",
        params: teams_tab_id
    );
}