Ejemplo n.º 1
0
 url(r'^v2/consumers/(?P<consumer_id>[^/]+)/schedules/content/install/$',
     UnitInstallSchedulesView.as_view(), name='schedule_content_install'),
 url(r'^v2/consumers/(?P<consumer_id>[^/]+)/schedules/content/install/(?P<schedule_id>[^/]+)/$',
     UnitInstallScheduleResourceView.as_view(), name='schedule_content_install_resource'),
 url(r'^v2/consumers/(?P<consumer_id>[^/]+)/schedules/content/update/$',
     UnitUpdateSchedulesView.as_view(), name='schedule_content_update'),
 url(r'^v2/consumers/(?P<consumer_id>[^/]+)/schedules/content/update/(?P<schedule_id>[^/]+)/$',
     UnitUpdateScheduleResourceView.as_view(), name='schedule_content_update_resource'),
 url(r'^v2/consumers/(?P<consumer_id>[^/]+)/schedules/content/uninstall/$',
     UnitUninstallSchedulesView.as_view(), name='schedule_content_uninstall'),
 url(r'^v2/consumers/(?P<consumer_id>[^/]+)/schedules/content/uninstall/(?P<schedule_id>[^/]+)/$',
     UnitUninstallScheduleResourceView.as_view(), name='schedule_content_uninstall_resource'),
 url(r'^v2/consumers/(?P<consumer_id>[^/]+)/history/$',
     ConsumerHistoryView.as_view(), name='consumer_history'),
 url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)/$',
     ConsumerGroupResourceView.as_view(), name='consumer_group_resource'),
 url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)/actions/associate/$',
     ConsumerGroupAssociateActionView.as_view(), name='consumer_group_associate'),
 url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)/actions/unassociate/$',
     ConsumerGroupUnassociateActionView.as_view(), name='consumer_group_unassociate'),
 url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)/actions/content/(?P<action>[^/]+)/$',
     ConsumerGroupContentActionView.as_view(), name='consumer_group_content'),
 url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)/bindings/$',
     ConsumerGroupBindingsView.as_view(), name='consumer_group_bind'),
 url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)' +
     r'/bindings/(?P<repo_id>[^/]+)/(?P<distributor_id>[^/]+)/$',
     ConsumerGroupBindingView.as_view(), name='consumer_group_unbind'),
 url(r'^v2/content/actions/delete_orphans/$', DeleteOrphansActionView.as_view(),
     name='content_actions_delete_orphans'),
 url(r'^v2/content/catalog/(?P<source_id>[^/]+)/$', CatalogResourceView.as_view(),
     name='content_catalog_resource'),
Ejemplo n.º 2
0
Archivo: urls.py Proyecto: beav/pulp
    ContentUnitUserMetadataResourceView, DeleteOrphansActionView,
    OrphanCollectionView, OrphanResourceView, OrphanTypeSubCollectionView,
    UploadResourceView, UploadSegmentResourceView)
from pulp.server.webservices.views.plugins import (DistributorResourceView,
                                                   DistributorsView,
                                                   ImporterResourceView,
                                                   ImportersView,
                                                   TypeResourceView, TypesView)
from pulp.server.webservices.views.root_actions import LoginView

urlpatterns = patterns(
    '',
    url(r'^v2/actions/login/$', LoginView.as_view(),
        name='login'),  # flake8: noqa
    url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)/$',
        ConsumerGroupResourceView.as_view(),
        name='consumer_group_resource'),
    url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)/actions/associate/$',
        ConsumerGroupAssociateActionView.as_view(),
        name='consumer_group_associate'),
    url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)/actions/unassociate/$',
        ConsumerGroupUnassociateActionView.as_view(),
        name='consumer_group_unassociate'),
    url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)/actions/content/(?P<action>[^/]+)/$',
        ConsumerGroupContentActionView.as_view(),
        name='consumer_group_content'),
    url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)/bindings/$',
        ConsumerGroupBindingsView.as_view(),
        name='consumer_group_bind'),
    url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)' +
        r'/bindings/(?P<repo_id>[^/]+)/(?P<distributor_id>[^/]+)/$',
Ejemplo n.º 3
0
 url(r'^v2/consumers/(?P<consumer_id>[^/]+)/schedules/content/install/(?P<schedule_id>[^/]+)/$',
     UnitInstallScheduleResourceView.as_view(), name='schedule_content_install_resource'),
 url(r'^v2/consumers/(?P<consumer_id>[^/]+)/schedules/content/update/$',
     UnitUpdateSchedulesView.as_view(), name='schedule_content_update'),
 url(r'^v2/consumers/(?P<consumer_id>[^/]+)/schedules/content/update/(?P<schedule_id>[^/]+)/$',
     UnitUpdateScheduleResourceView.as_view(), name='schedule_content_update_resource'),
 url(r'^v2/consumers/(?P<consumer_id>[^/]+)/schedules/content/uninstall/$',
     UnitUninstallSchedulesView.as_view(), name='schedule_content_uninstall'),
 url(r'^v2/consumers/(?P<consumer_id>[^/]+)/schedules/content/uninstall/(?P<schedule_id>[^/]+)/$',
     UnitUninstallScheduleResourceView.as_view(), name='schedule_content_uninstall_resource'),
 url(r'^v2/consumers/(?P<consumer_id>[^/]+)/history/$',
     ConsumerHistoryView.as_view(), name='consumer_history'),
 url(r'^v2/consumer_groups/search/$',
     ConsumerGroupSearchView.as_view(), name='consumer_group_search'),
 url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)/$',
     ConsumerGroupResourceView.as_view(), name='consumer_group_resource'),
 url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)/actions/associate/$',
     ConsumerGroupAssociateActionView.as_view(), name='consumer_group_associate'),
 url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)/actions/unassociate/$',
     ConsumerGroupUnassociateActionView.as_view(), name='consumer_group_unassociate'),
 url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)/actions/content/(?P<action>[^/]+)/$',
     ConsumerGroupContentActionView.as_view(), name='consumer_group_content'),
 url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)/bindings/$',
     ConsumerGroupBindingsView.as_view(), name='consumer_group_bind'),
 url(r'^v2/consumer_groups/(?P<consumer_group_id>[^/]+)' +
     r'/bindings/(?P<repo_id>[^/]+)/(?P<distributor_id>[^/]+)/$',
     ConsumerGroupBindingView.as_view(), name='consumer_group_unbind'),
 url(r'^v2/content/actions/delete_orphans/$', DeleteOrphansActionView.as_view(),
     name='content_actions_delete_orphans'),
 url(r'^v2/content/catalog/(?P<source_id>[^/]+)/$', CatalogResourceView.as_view(),
     name='content_catalog_resource'),