Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ResourcePolicySnapshotSchedulePolicyRetentionPolicy

import type { ResourcePolicySnapshotSchedulePolicyRetentionPolicy } from "https://googleapis.deno.dev/v1/compute:v1.ts";

Policy for retention of scheduled snapshots.

interface ResourcePolicySnapshotSchedulePolicyRetentionPolicy {
maxRetentionDays?: number;
onSourceDiskDelete?: "APPLY_RETENTION_POLICY" | "KEEP_AUTO_SNAPSHOTS" | "UNSPECIFIED_ON_SOURCE_DISK_DELETE";
}

§Properties

§
maxRetentionDays?: number
[src]

Maximum age of the snapshot that is allowed to be kept.

§
onSourceDiskDelete?: "APPLY_RETENTION_POLICY" | "KEEP_AUTO_SNAPSHOTS" | "UNSPECIFIED_ON_SOURCE_DISK_DELETE"
[src]

Specifies the behavior to apply to scheduled snapshots when the source disk is deleted.