-
Notifications
You must be signed in to change notification settings - Fork 5.6k
authorization add 2020-08-01-preview #13207
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5370885
authorization add 2020-08-01-preview
jdhms f84e552
update version in spec
jdhms 422a849
validate calls
jdhms 74aedf3
update version
jdhms e5de35d
fix new ci requirement
jdhms 47872ba
fix version
jdhms bdba712
fix validate definition
jdhms bee6b00
mark readonly properties as such
jdhms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
105 changes: 105 additions & 0 deletions
105
...r/Microsoft.Authorization/preview/2019-08-01-preview/authorization-UsageMetricsCalls.json
This file contains hidden or 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,105 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "AuthorizationManagementClient", | ||
| "version": "2019-08-01-preview", | ||
| "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 assignments. 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": { | ||
| "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/roleAssignmentsUsageMetrics": { | ||
| "get": { | ||
| "tags": [ | ||
| "RoleAssignmentMetrics" | ||
| ], | ||
| "operationId": "RoleAssignmentMetrics_GetMetricsForSubscription", | ||
| "description": "Get role assignment usage metrics for a subscription", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "Returns current role assignment usage metrics.", | ||
| "schema": { | ||
| "$ref": "#/definitions/RoleAssignmentMetricsResult" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "Get role assignment metrics for subscription": { | ||
| "$ref": "./examples/RoleAssignmentMetrics_GetForSubscription.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "RoleAssignmentMetricsResult": { | ||
| "properties": { | ||
| "subscriptionId": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "The subscription ID." | ||
| }, | ||
| "roleAssignmentsLimit": { | ||
| "type": "integer", | ||
| "format": "int64", | ||
| "readOnly": true, | ||
| "description": "The role assignment limit." | ||
| }, | ||
| "roleAssignmentsCurrentCount": { | ||
| "type": "integer", | ||
| "format": "int64", | ||
| "readOnly": true, | ||
| "description": "The number of current role assignments." | ||
| }, | ||
| "roleAssignmentsRemainingCount": { | ||
| "type": "integer", | ||
| "format": "int64", | ||
| "readOnly": true, | ||
| "description": "The number of remaining role assignments available." | ||
| } | ||
| }, | ||
| "description": "Role Assignment Metrics" | ||
| } | ||
| }, | ||
| "parameters": {} | ||
| } | ||
16 changes: 16 additions & 0 deletions
16
...ization/preview/2019-08-01-preview/examples/RoleAssignmentMetrics_GetForSubscription.json
This file contains hidden or 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,16 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", | ||
| "api-version": "2019-08-01-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "subscriptionId": "a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", | ||
| "roleAssignmentsLimit": 2000, | ||
| "roleAssignmentsCurrentCount": 1530, | ||
| "roleAssignmentsRemainingCount": 470 | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.