fromSemanticVersion

Converts a semantic version string to a BackupVersion enum value.

Return

the BackupVersion enum value corresponding to the given semantic version string.

Parameters

version

the semantic version string to convert. The version must be in the format X.Y.Z where X, Y, and Z are integers.

Throws

if the given version string is not a valid semantic version.