class Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicy

A snapshot schedule policy specifies when and how frequently snapshots are to be created for the target disk. Also specifies how many and how long these scheduled snapshots should be retained.

Attributes

retention_policy[RW]

Policy for retention of scheduled snapshots. Corresponds to the JSON property `retentionPolicy` @return [Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicyRetentionPolicy]

schedule[RW]

A schedule for disks where the schedueled operations are performed. Corresponds to the JSON property `schedule` @return [Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicySchedule]

snapshot_properties[RW]

Specified snapshot properties for scheduled snapshots created by this policy. Corresponds to the JSON property `snapshotProperties` @return [Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicySnapshotProperties]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 28992
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 28997
def update!(**args)
  @retention_policy = args[:retention_policy] if args.key?(:retention_policy)
  @schedule = args[:schedule] if args.key?(:schedule)
  @snapshot_properties = args[:snapshot_properties] if args.key?(:snapshot_properties)
end