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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
Google\Cloud\Compute\V1\ResourcePolicySnapshotSchedulePolicyRetentionPolicy|null |
hasRetentionPolicy
clearRetentionPolicy
setRetentionPolicy
Retention policy applied to snapshots created by this resource policy.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Compute\V1\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 |
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 | |
---|---|
Name | Description |
var |
Google\Cloud\Compute\V1\ResourcePolicySnapshotSchedulePolicySchedule
|
Returns | |
---|---|
Type | Description |
$this |
getSnapshotProperties
Properties with which snapshots are created such as labels, encryption keys.
Returns | |
---|---|
Type | Description |
Google\Cloud\Compute\V1\ResourcePolicySnapshotSchedulePolicySnapshotProperties|null |
hasSnapshotProperties
clearSnapshotProperties
setSnapshotProperties
Properties with which snapshots are created such as labels, encryption keys.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Compute\V1\ResourcePolicySnapshotSchedulePolicySnapshotProperties
|
Returns | |
---|---|
Type | Description |
$this |