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.
| Parameters | |
|---|---|
| Name | Description |
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.
| 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.
Overrides reservationAffinity.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setNodeAffinities
Optional. A set of node affinity and anti-affinity configurations.
Overrides reservationAffinity.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Scheduling\NodeAffinity>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMinNodeCpus
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.
| Returns | |
|---|---|
| Type | Description |
SchedulingDuration|null |
|
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.
| Parameter | |
|---|---|
| Name | Description |
var |
SchedulingDuration
|
| Returns | |
|---|---|
| Type | Description |
$this |
|