Skip to content

Commit 76d743f

Browse files
This release introduces Channels functionality with CreateChannel, GetChannel, ListChannels, and UpdateChannel operations. Channels provide dedicated collaboration spaces where teams can organize discussions and knowledge by projects, business units, or areas of responsibility.
1 parent d4a2236 commit 76d743f

File tree

60 files changed

+7486
-354
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+7486
-354
lines changed
Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<docs>
3+
<doc>
4+
<members>
5+
<member name="M:Amazon.Repostspace.IAmazonRepostspace.BatchAddChannelRoleToAccessors(Amazon.Repostspace.Model.BatchAddChannelRoleToAccessorsRequest)" />
6+
<member name="M:Amazon.Repostspace.AmazonRepostspaceClient.BatchAddChannelRoleToAccessors(Amazon.Repostspace.Model.BatchAddChannelRoleToAccessorsRequest)" />
7+
<member name="T:Amazon.Repostspace.Model.BatchAddChannelRoleToAccessorsRequest" />
8+
<member name="T:Amazon.Repostspace.Model.BatchAddChannelRoleToAccessorsResponse" />
9+
</members>
10+
<value>
11+
<example>
12+
<para>
13+
14+
</para>
15+
<code
16+
title="BatchAddChannelRoleToAccessors"
17+
source=".\AWSSDKDocSamples\Repostspace\Repostspace.GeneratedSamples.cs"
18+
region="example-1" />
19+
</example>
20+
</value>
21+
</doc>
22+
<doc>
23+
<members>
24+
<member name="M:Amazon.Repostspace.IAmazonRepostspace.BatchAddRole(Amazon.Repostspace.Model.BatchAddRoleRequest)" />
25+
<member name="M:Amazon.Repostspace.AmazonRepostspaceClient.BatchAddRole(Amazon.Repostspace.Model.BatchAddRoleRequest)" />
26+
<member name="T:Amazon.Repostspace.Model.BatchAddRoleRequest" />
27+
<member name="T:Amazon.Repostspace.Model.BatchAddRoleResponse" />
28+
</members>
29+
<value>
30+
<example>
31+
<para>
32+
33+
</para>
34+
<code
35+
title="BatchAddRole"
36+
source=".\AWSSDKDocSamples\Repostspace\Repostspace.GeneratedSamples.cs"
37+
region="example-1" />
38+
</example>
39+
</value>
40+
</doc>
41+
<doc>
42+
<members>
43+
<member name="M:Amazon.Repostspace.IAmazonRepostspace.BatchRemoveChannelRoleFromAccessors(Amazon.Repostspace.Model.BatchRemoveChannelRoleFromAccessorsRequest)" />
44+
<member name="M:Amazon.Repostspace.AmazonRepostspaceClient.BatchRemoveChannelRoleFromAccessors(Amazon.Repostspace.Model.BatchRemoveChannelRoleFromAccessorsRequest)" />
45+
<member name="T:Amazon.Repostspace.Model.BatchRemoveChannelRoleFromAccessorsRequest" />
46+
<member name="T:Amazon.Repostspace.Model.BatchRemoveChannelRoleFromAccessorsResponse" />
47+
</members>
48+
<value>
49+
<example>
50+
<para>
51+
52+
</para>
53+
<code
54+
title="BatchRemoveChannelRoleFromAccessors"
55+
source=".\AWSSDKDocSamples\Repostspace\Repostspace.GeneratedSamples.cs"
56+
region="example-1" />
57+
</example>
58+
</value>
59+
</doc>
60+
<doc>
61+
<members>
62+
<member name="M:Amazon.Repostspace.IAmazonRepostspace.BatchRemoveRole(Amazon.Repostspace.Model.BatchRemoveRoleRequest)" />
63+
<member name="M:Amazon.Repostspace.AmazonRepostspaceClient.BatchRemoveRole(Amazon.Repostspace.Model.BatchRemoveRoleRequest)" />
64+
<member name="T:Amazon.Repostspace.Model.BatchRemoveRoleRequest" />
65+
<member name="T:Amazon.Repostspace.Model.BatchRemoveRoleResponse" />
66+
</members>
67+
<value>
68+
<example>
69+
<para>
70+
71+
</para>
72+
<code
73+
title="BatchRemoveRole"
74+
source=".\AWSSDKDocSamples\Repostspace\Repostspace.GeneratedSamples.cs"
75+
region="example-1" />
76+
</example>
77+
</value>
78+
</doc>
79+
<doc>
80+
<members>
81+
<member name="M:Amazon.Repostspace.IAmazonRepostspace.CreateChannel(Amazon.Repostspace.Model.CreateChannelRequest)" />
82+
<member name="M:Amazon.Repostspace.AmazonRepostspaceClient.CreateChannel(Amazon.Repostspace.Model.CreateChannelRequest)" />
83+
<member name="T:Amazon.Repostspace.Model.CreateChannelRequest" />
84+
<member name="T:Amazon.Repostspace.Model.CreateChannelResponse" />
85+
</members>
86+
<value>
87+
<example>
88+
<para>
89+
90+
</para>
91+
<code
92+
title="CreateChannel"
93+
source=".\AWSSDKDocSamples\Repostspace\Repostspace.GeneratedSamples.cs"
94+
region="example-1" />
95+
</example>
96+
</value>
97+
</doc>
98+
<doc>
99+
<members>
100+
<member name="M:Amazon.Repostspace.IAmazonRepostspace.GetChannel(Amazon.Repostspace.Model.GetChannelRequest)" />
101+
<member name="M:Amazon.Repostspace.AmazonRepostspaceClient.GetChannel(Amazon.Repostspace.Model.GetChannelRequest)" />
102+
<member name="T:Amazon.Repostspace.Model.GetChannelRequest" />
103+
<member name="T:Amazon.Repostspace.Model.GetChannelResponse" />
104+
</members>
105+
<value>
106+
<example>
107+
<para>
108+
109+
</para>
110+
<code
111+
title="GetChannel"
112+
source=".\AWSSDKDocSamples\Repostspace\Repostspace.GeneratedSamples.cs"
113+
region="example-1" />
114+
</example>
115+
</value>
116+
</doc>
117+
<doc>
118+
<members>
119+
<member name="M:Amazon.Repostspace.IAmazonRepostspace.ListChannels(Amazon.Repostspace.Model.ListChannelsRequest)" />
120+
<member name="M:Amazon.Repostspace.AmazonRepostspaceClient.ListChannels(Amazon.Repostspace.Model.ListChannelsRequest)" />
121+
<member name="T:Amazon.Repostspace.Model.ListChannelsRequest" />
122+
<member name="T:Amazon.Repostspace.Model.ListChannelsResponse" />
123+
</members>
124+
<value>
125+
<example>
126+
<para>
127+
128+
</para>
129+
<code
130+
title="ListChannels"
131+
source=".\AWSSDKDocSamples\Repostspace\Repostspace.GeneratedSamples.cs"
132+
region="example-1" />
133+
</example>
134+
</value>
135+
</doc>
136+
<doc>
137+
<members>
138+
<member name="M:Amazon.Repostspace.IAmazonRepostspace.UpdateChannel(Amazon.Repostspace.Model.UpdateChannelRequest)" />
139+
<member name="M:Amazon.Repostspace.AmazonRepostspaceClient.UpdateChannel(Amazon.Repostspace.Model.UpdateChannelRequest)" />
140+
<member name="T:Amazon.Repostspace.Model.UpdateChannelRequest" />
141+
<member name="T:Amazon.Repostspace.Model.UpdateChannelResponse" />
142+
</members>
143+
<value>
144+
<example>
145+
<para>
146+
147+
</para>
148+
<code
149+
title="UpdateChannel"
150+
source=".\AWSSDKDocSamples\Repostspace\Repostspace.GeneratedSamples.cs"
151+
region="example-1" />
152+
</example>
153+
</value>
154+
</doc>
155+
</docs>
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
using Amazon.Repostspace;
8+
using Amazon.Repostspace.Model;
9+
10+
namespace AWSSDKDocSamples.Amazon.Repostspace.Generated
11+
{
12+
class RepostspaceSamples : ISample
13+
{
14+
public void RepostspaceBatchAddChannelRoleToAccessors()
15+
{
16+
#region example-1
17+
18+
var client = new AmazonRepostspaceClient();
19+
var response = client.BatchAddChannelRoleToAccessors(new BatchAddChannelRoleToAccessorsRequest
20+
{
21+
AccessorIds = new List<string> {
22+
"12345678-1234-1234-1234-1234567890ab"
23+
},
24+
ChannelId = "WS1234567890abcdefghijkl",
25+
ChannelRole = "MODERATOR",
26+
SpaceId = "SP1234567890abcdefghijkl"
27+
});
28+
29+
List<BatchError> errors = response.Errors;
30+
List<string> addedAccessorIds = response.AddedAccessorIds;
31+
32+
#endregion
33+
}
34+
35+
public void RepostspaceBatchAddRole()
36+
{
37+
#region example-1
38+
39+
var client = new AmazonRepostspaceClient();
40+
var response = client.BatchAddRole(new BatchAddRoleRequest
41+
{
42+
AccessorIds = new List<string> {
43+
"12345678-1234-1234-1234-1234567890ab"
44+
},
45+
Role = "EXPERT",
46+
SpaceId = "SP1234567890abcdefghijkl"
47+
});
48+
49+
List<BatchError> errors = response.Errors;
50+
List<string> addedAccessorIds = response.AddedAccessorIds;
51+
52+
#endregion
53+
}
54+
55+
public void RepostspaceBatchRemoveChannelRoleFromAccessors()
56+
{
57+
#region example-1
58+
59+
var client = new AmazonRepostspaceClient();
60+
var response = client.BatchRemoveChannelRoleFromAccessors(new BatchRemoveChannelRoleFromAccessorsRequest
61+
{
62+
AccessorIds = new List<string> {
63+
"12345678-1234-1234-1234-1234567890ab"
64+
},
65+
ChannelId = "WS1234567890abcdefghijkl",
66+
ChannelRole = "MODERATOR",
67+
SpaceId = "SP1234567890abcdefghijkl"
68+
});
69+
70+
List<BatchError> errors = response.Errors;
71+
List<string> removedAccessorIds = response.RemovedAccessorIds;
72+
73+
#endregion
74+
}
75+
76+
public void RepostspaceBatchRemoveRole()
77+
{
78+
#region example-1
79+
80+
var client = new AmazonRepostspaceClient();
81+
var response = client.BatchRemoveRole(new BatchRemoveRoleRequest
82+
{
83+
AccessorIds = new List<string> {
84+
"12345678-1234-1234-1234-1234567890ab"
85+
},
86+
Role = "EXPERT",
87+
SpaceId = "SP1234567890abcdefghijkl"
88+
});
89+
90+
List<BatchError> errors = response.Errors;
91+
List<string> removedAccessorIds = response.RemovedAccessorIds;
92+
93+
#endregion
94+
}
95+
96+
public void RepostspaceCreateChannel()
97+
{
98+
#region example-1
99+
100+
var client = new AmazonRepostspaceClient();
101+
var response = client.CreateChannel(new CreateChannelRequest
102+
{
103+
ChannelDescription = "Useful channel description",
104+
ChannelName = "My First Channel",
105+
SpaceId = "SP1234567890abcdefghijkl"
106+
});
107+
108+
string channelId = response.ChannelId;
109+
110+
#endregion
111+
}
112+
113+
public void RepostspaceGetChannel()
114+
{
115+
#region example-1
116+
117+
var client = new AmazonRepostspaceClient();
118+
var response = client.GetChannel(new GetChannelRequest
119+
{
120+
ChannelId = "WS1234567890abcdefghijkl",
121+
SpaceId = "SP1234567890abcdefghijkl"
122+
});
123+
124+
string channelDescription = response.ChannelDescription;
125+
string channelId = response.ChannelId;
126+
string channelName = response.ChannelName;
127+
Dictionary<string, List<string>> channelRoles = response.ChannelRoles;
128+
string channelStatus = response.ChannelStatus;
129+
DateTime createDateTime = response.CreateDateTime;
130+
string spaceId = response.SpaceId;
131+
132+
#endregion
133+
}
134+
135+
public void RepostspaceListChannels()
136+
{
137+
#region example-1
138+
139+
var client = new AmazonRepostspaceClient();
140+
var response = client.ListChannels(new ListChannelsRequest
141+
{
142+
SpaceId = "SP1234567890abcdefghijkl"
143+
});
144+
145+
List<ChannelData> channels = response.Channels;
146+
147+
#endregion
148+
}
149+
150+
public void RepostspaceUpdateChannel()
151+
{
152+
#region example-1
153+
154+
var client = new AmazonRepostspaceClient();
155+
var response = client.UpdateChannel(new UpdateChannelRequest
156+
{
157+
ChannelDescription = "Better channel description",
158+
ChannelId = "WS1234567890abcdefghijkl",
159+
ChannelName = "Better Channel",
160+
SpaceId = "SP1234567890abcdefghijkl"
161+
});
162+
163+
164+
#endregion
165+
}
166+
167+
168+
# region ISample Members
169+
public virtual void Run()
170+
{
171+
172+
}
173+
# endregion
174+
175+
}
176+
}

0 commit comments

Comments
 (0)