PyMigrationManifestSerializer
class PyMigrationManifestSerializer
Bases: object
Provides functionality to serialize and deserialize migration manifests in JSON format.
__init__()
Creates a new PyMigrationManifestSerializer object.
Args: : migration_manifest_serializer: A MigrationManifestSerializer object.
Returns: None.
- Return type: None
Methods
__init__ () |
Creates a new PyMigrationManifestSerializer object. |
---|---|
get_supported_manifest_version () |
This is the current MigrationManifest.ManifestVersion that this serializer supports. |
load (path) |
Loads a manifest from JSON format. |
save (manifest, path) |
Saves a manifest in JSON format. |
classmethod get_supported_manifest_version()
This is the current MigrationManifest.ManifestVersion that this serializer supports.
- Return type: int
load(path)
Loads a manifest from JSON format.
Args: : path: The file path to load the manifest from. cancel: A cancellation token to cancel the operation.
Returns: The loaded MigrationManifest, or None if the manifest could not be loaded.
- Parameters: path (str)
- Return type: PyMigrationManifest
save(manifest, path)
Saves a manifest in JSON format.
Args: : manifest: The manifest to save. path: The file path to save the manifest to.
- Parameters:
- manifest (PyMigrationManifest)
- path (str)
- Return type: None