pki.serializer.issuing_ca ========================= .. py:module:: pki.serializer.issuing_ca .. autoapi-nested-parse:: Serializers for Issuing CA-related API endpoints. Defines classes that handle validation and transformation of Issuing CA model instances to and from JSON. Module Contents --------------- .. py:class:: IssuingCaSerializer(instance=None, data=empty, **kwargs) Bases: :py:obj:`rest_framework.serializers.ModelSerializer`\ [\ :py:obj:`pki.models.CaModel`\ ] Serializer for Issuing CA instances. .. py:attribute:: common_name .. py:attribute:: ca_type .. py:attribute:: ca_type_display .. py:attribute:: last_crl_issued_at .. py:attribute:: has_crl .. py:class:: Meta Metadata for IssuingCaSerializer, defining model and serialized fields. .. py:attribute:: model .. py:attribute:: fields :type: ClassVar[list[str]] :value: ['id', 'unique_name', 'common_name', 'ca_type', 'ca_type_display', 'is_active', 'created_at',... .. py:attribute:: read_only_fields :type: ClassVar[list[str]] :value: ['id', 'unique_name', 'common_name', 'ca_type', 'ca_type_display', 'is_active', 'created_at',... .. py:method:: get_has_crl(obj) Check if the CA has a CRL available. .. py:method:: get_last_crl_issued_at(obj) Get the last CRL issued at timestamp. .. py:method:: get_common_name(obj) Get the common name of the CA.