pub struct RegisteredModelServiceClient { /* private fields */ }Expand description
HTTP client for service operations
Implementations§
Source§impl RegisteredModelServiceClient
impl RegisteredModelServiceClient
Sourcepub fn new(client: CloudClient, base_url: Url) -> Self
pub fn new(client: CloudClient, base_url: Url) -> Self
Create a new client instance
Sourcepub async fn list_registered_models(
&self,
request: &ListRegisteredModelsRequest,
) -> Result<ListRegisteredModelsResponse>
pub async fn list_registered_models( &self, request: &ListRegisteredModelsRequest, ) -> Result<ListRegisteredModelsResponse>
List registered models
List registered models within the specified parent catalog and schema. If the caller is the metastore admin, all registered models are returned in the response. Otherwise, the caller must have USE_CATALOG on the parent catalog and USE_SCHEMA on the parent schema, and the model must either be owned by the caller or the caller must have a privilege on the model.
Sourcepub async fn create_registered_model(
&self,
request: &CreateRegisteredModelRequest,
) -> Result<RegisteredModel>
pub async fn create_registered_model( &self, request: &CreateRegisteredModelRequest, ) -> Result<RegisteredModel>
Create a registered model
Creates a new registered model. The caller must be a metastore admin or have the CREATE_MODEL privilege on the parent catalog and schema.
Sourcepub async fn get_registered_model(
&self,
request: &GetRegisteredModelRequest,
) -> Result<RegisteredModel>
pub async fn get_registered_model( &self, request: &GetRegisteredModelRequest, ) -> Result<RegisteredModel>
Get a registered model
Gets a registered model from within a parent catalog and schema. For the fetch to succeed, the caller must be a metastore admin, the owner of the registered model, or have a privilege on the registered model.
Sourcepub async fn update_registered_model(
&self,
request: &UpdateRegisteredModelRequest,
) -> Result<RegisteredModel>
pub async fn update_registered_model( &self, request: &UpdateRegisteredModelRequest, ) -> Result<RegisteredModel>
Update a registered model
Updates the registered model that matches the supplied name.
Sourcepub async fn delete_registered_model(
&self,
request: &DeleteRegisteredModelRequest,
) -> Result<()>
pub async fn delete_registered_model( &self, request: &DeleteRegisteredModelRequest, ) -> Result<()>
Delete a registered model
Deletes the registered model that matches the supplied name. For the deletion to succeed, the caller must be the owner of the registered model.
Trait Implementations§
Source§impl Clone for RegisteredModelServiceClient
impl Clone for RegisteredModelServiceClient
Source§fn clone(&self) -> RegisteredModelServiceClient
fn clone(&self) -> RegisteredModelServiceClient
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more