-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Update jobs.json to latest generated swagger file as well as it's updated examples #2909
Conversation
Automation for azure-sdk-for-pythonA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
Hi There, I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result: 💡 Please review potentially introduced Error(s)/Warning(s): Analysis Report 💡 File: AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback Thanks for your co-operation. |
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: |
Automation for azure-sdk-for-nodeThe initial PR has been merged into your service PR: |
You are introducing breaking changes to all the generated client SDKs. Should this be combined with API version bump PR? |
This API is not yet published in the SDK, so there is technically no breaking change here. |
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.
Looks great, just undo readme.md plz
@@ -75,6 +75,7 @@ input-file: | |||
- Microsoft.Sql/preview/2017-03-01-preview/serverAutomaticTuning.json | |||
- Microsoft.Sql/preview/2017-03-01-preview/serverDnsAliases.json | |||
- Microsoft.Sql/preview/2017-03-01-preview/restorePoints.json | |||
- Microsoft.Sql/preview/2017-03-01-preview/jobs.json |
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.
Please don't add to readme.md until we are ready to publish SDK.
…e.md until ready to publish sdk
Undid readme.md, updating title to remove do not merge. |
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.
Thanks!
Hi There, I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result: File: AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback Thanks for your co-operation. |
@johnpaulkee we will need ARM to sign off on the entire swagger spec. When are you planning to undergo API review? |
It has been reviewed internally by email and already lit up, but I don't think @ravbhatnagar has explicitly approved on github. |
@ravbhatnagar could you take a look to the entire swagger? We never got a sign-off from ARM. |
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}": { |
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.
GET on /targets or /steps returns the same entity - JobExecution?
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.
Returns JobStepExecutions for /steps and JobTargetExecutions for /targets.
Returned model is similar, except TargetExecutions includes StepName and TargetId which helps identify which target this step (script) was run on.
Signing off! |
@johnpaulkee @jaredmoo Please add the readme.md changes back and keep this PR open until your service will be deployed and SDK's could be generated. |
Also please fix linter error - https://travis-ci.org/Azure/azure-rest-api-specs/jobs/369280805 |
Please fix sample issues reported in sample validation - https://travis-ci.org/Azure/azure-rest-api-specs/jobs/369280815 |
The linter error is expected. Operation API is defined in a different file (operations.json) The The tablename errors (e.g. https://travis-ci.org/Azure/azure-rest-api-specs/jobs/369280815#L900 ) might be legit. @johnpaulkee I'll let you check it out. |
Filed Azure/oav#239 for the OAV false positive. |
I believe I fixed the job step output example issues. Waiting on the build validation to confirm. |
I've also removed [Do not merge] from the title as we're intending on checking this in since we're getting close to public preview and we've received ARM sign off. |
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.
Minor comments. Thanks!
@@ -51,6 +51,8 @@ Differences in v3 (compared to v2): | |||
- `+2017-10-01-preview/capabilities.json` | |||
- `+2017-10-01-preview/databases.json` | |||
- `+2017-10-01-preview/elasticPools.json` | |||
- New SQL database agent APIs |
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.
This should not be a difference between v3 and v2, because jobs.json is in all composite version (v3, v2, v1)
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.
In other words: please delete the new line 54 & 55 :)
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.
You got it :)
@@ -287,6 +292,7 @@ input-file: | |||
- Microsoft.Sql/preview/2017-03-01-preview/serverAutomaticTuning.json | |||
- Microsoft.Sql/preview/2017-03-01-preview/serverDnsAliases.json | |||
- Microsoft.Sql/preview/2017-03-01-preview/restorePoints.json | |||
- Microsoft.Sql/preview/2017-03-01-preview/jobs.json |
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.
please keep in alphabetical order (in all the sections you added to)
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.
Will update to be in alphabetical order.
…in it's 2017-03-01-preview regions as well as removed comment for difference between v3 and v2
Summary
Updated sql readme.md to include jobs.json where necessary (will need confirmation if this is correctly placed)
Regenerated swagger to include job step and target executions, sku name and capacity support in agent createOrUpdate and get, as well as filter for top executions.
Job examples were updated to reflect correct json request and response paramters for agent and target group.
Review checklist
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
( I ran this: oav validate-spec jobs.json --azure-validator and it gave no errors were found )