-
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
Implement Models API Part #1 #14533
Implement Models API Part #1 #14533
Conversation
3ae9dba
to
68a49c1
Compare
...ure-digitaltwins-core/src/main/java/com/azure/digitaltwins/core/DigitalTwinsAsyncClient.java
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
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
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
public Mono<ModelData> getModel(String modelId) { } | ||
|
||
/** | ||
* Gets a model, including the model metadata and the model definition asynchronously. | ||
* @param modelId The Id of the model. | ||
* @return A REST response containing the model. | ||
* @return The ModelData and the http response |
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.
I have seen the format of "The Http response containing modelData"
We can decide one and use the same everywhere.
*/ | ||
@ServiceMethod(returns = ReturnType.COLLECTION) | ||
public Mono<Response<List<ModelData>>> createModelsWithResponse(List<String> models) { } | ||
public PagedFlux<ModelData> createModels(List<String> models) { } | ||
|
||
/** | ||
* Gets a model, including the model metadata and the model definition. | ||
* @param modelId The Id of the model. |
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.
Unique Identifier?
|
||
/** | ||
* Gets a model, including the model metadata and the model definition. | ||
* @param modelId The Id of the model. | ||
* @return The application/json model | ||
* @return The ModelData | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
public Mono<ModelData> getModel(String modelId) { } | ||
|
||
/** | ||
* Gets a model, including the model metadata and the model definition asynchronously. | ||
* @param modelId The Id of the model. |
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.
same here as above and other places
* Creates one or many models. | ||
* @param models The list of models to create. Each string corresponds to exactly one model. | ||
* @return A REST response containing the list of created models. | ||
* @return A {@link PagedIterable} of created ModelData. |
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.
Add a comment about context too?
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.
I will only update the actual implementation from now on
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.
What is part 2 suppose to contain?
Decommision and rest of it?
Decommission APIs and the Samples and tests.
* @return A {@link PagedFlux} of ModelData and the http response. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.COLLECTION) | ||
public PagedFlux<ModelData> listModels(ListModelOptions listModelOptions) { } |
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.
same here, with response?
/** | ||
* Deletes a model. | ||
* @param modelId The id for the model. The id is globally unique and case sensitive. | ||
* @return An empty Mono |
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.
do we even need to mention this return?
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.
Yes, we will get doc verification errors.
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.
What is part 2 suppose to contain?
Decommision and rest of it?
No description provided.