Class ModelRegistryAPI
- java.lang.Object
-
- com.databricks.sdk.service.ml.ModelRegistryAPI
-
@Generated public class ModelRegistryAPI extends Object
-
-
Constructor Summary
Constructors Constructor Description ModelRegistryAPI(ApiClient apiClient)
Regular-use constructorModelRegistryAPI(ModelRegistryService mock)
Constructor for mocks
-
Method Summary
-
-
-
Constructor Detail
-
ModelRegistryAPI
public ModelRegistryAPI(ApiClient apiClient)
Regular-use constructor
-
ModelRegistryAPI
public ModelRegistryAPI(ModelRegistryService mock)
Constructor for mocks
-
-
Method Detail
-
approveTransitionRequest
public ApproveTransitionRequestResponse approveTransitionRequest(String name, String version, Stage stage, boolean archiveExistingVersions)
-
approveTransitionRequest
public ApproveTransitionRequestResponse approveTransitionRequest(ApproveTransitionRequest request)
Approve transition request.Approves a model version stage transition request.
-
createComment
public CreateCommentResponse createComment(String name, String version, String comment)
-
createComment
public CreateCommentResponse createComment(CreateComment request)
Post a comment.Posts a comment on a model version. A comment can be submitted either by a user or programmatically to display relevant information about the model. For example, test results or deployment errors.
-
createModel
public CreateModelResponse createModel(String name)
-
createModel
public CreateModelResponse createModel(CreateModelRequest request)
Create a model.Creates a new registered model with the name specified in the request body.
Throws `RESOURCE_ALREADY_EXISTS` if a registered model with the given name exists.
-
createModelVersion
public CreateModelVersionResponse createModelVersion(String name, String source)
-
createModelVersion
public CreateModelVersionResponse createModelVersion(CreateModelVersionRequest request)
Create a model version.Creates a model version.
-
createTransitionRequest
public CreateTransitionRequestResponse createTransitionRequest(String name, String version, Stage stage)
-
createTransitionRequest
public CreateTransitionRequestResponse createTransitionRequest(CreateTransitionRequest request)
Make a transition request.Creates a model version stage transition request.
-
createWebhook
public CreateWebhookResponse createWebhook(Collection<RegistryWebhookEvent> events)
-
createWebhook
public CreateWebhookResponse createWebhook(CreateRegistryWebhook request)
Create a webhook.**NOTE**: This endpoint is in Public Preview.
Creates a registry webhook.
-
deleteComment
public void deleteComment(String id)
-
deleteComment
public void deleteComment(DeleteCommentRequest request)
Delete a comment.Deletes a comment on a model version.
-
deleteModel
public void deleteModel(String name)
-
deleteModel
public void deleteModel(DeleteModelRequest request)
Delete a model.Deletes a registered model.
-
deleteModelTag
public void deleteModelTag(DeleteModelTagRequest request)
Delete a model tag.Deletes the tag for a registered model.
-
deleteModelVersion
public void deleteModelVersion(DeleteModelVersionRequest request)
Delete a model version.Deletes a model version.
-
deleteModelVersionTag
public void deleteModelVersionTag(DeleteModelVersionTagRequest request)
Delete a model version tag.Deletes a model version tag.
-
deleteTransitionRequest
public void deleteTransitionRequest(String name, String version, String stage, String creator)
-
deleteTransitionRequest
public void deleteTransitionRequest(DeleteTransitionRequestRequest request)
Delete a ransition request.Cancels a model version stage transition request.
-
deleteWebhook
public void deleteWebhook(DeleteWebhookRequest request)
Delete a webhook.**NOTE:** This endpoint is in Public Preview.
Deletes a registry webhook.
-
getLatestVersions
public Iterable<ModelVersion> getLatestVersions(String name)
-
getLatestVersions
public Iterable<ModelVersion> getLatestVersions(GetLatestVersionsRequest request)
Get the latest version.Gets the latest version of a registered model.
-
getModel
public GetModelResponse getModel(String name)
-
getModel
public GetModelResponse getModel(GetModelRequest request)
Get model.Get the details of a model. This is a Databricks Workspace version of the [MLflow endpoint] that also returns the model's Databricks Workspace ID and the permission level of the requesting user on the model.
[MLflow endpoint]: https://www.mlflow.org/docs/latest/rest-api.html#get-registeredmodel
-
getModelVersion
public GetModelVersionResponse getModelVersion(String name, String version)
-
getModelVersion
public GetModelVersionResponse getModelVersion(GetModelVersionRequest request)
Get a model version.Get a model version.
-
getModelVersionDownloadUri
public GetModelVersionDownloadUriResponse getModelVersionDownloadUri(String name, String version)
-
getModelVersionDownloadUri
public GetModelVersionDownloadUriResponse getModelVersionDownloadUri(GetModelVersionDownloadUriRequest request)
Get a model version URI.Gets a URI to download the model version.
-
listModels
public Iterable<Model> listModels(ListModelsRequest request)
List models.Lists all available registered models, up to the limit specified in __max_results__.
-
listTransitionRequests
public Iterable<Activity> listTransitionRequests(String name, String version)
-
listTransitionRequests
public Iterable<Activity> listTransitionRequests(ListTransitionRequestsRequest request)
List transition requests.Gets a list of all open stage transition requests for the model version.
-
listWebhooks
public Iterable<RegistryWebhook> listWebhooks(ListWebhooksRequest request)
List registry webhooks.**NOTE:** This endpoint is in Public Preview.
Lists all registry webhooks.
-
rejectTransitionRequest
public RejectTransitionRequestResponse rejectTransitionRequest(String name, String version, Stage stage)
-
rejectTransitionRequest
public RejectTransitionRequestResponse rejectTransitionRequest(RejectTransitionRequest request)
Reject a transition request.Rejects a model version stage transition request.
-
renameModel
public RenameModelResponse renameModel(String name)
-
renameModel
public RenameModelResponse renameModel(RenameModelRequest request)
Rename a model.Renames a registered model.
-
searchModelVersions
public Iterable<ModelVersion> searchModelVersions(SearchModelVersionsRequest request)
Searches model versions.Searches for specific model versions based on the supplied __filter__.
-
searchModels
public Iterable<Model> searchModels(SearchModelsRequest request)
Search models.Search for registered models based on the specified __filter__.
-
setModelTag
public void setModelTag(SetModelTagRequest request)
Set a tag.Sets a tag on a registered model.
-
setModelVersionTag
public void setModelVersionTag(String name, String version, String key, String value)
-
setModelVersionTag
public void setModelVersionTag(SetModelVersionTagRequest request)
Set a version tag.Sets a model version tag.
-
testRegistryWebhook
public TestRegistryWebhookResponse testRegistryWebhook(String id)
-
testRegistryWebhook
public TestRegistryWebhookResponse testRegistryWebhook(TestRegistryWebhookRequest request)
Test a webhook.**NOTE:** This endpoint is in Public Preview.
Tests a registry webhook.
-
transitionStage
public TransitionStageResponse transitionStage(String name, String version, Stage stage, boolean archiveExistingVersions)
-
transitionStage
public TransitionStageResponse transitionStage(TransitionModelVersionStageDatabricks request)
Transition a stage.Transition a model version's stage. This is a Databricks Workspace version of the [MLflow endpoint] that also accepts a comment associated with the transition to be recorded.",
[MLflow endpoint]: https://www.mlflow.org/docs/latest/rest-api.html#transition-modelversion-stage
-
updateComment
public UpdateCommentResponse updateComment(String id, String comment)
-
updateComment
public UpdateCommentResponse updateComment(UpdateComment request)
Update a comment.Post an edit to a comment on a model version.
-
updateModel
public void updateModel(String name)
-
updateModel
public void updateModel(UpdateModelRequest request)
Update model.Updates a registered model.
-
updateModelVersion
public void updateModelVersion(UpdateModelVersionRequest request)
Update model version.Updates the model version.
-
updateWebhook
public void updateWebhook(String id)
-
updateWebhook
public void updateWebhook(UpdateRegistryWebhook request)
Update a webhook.**NOTE:** This endpoint is in Public Preview.
Updates a registry webhook.
-
impl
public ModelRegistryService impl()
-
-