Reference documentation and code samples for the Data Loss Prevention V2 Client class MetadataKeyValueExpression.
Configuration for a custom infoType that detects key-value pairs in the metadata matching the specified regular expressions.
Generated from protobuf message google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpression
Namespace
Google \ Cloud \ Dlp \ V2 \ CustomInfoTypeMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ key_regex |
string
The regular expression for the key. Key should be non-empty. |
↳ value_regex |
string
The regular expression for the value. Value should be non-empty. |
getKeyRegex
The regular expression for the key. Key should be non-empty.
| Returns | |
|---|---|
| Type | Description |
string |
|
setKeyRegex
The regular expression for the key. Key should be non-empty.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getValueRegex
The regular expression for the value. Value should be non-empty.
| Returns | |
|---|---|
| Type | Description |
string |
|
setValueRegex
The regular expression for the value. Value should be non-empty.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|