Skip to content

Commit f71744a

Browse files
authored
Eventgrid Jan 2025 release for ACS EG system events (Azure#43799)
1 parent be155d9 commit f71744a

File tree

8 files changed

+68
-52
lines changed

8 files changed

+68
-52
lines changed

eng/versioning/version_client.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ com.azure:azure-maps-geolocation;1.0.0-beta.3;1.0.0-beta.4
144144
com.azure:azure-maps-render;2.0.0-beta.2;2.0.0-beta.3
145145
com.azure:azure-maps-route;1.0.0-beta.3;1.0.0-beta.4
146146
com.azure:azure-maps-search;2.0.0-beta.2;2.0.0-beta.3
147-
com.azure:azure-messaging-eventgrid;4.27.0;4.28.0-beta.1
147+
com.azure:azure-messaging-eventgrid;4.27.0;4.28.0
148148
com.azure:azure-messaging-eventgrid-namespaces;1.1.1;1.2.0-beta.1
149149
com.azure:azure-messaging-eventgrid-cloudnative-cloudevents;1.0.0-beta.1;1.0.0-beta.2
150150
com.azure:azure-messaging-eventhubs;5.19.2;5.20.0-beta.1

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.28.0-beta.1</version> <!-- {x-version-update;com.azure:azure-messaging-eventgrid;current} -->
95+
<version>4.28.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/CHANGELOG.md

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

3-
## 4.28.0-beta.1 (Unreleased)
3+
## 4.28.0 (2025-01-21)
44

55
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
6+
- Added `internetMessageId` property to `AcsEmailDeliveryReportReceivedEventData`.
7+
- Added `recipientMailServerHostName` property to `AcsEmailDeliveryReportStatusDetails`.
8+
- Added `segmentCount` property to `AcsSmsReceivedEventData`.
129

1310
## 4.27.0 (2024-11-18)
1411

sdk/eventgrid/azure-messaging-eventgrid/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ add the direct dependency to your project as follows.
8282
<dependency>
8383
<groupId>com.azure</groupId>
8484
<artifactId>azure-messaging-eventgrid</artifactId>
85-
<version>4.27.0</version>
85+
<version>4.28.0</version>
8686
</dependency>
8787
```
8888
[//]: # ({x-version-update-end})

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.28.0-beta.1</version> <!-- {x-version-update;com.azure:azure-messaging-eventgrid;current} -->
15+
<version>4.28.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/AcsSmsReceivedEventData.java

Lines changed: 11 additions & 13 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;
@@ -18,6 +17,7 @@
1817
*/
1918
@Fluent
2019
public final class AcsSmsReceivedEventData extends AcsSmsEventBaseProperties {
20+
2121
/*
2222
* The SMS content
2323
*/
@@ -31,7 +31,7 @@ public final class AcsSmsReceivedEventData extends AcsSmsEventBaseProperties {
3131
/*
3232
* Number of segments in the message
3333
*/
34-
private int segmentCount;
34+
private Integer segmentCount;
3535

3636
/**
3737
* Creates an instance of AcsSmsReceivedEventData class.
@@ -41,7 +41,7 @@ public AcsSmsReceivedEventData() {
4141

4242
/**
4343
* Get the message property: The SMS content.
44-
*
44+
*
4545
* @return the message value.
4646
*/
4747
public String getMessage() {
@@ -50,7 +50,7 @@ public String getMessage() {
5050

5151
/**
5252
* Set the message property: The SMS content.
53-
*
53+
*
5454
* @param message the message value to set.
5555
* @return the AcsSmsReceivedEventData object itself.
5656
*/
@@ -61,7 +61,7 @@ public AcsSmsReceivedEventData setMessage(String message) {
6161

6262
/**
6363
* Get the receivedTimestamp property: The time at which the SMS was received.
64-
*
64+
*
6565
* @return the receivedTimestamp value.
6666
*/
6767
public OffsetDateTime getReceivedTimestamp() {
@@ -70,7 +70,7 @@ public OffsetDateTime getReceivedTimestamp() {
7070

7171
/**
7272
* Set the receivedTimestamp property: The time at which the SMS was received.
73-
*
73+
*
7474
* @param receivedTimestamp the receivedTimestamp value to set.
7575
* @return the AcsSmsReceivedEventData object itself.
7676
*/
@@ -81,20 +81,20 @@ public AcsSmsReceivedEventData setReceivedTimestamp(OffsetDateTime receivedTimes
8181

8282
/**
8383
* Get the segmentCount property: Number of segments in the message.
84-
*
84+
*
8585
* @return the segmentCount value.
8686
*/
87-
public int getSegmentCount() {
87+
public Integer getSegmentCount() {
8888
return this.segmentCount;
8989
}
9090

9191
/**
9292
* Set the segmentCount property: Number of segments in the message.
93-
*
93+
*
9494
* @param segmentCount the segmentCount value to set.
9595
* @return the AcsSmsReceivedEventData object itself.
9696
*/
97-
public AcsSmsReceivedEventData setSegmentCount(int segmentCount) {
97+
public AcsSmsReceivedEventData setSegmentCount(Integer segmentCount) {
9898
this.segmentCount = segmentCount;
9999
return this;
100100
}
@@ -146,7 +146,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
146146

147147
/**
148148
* Reads an instance of AcsSmsReceivedEventData from the JsonReader.
149-
*
149+
*
150150
* @param jsonReader The JsonReader being read.
151151
* @return An instance of AcsSmsReceivedEventData if the JsonReader was pointing to an instance of it, or null if it
152152
* was pointing to JSON null.
@@ -159,7 +159,6 @@ public static AcsSmsReceivedEventData fromJson(JsonReader jsonReader) throws IOE
159159
while (reader.nextToken() != JsonToken.END_OBJECT) {
160160
String fieldName = reader.getFieldName();
161161
reader.nextToken();
162-
163162
if ("messageId".equals(fieldName)) {
164163
deserializedAcsSmsReceivedEventData.setMessageId(reader.getString());
165164
} else if ("from".equals(fieldName)) {
@@ -177,7 +176,6 @@ public static AcsSmsReceivedEventData fromJson(JsonReader jsonReader) throws IOE
177176
reader.skipChildren();
178177
}
179178
}
180-
181179
return deserializedAcsSmsReceivedEventData;
182180
});
183181
}

sdk/eventgrid/azure-messaging-eventgrid/swagger/README.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -86,34 +86,34 @@ custom-types: CloudEvent,EventGridEvent,AcsRouterCommunicationError,AcsMessageCh
8686

8787

8888
input-file:
89-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json
90-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.EventHub/stable/2018-01-01/EventHub.json
91-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json
92-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json
93-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json
94-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.Devices/stable/2018-01-01/IotHub.json
95-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json
96-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.ServiceBus/stable/2018-01-01/ServiceBus.json
97-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.Media/stable/2018-01-01/MediaServices.json
98-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.Maps/stable/2018-01-01/Maps.json
99-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.AppConfiguration/stable/2018-01-01/AppConfiguration.json
100-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.SignalRService/stable/2018-01-01/SignalRService.json
101-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.KeyVault/stable/2018-01-01/KeyVault.json
102-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json
103-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.Cache/stable/2018-01-01/RedisCache.json
104-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json
105-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json
106-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.PolicyInsights/stable/2018-01-01/PolicyInsights.json
107-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.ContainerService/stable/2018-01-01/ContainerService.json
108-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/APIManagement.json
109-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json
110-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.DataBox/stable/2018-01-01/DataBox.json
111-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/common.json
112-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json
113-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json
114-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.AVS/stable/2018-01-01/PrivateCloud.json
115-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.ApiCenter/stable/2018-01-01/ApiCenter.json
116-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/ContainerServiceEventResources.json
89+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json
90+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.EventHub/stable/2018-01-01/EventHub.json
91+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json
92+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json
93+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json
94+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.Devices/stable/2018-01-01/IotHub.json
95+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json
96+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.ServiceBus/stable/2018-01-01/ServiceBus.json
97+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.Media/stable/2018-01-01/MediaServices.json
98+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.Maps/stable/2018-01-01/Maps.json
99+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.AppConfiguration/stable/2018-01-01/AppConfiguration.json
100+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.SignalRService/stable/2018-01-01/SignalRService.json
101+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.KeyVault/stable/2018-01-01/KeyVault.json
102+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json
103+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.Cache/stable/2018-01-01/RedisCache.json
104+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json
105+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json
106+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.PolicyInsights/stable/2018-01-01/PolicyInsights.json
107+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.ContainerService/stable/2018-01-01/ContainerService.json
108+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/APIManagement.json
109+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json
110+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.DataBox/stable/2018-01-01/DataBox.json
111+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/common.json
112+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json
113+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json
114+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.AVS/stable/2018-01-01/PrivateCloud.json
115+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.ApiCenter/stable/2018-01-01/ApiCenter.json
116+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/ContainerServiceEventResources.json
117117

118118
```
119119

sdk/eventgrid/azure-messaging-eventgrid/swagger/src/main/java/EventGridCustomization.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,27 @@ public void customize(LibraryCustomization customization, Logger logger) {
248248
customizeCommunicationIdentifierModelKind(customization);
249249
customizeAcsMessageChannelEventError(customization);
250250
customizeCentralCommuicationEvents(customization);
251+
customizeCommuicationSMSEvents(customization);
252+
}
253+
254+
public void customizeCommuicationSMSEvents(LibraryCustomization customization) {
255+
PackageCustomization packageModels = customization.getPackage("com.azure.messaging.eventgrid.systemevents");
256+
ClassCustomization classCustomization = packageModels.getClass("AcsSmsReceivedEventData");
257+
classCustomization.customizeAst(ast -> {
258+
ast.getClassByName("AcsSmsReceivedEventData").ifPresent(clazz -> {
259+
clazz.getFieldByName("segmentCount").get().getVariable(0).setType("Integer");
260+
});
261+
});
262+
263+
classCustomization.customizeAst(comp -> {
264+
ClassOrInterfaceDeclaration clazz = comp.getClassByName("AcsSmsReceivedEventData").get();
265+
clazz.getMethodsByName("setSegmentCount").forEach(m -> {
266+
m.getParameter(0).setType(Integer.class);
267+
});
268+
clazz.getMethodsByName("getSegmentCount").forEach(m -> {
269+
m.setType(Integer.class);
270+
});
271+
});
251272
}
252273

253274
public void customizeCentralCommuicationEvents(LibraryCustomization customization) {

0 commit comments

Comments
 (0)