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"]],[["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-08 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eResourcePolicySnapshotSchedulePolicyRetentionPolicy\u003c/code\u003e class in the Google Cloud Compute Engine v1 API, specifically for the .NET library.\u003c/p\u003e\n"],["\u003cp\u003eThe class is used to define the policy for retention of scheduled snapshots and it implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe page details the constructors for the class, the default one as well as the other one which takes in a \u003ccode\u003eResourcePolicySnapshotSchedulePolicyRetentionPolicy\u003c/code\u003e as a parameter, with its \u003ccode\u003eother\u003c/code\u003e parameter that can be used to construct from another instance of the same class.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties, \u003ccode\u003eMaxRetentionDays\u003c/code\u003e (int) to define the maximum age of the snapshot and \u003ccode\u003eOnSourceDiskDelete\u003c/code\u003e (string) to specify what happens to the snapshot when the disk is deleted, and their corresponding bool properties \u003ccode\u003eHasMaxRetentionDays\u003c/code\u003e, \u003ccode\u003eHasOnSourceDiskDelete\u003c/code\u003e to check if the previous property is set.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage also lists a historical set of previous versions of the \u003ccode\u003eResourcePolicySnapshotSchedulePolicyRetentionPolicy\u003c/code\u003e for the Google Cloud Compute Engine v1 API, ranging from version 1.0.0 up to 3.6.0 (latest).\u003c/p\u003e\n"]]],[],null,[]]