Struct google_api_proto::google::cloud::dataproc::v1::ListJobsRequest
source · 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: i32,
pub filter: String,
}
Expand description
A request to list jobs in a project.
Fields§
§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.
page_size: i32
Optional. The number of results to return in each response.
page_token: String
Optional. The page token, returned by a previous call, to request the next page of results.
cluster_name: String
Optional. If set, the returned jobs list includes only jobs that were submitted to the named cluster.
job_state_matcher: i32
Optional. Specifies enumerated categories of jobs to list. (default = match ALL jobs).
If filter
is provided, jobStateMatcher
will be ignored.
filter: String
Optional. 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
sourcepub fn job_state_matcher(&self) -> JobStateMatcher
pub fn job_state_matcher(&self) -> JobStateMatcher
Returns the enum value of job_state_matcher
, or the default if the field is set to an invalid enum value.
sourcepub fn set_job_state_matcher(&mut self, value: JobStateMatcher)
pub fn set_job_state_matcher(&mut self, value: JobStateMatcher)
Sets job_state_matcher
to the provided enum value.
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 moresource§impl Debug for ListJobsRequest
impl Debug for ListJobsRequest
source§impl Default for ListJobsRequest
impl Default for ListJobsRequest
source§impl Message for ListJobsRequest
impl Message for ListJobsRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ListJobsRequest
impl PartialEq for ListJobsRequest
source§fn eq(&self, other: &ListJobsRequest) -> bool
fn eq(&self, other: &ListJobsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListJobsRequest
Auto Trait Implementations§
impl Freeze for ListJobsRequest
impl RefUnwindSafe for ListJobsRequest
impl Send for ListJobsRequest
impl Sync for ListJobsRequest
impl Unpin for ListJobsRequest
impl UnwindSafe for ListJobsRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request