Skip to content

Commit 3653b47

Browse files
authored
Updating azure rooms SDK for collaborator role (Azure#48200)
* updating for collaborator role * updating assembly * updating assembly * updating generated model * updating enum * update api version * update api version * update api version * updating version to 2025-03-13 * updating api version * updating change log * updating change log * updating change log * removing changes on the constructors * updating the artifacts * updating coomunication version for rooms * updating pragma * remving extra dot in change log * adding collaborator tests * updating samples
1 parent 3360e25 commit 3653b47

17 files changed

+275
-25
lines changed

sdk/communication/Azure.Communication.Rooms/CHANGELOG.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
# Release History
22

3-
## 1.2.0-beta.1 (Unreleased)
3+
## 1.2.0 (2025-03-13)
44

55
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
6+
General Availability version of participant Collaborator role.
127

138
## 1.1.1 (2024-09-03)
149

sdk/communication/Azure.Communication.Rooms/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,19 @@ This parameter contains `ValidFrom`, `ValidUntil`, `PstnDialOutEnabled` and `Par
6161
// Create communication users using the CommunicationIdentityClient
6262
Response<CommunicationUserIdentifier> communicationUser1 = await communicationIdentityClient.CreateUserAsync();
6363
Response<CommunicationUserIdentifier> communicationUser2 = await communicationIdentityClient.CreateUserAsync();
64+
Response<CommunicationUserIdentifier> communicationUser3 = await communicationIdentityClient.CreateUserAsync();
6465

6566
DateTimeOffset validFrom = DateTimeOffset.UtcNow;
6667
DateTimeOffset validUntil = validFrom.AddDays(1);
6768
RoomParticipant participant1 = new RoomParticipant(communicationUser1.Value); // If role is not provided, then it is set as Attendee by default
6869
RoomParticipant participant2 = new RoomParticipant(communicationUser2.Value) { Role = ParticipantRole.Presenter};
70+
// Starting in 1.2.0 release, A new role Collaborator is added
71+
RoomParticipant participant3 = new RoomParticipant(communicationUser3.Value) { Role = ParticipantRole.Collaborator };
6972
List<RoomParticipant> invitedParticipants = new List<RoomParticipant>
7073
{
7174
participant1,
72-
participant2
75+
participant2,
76+
participant3
7377
};
7478

7579
Response<CommunicationRoom> createRoomResponse = await roomsClient.CreateRoomAsync(validFrom, validUntil, invitedParticipants);

sdk/communication/Azure.Communication.Rooms/api/Azure.Communication.Rooms.net8.0.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public CreateRoomOptions() { }
2424
private readonly int _dummyPrimitive;
2525
public ParticipantRole(string value) { throw null; }
2626
public static Azure.Communication.Rooms.ParticipantRole Attendee { get { throw null; } }
27+
public static Azure.Communication.Rooms.ParticipantRole Collaborator { get { throw null; } }
2728
public static Azure.Communication.Rooms.ParticipantRole Consumer { get { throw null; } }
2829
public static Azure.Communication.Rooms.ParticipantRole Presenter { get { throw null; } }
2930
public bool Equals(Azure.Communication.Rooms.ParticipantRole other) { throw null; }
@@ -72,11 +73,12 @@ public RoomsClient(System.Uri endpoint, Azure.Core.TokenCredential credential, A
7273
}
7374
public partial class RoomsClientOptions : Azure.Core.ClientOptions
7475
{
75-
public RoomsClientOptions(Azure.Communication.Rooms.RoomsClientOptions.ServiceVersion version = Azure.Communication.Rooms.RoomsClientOptions.ServiceVersion.V2024_04_15) { }
76+
public RoomsClientOptions(Azure.Communication.Rooms.RoomsClientOptions.ServiceVersion version = Azure.Communication.Rooms.RoomsClientOptions.ServiceVersion.V2025_03_13) { }
7677
public enum ServiceVersion
7778
{
7879
V2023_06_14 = 1,
7980
V2024_04_15 = 2,
81+
V2025_03_13 = 3,
8082
}
8183
}
8284
public static partial class RoomsModelFactory

sdk/communication/Azure.Communication.Rooms/api/Azure.Communication.Rooms.netstandard2.0.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public CreateRoomOptions() { }
2424
private readonly int _dummyPrimitive;
2525
public ParticipantRole(string value) { throw null; }
2626
public static Azure.Communication.Rooms.ParticipantRole Attendee { get { throw null; } }
27+
public static Azure.Communication.Rooms.ParticipantRole Collaborator { get { throw null; } }
2728
public static Azure.Communication.Rooms.ParticipantRole Consumer { get { throw null; } }
2829
public static Azure.Communication.Rooms.ParticipantRole Presenter { get { throw null; } }
2930
public bool Equals(Azure.Communication.Rooms.ParticipantRole other) { throw null; }
@@ -72,11 +73,12 @@ public RoomsClient(System.Uri endpoint, Azure.Core.TokenCredential credential, A
7273
}
7374
public partial class RoomsClientOptions : Azure.Core.ClientOptions
7475
{
75-
public RoomsClientOptions(Azure.Communication.Rooms.RoomsClientOptions.ServiceVersion version = Azure.Communication.Rooms.RoomsClientOptions.ServiceVersion.V2024_04_15) { }
76+
public RoomsClientOptions(Azure.Communication.Rooms.RoomsClientOptions.ServiceVersion version = Azure.Communication.Rooms.RoomsClientOptions.ServiceVersion.V2025_03_13) { }
7677
public enum ServiceVersion
7778
{
7879
V2023_06_14 = 1,
7980
V2024_04_15 = 2,
81+
V2025_03_13 = 3,
8082
}
8183
}
8284
public static partial class RoomsModelFactory

sdk/communication/Azure.Communication.Rooms/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/communication/Azure.Communication.Rooms",
5-
"Tag": "net/communication/Azure.Communication.Rooms_2bf926f910"
5+
"Tag": "net/communication/Azure.Communication.Rooms_d36b9da2ca"
66
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
// <auto-generated/>
5+
using System.Diagnostics.CodeAnalysis;
6+
using System.Runtime.InteropServices;
7+
8+
// In SDK-style projects such as this one, several assembly attributes that were historically
9+
// defined in this file are now automatically added during build and populated with
10+
// values defined in project properties. For details of which attributes are included
11+
// and how to customise this process see: https://aka.ms/assembly-info-properties
12+
13+
14+
// Setting ComVisible to false makes the types in this assembly not visible to COM
15+
// components. If you need to access a type in this assembly from COM, set the ComVisible
16+
// attribute to true on that type.
17+
18+
[assembly: ComVisible(false)]
19+
20+
// The following GUID is for the ID of the typelib if this project is exposed to COM.
21+
22+
[assembly: Guid("9daf858f-372a-49ad-a7a0-3b1947d1d20b")]
23+
24+
[assembly: SuppressMessage("Error participant name collection", "AZC0030", Justification = "This issue arises because the ParticipantsCollection includes 'collection' in its name. However, since it has already reached General Availability, changing it now would result in breaking changes.")]

sdk/communication/Azure.Communication.Rooms/src/Azure.Communication.Rooms.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
This Client library enables working with the Microsoft Azure Communication Rooms Service.
55
</Description>
66
<AssemblyTitle>Azure Communication Rooms Service</AssemblyTitle>
7-
<Version>1.2.0-beta.1</Version>
7+
<Version>1.2.0</Version>
88
<!--The ApiCompatVersion is managed automatically and should not generally be modified manually.-->
99
<ApiCompatVersion>1.1.1</ApiCompatVersion>
1010
<PackageTags>Microsoft Azure Communication Rooms Service;Microsoft;Azure;Azure Communication Service;Azure Communication Rooms Service;Rooms;Communication;$(PackageCommonTags)</PackageTags>

sdk/communication/Azure.Communication.Rooms/src/Generated/Models/ParticipantRole.cs

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.Rooms/src/Generated/Models/UpdateRoomRequest.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.Rooms/src/Generated/ParticipantsRestClient.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)