pub struct NblmClient { /* private fields */ }Implementations§
Source§impl NblmClient
impl NblmClient
pub async fn create_notebook( &self, title: impl Into<String>, ) -> Result<Notebook>
pub async fn batch_delete_notebooks( &self, request: BatchDeleteNotebooksRequest, ) -> Result<BatchDeleteNotebooksResponse>
pub async fn delete_notebooks( &self, notebook_names: Vec<String>, ) -> Result<BatchDeleteNotebooksResponse>
pub async fn list_recently_viewed( &self, page_size: Option<u32>, ) -> Result<ListRecentlyViewedResponse>
pub async fn batch_create_sources( &self, notebook_id: &str, request: BatchCreateSourcesRequest, ) -> Result<BatchCreateSourcesResponse>
pub async fn add_sources( &self, notebook_id: &str, contents: Vec<UserContent>, ) -> Result<BatchCreateSourcesResponse>
pub async fn batch_delete_sources( &self, notebook_id: &str, request: BatchDeleteSourcesRequest, ) -> Result<BatchDeleteSourcesResponse>
pub async fn delete_sources( &self, notebook_id: &str, source_names: Vec<String>, ) -> Result<BatchDeleteSourcesResponse>
pub async fn upload_source_file( &self, notebook_id: &str, file_name: &str, content_type: &str, data: Vec<u8>, ) -> Result<UploadSourceFileResponse>
pub async fn get_source( &self, notebook_id: &str, source_id: &str, ) -> Result<NotebookSource>
pub async fn create_audio_overview( &self, notebook_id: &str, request: AudioOverviewRequest, ) -> Result<AudioOverviewResponse>
pub async fn delete_audio_overview(&self, notebook_id: &str) -> Result<()>
Source§impl NblmClient
impl NblmClient
pub fn new( token_provider: Arc<dyn TokenProvider>, environment: EnvironmentConfig, ) -> Result<Self>
pub fn new_enterprise( token_provider: Arc<dyn TokenProvider>, project_number: impl Into<String>, location: impl Into<String>, endpoint_location: impl Into<String>, ) -> Result<Self>
👎Deprecated: Use EnvironmentConfig::enterprise(…) with NblmClient::new
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_retry_config(self, config: RetryConfig) -> Self
pub fn with_user_project(self, project: impl Into<String>) -> Self
Sourcepub fn with_base_url(self, base: impl Into<String>) -> Result<Self>
pub fn with_base_url(self, base: impl Into<String>) -> Result<Self>
Override API base URL (for tests). Accepts absolute URL. Trims trailing slash.
Auto Trait Implementations§
impl Freeze for NblmClient
impl !RefUnwindSafe for NblmClient
impl Send for NblmClient
impl Sync for NblmClient
impl Unpin for NblmClient
impl !UnwindSafe for NblmClient
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
Mutably borrows from an owned value. Read more