Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#retention_policy
def retention_policy() -> ::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicyRetentionPolicy
Returns
- (::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicyRetentionPolicy) — Retention policy applied to snapshots created by this resource policy.
#retention_policy=
def retention_policy=(value) -> ::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicyRetentionPolicy
Parameter
- value (::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicyRetentionPolicy) — Retention policy applied to snapshots created by this resource policy.
Returns
- (::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicyRetentionPolicy) — Retention policy applied to snapshots created by this resource policy.
#schedule
def schedule() -> ::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicySchedule
Returns
- (::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicySchedule) — A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to perform on this VM and when. Schedule that is applied to disks covered by this policy.
#schedule=
def schedule=(value) -> ::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicySchedule
Parameter
- value (::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicySchedule) — A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to perform on this VM and when. Schedule that is applied to disks covered by this policy.
Returns
- (::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicySchedule) — A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to perform on this VM and when. Schedule that is applied to disks covered by this policy.
#snapshot_properties
def snapshot_properties() -> ::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicySnapshotProperties
Returns
- (::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicySnapshotProperties) — Properties with which snapshots are created such as labels, encryption keys.
#snapshot_properties=
def snapshot_properties=(value) -> ::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicySnapshotProperties
Parameter
- value (::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicySnapshotProperties) — Properties with which snapshots are created such as labels, encryption keys.
Returns
- (::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicySnapshotProperties) — Properties with which snapshots are created such as labels, encryption keys.