Skip to content

Commit d786f83

Browse files
[Communication][Rooms] Introduce Collaborator role feature (Azure#44275)
* update version and api spec generation * increment version in version_client.txt * update changelog * push file from autorest generation * manual changes to model and converters * run mvn spotless to fix checkstyle * remove autorest comment as the code is not generated * update assets.json for test recording * refresh with 2025-03-13 api spec * add versino * add collaborator tests * remove print statement * update assets.json * update changelog * push assets.json * fix typo * make changelog updates according to CI check * update assets.json
1 parent 2355269 commit d786f83

File tree

15 files changed

+108
-33
lines changed

15 files changed

+108
-33
lines changed

eng/versioning/version_client.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ com.azure:azure-communication-identity;1.6.3;1.7.0-beta.1
7575
com.azure:azure-communication-jobrouter;1.1.11;2.0.0-beta.1
7676
com.azure:azure-communication-messages;1.1.2;1.2.0-beta.2
7777
com.azure:azure-communication-phonenumbers;1.2.1;1.3.0-beta.1
78-
com.azure:azure-communication-rooms;1.1.9;1.2.0-beta.1
78+
com.azure:azure-communication-rooms;1.1.8;1.2.0
7979
com.azure:azure-communication-sms;1.1.31;1.2.0-beta.1
8080
com.azure:azure-compute-batch;1.0.0-beta.3;1.0.0-beta.4
8181
com.azure:azure-containers-containerregistry;1.2.15;1.3.0-beta.1

sdk/communication/azure-communication-rooms/CHANGELOG.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
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
6+
- General Availability version of Collaborator role.
107

118
### Other Changes
9+
#### Dependency Updates
10+
- Upgraded `azure-identity` from `1.14.2` to version `1.15.2`
11+
- Upgraded `azure-core` from `1.54.1` to version `1.55.1`.
12+
- Upgraded `azure-core-http-netty` from `1.15.7` to version `1.15.9`.
13+
- Upgraded `azure-core-test` from `1.27.0-beta.4` to version `1.27.0-beta.6`.
1214

1315
## 1.1.9 (2025-03-03)
1416

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": "java",
44
"TagPrefix": "java/communication/azure-communication-rooms",
5-
"Tag": "java/communication/azure-communication-rooms_5116842cd0"
5+
"Tag": "java/communication/azure-communication-rooms_0569c759b4"
66
}

sdk/communication/azure-communication-rooms/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<groupId>com.azure</groupId>
1616
<artifactId>azure-communication-rooms</artifactId>
1717
<packaging>jar</packaging>
18-
<version>1.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-communication-rooms;current} -->
18+
<version>1.2.0</version> <!-- {x-version-update;com.azure:azure-communication-rooms;current} -->
1919
<name>Microsoft Azure library for ACS Room Service</name>
2020
<description>
2121
This package contains clients and data structures used to create, update, get, delete the Azure Communication Room Service.

sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/RoomsServiceVersion.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ public enum RoomsServiceVersion implements ServiceVersion {
1717
/**
1818
* Service version {@code 2024-04-15}
1919
*/
20-
V2024_04_15("2024-04-15");
20+
V2024_04_15("2024-04-15"),
21+
22+
/**
23+
* Service version {@code 2025-03-13}
24+
*/
25+
V2025_03_13("2025-03-13");
2126

2227
private final String version;
2328

@@ -39,6 +44,6 @@ public String getVersion() {
3944
* @return the latest {@link RoomsServiceVersion}
4045
*/
4146
public static RoomsServiceVersion getLatest() {
42-
return V2024_04_15;
47+
return V2025_03_13;
4348
}
4449
}

sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/implementation/AzureCommunicationRoomServiceImplBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public AzureCommunicationRoomServiceImplBuilder retryPolicy(RetryPolicy retryPol
270270
@Generated
271271
public AzureCommunicationRoomServiceImpl buildClient() {
272272
HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline();
273-
String localApiVersion = (apiVersion != null) ? apiVersion : "2024-04-15";
273+
String localApiVersion = (apiVersion != null) ? apiVersion : "2025-03-13";
274274
SerializerAdapter localSerializerAdapter
275275
= (serializerAdapter != null) ? serializerAdapter : JacksonAdapter.createDefaultSerializerAdapter();
276276
AzureCommunicationRoomServiceImpl client = new AzureCommunicationRoomServiceImpl(localPipeline,

sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/implementation/converters/ParticipantRoleConverter.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public final class ParticipantRoleConverter {
3434
role = ParticipantRole.PRESENTER;
3535
break;
3636

37+
case "Collaborator":
38+
role = ParticipantRole.COLLABORATOR;
39+
break;
40+
3741
default:
3842
role = ParticipantRole.ATTENDEE;
3943
break;
@@ -66,6 +70,10 @@ public final class ParticipantRoleConverter {
6670
role = com.azure.communication.rooms.implementation.models.ParticipantRole.PRESENTER;
6771
break;
6872

73+
case "Collaborator":
74+
role = com.azure.communication.rooms.implementation.models.ParticipantRole.COLLABORATOR;
75+
break;
76+
6977
default:
7078
role = com.azure.communication.rooms.implementation.models.ParticipantRole.ATTENDEE;
7179
break;

sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/implementation/models/ParticipantRole.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ public final class ParticipantRole extends ExpandableStringEnum<ParticipantRole>
2626
*/
2727
public static final ParticipantRole CONSUMER = fromString("Consumer");
2828

29+
/**
30+
* Static value Collaborator for ParticipantRole.
31+
*/
32+
public static final ParticipantRole COLLABORATOR = fromString("Collaborator");
33+
2934
/**
3035
* Creates a new instance of ParticipantRole value.
3136
*

sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/implementation/models/RoomsCollection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@Fluent
1919
public final class RoomsCollection implements JsonSerializable<RoomsCollection> {
2020
/*
21-
* A collection of rooms
21+
* A collection of rooms.
2222
*/
2323
private List<RoomModel> value;
2424

sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/implementation/models/UpdateRoomRequest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public final class UpdateRoomRequest implements JsonSerializable<UpdateRoomReque
3131
private OffsetDateTime validUntil;
3232

3333
/*
34-
* Set this flag to true if, at the time of the call, dial out to a PSTN number is enabled in a particular room. By
35-
* default, this flag is set to false.
34+
* (Optional) Set this flag to true if, at the time of the call, dial out to a PSTN number is enabled in a
35+
* particular room. By default, this flag is set to false.
3636
*/
3737
private Boolean pstnDialOutEnabled;
3838

@@ -87,8 +87,8 @@ public UpdateRoomRequest setValidUntil(OffsetDateTime validUntil) {
8787
}
8888

8989
/**
90-
* Get the pstnDialOutEnabled property: Set this flag to true if, at the time of the call, dial out to a PSTN
91-
* number is enabled in a particular room. By default, this flag is set to false.
90+
* Get the pstnDialOutEnabled property: (Optional) Set this flag to true if, at the time of the call, dial out to a
91+
* PSTN number is enabled in a particular room. By default, this flag is set to false.
9292
*
9393
* @return the pstnDialOutEnabled value.
9494
*/
@@ -97,8 +97,8 @@ public Boolean isPstnDialOutEnabled() {
9797
}
9898

9999
/**
100-
* Set the pstnDialOutEnabled property: Set this flag to true if, at the time of the call, dial out to a PSTN
101-
* number is enabled in a particular room. By default, this flag is set to false.
100+
* Set the pstnDialOutEnabled property: (Optional) Set this flag to true if, at the time of the call, dial out to a
101+
* PSTN number is enabled in a particular room. By default, this flag is set to false.
102102
*
103103
* @param pstnDialOutEnabled the pstnDialOutEnabled value to set.
104104
* @return the UpdateRoomRequest object itself.

0 commit comments

Comments
 (0)