Google Cloud Security Command Center V2 Client - Class DataRetentionDeletionEvent (2.1.0)

Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class DataRetentionDeletionEvent.

Details about data retention deletion violations, in which the data is non-compliant based on their retention or deletion time, as defined in the applicable data security policy. The Data Retention Deletion (DRD) control is a control of the DSPM (Data Security Posture Management) suite that enables organizations to manage data retention and deletion policies in compliance with regulations, such as GDPR and CRPA. DRD supports two primary policy types: maximum storage length (max TTL) and minimum storage length (min TTL).

Both are aimed at helping organizations meet regulatory and data management commitments.

Generated from protobuf message google.cloud.securitycenter.v2.DataRetentionDeletionEvent

Namespace

Google \ Cloud \ SecurityCenter \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ event_detection_time Google\Protobuf\Timestamp

Timestamp indicating when the event was detected.

↳ data_object_count int|string

Number of objects that violated the policy for this resource. If the number is less than 1,000, then the value of this field is the exact number. If the number of objects that violated the policy is greater than or equal to 1,000, then the value of this field is 1000.

↳ max_retention_allowed Google\Protobuf\Duration

Maximum duration of retention allowed from the DRD control. This comes from the DRD control where users set a max TTL for their data. For example, suppose that a user sets the max TTL for a Cloud Storage bucket to 90 days. However, an object in that bucket is 100 days old. In this case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the max_retention_allowed is 90 days.

↳ event_type int

Type of the DRD event.

getEventDetectionTime

Timestamp indicating when the event was detected.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasEventDetectionTime

clearEventDetectionTime

setEventDetectionTime

Timestamp indicating when the event was detected.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getDataObjectCount

Number of objects that violated the policy for this resource. If the number is less than 1,000, then the value of this field is the exact number. If the number of objects that violated the policy is greater than or equal to 1,000, then the value of this field is 1000.

Returns
Type Description
int|string

setDataObjectCount

Number of objects that violated the policy for this resource. If the number is less than 1,000, then the value of this field is the exact number. If the number of objects that violated the policy is greater than or equal to 1,000, then the value of this field is 1000.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getMaxRetentionAllowed

Maximum duration of retention allowed from the DRD control. This comes from the DRD control where users set a max TTL for their data. For example, suppose that a user sets the max TTL for a Cloud Storage bucket to 90 days.

However, an object in that bucket is 100 days old. In this case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the max_retention_allowed is 90 days.

Returns
Type Description
Google\Protobuf\Duration|null

hasMaxRetentionAllowed

clearMaxRetentionAllowed

setMaxRetentionAllowed

Maximum duration of retention allowed from the DRD control. This comes from the DRD control where users set a max TTL for their data. For example, suppose that a user sets the max TTL for a Cloud Storage bucket to 90 days.

However, an object in that bucket is 100 days old. In this case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the max_retention_allowed is 90 days.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this

getEventType

Type of the DRD event.

Returns
Type Description
int

setEventType

Type of the DRD event.

Parameter
Name Description
var int
Returns
Type Description
$this