public sealed class DataRetentionDeletionEvent : IMessage<DataRetentionDeletionEvent>, IEquatable<DataRetentionDeletionEvent>, IDeepCloneable<DataRetentionDeletionEvent>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API 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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eDataRetentionDeletionEvent\u003c/code\u003e class within the Security Command Center v2 API, designed for managing data retention and deletion policies.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDataRetentionDeletionEvent\u003c/code\u003e class is part of the Data Security Posture Management (DSPM) suite, addressing compliance with regulations like GDPR and CRPA through maximum and minimum storage length policies.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eDataRetentionDeletionEvent\u003c/code\u003e include \u003ccode\u003eDataObjectCount\u003c/code\u003e for tracking policy-violating objects, \u003ccode\u003eEventDetectionTime\u003c/code\u003e for when the violation was detected, \u003ccode\u003eEventType\u003c/code\u003e to denote the violation type, and \u003ccode\u003eMaxRetentionAllowed\u003c/code\u003e for the maximum allowed data retention period.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e and provides constructors for creating new instances.\u003c/p\u003e\n"],["\u003cp\u003eTwo versions of the documentation are available, version 1.1.0 and 1.0.0, with the latest version being 1.1.0.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class DataRetentionDeletionEvent (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DataRetentionDeletionEvent)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.DataRetentionDeletionEvent)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.DataRetentionDeletionEvent) \n\n public sealed class DataRetentionDeletionEvent : IMessage\u003cDataRetentionDeletionEvent\u003e, IEquatable\u003cDataRetentionDeletionEvent\u003e, IDeepCloneable\u003cDataRetentionDeletionEvent\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class DataRetentionDeletionEvent.\n\nDetails about data retention deletion violations, in which the data is\nnon-compliant based on their retention or deletion time, as defined in the\napplicable data security policy. The Data Retention Deletion (DRD) control is\na control of the DSPM (Data Security Posture Management) suite that enables\norganizations to manage data retention and deletion policies in compliance\nwith regulations, such as GDPR and CRPA. DRD supports two primary policy\ntypes: maximum storage length (max TTL) and minimum storage length (min TTL).\nBoth are aimed at helping organizations meet regulatory and data management\ncommitments. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DataRetentionDeletionEvent \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DataRetentionDeletionEvent](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DataRetentionDeletionEvent), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DataRetentionDeletionEvent](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DataRetentionDeletionEvent), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DataRetentionDeletionEvent](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DataRetentionDeletionEvent), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### DataRetentionDeletionEvent()\n\n public DataRetentionDeletionEvent()\n\n### DataRetentionDeletionEvent(DataRetentionDeletionEvent)\n\n public DataRetentionDeletionEvent(DataRetentionDeletionEvent other)\n\nProperties\n----------\n\n### DataObjectCount\n\n public long DataObjectCount { get; set; }\n\nNumber of objects that violated the policy for this resource. If the number\nis less than 1,000, then the value of this field is the exact number. If\nthe number of objects that violated the policy is greater than or equal to\n1,000, then the value of this field is 1000.\n\n### EventDetectionTime\n\n public Timestamp EventDetectionTime { get; set; }\n\nTimestamp indicating when the event was detected.\n\n### EventType\n\n public DataRetentionDeletionEvent.Types.EventType EventType { get; set; }\n\nType of the DRD event.\n\n### MaxRetentionAllowed\n\n public Duration MaxRetentionAllowed { get; set; }\n\nMaximum duration of retention allowed from the DRD control. This comes\nfrom the DRD control where users set a max TTL for their data. For example,\nsuppose that a user sets the max TTL for a Cloud Storage bucket to 90 days.\nHowever, an object in that bucket is 100 days old. In this case, a\nDataRetentionDeletionEvent will be generated for that Cloud Storage bucket,\nand the max_retention_allowed is 90 days."]]