Skip to content

Commit

Permalink
simplify rename
Browse files Browse the repository at this point in the history
  • Loading branch information
billwert committed Jan 22, 2025
1 parent 7fe9a74 commit e555ae2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public final class AcsMicrosoftTeamsAppIdentifier implements JsonSerializable<Ac
private CommunicationCloudEnvironmentModel cloud;

/**
* Creates an instance of MicrosoftTeamsAppIdentifier class.
* Creates an instance of AcsMicrosoftTeamsAppIdentifier class.
*/
public AcsMicrosoftTeamsAppIdentifier() {
}
Expand All @@ -45,7 +45,7 @@ public String getAppId() {
* Set the appId property: The Id of the Microsoft Teams application.
*
* @param appId the appId value to set.
* @return the MicrosoftTeamsAppIdentifier object itself.
* @return the AcsMicrosoftTeamsAppIdentifier object itself.
*/
public AcsMicrosoftTeamsAppIdentifier setAppId(String appId) {
this.appId = appId;
Expand All @@ -67,7 +67,7 @@ public CommunicationCloudEnvironmentModel getCloud() {
* missing.
*
* @param cloud the cloud value to set.
* @return the MicrosoftTeamsAppIdentifier object itself.
* @return the AcsMicrosoftTeamsAppIdentifier object itself.
*/
public AcsMicrosoftTeamsAppIdentifier setCloud(CommunicationCloudEnvironmentModel cloud) {
this.cloud = cloud;
Expand All @@ -86,33 +86,33 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
}

/**
* Reads an instance of MicrosoftTeamsAppIdentifier from the JsonReader.
* Reads an instance of AcsMicrosoftTeamsAppIdentifier from the JsonReader.
*
* @param jsonReader The JsonReader being read.
* @return An instance of MicrosoftTeamsAppIdentifier if the JsonReader was pointing to an instance of it, or null
* if it was pointing to JSON null.
* @return An instance of AcsMicrosoftTeamsAppIdentifier if the JsonReader was pointing to an instance of it, or
* null if it was pointing to JSON null.
* @throws IllegalStateException If the deserialized JSON object was missing any required properties.
* @throws IOException If an error occurs while reading the MicrosoftTeamsAppIdentifier.
* @throws IOException If an error occurs while reading the AcsMicrosoftTeamsAppIdentifier.
*/
public static AcsMicrosoftTeamsAppIdentifier fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
AcsMicrosoftTeamsAppIdentifier deserializedMicrosoftTeamsAppIdentifier
AcsMicrosoftTeamsAppIdentifier deserializedAcsMicrosoftTeamsAppIdentifier
= new AcsMicrosoftTeamsAppIdentifier();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();

if ("appId".equals(fieldName)) {
deserializedMicrosoftTeamsAppIdentifier.appId = reader.getString();
deserializedAcsMicrosoftTeamsAppIdentifier.appId = reader.getString();
} else if ("cloud".equals(fieldName)) {
deserializedMicrosoftTeamsAppIdentifier.cloud
deserializedAcsMicrosoftTeamsAppIdentifier.cloud
= CommunicationCloudEnvironmentModel.fromString(reader.getString());
} else {
reader.skipChildren();
}
}

return deserializedMicrosoftTeamsAppIdentifier;
return deserializedAcsMicrosoftTeamsAppIdentifier;
});
}
}
2 changes: 1 addition & 1 deletion sdk/eventgrid/azure-messaging-eventgrid/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ directive:
to: RedisExportRdbCompletedEventData
- rename-model:
from: MicrosoftTeamsAppIdentifierModel
to: MicrosoftTeamsAppIdentifier
to: AcsMicrosoftTeamsAppIdentifier
- where-model: AcsIncomingCallEventData
rename-property:
from: onBehalfOfCallee
Expand Down

0 comments on commit e555ae2

Please sign in to comment.