Skip to content

Commit

Permalink
Add elevateAccess to Microsoft.Authorization (#6219)
Browse files Browse the repository at this point in the history
* 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
rlrossiter authored and jhendrixMSFT committed Jun 6, 2019
1 parent ae6dd56 commit c438128
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
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."
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"parameters": {
"api-version": "2015-07-01"
},
"responses": {
"200": {
}
}
}
6 changes: 6 additions & 0 deletions specification/authorization/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ These settings apply only when `--tag=package-2015-07-01-preview` is specified o

``` yaml $(tag) == 'package-2015-07-01-preview'
input-file:
- Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json
- Microsoft.Authorization/preview/2015-07-01/authorization.json
- Microsoft.Authorization/preview/2015-07-01/authorization-ElevateAccessCalls.json
```

### Tag: package-2017-10-01-preview-only
Expand Down Expand Up @@ -122,6 +124,7 @@ These settings apply only when `--tag=package-2017-10-01-preview` is specified o
input-file:
- Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json
- Microsoft.Authorization/preview/2015-07-01/authorization.json
- Microsoft.Authorization/preview/2015-07-01/authorization-ElevateAccessCalls.json
- Microsoft.Authorization/preview/2017-10-01-preview/authorization-RACalls.json
```

Expand All @@ -132,6 +135,7 @@ These settings apply only when `--tag=package-2018-01-01-preview` is specified o
``` yaml $(tag) == 'package-2018-01-01-preview'
input-file:
- Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json
- Microsoft.Authorization/preview/2015-07-01/authorization-ElevateAccessCalls.json
- Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json
- Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleAssignmentsCalls.json
- Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json
Expand All @@ -144,6 +148,7 @@ These settings apply only when `--tag=package-2018-07-01-preview` is specified o
``` yaml $(tag) == 'package-2018-07-01-preview'
input-file:
- Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json
- Microsoft.Authorization/preview/2015-07-01/authorization-ElevateAccessCalls.json
- Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json
- Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleAssignmentsCalls.json
- Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json
Expand All @@ -157,6 +162,7 @@ These settings apply only when `--tag=package-2018-09-01-preview` is specified o
``` yaml $(tag) == 'package-2018-09-01-preview'
input-file:
- Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json
- Microsoft.Authorization/preview/2015-07-01/authorization-ElevateAccessCalls.json
- Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json
- Microsoft.Authorization/preview/2018-09-01-preview/authorization-RoleAssignmentsCalls.json
- Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json
Expand Down

0 comments on commit c438128

Please sign in to comment.