View Source GoogleApi.Compute.V1.Model.ResourcePolicySnapshotSchedulePolicyRetentionPolicy (google_api_compute v0.56.2)

Policy for retention of scheduled snapshots.

Attributes

  • maxRetentionDays (type: integer(), default: nil) - Maximum age of the snapshot that is allowed to be kept.
  • onSourceDiskDelete (type: String.t, default: nil) - Specifies the behavior to apply to scheduled snapshots when the source disk is deleted.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.Compute.V1.Model.ResourcePolicySnapshotSchedulePolicyRetentionPolicy{
    maxRetentionDays: integer() | nil,
    onSourceDiskDelete: String.t() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.