ManagementGroups API update (2018-01-01-preview)#2345
ManagementGroups API update (2018-01-01-preview)#2345mcardosos merged 22 commits intoAzure:masterfrom sendhil:update-microsoft-management-swagger
Conversation
|
This commit was treated and no generation was made for Python |
1 similar comment
|
This commit was treated and no generation was made for Python |
* PUT /providers/Microsoft.Management/managementGroups/{groupName}/subscriptions/{subscriptionId} returns 204 instead of 200.
* DELETE /providers/Microsoft.Management/managementGroups/{groupName}/subscriptions/{subscriptionId} returns 204 instead of 200.
* GET /providers/Microsoft.Management/entities has been changed to POST /providers/Microsoft.Management/getEntities
* GET /providers/Microsoft.Management/entities/hierarchy has been changed to POST /providers/Microsoft.Management/getEntities?view=hierarchy.
* PUT /providers/Microsoft.Management/managementGroups/{groupName} had it's input structure change to match the response from the GET. Most of the properties are read only as we only need the displayName + parentId.
* Removed /providers/Microsoft.Management/operationResults endpoint.
|
This commit was treated and no generation was made for Azure/azure-sdk-for-go |
|
This commit was treated and no generation was made for Azure/azure-sdk-for-python |
|
Pushed some updates as per the changes suggested from our REST API board meeting.
|
|
This commit was treated and no generation was made for Azure/azure-sdk-for-go |
|
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 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 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 commit was treated and no generation was made for Azure/azure-sdk-for-python |
| "type": "string", | ||
| "description": "Page continuation token is only used if a previous operation returned a partial result. \nIf a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.\n" | ||
| }, | ||
| "CacheControlHeader": { |
There was a problem hiding this comment.
CacheControlHeader [](start = 5, length = 18)
Is this required? #Resolved
There was a problem hiding this comment.
Yes. There's a bug with arm pas caching that this bypasses. #Resolved
There was a problem hiding this comment.
There was a problem hiding this comment.
Will do. #Resolved
| "tags": [ | ||
| "ManagementGroups" | ||
| ], | ||
| "operationId": "ManagementGroups_List", |
There was a problem hiding this comment.
ManagementGroups_List [](start = 24, length = 21)
Odata extension could be useful here
There was a problem hiding this comment.
We only do a subset of Odata operations and the generators complain due to a lack of some parameters. e.g. "Method with x-ms-odata needs to have "$filter" parameter.
| "id": { | ||
| "type": "string", | ||
| "description": "The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000", | ||
| "readOnly": true |
There was a problem hiding this comment.
readOnly [](start = 11, length = 8)
Why would there be readonly parameters in a model that is used to create a resource?
There was a problem hiding this comment.
Because we only actually take the display name field and the parent id. This was done as our review wanted the put structure to more closely match the get structure.
There was a problem hiding this comment.
The API review board you mean?
There was a problem hiding this comment.
Yes - sorry, was typing from my phone.
| "description": "The friendly name of the management group. If no value is passed then this field will be set to the groupId.", | ||
| "x-nullable": true | ||
| }, | ||
| "roles": { |
There was a problem hiding this comment.
roles [](start = 9, length = 5)
What kind of roles? It sounds as if this could be expressed as an enum #Resolved
There was a problem hiding this comment.
Role definition ids #Resolved
There was a problem hiding this comment.
| "description": "The name of the management group. For example, 00000000-0000-0000-0000-000000000000", | ||
| "readOnly": true | ||
| }, | ||
| "provisioningState": { |
There was a problem hiding this comment.
provisioningState [](start = 9, length = 17)
Could this be an enum?
There was a problem hiding this comment.
Right now it's just one value... But we can change it
| "type": "string", | ||
| "readOnly": true | ||
| }, | ||
| "display": { |
There was a problem hiding this comment.
display [](start = 9, length = 7)
For code generation purposes, it is better no to define models inline #Resolved
| "tags": [ | ||
| "Entities" | ||
| ], | ||
| "operationId": "Entities_List", |
There was a problem hiding this comment.
Entities_List [](start = 24, length = 13)
Odata extension can be useful here too
|
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 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 commit was treated and no generation was made for Azure/azure-sdk-for-go |
|
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-python |
|
This commit was treated and no generation was made for Azure/azure-sdk-for-go |
| "host": "management.azure.com", | ||
| "info": { | ||
| "version": "2018-01-01-preview", | ||
| "title": "Management Groups API", |
There was a problem hiding this comment.
Are you adding this to the markdown file?
|
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. |
|
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. |
Swagger to SDK encountered a Subprocess error: (Azure/azure-sdk-for-go)
Command: ['/usr/local/bin/autorest', '/tmp/tmpsh7fdubi/rest/specification/resources/resource-manager/readme.md', '--go', '--go-sdk-folder=/tmp/tmpsh7fdubi/sdk', '--multiapi', '--package-version=v12.2.1-beta', '--use=@microsoft.azure/autorest.go@preview', "--user-agent='Azure-SDK-For-Go/v12.2.1-beta services'", '--verbose'] 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)
Loading AutoRest extension '@microsoft.azure/autorest.go' (preview->3.0.40)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.1.22->2.1.22)
Processing batch task - {"tag":"package-2017-04-preview"} .
Failure during batch task - {"tag":"package-2017-04-preview"} -- Error: [Exception] No input files provided.
Use --help to get help information..
[Exception] No input files provided.
Use --help to get help information. |
|
This was reviewed over skype by Azure API review board and ARM. Signing off! |
Swagger to SDK encountered a Subprocess error: (Azure/azure-sdk-for-go)
Command: ['/usr/local/bin/autorest', '/tmp/tmpuvcktwmy/rest/specification/resources/resource-manager/readme.md', '--go', '--go-sdk-folder=/tmp/tmpuvcktwmy/sdk', '--multiapi', '--package-version=v12.2.1-beta', '--use=@microsoft.azure/autorest.go@preview', "--user-agent='Azure-SDK-For-Go/v12.2.1-beta services'", '--verbose'] 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)
Loading AutoRest extension '@microsoft.azure/autorest.go' (preview->3.0.40)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.1.22->2.1.22)
Processing batch task - {"tag":"package-2017-04-preview"} .
Failure during batch task - {"tag":"package-2017-04-preview"} -- Error: [Exception] No input files provided.
Use --help to get help information..
[Exception] No input files provided.
Use --help to get help information. |
|
This commit was treated and no generation was made for Azure/azure-sdk-for-python |
1 similar comment
|
This commit was treated and no generation was made for Azure/azure-sdk-for-python |
mcardosos
left a comment
There was a problem hiding this comment.
Thanks for the good teamwork :D
Swagger to SDK encountered a Subprocess error: (Azure/azure-sdk-for-go)
Command: ['/usr/local/bin/autorest', '/tmp/tmpqcw4b1rf/rest/specification/resources/resource-manager/readme.md', '--go', '--go-sdk-folder=/tmp/tmpqcw4b1rf/sdk', '--multiapi', '--package-version=v12.2.1-beta', '--use=@microsoft.azure/autorest.go@preview', "--user-agent='Azure-SDK-For-Go/v12.2.1-beta services'", '--verbose'] 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)
Loading AutoRest extension '@microsoft.azure/autorest.go' (preview->3.0.40)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.1.22->2.1.22)
Processing batch task - {"tag":"package-2017-04-preview"} .
Failure during batch task - {"tag":"package-2017-04-preview"} -- Error: [Exception] No input files provided.
Use --help to get help information..
[Exception] No input files provided.
Use --help to get help information. |
|
This commit was treated and no generation was made for Azure/azure-sdk-for-python |
|
Was unable to create SDK Azure/azure-sdk-for-python PR for this closed PR. |
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