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\u003eThe latest version of the \u003ccode\u003eResourcePolicySnapshotSchedulePolicyRetentionPolicy\u003c/code\u003e is 3.6.0, with multiple previous versions available for reference, ranging from 1.0.0 to 3.5.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eResourcePolicySnapshotSchedulePolicyRetentionPolicy\u003c/code\u003e is a class within the Google.Cloud.Compute.V1 namespace, specifically designed for setting retention policies for scheduled snapshots.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, for enhanced functionality and compatibility within the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourcePolicySnapshotSchedulePolicyRetentionPolicy\u003c/code\u003e class includes properties such as \u003ccode\u003eMaxRetentionDays\u003c/code\u003e to set the maximum retention period and \u003ccode\u003eOnSourceDiskDelete\u003c/code\u003e to manage snapshot behavior when the source disk is deleted.\u003c/p\u003e\n"],["\u003cp\u003eThe class has 2 constructors, one is empty, and the other has one parameter, which is another instance of the \u003ccode\u003eResourcePolicySnapshotSchedulePolicyRetentionPolicy\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,[]]