Data Loss Prevention V2 Client - Class StoredInfoTypeVersion (1.8.6)

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

Version of a StoredInfoType, including the configuration used to build it, create timestamp, and current state.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ config Google\Cloud\Dlp\V2\StoredInfoTypeConfig

StoredInfoType configuration.

↳ create_time Google\Protobuf\Timestamp

Create timestamp of the version. Read-only, determined by the system when the version is created.

↳ state int

Stored info type version state. Read-only, updated by the system during dictionary creation.

↳ errors array<Google\Cloud\Dlp\V2\Error>

Errors that occurred when creating this storedInfoType version, or anomalies detected in the storedInfoType data that render it unusable. Only the five most recent errors will be displayed, with the most recent error appearing first. For example, some of the data for stored custom dictionaries is put in the user's Cloud Storage bucket, and if this data is modified or deleted by the user or another system, the dictionary becomes invalid. If any errors occur, fix the problem indicated by the error message and use the UpdateStoredInfoType API method to create another version of the storedInfoType to continue using it, reusing the same config if it was not the source of the error.

↳ stats Google\Cloud\Dlp\V2\StoredInfoTypeStats

Statistics about this storedInfoType version.

getConfig

StoredInfoType configuration.

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

hasConfig

clearConfig

setConfig

StoredInfoType configuration.

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

getCreateTime

Create timestamp of the version. Read-only, determined by the system when the version is created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Create timestamp of the version. Read-only, determined by the system when the version is created.

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

getState

Stored info type version state. Read-only, updated by the system during dictionary creation.

Returns
TypeDescription
int

setState

Stored info type version state. Read-only, updated by the system during dictionary creation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getErrors

Errors that occurred when creating this storedInfoType version, or anomalies detected in the storedInfoType data that render it unusable. Only the five most recent errors will be displayed, with the most recent error appearing first.

For example, some of the data for stored custom dictionaries is put in the user's Cloud Storage bucket, and if this data is modified or deleted by the user or another system, the dictionary becomes invalid. If any errors occur, fix the problem indicated by the error message and use the UpdateStoredInfoType API method to create another version of the storedInfoType to continue using it, reusing the same config if it was not the source of the error.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setErrors

Errors that occurred when creating this storedInfoType version, or anomalies detected in the storedInfoType data that render it unusable. Only the five most recent errors will be displayed, with the most recent error appearing first.

For example, some of the data for stored custom dictionaries is put in the user's Cloud Storage bucket, and if this data is modified or deleted by the user or another system, the dictionary becomes invalid. If any errors occur, fix the problem indicated by the error message and use the UpdateStoredInfoType API method to create another version of the storedInfoType to continue using it, reusing the same config if it was not the source of the error.

Parameter
NameDescription
var array<Google\Cloud\Dlp\V2\Error>
Returns
TypeDescription
$this

getStats

Statistics about this storedInfoType version.

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

hasStats

clearStats

setStats

Statistics about this storedInfoType version.

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