Source code for mr_openapi.models.model_version_state
"""Model Registry REST API.REST API for Model Registry to create and manage ML model metadataThe version of the OpenAPI document: v1alpha3Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually."""# noqa: E501from__future__importannotationsimportjsonfromenumimportEnumfromtyping_extensionsimportSelf
[docs]classModelVersionState(str,Enum):"""- LIVE: A state indicating that the `ModelVersion` exists - ARCHIVED: A state indicating that the `ModelVersion` has been archived."""""" allowed enum values """LIVE="LIVE"ARCHIVED="ARCHIVED"
[docs]@classmethoddeffrom_json(cls,json_str:str)->Self:"""Create an instance of ModelVersionState from a JSON string."""returncls(json.loads(json_str))