Skip to content

Commit fc50e5b

Browse files
authored
Deprecate system events from legacy eventgrid package (#45807)
1 parent da1fd36 commit fc50e5b

File tree

358 files changed

+2133
-826
lines changed

Some content is hidden

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

358 files changed

+2133
-826
lines changed

eng/versioning/version_client.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ com.azure:azure-maps-geolocation;1.0.0-beta.3;1.0.0-beta.4
142142
com.azure:azure-maps-render;2.0.0-beta.2;2.0.0-beta.3
143143
com.azure:azure-maps-route;1.0.0-beta.3;1.0.0-beta.4
144144
com.azure:azure-maps-search;2.0.0-beta.2;2.0.0-beta.3
145-
com.azure:azure-messaging-eventgrid;4.30.1;4.31.0-beta.1
145+
com.azure:azure-messaging-eventgrid;4.30.1;4.31.0
146146
com.azure:azure-messaging-eventgrid-systemevents;1.0.0-beta.2;1.0.0
147147
com.azure:azure-messaging-eventgrid-namespaces;1.1.4;1.2.0-beta.1
148148
com.azure:azure-messaging-eventgrid-cloudnative-cloudevents;1.0.0-beta.1;1.0.0-beta.2

sdk/eventgrid/azure-messaging-eventgrid-cloudnative-cloudevents/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<dependency>
9393
<groupId>com.azure</groupId>
9494
<artifactId>azure-messaging-eventgrid</artifactId>
95-
<version>4.31.0-beta.1</version> <!-- {x-version-update;com.azure:azure-messaging-eventgrid;current} -->
95+
<version>4.31.0</version> <!-- {x-version-update;com.azure:azure-messaging-eventgrid;current} -->
9696
</dependency>
9797
<dependency>
9898
<groupId>com.azure</groupId>

sdk/eventgrid/azure-messaging-eventgrid-systemevents/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 1.0.0 (2025-06-23)
3+
## 1.0.0 (2025-06-26)
44

55
### Features Added
66
- First stable release of the azure-messaging-eventgrid-systemevents client library for Java, providing strongly-typed models for Azure Event Grid system events.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
directory: specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents
2-
commit: 528afc8e7ace5f030a03fce5f361ded2bdf3438f
2+
commit: 793fd0656f99dc4d69cc4a24f0c64551442cd6c7
33
repo: Azure/azure-rest-api-specs
44
additionalDirectories:

sdk/eventgrid/azure-messaging-eventgrid/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-
## 4.31.0-beta.1 (Unreleased)
4-
5-
### Features Added
3+
## 4.31.0 (2025-06-26)
64

75
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
6+
- Deprecated system events from `azure-messaging-eventgrid` package. Users should migrate to the new `azure-messaging-eventgrid-systemevents` package for system events.
127

138
## 4.30.1 (2025-06-19)
149

sdk/eventgrid/azure-messaging-eventgrid/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>com.azure</groupId>
1414
<artifactId>azure-messaging-eventgrid</artifactId>
15-
<version>4.31.0-beta.1</version> <!-- {x-version-update;com.azure:azure-messaging-eventgrid;current} -->
15+
<version>4.31.0</version> <!-- {x-version-update;com.azure:azure-messaging-eventgrid;current} -->
1616

1717
<packaging>jar</packaging>
1818
<name>Microsoft Azure SDK for eventgrid</name>

sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AcsCallEndReasonProperties.java

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33
// Code generated by Microsoft (R) AutoRest Code Generator.
4-
54
package com.azure.messaging.eventgrid.systemevents;
65

76
import com.azure.core.annotation.Fluent;
@@ -14,9 +13,14 @@
1413

1514
/**
1615
* Schema of calling event reason properties.
16+
*
17+
* @deprecated This class is deprecated and may be removed in future releases. System events are now available in the
18+
* azure-messaging-eventgrid-systemevents package.
1719
*/
1820
@Fluent
21+
@Deprecated
1922
public final class AcsCallEndReasonProperties implements JsonSerializable<AcsCallEndReasonProperties> {
23+
2024
/*
2125
* Reason code for ending the call.
2226
*/
@@ -44,7 +48,7 @@ public AcsCallEndReasonProperties() {
4448

4549
/**
4650
* Get the code property: Reason code for ending the call.
47-
*
51+
*
4852
* @return the code value.
4953
*/
5054
@Generated
@@ -54,7 +58,7 @@ public Integer getCode() {
5458

5559
/**
5660
* Set the code property: Reason code for ending the call.
57-
*
61+
*
5862
* @param code the code value to set.
5963
* @return the AcsCallEndReasonProperties object itself.
6064
*/
@@ -66,7 +70,7 @@ public AcsCallEndReasonProperties setCode(Integer code) {
6670

6771
/**
6872
* Get the subCode property: Reason subcode for ending the call.
69-
*
73+
*
7074
* @return the subCode value.
7175
*/
7276
@Generated
@@ -76,7 +80,7 @@ public Integer getSubCode() {
7680

7781
/**
7882
* Set the subCode property: Reason subcode for ending the call.
79-
*
83+
*
8084
* @param subCode the subCode value to set.
8185
* @return the AcsCallEndReasonProperties object itself.
8286
*/
@@ -88,7 +92,7 @@ public AcsCallEndReasonProperties setSubCode(Integer subCode) {
8892

8993
/**
9094
* Get the phrase property: Reason for ending the call.
91-
*
95+
*
9296
* @return the phrase value.
9397
*/
9498
@Generated
@@ -98,7 +102,7 @@ public String getPhrase() {
98102

99103
/**
100104
* Set the phrase property: Reason for ending the call.
101-
*
105+
*
102106
* @param phrase the phrase value to set.
103107
* @return the AcsCallEndReasonProperties object itself.
104108
*/
@@ -123,7 +127,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
123127

124128
/**
125129
* Reads an instance of AcsCallEndReasonProperties from the JsonReader.
126-
*
130+
*
127131
* @param jsonReader The JsonReader being read.
128132
* @return An instance of AcsCallEndReasonProperties if the JsonReader was pointing to an instance of it, or null if
129133
* it was pointing to JSON null.
@@ -136,7 +140,6 @@ public static AcsCallEndReasonProperties fromJson(JsonReader jsonReader) throws
136140
while (reader.nextToken() != JsonToken.END_OBJECT) {
137141
String fieldName = reader.getFieldName();
138142
reader.nextToken();
139-
140143
if ("code".equals(fieldName)) {
141144
deserializedAcsCallEndReasonProperties.code = reader.getNullable(JsonReader::getInt);
142145
} else if ("subCode".equals(fieldName)) {
@@ -147,7 +150,6 @@ public static AcsCallEndReasonProperties fromJson(JsonReader jsonReader) throws
147150
reader.skipChildren();
148151
}
149152
}
150-
151153
return deserializedAcsCallEndReasonProperties;
152154
});
153155
}

sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AcsCallEndedByKind.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33
// Code generated by Microsoft (R) AutoRest Code Generator.
4-
54
package com.azure.messaging.eventgrid.systemevents;
65

76
import com.azure.core.annotation.Generated;
@@ -10,8 +9,13 @@
109

1110
/**
1211
* The type of the call ended by.
12+
*
13+
* @deprecated This class is deprecated and may be removed in future releases. System events are now available in the
14+
* azure-messaging-eventgrid-systemevents package.
1315
*/
16+
@Deprecated
1417
public final class AcsCallEndedByKind extends ExpandableStringEnum<AcsCallEndedByKind> {
18+
1519
/**
1620
* Call end initiator is a participant.
1721
*/
@@ -26,7 +30,7 @@ public final class AcsCallEndedByKind extends ExpandableStringEnum<AcsCallEndedB
2630

2731
/**
2832
* Creates a new instance of AcsCallEndedByKind value.
29-
*
33+
*
3034
* @deprecated Use the {@link #fromString(String)} factory method.
3135
*/
3236
@Generated
@@ -36,7 +40,7 @@ public AcsCallEndedByKind() {
3640

3741
/**
3842
* Creates or finds a AcsCallEndedByKind from its string representation.
39-
*
43+
*
4044
* @param name a name to look for.
4145
* @return the corresponding AcsCallEndedByKind.
4246
*/
@@ -47,7 +51,7 @@ public static AcsCallEndedByKind fromString(String name) {
4751

4852
/**
4953
* Gets known AcsCallEndedByKind values.
50-
*
54+
*
5155
* @return known AcsCallEndedByKind values.
5256
*/
5357
@Generated

sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AcsCallEndedByProperties.java

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33
// Code generated by Microsoft (R) AutoRest Code Generator.
4-
54
package com.azure.messaging.eventgrid.systemevents;
65

76
import com.azure.core.annotation.Fluent;
@@ -14,9 +13,14 @@
1413

1514
/**
1615
* Schema of calling event endedby properties.
16+
*
17+
* @deprecated This class is deprecated and may be removed in future releases. System events are now available in the
18+
* azure-messaging-eventgrid-systemevents package.
1719
*/
1820
@Fluent
21+
@Deprecated
1922
public final class AcsCallEndedByProperties implements JsonSerializable<AcsCallEndedByProperties> {
23+
2024
/*
2125
* The communication identifier of the call ended by
2226
*/
@@ -44,7 +48,7 @@ public AcsCallEndedByProperties() {
4448

4549
/**
4650
* Get the communicationIdentifier property: The communication identifier of the call ended by.
47-
*
51+
*
4852
* @return the communicationIdentifier value.
4953
*/
5054
@Generated
@@ -54,7 +58,7 @@ public CommunicationIdentifierModel getCommunicationIdentifier() {
5458

5559
/**
5660
* Set the communicationIdentifier property: The communication identifier of the call ended by.
57-
*
61+
*
5862
* @param communicationIdentifier the communicationIdentifier value to set.
5963
* @return the AcsCallEndedByProperties object itself.
6064
*/
@@ -66,7 +70,7 @@ public AcsCallEndedByProperties setCommunicationIdentifier(CommunicationIdentifi
6670

6771
/**
6872
* Get the kind property: The type of the call ended by.
69-
*
73+
*
7074
* @return the kind value.
7175
*/
7276
@Generated
@@ -76,7 +80,7 @@ public AcsCallEndedByKind getKind() {
7680

7781
/**
7882
* Set the kind property: The type of the call ended by.
79-
*
83+
*
8084
* @param kind the kind value to set.
8185
* @return the AcsCallEndedByProperties object itself.
8286
*/
@@ -88,7 +92,7 @@ public AcsCallEndedByProperties setKind(AcsCallEndedByKind kind) {
8892

8993
/**
9094
* Get the name property: The name of the call ended by.
91-
*
95+
*
9296
* @return the name value.
9397
*/
9498
@Generated
@@ -98,7 +102,7 @@ public String getName() {
98102

99103
/**
100104
* Set the name property: The name of the call ended by.
101-
*
105+
*
102106
* @param name the name value to set.
103107
* @return the AcsCallEndedByProperties object itself.
104108
*/
@@ -123,7 +127,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
123127

124128
/**
125129
* Reads an instance of AcsCallEndedByProperties from the JsonReader.
126-
*
130+
*
127131
* @param jsonReader The JsonReader being read.
128132
* @return An instance of AcsCallEndedByProperties if the JsonReader was pointing to an instance of it, or null if
129133
* it was pointing to JSON null.
@@ -136,7 +140,6 @@ public static AcsCallEndedByProperties fromJson(JsonReader jsonReader) throws IO
136140
while (reader.nextToken() != JsonToken.END_OBJECT) {
137141
String fieldName = reader.getFieldName();
138142
reader.nextToken();
139-
140143
if ("communicationIdentifier".equals(fieldName)) {
141144
deserializedAcsCallEndedByProperties.communicationIdentifier
142145
= CommunicationIdentifierModel.fromJson(reader);
@@ -148,7 +151,6 @@ public static AcsCallEndedByProperties fromJson(JsonReader jsonReader) throws IO
148151
reader.skipChildren();
149152
}
150153
}
151-
152154
return deserializedAcsCallEndedByProperties;
153155
});
154156
}

sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AcsCallEndedEventData.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@
1313

1414
/**
1515
* Schema of the Data property of an EventGridEvent for a Microsoft.Communication.CallEnded event.
16+
*
17+
* @deprecated This class is deprecated and may be removed in future releases. System events are now available in the
18+
* azure-messaging-eventgrid-systemevents package.
1619
*/
1720
@Fluent
21+
@Deprecated
1822
public final class AcsCallEndedEventData extends AcsCallingEventProperties {
1923

2024
/*

0 commit comments

Comments
 (0)