pki.serializer.cert_profile

Serializers for Certificate Profile-related API endpoints.

Defines classes that handle validation and transformation of Certificate profile model instances to and from JSON.

Module Contents

class pki.serializer.cert_profile.CertProfileSerializer(instance=None, data=empty, **kwargs)[source]

Bases: rest_framework.serializers.ModelSerializer[pki.models.cert_profile.CertificateProfileModel]

Serializer for Certificate profile instances.

Handles conversion between Certificate Profile model objects and JSON representations.

class Meta[source]

Metadata for CertProfileSerializer, defining model and serialized fields.

model[source]
fields: ClassVar[list[str]] = ['id', 'unique_name'][source]
read_only_fields: ClassVar[list[str]] = ['id'][source]