#[non_exhaustive]pub struct NotebookTaskConfig {
pub notebook: String,
pub infrastructure_spec: Option<InfrastructureSpec>,
pub file_uris: Vec<String>,
pub archive_uris: Vec<String>,
/* private fields */
}Expand description
Config for running scheduled notebooks.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.notebook: StringRequired. Path to input notebook. This can be the Cloud Storage URI of
the notebook file or the path to a Notebook Content. The execution args
are accessible as environment variables
(TASK_key=value).
infrastructure_spec: Option<InfrastructureSpec>Optional. Infrastructure specification for the execution.
file_uris: Vec<String>Optional. Cloud Storage URIs of files to be placed in the working directory of each executor.
archive_uris: Vec<String>Optional. Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
Implementations§
Source§impl NotebookTaskConfig
impl NotebookTaskConfig
pub fn new() -> Self
Sourcepub fn set_notebook<T: Into<String>>(self, v: T) -> Self
pub fn set_notebook<T: Into<String>>(self, v: T) -> Self
Sets the value of notebook.
Sourcepub fn set_infrastructure_spec<T>(self, v: T) -> Selfwhere
T: Into<InfrastructureSpec>,
pub fn set_infrastructure_spec<T>(self, v: T) -> Selfwhere
T: Into<InfrastructureSpec>,
Sets the value of infrastructure_spec.
Sourcepub fn set_or_clear_infrastructure_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<InfrastructureSpec>,
pub fn set_or_clear_infrastructure_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<InfrastructureSpec>,
Sets or clears the value of infrastructure_spec.
Sourcepub fn set_file_uris<T, V>(self, v: T) -> Self
pub fn set_file_uris<T, V>(self, v: T) -> Self
Sets the value of file_uris.
Sourcepub fn set_archive_uris<T, V>(self, v: T) -> Self
pub fn set_archive_uris<T, V>(self, v: T) -> Self
Sets the value of archive_uris.
Trait Implementations§
Source§impl Clone for NotebookTaskConfig
impl Clone for NotebookTaskConfig
Source§fn clone(&self) -> NotebookTaskConfig
fn clone(&self) -> NotebookTaskConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NotebookTaskConfig
impl Debug for NotebookTaskConfig
Source§impl Default for NotebookTaskConfig
impl Default for NotebookTaskConfig
Source§fn default() -> NotebookTaskConfig
fn default() -> NotebookTaskConfig
Returns the “default value” for a type. Read more
Source§impl Message for NotebookTaskConfig
impl Message for NotebookTaskConfig
Source§impl PartialEq for NotebookTaskConfig
impl PartialEq for NotebookTaskConfig
impl StructuralPartialEq for NotebookTaskConfig
Auto Trait Implementations§
impl Freeze for NotebookTaskConfig
impl RefUnwindSafe for NotebookTaskConfig
impl Send for NotebookTaskConfig
impl Sync for NotebookTaskConfig
impl Unpin for NotebookTaskConfig
impl UnwindSafe for NotebookTaskConfig
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