Skip to content

TemporaryModelVersionCredentialsService

TemporaryModelVersionCredentialsService is an API service of UnityCatalogServer to handle HTTP requests at /api/2.1/unity-catalog/temporary-model-version-credentials URL.

Method URL Handler Params
POST / generateTemporaryModelVersionCredentials JSON-ified GenerateTemporaryModelVersionCredential

TemporaryModelVersionCredentialsService supports credential vending for model versions in non-file-based storage locations.

Creating Instance

TemporaryModelVersionCredentialsService takes the following to be created:

While being created, TemporaryModelVersionCredentialsService creates an UnityAccessEvaluator.

TemporaryModelVersionCredentialsService is created when:

UnityAccessEvaluator

TemporaryModelVersionCredentialsService creates an UnityAccessEvaluator (with the given UnityCatalogAuthorizer) when created.

ModelRepository

TemporaryModelVersionCredentialsService gets the system-wide ModelRepository instance when created.

TemporaryModelVersionCredentialsService uses the ModelRepository to look up the model version while generating temporary model version credentials.

Generate Temporary Model Version Credentials

HttpResponse generateTemporaryModelVersionCredentials(
  GenerateTemporaryModelVersionCredential generateTemporaryModelVersionCredentials)

generateTemporaryModelVersionCredentials...FIXME

Privileges by Model Version Operation

Set<CredentialContext.Privilege> modelVersionOperationToPrivileges(
  ModelVersionOperation modelVersionOperation)

modelVersionOperationToPrivileges converts the given ModelVersionOperation to Privileges:

ModelVersionOperation Privileges
READ_MODEL_VERSION SELECT
READ_WRITE_MODEL_VERSION SELECT, UPDATE
UNKNOWN_MODEL_VERSION_OPERATION A BaseException is thrown