Esempio n. 1
0
class ProductFileDetailsSerializerV5(ProductFileSerializerV5):
    """Converts product file model fields to REST output"""
    from source.serializers import SourceFileSerializer

    sources = SourceFileSerializer(many=True)
    ancestors = ProductFileSerializer(many=True, source='ancestor_products')
    descendants = ProductFileSerializer(many=True, source='descendant_products')
Esempio n. 2
0
class IngestDetailsSerializer(IngestBaseSerializer):
    """Converts ingest model fields to REST output"""
    from source.serializers import SourceFileSerializer

    file_path = serializers.CharField()
    new_file_path = serializers.CharField()

    strike = StrikeDetailsSerializer()
    source_file = SourceFileSerializer()
Esempio n. 3
0
class IngestDetailsSerializer(IngestBaseSerializer):
    '''Converts ingest model fields to REST output'''
    from source.serializers import SourceFileSerializer

    transfer_path = serializers.CharField()
    file_path = serializers.CharField()
    ingest_path = serializers.CharField()

    strike = StrikeDetailsSerializer()
    source_file = SourceFileSerializer()
Esempio n. 4
0
class IngestDetailsSerializerV6(IngestSerializerV6):
    """Converts ingest model fields to REST output"""

    scan = ScanDetailsSerializerV6()
    strike = StrikeDetailsSerializerV6()

    workspace = WorkspaceDetailsSerializerV6()
    new_workspace = WorkspaceDetailsSerializerV6()

    job = ModelIdSerializer()
    source_file = SourceFileSerializer()