# Google Cloud Backup Dr V1 Client - Class Scheduling (0.13.0)

0.13.0 (latest) 0.12.1 0.11.1 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.0 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 \\ V1

## Methods

### __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<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.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` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.Scheduling.NodeAffinity>` |   |

### setNodeAffinities

Optional. A set of node affinity and anti-affinity configurations.

Overrides reservationAffinity.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.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` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.SchedulingDuration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |