class Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicyRetentionPolicy

Policy for retention of scheduled snapshots.

Attributes

max_retention_days[RW]

Maximum age of the snapshot that is allowed to be kept. Corresponds to the JSON property `maxRetentionDays` @return [Fixnum]

on_source_disk_delete[RW]

Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Corresponds to the JSON property `onSourceDiskDelete` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 27119
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 27124
def update!(**args)
  @max_retention_days = args[:max_retention_days] if args.key?(:max_retention_days)
  @on_source_disk_delete = args[:on_source_disk_delete] if args.key?(:on_source_disk_delete)
end