Compute V1 Client - Class ResourcePolicySnapshotSchedulePolicy (1.8.3)

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ retention_policy Google\Cloud\Compute\V1\ResourcePolicySnapshotSchedulePolicyRetentionPolicy

Retention policy applied to snapshots created by this resource policy.

↳ schedule 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 Google\Cloud\Compute\V1\ResourcePolicySnapshotSchedulePolicySnapshotProperties

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

getRetentionPolicy

Retention policy applied to snapshots created by this resource policy.

Returns
TypeDescription
Google\Cloud\Compute\V1\ResourcePolicySnapshotSchedulePolicyRetentionPolicy|null

hasRetentionPolicy

clearRetentionPolicy

setRetentionPolicy

Retention policy applied to snapshots created by this resource policy.

Parameter
NameDescription
var Google\Cloud\Compute\V1\ResourcePolicySnapshotSchedulePolicyRetentionPolicy
Returns
TypeDescription
$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
TypeDescription
Google\Cloud\Compute\V1\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
NameDescription
var Google\Cloud\Compute\V1\ResourcePolicySnapshotSchedulePolicySchedule
Returns
TypeDescription
$this

getSnapshotProperties

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

Returns
TypeDescription
Google\Cloud\Compute\V1\ResourcePolicySnapshotSchedulePolicySnapshotProperties|null

hasSnapshotProperties

clearSnapshotProperties

setSnapshotProperties

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

Parameter
NameDescription
var Google\Cloud\Compute\V1\ResourcePolicySnapshotSchedulePolicySnapshotProperties
Returns
TypeDescription
$this