Removes the 2016 API surface and consolidates specification files#37575
Removes the 2016 API surface and consolidates specification files#37575ComradeCow merged 2 commits intomainfrom
Conversation
Next Steps to Merge✅ All automated merging requirements have been met! To get your PR merged, see aka.ms/azsdk/specreview/merge.Comment generated by summarize-checks workflow run. |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews
|
| } | ||
| }, | ||
| "paths": { | ||
| "/subscriptions/{subscriptionId}/locations": { |
There was a problem hiding this comment.
@mikekistler these APIs already exist in https://github.com/Azure/azure-rest-api-specs/blob/main/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json and it doesn't belong to Subscription service here.
There was a problem hiding this comment.
@qiaozha this one seems more recent though? both files are not same. shouldn't they be brought in sync before deleting these?
There was a problem hiding this comment.
also some examples are mutually exclusive between 2 locations for this version.
There was a problem hiding this comment.
@sandipsh I don't understand what you're looking for. It's more recent because it was added when we created the specification for the 2018-03-01-preview API in #2535. I don't see any comments in that PR for why it came in, which is surprising.
At any rate, the Subscription RP isn't serving the /subscription, /subscriptions/{subscriptionId}, /tenants calls for ARM like this spec says. The Microsoft.Subscription version of /tenants says it returns additional properties that are not returned by ARM today. The Subscription RP has no code to handle calls for a 2016-06-01 API, and its manifest doesn't specify a 2016-06-01 api either. These specs are wrong and need to be cleaned up.
There was a problem hiding this comment.
there are differences as I mentioned above, but as long as these APIs are not already being served by that's a moot point. I am going to approve the PR.
|
The Avocado Checks are all caused by APIs we previously deprecated. The LintDiff checks are failing on the existing errors for those versions. This PR is ready for review. |
cafa4cd to
44f04ac
Compare
|
@qiaozha , @sandipsh could one of you apply the |
| ] | ||
| } | ||
| }, | ||
| "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Subscription/createSubscription": { |
There was a problem hiding this comment.
Are those new APIs really being supported in this specific version?
There was a problem hiding this comment.
They were APIs originally implemented in 2018-11-01-preview. For 2019-03-01-preview we included this path by referencing that 2018-11-01-preview in the readme here. Adding those operations manually to help resolve the MULTIPLE_API_ERROR Avocado error.
e3a16d4 to
dc1fd23
Compare
5653859 to
d1e56a0
Compare
|
Adding the Approved-Avocado tag on Ravi Eda's advice as the existing errors are all referencing deprecated APIs. We have to manually suppress these issues because of Azure/avocado#150 |
ARM (Control Plane) API Specification Update Pull Request
Tip
Overwhelmed by all this guidance? See the
Getting helpsection at the bottom of this PR description.PR review workflow diagram
Please understand this diagram before proceeding. It explains how to get your PR approved & merged.
Purpose of this PR
What's the purpose of this PR? Check the specific option that applies. This is mandatory!
Due diligence checklist
To merge this PR, you must go through the following checklist and confirm you understood
and followed the instructions by checking all the boxes:
ARM resource provider contract and
REST guidelines (estimated time: 4 hours).
I understand this is required before I can proceed to the diagram Step 2, "ARM API changes review", for this PR.
Additional information
Viewing API changes
For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the
Generated ApiViewcomment added to this PR. You can use ApiView to show API versions diff.Suppressing failures
If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
suppressions guide to get approval.
Getting help
Purpose of this PRandDue diligence checklist.write accessper aka.ms/azsdk/access#request-access-to-rest-api-or-sdk-repositoriesNext Steps to Mergecomment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state.and https://aka.ms/ci-fix.
queuedstate, please add a comment with contents/azp run.This should result in a new comment denoting a
PR validation pipelinehas started and the checks should be updated after few minutes.