Google Cloud Data Loss Prevention v2 API - Class DlpContentName (4.5.0)

Stay organized with collections Save and categorize content based on your preferences.
public sealed class DlpContentName : IResourceName, IEquatable<DlpContentName>

Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class DlpContentName.

Resource name for the DlpContent resource.

Inheritance

Object > DlpContentName

Namespace

Google.Cloud.Dlp.V2

Assembly

Google.Cloud.Dlp.V2.dll

Constructors

DlpContentName(String)

public DlpContentName(string projectId)

Constructs a new instance of a DlpContentName class from the component parts of pattern projects/{project}/dlpContent

Parameter
NameDescription
projectIdString

The Project ID. Must not be null or empty.

Properties

IsKnownPattern

public bool IsKnownPattern { get; }

Whether this instance contains a resource name with a known pattern.

Property Value
TypeDescription
Boolean

LocationId

public string LocationId { get; }

The Location ID. May be null, depending on which resource name is contained by this instance.

Property Value
TypeDescription
String

ProjectId

public string ProjectId { get; }

The Project ID. May be null, depending on which resource name is contained by this instance.

Property Value
TypeDescription
String

Type

public DlpContentName.ResourceNameType Type { get; }

The DlpContentName.ResourceNameType of the contained resource name.

Property Value
TypeDescription
DlpContentName.ResourceNameType

UnparsedResource

public UnparsedResourceName UnparsedResource { get; }

The contained UnparsedResourceName. Only non-null if this instance contains an unparsed resource name.

Property Value
TypeDescription
UnparsedResourceName

Methods

Format(String)

public static string Format(string projectId)

Formats the IDs into the string representation of this