Struct gapi_grpc::google::privacy::dlp::v2::CloudStorageRegexFileSet[][src]

pub struct CloudStorageRegexFileSet {
    pub bucket_name: String,
    pub include_regex: Vec<String>,
    pub exclude_regex: Vec<String>,
}

Message representing a set of files in a Cloud Storage bucket. Regular expressions are used to allow fine-grained control over which files in the bucket to include.

Included files are those that match at least one item in include_regex and do not match any items in exclude_regex. Note that a file that matches items from both lists will not be included. For a match to occur, the entire file path (i.e., everything in the url after the bucket name) must match the regular expression.

For example, given the input {bucket_name: "mybucket", include_regex: ["directory1/.*"], exclude_regex: ["directory1/excluded.*"]}:

If include_regex is left empty, it will match all files by default (this is equivalent to setting include_regex: [".*"]).

Some other common use cases:

Fields

bucket_name: String

The name of a Cloud Storage bucket. Required.

include_regex: Vec<String>

A list of regular expressions matching file paths to include. All files in the bucket that match at least one of these regular expressions will be included in the set of files, except for those that also match an item in exclude_regex. Leaving this field empty will match all files by default (this is equivalent to including .* in the list).

Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.

exclude_regex: Vec<String>

A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan.

Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.

Trait Implementations

impl Clone for CloudStorageRegexFileSet[src]

impl Debug for CloudStorageRegexFileSet[src]

impl Default for CloudStorageRegexFileSet[src]

impl Message for CloudStorageRegexFileSet[src]

impl PartialEq<CloudStorageRegexFileSet> for CloudStorageRegexFileSet[src]

impl StructuralPartialEq for CloudStorageRegexFileSet[src]

Auto Trait Implementations

impl RefUnwindSafe for CloudStorageRegexFileSet

impl Send for CloudStorageRegexFileSet

impl Sync for CloudStorageRegexFileSet

impl Unpin for CloudStorageRegexFileSet

impl UnwindSafe for CloudStorageRegexFileSet

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]