ModelService¶
ModelService
is a Unity Catalog API service that UnityCatalogServer uses to handle HTTP requests at /api/2.1/unity-catalog/models
URL.
Method | URL | Handler | Params |
---|---|---|---|
GET | / | listRegisteredModels |
|
POST | / | createRegisteredModel | CreateRegisteredModel |
DELETE | /{full_name} | deleteRegisteredModel |
|
GET | /{full_name} | getRegisteredModel |
|
PATCH | /{full_name} | updateRegisteredModel | UpdateRegisteredModel |
GET | /{full_name}/versions | listModelVersions |
|
DELETE | /{full_name}/versions/{version} | deleteModelVersion |
|
GET | /{full_name}/versions/{version} | getModelVersion |
|
PATCH | /{full_name}/versions/{version} | updateModelVersion | UpdateModelVersion |
PATCH | /{full_name}/versions/{version}/finalize | finalizeModelVersion | FinalizeModelVersion |
POST | /versions | createModelVersion | CreateModelVersion |
Creating Instance¶
ModelService
takes the following to be created:
While being created, ModelService
creates an UnityAccessEvaluator.
ModelService
is created when:
UnityCatalogServer
is requested to register the API services
UnityAccessEvaluator¶
ModelService
creates an UnityAccessEvaluator (with the given UnityCatalogAuthorizer) when created.
ModelRepository¶
ModelService
gets the system-wide ModelRepository when created.
Register Model¶
createRegisteredModel
requests the ModelRepository instance to register a model.