Class Scheduling (1.4.0)

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

Sets the scheduling options for an Instance. NextID: 21

Inheritance

Object > Scheduling

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

Scheduling()

public Scheduling()

Scheduling(Scheduling)

public Scheduling(Scheduling other)
Parameter
NameDescription
otherScheduling

Properties

AutomaticRestart

public bool AutomaticRestart { get; set; }

Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.

Property Value
TypeDescription
Boolean

HasAutomaticRestart

public bool HasAutomaticRestart { get; }

Gets whether the "automatic_restart" field is set

Property Value
TypeDescription
Boolean

HasInstanceTerminationAction

public bool HasInstanceTerminationAction { get; }

Gets whether the "instance_termination_action" field is set

Property Value
TypeDescription
Boolean

HasLocationHint

public bool HasLocationHint { get; }

Gets whether the "location_hint" field is set

Property Value
TypeDescription
Boolean

HasMinNodeCpus

public bool HasMinNodeCpus { get; }

Gets whether the "min_node_cpus" field is set

Property Value
TypeDescription
Boolean

HasOnHostMaintenance

public bool HasOnHostMaintenance { get; }

Gets whether the "on_host_maintenance" field is set

Property Value
TypeDescription
Boolean

HasPreemptible

public bool HasPreemptible { get; }

Gets whether the "preemptible" field is set

Property Value
TypeDescription
Boolean

HasProvisioningModel

public bool HasProvisioningModel { get; }

Gets whether the "provisioning_model" field is set

Property Value
TypeDescription
Boolean

InstanceTerminationAction

public string InstanceTerminationAction { get; set; }

Specifies the termination action for the instance. Check the InstanceTerminationAction enum for the list of possible values.

Property Value
TypeDescription
String

LocationHint

public string LocationHint { get; set; }

An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.

Property Value
TypeDescription
String

MinNodeCpus

public int MinNodeCpus { get; set; }

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

Property Value
TypeDescription
Int32

NodeAffinities

public RepeatedField<SchedulingNodeAffinity> NodeAffinities { get; }

A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.

Property Value
TypeDescription
RepeatedField<SchedulingNodeAffinity>

OnHostMaintenance

public string OnHostMaintenance { get; set; }

Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM availability policies. Check the OnHostMaintenance enum for the list of possible values.

Property Value
TypeDescription
String

Preemptible

public bool Preemptible { get; set; }

Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a TERMINATED state. See Instance Life Cycle for more information on the possible instance states.

Property Value
TypeDescription
Boolean

ProvisioningModel

public string ProvisioningModel { get; set; }

Specifies the provisioning model of the instance. Check the ProvisioningModel enum for the list of possible values.

Property Value
TypeDescription
String