Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicyRetentionPolicy (v2.7.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicyRetentionPolicy.

Policy for retention of scheduled snapshots.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#max_retention_days

def max_retention_days() -> ::Integer
Returns
  • (::Integer) — Maximum age of the snapshot that is allowed to be kept.

#max_retention_days=

def max_retention_days=(value) -> ::Integer
Parameter
  • value (::Integer) — Maximum age of the snapshot that is allowed to be kept.
Returns
  • (::Integer) — Maximum age of the snapshot that is allowed to be kept.

#on_source_disk_delete

def on_source_disk_delete() -> ::String
Returns
  • (::String) — Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Check the OnSourceDiskDelete enum for the list of possible values.

#on_source_disk_delete=

def on_source_disk_delete=(value) -> ::String
Parameter
  • value (::String) — Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Check the OnSourceDiskDelete enum for the list of possible values.
Returns
  • (::String) — Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Check the OnSourceDiskDelete enum for the list of possible values.