Exemplo n.º 1
0
    url(identity_specific + r'/meta$', Meta.as_view(), name='meta-detail'),
    url(identity_specific + r'/meta/(?P<action>.*)$',
        MetaAction.as_view(), name='meta-action'),

    url(identity_specific + r'/members$',
        IdentityMembershipList.as_view(), name='identity-membership-list'),
    url(identity_specific + r'/members/(?P<group_name>%s)$' % user_match,
        IdentityMembership.as_view(), name='identity-membership-detail'),
)

public_apis = format_suffix_patterns(patterns(
    '',
    url(r'^profile$', Profile.as_view(), name='profile'),

    url(r'^group$', GroupList.as_view(), name='group-list'),
    url(r'^group/(?P<groupname>.*)$', Group.as_view()),

    url(r'^tag$', TagList.as_view(), name='tag-list'),
    url(r'^tag/(?P<tag_slug>.*)$', Tag.as_view()),

    url(r'^application$',
        ApplicationList.as_view(),
        name='application-list'),

    url(r'^application/search$',
        ApplicationSearch.as_view(),
        name='application-search'),
    url(r'^application/(?P<app_uuid>%s)$' % uuid_match,
        Application.as_view(),
        name='application-detail'),
    #ApplicationThreshold Related APIs
Exemplo n.º 2
0
        MetaAction.as_view(),
        name='meta-action'),
    url(identity_specific + r'/members$',
        IdentityMembershipList.as_view(),
        name='identity-membership-list'),
    url(identity_specific + r'/members/(?P<group_name>%s)$' % user_match,
        IdentityMembership.as_view(),
        name='identity-membership-detail'),
)

public_apis = format_suffix_patterns(
    patterns(
        '',
        url(r'^profile$', Profile.as_view(), name='profile'),
        url(r'^group$', GroupList.as_view(), name='group-list'),
        url(r'^group/(?P<groupname>.*)$', Group.as_view()),
        url(r'^tag$', TagList.as_view(), name='tag-list'),
        url(r'^tag/(?P<tag_slug>.*)$', Tag.as_view()),
        url(r'^application$',
            ApplicationList.as_view(),
            name='application-list'),
        url(r'^application/search$',
            ApplicationSearch.as_view(),
            name='application-search'),
        url(r'^application/(?P<app_uuid>%s)$' % uuid_match,
            Application.as_view(),
            name='application-detail'),
        #ApplicationThreshold Related APIs
        url(r'^application/(?P<app_uuid>%s)/threshold$' % uuid_match,
            ApplicationThresholdDetail.as_view(),
            name='threshold-detail'),
Exemplo n.º 3
0
        name='maintenance-record-list'),
    url(r'^api/v1/maintenance/(?P<record_id>\d+)/$',
        MaintenanceRecord.as_view(),
        name='maintenance-record'),
    url(r'^api/v1/notification/$', NotificationList.as_view()),

    #url(r'^api/v1/user/$', atmo_valid_token_required(UserManagement.as_view())),
    #url(r'^api/v1/user/(?P<username>.*)/$', User.as_view()),
    url(r'^api/v1/profile/$', Profile.as_view(), name='profile'),
    url(r'^api/v1/provider/(?P<provider_id>\d+)/occupancy/$',
        Occupancy.as_view(), name='occupancy'),
    url(r'^api/v1/provider/(?P<provider_id>\d+)/hypervisor/$',
        Hypervisor.as_view(), name='hypervisor'),

    url(r'^api/v1/group/$', GroupList.as_view(), name='group-list'),
    url(r'^api/v1/group/(?P<groupname>.*)/$', Group.as_view()),

    url(r'^api/v1/tag/$', TagList.as_view(), name='tag-list'),
    url(r'^api/v1/tag/(?P<tag_slug>.*)/$', Tag.as_view()),

    url(r'^api/v1/application/$',
        ApplicationListNoAuth.as_view(),
        name='application-list-no-auth'),

    url(r'^api/v1/instance/$', InstanceHistory.as_view(),
        name='instance-history'),

    url(r'^api/v1/request_image/$',
        MachineRequestStaffList.as_view(), name='direct-machine-request-list'),
    url(r'^api/v1/request_image/(?P<machine_request_id>\d+)/$',
        MachineRequestStaff.as_view(), name='direct-machine-request-detail'),
Exemplo n.º 4
0
    url(identity_specific + r"/meta$", Meta.as_view(), name="meta-detail"),
    url(identity_specific + r"/meta/(?P<action>.*)$", MetaAction.as_view(), name="meta-action"),
    url(identity_specific + r"/members$", IdentityMembershipList.as_view(), name="identity-membership-list"),
    url(
        identity_specific + r"/members/(?P<group_name>(%s)$" % user_match,
        IdentityMembership.as_view(),
        name="identity-membership-detail",
    ),
)

public_apis = format_suffix_patterns(
    patterns(
        "",
        url(r"^profile$", Profile.as_view(), name="profile"),
        url(r"^group$", GroupList.as_view(), name="group-list"),
        url(r"^group/(?P<groupname>.*)$", Group.as_view()),
        url(r"^tag$", TagList.as_view(), name="tag-list"),
        url(r"^tag/(?P<tag_slug>.*)$", Tag.as_view()),
        url(r"^application$", ApplicationList.as_view(), name="application-list"),
        url(r"^application/search$", ApplicationSearch.as_view(), name="application-search"),
        url(r"^application/(?P<app_uuid>[a-zA-Z0-9-]+)$", Application.as_view(), name="application-detail"),
        url(r"^instance_history$", InstanceHistory.as_view(), name="instance-history"),
        url(
            r"^instance_history/" "(?P<instance_id>[a-zA-Z0-9-]+)$",
            InstanceHistoryDetail.as_view(),
            name="instance-history",
        ),
        url(
            r"^instance_history/" "(?P<instance_id>[a-zA-Z0-9-]+)/" "status_history$",
            InstanceStatusHistoryDetail.as_view(),
            name="instance-history",
Exemplo n.º 5
0
        url(r'^api/v1/maintenance/(?P<record_id>\d+)/$',
            MaintenanceRecord.as_view(),
            name='maintenance-record'),
        url(r'^api/v1/notification/$', NotificationList.as_view()),

        #url(r'^api/v1/user/$', atmo_valid_token_required(UserManagement.as_view())),
        #url(r'^api/v1/user/(?P<username>.*)/$', User.as_view()),
        url(r'^api/v1/profile/$', Profile.as_view(), name='profile'),
        url(r'^api/v1/provider/(?P<provider_id>\d+)/occupancy/$',
            Occupancy.as_view(),
            name='occupancy'),
        url(r'^api/v1/provider/(?P<provider_id>\d+)/hypervisor/$',
            Hypervisor.as_view(),
            name='hypervisor'),
        url(r'^api/v1/group/$', GroupList.as_view(), name='group-list'),
        url(r'^api/v1/group/(?P<groupname>.*)/$', Group.as_view()),
        url(r'^api/v1/tag/$', TagList.as_view(), name='tag-list'),
        url(r'^api/v1/tag/(?P<tag_slug>.*)/$', Tag.as_view()),
        url(r'^api/v1/application/$',
            ApplicationListNoAuth.as_view(),
            name='application-list-no-auth'),
        url(r'^api/v1/instance/$',
            InstanceHistory.as_view(),
            name='instance-history'),
        url(r'^api/v1/request_image/$',
            MachineRequestStaffList.as_view(),
            name='direct-machine-request-list'),
        url(r'^api/v1/request_image/(?P<machine_request_id>\d+)/$',
            MachineRequestStaff.as_view(),
            name='direct-machine-request-detail'),
        url(r'^api/v1/request_image/(?P<machine_request_id>\d+)/(?P<action>.*)/$',
Exemplo n.º 6
0
 def group(self):
     return Group(auth=self.auth)