Skip to content

Commit 377fd3b

Browse files
authored
APIManagement and ACS events update (#45281)
1 parent 3dc0934 commit 377fd3b

File tree

169 files changed

+8467
-2432
lines changed

Some content is hidden

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

169 files changed

+8467
-2432
lines changed

eng/versioning/version_client.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ com.azure:azure-maps-geolocation;1.0.0-beta.3;1.0.0-beta.4
141141
com.azure:azure-maps-render;2.0.0-beta.2;2.0.0-beta.3
142142
com.azure:azure-maps-route;1.0.0-beta.3;1.0.0-beta.4
143143
com.azure:azure-maps-search;2.0.0-beta.2;2.0.0-beta.3
144-
com.azure:azure-messaging-eventgrid;4.29.1;4.30.0-beta.1
144+
com.azure:azure-messaging-eventgrid;4.29.1;4.30.0
145145
com.azure:azure-messaging-eventgrid-systemevents;1.0.0-beta.1;1.0.0-beta.2
146146
com.azure:azure-messaging-eventgrid-namespaces;1.1.3;1.2.0-beta.1
147147
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.30.0-beta.1</version> <!-- {x-version-update;com.azure:azure-messaging-eventgrid;current} -->
95+
<version>4.30.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: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
# Release History
22

3-
## 1.0.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.2 (2025-05-16)
44

55
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
6+
- Added new values to `SystemEventNames` related to Azure Communication Services and Azure Edge.
127

138
## 1.0.0-beta.1 (2025-02-26)
149

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

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
package com.azure.messaging.eventgrid;
55

6+
import com.azure.messaging.eventgrid.systemevents.AcsCallEndedEventData;
7+
import com.azure.messaging.eventgrid.systemevents.AcsCallParticipantAddedEventData;
8+
import com.azure.messaging.eventgrid.systemevents.AcsCallParticipantRemovedEventData;
9+
import com.azure.messaging.eventgrid.systemevents.AcsCallStartedEventData;
10+
import com.azure.messaging.eventgrid.systemevents.AcsChatAzureBotCommandReceivedInThreadEventData;
611
import com.azure.messaging.eventgrid.systemevents.AcsChatMessageDeletedEventData;
712
import com.azure.messaging.eventgrid.systemevents.AcsChatMessageDeletedInThreadEventData;
813
import com.azure.messaging.eventgrid.systemevents.AcsChatMessageEditedEventData;
@@ -19,6 +24,7 @@
1924
import com.azure.messaging.eventgrid.systemevents.AcsChatThreadPropertiesUpdatedEventData;
2025
import com.azure.messaging.eventgrid.systemevents.AcsChatThreadPropertiesUpdatedPerUserEventData;
2126
import com.azure.messaging.eventgrid.systemevents.AcsChatThreadWithUserDeletedEventData;
27+
import com.azure.messaging.eventgrid.systemevents.AcsChatTypingIndicatorReceivedInThreadEventData;
2228
import com.azure.messaging.eventgrid.systemevents.AcsEmailDeliveryReportReceivedEventData;
2329
import com.azure.messaging.eventgrid.systemevents.AcsEmailEngagementTrackingReportReceivedEventData;
2430
import com.azure.messaging.eventgrid.systemevents.AcsIncomingCallEventData;
@@ -58,6 +64,8 @@
5864
import com.azure.messaging.eventgrid.systemevents.ApiManagementApiReleaseDeletedEventData;
5965
import com.azure.messaging.eventgrid.systemevents.ApiManagementApiReleaseUpdatedEventData;
6066
import com.azure.messaging.eventgrid.systemevents.ApiManagementApiUpdatedEventData;
67+
import com.azure.messaging.eventgrid.systemevents.ApiManagementCircuitBreakerClosedEventData;
68+
import com.azure.messaging.eventgrid.systemevents.ApiManagementCircuitBreakerOpenedEventData;
6169
import com.azure.messaging.eventgrid.systemevents.ApiManagementGatewayApiAddedEventData;
6270
import com.azure.messaging.eventgrid.systemevents.ApiManagementGatewayApiRemovedEventData;
6371
import com.azure.messaging.eventgrid.systemevents.ApiManagementGatewayCertificateAuthorityCreatedEventData;
@@ -68,6 +76,8 @@
6876
import com.azure.messaging.eventgrid.systemevents.ApiManagementGatewayHostnameConfigurationCreatedEventData;
6977
import com.azure.messaging.eventgrid.systemevents.ApiManagementGatewayHostnameConfigurationDeletedEventData;
7078
import com.azure.messaging.eventgrid.systemevents.ApiManagementGatewayHostnameConfigurationUpdatedEventData;
79+
import com.azure.messaging.eventgrid.systemevents.ApiManagementGatewayTokenExpiredEventData;
80+
import com.azure.messaging.eventgrid.systemevents.ApiManagementGatewayTokenNearExpiryEventData;
7181
import com.azure.messaging.eventgrid.systemevents.ApiManagementGatewayUpdatedEventData;
7282
import com.azure.messaging.eventgrid.systemevents.ApiManagementProductCreatedEventData;
7383
import com.azure.messaging.eventgrid.systemevents.ApiManagementProductDeletedEventData;
@@ -107,6 +117,7 @@
107117
import com.azure.messaging.eventgrid.systemevents.DataBoxCopyCompletedEventData;
108118
import com.azure.messaging.eventgrid.systemevents.DataBoxCopyStartedEventData;
109119
import com.azure.messaging.eventgrid.systemevents.DataBoxOrderCompletedEventData;
120+
import com.azure.messaging.eventgrid.systemevents.EdgeSolutionVersionPublishedEventData;
110121
import com.azure.messaging.eventgrid.systemevents.EventGridMqttClientCreatedOrUpdatedEventData;
111122
import com.azure.messaging.eventgrid.systemevents.EventGridMqttClientDeletedEventData;
112123
import com.azure.messaging.eventgrid.systemevents.EventGridMqttClientSessionConnectedEventData;
@@ -212,6 +223,33 @@
212223
*/
213224
public final class SystemEventNames {
214225

226+
/**
227+
* Schema of the Data property of an EventGridEvent for a Microsoft.Communication.CallEnded event.
228+
*/
229+
public static final String ACS_CALL_ENDED = "Microsoft.Communication.CallEnded";
230+
231+
/**
232+
* Schema of the Data property of an EventGridEvent for a Microsoft.Communication.CallParticipantAdded event.
233+
*/
234+
public static final String ACS_CALL_PARTICIPANT_ADDED = "Microsoft.Communication.CallParticipantAdded";
235+
236+
/**
237+
* Schema of the Data property of an EventGridEvent for a Microsoft.Communication.CallParticipantRemoved event.
238+
*/
239+
public static final String ACS_CALL_PARTICIPANT_REMOVED = "Microsoft.Communication.CallParticipantRemoved";
240+
241+
/**
242+
* Schema of the Data property of an EventGridEvent for a Microsoft.Communication.CallStarted event.
243+
*/
244+
public static final String ACS_CALL_STARTED = "Microsoft.Communication.CallStarted";
245+
246+
/**
247+
* Schema of the Data property of an EventGridEvent for a
248+
* Microsoft.Communication.ChatAzureBotCommandReceivedInThread event.
249+
*/
250+
public static final String ACS_CHAT_AZURE_BOT_COMMAND_RECEIVED_IN_THREAD
251+
= "Microsoft.Communication.ChatAzureBotCommandReceivedInThread";
252+
215253
/**
216254
* Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageDeleted event.
217255
*/
@@ -304,6 +342,13 @@ public final class SystemEventNames {
304342
*/
305343
public static final String ACS_CHAT_THREAD_WITH_USER_DELETED = "Microsoft.Communication.ChatThreadWithUserDeleted";
306344

345+
/**
346+
* Schema of the Data property of an EventGridEvent for a
347+
* Microsoft.Communication.ChatTypingIndicatorReceivedInThread event.
348+
*/
349+
public static final String ACS_CHAT_TYPING_INDICATOR_RECEIVED_IN_THREAD
350+
= "Microsoft.Communication.ChatTypingIndicatorReceivedInThread";
351+
307352
/**
308353
* Schema of the Data property of an EventGridEvent for a Microsoft.Communication.EmailDeliveryReportReceived event.
309354
*/
@@ -511,6 +556,16 @@ public final class SystemEventNames {
511556
*/
512557
public static final String API_MANAGEMENT_API_UPDATED = "Microsoft.ApiManagement.APIUpdated";
513558

559+
/**
560+
* Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.CircuitBreaker.Closed event.
561+
*/
562+
public static final String API_MANAGEMENT_CIRCUIT_BREAKER_CLOSED = "Microsoft.ApiManagement.CircuitBreaker.Closed";
563+
564+
/**
565+
* Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.CircuitBreaker.Opened event.
566+
*/
567+
public static final String API_MANAGEMENT_CIRCUIT_BREAKER_OPENED = "Microsoft.ApiManagement.CircuitBreaker.Opened";
568+
514569
/**
515570
* Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayAPIAdded event.
516571
*/
@@ -573,6 +628,17 @@ public final class SystemEventNames {
573628
public static final String API_MANAGEMENT_GATEWAY_HOSTNAME_CONFIGURATION_UPDATED
574629
= "Microsoft.ApiManagement.GatewayHostnameConfigurationUpdated";
575630

631+
/**
632+
* Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayTokenExpired event.
633+
*/
634+
public static final String API_MANAGEMENT_GATEWAY_TOKEN_EXPIRED = "Microsoft.ApiManagement.GatewayTokenExpired";
635+
636+
/**
637+
* Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayTokenNearExpiry event.
638+
*/
639+
public static final String API_MANAGEMENT_GATEWAY_TOKEN_NEAR_EXPIRY
640+
= "Microsoft.ApiManagement.GatewayTokenNearExpiry";
641+
576642
/**
577643
* Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayUpdated event.
578644
*/
@@ -775,6 +841,11 @@ public final class SystemEventNames {
775841
*/
776842
public static final String DATA_BOX_ORDER_COMPLETED = "Microsoft.DataBox.OrderCompleted";
777843

844+
/**
845+
* Schema of the Data property of an EventGridEvent for a Microsoft.Edge.SolutionVersionPublished event.
846+
*/
847+
public static final String EDGE_SOLUTION_VERSION_PUBLISHED = "Microsoft.Edge.SolutionVersionPublished";
848+
778849
/**
779850
* Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event.
780851
*/
@@ -1028,6 +1099,8 @@ public final class SystemEventNames {
10281099

10291100
/**
10301101
* Schema of the Data property of an event grid event for a
1102+
* Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted preview event.Schema of the
1103+
* Data property of an event grid event for a
10311104
* Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted preview event.
10321105
*/
10331106
public static final String RESOURCE_NOTIFICATIONS_CONTAINER_SERVICE_EVENT_RESOURCES_SCHEDULED
@@ -1267,6 +1340,11 @@ public final class SystemEventNames {
12671340

12681341
private static final Map<String, Class<?>> SYSTEM_EVENT_MAPPINGS = new HashMap<String, Class<?>>() {
12691342
{
1343+
put(ACS_CALL_ENDED, AcsCallEndedEventData.class);
1344+
put(ACS_CALL_PARTICIPANT_ADDED, AcsCallParticipantAddedEventData.class);
1345+
put(ACS_CALL_PARTICIPANT_REMOVED, AcsCallParticipantRemovedEventData.class);
1346+
put(ACS_CALL_STARTED, AcsCallStartedEventData.class);
1347+
put(ACS_CHAT_AZURE_BOT_COMMAND_RECEIVED_IN_THREAD, AcsChatAzureBotCommandReceivedInThreadEventData.class);
12701348
put(ACS_CHAT_MESSAGE_DELETED, AcsChatMessageDeletedEventData.class);
12711349
put(ACS_CHAT_MESSAGE_DELETED_IN_THREAD, AcsChatMessageDeletedInThreadEventData.class);
12721350
put(ACS_CHAT_MESSAGE_EDITED, AcsChatMessageEditedEventData.class);
@@ -1284,6 +1362,7 @@ public final class SystemEventNames {
12841362
put(ACS_CHAT_THREAD_PROPERTIES_UPDATED, AcsChatThreadPropertiesUpdatedEventData.class);
12851363
put(ACS_CHAT_THREAD_PROPERTIES_UPDATED_PER_USER, AcsChatThreadPropertiesUpdatedPerUserEventData.class);
12861364
put(ACS_CHAT_THREAD_WITH_USER_DELETED, AcsChatThreadWithUserDeletedEventData.class);
1365+
put(ACS_CHAT_TYPING_INDICATOR_RECEIVED_IN_THREAD, AcsChatTypingIndicatorReceivedInThreadEventData.class);
12871366
put(ACS_EMAIL_DELIVERY_REPORT_RECEIVED, AcsEmailDeliveryReportReceivedEventData.class);
12881367
put(ACS_EMAIL_ENGAGEMENT_TRACKING_REPORT_RECEIVED, AcsEmailEngagementTrackingReportReceivedEventData.class);
12891368
put(ACS_INCOMING_CALL, AcsIncomingCallEventData.class);
@@ -1323,6 +1402,8 @@ public final class SystemEventNames {
13231402
put(API_MANAGEMENT_API_RELEASE_DELETED, ApiManagementApiReleaseDeletedEventData.class);
13241403
put(API_MANAGEMENT_API_RELEASE_UPDATED, ApiManagementApiReleaseUpdatedEventData.class);
13251404
put(API_MANAGEMENT_API_UPDATED, ApiManagementApiUpdatedEventData.class);
1405+
put(API_MANAGEMENT_CIRCUIT_BREAKER_CLOSED, ApiManagementCircuitBreakerClosedEventData.class);
1406+
put(API_MANAGEMENT_CIRCUIT_BREAKER_OPENED, ApiManagementCircuitBreakerOpenedEventData.class);
13261407
put(API_MANAGEMENT_GATEWAY_API_ADDED, ApiManagementGatewayApiAddedEventData.class);
13271408
put(API_MANAGEMENT_GATEWAY_API_REMOVED, ApiManagementGatewayApiRemovedEventData.class);
13281409
put(API_MANAGEMENT_GATEWAY_CERTIFICATE_AUTHORITY_CREATED,
@@ -1339,6 +1420,8 @@ public final class SystemEventNames {
13391420
ApiManagementGatewayHostnameConfigurationDeletedEventData.class);
13401421
put(API_MANAGEMENT_GATEWAY_HOSTNAME_CONFIGURATION_UPDATED,
13411422
ApiManagementGatewayHostnameConfigurationUpdatedEventData.class);
1423+
put(API_MANAGEMENT_GATEWAY_TOKEN_EXPIRED, ApiManagementGatewayTokenExpiredEventData.class);
1424+
put(API_MANAGEMENT_GATEWAY_TOKEN_NEAR_EXPIRY, ApiManagementGatewayTokenNearExpiryEventData.class);
13421425
put(API_MANAGEMENT_GATEWAY_UPDATED, ApiManagementGatewayUpdatedEventData.class);
13431426
put(API_MANAGEMENT_PRODUCT_CREATED, ApiManagementProductCreatedEventData.class);
13441427
put(API_MANAGEMENT_PRODUCT_DELETED, ApiManagementProductDeletedEventData.class);
@@ -1379,6 +1462,7 @@ public final class SystemEventNames {
13791462
put(DATA_BOX_COPY_COMPLETED, DataBoxCopyCompletedEventData.class);
13801463
put(DATA_BOX_COPY_STARTED, DataBoxCopyStartedEventData.class);
13811464
put(DATA_BOX_ORDER_COMPLETED, DataBoxOrderCompletedEventData.class);
1465+
put(EDGE_SOLUTION_VERSION_PUBLISHED, EdgeSolutionVersionPublishedEventData.class);
13821466
put(EVENT_GRID_MQTT_CLIENT_CREATED_OR_UPDATED, EventGridMqttClientCreatedOrUpdatedEventData.class);
13831467
put(EVENT_GRID_MQTT_CLIENT_DELETED, EventGridMqttClientDeletedEventData.class);
13841468
put(EVENT_GRID_MQTT_CLIENT_SESSION_CONNECTED, EventGridMqttClientSessionConnectedEventData.class);

sdk/eventgrid/azure-messaging-eventgrid-systemevents/src/main/java/com/azure/messaging/eventgrid/implementation/models/AcsRouterCommunicationError.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,16 @@ public final class AcsRouterCommunicationError implements JsonSerializable<AcsRo
4646
* List of Router Communication Errors
4747
*/
4848
@Generated
49-
private final List<AcsRouterCommunicationError> details;
49+
private List<AcsRouterCommunicationError> details;
5050

5151
/**
5252
* Creates an instance of AcsRouterCommunicationError class.
5353
*
5454
* @param innererror the innererror value to set.
55-
* @param details the details value to set.
5655
*/
5756
@Generated
58-
private AcsRouterCommunicationError(AcsRouterCommunicationError innererror,
59-
List<AcsRouterCommunicationError> details) {
57+
private AcsRouterCommunicationError(AcsRouterCommunicationError innererror) {
6058
this.innererror = innererror;
61-
this.details = details;
6259
}
6360

6461
/**
@@ -119,7 +116,6 @@ public List<AcsRouterCommunicationError> getDetails() {
119116
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
120117
jsonWriter.writeStartObject();
121118
jsonWriter.writeJsonField("innererror", this.innererror);
122-
jsonWriter.writeArrayField("details", this.details, (writer, element) -> writer.writeJson(element));
123119
jsonWriter.writeStringField("code", this.code);
124120
jsonWriter.writeStringField("message", this.message);
125121
jsonWriter.writeStringField("target", this.target);
@@ -162,7 +158,8 @@ public static AcsRouterCommunicationError fromJson(JsonReader jsonReader) throws
162158
}
163159
}
164160
AcsRouterCommunicationError deserializedAcsRouterCommunicationError
165-
= new AcsRouterCommunicationError(innererror, details);
161+
= new AcsRouterCommunicationError(innererror);
162+
deserializedAcsRouterCommunicationError.details = details;
166163
deserializedAcsRouterCommunicationError.code = code;
167164
deserializedAcsRouterCommunicationError.message = message;
168165
deserializedAcsRouterCommunicationError.target = target;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package com.azure.messaging.eventgrid.systemevents;
6+
7+
import com.azure.core.annotation.Generated;
8+
import com.azure.core.annotation.Immutable;
9+
import com.azure.json.JsonReader;
10+
import com.azure.json.JsonSerializable;
11+
import com.azure.json.JsonToken;
12+
import com.azure.json.JsonWriter;
13+
import java.io.IOException;
14+
15+
/**
16+
* Schema of calling event reason properties.
17+
*/
18+
@Immutable
19+
public final class AcsCallEndReasonProperties implements JsonSerializable<AcsCallEndReasonProperties> {
20+
/*
21+
* Reason code for ending the call.
22+
*/
23+
@Generated
24+
private Integer code;
25+
26+
/*
27+
* Reason subcode for ending the call.
28+
*/
29+
@Generated
30+
private Integer subCode;
31+
32+
/*
33+
* Reason for the ending the call.
34+
*/
35+
@Generated
36+
private String phrase;
37+
38+
/**
39+
* Creates an instance of AcsCallEndReasonProperties class.
40+
*/
41+
@Generated
42+
private AcsCallEndReasonProperties() {
43+
}
44+
45+
/**
46+
* Get the code property: Reason code for ending the call.
47+
*
48+
* @return the code value.
49+
*/
50+
@Generated
51+
public Integer getCode() {
52+
return this.code;
53+
}
54+
55+
/**
56+
* Get the subCode property: Reason subcode for ending the call.
57+
*
58+
* @return the subCode value.
59+
*/
60+
@Generated
61+
public Integer getSubCode() {
62+
return this.subCode;
63+
}
64+
65+
/**
66+
* Get the phrase property: Reason for the ending the call.
67+
*
68+
* @return the phrase value.
69+
*/
70+
@Generated
71+
public String getPhrase() {
72+
return this.phrase;
73+
}
74+
75+
/**
76+
* {@inheritDoc}
77+
*/
78+
@Generated
79+
@Override
80+
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
81+
jsonWriter.writeStartObject();
82+
jsonWriter.writeNumberField("code", this.code);
83+
jsonWriter.writeNumberField("subCode", this.subCode);
84+
jsonWriter.writeStringField("phrase", this.phrase);
85+
return jsonWriter.writeEndObject();
86+
}
87+
88+
/**
89+
* Reads an instance of AcsCallEndReasonProperties from the JsonReader.
90+
*
91+
* @param jsonReader The JsonReader being read.
92+
* @return An instance of AcsCallEndReasonProperties if the JsonReader was pointing to an instance of it, or null if
93+
* it was pointing to JSON null.
94+
* @throws IOException If an error occurs while reading the AcsCallEndReasonProperties.
95+
*/
96+
@Generated
97+
public static AcsCallEndReasonProperties fromJson(JsonReader jsonReader) throws IOException {
98+
return jsonReader.readObject(reader -> {
99+
AcsCallEndReasonProperties deserializedAcsCallEndReasonProperties = new AcsCallEndReasonProperties();
100+
while (reader.nextToken() != JsonToken.END_OBJECT) {
101+
String fieldName = reader.getFieldName();
102+
reader.nextToken();
103+
104+
if ("code".equals(fieldName)) {
105+
deserializedAcsCallEndReasonProperties.code = reader.getNullable(JsonReader::getInt);
106+
} else if ("subCode".equals(fieldName)) {
107+
deserializedAcsCallEndReasonProperties.subCode = reader.getNullable(JsonReader::getInt);
108+
} else if ("phrase".equals(fieldName)) {
109+
deserializedAcsCallEndReasonProperties.phrase = reader.getString();
110+
} else {
111+
reader.skipChildren();
112+
}
113+
}
114+
115+
return deserializedAcsCallEndReasonProperties;
116+
});
117+
}
118+
}

0 commit comments

Comments
 (0)