Skip to content

Commit 6ee8883

Browse files
authored
Merge pull request #2507 from Azure/jcotillo/disable_authorization_rp_from_autogen
Temporarily disable Authorization/Resource-Manager from autogen
2 parents 622d043 + 1bbad03 commit 6ee8883

File tree

1 file changed

+6
-31
lines changed

1 file changed

+6
-31
lines changed

generator/autogenlist.ts

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ const disabledProviders: AutoGenConfig[] = [
8989
namespace: 'Microsoft.Media',
9090
disabledForAutogen: true,
9191
},
92+
// Disabled because the swagger spec contains duplicate API paths and results in schema generation failures, see here for more info: https://github.com/Azure/azure-resource-manager-schemas/issues/2462
93+
{
94+
basePath: 'authorization/resource-manager',
95+
namespace: 'Microsoft.Authorization',
96+
disabledForAutogen: true,
97+
}
9298
];
9399

94100
// Run "npm run list-basepaths" to discover all the valid readme files to add to this list
@@ -650,37 +656,6 @@ const autoGenList: AutoGenConfig[] = [
650656
suffix: 'Resources',
651657
postProcessor: policyProcessor
652658
},
653-
{
654-
basePath: 'authorization/resource-manager',
655-
namespace: 'Microsoft.Authorization',
656-
resourceConfig: [
657-
{
658-
type: 'roleAssignments',
659-
scopes: ScopeType.Extension | ScopeType.ManagementGroup | ScopeType.ResourceGroup | ScopeType.Subcription | ScopeType.Tenant
660-
},
661-
{
662-
type: 'roleDefinitions',
663-
scopes: ScopeType.Extension | ScopeType.ManagementGroup | ScopeType.ResourceGroup | ScopeType.Subcription | ScopeType.Tenant
664-
},
665-
{
666-
type: 'roleAssignmentScheduleRequests',
667-
scopes: ScopeType.Extension | ScopeType.ManagementGroup | ScopeType.ResourceGroup | ScopeType.Subcription | ScopeType.Tenant
668-
},
669-
{
670-
type: 'roleEligibilityScheduleRequests',
671-
scopes: ScopeType.Extension | ScopeType.ManagementGroup | ScopeType.ResourceGroup | ScopeType.Subcription | ScopeType.Tenant
672-
},
673-
{
674-
type: 'roleManagementPolicyAssignments',
675-
scopes: ScopeType.Extension | ScopeType.ManagementGroup | ScopeType.ResourceGroup | ScopeType.Subcription | ScopeType.Tenant
676-
},
677-
{
678-
type: 'roleAssignmentApprovals/stages',
679-
scopes: ScopeType.Tenant
680-
}
681-
],
682-
suffix: 'Authz'
683-
},
684659
{
685660
basePath: 'relay/resource-manager',
686661
namespace: 'Microsoft.Relay',

0 commit comments

Comments
 (0)