# 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
# Copyright 2012 VPAC, http://www.vpac.org
# Copyright 2013-2021 Marcus Furlong <furlongm@gmail.com>
#
# This file is part of patchman
#
# Patchman is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 only.
#
# Patchman is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# 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)

# 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

# Copyright 2012 VPAC, http://www.vpac.org
# Copyright 2013-2021 Marcus Furlong <furlongm@gmail.com>
#
# This file is part of patchman
#
# Patchman is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 only.
#
# Patchman is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# 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)