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.
Generated from protobuf field optional .google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyRetentionPolicy retention_policy = 68625779;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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.
Generated from protobuf field optional .google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicySchedule schedule = 375820951;
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.
Generated from protobuf field optional .google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicySchedule schedule = 375820951;
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.
Generated from protobuf field optional .google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicySnapshotProperties snapshot_properties = 185371278;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
Google\Cloud\Compute\V1\ResourcePolicySnapshotSchedulePolicySnapshotProperties
|
Returns | |
---|---|
Type | Description |
$this |