-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add elevateAccess to Microsoft.Authorization (#6219)
* Add elevateAccess to Microsoft.Authorization elevateAccess was only present in an old stable version of Microsoft.Authorization, which was not used for SDK generation. This change moves the elevateAccess call to a version that can then be added to the readme and used for SDK generation. * More descriptive operationId
- Loading branch information
1 parent
ae6dd56
commit c438128
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
71 changes: 71 additions & 0 deletions
71
...-manager/Microsoft.Authorization/preview/2015-07-01/authorization-ElevateAccessCalls.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "AuthorizationManagementClient", | ||
"version": "2015-07-01", | ||
"description": "Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These operations enable you to manage role definitions and role assignments. A role definition describes the set of actions that can be performed on resources. A role assignment grants access to Azure Active Directory users." | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"security": [ | ||
{ | ||
"azure_auth": [ | ||
"user_impersonation" | ||
] | ||
} | ||
], | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"type": "oauth2", | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"flow": "implicit", | ||
"description": "Azure Active Directory OAuth2 Flow", | ||
"scopes": { | ||
"user_impersonation": "impersonate your user account" | ||
} | ||
} | ||
}, | ||
"paths": { | ||
"/providers/Microsoft.Authorization/elevateAccess": { | ||
"post": { | ||
"tags": [ | ||
"ElevateAccess" | ||
], | ||
"operationId": "GlobalAdministrator_ElevateAccess", | ||
"description": "Elevates access for a Global Administrator.", | ||
"parameters": [ | ||
{ | ||
"$ref": "#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK - Returns an HttpResponseMessage with HttpStatusCode 200." | ||
} | ||
}, | ||
"x-ms-examples": { | ||
"GetConfigurations": { | ||
"$ref": "./examples/ElevateAccess.json" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"parameters": { | ||
"ApiVersionParameter": { | ||
"name": "api-version", | ||
"in": "query", | ||
"required": true, | ||
"type": "string", | ||
"description": "The API version to use for this operation." | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...n/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/ElevateAccess.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2015-07-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
} | ||
} | ||
} |
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