pub struct CatalogServiceAsyncClient<T>(/* private fields */);
Expand description
The Catalog Service provides the ability to query for information about Datasets that are stored in the Nominal platform. A Dataset is the Nominal representation of data that has been uploaded to Nominal via a file, primarily CSV.
Implementations§
Source§impl<T> CatalogServiceAsyncClient<T>where
T: AsyncClient,
impl<T> CatalogServiceAsyncClient<T>where
T: AsyncClient,
pub async fn get_enriched_dataset( &self, auth_: &BearerToken, dataset_uuid: Uuid, ) -> Result<EnrichedDataset, Error>
pub async fn get_enriched_datasets( &self, auth_: &BearerToken, get_datasets_request: &GetDatasetsRequest, ) -> Result<BTreeSet<EnrichedDataset>, Error>
pub async fn get_dataset( &self, auth_: &BearerToken, dataset_uuid: Uuid, ) -> Result<Dataset, Error>
pub async fn get_datasets( &self, auth_: &BearerToken, get_datasets_request: &GetDatasetsRequest, ) -> Result<BTreeSet<Dataset>, Error>
pub async fn get_dataset_file( &self, auth_: &BearerToken, dataset_rid: &ResourceIdentifier, file_id: DatasetFileId, ) -> Result<DatasetFile, Error>
pub async fn get_dataset_files_for_job( &self, auth_: &BearerToken, ingest_job_rid: &ResourceIdentifier, next_page_token: Option<&Token>, ) -> Result<DatasetFilesPage, Error>
pub async fn search_datasets( &self, auth_: &BearerToken, request: &SearchDatasetsRequest, ) -> Result<SearchDatasetsResponse, Error>
pub async fn update_dataset_ingest_status_v2( &self, auth_: &BearerToken, details: &UpdateIngestStatusV2, ) -> Result<IngestStatusV2, Error>
pub async fn get_ingest_progress_v2( &self, auth_: &BearerToken, dataset_rid: &ResourceIdentifier, ) -> Result<IngestProgressV2, Error>
pub async fn get_handle_for_dataset( &self, auth_: &BearerToken, dataset: Uuid, ) -> Result<Option<Handle>, Error>
pub async fn create_dataset( &self, auth_: &BearerToken, details: &CreateDataset, ) -> Result<EnrichedDataset, Error>
Sourcepub async fn create_or_update_dataset(
&self,
auth_: &BearerToken,
details: &CreateDataset,
) -> Result<EnrichedDataset, Error>
pub async fn create_or_update_dataset( &self, auth_: &BearerToken, details: &CreateDataset, ) -> Result<EnrichedDataset, Error>
Creates a dataset if the s3 path does not exist, otherwise updates the dataset
Sourcepub async fn add_file_to_dataset(
&self,
auth_: &BearerToken,
dataset_rid: &ResourceIdentifier,
request: &AddFileToDataset,
) -> Result<DatasetFile, Error>
pub async fn add_file_to_dataset( &self, auth_: &BearerToken, dataset_rid: &ResourceIdentifier, request: &AddFileToDataset, ) -> Result<DatasetFile, Error>
Adds a single file to an existing dataset.
pub async fn list_dataset_files( &self, auth_: &BearerToken, dataset_rid: &ResourceIdentifier, next_page_token: Option<&Token>, ) -> Result<DatasetFilesPage, Error>
pub async fn search_dataset_files( &self, auth_: &BearerToken, request: &SearchDatasetFilesRequest, ) -> Result<SearchDatasetFilesResponse, Error>
pub async fn get_dataset_file_uri( &self, auth_: &BearerToken, dataset_rid: &DatasetRid, file_id: DatasetFileId, ) -> Result<DatasetFileUri, Error>
pub async fn get_origin_file_uris( &self, auth_: &BearerToken, dataset_rid: &DatasetRid, file_id: DatasetFileId, ) -> Result<Vec<OriginFileUri>, Error>
pub async fn mark_file_ingest_successful( &self, auth_: &BearerToken, dataset_rid: &ResourceIdentifier, file_id: DatasetFileId, request: &MarkFileIngestSuccessful, ) -> Result<DatasetFile, Error>
pub async fn mark_file_ingest_error( &self, auth_: &BearerToken, dataset_rid: &ResourceIdentifier, file_id: DatasetFileId, request: &MarkFileIngestError, ) -> Result<DatasetFile, Error>
pub async fn update_dataset_metadata( &self, auth_: &BearerToken, dataset_rid: &ResourceIdentifier, request: &UpdateDatasetMetadata, ) -> Result<EnrichedDataset, Error>
pub async fn update_bounds( &self, auth_: &BearerToken, rid: &ResourceIdentifier, request: &UpdateBoundsRequest, ) -> Result<EnrichedDataset, Error>
Sourcepub async fn update_global_dataset_bounds(
&self,
auth_: &BearerToken,
rid: &ResourceIdentifier,
request: &UpdateBoundsRequest,
) -> Result<Dataset, Error>
pub async fn update_global_dataset_bounds( &self, auth_: &BearerToken, rid: &ResourceIdentifier, request: &UpdateBoundsRequest, ) -> Result<Dataset, Error>
Update the bounds for a dataset without updating bounds of files within the dataset. If the current bounds of the dataset are not set, then the bounds of the request will be used. Otherwise, the bounds will be min(current start, request start), max(current end, request end).
Sourcepub async fn archive_dataset(
&self,
auth_: &BearerToken,
dataset_rid: &ResourceIdentifier,
) -> Result<(), Error>
pub async fn archive_dataset( &self, auth_: &BearerToken, dataset_rid: &ResourceIdentifier, ) -> Result<(), Error>
Archives a dataset, which will hide it from search results unless the includeArchived flag is set to true. The dataset can still be directly accessed by its UUID/rid.
Sourcepub async fn unarchive_dataset(
&self,
auth_: &BearerToken,
dataset_rid: &ResourceIdentifier,
) -> Result<(), Error>
pub async fn unarchive_dataset( &self, auth_: &BearerToken, dataset_rid: &ResourceIdentifier, ) -> Result<(), Error>
Undoes the archiving of a dataset.
pub async fn get_all_properties_and_labels( &self, auth_: &BearerToken, workspaces: &BTreeSet<WorkspaceRid>, ) -> Result<AllPropertiesAndLabelsResponse, Error>
Sourcepub async fn get_log_dataset_for_workspace(
&self,
auth_: &BearerToken,
workspace_rid: &WorkspaceRid,
) -> Result<Option<DatasetRid>, Error>
pub async fn get_log_dataset_for_workspace( &self, auth_: &BearerToken, workspace_rid: &WorkspaceRid, ) -> Result<Option<DatasetRid>, Error>
Returns the log dataset RID for the specified workspace if configured and accessible to the caller.
Trait Implementations§
Source§impl<T> AsyncService<T> for CatalogServiceAsyncClient<T>where
T: AsyncClient,
impl<T> AsyncService<T> for CatalogServiceAsyncClient<T>where
T: AsyncClient,
Source§impl<T: Clone> Clone for CatalogServiceAsyncClient<T>
impl<T: Clone> Clone for CatalogServiceAsyncClient<T>
Source§fn clone(&self) -> CatalogServiceAsyncClient<T>
fn clone(&self) -> CatalogServiceAsyncClient<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for CatalogServiceAsyncClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for CatalogServiceAsyncClient<T>where
T: RefUnwindSafe,
impl<T> Send for CatalogServiceAsyncClient<T>where
T: Send,
impl<T> Sync for CatalogServiceAsyncClient<T>where
T: Sync,
impl<T> Unpin for CatalogServiceAsyncClient<T>where
T: Unpin,
impl<T> UnwindSafe for CatalogServiceAsyncClient<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request