internal/scripts/mappings.ps1

$script:supportedResources = @{
    "groups" = @{
        "registerFunction" = (Get-Command Register-AzurePIMGroup)
        "testFunction" = (Get-Command Test-AzurePIMGroup)
        "invokeFunction" = (Get-Command Invoke-AzurePIMGroup)        
        "weight" = 10
    }
    "roleAssignments" = @{
        "registerFunction" = (Get-Command Register-AzurePIMroleAssignment)
        "testFunction" = (Get-Command Test-AzurePIMroleAssignment)
        "invokeFunction" = (Get-Command Invoke-AzurePIMroleAssignment)
        "parentType" = "roleManagement"
        "weight" = 30
    }
    "roleDefinitions" = @{
        "registerFunction" = (Get-Command Register-AzurePIMroleDefinition)
        "testFunction" = (Get-Command Test-AzurePIMroleDefinition)
        "invokeFunction" = (Get-Command Invoke-AzurePIMroleDefinition)
        "parentType" = "roleManagement"
        "weight" = 10
    }
    "roleManagementPolicies" = @{ 
        "registerFunction" = (Get-Command Register-AzurePIMroleManagementPolicy)
        "testFunction" = (Get-Command Test-AzurePIMroleManagementPolicy)
        "invokeFunction" = (Get-Command Invoke-AzurePIMroleManagementPolicy)
        "parentType" = "roleManagement"
        "weight" = 15
    }
    "roleManagementPolicyRuleTemplates" = @{
        "registerFunction" = (Get-Command Register-AzurePIMroleManagementPolicyRuleTemplate)
        "parentType" = "roleManagement"
        "weight" = 20
    }
} # All currently supported components.
Set-Variable -Name supportedResources -Option ReadOnly