Google Cloud Data Loss Prevention v2 API - Class CloudStorageRegex (4.13.0)

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.

Inheritance

object > CloudStorageRegex

Namespace

Google.Cloud.Dlp.V2

Assembly

Google.Cloud.Dlp.V2.dll

Constructors

CloudStorageRegex()

public CloudStorageRegex()

CloudStorageRegex(CloudStorageRegex)

public CloudStorageRegex(CloudStorageRegex other)
Parameter
Name Description
other CloudStorageRegex

Properties

BucketNameRegex

public string BucketNameRegex { get; set; }

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

Property Value
Type Description
string

ProjectIdRegex

public string ProjectIdRegex { get; set; }

Optional. For organizations, if unset, will match all projects.

Property Value
Type Description
string