google_api_dlp v0.9.0 GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2CloudStorageRegexFileSet View Source

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 `includeregex` 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 `{bucketname: "mybucket", include_regex: ["directory1/."], exclude_regex: ["directory1/excluded."]}`: `gs://mybucket/directory1/myfile` will be included `gs://mybucket/directory1/directory2/myfile` will be included (`.` matches across `/`) `gs://mybucket/directory0/directory1/myfile` will _not be included (the full path doesn't match any items in `includeregex`) * `gs://mybucket/directory1/excludedfile` will _not be included (the path matches an item in `exclude_regex`) 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: `{bucket_name: "mybucket", exclude_regex: ["..pdf"]}` will include all files in `mybucket` except for .pdf files `{bucket_name: "mybucket", include_regex: ["directory/[^/]+"]}` will include all files directly under `gs://mybucket/directory/`, without matching across `/`

Attributes

  • bucketName (String.t): The name of a Cloud Storage bucket. Required. Defaults to: null.
  • excludeRegex ([String.t]): 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. Defaults to: null.
  • includeRegex ([String.t]): 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. Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2CloudStorageRegexFileSet{
  bucketName: any(),
  excludeRegex: [any()],
  includeRegex: [any()]
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.