Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class Scheduling.
Sets the scheduling options for an Instance.
Generated from protobuf message google.cloud.backupdr.v1.Scheduling
Namespace
Google \ Cloud \ BackupDR \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ on_host_maintenance
int
Optional. Defines the maintenance behavior for this instance.
↳ automatic_restart
bool
Optional. Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
↳ preemptible
bool
Optional. Defines whether the instance is preemptible.
↳ node_affinities
array< Scheduling\NodeAffinity
>
Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.
↳ min_node_cpus
int
Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
↳ provisioning_model
int
Optional. Specifies the provisioning model of the instance.
↳ instance_termination_action
int
Optional. Specifies the termination action for the instance.
↳ local_ssd_recovery_timeout
SchedulingDuration
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.
int
hasOnHostMaintenance
clearOnHostMaintenance
setOnHostMaintenance
Optional. Defines the maintenance behavior for this instance.
var
int
$this
getAutomaticRestart
Optional. Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
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).
var
bool
$this
getPreemptible
Optional. Defines whether the instance is preemptible.
bool
hasPreemptible
clearPreemptible
setPreemptible
Optional. Defines whether the instance is preemptible.
var
bool
$this
getNodeAffinities
Optional. A set of node affinity and anti-affinity configurations.
Overrides reservationAffinity.
setNodeAffinities
Optional. A set of node affinity and anti-affinity configurations.
Overrides reservationAffinity.
$this
getMinNodeCpus
Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
int
hasMinNodeCpus
clearMinNodeCpus
setMinNodeCpus
Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
var
int
$this
getProvisioningModel
Optional. Specifies the provisioning model of the instance.
int
hasProvisioningModel
clearProvisioningModel
setProvisioningModel
Optional. Specifies the provisioning model of the instance.
var
int
$this
getInstanceTerminationAction
Optional. Specifies the termination action for the instance.
int
hasInstanceTerminationAction
clearInstanceTerminationAction
setInstanceTerminationAction
Optional. Specifies the termination action for the instance.
var
int
$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.
hasLocalSsdRecoveryTimeout
clearLocalSsdRecoveryTimeout
setLocalSsdRecoveryTimeout
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.
$this