Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
# Copyright (c) 2014 TrilioData, Inc.
# All Rights Reserved.

try:
    from django.conf.urls.defaults import patterns, url, include
except Exception:
    try:
        from django.conf.urls import include
        from django.conf.urls import url
    except:
        from django.urls import re_path as url

from .views import IndexView, CreateView, CreateSnapshotView, NextSnapshotView, PreviousSnapshotView, \
        SecretListView, UpdateView, DetailView, CreateTransferView, AcceptTransferView, ShowTransferView, \
        CheckWorkloadView, SearchView, PolicyDetailsView, CheckBttImmutabilityView
from .snapshots import urls as snapshot_urls
from .snapshots.restores import urls as restore_urls

WORKLOADS = r'^(?P<workload_id>[^/]+)/%s$'
POLICY = r'^(?P<policy_id>[^/]+)/%s$'

app_name='triliovault_workloads'

urlpatterns = [
    url(r'^accept_transfer/$',
        AcceptTransferView.as_view(),
        name='accept_transfer'),
    url(r'^$', IndexView.as_view(), name='index'),
    url(r'^create$', CreateView.as_view(), name='create'),
    url(WORKLOADS % 'snapshot', CreateSnapshotView.as_view(), name='snapshot'),
    # url(WORKLOADS % 'detail', DetailView.as_view(), name='detail'),
    url(r'^(?P<workload_id>[^/]+)/$', DetailView.as_view(), name='detail'),
    url(r'^(?P<workload_id>[^/]+)/create_transfer/$',
        CreateTransferView.as_view(),
        name='create_transfer'),
    url(r'^(?P<transfer_id>[^/]+)/auth/(?P<auth_key>[^/]+)/$',
        ShowTransferView.as_view(),
        name='show_transfer'),
    url(WORKLOADS % 'update', UpdateView.as_view(), name='update'),
    url(r'^snapshots/', include(snapshot_urls, namespace='snapshots')),
    url(r'^restores/', include(restore_urls, namespace='restores')),
    url(r'^check_workload/(?P<workload_id>[^/]+)/$',
        CheckWorkloadView.as_view(), name='check_workload'),
    url(r'^file_search$', SearchView.as_view(), name='search'),
    url(r'^policy_details$', PolicyDetailsView.as_view(),
        name='workload_policy_get'),
    url(r'^secret/list$', SecretListView.as_view(), name='secrets'),
    # Next Snapshot.
    url(r'^snapshots/next_snapshot$', NextSnapshotView.as_view(), name='next-snapshot'),
    # Previous Snapshot.
    url(r'^snapshots/prev_snapshot$', PreviousSnapshotView.as_view(), name='prev-snapshot'),
    url(r'^backup_target_types/immutability$', CheckBttImmutabilityView.as_view(), name='check_btt_immutability'),
]