Compute V1 Client - Class ResourcePolicySnapshotSchedulePolicy (1.22.0)

Reference documentation and code samples for the Compute V1 Client class 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.

Generated from protobuf message google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicy

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ retention_policy ResourcePolicySnapshotSchedulePolicyRetentionPolicy

Retention policy applied to snapshots created by this resource policy.

↳ schedule 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 ResourcePolicySnapshotSchedulePolicySnapshotProperties

Properties with which snapshots are created such as labels, encryption keys.

getRetentionPolicy

Retention policy applied to snapshots created by this resource policy.

Returns
Type Description
ResourcePolicySnapshotSchedulePolicyRetentionPolicy|null

hasRetentionPolicy

clearRetentionPolicy

setRetentionPolicy

Retention policy applied to snapshots created by this resource policy.

Parameter
Name Description
var ResourcePolicySnapshotSchedulePolicyRetentionPolicy
Returns
Type Description
$this

getSchedule

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
Type Description
ResourcePolicySnapshotSchedulePolicySchedule|null

hasSchedule

clearSchedule

setSchedule

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.

Parameter
Name Description
var ResourcePolicySnapshotSchedulePolicySchedule
Returns
Type Description
$this

getSnapshotProperties

Properties with which snapshots are created such as labels, encryption keys.

Returns
Type Description
ResourcePolicySnapshotSchedulePolicySnapshotProperties|null

hasSnapshotProperties

clearSnapshotProperties

setSnapshotProperties

Properties with which snapshots are created such as labels, encryption keys.

Parameter
Name Description
var ResourcePolicySnapshotSchedulePolicySnapshotProperties
Returns
Type Description
$this