forked from Azure/azure-resource-manager-schemas
-
Notifications
You must be signed in to change notification settings - Fork 1
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 18909 in Azure/azure-rest-api-specs
Merge 25937d674da4916993e589ff4f3227d27aaa5c84 into 50ed15bd61ac79f2368d769df0c207a00b9e099f
- Loading branch information
SDKAuto
committed
May 4, 2022
1 parent
75412e8
commit 6030596
Showing
5 changed files
with
114 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
102 changes: 102 additions & 0 deletions
102
schemas/2021-04-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,102 @@ | ||
{ | ||
"id": "https://schema.management.azure.com/schemas/2021-04-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": { | ||
"roleAssignments": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2021-04-01-preview" | ||
] | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the role assignment. It can be any valid GUID." | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/RoleAssignmentProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Role assignment properties." | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Microsoft.Authorization/roleAssignments" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.Authorization/roleAssignments" | ||
} | ||
}, | ||
"definitions": { | ||
"RoleAssignmentProperties": { | ||
"type": "object", | ||
"properties": { | ||
"condition": { | ||
"type": "string", | ||
"description": "The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'" | ||
}, | ||
"conditionVersion": { | ||
"type": "string", | ||
"description": "Version of the condition. Currently accepted value is '2.0'" | ||
}, | ||
"delegatedManagedIdentityResourceId": { | ||
"type": "string", | ||
"description": "Id of the delegated managed identity resource" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "Description of role assignment" | ||
}, | ||
"principalId": { | ||
"type": "string", | ||
"description": "The principal ID." | ||
}, | ||
"principalType": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"User", | ||
"Group", | ||
"ServicePrincipal", | ||
"ForeignGroup", | ||
"Device" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The principal type of the assigned principal ID." | ||
}, | ||
"roleDefinitionId": { | ||
"type": "string", | ||
"description": "The role definition ID." | ||
} | ||
}, | ||
"required": [ | ||
"principalId", | ||
"roleDefinitionId" | ||
], | ||
"description": "Role assignment 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