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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
// GENERATED CODE

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

api_client!(
    ChannelsApiClient,
    ChannelsIdApiClient,
    ResourceIdentity::Channels
);

impl ChannelsApiClient {
    post!(
        doc: "Create channel",
        name: create_channels,
        path: "/channels",
        body: true
    );
    get!(
        doc: "List channels",
        name: list_channels,
        path: "/channels"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_channels_count,
        path: "/channels/$count"
    );
    get!(
        doc: "Invoke function getAllMessages",
        name: get_all_messages,
        path: "/channels/getAllMessages()"
    );
}

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

    delete!(
        doc: "Delete navigation property channels for users",
        name: delete_channels,
        path: "/channels/{{RID}}"
    );
    get!(
        doc: "Get channels from users",
        name: get_channels,
        path: "/channels/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property channels in users",
        name: update_channels,
        path: "/channels/{{RID}}",
        body: true
    );
    post!(
        doc: "Invoke action completeMigration",
        name: complete_migration,
        path: "/channels/{{RID}}/completeMigration"
    );
    get!(
        doc: "Get filesFolder",
        name: get_files_folder,
        path: "/channels/{{RID}}/filesFolder"
    );
    get!(
        doc: "Get content for the navigation property filesFolder from users",
        name: get_files_folder_content,
        path: "/channels/{{RID}}/filesFolder/content"
    );
    put!(
        doc: "Update content for the navigation property filesFolder in users",
        name: update_files_folder_content,
        path: "/channels/{{RID}}/filesFolder/content",
        body: true
    );
    post!(
        doc: "Invoke action provisionEmail",
        name: provision_email,
        path: "/channels/{{RID}}/provisionEmail"
    );
    post!(
        doc: "Invoke action removeEmail",
        name: remove_email,
        path: "/channels/{{RID}}/removeEmail"
    );
    post!(
        doc: "Create new navigation property to tabs for users",
        name: create_tabs,
        path: "/channels/{{RID}}/tabs",
        body: true
    );
    get!(
        doc: "List tabs in channel",
        name: list_tabs,
        path: "/channels/{{RID}}/tabs"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_tabs_count,
        path: "/channels/{{RID}}/tabs/$count"
    );
    delete!(
        doc: "Delete navigation property tabs for users",
        name: delete_tabs,
        path: "/channels/{{RID}}/tabs/{{id}}",
        params: teams_tab_id
    );
    get!(
        doc: "Get tabs from users",
        name: get_tabs,
        path: "/channels/{{RID}}/tabs/{{id}}",
        params: teams_tab_id
    );
    patch!(
        doc: "Update the navigation property tabs in users",
        name: update_tabs,
        path: "/channels/{{RID}}/tabs/{{id}}",
        body: true,
        params: teams_tab_id
    );
    get!(
        doc: "Get teamsApp from users",
        name: get_teams_app,
        path: "/channels/{{RID}}/tabs/{{id}}/teamsApp",
        params: teams_tab_id
    );
}