-
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
Setting the response type for AttachDetach API spec to StorageProfile #26910
Merged
grizzlytheodore
merged 3 commits into
Azure:feature/cplat-2023-09-01
from
tanishkalra08:feature/cplat-2023-09-01
Dec 1, 2023
Merged
Setting the response type for AttachDetach API spec to StorageProfile #26910
grizzlytheodore
merged 3 commits into
Azure:feature/cplat-2023-09-01
from
tanishkalra08:feature/cplat-2023-09-01
Dec 1, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tanishkalra08
requested review from
Sandido,
dkulkarni-ms,
haagha,
MS-syh2qs and
grizzlytheodore
as code owners
December 1, 2023 04:59
Next Steps to Merge✔️ All automated merging requirements have been met! Refer to step 4 in the PR workflow diagram (even if your PR is for data plane, not ARM). |
Swagger Validation Report
|
compared swaggers (via Oad v0.10.4)] | new version | base version |
---|---|---|
virtualMachine.json | 2023-09-01(cb96539) | 2023-07-01(main) |
virtualMachineScaleSet.json | 2023-09-01(cb96539) | 2023-07-01(main) |
️⚠️
LintDiff: 0 Warnings warning [Detail]
compared tags (via openapi-validator v2.1.6) | new version | base version |
---|---|---|
package-2023-09-01 | package-2023-09-01(cb96539) | package-2023-09-01(feature/cplat-2023-09-01) |
The following errors/warnings exist before current PR submission:
Only 30 items are listed, please refer to log for more details.
Rule | Message |
---|---|
GetCollectionResponseSchema |
The response in the GET collection operation 'VirtualMachineRunCommands_List' does not match the response definition in the individual GET operation 'VirtualMachineRunCommands_Get' . Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L36 |
PatchResponseCodes |
Long-running PATCH operations must have responses with 200, 202 and default return codes. They also must not have other response codes. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L112 |
LroPatch202 |
The async patch operation should return 202. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L156 |
DeleteResponseCodes |
Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L177 |
LroLocationHeader |
A 202 response should include an Location response header. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L216 |
ParametersInPointGet |
Query parameter $expand should be removed. Point Get's MUST not have query parameters other than api version. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L245 |
GetCollectionOnlyHasValueAndNextLink |
Get endpoints for collections of resources must only have the value and nextLink properties in their model.Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L344 |
LroLocationHeader |
A 202 response should include an Location response header. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L457 |
PatchResponseCodes |
Long-running PATCH operations must have responses with 200, 202 and default return codes. They also must not have other response codes. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L700 |
LroPatch202 |
The async patch operation should return 202. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L753 |
DeleteResponseCodes |
Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L777 |
LroLocationHeader |
A 202 response should include an Location response header. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L816 |
ParametersInPointGet |
Query parameter $expand should be removed. Point Get's MUST not have query parameters other than api version. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L842 |
GetCollectionOnlyHasValueAndNextLink |
Get endpoints for collections of resources must only have the value and nextLink properties in their model.Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L941 |
PostResponseCodes |
200 return code does not have a schema specified. LRO POST must have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L963 |
LroLocationHeader |
A 202 response should include an Location response header. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L995 |
PostResponseCodes |
200 return code does not have a schema specified. LRO POST must have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L1017 |
ParametersInPost |
hibernate is a query parameter. Post operation must not contain any query parameter other than api-version. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L1023 |
LroLocationHeader |
A 202 response should include an Location response header. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L1056 |
GetCollectionOnlyHasValueAndNextLink |
Get endpoints for collections of resources must only have the value and nextLink properties in their model.Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L1296 |
PostResponseCodes |
200 return code does not have a schema specified. LRO POST must have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L1318 |
ParametersInPost |
skipShutdown is a query parameter. Post operation must not contain any query parameter other than api-version. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L1324 |
LroLocationHeader |
A 202 response should include an Location response header. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L1358 |
PostResponseCodes |
200 return code does not have a schema specified. LRO POST must have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L1380 |
LroLocationHeader |
A 202 response should include an Location response header. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L1412 |
PostResponseCodes |
200 return code does not have a schema specified. LRO POST must have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L1431 |
LroLocationHeader |
A 202 response should include an Location response header. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L1463 |
PostResponseCodes |
200 return code does not have a schema specified. LRO POST must have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L1485 |
LroLocationHeader |
A 202 response should include an Location response header. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L1517 |
PostResponseCodes |
200 return code does not have a schema specified. LRO POST must have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified. Location: ComputeRP/stable/2023-09-01/virtualMachine.json#L1539 |
️⚠️
Avocado: 1 Warnings warning [Detail]
Rule | Message |
---|---|
The default tag contains multiple API versions swaggers. readme: specification/compute/resource-manager/readme.md tag: specification/compute/resource-manager/readme.md#tag-package-2023-09-01 |
️️✔️
SwaggerAPIView succeeded [Detail] [Expand]
️️✔️
TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️
ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️
SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️
SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️
PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️
Automated merging requirements met succeeded [Detail] [Expand]
Swagger Generation Artifacts
|
Generated ApiView
|
microsoft-github-policy-service
bot
added
the
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
label
Dec 1, 2023
Thank you for your contribution tanishkalra08! We will review the pull request and get back to you soon. |
This was referenced Dec 1, 2023
grizzlytheodore
merged commit Dec 1, 2023
5d17c45
into
Azure:feature/cplat-2023-09-01
25 of 27 checks passed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
resource-manager
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ARM (Control Plane) API Specification Update Pull Request
Context
As per the suggestions for POST request we shouldn't be returning a tracked object i.e VirtualMachine in this case. Changing the spec to return only the required minimal response i.e the StorageProfile.
PR review workflow diagram
Please understand this diagram before proceeding. It explains how to get your PR approved & merged.
Click here to see the details of Step 1
Breaking changes review (Diagram Step 1)
If the automation determines you have breaking changes, i.e. Step 1 from the diagram applies to you,
you must follow the breaking changes process.
IMPORTANT This applies even if:
Such claims must be reviewed, and the process is the same.
Click here to see the details of Step 2
ARM API changes review (Diagram Step 2)
ARMReview
label.Click here to see the diagram footnotes
Diagram footnotes
[1] ARM review queue (for merge queues, see [2])
The PRs are processed by time opened, ascending. Your PR may show up on 2nd or later page.
If you addressed Step 1 from the diagram and your PR is not showing up in the queue, ensure the label
ARMChangesRequested
is removed from your PR. This should cause the label
WaitForARMFeedback
to be added.[2] public repo merge queue, private repo merge queue (for ARM review queue, [1])
If you need further help with anything, see
Getting help
section below.Purpose of this PR
What's the purpose of this PR? Check all that apply. 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 ApiView
comment 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
Swagger-Suppression-Process
to get approval.
Getting help
and https://aka.ms/ci-fix.
queued
state, please add a comment with contents/azp run
.This should result in a new comment denoting a
PR validation pipeline
has started and the checks should be updated after few minutes.