public sealed class CloudStorageRegex : IMessage<CloudStorageRegex>, IEquatable<CloudStorageRegex>, IDeepCloneable<CloudStorageRegex>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CloudStorageRegex.
A pattern to match against one or more file stores. At least one
pattern must be specified. Regular expressions use RE2
syntax; a guide can be found
under the google/re2 repository on GitHub.
Optional. Regex to test the bucket name against. If empty, all buckets
match. Example: "marketing2021" or "(marketing)\d{4}" will both match the
bucket gs://marketing2021
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-24 UTC."],[[["This page provides documentation for the `CloudStorageRegex` class within the Google Cloud Data Loss Prevention (DLP) v2 API, detailing its use for pattern matching against file stores."],["The `CloudStorageRegex` class is implemented as a sealed class and inherits from `object`, additionally implementing interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The documentation includes reference material for multiple versions of the API, ranging from version 2.15.0 to the latest 4.16.0, offering a comprehensive guide across different releases."],["The class offers the ability to specify regex patterns for both `BucketNameRegex` and `ProjectIdRegex` which will be used to match against the specific Google storage bucket or project."],["The class has two constructors, one default constructor which takes no parameters and one that takes another `CloudStorageRegex` class to copy from."]]],[]]