pub struct NotebookServiceAsyncClient<T>(/* private fields */);
Expand description
NotebookService manages workbooks (formerly known as notebooks).
Implementations§
Source§impl<T> NotebookServiceAsyncClient<T>where
T: AsyncClient,
impl<T> NotebookServiceAsyncClient<T>where
T: AsyncClient,
Sourcepub async fn create(
&self,
auth_: &BearerToken,
request: &CreateNotebookRequest,
) -> Result<Notebook, Error>
pub async fn create( &self, auth_: &BearerToken, request: &CreateNotebookRequest, ) -> Result<Notebook, Error>
Creates a new workbook. The workbook will be associated with the provided run. If the run does not exist, a RunNotFound error will be thrown.
Sourcepub async fn update(
&self,
auth_: &BearerToken,
rid: &NotebookRid,
request: &UpdateNotebookRequest,
) -> Result<Notebook, Error>
pub async fn update( &self, auth_: &BearerToken, rid: &NotebookRid, request: &UpdateNotebookRequest, ) -> Result<Notebook, Error>
Updates the contents of a workbook.
pub async fn get( &self, auth_: &BearerToken, rid: &NotebookRid, ) -> Result<Notebook, Error>
pub async fn batch_get( &self, auth_: &BearerToken, rids: &BTreeSet<NotebookRid>, ) -> Result<BTreeSet<Notebook>, Error>
pub async fn batch_get_metadata( &self, auth_: &BearerToken, rids: &BTreeSet<NotebookRid>, ) -> Result<BTreeSet<NotebookMetadataWithRid>, Error>
Sourcepub async fn update_metadata(
&self,
auth_: &BearerToken,
rid: &NotebookRid,
request: &UpdateNotebookMetadataRequest,
) -> Result<NotebookMetadata, Error>
pub async fn update_metadata( &self, auth_: &BearerToken, rid: &NotebookRid, request: &UpdateNotebookMetadataRequest, ) -> Result<NotebookMetadata, Error>
Updates metadata about a workbook, but not its contents.
Sourcepub async fn get_all_labels_and_properties(
&self,
auth_: &BearerToken,
workspaces: &BTreeSet<WorkspaceRid>,
) -> Result<GetAllLabelsAndPropertiesResponse, Error>
pub async fn get_all_labels_and_properties( &self, auth_: &BearerToken, workspaces: &BTreeSet<WorkspaceRid>, ) -> Result<GetAllLabelsAndPropertiesResponse, Error>
Returns all properties (key value pairs) and labels that have been previously used on workbook. These can be used to organize workbooks.
pub async fn search( &self, auth_: &BearerToken, request: &SearchNotebooksRequest, ) -> Result<SearchNotebooksResponse, Error>
Sourcepub async fn lock(
&self,
auth_: &BearerToken,
rid: &NotebookRid,
) -> Result<(), Error>
pub async fn lock( &self, auth_: &BearerToken, rid: &NotebookRid, ) -> Result<(), Error>
Makes a workbook uneditable.
Sourcepub async fn unlock(
&self,
auth_: &BearerToken,
rid: &NotebookRid,
) -> Result<(), Error>
pub async fn unlock( &self, auth_: &BearerToken, rid: &NotebookRid, ) -> Result<(), Error>
Unlocks a workbook for editing.
Sourcepub async fn archive(
&self,
auth_: &BearerToken,
rid: &NotebookRid,
) -> Result<(), Error>
pub async fn archive( &self, auth_: &BearerToken, rid: &NotebookRid, ) -> Result<(), Error>
Archives a workbook, which excludes it from search and hides it from being publicly visible, but does not permanently delete it. Archived workbooks can be unarchived.
Sourcepub async fn unarchive(
&self,
auth_: &BearerToken,
rid: &NotebookRid,
) -> Result<(), Error>
pub async fn unarchive( &self, auth_: &BearerToken, rid: &NotebookRid, ) -> Result<(), Error>
Makes a previously archived workbook searchable.
Sourcepub async fn delete(
&self,
auth_: &BearerToken,
rid: &NotebookRid,
) -> Result<(), Error>
pub async fn delete( &self, auth_: &BearerToken, rid: &NotebookRid, ) -> Result<(), Error>
The workbook will be deleted and is not recoverable. For soft deletion, use archive.
Trait Implementations§
Source§impl<T> AsyncService<T> for NotebookServiceAsyncClient<T>where
T: AsyncClient,
impl<T> AsyncService<T> for NotebookServiceAsyncClient<T>where
T: AsyncClient,
Source§impl<T: Clone> Clone for NotebookServiceAsyncClient<T>
impl<T: Clone> Clone for NotebookServiceAsyncClient<T>
Source§fn clone(&self) -> NotebookServiceAsyncClient<T>
fn clone(&self) -> NotebookServiceAsyncClient<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more