public sealed class CreateInspectTemplateRequest : IMessage<CreateInspectTemplateRequest>, IEquatable<CreateInspectTemplateRequest>, IDeepCloneable<CreateInspectTemplateRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CreateInspectTemplateRequest.
Request message for CreateInspectTemplate.
Implements
IMessageCreateInspectTemplateRequest, IEquatableCreateInspectTemplateRequest, IDeepCloneableCreateInspectTemplateRequest, IBufferMessage, IMessageNamespace
Google.Cloud.Dlp.V2Assembly
Google.Cloud.Dlp.V2.dll
Constructors
CreateInspectTemplateRequest()
public CreateInspectTemplateRequest()
CreateInspectTemplateRequest(CreateInspectTemplateRequest)
public CreateInspectTemplateRequest(CreateInspectTemplateRequest other)
Parameter | |
---|---|
Name | Description |
other |
CreateInspectTemplateRequest |
Properties
InspectTemplate
public InspectTemplate InspectTemplate { get; set; }
Required. The InspectTemplate to create.
Property Value | |
---|---|
Type | Description |
InspectTemplate |
LocationId
public string LocationId { get; set; }
Deprecated. This field has no effect.
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 or organization) and whether you have specified a processing location:
- Projects scope, location specified:
projects/{project_id}/locations/{location_id}
- Projects scope, no location specified (defaults to global):
projects/{project_id}
- Organizations scope, location specified:
organizations/{org_id}/locations/{location_id}
- Organizations scope, no location specified (defaults to global):
organizations/{org_id}
The following example parent
string specifies a parent project with the
identifier example-project
, and specifies the europe-west3
location
for processing data:
parent=projects/example-project/locations/europe-west3
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 |
ParentAsOrganizationLocationName
public OrganizationLocationName ParentAsOrganizationLocationName { get; set; }
OrganizationLocationName-typed view over the Parent resource name property.
Property Value | |
---|---|
Type | Description |
OrganizationLocationName |
ParentAsOrganizationName
public OrganizationName ParentAsOrganizationName { get; set; }
OrganizationName-typed view over the Parent resource name property.
Property Value | |
---|---|
Type | Description |
OrganizationName |
ParentAsProjectName
public ProjectName ParentAsProjectName { get; set; }
ProjectName-typed view over the Parent resource name property.
Property Value | |
---|---|
Type | Description |
ProjectName |
ParentAsResourceName
public IResourceName ParentAsResourceName { get; set; }
IResourceName-typed view over the Parent resource name property.
Property Value | |
---|---|
Type | Description |
IResourceName |
TemplateId
public string TemplateId { get; set; }
The template 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. Can be empty to allow the system to generate one.
Property Value | |
---|---|
Type | Description |
string |