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
Policy
for retention of scheduled snapshots. Corresponds to the JSON property `retentionPolicy` @return [Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicyRetentionPolicy]
A schedule for disks where the schedueled operations are performed. Corresponds to the JSON property `schedule` @return [Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicySchedule]
Specified snapshot properties for scheduled snapshots created by this policy. Corresponds to the JSON property `snapshotProperties` @return [Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicySnapshotProperties]
Public Class Methods
# File lib/google/apis/compute_v1/classes.rb, line 29354 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/compute_v1/classes.rb, line 29359 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