Struct google_api_proto::google::privacy::dlp::v2::ListDlpJobsRequest
source · pub struct ListDlpJobsRequest {
pub parent: String,
pub filter: String,
pub page_size: i32,
pub page_token: String,
pub type: i32,
pub order_by: String,
pub location_id: String,
}
Expand description
The request message for listing DLP jobs.
Fields§
§parent: String
Required. Parent resource name.
The format of this value varies depending on whether you have specified a processing location:
- Projects scope, location specified:
projects/{project_id}/locations/{location_id}
- Projects scope, no location specified (defaults to global):
projects/{project_id}
The following example parent
string specifies a parent project with the
identifier example-project
, and specifies the europe-west3
location
for processing data:
parent=projects/example-project/locations/europe-west3
filter: String
Allows filtering.
Supported syntax:
- Filter expressions are made up of one or more restrictions.
- Restrictions can be combined by
AND
orOR
logical operators. A sequence of restrictions implicitly usesAND
. - A restriction has the form of
{field} {operator} {value}
. - Supported fields/values for inspect jobs:
state
- PENDING|RUNNING|CANCELED|FINISHED|FAILEDinspected_storage
- DATASTORE|CLOUD_STORAGE|BIGQUERYtrigger_name
- The name of the trigger that created the job.- ’end_time` - Corresponds to the time the job finished.
- ’start_time` - Corresponds to the time the job finished.
- Supported fields for risk analysis jobs:
state
- RUNNING|CANCELED|FINISHED|FAILED- ’end_time` - Corresponds to the time the job finished.
- ’start_time` - Corresponds to the time the job finished.
- The operator must be
=
or!=
.
Examples:
- inspected_storage = cloud_storage AND state = done
- inspected_storage = cloud_storage OR inspected_storage = bigquery
- inspected_storage = cloud_storage AND (state = done OR state = canceled)
- end_time > "2017-12-12T00:00:00+00:00"
The length of this field should be no more than 500 characters.
page_size: i32
The standard list page size.
page_token: String
The standard list page token.
type: i32
The type of job. Defaults to DlpJobType.INSPECT
order_by: String
Comma-separated list of fields to order by,
followed by asc
or desc
postfix. This list is case insensitive. The
default sorting order is ascending. Redundant space characters are
insignificant.
Example: name asc, end_time asc, create_time desc
Supported fields are:
create_time
: corresponds to the time the job was created.end_time
: corresponds to the time the job ended.name
: corresponds to the job’s name.state
: corresponds tostate
location_id: String
Deprecated. This field has no effect.
Implementations§
source§impl ListDlpJobsRequest
impl ListDlpJobsRequest
sourcepub fn type(&self) -> DlpJobType
pub fn type(&self) -> DlpJobType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: DlpJobType)
pub fn set_type(&mut self, value: DlpJobType)
Sets type
to the provided enum value.
Trait Implementations§
source§impl Clone for ListDlpJobsRequest
impl Clone for ListDlpJobsRequest
source§fn clone(&self) -> ListDlpJobsRequest
fn clone(&self) -> ListDlpJobsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListDlpJobsRequest
impl Debug for ListDlpJobsRequest
source§impl Default for ListDlpJobsRequest
impl Default for ListDlpJobsRequest
source§impl Message for ListDlpJobsRequest
impl Message for ListDlpJobsRequest
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 ListDlpJobsRequest
impl PartialEq for ListDlpJobsRequest
source§fn eq(&self, other: &ListDlpJobsRequest) -> bool
fn eq(&self, other: &ListDlpJobsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListDlpJobsRequest
Auto Trait Implementations§
impl Freeze for ListDlpJobsRequest
impl RefUnwindSafe for ListDlpJobsRequest
impl Send for ListDlpJobsRequest
impl Sync for ListDlpJobsRequest
impl Unpin for ListDlpJobsRequest
impl UnwindSafe for ListDlpJobsRequest
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