#[non_exhaustive]pub struct CreatePipelineJobRequest {
pub parent: String,
pub pipeline_job: Option<PipelineJob>,
pub pipeline_job_id: String,
/* private fields */
}Available on crate features
pipeline-service or schedule-service only.Expand description
Request message for PipelineService.CreatePipelineJob.
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 PipelineJob in.
Format: projects/{project}/locations/{location}
pipeline_job: Option<PipelineJob>Required. The PipelineJob to create.
pipeline_job_id: StringThe ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated.
This value should be less than 128 characters, and valid characters
are /[a-z][0-9]-/.
Implementations§
Source§impl CreatePipelineJobRequest
impl CreatePipelineJobRequest
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_pipeline_job<T>(self, v: T) -> Selfwhere
T: Into<PipelineJob>,
pub fn set_pipeline_job<T>(self, v: T) -> Selfwhere
T: Into<PipelineJob>,
Sets the value of pipeline_job.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::PipelineJob;
let x = CreatePipelineJobRequest::new().set_pipeline_job(PipelineJob::default()/* use setters */);Sourcepub fn set_or_clear_pipeline_job<T>(self, v: Option<T>) -> Selfwhere
T: Into<PipelineJob>,
pub fn set_or_clear_pipeline_job<T>(self, v: Option<T>) -> Selfwhere
T: Into<PipelineJob>,
Sets or clears the value of pipeline_job.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::PipelineJob;
let x = CreatePipelineJobRequest::new().set_or_clear_pipeline_job(Some(PipelineJob::default()/* use setters */));
let x = CreatePipelineJobRequest::new().set_or_clear_pipeline_job(None::<PipelineJob>);Sourcepub fn set_pipeline_job_id<T: Into<String>>(self, v: T) -> Self
pub fn set_pipeline_job_id<T: Into<String>>(self, v: T) -> Self
Sets the value of pipeline_job_id.
§Example
ⓘ
let x = CreatePipelineJobRequest::new().set_pipeline_job_id("example");Trait Implementations§
Source§impl Clone for CreatePipelineJobRequest
impl Clone for CreatePipelineJobRequest
Source§fn clone(&self) -> CreatePipelineJobRequest
fn clone(&self) -> CreatePipelineJobRequest
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 CreatePipelineJobRequest
impl Debug for CreatePipelineJobRequest
Source§impl Default for CreatePipelineJobRequest
impl Default for CreatePipelineJobRequest
Source§fn default() -> CreatePipelineJobRequest
fn default() -> CreatePipelineJobRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreatePipelineJobRequest
impl Message for CreatePipelineJobRequest
Source§impl PartialEq for CreatePipelineJobRequest
impl PartialEq for CreatePipelineJobRequest
impl StructuralPartialEq for CreatePipelineJobRequest
Auto Trait Implementations§
impl Freeze for CreatePipelineJobRequest
impl RefUnwindSafe for CreatePipelineJobRequest
impl Send for CreatePipelineJobRequest
impl Sync for CreatePipelineJobRequest
impl Unpin for CreatePipelineJobRequest
impl UnwindSafe for CreatePipelineJobRequest
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