o S=¸h¼ã@s¤ddlmZmZGdd„deƒZGdd„deƒZGdd„deƒZGdd „d eƒZGd d „d eƒZGd d „d eƒZGdd„deƒZ Gdd„deƒZ Gdd„deƒZ dS)é)ÚSchemaÚfieldsc@s$eZdZe ¡Ze ¡Ze ¡ZdS)ÚContactRequestSchemaN)Ú__name__Ú __module__Ú __qualname__rÚStrÚnameÚemailÚmessage©r r ú=/home/cmiss/Jenkins/workspace/SPARC-API-DEV/app/serializer.pyrs rc@seZdZe ¡Ze ¡ZdS)ÚListservSubscribeSchemaN)rrrrrr r r r r r r s rc@óeZdZe ¡ZdS)Ú TagSchemaN)rrrrrÚtagr r r r ró rc@r)Ú TermSchemaN)rrrrrÚtermr r r r rrrc@s eZdZejddZe ¡ZdS)ÚModelCountSchemaÚ model_name©Ú attributeN)rrrrrrÚIntÚcountr r r r rs  rc@sæeZdZe ¡Ze ¡Ze ¡ZejddZ ejddZ e ¡Z e  e  e¡¡Ze ¡Ze ¡Ze  e ¡¡Zej e  e¡ddZejddZejddZe ¡Ze ¡Ze ¡Ze ¡Ze ¡Ze ¡ZejddZejddZd S) Ú DatasetSchemaZ owner_namerÚorganization_nameZ model_countÚ file_countZ record_countÚ created_atÚ updated_atN) rrrrrÚidÚStringr Ú descriptionZ ownerNameZorganizationNameÚlicenseÚListÚNestedrÚtagsÚversionÚsizerZ contributorsrZ modelCountZ fileCountZ recordCountÚuriÚarnÚstatusÚdoiÚbannerÚreadmeÚ createdAtÚ updatedAtr r r r rs,     rc@sHeZdZe ¡ZejddZejddZe ¡Z e ¡Z ejddZ dS)Ú FileSchemaÚ dataset_idrÚdataset_versionrN) rrrrrr rÚ datasetIdZdatasetVersionr(r)r/r r r r r14s  r1c@ó8eZdZe ¡Ze ¡Ze e e ¡¡Z ejddZ dS)ÚPaginatedFileResponseSchemaÚ total_countrN) rrrrrÚlimitÚoffsetr$r%r1ÚfilesÚ totalCountr r r r r6=ó r6c@r5)ÚPaginatedDatasetResponseSchemar7rN) rrrrrr8r9r$r%rÚdatasetsr;r r r r r=Dr<r=N) Ú marshmallowrrrrrrrrr1r6r=r r r r Ús