Data Loss Prevention V2 Client - Class TagFilter (2.9.1)

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

A single tag to filter against.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ namespaced_tag_value string

The namespaced name for the tag value. Must be in the format {parent_id}/{tag_key_short_name}/{short_name}, for example, "123456/environment/prod" for an organization parent, or "my-project/environment/prod" for a project parent.

↳ namespaced_tag_key string

The namespaced name for the tag key. Must be in the format {parent_id}/{tag_key_short_name}, for example, "123456/sensitive" for an organization parent, or "my-project/sensitive" for a project parent.

getNamespacedTagValue

The namespaced name for the tag value. Must be in the format {parent_id}/{tag_key_short_name}/{short_name}, for example, "123456/environment/prod" for an organization parent, or "my-project/environment/prod" for a project parent.

Returns
Type Description
string

hasNamespacedTagValue

setNamespacedTagValue

The namespaced name for the tag value. Must be in the format {parent_id}/{tag_key_short_name}/{short_name}, for example, "123456/environment/prod" for an organization parent, or "my-project/environment/prod" for a project parent.

Parameter
Name Description
var string
Returns
Type Description
$this

getNamespacedTagKey

The namespaced name for the tag key. Must be in the format {parent_id}/{tag_key_short_name}, for example, "123456/sensitive" for an organization parent, or "my-project/sensitive" for a project parent.

Returns
Type Description
string

hasNamespacedTagKey

setNamespacedTagKey

The namespaced name for the tag key. Must be in the format {parent_id}/{tag_key_short_name}, for example, "123456/sensitive" for an organization parent, or "my-project/sensitive" for a project parent.

Parameter
Name Description
var string
Returns
Type Description
$this

getFormat

Returns
Type Description
string