diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-10-15 13:17:23 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-10-15 18:15:29 -0700 |
commit | 6cccac03451f46cb59897871e6631debca558771 (patch) | |
tree | e846a634d5a69584aab1902455dab1cf59f7b28c /python/sandcrawler/fileset_types.py | |
parent | 84179e60f747070f7a2424e4deccaee2eb096605 (diff) | |
download | sandcrawler-6cccac03451f46cb59897871e6631debca558771.tar.gz sandcrawler-6cccac03451f46cb59897871e6631debca558771.zip |
filesets: iteration of implementation and docs
Diffstat (limited to 'python/sandcrawler/fileset_types.py')
-rw-r--r-- | python/sandcrawler/fileset_types.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/python/sandcrawler/fileset_types.py b/python/sandcrawler/fileset_types.py index 9fe8b0d..037843e 100644 --- a/python/sandcrawler/fileset_types.py +++ b/python/sandcrawler/fileset_types.py @@ -19,20 +19,20 @@ class FilesetManifestFile(BaseModel): sha1: Optional[str] sha256: Optional[str] mimetype: Optional[str] + extra: Optional[Dict[str, Any]] status: Optional[str] platform_url: Optional[str] terminal_url: Optional[str] terminal_dt: Optional[str] - extra: Optional[Dict[str, Any]] -class DatasetPlatformItem(BaseModel): +class FilesetPlatformItem(BaseModel): platform_name: str platform_status: str - manifest: Optional[List[FilesetManifestFile]] - platform_domain: Optional[str] platform_id: Optional[str] + manifest: Optional[List[FilesetManifestFile]] + archiveorg_item_name: Optional[str] archiveorg_item_meta: Optional[dict] web_base_url: Optional[str] @@ -42,6 +42,13 @@ class ArchiveStrategyResult(BaseModel): ingest_strategy: str status: str manifest: List[FilesetManifestFile] + file_file_meta: Optional[Dict[str, Any]] + file_terminal: Optional[Dict[str, Any]] + file_cdx: Optional[Dict[str, Any]] + bundle_file_meta: Optional[Dict[str, Any]] + bundle_terminal: Optional[Any] + bundle_cdx: Optional[Any] + bundle_archiveorg_path: Optional[str] class PlatformScopeError(Exception): """ |