2.11.0 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0-beta02

    public sealed class Scheduling : IMessage<Scheduling>, IEquatable<Scheduling>, IDeepCloneable<Scheduling>, IBufferMessage, IMessage

Reference documentation and code samples for the Backup and DR Service v1 API class Scheduling.

Sets the scheduling options for an Instance.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Scheduling

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Scheduling](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Scheduling.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Scheduling](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Scheduling.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Scheduling](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Scheduling.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BackupDR.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.md.txt)

## Assembly

Google.Cloud.BackupDR.V1.dll

## Constructors

### Scheduling()

    public Scheduling()

### Scheduling(Scheduling)

    public Scheduling(Scheduling other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Scheduling` |

## Properties

### AutomaticRestart

    public bool AutomaticRestart { get; set; }

Optional. Specifies whether the instance should be automatically restarted
if it is terminated by Compute Engine (not terminated by a user).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasAutomaticRestart

    public bool HasAutomaticRestart { get; }

Gets whether the "automatic_restart" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasInstanceTerminationAction

    public bool HasInstanceTerminationAction { get; }

Gets whether the "instance_termination_action" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasMinNodeCpus

    public bool HasMinNodeCpus { get; }

Gets whether the "min_node_cpus" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasOnHostMaintenance

    public bool HasOnHostMaintenance { get; }

Gets whether the "on_host_maintenance" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasPreemptible

    public bool HasPreemptible { get; }

Gets whether the "preemptible" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasProvisioningModel

    public bool HasProvisioningModel { get; }

Gets whether the "provisioning_model" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### InstanceTerminationAction

    public Scheduling.Types.InstanceTerminationAction InstanceTerminationAction { get; set; }

Optional. Specifies the termination action for the instance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SchedulingTypesInstanceTerminationAction` |   |

### LocalSsdRecoveryTimeout

    public SchedulingDuration LocalSsdRecoveryTimeout { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SchedulingDuration` |   |

### MinNodeCpus

    public int MinNodeCpus { get; set; }

Optional. The minimum number of virtual CPUs this instance will consume
when running on a sole-tenant node.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### NodeAffinities

    public RepeatedField<Scheduling.Types.NodeAffinity> NodeAffinities { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldSchedulingTypesNodeAffinity` |   |

### OnHostMaintenance

    public Scheduling.Types.OnHostMaintenance OnHostMaintenance { get; set; }

Optional. Defines the maintenance behavior for this instance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SchedulingTypesOnHostMaintenance` |   |

### Preemptible

    public bool Preemptible { get; set; }

Optional. Defines whether the instance is preemptible.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### ProvisioningModel

    public Scheduling.Types.ProvisioningModel ProvisioningModel { get; set; }

Optional. Specifies the provisioning model of the instance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SchedulingTypesProvisioningModel` |   |