-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert ModelData.model to String #14702
Conversation
...digitaltwins-core/src/main/java/com/azure/digitaltwins/core/models/DigitalTwinModelData.java
Outdated
Show resolved
Hide resolved
...digitaltwins-core/src/main/java/com/azure/digitaltwins/core/models/DigitalTwinModelData.java
Outdated
Show resolved
Hide resolved
...digitaltwins-core/src/main/java/com/azure/digitaltwins/core/models/DigitalTwinModelData.java
Outdated
Show resolved
Hide resolved
Just to understand, why are we making this change? |
ModelData.model is of type Object in the generated code. We want to make it a String. This is the recommended approach from the SDK team. |
...azure-digitaltwins-core/src/main/java/com/azure/digitaltwins/core/util/ListModelOptions.java
Outdated
Show resolved
Hide resolved
...ure-digitaltwins-core/src/main/java/com/azure/digitaltwins/core/DigitalTwinsAsyncClient.java
Outdated
Show resolved
Hide resolved
...azure-digitaltwins-core/src/main/java/com/azure/digitaltwins/core/models/ModelConverter.java
Outdated
Show resolved
Hide resolved
...azure-digitaltwins-core/src/main/java/com/azure/digitaltwins/core/models/ModelConverter.java
Outdated
Show resolved
Hide resolved
...ure-digitaltwins-core/src/main/java/com/azure/digitaltwins/core/DigitalTwinsAsyncClient.java
Outdated
Show resolved
Hide resolved
...ure-digitaltwins-core/src/main/java/com/azure/digitaltwins/core/DigitalTwinsAsyncClient.java
Outdated
Show resolved
Hide resolved
...ure-digitaltwins-core/src/main/java/com/azure/digitaltwins/core/DigitalTwinsAsyncClient.java
Outdated
Show resolved
Hide resolved
...wins/azure-digitaltwins-core/src/main/java/com/azure/digitaltwins/core/models/ModelData.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small comments, looks good otherwise!
/azp run java - digitaltwins - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
In this PR, I have duplicated the ModelData file and named it DigitalTwinModelData and changed the model type from Object to String along with a constructor that takes in the ModelData.
changed all API surfaces that exposed the ModelData type to now use DigitalTwinModelData.