# Path: arch/views.py
# class PackageArchitectureViewSet(viewsets.ModelViewSet):
# class MachineArchitectureViewSet(viewsets.ModelViewSet):
# 
# Path: domains/views.py
# class DomainViewSet(viewsets.ModelViewSet):
# 
# Path: hosts/views.py
# def host_list(request):
# def host_detail(request, hostname):
# def host_edit(request, hostname):
# def host_delete(request, hostname):
# class HostViewSet(viewsets.ModelViewSet):
# class HostRepoViewSet(viewsets.ModelViewSet):
# 
# Path: operatingsystems/views.py
# def os_list(request):
# def os_detail(request, os_id):
# def os_delete(request, os_id):
# def osgroup_list(request):
# def osgroup_detail(request, osgroup_id):
# def osgroup_delete(request, osgroup_id):
# class OSViewSet(viewsets.ModelViewSet):
# class OSGroupViewSet(viewsets.ModelViewSet):
# 
# Path: packages/views.py
# def package_list(request):
# def package_detail(request, packagename):
# class PackageNameViewSet(viewsets.ModelViewSet):
# class PackageViewSet(viewsets.ModelViewSet):
# class PackageUpdateViewSet(viewsets.ModelViewSet):
# class ErratumViewSet(viewsets.ModelViewSet):
# class ErratumReferenceViewSet(viewsets.ModelViewSet):
# 
# Path: repos/views.py
# def repo_list(request):
# def mirror_list(request):
#     def pre_reqs(arch, repotype):
#     def move_mirrors(repo):
# def mirror_detail(request, mirror_id):
# def mirror_delete(request, mirror_id):
# def mirror_edit(request, mirror_id):
# def repo_detail(request, repo_id):
# def repo_edit(request, repo_id):
# def repo_delete(request, repo_id):
# def repo_toggle_enabled(request, repo_id):
# def repo_toggle_security(request, repo_id):
# class RepositoryViewSet(viewsets.ModelViewSet):
# class MirrorViewSet(viewsets.ModelViewSet):
# class MirrorPackageViewSet(viewsets.ModelViewSet):


from django.conf.urls import include, handler404, handler500  # noqa
from django.conf import settings
from django.contrib import admin
from django.urls import path
from django.views import static
from rest_framework import routers
from arch import views as arch_views
from domains import views as domain_views
from hosts import views as host_views
from operatingsystems import views as os_views
from packages import views as package_views
from repos import views as repo_views
# along with  If not, see <http://www.gnu.org/licenses/>




router = routers.DefaultRouter()
router.register(r'package-architecture', arch_views.PackageArchitectureViewSet)
router.register(r'machine-architecture', arch_views.MachineArchitectureViewSet)
router.register(r'domain', domain_views.DomainViewSet)
router.register(r'host', host_views.HostViewSet)
router.register(r'host-repo', host_views.HostRepoViewSet)
router.register(r'os', os_views.OSViewSet)
router.register(r'os-group', os_views.OSGroupViewSet)
router.register(r'package-name', package_views.PackageNameViewSet)
router.register(r'package', package_views.PackageViewSet)
router.register(r'package-update', package_views.PackageUpdateViewSet)
router.register(r'erratum', package_views.ErratumViewSet)
router.register(r'erratum-reference', package_views.ErratumReferenceViewSet)
router.register(r'repo', repo_views.RepositoryViewSet)
router.register(r'mirror', repo_views.MirrorViewSet)
router.register(r'mirror-package', repo_views.MirrorPackageViewSet)

admin.autodiscover()

urlpatterns = [
    path('', include('django.contrib.auth.urls')),
    path('admin/', admin.site.urls),
    path('api/', include(router.urls)),
    path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),  # noqa
    path('', include('util.urls', namespace='util')),

# Path: arch/views.py
# class PackageArchitectureViewSet(viewsets.ModelViewSet):
# class MachineArchitectureViewSet(viewsets.ModelViewSet):
# 
# Path: domains/views.py
# class DomainViewSet(viewsets.ModelViewSet):
# 
# Path: hosts/views.py
# def host_list(request):
# def host_detail(request, hostname):
# def host_edit(request, hostname):
# def host_delete(request, hostname):
# class HostViewSet(viewsets.ModelViewSet):
# class HostRepoViewSet(viewsets.ModelViewSet):
# 
# Path: operatingsystems/views.py
# def os_list(request):
# def os_detail(request, os_id):
# def os_delete(request, os_id):
# def osgroup_list(request):
# def osgroup_detail(request, osgroup_id):
# def osgroup_delete(request, osgroup_id):
# class OSViewSet(viewsets.ModelViewSet):
# class OSGroupViewSet(viewsets.ModelViewSet):
# 
# Path: packages/views.py
# def package_list(request):
# def package_detail(request, packagename):
# class PackageNameViewSet(viewsets.ModelViewSet):
# class PackageViewSet(viewsets.ModelViewSet):
# class PackageUpdateViewSet(viewsets.ModelViewSet):
# class ErratumViewSet(viewsets.ModelViewSet):
# class ErratumReferenceViewSet(viewsets.ModelViewSet):
# 
# Path: repos/views.py
# def repo_list(request):
# def mirror_list(request):
#     def pre_reqs(arch, repotype):
#     def move_mirrors(repo):
# def mirror_detail(request, mirror_id):
# def mirror_delete(request, mirror_id):
# def mirror_edit(request, mirror_id):
# def repo_detail(request, repo_id):
# def repo_edit(request, repo_id):
# def repo_delete(request, repo_id):
# def repo_toggle_enabled(request, repo_id):
# def repo_toggle_security(request, repo_id):
# class RepositoryViewSet(viewsets.ModelViewSet):
# class MirrorViewSet(viewsets.ModelViewSet):
# class MirrorPackageViewSet(viewsets.ModelViewSet):


# Path: patchman/urls.py
from django.conf.urls import include, handler404, handler500  # noqa
from django.conf import settings
from django.contrib import admin
from django.urls import path
from django.views import static
from rest_framework import routers
from arch import views as arch_views
from domains import views as domain_views
from hosts import views as host_views
from operatingsystems import views as os_views
from packages import views as package_views
from repos import views as repo_views

# along with  If not, see <http://www.gnu.org/licenses/>




router = routers.DefaultRouter()
router.register(r'package-architecture', arch_views.PackageArchitectureViewSet)
router.register(r'machine-architecture', arch_views.MachineArchitectureViewSet)
router.register(r'domain', domain_views.DomainViewSet)
router.register(r'host', host_views.HostViewSet)
router.register(r'host-repo', host_views.HostRepoViewSet)
router.register(r'os', os_views.OSViewSet)
router.register(r'os-group', os_views.OSGroupViewSet)
router.register(r'package-name', package_views.PackageNameViewSet)
router.register(r'package', package_views.PackageViewSet)
router.register(r'package-update', package_views.PackageUpdateViewSet)
router.register(r'erratum', package_views.ErratumViewSet)
router.register(r'erratum-reference', package_views.ErratumReferenceViewSet)
router.register(r'repo', repo_views.RepositoryViewSet)
router.register(r'mirror', repo_views.MirrorViewSet)
router.register(r'mirror-package', repo_views.MirrorPackageViewSet)

admin.autodiscover()

urlpatterns = [
    path('', include('django.contrib.auth.urls')),
    path('admin/', admin.site.urls),
    path('api/', include(router.urls)),
    path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),  # noqa
    path('', include('util.urls', namespace='util')),

    path('reports/', include('reports.urls', namespace='reports')),