# Class ResourcePolicySnapshotSchedulePolicyRetentionPolicy (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

    ResourcePolicySnapshotSchedulePolicyRetentionPolicy(
        mapping=None, *, ignore_unknown_fields=False, **kwargs
    )

Policy for retention of scheduled snapshots.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `max_retention_days` | `int` Maximum age of the snapshot that is allowed to be kept. This field is a member of `oneof`_ `_max_retention_days`. |
| `on_source_disk_delete` | `str` Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Check the OnSourceDiskDelete enum for the list of possible values. This field is a member of `oneof`_ `_on_source_disk_delete`. |

## Classes

### OnSourceDiskDelete

    OnSourceDiskDelete(value)

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