Skip to content

Commit

Permalink
CodeGen from PR 23941 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[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
Show file tree
Hide file tree
Showing 5 changed files with 170 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 @@ -647,6 +647,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2022-04-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleEligibilityScheduleRequests"
},
{
"$ref": "https://schema.management.azure.com/schemas/2022-05-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleDefinitions"
},
{
"$ref": "https://schema.management.azure.com/schemas/2017-09-01/Microsoft.Authorization.json#/resourceDefinitions/roleAssignments"
},
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 @@ -596,6 +596,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2022-04-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleEligibilityScheduleRequests"
},
{
"$ref": "https://schema.management.azure.com/schemas/2022-05-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleDefinitions"
},
{
"$ref": "https://schema.management.azure.com/schemas/2017-09-01/Microsoft.Authorization.json#/resourceDefinitions/roleAssignments"
},
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 @@ -607,6 +607,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2022-04-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleEligibilityScheduleRequests"
},
{
"$ref": "https://schema.management.azure.com/schemas/2022-05-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleDefinitions"
},
{
"$ref": "https://schema.management.azure.com/schemas/2017-09-01/Microsoft.Authorization.json#/resourceDefinitions/roleAssignments"
},
Expand Down
158 changes: 158 additions & 0 deletions schemas/2022-05-01-preview/Microsoft.Authorization.Authz.json
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."
}
}
}
3 changes: 3 additions & 0 deletions schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -3625,6 +3625,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2022-04-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleEligibilityScheduleRequests"
},
{
"$ref": "https://schema.management.azure.com/schemas/2022-05-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleDefinitions"
},
{
"$ref": "https://schema.management.azure.com/schemas/2015-01-01/Microsoft.Authorization.Resources.json#/resourceDefinitions/locks"
},
Expand Down

0 comments on commit b3a595a

Please sign in to comment.