Optional. Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
getOnHostMaintenance
Optional. Defines the maintenance behavior for this instance.
Returns
Type
Description
int
hasOnHostMaintenance
clearOnHostMaintenance
setOnHostMaintenance
Optional. Defines the maintenance behavior for this instance.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getAutomaticRestart
Optional. Specifies whether the instance should be automatically restarted
if it is terminated by Compute Engine (not terminated by a user).
Returns
Type
Description
bool
hasAutomaticRestart
clearAutomaticRestart
setAutomaticRestart
Optional. Specifies whether the instance should be automatically restarted
if it is terminated by Compute Engine (not terminated by a user).
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getPreemptible
Optional. Defines whether the instance is preemptible.
Returns
Type
Description
bool
hasPreemptible
clearPreemptible
setPreemptible
Optional. Defines whether the instance is preemptible.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getNodeAffinities
Optional. A set of node affinity and anti-affinity configurations.
Optional. The minimum number of virtual CPUs this instance will consume
when running on a sole-tenant node.
Returns
Type
Description
int
hasMinNodeCpus
clearMinNodeCpus
setMinNodeCpus
Optional. The minimum number of virtual CPUs this instance will consume
when running on a sole-tenant node.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getProvisioningModel
Optional. Specifies the provisioning model of the instance.
Returns
Type
Description
int
hasProvisioningModel
clearProvisioningModel
setProvisioningModel
Optional. Specifies the provisioning model of the instance.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getInstanceTerminationAction
Optional. Specifies the termination action for the instance.
Returns
Type
Description
int
hasInstanceTerminationAction
clearInstanceTerminationAction
setInstanceTerminationAction
Optional. Specifies the termination action for the instance.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getLocalSsdRecoveryTimeout
Optional. Specifies the maximum amount of time a Local Ssd Vm should wait
while recovery of the Local Ssd state is attempted. Its value should be in
between 0 and 168 hours with hour granularity and the default value being 1
hour.
Optional. Specifies the maximum amount of time a Local Ssd Vm should wait
while recovery of the Local Ssd state is attempted. Its value should be in
between 0 and 168 hours with hour granularity and the default value being 1
hour.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Backup Dr V1 Client - Class Scheduling (0.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.7.0 (latest)](/php/docs/reference/cloud-backupdr/latest/V1.Scheduling)\n- [0.6.2](/php/docs/reference/cloud-backupdr/0.6.2/V1.Scheduling)\n- [0.5.1](/php/docs/reference/cloud-backupdr/0.5.1/V1.Scheduling)\n- [0.4.2](/php/docs/reference/cloud-backupdr/0.4.2/V1.Scheduling)\n- [0.3.0](/php/docs/reference/cloud-backupdr/0.3.0/V1.Scheduling)\n- [0.2.0](/php/docs/reference/cloud-backupdr/0.2.0/V1.Scheduling)\n- [0.1.0](/php/docs/reference/cloud-backupdr/0.1.0/V1.Scheduling) \nReference documentation and code samples for the Google Cloud Backup Dr V1 Client class Scheduling.\n\nSets the scheduling options for an Instance.\n\nGenerated from protobuf message `google.cloud.backupdr.v1.Scheduling`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BackupDR \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getOnHostMaintenance\n\nOptional. Defines the maintenance behavior for this instance.\n\n### hasOnHostMaintenance\n\n### clearOnHostMaintenance\n\n### setOnHostMaintenance\n\nOptional. Defines the maintenance behavior for this instance.\n\n### getAutomaticRestart\n\nOptional. Specifies whether the instance should be automatically restarted\nif it is terminated by Compute Engine (not terminated by a user).\n\n### hasAutomaticRestart\n\n### clearAutomaticRestart\n\n### setAutomaticRestart\n\nOptional. Specifies whether the instance should be automatically restarted\nif it is terminated by Compute Engine (not terminated by a user).\n\n### getPreemptible\n\nOptional. Defines whether the instance is preemptible.\n\n### hasPreemptible\n\n### clearPreemptible\n\n### setPreemptible\n\nOptional. Defines whether the instance is preemptible.\n\n### getNodeAffinities\n\nOptional. A set of node affinity and anti-affinity configurations.\n\nOverrides reservationAffinity.\n\n### setNodeAffinities\n\nOptional. A set of node affinity and anti-affinity configurations.\n\nOverrides reservationAffinity.\n\n### getMinNodeCpus\n\nOptional. The minimum number of virtual CPUs this instance will consume\nwhen running on a sole-tenant node.\n\n### hasMinNodeCpus\n\n### clearMinNodeCpus\n\n### setMinNodeCpus\n\nOptional. The minimum number of virtual CPUs this instance will consume\nwhen running on a sole-tenant node.\n\n### getProvisioningModel\n\nOptional. Specifies the provisioning model of the instance.\n\n### hasProvisioningModel\n\n### clearProvisioningModel\n\n### setProvisioningModel\n\nOptional. Specifies the provisioning model of the instance.\n\n### getInstanceTerminationAction\n\nOptional. Specifies the termination action for the instance.\n\n### hasInstanceTerminationAction\n\n### clearInstanceTerminationAction\n\n### setInstanceTerminationAction\n\nOptional. Specifies the termination action for the instance.\n\n### getLocalSsdRecoveryTimeout\n\nOptional. Specifies the maximum amount of time a Local Ssd Vm should wait\nwhile recovery of the Local Ssd state is attempted. Its value should be in\nbetween 0 and 168 hours with hour granularity and the default value being 1\nhour.\n\n### hasLocalSsdRecoveryTimeout\n\n### clearLocalSsdRecoveryTimeout\n\n### setLocalSsdRecoveryTimeout\n\nOptional. Specifies the maximum amount of time a Local Ssd Vm should wait\nwhile recovery of the Local Ssd state is attempted. Its value should be in\nbetween 0 and 168 hours with hour granularity and the default value being 1\nhour."]]