Struct google_api_proto::google::privacy::dlp::v2::DiscoveryCloudStorageConditions
source · pub struct DiscoveryCloudStorageConditions {
pub included_object_attributes: Vec<i32>,
pub included_bucket_attributes: Vec<i32>,
}
Expand description
Requirements that must be true before a Cloud Storage bucket or object is scanned in discovery for the first time. There is an AND relationship between the top-level attributes.
Fields§
§included_object_attributes: Vec<i32>
Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.
included_bucket_attributes: Vec<i32>
Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
Implementations§
source§impl DiscoveryCloudStorageConditions
impl DiscoveryCloudStorageConditions
sourcepub fn included_object_attributes(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<CloudStorageObjectAttribute>>
pub fn included_object_attributes( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<CloudStorageObjectAttribute>>
Returns an iterator which yields the valid enum values contained in included_object_attributes
.
sourcepub fn push_included_object_attributes(
&mut self,
value: CloudStorageObjectAttribute,
)
pub fn push_included_object_attributes( &mut self, value: CloudStorageObjectAttribute, )
Appends the provided enum value to included_object_attributes
.
sourcepub fn included_bucket_attributes(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<CloudStorageBucketAttribute>>
pub fn included_bucket_attributes( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<CloudStorageBucketAttribute>>
Returns an iterator which yields the valid enum values contained in included_bucket_attributes
.
sourcepub fn push_included_bucket_attributes(
&mut self,
value: CloudStorageBucketAttribute,
)
pub fn push_included_bucket_attributes( &mut self, value: CloudStorageBucketAttribute, )
Appends the provided enum value to included_bucket_attributes
.
Trait Implementations§
source§impl Clone for DiscoveryCloudStorageConditions
impl Clone for DiscoveryCloudStorageConditions
source§fn clone(&self) -> DiscoveryCloudStorageConditions
fn clone(&self) -> DiscoveryCloudStorageConditions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for DiscoveryCloudStorageConditions
impl Message for DiscoveryCloudStorageConditions
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 DiscoveryCloudStorageConditions
impl PartialEq for DiscoveryCloudStorageConditions
source§fn eq(&self, other: &DiscoveryCloudStorageConditions) -> bool
fn eq(&self, other: &DiscoveryCloudStorageConditions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DiscoveryCloudStorageConditions
Auto Trait Implementations§
impl Freeze for DiscoveryCloudStorageConditions
impl RefUnwindSafe for DiscoveryCloudStorageConditions
impl Send for DiscoveryCloudStorageConditions
impl Sync for DiscoveryCloudStorageConditions
impl Unpin for DiscoveryCloudStorageConditions
impl UnwindSafe for DiscoveryCloudStorageConditions
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