update Role based calls to new api version to support dataActions#2356
update Role based calls to new api version to support dataActions#2356mcardosos merged 10 commits intoAzure:masterfrom
Conversation
|
Did a commit to Azure/azure-sdk-for-python: |
|
Did a commit to Azure/azure-sdk-for-go: |
|
@mcardosos what can be done to remove the semantic issue for this PR,as the path mentioned in the error isn't used anywhere before /roledefinitionid example: id=/subscriptions//providers/Microsoft.Authorization/roleDefinitions/f0885aa8-0107-4e65-9a00-541286195838 |
| "required": true, | ||
| "type": "string", | ||
| "description": "The API version to use for this operation." | ||
| }, |
There was a problem hiding this comment.
Why not use the API version parameter already defined in the parameters section? #Resolved
| "description": "The namespace of the resource provider." | ||
| }, | ||
| { | ||
| "name": "api-version", |
There was a problem hiding this comment.
api-version [](start = 21, length = 11)
Same here. If the parameter is already defined somewhere else why not use it?
| "tags": [ | ||
| "ProviderOperationsMetadata" | ||
| ], | ||
| "operationId": "ProviderOperationsMetadata_Get", |
There was a problem hiding this comment.
ProviderOperationsMetadata_Get [](start = 24, length = 30)
Odata extension can be useful here
| "tags": [ | ||
| "ProviderOperationsMetadata" | ||
| ], | ||
| "operationId": "ProviderOperationsMetadata_List", |
There was a problem hiding this comment.
ProviderOperationsMetadata_List [](start = 24, length = 31)
Odata extension is useful here too
| "description": "Gets all permissions the caller has for a resource group.", | ||
| "parameters": [ | ||
| { | ||
| "name": "resourceGroupName", |
There was a problem hiding this comment.
resourceGroupName [](start = 21, length = 17)
If resource group name parameter is used in many operation, it also can be defined in the parameter section
|
Hello @darshanhs90 ! |
|
On the other hand, we are moving away from current branch. |
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| }, | ||
| "x-ms-odata": "#/definitions/RoleAssignmentFilter", |
There was a problem hiding this comment.
RoleAssignmentFilter [](start = 37, length = 20)
Not just RoleAssignment ?
There was a problem hiding this comment.
no it takes in the filter parameters as query parameter in the url,hence not the roleassignment
In reply to: 164927815 [](ancestors = 164927815)
|
@mcardosos when i added the x-ms-path,i got an error regarding that also Not sure what it expects in x-ms-path |
|
This commit was treated and no generation was made for Azure/azure-sdk-for-go |
|
Did a commit to Azure/azure-sdk-for-python: |
|
@darshanhs90 It expects that paths in the x-ms-path section also have a query (a dumb query ), just for disambiguation/ |
|
This commit was treated and no generation was made for Azure/azure-sdk-for-python |
|
This commit was treated and no generation was made for Azure/azure-sdk-for-go |
|
@mcardosos does autorest expect me to have both /roleassignment and /roledefinition in paths and add another /roledefintion?dummy in x-ms paths? |
|
No, just /roleassignment in paths, and /roledefinition with dummy in x-ms-paths |
|
@mcardosos included as mentioned by you,but still the linter is showing an error in this PR |
|
Did a commit to Azure/azure-sdk-for-python: |
|
Did a commit to Azure/azure-sdk-for-go: |
|
Did a commit to Azure/azure-sdk-for-python: |
|
Did a commit to Azure/azure-sdk-for-go: |
Swagger to SDK encountered a Subprocess error: (Azure/azure-sdk-for-go)
Command: ['/usr/local/bin/autorest', '/tmp/tmp0j9huvcm/rest/specification/authorization/resource-manager/readme.md', '--perform-load=false', '--swagger-to-sdk', '--output-artifact=configuration.json', '--input-file=foo', '--output-folder=/tmp/tmpb3is22rb'] AutoRest code generation utility [version: 2.0.4244; node: v7.10.1]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
There is a new version of AutoRest available (2.0.4245).
> You can install the newer version with with npm install -g autorest@latest
Loading AutoRest core '/tmp/.autorest/@microsoft.azure_autorest-core@2.0.4244/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4244)
ERROR: Syntax Error Encountered: Syntax error: can not read a block mapping entry; a multiline key may not be an implicit key
- file:///tmp/tmp0j9huvcm/rest/specification/authorization/resource-manager/readme.md:181:4
[OperationAbortedException] Error occurred. Exiting. |
Swagger to SDK encountered a Subprocess error: (Azure/azure-sdk-for-python)
Command: ['/usr/local/bin/autorest', '/tmp/tmphnqjrlbt/rest/specification/authorization/resource-manager/readme.md', '--perform-load=false', '--swagger-to-sdk', '--output-artifact=configuration.json', '--input-file=foo', '--output-folder=/tmp/tmp20281fs2'] AutoRest code generation utility [version: 2.0.4245; node: v7.10.1]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Loading AutoRest core '/tmp/.autorest/@microsoft.azure_autorest-core@2.0.4245/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4245)
ERROR: Syntax Error Encountered: Syntax error: can not read a block mapping entry; a multiline key may not be an implicit key
- file:///tmp/tmphnqjrlbt/rest/specification/authorization/resource-manager/readme.md:181:4
[OperationAbortedException] Error occurred. Exiting. |
|
This commit was treated and no generation was made for Azure/azure-sdk-for-go |
|
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. |
|
This commit was treated and no generation was made for Azure/azure-sdk-for-python |
| }, | ||
| "x-ms-paths":{ | ||
| "/{roleDefinitionId}?disambiguation_dummy": { | ||
| "get": { |
There was a problem hiding this comment.
To get rid of the linter error, both disambiguated paths should look exactly the same (and the one here with the disambiguation query). Example: /{hello} and /{hello}?waves. Not /{hello} and /{world}?waves
|
Since there are new operations, also adding @ravbhatnagar for review |
|
On the other hand, we are moving away from current branch, please poke @marstr if you need help migrating the PR |
|
Did a commit to Azure/azure-sdk-for-python: |
|
Did a commit to Azure/azure-sdk-for-go: |
|
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. |
|
Sorry @ravbhatnagar , I thought there were new operations, but that is not the case :) |
|
This commit was treated and no generation was made for Azure/azure-sdk-for-python |
|
This commit was treated and no generation was made for Azure/azure-sdk-for-go |
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-versionin the path should match theapi-versionin the spec).Quality of Swagger