def get_resource_permission_types_with_descriptions():
    """
    Return available permission types for each resource types with corresponding descriptions.

    :rtype: ``dict`
    """
    result = {}

    for resource_type, permission_types in six.iteritems(
        RESOURCE_TYPE_TO_PERMISSION_TYPES_MAP
    ):
        result[resource_type] = {}
        for permission_type in permission_types:
            result[resource_type][permission_type] = PERMISION_TYPE_TO_DESCRIPTION_MAP[
                permission_type
            ]

    return result

    Return available permission types for each resource types with corresponding descriptions.

    :rtype: ``dict`
    
st2common/st2common/rbac/types.py