-
Notifications
You must be signed in to change notification settings - Fork 5.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
BatchAI. Several fixes #3038
BatchAI. Several fixes #3038
Conversation
It fixes auto-generated clients.
Unique subdirectory will be only generated for jobs because only jobs generate output and so may have conflict with previous job versions.
Automation for azure-sdk-for-pythonThe initial PR has been merged into your service PR: |
AutoRest linter results for ARM Related Validation Errors/WarningsThese errors are reported by the ARM team's validation tools, reachout to ARM RP API Review directly for any questions or concerns. File: specification/batchai/resource-manager/readme.md
|
AutoRest linter results for SDK Related Validation Errors/WarningsThese errors are reported by the SDK team's validation tools, reachout to ADX Swagger Reviewers directly for any questions or concerns. File: specification/batchai/resource-manager/readme.md
|
@@ -3774,8 +3774,18 @@ | |||
}, | |||
"description": "Values returned by the List operation." | |||
}, | |||
"ExperimentBaseProperties": { | |||
"properties": { |
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's the value to have the empty type?
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.
If we do not specify it, autogenerated C# client still has ExperimentCreationParameter which has type Object. Object will be very confusing for users.
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.
OK, I dont understand this change and looks like it is added for the purpose of better experience in SDK.
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.
@AlexanderYukhanov I mean, what's the purpose of the type?
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.
Ok, I'm missing something here.
ExperimentBaseProperties
doesn't contain anything
ExperimentCretationParameters
only has a reference to ExperimentBaseProperties
and declares x-ms-flatten
.. What exactly are you asking users to pass into this function? What good are empty objects without any definition?
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.
We just need to have an experiment create api which doesn't require any parameters but without this helper structure the generated code looks like this:
public async Task<AzureOperationResponse<Experiment>> CreateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string experimentName, object parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
Please notice "oject parameters" in the signature.
If we add this structure the parameters have reasonable type ExperimentCreateParameters and become optional.
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.
We have removed ExperimentCreationParameters completely now.
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.
ARM does not need to sign off on this change. Anyway, this is something done for better generated code. removing the ARM signoff label.
Automation for azure-sdk-for-nodeThe initial PR has been merged into your service PR: |
Automation for azure-libraries-for-javaThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-goThe initial PR has been merged into your service PR: |
AutoRest linter results for ARM Related Validation Errors/WarningsThese errors are reported by the ARM team's validation tools, reachout to ARM RP API Review directly for any questions or concerns. File: specification/batchai/resource-manager/readme.md
|
AutoRest linter results for SDK Related Validation Errors/WarningsThese errors are reported by the SDK team's validation tools, reachout to ADX Swagger Reviewers directly for any questions or concerns. File: specification/batchai/resource-manager/readme.md
|
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-version
in the path should match theapi-version
in the spec).Quality of Swagger