public sealed class CreateContentPolicyRequest : IMessage<CreateContentPolicyRequest>, IEquatable<CreateContentPolicyRequest>, IDeepCloneable<CreateContentPolicyRequest>, IBufferMessage, IMessageReference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CreateContentPolicyRequest.
Request message for CreateContentPolicy.
Implements
IMessageCreateContentPolicyRequest, IEquatableCreateContentPolicyRequest, IDeepCloneableCreateContentPolicyRequest, IBufferMessage, IMessageNamespace
Google.Cloud.Dlp.V2Assembly
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 |
|