text: from rest_framework import generics
  # from rest_framework import filters
  from rest_framework import permissions
  from rodan.models.outputporttype import OutputPortType
  from rodan.serializers.outputporttype import OutputPortTypeSerializer
  from rodan.paginators.pagination import CustomPaginationWithDisablePaginationOption
  
  
  class OutputPortTypeList(generics.ListAPIView):
      """
      Returns a list of OutputPortTypes. Does not accept POST requests, since
      OutputPortTypes should be defined and loaded server-side.
      """
  
      permission_classes = (permissions.AllowAny,)
      queryset = OutputPortType.objects.all()
      serializer_class = OutputPortTypeSerializer
      pagination_class = CustomPaginationWithDisablePaginationOption
      filter_backends = ()
      filter_fields = {
          "job": ["exact", "icontains"],
          "minimum": ["exact", "lt", "gt"],
          "uuid": ["exact"],
          "name": ["exact", "icontains"],
          "maximum": ["exact", "lt", "gt"],
      }
  
  
  class OutputPortTypeDetail(generics.RetrieveAPIView):
      """
      Query a single OutputPortType instance.
      """
  
      permission_classes = (permissions.AllowAny,)
      queryset = OutputPortType.objects.all()
      serializer_class = OutputPortTypeSerializer
      filter_backends = ()
  