Data Loss Prevention V2 Client - Class DeidentifyTemplate (1.8.6)

Reference documentation and code samples for the Data Loss Prevention V2 Client class DeidentifyTemplate.

DeidentifyTemplates contains instructions on how to de-identify content.

See https://cloud.google.com/dlp/docs/concepts-templates to learn more.

Generated from protobuf message google.privacy.dlp.v2.DeidentifyTemplate

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The template name. The template will have one of the following formats: projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID OR organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID

↳ display_name string

Display name (max 256 chars).

↳ description string

Short description (max 256 chars).

↳ create_time Google\Protobuf\Timestamp

Output only. The creation timestamp of an inspectTemplate.

↳ update_time Google\Protobuf\Timestamp

Output only. The last update timestamp of an inspectTemplate.

↳ deidentify_config Google\Cloud\Dlp\V2\DeidentifyConfig

The core content of the template.

getName

Output only. The template name.

The template will have one of the following formats: projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID OR organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID

Returns
TypeDescription
string

setName

Output only. The template name.

The template will have one of the following formats: projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID OR organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Display name (max 256 chars).

Returns
TypeDescription
string

setDisplayName

Display name (max 256 chars).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

Short description (max 256 chars).

Returns
TypeDescription
string

setDescription

Short description (max 256 chars).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The creation timestamp of an inspectTemplate.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The creation timestamp of an inspectTemplate.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The last update timestamp of an inspectTemplate.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The last update timestamp of an inspectTemplate.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getDeidentifyConfig

The core content of the template.

Returns
TypeDescription
Google\Cloud\Dlp\V2\DeidentifyConfig|null

hasDeidentifyConfig

clearDeidentifyConfig

setDeidentifyConfig

The core content of the template.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\DeidentifyConfig
Returns
TypeDescription
$this