#[non_exhaustive]pub struct UpdateJobRequest {
pub project_id: String,
pub region: String,
pub job_id: String,
pub job: Option<Job>,
pub update_mask: Option<FieldMask>,
/* private fields */
}
Expand description
A request to update a job.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.project_id: String
Required. The ID of the Google Cloud Platform project that the job belongs to.
region: String
Required. The Dataproc region in which to handle the request.
job_id: String
Required. The job ID.
job: Option<Job>
Required. The changes to the job.
update_mask: Option<FieldMask>
Required. Specifies the path, relative to <code>Job</code>, of
the field to update. For example, to update the labels of a Job the
<code>update_mask</code> parameter would be specified as
<code>labels</code>, and the PATCH
request body would specify the new
value. <strong>Note:</strong> Currently, <code>labels</code> is the only
field that can be updated.
Implementations§
Source§impl UpdateJobRequest
impl UpdateJobRequest
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
Sourcepub fn set_region<T: Into<String>>(self, v: T) -> Self
pub fn set_region<T: Into<String>>(self, v: T) -> Self
Sets the value of region.
Sourcepub fn set_job_id<T: Into<String>>(self, v: T) -> Self
pub fn set_job_id<T: Into<String>>(self, v: T) -> Self
Sets the value of job_id.
Sourcepub fn set_or_clear_job<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_job<T>(self, v: Option<T>) -> Self
Sets or clears the value of job.
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
Trait Implementations§
Source§impl Clone for UpdateJobRequest
impl Clone for UpdateJobRequest
Source§fn clone(&self) -> UpdateJobRequest
fn clone(&self) -> UpdateJobRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more