Skip to content

Commit

Permalink
CodeGen from PR 18909 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 25937d674da4916993e589ff4f3227d27aaa5c84 into 50ed15bd61ac79f2368d769df0c207a00b9e099f
  • Loading branch information
SDKAuto committed May 4, 2022
1 parent 75412e8 commit 6030596
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 0 deletions.
3 changes: 3 additions & 0 deletions schemas/2018-05-01/subscriptionDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2021-03-01-preview/Microsoft.Authorization.Authz.json#/subscription_resourceDefinitions/accessReviewScheduleSettings"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-04-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleAssignments"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-07-01-preview/Microsoft.Authorization.Authz.json#/subscription_resourceDefinitions/accessReviewScheduleDefinitions"
},
Expand Down
3 changes: 3 additions & 0 deletions schemas/2019-08-01/managementGroupDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2020-10-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleManagementPolicyAssignments"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-04-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleAssignments"
},
{
"$ref": "https://schema.management.azure.com/schemas/2022-04-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleAssignmentScheduleRequests"
},
Expand Down
3 changes: 3 additions & 0 deletions schemas/2019-08-01/tenantDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2021-01-01-preview/Microsoft.Authorization.Authz.json#/tenant_resourceDefinitions/roleAssignmentApprovals_stages"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-04-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleAssignments"
},
{
"$ref": "https://schema.management.azure.com/schemas/2022-04-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleAssignmentScheduleRequests"
},
Expand Down
102 changes: 102 additions & 0 deletions schemas/2021-04-01-preview/Microsoft.Authorization.Authz.json
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."
}
}
}
3 changes: 3 additions & 0 deletions schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -2203,6 +2203,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2020-10-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleManagementPolicyAssignments"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-04-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleAssignments"
},
{
"$ref": "https://schema.management.azure.com/schemas/2022-04-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleAssignmentScheduleRequests"
},
Expand Down

0 comments on commit 6030596

Please sign in to comment.