Google Cloud Data Loss Prevention v2 API - Class CreateContentPolicyRequest (4.27.0)

public sealed class CreateContentPolicyRequest : IMessage<CreateContentPolicyRequest>, IEquatable<CreateContentPolicyRequest>, IDeepCloneable<CreateContentPolicyRequest>, IBufferMessage, IMessage

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

Request message for CreateContentPolicy.

Inheritance

object > CreateContentPolicyRequest

Namespace

Google.Cloud.Dlp.V2

Assembly

Google.Cloud.Dlp.V2.dll

Constructors

CreateContentPolicyRequest()

public CreateContentPolicyRequest()

CreateContentPolicyRequest(CreateContentPolicyRequest)

public CreateContentPolicyRequest(CreateContentPolicyRequest other)
Parameter
Name Description
other CreateContentPolicyRequest

Properties

ContentPolicy

public ContentPolicy ContentPolicy { get; set; }

Required. The content_policy resource.

Property Value
Type Description
ContentPolicy

ContentPolicyId

public string ContentPolicyId { get; set; }

Optional. The content policy ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. If empty, the system will generate a random id.

Property Value
Type Description
string

Parent

public string Parent { get; set; }

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project):

  • Projects scope: projects/{project_id}/locations/{location_id}
Property Value
Type Description
string

ParentAsLocationName

public LocationName ParentAsLocationName { get; set; }

LocationName-typed view over the Parent resource name property.

Property Value
Type Description
LocationName