Compute V1 Client - Class ResourcePolicySnapshotSchedulePolicy (1.5.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

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.

Generated from protobuf field optional .google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyRetentionPolicy retention_policy = 68625779;

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

hasRetentionPolicy

clearRetentionPolicy

setRetentionPolicy

Retention policy applied to snapshots created by this resource policy.

Generated from protobuf field optional .google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyRetentionPolicy retention_policy = 68625779;

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.

Generated from protobuf field optional .google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicySchedule schedule = 375820951;

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.

Generated from protobuf field optional .google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicySchedule schedule = 375820951;

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

getSnapshotProperties

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

Generated from protobuf field optional .google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicySnapshotProperties snapshot_properties = 185371278;

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

hasSnapshotProperties

clearSnapshotProperties

setSnapshotProperties

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

Generated from protobuf field optional .google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicySnapshotProperties snapshot_properties = 185371278;

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