-
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
Web ant94 2021 02 01 #15188
Web ant94 2021 02 01 #15188
Conversation
…o version 2021-02-01
…14594) Co-authored-by: Naveed Aziz <[email protected]>
* Carry over fixes from previous API version * Add needed suppressions
#15126) * Carry over changes from previous version. Fix issue with nested ARM resource envelopes * Fix Linter issues * Address model validation issues
Hi, @naveedaz Thanks for your PR. I am workflow bot for review process. Here are some small tips. Any feedback about review process or workflow bot, pls contact swagger and tools team. [email protected] |
[Call for Action] To better understand Azure service dev/test scenario, and support Azure service developer better on Swagger and REST API related tests in early phase, please help to fill in with this survey https://aka.ms/SurveyForEarlyPhase. It will take 5 to 10 minutes. If you already complete survey, please neglect this comment. Thanks. |
Swagger pipeline can not start as the pull request has merge conflicts. |
1 similar comment
Swagger pipeline can not start as the pull request has merge conflicts. |
Hi, @naveedaz your PR are labelled with WaitForARMFeedback. A notification email will be sent out shortly afterwards to notify ARM review board([email protected]). |
* Adds base for updating Microsoft.Web from version stable/2021-01-01 to version 2021-01-15 * Updates readme * Updates API version in new specs and examples * Add Cert and Domain Registration APIs. Fix publishingcredentialpolici… (#14738) * Add Cert and Domain Registration APIs. Fix publishingcredentialpolicies collection API response. Add networkconfig API verbs for sites and slots * Fix examples * Fix issue R4037 * Fix lintDiff issues * Fix more issues Co-authored-by: Naveed Aziz <[email protected]> * Add x-ms-pageable for ListBasicPublishingCredentialsPolicies APIs (#14960) Co-authored-by: Naveed Aziz <[email protected]> (cherry picked from commit d9249ed)
Swagger pipeline can not start as the pull request has merge conflicts. |
1 similar comment
Swagger pipeline can not start as the pull request has merge conflicts. |
Consider using a string enum, e.g. zonePolicy: { notZoned, zoneRedundant } or similar. Generally enums are more descriptive, flexible and future-proof than booleans and easier for customers to discover, understand and use. Refers to: specification/web/resource-manager/Microsoft.Web/stable/2021-02-01/CommonDefinitions.json:155 in 55a6949. [](commit_id = 55a6949, deletion_comment = False) |
Similar comment here re: boolean vs. string enum. Something like scalePolicy: { PerSite, Elastic } is preferred vs. two separate booleans. Enums also allow adding members without an API version bump. Refers to: specification/web/resource-manager/Microsoft.Web/stable/2021-02-01/CommonDefinitions.json:221 in 55a6949. [](commit_id = 55a6949, deletion_comment = False) |
Since you fleshing out the ARM resource model for this resource, consider implementing the collection GET as well to enable discovery. This would automatically give you support for Azure Policy on these resources. Note the singleton pattern for ARM resources still depends on collection GET returning an array with a single element for discovery. Refers to: specification/web/resource-manager/Microsoft.Web/stable/2021-02-01/WebApps.json:5945 in 55a6949. [](commit_id = 55a6949, deletion_comment = False) |
Similar point here: since you fleshing out the ARM resource model for this resource, consider implementing the collection GET as well to enable discovery. Refers to: specification/web/resource-manager/Microsoft.Web/stable/2021-02-01/WebApps.json:14868 in 55a6949. [](commit_id = 55a6949, deletion_comment = False) |
} | ||
}, | ||
"/subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation": { | ||
"post": { |
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.
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.
Unfortunately, the current implementation only throws an exception.
"$ref": "#/definitions/AppServiceCertificateOrder" | ||
} | ||
}, | ||
"201": { |
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.
"$ref": "#/definitions/AppServiceCertificateResource" | ||
} | ||
}, | ||
"201": { |
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.
"tags": [ | ||
"AppServiceCertificateOrders" | ||
], | ||
"summary": "Verify domain ownership for this certificate order.", |
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.
"tags": [ | ||
"AppServiceCertificateOrders" | ||
], | ||
"summary": "Verify domain ownership for this certificate order.", |
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.
...manager/Microsoft.CertificateRegistration/stable/2021-02-01/AppServiceCertificateOrders.json
Show resolved
Hide resolved
"readOnly": true, | ||
"x-ms-enum": { | ||
"name": "CertificateOrderActionType", | ||
"modelAsString": false |
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.
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 is not a change from previous versions. If we change modelAsString to true now is that going to cause more issues for customers with backwards compatibility?
Swagger pipeline can not start as the pull request has merge conflicts. |
1 similar comment
Swagger pipeline can not start as the pull request has merge conflicts. |
The swagger changes are late for the service and the API is already live with the boolean. We can consider enums for future API versions and new properties that we introduce but is this a blocker for this change? |
@naveedaz: please work with this week's on-call ARM reviewer (@chiragg4u) to complete this review. |
No.
No. The change to not have it be a full arm object addresses issue: #14824 |
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.
Changelog
Please ensure to add changelog with this PR by answering the following questions.
Contribution checklist:
If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist
Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.
Please ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.
If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from Breaking Change Review Board as defined in the Breaking Change Policy.
Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.