Skip to content

Commit 06062f3

Browse files
authored
Eg fix customization (#43860)
* formatting fixes after updates to customization * Update customization to work on Java 17+ * simplify rename
1 parent 400520f commit 06062f3

File tree

6 files changed

+121
-122
lines changed

6 files changed

+121
-122
lines changed

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

+11-11
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public final class AcsMicrosoftTeamsAppIdentifier implements JsonSerializable<Ac
2727
private CommunicationCloudEnvironmentModel cloud;
2828

2929
/**
30-
* Creates an instance of MicrosoftTeamsAppIdentifier class.
30+
* Creates an instance of AcsMicrosoftTeamsAppIdentifier class.
3131
*/
3232
public AcsMicrosoftTeamsAppIdentifier() {
3333
}
@@ -45,7 +45,7 @@ public String getAppId() {
4545
* Set the appId property: The Id of the Microsoft Teams application.
4646
*
4747
* @param appId the appId value to set.
48-
* @return the MicrosoftTeamsAppIdentifier object itself.
48+
* @return the AcsMicrosoftTeamsAppIdentifier object itself.
4949
*/
5050
public AcsMicrosoftTeamsAppIdentifier setAppId(String appId) {
5151
this.appId = appId;
@@ -67,7 +67,7 @@ public CommunicationCloudEnvironmentModel getCloud() {
6767
* missing.
6868
*
6969
* @param cloud the cloud value to set.
70-
* @return the MicrosoftTeamsAppIdentifier object itself.
70+
* @return the AcsMicrosoftTeamsAppIdentifier object itself.
7171
*/
7272
public AcsMicrosoftTeamsAppIdentifier setCloud(CommunicationCloudEnvironmentModel cloud) {
7373
this.cloud = cloud;
@@ -86,33 +86,33 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
8686
}
8787

8888
/**
89-
* Reads an instance of MicrosoftTeamsAppIdentifier from the JsonReader.
89+
* Reads an instance of AcsMicrosoftTeamsAppIdentifier from the JsonReader.
9090
*
9191
* @param jsonReader The JsonReader being read.
92-
* @return An instance of MicrosoftTeamsAppIdentifier if the JsonReader was pointing to an instance of it, or null
93-
* if it was pointing to JSON null.
92+
* @return An instance of AcsMicrosoftTeamsAppIdentifier if the JsonReader was pointing to an instance of it, or
93+
* null if it was pointing to JSON null.
9494
* @throws IllegalStateException If the deserialized JSON object was missing any required properties.
95-
* @throws IOException If an error occurs while reading the MicrosoftTeamsAppIdentifier.
95+
* @throws IOException If an error occurs while reading the AcsMicrosoftTeamsAppIdentifier.
9696
*/
9797
public static AcsMicrosoftTeamsAppIdentifier fromJson(JsonReader jsonReader) throws IOException {
9898
return jsonReader.readObject(reader -> {
99-
AcsMicrosoftTeamsAppIdentifier deserializedMicrosoftTeamsAppIdentifier
99+
AcsMicrosoftTeamsAppIdentifier deserializedAcsMicrosoftTeamsAppIdentifier
100100
= new AcsMicrosoftTeamsAppIdentifier();
101101
while (reader.nextToken() != JsonToken.END_OBJECT) {
102102
String fieldName = reader.getFieldName();
103103
reader.nextToken();
104104

105105
if ("appId".equals(fieldName)) {
106-
deserializedMicrosoftTeamsAppIdentifier.appId = reader.getString();
106+
deserializedAcsMicrosoftTeamsAppIdentifier.appId = reader.getString();
107107
} else if ("cloud".equals(fieldName)) {
108-
deserializedMicrosoftTeamsAppIdentifier.cloud
108+
deserializedAcsMicrosoftTeamsAppIdentifier.cloud
109109
= CommunicationCloudEnvironmentModel.fromString(reader.getString());
110110
} else {
111111
reader.skipChildren();
112112
}
113113
}
114114

115-
return deserializedMicrosoftTeamsAppIdentifier;
115+
return deserializedAcsMicrosoftTeamsAppIdentifier;
116116
});
117117
}
118118
}

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

+16-18
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;
@@ -21,6 +20,7 @@
2120
@Fluent
2221
public final class AcsRecordingFileStatusUpdatedEventData
2322
implements JsonSerializable<AcsRecordingFileStatusUpdatedEventData> {
23+
2424
/*
2525
* The details of recording storage information
2626
*/
@@ -64,7 +64,7 @@ public AcsRecordingFileStatusUpdatedEventData() {
6464

6565
/**
6666
* Get the recordingStorageInfo property: The details of recording storage information.
67-
*
67+
*
6868
* @return the recordingStorageInfo value.
6969
*/
7070
public AcsRecordingStorageInfoProperties getRecordingStorageInfo() {
@@ -73,7 +73,7 @@ public AcsRecordingStorageInfoProperties getRecordingStorageInfo() {
7373

7474
/**
7575
* Set the recordingStorageInfo property: The details of recording storage information.
76-
*
76+
*
7777
* @param recordingStorageInfo the recordingStorageInfo value to set.
7878
* @return the AcsRecordingFileStatusUpdatedEventData object itself.
7979
*/
@@ -85,7 +85,7 @@ public AcsRecordingStorageInfoProperties getRecordingStorageInfo() {
8585

8686
/**
8787
* Get the recordingStartTime property: The time at which the recording started.
88-
*
88+
*
8989
* @return the recordingStartTime value.
9090
*/
9191
public OffsetDateTime getRecordingStartTime() {
@@ -94,7 +94,7 @@ public OffsetDateTime getRecordingStartTime() {
9494

9595
/**
9696
* Set the recordingStartTime property: The time at which the recording started.
97-
*
97+
*
9898
* @param recordingStartTime the recordingStartTime value to set.
9999
* @return the AcsRecordingFileStatusUpdatedEventData object itself.
100100
*/
@@ -105,7 +105,7 @@ public AcsRecordingFileStatusUpdatedEventData setRecordingStartTime(OffsetDateTi
105105

106106
/**
107107
* Get the recordingDuration property: The recording duration.
108-
*
108+
*
109109
* @return the recordingDuration value.
110110
*/
111111
public Duration getRecordingDuration() {
@@ -117,7 +117,7 @@ public Duration getRecordingDuration() {
117117

118118
/**
119119
* Set the recordingDuration property: The recording duration.
120-
*
120+
*
121121
* @param recordingDuration the recordingDuration value to set.
122122
* @return the AcsRecordingFileStatusUpdatedEventData object itself.
123123
*/
@@ -132,7 +132,7 @@ public AcsRecordingFileStatusUpdatedEventData setRecordingDuration(Duration reco
132132

133133
/**
134134
* Get the recordingContentType property: The recording content type- AudioVideo, or Audio.
135-
*
135+
*
136136
* @return the recordingContentType value.
137137
*/
138138
public RecordingContentType getRecordingContentType() {
@@ -141,7 +141,7 @@ public RecordingContentType getRecordingContentType() {
141141

142142
/**
143143
* Set the recordingContentType property: The recording content type- AudioVideo, or Audio.
144-
*
144+
*
145145
* @param recordingContentType the recordingContentType value to set.
146146
* @return the AcsRecordingFileStatusUpdatedEventData object itself.
147147
*/
@@ -152,7 +152,7 @@ public AcsRecordingFileStatusUpdatedEventData setRecordingContentType(RecordingC
152152

153153
/**
154154
* Get the recordingChannelType property: The recording channel type - Mixed, Unmixed.
155-
*
155+
*
156156
* @return the recordingChannelType value.
157157
*/
158158
public RecordingChannelType getRecordingChannelType() {
@@ -161,7 +161,7 @@ public RecordingChannelType getRecordingChannelType() {
161161

162162
/**
163163
* Set the recordingChannelType property: The recording channel type - Mixed, Unmixed.
164-
*
164+
*
165165
* @param recordingChannelType the recordingChannelType value to set.
166166
* @return the AcsRecordingFileStatusUpdatedEventData object itself.
167167
*/
@@ -172,7 +172,7 @@ public AcsRecordingFileStatusUpdatedEventData setRecordingChannelType(RecordingC
172172

173173
/**
174174
* Get the recordingFormatType property: The recording format type - Mp4, Mp3, Wav.
175-
*
175+
*
176176
* @return the recordingFormatType value.
177177
*/
178178
public RecordingFormatType getRecordingFormatType() {
@@ -181,7 +181,7 @@ public RecordingFormatType getRecordingFormatType() {
181181

182182
/**
183183
* Set the recordingFormatType property: The recording format type - Mp4, Mp3, Wav.
184-
*
184+
*
185185
* @param recordingFormatType the recordingFormatType value to set.
186186
* @return the AcsRecordingFileStatusUpdatedEventData object itself.
187187
*/
@@ -192,7 +192,7 @@ public AcsRecordingFileStatusUpdatedEventData setRecordingFormatType(RecordingFo
192192

193193
/**
194194
* Get the sessionEndReason property: The reason for ending recording session.
195-
*
195+
*
196196
* @return the sessionEndReason value.
197197
*/
198198
public String getSessionEndReason() {
@@ -201,7 +201,7 @@ public String getSessionEndReason() {
201201

202202
/**
203203
* Set the sessionEndReason property: The reason for ending recording session.
204-
*
204+
*
205205
* @param sessionEndReason the sessionEndReason value to set.
206206
* @return the AcsRecordingFileStatusUpdatedEventData object itself.
207207
*/
@@ -234,7 +234,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
234234

235235
/**
236236
* Reads an instance of AcsRecordingFileStatusUpdatedEventData from the JsonReader.
237-
*
237+
*
238238
* @param jsonReader The JsonReader being read.
239239
* @return An instance of AcsRecordingFileStatusUpdatedEventData if the JsonReader was pointing to an instance of
240240
* it, or null if it was pointing to JSON null.
@@ -247,7 +247,6 @@ public static AcsRecordingFileStatusUpdatedEventData fromJson(JsonReader jsonRea
247247
while (reader.nextToken() != JsonToken.END_OBJECT) {
248248
String fieldName = reader.getFieldName();
249249
reader.nextToken();
250-
251250
if ("recordingStorageInfo".equals(fieldName)) {
252251
deserializedAcsRecordingFileStatusUpdatedEventData.recordingStorageInfo
253252
= AcsRecordingStorageInfoProperties.fromJson(reader);
@@ -272,7 +271,6 @@ public static AcsRecordingFileStatusUpdatedEventData fromJson(JsonReader jsonRea
272271
reader.skipChildren();
273272
}
274273
}
275-
276274
return deserializedAcsRecordingFileStatusUpdatedEventData;
277275
});
278276
}

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

+6-7
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.Immutable;
@@ -20,6 +19,7 @@
2019
@Immutable
2120
public final class MediaLiveEventChannelArchiveHeartbeatEventData
2221
implements JsonSerializable<MediaLiveEventChannelArchiveHeartbeatEventData> {
22+
2323
/*
2424
* Gets the channel latency in ms.
2525
*/
@@ -29,7 +29,6 @@ public final class MediaLiveEventChannelArchiveHeartbeatEventData
2929
* Gets the latency result code.
3030
*/
3131
private String latencyResultCode;
32-
static final ClientLogger LOGGER = new ClientLogger(MediaLiveEventChannelArchiveHeartbeatEventData.class);
3332

3433
/**
3534
* Creates an instance of MediaLiveEventChannelArchiveHeartbeatEventData class.
@@ -39,7 +38,7 @@ public MediaLiveEventChannelArchiveHeartbeatEventData() {
3938

4039
/**
4140
* Gets the duration of channel latency.
42-
*
41+
*
4342
* @return the duration of channel latency.
4443
*/
4544
public Duration getChannelLatency() {
@@ -58,7 +57,7 @@ public Duration getChannelLatency() {
5857

5958
/**
6059
* Get the latencyResultCode property: Gets the latency result code.
61-
*
60+
*
6261
* @return the latencyResultCode value.
6362
*/
6463
public String getLatencyResultCode() {
@@ -76,7 +75,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
7675

7776
/**
7877
* Reads an instance of MediaLiveEventChannelArchiveHeartbeatEventData from the JsonReader.
79-
*
78+
*
8079
* @param jsonReader The JsonReader being read.
8180
* @return An instance of MediaLiveEventChannelArchiveHeartbeatEventData if the JsonReader was pointing to an
8281
* instance of it, or null if it was pointing to JSON null.
@@ -90,7 +89,6 @@ public static MediaLiveEventChannelArchiveHeartbeatEventData fromJson(JsonReader
9089
while (reader.nextToken() != JsonToken.END_OBJECT) {
9190
String fieldName = reader.getFieldName();
9291
reader.nextToken();
93-
9492
if ("channelLatencyMs".equals(fieldName)) {
9593
deserializedMediaLiveEventChannelArchiveHeartbeatEventData.channelLatencyMs = reader.getString();
9694
} else if ("latencyResultCode".equals(fieldName)) {
@@ -99,8 +97,9 @@ public static MediaLiveEventChannelArchiveHeartbeatEventData fromJson(JsonReader
9997
reader.skipChildren();
10098
}
10199
}
102-
103100
return deserializedMediaLiveEventChannelArchiveHeartbeatEventData;
104101
});
105102
}
103+
104+
private static final ClientLogger LOGGER = new ClientLogger(MediaLiveEventChannelArchiveHeartbeatEventData.class);
106105
}

0 commit comments

Comments
 (0)