Views
Views of the dasf-broker-django app to be imported via the url
config (see dasf_broker.urls).
Classes:
|
View to ping a broker topic. |
|
Get a hint on the status of a broker topic. |
|
- class dasf_broker.views.BrokerTopicPingView(**kwargs)
Bases:
PermissionRequiredMixin,SingleObjectMixin,ViewView to ping a broker topic.
Attributes:
Methods:
check_permissions(request)Check if the user has the required permissions.
get(request, *args, **kwargs)post(request, *args, **kwargs)Models:
alias of
BrokerTopic- check_permissions(request)
Check if the user has the required permissions.
Checks if request.user has all permissions returned by the get_required_permissions() method.
- Parameters:
request (HttpRequest) – The original request.
- get(request, *args, **kwargs)
- model
alias of
BrokerTopic
- post(request, *args, **kwargs)
- class dasf_broker.views.BrokerTopicStatusView(**kwargs)
Bases:
PermissionRequiredMixin,BaseDetailViewGet a hint on the status of a broker topic.
Attributes:
Methods:
check_permissions(request)Check if the user has the required permissions.
render_to_response(context)Models:
alias of
BrokerTopic- check_permissions(request)
Check if the user has the required permissions.
Checks if request.user has all permissions returned by the get_required_permissions() method.
- Parameters:
request (HttpRequest) – The original request.
- model
alias of
BrokerTopic
- permission_required: str | list[str] | None = ['dasf_broker.can_view_status', 'dasf_broker.can_produce', 'dasf_broker.can_consume']
- render_to_response(context)
Bases:
HttpResponseAttributes: