-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 23941 in Azure/azure-rest-api-specs
[Hub Generated] Review request for Microsoft.Authorization to add version preview/2022-05-01-preview (#23941) * Adds base for updating Microsoft.Authorization from version stable/2022-04-01 to version 2022-05-01-preview * Updates readme * Updates API version in new specs and examples * Update swagger Docs for Roledefintiion condition in payload * delete unwanted example files * fix errors * typo * more fixes * scope fix * roledef fix * fixing warnings * Revert "fixing warnings" This reverts commit 2f81f5d9b8de60335b007d2eb22e08bd36c551c8. * revert scope base * supress warnings with reason * remove x-ms path * supresess * fixing get by id as there nothing called get by name * fix * Scope * v2 to v4 * scope param * scope param * typo * api version * Revert "api version" This reverts commit 7d8e791a7a62da67c8e7133f56c453652ac9819e. * update correct package version * fix warnings * added missing access review file * removing 200 response code * pretty fix * fix errors * update azure-sdk-for-go readme * fix errors * u4 * u5 * u5 * u6 * u7 * u8 * u9 * u10 * u11 --------- Co-authored-by: Ryan Ren <mumoryan@gmail.com>
- Loading branch information
SDKAuto
and
Ryan Ren
committed
Jun 21, 2023
1 parent
4478a62
commit b3a595a
Showing
5 changed files
with
170 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
158 changes: 158 additions & 0 deletions
158
schemas/2022-05-01-preview/Microsoft.Authorization.Authz.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,158 @@ | ||
{ | ||
"id": "https://schema.management.azure.com/schemas/2022-05-01-preview/Microsoft.Authorization.Authz.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Microsoft.Authorization", | ||
"description": "Microsoft Authorization Resource Types", | ||
"resourceDefinitions": {}, | ||
"unknown_resourceDefinitions": { | ||
"roleDefinitions": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2022-05-01-preview" | ||
] | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "The ID of the role definition." | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/RoleDefinitionProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Role definition properties." | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Microsoft.Authorization/roleDefinitions" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.Authorization/roleDefinitions" | ||
} | ||
}, | ||
"definitions": { | ||
"Permission": { | ||
"type": "object", | ||
"properties": { | ||
"actions": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Allowed actions." | ||
}, | ||
"dataActions": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Allowed Data actions." | ||
}, | ||
"notActions": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Denied actions." | ||
}, | ||
"notDataActions": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Denied Data actions." | ||
} | ||
}, | ||
"description": "Role definition permissions." | ||
}, | ||
"RoleDefinitionProperties": { | ||
"type": "object", | ||
"properties": { | ||
"assignableScopes": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Role definition assignable scopes." | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "The role definition description." | ||
}, | ||
"permissions": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/Permission" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Role definition permissions." | ||
}, | ||
"roleName": { | ||
"type": "string", | ||
"description": "The role name." | ||
}, | ||
"type": { | ||
"type": "string", | ||
"description": "The role type." | ||
} | ||
}, | ||
"description": "Role definition properties." | ||
} | ||
} | ||
} |
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