public sealed class ResourcePolicySnapshotSchedulePolicyRetentionPolicy : IMessage<ResourcePolicySnapshotSchedulePolicyRetentionPolicy>, IEquatable<ResourcePolicySnapshotSchedulePolicyRetentionPolicy>, IDeepCloneable<ResourcePolicySnapshotSchedulePolicyRetentionPolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class ResourcePolicySnapshotSchedulePolicyRetentionPolicy.
Specifies the behavior to apply to scheduled snapshots when the source disk is deleted.
Check the OnSourceDiskDelete enum for the list of possible values.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage provides documentation for the `ResourcePolicySnapshotSchedulePolicyRetentionPolicy` class in the Google Cloud Compute Engine v1 API, specifically for the .NET library."],["The class is used to define the policy for retention of scheduled snapshots and it implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The page details the constructors for the class, the default one as well as the other one which takes in a `ResourcePolicySnapshotSchedulePolicyRetentionPolicy` as a parameter, with its `other` parameter that can be used to construct from another instance of the same class."],["The class has properties, `MaxRetentionDays` (int) to define the maximum age of the snapshot and `OnSourceDiskDelete` (string) to specify what happens to the snapshot when the disk is deleted, and their corresponding bool properties `HasMaxRetentionDays`, `HasOnSourceDiskDelete` to check if the previous property is set."],["The webpage also lists a historical set of previous versions of the `ResourcePolicySnapshotSchedulePolicyRetentionPolicy` for the Google Cloud Compute Engine v1 API, ranging from version 1.0.0 up to 3.6.0 (latest)."]]],[]]