#[non_exhaustive]pub struct CreateNotebookExecutionJobRequest {
pub parent: String,
pub notebook_execution_job: Option<NotebookExecutionJob>,
pub notebook_execution_job_id: String,
/* private fields */
}Available on crate features
notebook-service or schedule-service only.Expand description
Request message for [NotebookService.CreateNotebookExecutionJob]
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.parent: StringRequired. The resource name of the Location to create the
NotebookExecutionJob. Format: projects/{project}/locations/{location}
notebook_execution_job: Option<NotebookExecutionJob>Required. The NotebookExecutionJob to create.
notebook_execution_job_id: StringOptional. User specified ID for the NotebookExecutionJob.
Implementations§
Source§impl CreateNotebookExecutionJobRequest
impl CreateNotebookExecutionJobRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_notebook_execution_job<T>(self, v: T) -> Selfwhere
T: Into<NotebookExecutionJob>,
pub fn set_notebook_execution_job<T>(self, v: T) -> Selfwhere
T: Into<NotebookExecutionJob>,
Sets the value of notebook_execution_job.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::NotebookExecutionJob;
let x = CreateNotebookExecutionJobRequest::new().set_notebook_execution_job(NotebookExecutionJob::default()/* use setters */);Sourcepub fn set_or_clear_notebook_execution_job<T>(self, v: Option<T>) -> Selfwhere
T: Into<NotebookExecutionJob>,
pub fn set_or_clear_notebook_execution_job<T>(self, v: Option<T>) -> Selfwhere
T: Into<NotebookExecutionJob>,
Sets or clears the value of notebook_execution_job.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::NotebookExecutionJob;
let x = CreateNotebookExecutionJobRequest::new().set_or_clear_notebook_execution_job(Some(NotebookExecutionJob::default()/* use setters */));
let x = CreateNotebookExecutionJobRequest::new().set_or_clear_notebook_execution_job(None::<NotebookExecutionJob>);Sourcepub fn set_notebook_execution_job_id<T: Into<String>>(self, v: T) -> Self
pub fn set_notebook_execution_job_id<T: Into<String>>(self, v: T) -> Self
Sets the value of notebook_execution_job_id.
§Example
ⓘ
let x = CreateNotebookExecutionJobRequest::new().set_notebook_execution_job_id("example");Trait Implementations§
Source§impl Clone for CreateNotebookExecutionJobRequest
impl Clone for CreateNotebookExecutionJobRequest
Source§fn clone(&self) -> CreateNotebookExecutionJobRequest
fn clone(&self) -> CreateNotebookExecutionJobRequest
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 Default for CreateNotebookExecutionJobRequest
impl Default for CreateNotebookExecutionJobRequest
Source§fn default() -> CreateNotebookExecutionJobRequest
fn default() -> CreateNotebookExecutionJobRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateNotebookExecutionJobRequest
impl PartialEq for CreateNotebookExecutionJobRequest
Source§fn eq(&self, other: &CreateNotebookExecutionJobRequest) -> bool
fn eq(&self, other: &CreateNotebookExecutionJobRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateNotebookExecutionJobRequest
Auto Trait Implementations§
impl Freeze for CreateNotebookExecutionJobRequest
impl RefUnwindSafe for CreateNotebookExecutionJobRequest
impl Send for CreateNotebookExecutionJobRequest
impl Sync for CreateNotebookExecutionJobRequest
impl Unpin for CreateNotebookExecutionJobRequest
impl UnwindSafe for CreateNotebookExecutionJobRequest
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