#[non_exhaustive]pub struct ListJobsRequest {
pub project_id: String,
pub region: String,
pub page_size: i32,
pub page_token: String,
pub cluster_name: String,
pub job_state_matcher: JobStateMatcher,
pub filter: String,
/* private fields */
}Expand description
A request to list jobs in a project.
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: StringRequired. The ID of the Google Cloud Platform project that the job belongs to.
region: StringRequired. The Dataproc region in which to handle the request.
page_size: i32Optional. The number of results to return in each response.
page_token: StringOptional. The page token, returned by a previous call, to request the next page of results.
cluster_name: StringOptional. If set, the returned jobs list includes only jobs that were submitted to the named cluster.
job_state_matcher: JobStateMatcherOptional. Specifies enumerated categories of jobs to list. (default = match ALL jobs).
If filter is provided, jobStateMatcher will be ignored.
filter: StringOptional. A filter constraining the jobs to list. Filters are case-sensitive and have the following syntax:
[field = value] AND [field [= value]] …
where field is status.state or labels.[KEY], and [KEY] is a label
key. value can be * to match all values.
status.state can be either ACTIVE or NON_ACTIVE.
Only the logical AND operator is supported; space-separated items are
treated as having an implicit AND operator.
Example filter:
status.state = ACTIVE AND labels.env = staging AND labels.starred = *
Implementations§
Source§impl ListJobsRequest
impl ListJobsRequest
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_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of page_size.
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
Sourcepub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_name.
Sourcepub fn set_job_state_matcher<T: Into<JobStateMatcher>>(self, v: T) -> Self
pub fn set_job_state_matcher<T: Into<JobStateMatcher>>(self, v: T) -> Self
Sets the value of job_state_matcher.
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of filter.
Trait Implementations§
Source§impl Clone for ListJobsRequest
impl Clone for ListJobsRequest
Source§fn clone(&self) -> ListJobsRequest
fn clone(&self) -> ListJobsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more