Lock

Note

New in version 0.17.3.

class verta.registry.lock.Closed

No further changes can be made to the model version.

Examples

from verta.registry import lock
reg_model = client.create_registered_model("My Model", workspace="my-org")
model_ver = reg_model.create_version("My Model v0", lock_level=lock.Closed())
# equivalently:
# reg_model.create_version("My Model v0", lock_level=lock.closed)
class verta.registry.lock.Open

Changes to the model version are allowed.

Examples

from verta.registry import lock
reg_model = client.create_registered_model("My Model", workspace="my-org")
model_ver = reg_model.create_version("My Model v0", lock_level=lock.Open())
# equivalently:
# reg_model.create_version("My Model v0", lock_level=lock.open)
class verta.registry.lock.Redact

Special permissions are required to make changes to the model version.

Examples

from verta.registry import lock
reg_model = client.create_registered_model("My Model", workspace="my-org")
model_ver = reg_model.create_version("My Model v0", lock_level=lock.Redact())
# equivalently:
# reg_model.create_version("My Model v0", lock_level=lock.redact)