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_used_ref_names(
&self,
auth_: &BearerToken,
rid: &NotebookRid,
) -> Result<BTreeSet<DataSourceRefName>, Error>
pub async fn get_used_ref_names( &self, auth_: &BearerToken, rid: &NotebookRid, ) -> Result<BTreeSet<DataSourceRefName>, Error>
Returns the set of all ref names used by the workbook.
Sourcepub async fn update_ref_names(
&self,
auth_: &BearerToken,
rid: &NotebookRid,
request: &UpdateRefNameRequest,
) -> Result<Notebook, Error>
pub async fn update_ref_names( &self, auth_: &BearerToken, rid: &NotebookRid, request: &UpdateRefNameRequest, ) -> Result<Notebook, Error>
Updates the data source ref names for all variables used in the workbook.
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 moreAuto Trait Implementations§
impl<T> Freeze for NotebookServiceAsyncClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for NotebookServiceAsyncClient<T>where
T: RefUnwindSafe,
impl<T> Send for NotebookServiceAsyncClient<T>where
T: Send,
impl<T> Sync for NotebookServiceAsyncClient<T>where
T: Sync,
impl<T> Unpin for NotebookServiceAsyncClient<T>where
T: Unpin,
impl<T> UnwindSafe for NotebookServiceAsyncClient<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