RESTful view classes for presenting Deis API objects.
api.views.
AdminPermsViewSet
(**kwargs)[source]¶RESTful views for sharing admin permissions with other users.
model
¶alias of User
permission_classes
= [<class 'api.permissions.IsAdmin'>]¶serializer_class
¶alias of AdminUserSerializer
api.views.
AppPermsViewSet
(**kwargs)[source]¶RESTful views for sharing apps with collaborators.
model
¶alias of App
perm
= 'use_app'¶api.views.
AppResourceViewSet
(**kwargs)[source]¶A viewset for objects which are attached to an application.
api.views.
AppViewSet
(**kwargs)[source]¶A viewset for interacting with App objects.
list
(request, *args, **kwargs)[source]¶HACK: Instead of filtering by the queryset, we limit the queryset to list only the apps which are owned by the user as well as any apps they have been given permission to interact with.
model
¶alias of App
serializer_class
¶alias of AppSerializer
api.views.
BaseDeisViewSet
(**kwargs)[source]¶A generic ViewSet for objects related to Deis.
To use it, at minimum you’ll need to provide the serializer_class attribute and the model attribute shortcut.
lookup_field
= 'id'¶permission_classes
= [<class 'rest_framework.permissions.IsAuthenticated'>, <class 'api.permissions.IsAppUser'>]¶renderer_classes
= [<class 'rest_framework.renderers.JSONRenderer'>]¶api.views.
BaseHookViewSet
(**kwargs)[source]¶permission_classes
= [<class 'api.permissions.HasBuilderAuth'>]¶api.views.
BuildHookViewSet
(**kwargs)[source]¶API hook to create new Build
model
¶alias of Build
serializer_class
¶alias of BuildSerializer
api.views.
BuildViewSet
(**kwargs)[source]¶A viewset for interacting with Build objects.
model
¶alias of Build
serializer_class
¶alias of BuildSerializer
api.views.
CertificateViewSet
(**kwargs)[source]¶A viewset for interacting with Domain objects.
model
¶alias of Certificate
serializer_class
¶alias of CertificateSerializer
api.views.
ConfigHookViewSet
(**kwargs)[source]¶API hook to grab latest Config
model
¶alias of Config
serializer_class
¶alias of ConfigSerializer
api.views.
ConfigViewSet
(**kwargs)[source]¶A viewset for interacting with Config objects.
model
¶alias of Config
serializer_class
¶alias of ConfigSerializer
api.views.
ContainerViewSet
(**kwargs)[source]¶A viewset for interacting with Container objects.
model
¶alias of Container
serializer_class
¶alias of ContainerSerializer
api.views.
DomainViewSet
(**kwargs)[source]¶A viewset for interacting with Domain objects.
model
¶alias of Domain
serializer_class
¶alias of DomainSerializer
api.views.
KeyViewSet
(**kwargs)[source]¶A viewset for interacting with Key objects.
model
¶alias of Key
permission_classes
= [<class 'rest_framework.permissions.IsAuthenticated'>, <class 'api.permissions.IsOwner'>]¶serializer_class
¶alias of KeySerializer
api.views.
PushHookViewSet
(**kwargs)[source]¶API hook to create new Push
model
¶alias of Push
serializer_class
¶alias of PushSerializer
api.views.
ReleasableViewSet
(**kwargs)[source]¶A viewset for application resources which affect the release cycle.
When a resource is created, a new release is created for the application and it returns some success headers regarding the new release.
To use it, at minimum you’ll need to provide a release attribute tied to your class before calling post_save().
api.views.
ReleaseViewSet
(**kwargs)[source]¶A viewset for interacting with Release objects.
model
¶alias of Release
rollback
(request, **kwargs)[source]¶Create a new release as a copy of the state of the compiled slug and config vars of a previous release.
serializer_class
¶alias of ReleaseSerializer
api.views.
TokenManagementViewSet
(**kwargs)[source]¶permission_classes
= [<class 'api.permissions.CanRegenerateToken'>]¶serializer_class
¶alias of UserSerializer
api.views.
UserRegistrationViewSet
(**kwargs)[source]¶ViewSet to handle registering new users. The logic is in the serializer.
authentication_classes
= [<class 'api.authentication.AnonymousOrAuthenticatedAuthentication'>]¶permission_classes
= [<class 'api.permissions.HasRegistrationAuth'>]¶serializer_class
¶alias of UserSerializer